/* sales.css - self-contained styles for the sales, thank-you, privacy and terms pages.
   Palette: blue / white / yellow. Blue = his reel blue #0090FC (2026-10-18; the old indigo read as purple). No green anywhere. Phone first. Pure ASCII. */

:root {
  --bg: #ffffff;
  --surface: #f2f6ff;
  --surface-2: #e4ecff;
  --text: #0f1b3d;
  --muted: #475377;
  --border: #c9d5f3;
  --blue: #0090FC;
  --blue-text: #0069BA;
  --on-blue: #ffffff;
  --yellow: #ffd23f;
  --yellow-edge: #e0b000;
  --on-yellow: #0f1b3d;
  --warn-bg: #fff6d1;
  --warn-border: #e0b000;
  --ph-bg: #fff1a8;
  --ph-text: #4a3a00;
  --focus: #0069BA;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1126;
    --surface: #121c3a;
    --surface-2: #1a2750;
    --text: #eaf0ff;
    --muted: #aab6d8;
    --border: #2b3a6b;
    --blue: #4DB2FF;
    --blue-text: #7CC6FF;
    --on-blue: #0a1126;
    --yellow: #ffd23f;
    --yellow-edge: #ffe27a;
    --on-yellow: #0f1b3d;
    --warn-bg: #2a2410;
    --warn-border: #b89400;
    --ph-bg: #4a3d00;
    --ph-text: #ffe9a0;
    --focus: #ffd23f;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a1126;
  --surface: #121c3a;
  --surface-2: #1a2750;
  --text: #eaf0ff;
  --muted: #aab6d8;
  --border: #2b3a6b;
  --blue: #4DB2FF;
  --blue-text: #7CC6FF;
  --on-blue: #0a1126;
  --yellow: #ffd23f;
  --yellow-edge: #ffe27a;
  --on-yellow: #0f1b3d;
  --warn-bg: #2a2410;
  --warn-border: #b89400;
  --ph-bg: #4a3d00;
  --ph-text: #ffe9a0;
  --focus: #ffd23f;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

[hidden] { display: none !important; }

/* top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--blue-text);
}
.toggle {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

/* type */
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; color: var(--text); }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 23px; font-weight: 750; margin-top: 8px; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--text); }
.muted { color: var(--muted); }
a { color: var(--blue-text); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

section.block { padding: 22px 0; border-top: 1px solid var(--border); }
section.hero { padding: 18px 0 24px; }

/* the status chip under the headline */
.chip {
  display: inline-block;
  margin: 4px 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 700;
  font-size: 15px;
}

/* buttons: plain links, big targets */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--yellow-edge);
  background: var(--yellow);
  color: var(--on-yellow);
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn.blue {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--on-blue);
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }

/* lists */
ul.plain { margin: 0 0 14px; padding-left: 22px; }
ul.plain li { margin-bottom: 8px; }
ol.lessons { list-style: none; margin: 0 0 14px; padding: 0; }
ol.lessons li {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
ol.lessons .n {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--on-blue);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
ol.lessons .t { font-weight: 700; display: block; }
ol.lessons .d { color: var(--muted); font-size: 15.5px; display: block; }

/* offer card */
.offer {
  background: var(--surface);
  border: 2px solid var(--blue);
  border-radius: 18px;
  padding: 20px 16px;
  margin: 8px 0 16px;
}
.offer .price { font-size: 44px; font-weight: 850; line-height: 1; margin: 6px 0 10px; }
.offer .price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.offer .note { font-size: 15.5px; color: var(--muted); margin: 12px 0 0; }
.offer .btn { margin-top: 14px; }
.offer.quiet { border-color: var(--border); border-width: 1px; }

/* countdown */
.countdown { margin: 14px 0 6px; }
.countdown .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
.countdown .cell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 2px;
}
.countdown .num { display: block; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown .lab { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.countdown .when { font-size: 15px; color: var(--muted); margin: 10px 0 0; }

/* small print and safety line */
.fine {
  font-size: 15px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.fine p { margin-bottom: 10px; }
.safety {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15.5px;
  color: var(--text);
  margin: 6px 0 14px;
}
.safety p { margin: 0 0 8px; }
.safety p:last-child { margin-bottom: 0; }

.foot { padding: 6px 0 40px; font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* placeholders Michael must replace: loud on purpose */
.ph {
  background: var(--ph-bg);
  color: var(--ph-text);
  border-radius: 6px;
  padding: 1px 6px;
  font-style: italic;
}

/* test banner (only shown when the test clock is active) */
.testbar {
  background: #0069BA;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  padding: 8px 12px;
}

/* forms (thank-you page) */
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input[type="password"], input[type="text"] {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 18px; /* 16px+ stops iOS zooming in on focus */
}
.field-row { display: flex; gap: 8px; align-items: stretch; }
.field-row input { flex: 1 1 auto; min-width: 0; }
.field-row .toggle { border-radius: 12px; flex: 0 0 auto; }
.error { color: #b00020; font-weight: 600; margin: 10px 0 0; min-height: 1.4em; }
:root[data-theme="dark"] .error { color: #ff9aa8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .error { color: #ff9aa8; }
}
.hint { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.spinner {
  width: 28px; height: 28px; margin: 12px 0;
  border: 4px solid var(--border); border-top-color: var(--blue);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* legal pages */
.legal h2 { margin-top: 26px; font-size: 20px; }
.legal p, .legal li { font-size: 16.5px; }

@media (min-width: 560px) {
  h1 { font-size: 36px; }
  .btn { width: auto; min-width: 280px; }
  .offer .btn { width: 100%; }
}

a[href^="tel:"] { white-space: nowrap; }
