@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #070506;
  --ink-2: #0e0809;
  --burgundy-deep: #2a0a10;
  --burgundy: #5c1220;
  --red: #b91f2e;
  --red-hi: #e24650;
  --paper: #f6f1f1;
  --muted: #b7abad;
  --line: rgba(255, 255, 255, 0.1);
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0; color: var(--paper); background: var(--ink);
  font-family: var(--body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }

/* ---------- top bar ---------- */
.top {
  position: absolute; z-index: 20; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) clamp(20px, 4vw, 48px) 0;
}
/* Matches the production lockup (components/brand + styles/globals.css): 1.2rem, mark 1.22em, weight 500, mark and "u" in brand red #b91f2e, "vious" in #f5f5f7 */
.brand { display: inline-flex; align-items: flex-end; line-height: 1; font-size: 1.2rem; text-decoration: none; color: #f5f5f7; font-family: var(--display); font-weight: 500; letter-spacing: -0.035em; text-transform: lowercase; white-space: nowrap; }
.mark { display: block; height: 1.22em; width: auto; margin-bottom: -0.05em; flex-shrink: 0; color: #b91f2e; }
.word { display: inline-flex; align-items: baseline; }
.word .u { color: #b91f2e; }
.word .vious { color: #f5f5f7; }
.top-link { font-size: 0.9rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.top-link:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 100px 0 64px; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 72% center; animation: drift 28s ease-in-out infinite alternate; transform-origin: 70% 55%; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(75% 85% at 14% 58%, rgba(96, 14, 30, 0.5), rgba(42, 10, 16, 0.28) 45%, transparent 75%),
    radial-gradient(90% 70% at 85% 60%, rgba(120, 18, 36, 0.38), transparent 60%),
    linear-gradient(90deg, rgba(7, 5, 6, 0.9) 0%, rgba(7, 5, 6, 0.7) 38%, rgba(30, 6, 12, 0.35) 70%, rgba(7, 5, 6, 0.55) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 28%, transparent 80%, rgba(7, 5, 6, 0.7) 100%);
}
.grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-inner { position: relative; z-index: 3; }
.slate { display: flex; flex-wrap: wrap; gap: 0; font: 600 0.72rem/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.slate span { padding: 6px 12px; border: 1px solid var(--line); margin-left: -1px; }
.slate span:first-child { color: #fff; background: var(--red); border-color: var(--red); margin-left: 0; }

h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95;
  font-size: clamp(2.5rem, 6vw, 4.75rem); margin: 22px 0 18px; color: #fff;
}
h1 em, h2 em { font-style: normal; color: var(--red); } /* exact logo red #b91f2e */
.lede { max-width: 42ch; font-size: clamp(1rem, 1.5vw, 1.15rem); color: #e6dcdd; margin-bottom: 28px; }

/* ---------- form ---------- */
.join { max-width: 540px; }
.center .join { margin-inline: auto; }
.join-row { display: flex; gap: 10px; padding: 6px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; backdrop-filter: blur(8px); transition: border-color 0.2s, box-shadow 0.2s; }
.join-row:focus-within { border-color: var(--red-hi); box-shadow: 0 0 0 4px rgba(185, 31, 46, 0.28); }
.join input[type="email"] { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; font-size: 1rem; padding: 12px 14px; outline: none; }
.join input::placeholder { color: #8e8184; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  position: relative; border: 0; cursor: pointer; font: 600 1rem var(--display); letter-spacing: -0.01em; color: #fff;
  background: linear-gradient(180deg, #cc2a3a, var(--red)); padding: 0 24px; border-radius: 10px; min-height: 52px; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(185, 31, 46, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn[disabled] { cursor: progress; filter: grayscale(0.4) brightness(0.8); }
.btn-sm { min-height: 44px; padding: 0 20px; }
.fine { margin-top: 14px; font-size: 0.8rem; line-height: 1.5; color: #9a8d90; }
.fine a { color: #c9bcbe; }
.status { min-height: 1.4em; margin-top: 10px; font-size: 0.95rem; color: #ffd0d4; }
.status.ok { color: #cdeed6; }
.ts-slot:empty { display: none; }
.ts-slot { margin-top: 12px; }

.join.done .join-row, .join.done .fine, .join.done .hp { display: none; }
.ok-title { font: 700 1.3rem/1.2 var(--display); letter-spacing: -0.02em; color: #fff; }
.ok-sub { margin-top: 6px; color: #d6cbcd; }
.survey { max-width: 540px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 8, 9, 0.7); backdrop-filter: blur(8px); text-align: left; }
.survey fieldset { border: 0; padding: 0; margin: 20px 0 0; }
.survey legend { font-weight: 600; margin-bottom: 10px; color: #fff; font-size: 0.98rem; }
.opt { display: block; margin: 0 0 8px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: block; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; color: #ddd2d4; transition: border-color 0.15s, background 0.15s; }
.opt:hover span { border-color: rgba(255, 255, 255, 0.3); }
.opt input:checked + span { border-color: var(--red-hi); background: rgba(185, 31, 46, 0.2); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.survey-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.link-btn { background: none; border: 0; color: #b7abad; cursor: pointer; font: inherit; text-decoration: underline; padding: 8px 0; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-2); }
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker span { padding: 16px 28px; font: 500 0.95rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: #8e8184; white-space: nowrap; }
.ticker span::after { content: "◆"; margin-left: 56px; color: var(--red); font-size: 0.6rem; vertical-align: middle; }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.kicker { font: 700 0.78rem var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-size: clamp(1.9rem, 4vw, 3.1rem); color: #fff; }
.big { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; color: #efe6e7; margin-top: 22px; }
.problem h2 + .big + p, .final .big + .join { margin-top: 22px; }
.problem p:not(.kicker):not(.big) { color: var(--muted); }

.experience { background: linear-gradient(180deg, var(--ink) 0%, var(--burgundy-deep) 55%, var(--ink) 100%); }
.cards { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { position: relative; padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); transition: transform 0.35s var(--ease), border-color 0.25s; overflow: hidden; }
.card:hover { transform: translateY(-4px); border-color: rgba(185, 31, 46, 0.7); }
.card h3 { font: 700 1.3rem var(--display); letter-spacing: -0.03em; color: #fff; margin-top: 22px; }
.card-tag { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin: 4px 0 12px; font-weight: 700; }
.card p:last-child { color: #cfc4c6; font-size: 0.95rem; }
.card-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(185, 31, 46, 0.18); border: 1px solid rgba(185, 31, 46, 0.55); display: grid; place-items: center; overflow: hidden; }
.card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.card-icon svg { width: 26px; height: 26px; fill: var(--red); }
.card .shot { margin: 22px -24px -28px; border-top: 1px solid var(--line); }
.card .shot img { width: 100%; height: auto; }

.why-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.why-list { display: grid; gap: 28px; }
.why-list li { padding-left: 22px; border-left: 2px solid var(--red); color: #cfc4c6; }
.why-list strong { display: block; font: 600 1.08rem var(--display); letter-spacing: -0.02em; color: #fff; margin-bottom: 4px; }

.final { background: radial-gradient(70% 90% at 50% 100%, rgba(120, 18, 36, 0.55), transparent 70%), var(--ink); border-top: 1px solid var(--line); }
.final .join { margin-top: 40px; text-align: left; }
.final .status, .final .fine { text-align: center; }
.final .survey { text-align: left; margin: 40px auto 0; }
.alt { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
.alt a { color: #fff; }

.foot { border-top: 1px solid var(--line); padding: 36px 0 max(36px, env(safe-area-inset-bottom)); background: var(--ink); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-links { display: flex; gap: 22px; font-size: 0.9rem; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: #fff; }
.copy { width: 100%; font-size: 0.8rem; color: #6f6366; }
.foot .slate span:first-child { background: transparent; color: var(--muted); border-color: var(--line); }

/* ---------- motion ---------- */
.js-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js-ready .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s !important; } .d2 { transition-delay: 0.16s !important; } .d3 { transition-delay: 0.24s !important; }
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img, .ticker-track { animation: none; }
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .hero { align-items: flex-end; padding: 110px 0 56px; min-height: 100svh; }
  .hero-art img { object-position: 60% 30%; }
  .hero-shade { background: linear-gradient(0deg, var(--ink) 0%, rgba(7, 5, 6, 0.78) 42%, rgba(7, 5, 6, 0.35) 75%, rgba(7, 5, 6, 0.6) 100%), radial-gradient(90% 55% at 20% 70%, rgba(96, 14, 30, 0.5), transparent 75%), radial-gradient(80% 50% at 80% 25%, rgba(120, 18, 36, 0.4), transparent 70%); }
  h1 { margin-top: 22px; }
  .join-row { flex-direction: column; padding: 8px; }
  .join input[type="email"] { padding: 14px 12px; }
  .btn { width: 100%; min-height: 54px; }
  .cards { grid-template-columns: 1fr; }
  .slate { font-size: 0.64rem; letter-spacing: 0.16em; }
  .survey { padding: 18px; }
}

/* ---------- plain document pages (privacy) ---------- */
.doc { padding: 24px 0 96px; }
.doc-h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 8px 0 8px; }
.doc h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 36px 0 8px; }
.doc p { color: #d6cbcd; margin-top: 8px; }
.doc a { color: #fff; }
.doc-meta { color: #8e8184 !important; font-size: 0.9rem; margin-top: 18px !important; }

/* ---------- open-access CTA (primary = try the app, secondary = email) ---------- */
a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.05rem; border-radius: 12px; }
.cta-primary { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.micro { font-size: 0.88rem; color: #bfb2b5; max-width: 40ch; }
.or { display: flex; align-items: center; gap: 14px; max-width: 540px; margin: 22px 0 12px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8e8184; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.final .or { margin-inline: auto; }
.final-cta { margin-top: 34px; }
@media (max-width: 700px) { .cta-primary { align-items: stretch; } .btn-lg { width: 100%; } .final-cta .btn { width: 100%; } }

.more { margin-top: 36px; text-align: center; color: var(--muted); font-size: 1rem; }
@media (max-width: 700px) { .or { font-size: 0.7rem; letter-spacing: 0.04em; gap: 10px; } }
