/* Self-hosted fonts (SIL Open Font License; see assets/fonts/LICENSE-*.txt). */
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader.woff2') format('woff2-variations'), url('/assets/fonts/newsreader.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/assets/fonts/instrument-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/assets/fonts/instrument-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/assets/fonts/instrument-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
/* Relay Companion website. Matches the app: deep green, warm paper, serif display. */
:root {
  --ink: #12302B;
  --ink-soft: #3B524C;
  --muted: #56695F;
  --paper: #F4F3EC;
  --card: #FFFFFF;
  --card-soft: #FAFAF6;
  --line: #DEDDD3;
  --line-soft: #E7E6DD;
  --green: #164E46;
  --green-dark: #0C2E29;
  --night: #12302B;
  --night-card: #1B3F38;
  --lime: #8FB045;
  --lime-soft: #EAF1D8;
  --lime-ink: #2F4A1A;
  --lime-bright: #C6DE86;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #4A6A60; margin-bottom: 14px; }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.1; font-size: clamp(34px, 4vw, 48px); }
.lede { font-size: 19px; color: var(--ink-soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: #C9C8BC; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--green); display: grid; place-items: center; }
.brand-name { font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.brand-name span { color: var(--lime); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding-block: 10px; }
.nav a:not(.btn):hover { text-decoration: underline; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (max-width: 720px) { .nav a.hide-sm { display: none; } }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 88px 96px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.02em; }
.hero .lede { margin-top: 28px; font-size: 20px; max-width: 560px; }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.fine { margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero-visual { flex: 0 1 380px; min-width: 0; display: flex; justify-content: center; margin-inline: auto; }
@media (max-width: 640px) { .hero .wrap { padding-block: 56px 64px; gap: 44px; } }

/* Phone mock-up */
.phone { width: 340px; max-width: 100%; background: var(--card); border: 10px solid var(--ink); border-radius: 44px; padding: 26px 22px 28px; box-shadow: 0 30px 60px -28px rgba(18, 48, 43, .45); }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #4A6A60; }
.phone-top strong { color: var(--ink); }
.chip { background: var(--lime-soft); color: var(--lime-ink); padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.label { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: #4A6A60; margin: 22px 0 6px; }
.phone-q { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.phone-fb { margin-top: 22px; border-top: 1px solid var(--line-soft); padding-top: 4px; }
.score { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.score small { font-size: 17px; color: var(--muted); font-weight: 500; }
.phone-note { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.phone-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.phone-list li { display: flex; gap: 8px; }
.plus { color: #4F7A22; font-weight: 700; }
.arrow { color: #A5541B; font-weight: 700; }
.phone-actions { margin-top: 20px; display: flex; gap: 10px; }
.phone-actions span { flex: 1; text-align: center; padding: 12px 0; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid #C9C8BC; }
.phone-actions span.on { background: var(--green); color: #fff; border-color: var(--green); }
.gap { background: var(--lime-soft); color: var(--lime-ink); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }

/* Sections */
.section { padding-block: 104px; }
@media (max-width: 640px) { .section { padding-block: 72px; } }
.band { background: var(--card); border-block: 1px solid var(--line); }
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.step { padding: 32px; border: 1px solid #E2E1D7; border-radius: var(--radius); background: var(--card-soft); }
.step-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--lime); }
.step h3 { margin: 20px 0 10px; font-size: 21px; font-weight: 600; }
.step p { color: var(--ink-soft); }

.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split .lede + .lede { margin-top: 18px; }
.split .display + .lede { margin-top: 24px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tile { padding: 26px; border-radius: 16px; background: var(--card); border: 1px solid #E2E1D7; }
.tile h3 { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: #4A6A60; }
.tile p { margin-top: 10px; color: var(--ink-soft); }
.tile.dark { background: var(--green); border-color: var(--green); }
.tile.dark h3 { color: #D6E8A8; }
.tile.dark p { color: #F1F5EC; }

.night { background: var(--night); color: #F1F3EC; }
.night .eyebrow { color: #B8D27A; }
.night .lede { color: #C9D4CE; font-size: 18px; }
.night .display + .lede { margin-top: 22px; }
.night .fine { color: #B5C3BC; margin-top: 18px; font-size: 15px; }
.facts { display: grid; gap: 14px; }
.fact { padding: 20px 22px; border-radius: 14px; background: var(--night-card); }
.fact h3 { font-size: 17px; font-weight: 600; }
.fact p { margin-top: 6px; font-size: 15px; color: #C9D4CE; }

/* Pricing */
.center { text-align: center; }
.center .display, .center .lede { margin-inline: auto; max-width: 720px; }
.center .lede { margin-top: 18px; max-width: 560px; font-size: 18px; }
.plans { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan { padding: 34px; border-radius: 20px; background: var(--card); border: 1px solid #E2E1D7; display: flex; flex-direction: column; gap: 16px; }
.plan.featured { border: 2px solid var(--green); box-shadow: 0 24px 48px -30px rgba(18, 48, 43, .5); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { font-size: 20px; font-weight: 600; }
.price { font-family: var(--serif); font-size: 44px; line-height: 1; }
.price small { font-family: var(--sans); font-size: 16px; color: var(--muted); }
.plan > p { color: var(--ink-soft); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.plan li::before { content: "✓"; color: #4F7A22; font-weight: 700; margin-right: 8px; }
.plan .btn { margin-top: auto; width: 100%; }

/* FAQ */
.faq { max-width: 820px; }
.faq .display { margin-bottom: 40px; }
.faq details { border-top: 1px solid #E2E1D7; padding: 22px 0; }
.faq details:last-of-type { border-bottom: 1px solid #E2E1D7; }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); }

/* Beta sign-up */
.beta { background: var(--green); color: #fff; border-radius: 28px; padding: 64px 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
@media (max-width: 640px) { .beta { padding: 40px 24px; border-radius: 22px; } }
.beta > div { flex: 1 1 420px; min-width: 0; }
.beta .display { font-size: clamp(30px, 4vw, 46px); }
.beta p { margin-top: 16px; font-size: 18px; color: #D8E4DE; }
.beta-form { flex: 1 1 380px; min-width: 0; }
.beta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.beta-row input[type=email] { flex: 1 1 220px; min-width: 0; height: 56px; padding: 0 18px; border-radius: 12px; border: 0; font: inherit; font-size: 17px; color: var(--ink); }
.beta-row button { height: 56px; padding: 0 26px; border-radius: 12px; border: 0; background: var(--lime-bright); color: var(--ink); font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; }
.beta-row button:hover { background: #D4E99B; }
.beta-row button[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; min-height: 1.5em; font-size: 15px; color: #E3EEDF; }
.form-status.error { color: #FFD9C7; }
.consent { margin-top: 10px; font-size: 13px; color: #BFD0C8; }
.consent a { color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 32px 48px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 760px; padding-block: 72px 96px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; }
.legal .updated { margin-top: 12px; color: var(--muted); font-size: 15px; }
.legal .draft { margin-top: 24px; padding: 14px 18px; border-radius: 12px; background: #FFF4E5; color: #6B3A00; font-size: 15px; }
.legal h2 { margin-top: 44px; font-size: 22px; font-weight: 600; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.narrow { max-width: 720px; }
.price { font-size: clamp(34px, 4vw, 44px); }
