@font-face {
  font-family: "Fraunces";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2");
}

:root {
  --bg: #F5F0E8;
  --surface: #FFFDF9;
  --sand: #EADFCB;
  --ink: #1E2A2D;
  --muted: #55625F;
  --teal: #0E6B6B;
  --coral: #B9492F;   /* darkened from #D9654A so text passes AA on light bg */
  --coral-fill: #D9654A;
  --gold: #8A6420;
  --line: #DCD0BA;
  --pass-bg: #DCEDE9;
  --warn-bg: #F6E3C4;
  --shadow: 0 24px 60px -24px rgba(30, 42, 45, .35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141C1E;
    --surface: #1E2A2D;
    --sand: #26363A;
    --ink: #F1EBE0;
    --muted: #A9B4B1;
    --teal: #5FB8B0;
    --coral: #F0907A;
    --coral-fill: #D9654A;
    --gold: #DDB467;
    --line: #2F4044;
    --pass-bg: #1D3B39;
    --warn-bg: #3D3220;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 10px 14px; z-index: 10; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: 20px;
}
.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.02em;
}
.wordmark span { color: var(--teal); }
.wordmark.small { font-size: 1.15rem; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Hero */
.hero > * { min-width: 0; }
.hero {
  display: grid; gap: 48px;
  padding-top: 32px; padding-bottom: 72px;
}
.eyebrow {
  font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--coral); margin-bottom: 14px;
}
h1 { font-size: clamp(2.5rem, 9vw, 4.5rem); max-width: 12ch; }
.lede { margin-top: 20px; font-size: 1.125rem; color: var(--muted); max-width: 34rem; }
.facts {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 34rem;
}
.facts li {
  border-top: 2px solid var(--ink); padding-top: 10px;
  font-size: .875rem; color: var(--muted); line-height: 1.35;
}
.facts strong {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: 1.75rem; color: var(--ink); margin-bottom: 2px;
}

/* Phone mock */
.phone { margin: 0; justify-self: center; width: 100%; max-width: 340px; }
.screen {
  background: var(--surface);
  border: 10px solid var(--ink);
  border-radius: 40px;
  padding: 22px 16px 18px;
  box-shadow: var(--shadow);
  display: grid; gap: 10px;
}
@media (prefers-color-scheme: dark) { .screen { border-color: #0B1112; } }
.screen-head { display: grid; gap: 2px; padding: 0 4px 6px; }
.screen-kicker { font-size: .75rem; color: var(--muted); }
.screen-title { font-family: var(--serif); font-size: 1.25rem; }
.card {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px;
}
.num {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: var(--surface);
  font-size: .8125rem; font-weight: 600;
}
.label { font-size: .75rem; color: var(--muted); }
.line { font-size: .9rem; font-weight: 500; line-height: 1.35; margin-top: 2px; }
.chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.chip {
  font-size: .6875rem; font-weight: 600; letter-spacing: .04em;
  border-radius: 999px; padding: 3px 8px;
}
.chip.pass { background: var(--pass-bg); color: var(--teal); }
.chip.warn { background: var(--warn-bg); color: var(--gold); }
.shorthand {
  font: 500 .8125rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px;
}
.approve {
  display: block; text-align: center; min-height: 44px; line-height: 44px;
  background: #B9492F; color: #fff; font-weight: 600; border-radius: 14px;
}
.phone figcaption { font-size: .8125rem; color: var(--muted); text-align: center; margin-top: 14px; }

/* Sections */
section h2 { font-size: clamp(1.875rem, 5.5vw, 2.75rem); }
.section-lede { margin-top: 12px; color: var(--muted); max-width: 36rem; }

.pipeline { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); }
.steps {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; gap: 14px;
}
.steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px;
}
.step-n { font-family: var(--serif); font-size: 1rem; color: var(--coral); }
.steps h3 { font-size: 1.3rem; margin: 8px 0 8px; }
.steps p { font-size: .95rem; color: var(--muted); }

.rules { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); }
.rule-grid { display: grid; gap: 28px; margin-top: 36px; }
.rule-grid article { border-left: 3px solid var(--teal); padding-left: 18px; }
.rule-grid h3 { font-size: 1.3rem; margin-bottom: 8px; }
.rule-grid p { color: var(--muted); }

.brands {
  margin-top: 24px; margin-bottom: 72px;
  background: var(--sand); border-radius: 28px;
  padding-top: 40px; padding-bottom: 40px;
  display: grid; gap: 24px;
}
.brands h2 { max-width: 18ch; }
.brands div > p:last-child { margin-top: 16px; color: var(--muted); max-width: 36rem; }
.soon { font-weight: 600; color: var(--ink); align-self: end; }

.foot {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  padding-top: 28px; padding-bottom: max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted);
}

/* Larger screens */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .rule-grid { grid-template-columns: repeat(3, 1fr); }
  .brands { padding: 56px; grid-template-columns: 1.6fr 1fr; align-items: end; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.2fr 1fr; align-items: center; padding-top: 56px; padding-bottom: 96px; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { padding: 20px 18px; }
  .brands { margin-left: auto; margin-right: auto; max-width: 1080px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .phone { animation: rise .6s ease-out both; }
  .phone { animation-delay: .12s; }
  @keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
}
