/* Maybe Today marketing site. Dark-first ("Night"), light ("Day") via prefers-color-scheme. */

:root {
  color-scheme: dark light;
  --bg: #120B10;
  --bg-elevated: #1A1117;
  --surface: #22171E;
  --surface-high: #2C1F27;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #F8EEE8;
  --text-2: #BDAAA6;
  --text-3: #8F7D7A;
  --ember: #FF6A4D;
  --ember-text: #FF8A6E;
  --grad: linear-gradient(135deg, #FF9A5A 0%, #FF5A5F 50%, #E8407A 100%);
  --gold: #F4C47A;
  --no: #7C7AA6;
  --maybe: #F0A65E;
  --yes: #FF5A6E;
  --success: #7BC6A4;
  --danger: #FF6B6B;
  --glow-a: rgba(255, 90, 95, 0.34);
  --glow-b: rgba(232, 64, 122, 0.18);
  --glow-c: rgba(255, 154, 90, 0.16);
  --on-grad: #1A0B10;
  --phone-bezel: #050304;
  --shadow-phone: 0 40px 120px -30px rgba(232, 64, 122, 0.45), 0 30px 60px -30px rgba(0, 0, 0, 0.8);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-ui: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1180px;
  --radius-card: 24px;
  --radius-sheet: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FBF5F1;
    --bg-elevated: #F5ECE6;
    --surface: #FFFFFF;
    --surface-high: #FFF8F4;
    --stroke: rgba(42, 26, 32, 0.09);
    --stroke-strong: rgba(42, 26, 32, 0.16);
    --text: #22151B;
    --text-2: #6F5D5B;
    --text-3: #8E7C7A;
    --ember: #F2543A;
    --ember-text: #C7381F;
    --gold: #B67E2A;
    --no: #6A68A0;
    --maybe: #DD8B3E;
    --yes: #EE3F5A;
    --success: #3E8F6B;
    --danger: #D23B3B;
    --glow-a: rgba(255, 106, 77, 0.22);
    --glow-b: rgba(232, 64, 122, 0.12);
    --glow-c: rgba(255, 154, 90, 0.18);
    --shadow-phone: 0 40px 100px -40px rgba(232, 64, 122, 0.45), 0 30px 60px -40px rgba(60, 20, 30, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(255, 90, 95, 0.35); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 12px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(52px, 8.4vw, 112px); font-weight: 380; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -0.01em; font-weight: 460; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.5; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--stroke); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 22px; height: 28px; }
.brand-name {
  font-family: var(--font-display); font-size: 27px; font-weight: 500; letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144; line-height: 1; transform: translateY(-1px); white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--on-grad); }
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 400px) {
  .brand-name { font-size: 24px; }
  .brand { gap: 8px; }
}
@media (max-width: 340px) {
  .brand-name { font-size: 21px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.3s var(--ease), background-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: var(--on-grad); box-shadow: 0 10px 30px -12px rgba(255, 90, 95, 0.7); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(255, 90, 95, 0.85); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-secondary { background: var(--surface-high); color: var(--text); border: 1px solid var(--stroke-strong); }
.btn-secondary:hover { background: var(--surface); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--stroke-strong); }
.btn-danger { background: var(--danger); color: #1A0B10; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* Store buttons: badge-shaped, CSS-drawn. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 16px;
  background: #F8EEE8; color: #140A10; text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background-color 0.2s;
}
.store:hover { background: #FFFFFF; }
.store:active { transform: scale(0.97); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; opacity: 0.75; }
.store b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
@media (prefers-color-scheme: light) {
  .store { background: #22151B; color: #F8EEE8; }
  .store:hover { background: #000; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 128px); isolation: isolate; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { margin-bottom: 28px; }
.hero .lede { margin-bottom: 36px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-3); }
.hero-visual { position: relative; display: flex; justify-content: center; }

.glow {
  position: absolute; inset: -18% -30% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 34% at 50% 52%, var(--glow-a), transparent 70%),
    radial-gradient(30% 30% at 62% 38%, var(--glow-c), transparent 70%),
    radial-gradient(42% 40% at 40% 66%, var(--glow-b), transparent 72%);
  filter: blur(8px);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.75; }
  50% { transform: scale(1.06); opacity: 1; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 24px; }
}

/* ---------- Phone mockup (Today screen) ---------- */
.phone {
  --w: 300px;
  width: var(--w); aspect-ratio: 9 / 19.2; flex: none;
  border-radius: 48px; padding: 10px;
  background: var(--phone-bezel);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, 0.09);
  position: relative;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 39px; overflow: hidden;
  background: #120B10; color: #F8EEE8;
  padding: 46px 16px 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 12px; line-height: 1.35;
}
.phone-screen::before {
  content: ""; position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 20px; background: #000;
}
.phone-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 36% at 50% 26%, rgba(255, 90, 95, 0.16), transparent 70%);
}
.ps-status { position: absolute; top: 15px; left: 28px; right: 24px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.ps-status i { display: inline-flex; gap: 4px; align-items: center; }
.ps-status i::before { content: ""; width: 16px; height: 9px; border-radius: 2px; border: 1.2px solid #F8EEE8; }
.ps-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.ps-date { color: #806F6C; font-size: 11px; margin: 0; }
.ps-hello { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 20px; margin: 0; letter-spacing: -0.01em; }
.ps-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; color: #1A0B10; font-size: 12px; }
.ps-card { position: relative; z-index: 1; background: #22171E; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 20px; padding: 14px; }
.ps-checkin { background: radial-gradient(90% 70% at 50% 0%, rgba(255, 90, 95, 0.16), transparent 70%), #22171E; text-align: center; padding: 16px 12px 14px; }
.ps-q { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 22px; margin: 0 0 12px; letter-spacing: -0.01em; }
.ps-orbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ps-orb { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; color: #BDAAA6; font-weight: 500; }
.ps-orb::before { content: ""; width: 46px; height: 46px; border-radius: 50%; }
.ps-orb.no::before { background: radial-gradient(circle at 35% 30%, #A9A7CF, #7C7AA6 60%, #4F4D78); opacity: 0.55; }
.ps-orb.maybe::before { background: radial-gradient(circle at 35% 30%, #FFD39C, #F0A65E 60%, #B66A28); opacity: 0.55; }
.ps-orb.yes::before { background: radial-gradient(circle at 35% 30%, #FFC1A0, #FF5A6E 55%, #C02B55); box-shadow: 0 0 0 3px #120B10, 0 0 0 4.5px #FF5A6E, 0 0 26px 6px rgba(255, 90, 110, 0.55); }
.ps-orb.yes { color: #F8EEE8; }
.ps-hint { margin: 12px 0 0; font-size: 10.5px; color: #806F6C; }
.ps-rhythm { display: flex; align-items: center; gap: 14px; }
.ps-ring { width: 66px; height: 66px; flex: none; position: relative; }
.ps-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ps-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ps-ring-arc { stroke-dasharray: 176; stroke-dashoffset: 176; animation: ring 1.6s 0.4s var(--ease) forwards; }
@keyframes ring { to { stroke-dashoffset: 76; } }
.ps-rhythm p { margin: 0; }
.ps-rhythm .t { font-weight: 600; font-size: 13px; }
.ps-rhythm .s { color: #BDAAA6; font-size: 11px; }
.ps-ok { display: inline-block; margin-top: 4px; color: #7BC6A4; font-size: 10.5px; font-weight: 600; }
.ps-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 2px; font-size: 10px; color: #806F6C; }
.ps-week span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ps-week span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.ps-week span.m::after { background: var(--grad); box-shadow: 0 0 8px rgba(255, 90, 95, 0.7); }
.ps-week span.today { color: #F8EEE8; font-weight: 700; }
.ps-log { position: relative; z-index: 1; margin-top: 2px; height: 42px; border-radius: 999px; background: var(--grad); color: #1A0B10; font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.ps-nav {
  position: absolute; left: 12px; right: 12px; bottom: 12px; height: 54px; border-radius: 22px; z-index: 2;
  background: rgba(44, 31, 39, 0.85); border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center;
}
.ps-nav span { width: 18px; height: 18px; border-radius: 6px; border: 1.6px solid #806F6C; position: relative; }
.ps-nav span.on { border-color: #FF6A4D; }
.ps-nav span.on::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 4px; height: 4px; border-radius: 50%; background: #FF6A4D; transform: translateX(-50%); }
.ps-nav span.round { border-radius: 50%; }
.ps-nav span.bars { border: 0; background: linear-gradient(90deg, #806F6C 0 3px, transparent 3px 7px, #806F6C 7px 10px, transparent 10px 14px, #806F6C 14px 17px); clip-path: polygon(0 40%, 18% 40%, 18% 100%, 0 100%, 0 40%, 40% 10%, 58% 10%, 58% 100%, 40% 100%, 40% 10%, 80% 55%, 100% 55%, 100% 100%, 80% 100%); }

@media (max-width: 420px) {
  .phone { --w: 272px; border-radius: 44px; }
  .phone-screen { border-radius: 35px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin-bottom: 20px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.step { display: flex; flex-direction: column; }
.step-visual {
  height: 220px; border-radius: var(--radius-card); margin-bottom: 26px;
  background: var(--bg-elevated); border: 1px solid var(--stroke);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.step-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 100%, var(--glow-b), transparent 70%); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-2); margin: 0; max-width: 30em; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 48px; } }

.mini-moment { position: relative; width: 74%; background: var(--surface); border: 1px solid var(--stroke); border-radius: 18px; padding: 16px 18px; font-size: 14px; }
.mini-moment .when { color: var(--text-3); font-size: 12px; margin: 0 0 6px; }
.mini-moment .flames { display: flex; gap: 4px; margin-bottom: 10px; }
.mini-moment .flames svg { width: 14px; height: 18px; }
.mini-moment .flames svg.off { opacity: 0.22; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-high); border: 1px solid var(--stroke); color: var(--text-2); }
.mini-orbs { position: relative; display: flex; gap: 18px; }
.mini-orbs span { width: 54px; height: 54px; border-radius: 50%; }
.mini-orbs .no { background: radial-gradient(circle at 35% 30%, #A9A7CF, var(--no) 60%, #4F4D78); }
.mini-orbs .maybe { background: radial-gradient(circle at 35% 30%, #FFD39C, var(--maybe) 60%, #B66A28); }
.mini-orbs .yes { background: radial-gradient(circle at 35% 30%, #FFC1A0, var(--yes) 55%, #C02B55); box-shadow: 0 0 30px 4px rgba(255, 90, 110, 0.45); }
.mini-ring { position: relative; width: 132px; height: 132px; }
.mini-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mini-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mini-ring b { font-family: var(--font-display); font-size: 38px; font-weight: 450; line-height: 1; font-variant-numeric: tabular-nums; }
.mini-ring small { font-size: 11px; color: var(--text-2); margin-top: 4px; }

/* Desire Match */
.match { background: var(--bg-elevated); border-block: 1px solid var(--stroke); overflow: hidden; }
.match::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 120vw); height: 420px; transform: translate(-50%, -55%);
  background: radial-gradient(closest-side, var(--glow-a), transparent); pointer-events: none;
}
.match h2 q { quotes: "\201C" "\201D"; }
.match-demo {
  position: relative; max-width: 880px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.person { border: 1px solid var(--stroke); background: var(--surface); border-radius: var(--radius-card); padding: 22px; margin: 0; min-width: 0; }
.person legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.person legend .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #1A0B10; background: var(--grad); }
.person legend .av.alt { background: linear-gradient(135deg, #FFC27A, #FF8A5C 50%, #FF5A6E); }
.choices { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice label {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px;
  border-radius: 18px; border: 1px solid var(--stroke); background: var(--surface-high);
  font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; text-align: center;
  transition: border-color 0.2s, color 0.2s, transform 0.18s var(--ease);
}
.choice label::before { content: ""; width: 28px; height: 28px; border-radius: 50%; opacity: 0.45; transition: opacity 0.2s, box-shadow 0.3s; }
.choice.no label::before { background: var(--no); }
.choice.maybe label::before { background: var(--maybe); }
.choice.yes label::before { background: var(--yes); }
.choice input:checked + label { color: var(--text); border-color: var(--stroke-strong); }
.choice input:checked + label::before { opacity: 1; box-shadow: 0 0 18px 2px currentColor; }
.choice.no input:checked + label::before { box-shadow: 0 0 18px 2px rgba(124, 122, 166, 0.6); }
.choice.maybe input:checked + label::before { box-shadow: 0 0 18px 2px rgba(240, 166, 94, 0.6); }
.choice.yes input:checked + label::before { box-shadow: 0 0 18px 2px rgba(255, 90, 110, 0.7); }
.choice input:focus-visible + label { outline: 2px solid var(--ember); outline-offset: 2px; }
.choice input:active + label { transform: scale(0.96); }
.match-result {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.sees { border-radius: var(--radius-card); padding: 20px 22px; background: var(--bg); border: 1px dashed var(--stroke-strong); min-height: 112px; transition: background-color 0.4s, border-color 0.4s; }
.sees h3 { font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: 0.01em; margin-bottom: 8px; }
.sees p { margin: 0; font-size: 16px; }
.sees.is-match { border-style: solid; border-color: rgba(244, 196, 122, 0.5); background: radial-gradient(120% 120% at 50% 0%, rgba(244, 196, 122, 0.16), transparent 70%), var(--surface); }
.sees.is-match p { font-family: var(--font-display); font-size: 22px; color: var(--gold); }
.match-foot { text-align: center; margin: 28px auto 0; color: var(--text-3); font-size: 14px; max-width: 46em; }
@media (max-width: 720px) {
  .match-demo, .match-result { grid-template-columns: 1fr; }
}

/* Split layouts (Guide, Privacy) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split .lede { margin-bottom: 28px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: radial-gradient(circle, transparent 3px, #000 3.5px);
  mask: radial-gradient(circle, transparent 3px, #000 3.5px);
}
.ticks li strong { color: var(--text); font-weight: 600; }

.chat { position: relative; background: var(--bg-elevated); border: 1px solid var(--stroke); border-radius: var(--radius-sheet); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.chat::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: radial-gradient(70% 50% at 20% 0%, var(--glow-c), transparent 70%); }
.chat-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin-bottom: 4px; position: relative; }
.chat-head svg { width: 18px; height: 22px; }
.chat-head .badge { margin-left: auto; }
.bubble { position: relative; max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--surface-high); border: 1px solid var(--stroke); border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--stroke); border-bottom-left-radius: 6px; color: var(--text); }
.bubble.ai p { margin: 0 0 8px; }
.bubble.ai p:last-child { margin: 0; }
.chat-foot { position: relative; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--gold); background: rgba(244, 196, 122, 0.12); border: 1px solid rgba(244, 196, 122, 0.3); }

/* Privacy commitments */
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.privacy-list li { padding-top: 22px; border-top: 1px solid var(--stroke-strong); }
.privacy-list h3 { font-family: var(--font-ui); font-size: 17px; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.privacy-list h3 svg { width: 20px; height: 20px; color: var(--ember-text); flex: none; }
.privacy-list p { color: var(--text-2); margin: 0; font-size: 16px; }
@media (max-width: 640px) { .privacy-list { grid-template-columns: 1fr; gap: 28px; } }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1.08fr; gap: 20px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.plan { border-radius: var(--radius-sheet); padding: clamp(26px, 3.4vw, 40px); border: 1px solid var(--stroke); background: var(--bg-elevated); display: flex; flex-direction: column; }
.plan h3 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 6px; }
.plan .tag { color: var(--text-2); margin-bottom: 26px; }
.plan .ticks { margin-bottom: 30px; }
.plan .ticks li { color: var(--text); }
.plan-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.plan-cta .small { color: var(--text-3); margin: 0; }
.plan.plus {
  position: relative; border-color: rgba(244, 196, 122, 0.32);
  background: radial-gradient(90% 60% at 80% 0%, rgba(255, 90, 95, 0.18), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(244, 196, 122, 0.10), transparent 70%), var(--surface);
}
.plan.plus h3 { display: flex; align-items: center; gap: 12px; }
.plan.plus .ticks li::before { background: linear-gradient(135deg, #FFD9A0, var(--gold)); }
@media (prefers-color-scheme: light) { .plan.plus .ticks li::before { background: linear-gradient(135deg, #E9B565, var(--gold)); } }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--stroke-strong); }
.faq details:last-child { border-bottom: 1px solid var(--stroke-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: clamp(19px, 2vw, 23px); font-weight: 430; letter-spacing: -0.01em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.75px solid var(--text-2); border-bottom: 1.75px solid var(--text-2); transform: rotate(45deg);
  transition: transform 0.3s var(--ease), margin 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:focus-visible { outline-offset: -2px; }
.faq .answer { padding: 0 0 26px; color: var(--text-2); max-width: 44em; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Closing CTA */
.closing { text-align: center; padding: clamp(90px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.closing .glow { inset: 0; }
.closing h2 { font-size: clamp(44px, 7vw, 92px); margin-bottom: 20px; }
.closing .lede { margin: 0 auto 36px; }
.closing .stores { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--stroke); padding: 56px 0 40px; font-size: 15px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: 0; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--text-2); }
.footer-grid a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-blurb { max-width: 22em; margin-top: 16px; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--stroke); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--text-3); font-size: 13px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Document pages (privacy, terms, support) ---------- */
.doc { padding: clamp(48px, 8vw, 96px) 0 clamp(80px, 10vw, 120px); }
.doc .wrap { max-width: 820px; }
.doc-head { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--stroke-strong); }
.doc-head h1 { font-size: clamp(44px, 7vw, 76px); margin-bottom: 18px; }
.doc-head p { color: var(--text-2); margin: 0; }
.doc-body { font-size: 17px; }
.doc-body h2 { font-size: clamp(26px, 3vw, 32px); margin: 56px 0 16px; scroll-margin-top: 90px; }
.doc-body h3 { font-family: var(--font-ui); font-size: 18px; font-weight: 600; letter-spacing: 0; margin: 30px 0 10px; }
.doc-body p, .doc-body li { color: var(--text-2); }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc-body li { margin-bottom: 8px; }
.doc-body a { color: var(--ember-text); text-underline-offset: 3px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; display: block; overflow-x: auto; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--stroke); color: var(--text-2); min-width: 140px; }
.doc-body th { color: var(--text); font-weight: 600; }
.toc { background: var(--bg-elevated); border: 1px solid var(--stroke); border-radius: var(--radius-card); padding: 22px 26px; margin-bottom: 8px; }
.toc h2 { font-family: var(--font-ui); font-size: 15px; font-weight: 600; margin: 0 0 10px; letter-spacing: 0; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.callout { border-radius: 20px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--stroke); margin: 0 0 24px; }
.callout p { margin: 0; color: var(--text); }

/* ---------- Forms & app-ish panels (delete account, invite) ---------- */
.panel-page { padding: clamp(40px, 8vw, 96px) 0 clamp(80px, 10vw, 120px); position: relative; isolation: isolate; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .panel-grid { grid-template-columns: 1fr; } }
.panel { background: var(--bg-elevated); border: 1px solid var(--stroke); border-radius: var(--radius-sheet); padding: clamp(24px, 3.5vw, 36px); position: relative; }
.panel h2 { font-size: 28px; margin-bottom: 8px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.field input {
  height: 52px; border-radius: 16px; border: 1px solid var(--stroke-strong); background: var(--surface);
  padding: 0 16px; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255, 106, 77, 0.18); }
.form-error { color: var(--danger); font-size: 15px; margin: 0 0 16px; }
.form-error:empty { display: none; }
.panel .btn { width: 100%; }
.panel .small { color: var(--text-3); margin-top: 16px; }

dialog {
  border: 1px solid var(--stroke-strong); border-radius: var(--radius-sheet); padding: 28px; max-width: min(440px, calc(100vw - 32px));
  background: var(--bg-elevated); color: var(--text);
}
dialog::backdrop { background: rgba(10, 5, 8, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog h2 { font-size: 26px; margin-bottom: 10px; }
dialog p { color: var(--text-2); }
.dialog-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.dialog-actions .btn { flex: 1 1 140px; }

.code {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 450;
  font-size: clamp(44px, 12vw, 64px); letter-spacing: 0.14em; line-height: 1; font-variant-numeric: tabular-nums;
  padding: 22px 0 22px 0.14em; text-align: center; border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke);
  word-break: break-all;
}
.steps-list { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; color: var(--text-2); }
.steps-list li::before {
  content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--text);
  background: var(--surface-high); border: 1px solid var(--stroke-strong);
}
.steps-list strong { color: var(--text); display: block; font-weight: 600; }

.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); font-size: 15px; color: var(--text-2); }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 2px; }

.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; position: relative; isolation: isolate; }
.center-page h1 { font-size: clamp(48px, 9vw, 96px); margin-bottom: 18px; }
.center-page .lede { margin: 0 auto 32px; }

/* ---------- Reveal + motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .ps-ring-arc { stroke-dashoffset: 76; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.split h2 { margin-bottom: 22px; }
html, body { overflow-x: clip; }
.hero, .panel-page, .center-page, .closing { overflow-x: clip; }
.panel-page h1 { font-size: clamp(44px, 7vw, 76px); margin-bottom: 22px; }
.panel-page .lede { margin-bottom: 32px; }
.panel .notice { margin-top: 20px; }
.panel .stores { margin-top: 12px; }
.panel .stores .store { flex: 1 1 160px; }
.panel .dialog-actions { margin-top: 18px; }
#inv-sub { margin-bottom: 18px; }
@media (max-width: 860px) { .step-visual { height: 190px; } }
.invite-grid { grid-template-areas: "intro panel" "steps panel"; grid-template-rows: auto 1fr; row-gap: 8px; }
.inv-intro { grid-area: intro; }
.inv-steps { grid-area: steps; }
.inv-panel { grid-area: panel; }
@media (max-width: 900px) {
  .invite-grid { grid-template-areas: "intro" "panel" "steps"; row-gap: 40px; }
  .invite-grid .lede { margin-bottom: 0; }
}
