/* Veckly web: one shared stylesheet. Tokens follow MealPlanner/DESIGN.md.
   Contrast (WCAG AA) is checked for every text/background pair below;
   Hearth Orange #e4572e is only used for graphics (logo, rules), never
   for text or as a button fill behind text in light mode. */

:root {
  color-scheme: light dark;

  --canvas: #f7f8fa;
  --surface: #ffffff;
  --surface-strong: #eef1f6;
  --ink: #0f172a;          /* 16.8:1 on canvas */
  --ink-mid: #475569;      /* 7.1:1 on canvas */
  --edge: #dce3ed;
  --edge-strong: #c8d3e1;

  --hearth: #e4572e;       /* graphics only (3.5:1) */
  --accent-text: #9f3519;  /* links, eyebrows: 6.6:1 on canvas */
  --cta-bg: #b94322;       /* white text 5.4:1 */
  --cta-bg-hover: #9f3519; /* white text 7.0:1 */
  --cta-fg: #ffffff;
  --ring: #b94322;

  --mark-bg: #fff4d6;      /* placeholder highlight, ink 15.8:1 */
  --mark-ink: #0f172a;
  --banner-bg: #fff4d6;
  --banner-edge: #e9b949;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --glow: rgba(228, 87, 46, 0.10);
  --accent-soft: #fbe7df;   /* tag fill, accent-text 5.6:1 on it */
  --check: #2f7d5b;         /* graphics only */
  --band: #13213a;          /* dark band, band-ink 14.9:1 */
  --band-ink: #eef2f8;
  --band-mid: #b9c6d8;      /* 9.0:1 on band */
  --phone-frame: #1a2232;
  --field-edge: #7b8aa0;    /* form field outline: 3.3:1 on canvas, 3.5:1 on surface */
  --shadow-lg: 0 30px 60px -20px rgba(22, 17, 14, 0.28), 0 12px 24px -12px rgba(22, 17, 14, 0.18);
  --shadow-sm: 0 10px 24px -10px rgba(22, 17, 14, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0b121d;
    --surface: #121b2a;
    --surface-strong: #1d2c40;
    --ink: #e8eef8;        /* 16.1:1 on canvas */
    --ink-mid: #b4c3d7;    /* 10.5:1 on canvas */
    --edge: #2c3d53;
    --edge-strong: #3a506c;

    --hearth: #ff6b45;
    --accent-text: #ff6b45; /* 6.7:1 on canvas, 6.1:1 on surface */
    --cta-bg: #ff6b45;      /* dark text 6.5:1 */
    --cta-bg-hover: #ff7a59;
    --cta-fg: #10151f;
    --ring: #ff6b45;

    --mark-bg: #4a3c0e;     /* mark ink 9.2:1 */
    --mark-ink: #f5ecd0;
    --banner-bg: #2e2712;
    --banner-edge: #8a6d1f;

    --glow: rgba(255, 107, 69, 0.13);
    --accent-soft: #3a2119;
    --check: #5cc49a;
    --band: #060b13;
    --band-ink: #e8eef8;
    --band-mid: #b4c3d7;
    --phone-frame: #02050a;
    --field-edge: #5f7494;  /* 3.9:1 on canvas, 3.6:1 on surface */
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-inline: 16px;
}

/* Skip link */
.skip {
  position: absolute;
  left: 16px;
  top: -4rem;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--edge-strong);
  z-index: 10;
}
.skip:focus {
  top: 0.75rem;
}

/* Focus: always visible, never removed */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--edge);
}
.site-header .wrap,
.site-header .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.035em;
}
.brand svg {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav li + li {
  margin-top: 0;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 0.15rem;
}
.site-nav a:hover {
  text-decoration: underline;
}
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--hearth);
  text-decoration-thickness: 2px;
}

/* Main */
main {
  padding: 2.5rem 0 3.5rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 2.25rem;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
}
p,
ul,
ol,
table {
  margin: 0.85rem 0 0;
}
p,
li {
  max-width: 65ch;
}
li + li {
  margin-top: 0.4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.lede {
  font-size: 1.2rem;
  color: var(--ink-mid);
  margin-top: 1rem;
}
.muted {
  color: var(--ink-mid);
}

/* Home: three steps of the Sunday session */
.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
}
.steps li {
  max-width: none;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.15rem 1.15rem;
}
.steps h2 {
  margin: 0;
  font-size: 1.15rem;
}
.steps h2::before {
  counter-increment: step;
  content: counter(step) ". ";
  color: var(--accent-text);
}
.steps p {
  margin-top: 0.4rem;
  color: var(--ink-mid);
}

.note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--edge);
}
.note h2 {
  margin-top: 0;
}

/* Support FAQ */
.faq h3 {
  margin-top: 1.75rem;
}
.path {
  font-weight: 600;
}
ol.howto {
  padding-left: 1.4rem;
}

/* Legal documents */
.doc h1 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
}
.doc .updated {
  color: var(--ink-mid);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--edge);
}
.doc th {
  font-weight: 600;
}
mark {
  background: var(--mark-bg);
  color: var(--mark-ink);
  padding: 0.05em 0.25em;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--banner-edge);
}
.draft-banner {
  background: var(--banner-bg);
  border: 1px solid var(--banner-edge);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin: 0 0 2rem;
}
.draft-banner strong {
  display: block;
}
.draft-banner p {
  margin: 0.25rem 0 0;
}

/* Invite fallback */
.code-box {
  margin-top: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.code-box label,
.code-box .label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.code {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  margin-top: 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.button:hover {
  background: var(--cta-bg-hover);
}
.button-secondary {
  background: var(--surface-strong);
  color: var(--ink);
  border: 1px solid var(--edge);
  min-height: 2.25rem;
  padding: 0 0.9rem;
  margin-top: 0;
  font-weight: 500;
}
.button-secondary:hover {
  background: var(--surface-strong);
  border-color: var(--edge-strong);
}
.status {
  display: inline-block;
  margin-left: 0.75rem;
  color: var(--ink-mid);
}
.lang-switch {
  margin: 0 0 1.5rem;
}
[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------ Home (promo) */

.wrap-wide {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: 16px;
}
@media (min-width: 40rem) {
  .wrap-wide { padding-inline: 24px; }
}

main.home {
  padding: 0;
}
.home p,
.home li {
  max-width: none;
}

.button-lg {
  min-height: 3.25rem;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  margin-top: 0;
}
.button-sm {
  min-height: 2.4rem;
  padding: 0 1rem;
  margin-top: 0;
  font-size: 0.95rem;
  text-decoration: none;
}
.button {
  text-decoration: none;
}
.button-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--edge-strong);
}
.button-ghost:hover {
  background: var(--surface);
}
.header-cta {
  display: none;
}
@media (min-width: 40rem) {
  .header-cta { display: inline-flex; }
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.display-sm {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3.5rem;
  background:
    radial-gradient(60rem 30rem at 85% 10%, var(--glow), transparent 60%),
    radial-gradient(40rem 24rem at 0% 0%, var(--glow), transparent 55%);
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 7.5vw, 3.9rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero .lede {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  margin-top: 1.25rem;
  max-width: 34rem;
}
.hero .lede q {
  font-style: italic;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--edge);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.pill .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--hearth);
  box-shadow: 0 0 0 4px var(--glow);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.fine {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--ink-mid);
}

@media (min-width: 60rem) {
  .hero { padding: 4.5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
  .hero-visual { justify-content: flex-end; padding-right: 1.5rem; }
  .float-reason { left: -1rem; top: 30%; }
  .float-sync { left: 1rem; right: auto; bottom: 16%; }
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 0 1rem;
}
.phone {
  width: min(300px, 82vw);
  aspect-ratio: 9 / 18.5;
  padding: 10px;
  border-radius: 46px;
  background: var(--phone-frame);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.screen {
  height: 100%;
  border-radius: 37px;
  background: var(--canvas);
  overflow: hidden;
  padding: 0.9rem 0.9rem 0;
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  line-height: 1.3;
}
.status {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0 0.6rem 0.9rem;
}
.status-icons {
  width: 2.6rem;
  height: 0.6rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ink) 0 55%, transparent 55% 65%, var(--ink) 65%);
  opacity: 0.85;
}
.screen p {
  margin: 0;
}
.scr-eyebrow {
  color: var(--accent-text);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scr-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 0.15rem 0 0.7rem !important;
}
.scr-week {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 14px;
  overflow: hidden;
}
.scr-week li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-top: 1px solid var(--edge);
}
.scr-week li:first-child {
  border-top: 0;
}
.scr-week .d {
  flex: none;
  width: 1.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-mid);
  line-height: 1.05;
}
.scr-week .d b {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.scr-week .m {
  flex: 1;
  font-weight: 600;
  color: var(--ink);
}
.scr-week .m i {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--ink-mid);
  margin-top: 0.1rem;
}
.scr-week .today {
  background: var(--accent-soft);
}
.scr-week .skipped .m {
  color: var(--ink-mid);
  font-weight: 500;
}
.lock {
  flex: none;
  width: 0.7rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent-text);
  position: relative;
  margin-top: 0.3rem;
}
.lock::before {
  content: "";
  position: absolute;
  left: 0.12rem;
  bottom: 0.45rem;
  width: 0.46rem;
  height: 0.4rem;
  border: 2px solid var(--accent-text);
  border-bottom: 0;
  border-radius: 0.3rem 0.3rem 0 0;
  box-sizing: border-box;
}
.scr-cta {
  margin: auto 0 1rem;
  padding: 0.75rem;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-weight: 600;
  text-align: center;
}

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.35;
  max-width: 13.5rem;
}
.float-card p {
  margin: 0;
}
.fc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.2rem !important;
}
.float-reason {
  left: 0;
  top: 30%;
}
.float-sync {
  right: 0;
  bottom: 14%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-weight: 700;
  font-size: 0.8rem;
}
@media (max-width: 30rem) {
  .float-card { font-size: 0.78rem; max-width: 11rem; padding: 0.6rem 0.7rem; }
  .float-reason { top: 8%; left: -4px; }
  .float-sync { bottom: 22%; right: -4px; }
}

/* Load-in motion, quiet and once */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 600ms cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .phone { animation: rise-phone 800ms 150ms cubic-bezier(.2,.7,.2,1) both; }
  .float-reason { animation: rise 600ms 650ms cubic-bezier(.2,.7,.2,1) both; }
  .float-sync { animation: rise 600ms 900ms cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-phone {
  from { opacity: 0; transform: translateY(24px) rotate(-2deg); }
  to { opacity: 1; transform: rotate(-2deg); }
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section-alt {
  background: var(--surface-strong);
}
.section .eyebrow,
.band .eyebrow {
  margin-bottom: 0.9rem;
}
@media (min-width: 60rem) {
  .section { padding: 6rem 0; }
}

/* Problem band */
.band {
  background: var(--band);
  color: var(--band-ink);
  padding: 4rem 0;
}
.band .eyebrow {
  color: #ff8a66; /* 6.9:1 on light band, more on dark */
}
.pain-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.pain-grid h3 {
  margin: 0;
  font-size: 1.15rem;
}
.pain-grid p {
  margin-top: 0.4rem;
  color: var(--band-mid);
}
@media (min-width: 48rem) {
  .pain-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* How it works */
.how-grid {
  list-style: none;
  padding: 0;
  margin: 2.75rem 0 0;
  display: grid;
  gap: 1rem;
}
.how-card {
  margin: 0 !important;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.how-num {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.how-card h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
}
.how-card > p {
  margin-top: 0.5rem;
  color: var(--ink-mid);
}
.mini {
  margin-top: auto;
  padding-top: 1.25rem;
  display: grid;
  gap: 0.4rem;
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--canvas);
  border: 1px solid var(--edge);
  font-size: 0.92rem;
  font-weight: 500;
}
.mini-row b {
  width: 2.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.mini-row .tag,
.mini-row > span {
  margin-left: auto;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.tag-quiet {
  background: var(--surface-strong);
  color: var(--ink-mid);
}
.mini-muted {
  color: var(--ink-mid);
}
.mini-check::before {
  content: "";
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 2px solid var(--edge-strong);
}
.mini-check > span {
  color: var(--ink-mid);
  font-weight: 400;
}
.mini-check.done {
  color: var(--ink-mid);
  text-decoration: line-through;
  text-decoration-color: var(--edge-strong);
}
.mini-check.done::before {
  border-color: var(--check);
  background: var(--check);
}
.mini-check {
  position: relative;
}
.mini-check.done::after {
  content: "";
  position: absolute;
  left: calc(0.75rem + 0.36rem);
  top: 50%;
  width: 0.28rem;
  height: 0.5rem;
  border: solid var(--surface);
  border-width: 0 2px 2px 0;
  transform: translateY(-62%) rotate(45deg);
}
@media (min-width: 52rem) {
  .how-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* Features */
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 2.75rem 0 0;
  display: grid;
  gap: 2rem 2.5rem;
}
.feature-grid li {
  margin: 0;
}
.ficon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--edge);
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-grid h3 {
  margin-top: 0.9rem;
  font-size: 1.1rem;
}
.feature-grid p {
  margin-top: 0.35rem;
  color: var(--ink-mid);
}
@media (min-width: 40rem) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60rem) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Compare */
.compare {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
}
.compare-col {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--edge);
  background: var(--surface);
}
.compare-col h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink-mid);
}
.compare-col p {
  margin-top: 0.5rem;
  color: var(--ink-mid);
}
.compare-us {
  border-color: var(--hearth);
  box-shadow: 0 0 0 1px var(--hearth), var(--shadow-sm);
}
.compare-us h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
}
.compare-us p {
  color: var(--ink);
}
@media (min-width: 52rem) {
  .compare { grid-template-columns: 1fr 1fr 1.25fr; align-items: stretch; }
}

/* Privacy */
.privacy-row {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
.privacy-row p {
  margin-top: 0.75rem;
  color: var(--ink-mid);
  max-width: 40rem;
}
.privacy-mark {
  width: 3.5rem;
  height: 3.5rem;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 40rem) {
  .privacy-row { grid-template-columns: auto 1fr; gap: 2rem; }
}

/* FAQ */
.faq-wrap {
  display: grid;
  gap: 0 4rem;
}
.faq-list {
  margin-top: 2rem;
  border-top: 1px solid var(--edge);
}
.faq-list details {
  border-bottom: 1px solid var(--edge);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 600;
  font-size: 1.08rem;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-text);
  transition: transform 120ms ease;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details p {
  margin: 0 0 1.25rem;
  color: var(--ink-mid);
}
.faq-wrap > .muted {
  margin-top: 1.5rem;
}
@media (min-width: 52rem) {
  .faq-wrap { grid-template-columns: 0.8fr 1.2fr; }
  .faq-head { grid-row: span 2; }
  .faq-list { margin-top: 0; }
}

/* Final CTA */
.final-cta {
  background:
    radial-gradient(40rem 20rem at 50% 120%, rgba(228, 87, 46, 0.35), transparent 70%),
    var(--band);
  color: var(--band-ink);
  padding: 5rem 0;
  text-align: center;
}
.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-cta .display {
  max-width: 20ch;
  font-size: clamp(1.9rem, 5.5vw, 3rem);
}
.final-cta p {
  margin: 1rem 0 2rem;
  color: var(--band-mid);
  max-width: 32rem;
}

/* Waitlist form (posts to the backend, no JavaScript) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wl-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.waitlist {
  margin-top: 2rem;
  max-width: 34rem;
}
.wl-platform {
  border: 0;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.wl-platform legend {
  float: left;
  margin-right: 0.5rem;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.wl-platform label {
  position: relative;
  cursor: pointer;
}
.wl-platform input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.wl-platform span {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--field-edge);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.wl-platform input:checked + span {
  border-color: var(--cta-bg);
  background: var(--accent-soft);
  color: var(--accent-text);
  box-shadow: inset 0 0 0 1px var(--cta-bg);
}
.wl-platform input:focus-visible + span {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
.wl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.wl-email {
  flex: 1 1 15rem;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--field-edge);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}
.wl-email::placeholder {
  color: var(--ink-mid);
  opacity: 0.8;
}
.wl-email:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
.wl-row .button {
  flex: 1 1 auto;
}
@media (min-width: 30rem) {
  .wl-row .button { flex: 0 0 auto; }
}
.wl-note {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-mid);
}

.final-cta .waitlist {
  margin: 0 auto;
  text-align: left;
  width: 100%;
}
.final-cta .wl-platform legend,
.final-cta .wl-note {
  color: var(--band-mid);
}
.final-cta .wl-note a {
  color: var(--band-ink);
}
.final-cta .wl-platform span {
  background: transparent;
  border-color: #6b80a0 /* 4.0:1 on band */;
  color: var(--band-ink);
}
.final-cta .wl-platform input:checked + span {
  background: #e4572e;
  border-color: #e4572e;
  color: #10151f;
  box-shadow: none;
}
.final-cta .wl-email {
  background: #0d1729;
  border-color: #6b80a0 /* 4.0:1 on band */;
  color: var(--band-ink);
}
.final-cta .wl-email::placeholder {
  color: var(--band-mid);
}
/* Secondary next to the App Store badge, which is the one primary action. */
.final-cta .wl-row .button {
  background: transparent;
  color: var(--band-ink);
  box-shadow: inset 0 0 0 1px #6b80a0;
}
.final-cta .wl-row .button:hover {
  background: #0d1729;
}

/* Waitlist result pages */
.result {
  padding: 1rem 0 2rem;
}
.result h1 {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  letter-spacing: -0.04em;
}
.result .button {
  margin-top: 0.5rem;
  text-decoration: none;
}
.result-card {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--edge);
}
.result-card h2 {
  margin: 0;
  font-size: 1.15rem;
}
.result-card p {
  margin-top: 0.4rem;
  color: var(--ink-mid);
}
.result > .muted {
  margin-top: 2rem;
}

.home + .site-footer {
  border-top: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--edge);
  padding: 1.5rem 0 2.5rem;
  color: var(--ink-mid);
  font-size: 0.95rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-footer li + li {
  margin-top: 0;
}
.site-footer a {
  color: var(--ink-mid);
  display: inline-block;
  padding: 0.35rem 0;
}
.site-footer p {
  margin-top: 0.75rem;
}

@media (min-width: 40rem) {
  main {
    padding-top: 3.5rem;
  }
  .steps {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media print {
  .site-header nav,
  .skip,
  .site-footer {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* App Store badge (Apple's artwork, unchanged; min 40px high) */
.store-row {
  margin-top: 2rem;
}
.store-badge {
  display: inline-block;
  border-radius: 10px;
}
.store-badge img {
  display: block;
  height: 3.125rem;
  width: auto;
}
.store-badge:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
.store-note {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-mid);
}
.final-cta .store-row {
  margin: 0 0 2.5rem;
}
.final-sub {
  margin: 0;
  font-size: 1.15rem;
  color: var(--band-ink);
}
.final-cta .final-sub + p {
  margin: 0.4rem 0 1.25rem;
}
