/* TasteBoxd landing (public/landing/, served at / to signed-out visitors). Matches the app: dark screening-room UI, two person colours, glow. */
:root {
  --bg: #0b0b10;
  --surface: #14141c;
  --surface-2: #1c1c27;
  --line: #2a2a38;
  --text: #ecebf2;
  --muted: #9a98ad;
  --you: #4f8cff;
  --them: #ff5fa2;
  --together: #a776d0;
  --gold: #f5c35b;
  --radius: 18px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  min-height: 100vh;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(3rem, 10vw, 5.5rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-variation-settings: "opsz" 72; margin-bottom: 10px; }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Ambient glows (fixed, clipped by body overflow) */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: .5; z-index: 0; }
.glow-a { width: 60vw; height: 60vw; max-width: 640px; max-height: 640px; top: -20vw; left: -20vw; background: radial-gradient(circle, rgba(79,140,255,.45), transparent 65%); }
.glow-b { width: 70vw; height: 70vw; max-width: 760px; max-height: 760px; top: 10vh; right: -30vw; background: radial-gradient(circle, rgba(255,95,162,.35), transparent 65%); }
main, header, footer { position: relative; z-index: 1; }

/* Header */
.top { position: sticky; top: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(11,11,16,.72); border-bottom: 1px solid rgba(42,42,56,.6); z-index: 5; }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.mark { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav a.btn { color: #fff; }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px;
  color: #fff; padding: 12px 20px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  background: linear-gradient(90deg, var(--you), #8e7ae6 50%, var(--them));
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 8px 30px rgba(140,110,230,.28);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 12px 36px rgba(140,110,230,.4); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-ghost { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1px #3c3c50 inset; }
.btn-text { background: none; box-shadow: none; color: var(--muted); padding-left: 8px; padding-right: 8px; }
.btn-text:hover { color: var(--text); box-shadow: none; transform: none; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* Hero */
.hero { text-align: center; padding: 56px 16px 48px; }
.hero-mark { width: 200px; margin: 0 auto 10px; }
.hero-mark svg { width: 100%; height: auto; overflow: visible; }
.orb { transform-origin: 100px 60px; }
.orb-you { animation: breathe-l 7s ease-in-out infinite; }
.orb-them { animation: breathe-r 7s ease-in-out infinite; }
@keyframes breathe-l { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes breathe-r { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-8px); } }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hero h1 { background: linear-gradient(90deg, #cfe0ff, #fff 45%, #ffd3e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 620px; margin: 18px auto 28px; font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: #cfcdda; }
.link-arrow { display: inline-block; margin-top: 22px; font-size: 14px; color: var(--muted); text-decoration: none; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero .form-note { margin-top: 14px; text-align: center; padding-left: 0; }
.link-arrow:hover { color: var(--text); }

/* Waitlist form */
.waitlist { display: grid; grid-template-columns: 1fr auto; gap: 10px; max-width: 460px; margin: 0 auto; position: relative; }
.waitlist input {
  min-width: 0; width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.waitlist input:focus { border-color: var(--you); box-shadow: 0 0 0 4px rgba(79,140,255,.18); }
.waitlist input[aria-invalid="true"] { border-color: var(--them); }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); min-height: 1.3em; text-align: left; padding-left: 6px; }
.form-note.ok { color: #9fe3bf; }
.form-note.err { color: #ff9cc4; }
.waitlist.done input, .waitlist.done button { display: none; }
.waitlist.done .form-note { font-size: 15px; text-align: center; padding: 6px 0; }
@media (max-width: 420px) { .waitlist { grid-template-columns: 1fr; } .waitlist .btn { width: 100%; } }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Demo */
.demo { padding: 56px 0 40px; }
.demo .sub, .pricing .sub { max-width: 620px; color: var(--muted); margin-bottom: 26px; }
.demo-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: 400px 1fr; align-items: start; } }

.picker { padding: 16px; }
.who-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.who-switch { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.who { appearance: none; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.who .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .55; }
.who.you .dot { background: var(--you); }
.who.them .dot { background: var(--them); }
.who .count { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.who.is-active { color: var(--text); background: #262636; }
.who.is-active .dot { opacity: 1; box-shadow: 0 0 10px currentColor; }
.who.you.is-active .dot { box-shadow: 0 0 10px var(--you); }
.who.them.is-active .dot { box-shadow: 0 0 10px var(--them); }
.names { display: flex; gap: 6px; }
.names input { width: 84px; font: inherit; font-size: 13px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; outline: none; }
.names input:focus { border-color: #3c3c50; }
.names label:first-child input:focus { border-color: var(--you); }
.names label:last-child input:focus { border-color: var(--them); }
.hint { font-size: 13px; color: var(--muted); margin: 12px 0 10px; }
.hint strong { font-weight: 600; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 420px; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
@media (min-width: 900px) { .chips { max-height: 520px; } }
.chip {
  appearance: none; font: inherit; font-size: 13px; line-height: 1; color: #d6d4e3; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px;
  display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3a3a4c; flex: none; }
.chip:hover { border-color: #3c3c50; }
.chip:active { transform: scale(.97); }
.chip.you { border-color: rgba(79,140,255,.6); background: rgba(79,140,255,.1); }
.chip.you::before { background: var(--you); box-shadow: 0 0 8px var(--you); }
.chip.them { border-color: rgba(255,95,162,.6); background: rgba(255,95,162,.1); }
.chip.them::before { background: var(--them); box-shadow: 0 0 8px var(--them); }
.chip.both { border-color: rgba(167,118,208,.75); background: rgba(167,118,208,.14); }
.chip.both::before { background: linear-gradient(90deg, var(--you), var(--them)); box-shadow: 0 0 8px var(--together); }
.picker-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }

.stage { padding: 12px; overflow: hidden; }
#venn { width: 100%; height: auto; border-radius: 12px; touch-action: pan-y; background: radial-gradient(ellipse at 50% 45%, #11111a, var(--bg) 70%); }
.tonight { padding: 12px 6px 4px; }
.tonight h3 { font-size: 1.05rem; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tonight h3 .muted { font-family: var(--font-sans); font-size: 12px; font-weight: 400; }
.tonight-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.tonight-list li { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 14px; animation: rise .35s ease both; }
.tonight-list li:nth-child(2) { animation-delay: .08s; }
.tonight-list li:nth-child(3) { animation-delay: .16s; }
.tonight-list .n { width: 22px; height: 22px; border-radius: 50%; background: rgba(245,195,91,.15); color: var(--gold); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; flex: none; }
.tonight-list .t { font-weight: 500; }
.tonight-list .why { color: var(--muted); font-size: 12px; margin-left: auto; text-align: right; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 6px 4px; }

/* Features */
.features { padding: 56px 16px; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 22px; }
.feature p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.step-num { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.feature-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon.gold { color: var(--gold); box-shadow: 0 0 24px rgba(245,195,91,.15); }
.feature-icon.blue { color: var(--you); box-shadow: 0 0 24px rgba(79,140,255,.18); }
.feature-icon.blend { box-shadow: 0 0 24px rgba(167,118,208,.2); }

/* Pricing */
.pricing { padding: 24px 16px 64px; }
.notice { margin-top: -4px; }
.pill { display: inline-block; font-size: 12px; letter-spacing: .04em; color: var(--gold); border: 1px solid rgba(245,195,91,.4); background: rgba(245,195,91,.08); border-radius: 999px; padding: 4px 10px; }
.price-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price { padding: 22px; }
.price.featured { border-color: rgba(167,118,208,.6); box-shadow: 0 0 0 1px rgba(167,118,208,.25), 0 10px 40px rgba(167,118,208,.14); background: linear-gradient(180deg, rgba(167,118,208,.08), var(--surface) 60%); }
.amount { font-family: var(--font-display); font-size: 2.1rem; margin: 8px 0 10px; line-height: 1; }
.amount span { font-size: 1rem; color: var(--muted); font-family: var(--font-sans); }
.amount em { font-style: normal; font-size: .95rem; color: var(--muted); font-family: var(--font-sans); display: block; margin-top: 6px; }
.price ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: #cfcdda; }
.price li::before { content: "\2022"; color: var(--together); margin-right: 8px; }
.cta-band { margin-top: 28px; padding: 22px; display: grid; gap: 16px; align-items: center; }
@media (min-width: 720px) { .cta-band { grid-template-columns: 1fr 1fr; } .cta-band .waitlist { margin: 0 0 0 auto; } }
.cta-band h3 { margin-bottom: 4px; }
.cta-band-action { margin-top: 14px; }

/* Footer */
.foot { padding: 28px 16px 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: grid; gap: 8px; }
.foot a { color: #cfcdda; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.tmdb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tmdb svg { flex: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); background: #22222f; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 10; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .tonight-list li { animation: none !important; }
  .btn, .chip, .toast { transition: none; }
}
