/* The Exit Number - the sales page and the gate.
 *
 * The pages either side of the product. Same paperwork language as the memo,
 * same rules from Section 8: no gradients, no rounded pills, no drop shadows,
 * no emoji, no purple.
 *
 * memo.css and app.css are not loaded here. Those live behind the gate with
 * the tool, and neither of these two pages has a memo on it.
 */

:root {
  --paper: #e7ebe4;
  --panel: #f1f4ee;
  --ink: #14181a;
  --ink-2: #5c6862;
  --rule: #bfc9be;
  --stamp: #9c3520;

  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Helvetica, Arial, sans-serif;
  --condensed: 'IBM Plex Sans Condensed', 'Helvetica Neue Condensed',
    'Arial Narrow', var(--sans);
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 48px 20px 80px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

.sheet {
  max-width: 640px;
  margin: 0 auto;
}

h1 {
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h2 {
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 40px 0 12px;
}

p {
  margin: 0 0 14px;
}

.lede {
  font-size: 18px;
  line-height: 1.45;
}

.rule {
  height: 0;
  margin: 28px 0;
  border: 0;
  border-top: 2px solid var(--ink);
}

.quiet {
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ lists */

.plain {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.plain li {
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}

.plain li:last-child {
  border-bottom: 0;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 13px 22px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.price {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink-2);
  margin-left: 14px;
}

/* ------------------------------------------------------------------- gate */

.gate-field {
  display: block;
  margin: 0 0 18px;
}

.gate-field span {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.gate-field input {
  width: 100%;
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 13px 14px;
  -webkit-appearance: none;
  appearance: none;
}

.gate-field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}

.gate-note {
  min-height: 24px;
  margin: 16px 0 0;
  font-size: 15px;
}

.gate-note.bad {
  color: var(--stamp);
}

@media (max-width: 620px) {
  body {
    padding: 32px 16px 60px;
  }

  h1 {
    font-size: 21px;
    letter-spacing: 0.16em;
  }

  .lede {
    font-size: 17px;
  }
}
