/* Dusk Glass, copied from the app's palettes in src/components/ui.tsx. Keep the two in sync. */
:root {
  color-scheme: dark;
  --bg: #120E1F;
  --scene:
    radial-gradient(circle at 0% 0%, rgba(110,80,255,0.26) 0%, rgba(110,80,255,0) 55%),
    radial-gradient(circle at 100% 35%, rgba(242,61,126,0.14) 0%, rgba(242,61,126,0) 45%),
    radial-gradient(circle at 100% 100%, rgba(60,90,255,0.16) 0%, rgba(60,90,255,0) 50%);
  --surface: rgba(255,255,255,0.08);
  --surface-alt: rgba(110,78,245,0.2);
  --border: rgba(255,255,255,0.12);
  --text: #F4F0FF;
  --muted: #B3AACB;
  --accent: #C9BBFF;
  --tint: rgba(255,255,255,0.10);
  --primary: #6E4EF5;
  --primary-end: #9C48CB;
  --on-primary: #FFFFFF;
  --heart: #F23D7E;
  --error: #FF8A80;
  --glass: rgba(28,20,52,0.5);
  --glass-edge: rgba(255,255,255,0.22);
  --dock-idle: #A8A0C4;
  --input: rgba(255,255,255,0.08);
  --shadow: rgba(0,0,0,0.55);
  --card-face: #F6EFE2;
  --card-edge: #CFC3AE;
  --card-ink: #231A3D;
  --card-red: #C8234A;
  --lime: #C6F04B; /* the app icon's ground */
  --bezel: #08060F;
  /* The app's one spring, approximated: quick with a small overshoot. */
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #F3EFFC;
    --scene:
      radial-gradient(circle at 0% 0%, rgba(211,196,255,0.6) 0%, rgba(211,196,255,0) 55%),
      radial-gradient(circle at 100% 35%, rgba(255,210,227,0.45) 0%, rgba(255,210,227,0) 45%),
      radial-gradient(circle at 100% 100%, rgba(210,222,255,0.5) 0%, rgba(210,222,255,0) 50%);
    --surface: rgba(255,255,255,0.6);
    --surface-alt: rgba(91,63,224,0.1);
    --border: rgba(31,22,54,0.10);
    --text: #1F1636;
    --muted: #6E6585;
    --accent: #5B3FE0;
    --tint: rgba(255,255,255,0.6);
    --primary: #5B3FE0;
    --primary-end: #8A3EBC;
    --heart: #E23C78;
    --error: #C42B1C;
    --glass: rgba(255,255,255,0.5);
    --glass-edge: rgba(255,255,255,0.9);
    --dock-idle: #6E6585;
    --input: rgba(255,255,255,0.7);
    --shadow: rgba(60,30,120,0.3);
    --card-face: #FFFDF8;
    --card-edge: #E4DACB;
    --bezel: #1F1636;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--scene), var(--bg);
  background-attachment: fixed;
  font: 400 16px/1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-weight: 700; margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
h1 em, .serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
h1 em { color: var(--accent); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 20px; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(64px, 10vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .lead { margin-top: 16px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 18px; max-width: 560px; }

/* Material Symbols, filled for a selected state, as in the app's Icon. */
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; font-variation-settings: 'FILL' 0, 'wght' 500; user-select: none; }
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 500; }
.accent { color: var(--accent); }

/* Content cards (`raised`) and floating glass. No borders: a faint top highlight separates them. */
.raised { background: var(--surface); border-radius: 24px; box-shadow: inset 0 1px 0 var(--glass-edge), 0 12px 30px -14px var(--shadow); }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 1px 0 var(--glass-edge), 0 6px 16px -10px var(--shadow); }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px 22px; cursor: pointer;
  font: 600 16px/1 Inter, sans-serif; color: var(--on-primary);
  background: linear-gradient(180deg, var(--primary), var(--primary-end));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 10px 24px -12px var(--primary);
  transition: transform .4s var(--spring);
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(0.96); }
.btn:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn.block { width: 100%; padding: 9px 10px; font-size: 11px; }
.btn.ghost { background: var(--tint); color: var(--text); box-shadow: inset 0 1px 0 var(--glass-edge); }
.btn-row { display: flex; gap: 6px; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--tint); box-shadow: inset 0 1px 0 var(--glass-edge); font-weight: 500; font-size: 14px; }
.chip.intent { background: var(--surface-alt); color: var(--accent); font-size: 11px; padding: 5px 10px; font-weight: 600; }
.chip.mini { font-size: 9px; padding: 2px 7px; margin-left: 6px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row.center { justify-content: center; }

/* Nav */
.nav {
  position: sticky; top: 12px; z-index: 10;
  width: min(1120px, 100% - 32px); margin: 12px auto 0; padding: 10px 10px 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 18px 'Bricolage Grotesque', sans-serif; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--lime); color: #17151F; display: grid; place-items: center; flex: none; }
.logo svg { width: 76%; height: 76%; fill: currentColor; }
.logo.big { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 20px; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: clamp(40px, 8vw, 96px); }
.hero h1 { margin-bottom: 20px; }
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; max-width: 480px; }
.waitlist input {
  flex: 1 1 220px; min-width: 0; border: 0; border-radius: 999px; padding: 14px 20px;
  font: 400 16px Inter, sans-serif; color: var(--text); background: var(--input); box-shadow: inset 0 1px 0 var(--glass-edge);
}
.waitlist input::placeholder { color: var(--muted); }
.form-note { flex-basis: 100%; color: var(--muted); font-size: 13px; padding-left: 4px; }
.form-note.ok { color: var(--accent); font-weight: 600; }
.form-note.err { color: var(--error); }
.phone-stage { position: relative; display: grid; place-items: center; }
.glow { position: absolute; inset: 10% 0; z-index: -1; filter: blur(60px); background: radial-gradient(circle at 30% 40%, var(--primary), transparent 60%), radial-gradient(circle at 70% 70%, var(--heart), transparent 55%); opacity: .45; }

/* Phone mockups */
.phone {
  width: 300px; aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 10px; background: var(--bezel);
  box-shadow: 0 40px 80px -30px var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,0.12);
  flex: none;
}
.small-phone { width: 270px; }
.screen {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden;
  background: var(--scene), var(--bg); padding: 46px 14px 0; font-size: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.screen::before { content: ''; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 84px; height: 24px; border-radius: 99px; background: var(--bezel); }
.app-head { display: flex; justify-content: space-between; align-items: center; }
.app-title { font: 700 20px 'Bricolage Grotesque', sans-serif; }
.app-title.long { font-size: 16px; }
.mini-label { color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 16px 'Bricolage Grotesque', sans-serif; color: #fff; flex: none; }
.avatar.tiny { width: 28px; height: 28px; font-size: 12px; }
.avatar.ring { outline: 2.5px solid var(--heart); outline-offset: 2px; }
/* Made-up people: gradients instead of photos. */
.a1 { background: linear-gradient(160deg, #FFB199 0%, #D6336C 55%, #3B1236 100%); }
.a2 { background: linear-gradient(160deg, #9ED9C3, #2E6F8E); }
.a3 { background: linear-gradient(160deg, #B8A6FF, #6E4EF5); }
.a4 { background: linear-gradient(160deg, #FFC9A8, #9C48CB); }
.a5 { background: linear-gradient(160deg, #F6EFE2, #C8234A); }
.photo { position: relative; border-radius: 22px; height: 210px; flex: none; display: flex; align-items: flex-end; padding: 14px; color: #fff; overflow: hidden; }
.photo.short { height: 190px; }
.photo::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.photo-name { position: relative; z-index: 1; display: flex; flex-direction: column; }
.photo-name strong { font: 700 22px 'Bricolage Grotesque', sans-serif; }
.photo-name span { opacity: .9; font-size: 11px; }
.badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px 5px 6px; border-radius: 99px; font-size: 10px; font-weight: 600; color: var(--text); z-index: 1; }
.badge .ms { font-size: 15px; color: var(--accent); }
.like { position: absolute; right: 22px; bottom: 96px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--heart); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px var(--heart); animation: beat 2.6s var(--spring) infinite; }
@keyframes beat { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.14); } 86% { transform: scale(.97); } }
.dock {
  position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: flex; gap: 6px; padding: 6px; border-radius: 99px;
}
.dock .ms { width: 44px; height: 40px; display: grid; place-items: center; font-size: 21px; border-radius: 99px; color: var(--dock-idle); }
.dock .ms.on { color: #fff; background: linear-gradient(180deg, var(--primary), var(--primary-end)); box-shadow: 0 6px 14px -6px var(--primary); }

/* Playing cards (CardView): ivory face, suit in two corners, no rank letters, no tilt. */
.pcard {
  position: relative; background: var(--card-face); color: var(--card-ink); border-radius: 18px; padding: 16px 18px 18px;
  box-shadow: 0 3px 0 var(--card-edge), 0 14px 28px -14px rgba(0,0,0,.5); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.pcard::before { content: ''; position: absolute; inset: 6px; border-radius: 13px; border: 1px solid var(--ink); opacity: .3; }
.pip { fill: var(--ink); }
.corner { position: absolute; width: 13px; height: 13px; }
.tl { top: 12px; left: 12px; }
.br { bottom: 12px; right: 12px; transform: rotate(180deg); }
.pip.big { width: 34px; height: 34px; }
.pcat { color: var(--ink); font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ptitle { font: 700 16px/1.2 'Bricolage Grotesque', sans-serif; }
.pbody { font: italic 400 14px/1.3 'Instrument Serif', serif; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { position: relative; padding: 24px 20px; }
.steps li:nth-child(even) { background: var(--surface-alt); }
.steps p, .safety p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.steps h3 { font-size: 18px; }
.step-n { position: absolute; top: 18px; right: 20px; color: var(--muted); font: 800 14px 'Bricolage Grotesque', sans-serif; }
.icon { color: var(--accent); font-size: 28px; margin-bottom: 14px; }
.icon.heart { color: var(--heart); }

/* Features */
.feature { display: flex; align-items: center; justify-content: center; gap: clamp(32px, 7vw, 96px); margin-bottom: 72px; }
.feature.flip { flex-direction: row-reverse; }
.feature-copy { max-width: 460px; }
.feature-copy h3 { font-size: clamp(26px, 3vw, 34px); margin: 14px 0 18px; }
.tag { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; }
.tag .ms { font-size: 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks li::before { content: 'check' / ''; font-family: 'Material Symbols Rounded'; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 20px; line-height: 1.2; }

.matches { display: flex; gap: 14px; padding: 4px 4px 6px; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.chat-top { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.chat-top strong { font: 700 14px 'Bricolage Grotesque', sans-serif; }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: 16px; line-height: 1.35; font-size: 11.5px; }
.bubble.them { background: var(--surface); box-shadow: inset 0 1px 0 var(--glass-edge); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; color: #fff; background: linear-gradient(180deg, var(--primary), var(--primary-end)); border-bottom-right-radius: 5px; }
.meet { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 12px; border-radius: 16px; font-weight: 600; margin-top: 4px; }
.meet .ms { font-size: 16px; color: var(--accent); }
.toggle { margin-left: auto; width: 34px; height: 20px; border-radius: 99px; background: var(--primary); position: relative; }
.toggle::after { content: ''; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }

.call { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.call-row { display: flex; align-items: center; gap: 10px; }
.call-row strong { display: block; font: 700 16px 'Bricolage Grotesque', sans-serif; }
.call .serif { font-size: 22px; }

.post-screen { background: #FFC9A8; color: #1F1636; }
.post-screen .app-title { color: #1F1636; }
.post { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 0 6px 90px; }
.post .serif { font-size: 25px; line-height: 1.15; }
.post-by { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 11px; }
.btn.dark { background: #1F1636; box-shadow: none; }
.btn.dark-ghost { background: rgba(31,22,54,.1); color: #1F1636; box-shadow: none; }

.batch { padding: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.batch strong { font: 700 17px 'Bricolage Grotesque', sans-serif; margin-top: 4px; }
.dots { display: flex; gap: 5px; margin-top: 10px; }
.dots i { width: 14px; height: 4px; border-radius: 4px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--border); }
.dots i.on { background: var(--accent); box-shadow: none; }

/* Topic deck */
.deck { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tcard { position: relative; margin: 0; background: var(--card-face); border-radius: 18px; padding: 10px 10px 14px; box-shadow: 0 3px 0 var(--card-edge), 0 18px 30px -18px rgba(0,0,0,.6); transition: transform .5s var(--spring); }
.tcard:hover { transform: translateY(-8px); }
.tcard img { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; }
.tcard figcaption { color: var(--card-ink); font: 700 15px 'Bricolage Grotesque', sans-serif; text-align: center; margin-top: 10px; }
.tcard .corner { top: 16px; left: 16px; width: 16px; height: 16px; z-index: 1; filter: drop-shadow(0 0 2px var(--card-face)) drop-shadow(0 0 2px var(--card-face)); }

/* Compare */
.compare { padding: 8px 24px; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.compare-row:last-child { border-bottom: 0; }
.compare-row span:first-child { font-weight: 600; }
.compare-row span:nth-child(2) { color: var(--muted); }
.compare-row span:nth-child(3) { color: var(--accent); font-weight: 600; }
.compare-row.head span { font: 700 13px Inter, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.intents { text-align: center; margin-top: 48px; display: grid; gap: 16px; justify-items: center; }
.intents > p:first-child { font: 700 22px 'Bricolage Grotesque', sans-serif; }

/* Safety */
.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.safety > div { padding: 24px; }

/* Join */
.join { text-align: center; padding: clamp(40px, 6vw, 72px) 24px; display: flex; flex-direction: column; align-items: center; background: var(--surface-alt); }
.join h2 { margin-bottom: 12px; }
.join .waitlist { justify-content: center; }
.join .form-note { text-align: center; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.store { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 16px; text-align: left; }
.store .ms { font-size: 28px; color: var(--accent); }
.store strong { display: block; font-size: 15px; }
.store small { color: var(--muted); font-size: 12px; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; padding: 48px 0 40px; }

/* Motion: things rise into place as they scroll in; playing cards are dealt. Only with JS, so the page works without it. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .9s var(--spring); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .steps li:nth-child(2), .js .safety > div:nth-child(2) { transition-delay: .06s; }
.js .steps li:nth-child(3), .js .safety > div:nth-child(3) { transition-delay: .12s; }
.js .steps li:nth-child(4), .js .safety > div:nth-child(4) { transition-delay: .18s; }
.js .steps li:nth-child(5), .js .safety > div:nth-child(5) { transition-delay: .24s; }
.js .safety > div:nth-child(6) { transition-delay: .3s; }
.js .deck .tcard { opacity: 0; }
.js .deck.in .tcard { opacity: 1; animation: deal .8s var(--spring) backwards; } /* backwards, not both: a held end state would block the hover lift */
.deck.in .tcard:nth-child(odd) { --t: -1; }
.deck.in .tcard:nth-child(2) { animation-delay: .07s; } .deck.in .tcard:nth-child(3) { animation-delay: .14s; }
.deck.in .tcard:nth-child(4) { animation-delay: .21s; } .deck.in .tcard:nth-child(5) { animation-delay: .28s; }
.deck.in .tcard:nth-child(6) { animation-delay: .35s; }
@keyframes deal {
  from { opacity: 0; transform: translateY(70px) rotate(calc(var(--t, 1) * 9deg)) scale(.85); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .deck .tcard { opacity: 1; transform: none; }
}

/* Layout at smaller widths */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:last-child { grid-column: span 2; }
  .deck { grid-template-columns: repeat(3, 1fr); }
  .safety { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .feature, .feature.flip { flex-direction: column; align-items: flex-start; }
  .feature .phone { align-self: center; }
}
@media (max-width: 560px) {
  .brand span:last-child { display: none; }
  .steps, .safety { grid-template-columns: 1fr; }
  .steps li:last-child { grid-column: auto; }
  .deck { grid-template-columns: repeat(2, 1fr); }
  .compare { padding: 4px 16px; }
  .compare-row { grid-template-columns: 1fr 1fr; font-size: 14px; }
  .compare-row span:first-child { grid-column: span 2; }
  .compare-row.head span:first-child { display: none; }
  .phone { width: 280px; }
  .small-phone { width: 260px; }
}
