/* Grasp AI — iOS beta landing. Tokens match the Grasp web app / iOS app palette. */
:root {
  --bg: #0f1115; --bg-deep: #0b0d10; --card: #1a1d23; --border: #2b303b;
  --fg: #fff; --muted: #b0b7c3;
  --primary: #00d1ff; --secondary: #ff00c7;
  --violet: hsl(265 95% 68%);
  --ease-spring: cubic-bezier(.16, 1, .3, 1); --ease-out: cubic-bezier(.215, .61, .355, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 6rem; }
.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 640px) { .container { width: min(1200px, 100% - 3rem); } }
.i { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 999px; background: var(--primary); color: var(--bg); font-weight: 600; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.font-hero { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: .92; }
.font-display { font-family: "Space Grotesk", system-ui, sans-serif; }
.gradient-text { background: linear-gradient(110deg, var(--primary) 0%, var(--violet) 30%, var(--secondary) 55%, var(--violet) 78%, var(--primary) 100%); background-size: 220% 100%; animation: pan 7s ease-in-out infinite; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
@keyframes pan { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
.glass { background: rgb(26 29 35 / .6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgb(255 255 255 / .08); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 3.5rem; padding: 0 2rem; border-radius: 999px; font-size: 1.125rem; font-weight: 600; white-space: nowrap; transition: transform .3s var(--ease-spring), background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn .i { transition: transform .3s var(--ease-spring); }
.btn:hover .i { transform: translateX(4px); }
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { background: #33dcff; }
.btn-outline { border: 1px solid var(--border); background: rgb(15 17 21 / .4); }
.btn-outline:hover { border-color: rgb(0 209 255 / .5); }
.btn-sm { height: 2.5rem; padding: 0 1.25rem; font-size: .9rem; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav-wrap { position: sticky; top: 0; z-index: 50; height: 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1024px, 100% - 1.5rem); margin: 1rem auto 0; padding: .5rem .5rem .5rem 1rem; border-radius: 999px; transition: background .4s, box-shadow .4s, border-color .4s, margin .4s; }
.nav.scrolled { margin-top: .5rem; background: rgb(26 29 35 / .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-color: var(--border); box-shadow: 0 4px 24px -4px rgb(0 0 0 / .4); }
.logo { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.5rem/1 "Space Grotesk", sans-serif; letter-spacing: .08em; }
.logo svg { width: 40px; height: 40px; }
.nav-links { display: none; gap: .25rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { padding: .5rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.nav-links a:hover { background: hsl(220 15% 18%); color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgb(0 209 255 / .25), transparent 60%), radial-gradient(ellipse 60% 40% at 80% 10%, rgb(255 0 199 / .12), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg-deep)); }
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(110px); }
.aurora .a1 { left: -10rem; top: 2.5rem; width: 28rem; height: 28rem; background: rgb(0 209 255 / .2); animation: drift1 18s ease-in-out infinite; }
.aurora .a2 { right: -10rem; top: -6rem; width: 30rem; height: 30rem; background: rgb(255 0 199 / .15); animation: drift2 22s ease-in-out infinite; }
.aurora .a3 { left: 33%; bottom: -8rem; width: 24rem; height: 24rem; background: hsl(265 95% 68% / .15); animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(120px, 60px) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-100px, 80px) scale(.92); } }
@keyframes drift3 { 33% { transform: translate(80px, -60px); } 66% { transform: translate(-40px, 20px); } }
.hero-inner { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; padding: 8rem 0 4rem; }
@media (min-width: 1024px) { .hero-inner { padding: 7rem 0 2.5rem; } }
.hero-grid { display: grid; gap: 3rem; align-items: center; width: 100%; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; } }
.hero-copy { display: grid; gap: 1.75rem; text-align: center; justify-items: center; }
@media (min-width: 1024px) { .hero-copy { text-align: left; justify-items: start; } }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem 1rem; border-radius: 999px; font-size: .8rem; color: var(--muted); }
.badge .dot { position: relative; width: .5rem; height: .5rem; border-radius: 50%; background: var(--primary); }
.badge .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--primary); animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.hero h1 { font-size: clamp(3.1rem, 11vw, 5.8rem); }
.hero h1 span.line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 span.line > span { display: block; animation: mask .8s var(--ease-out) both; }
.hero h1 span.line:nth-child(2) > span { animation-delay: .1s; color: rgb(255 255 255 / .9); }
.hero h1 span.line:nth-child(3) > span { animation-delay: .2s; }
@keyframes mask { from { transform: translateY(105%); } }
.lead { max-width: 36rem; font-size: clamp(1rem, 2.4vw, 1.125rem); color: var(--muted); }
.lead strong { color: var(--fg); font-weight: 500; }
.cta-row { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
@media (min-width: 640px) { .cta-row { flex-direction: row; } }
.fineprint { font-size: .75rem; color: var(--muted); }
.rise { animation: rise .7s var(--ease-out) both; }
.rise.d1 { animation-delay: .4s; } .rise.d2 { animation-delay: .5s; } .rise.d3 { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.hero-phone { display: grid; justify-items: center; gap: 1.25rem; animation: rise 1s var(--ease-out) .25s both; }

/* ── Phone + app screens (laid out from the SwiftUI views) ───────────────── */
.phone { position: relative; width: 260px; aspect-ratio: 9 / 19; flex: none; padding: 9px; border-radius: 2.6rem; border: 1px solid rgb(255 255 255 / .1); background: #07080b; box-shadow: 0 30px 80px -24px rgb(0 209 255 / .4); }
.hero-phone .phone { animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 2.1rem; background: var(--bg); }
.island { position: absolute; left: 50%; top: 8px; z-index: 5; width: 74px; height: 22px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 12px; }
.hero-phone .screen { opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.hero-phone .screen.on, .screen.static { opacity: 1; transform: none; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 4px; font-size: 10px; font-weight: 600; }
.sb .i { width: 12px; height: 12px; margin-left: 4px; }
.navtitle { padding: 12px 8px 8px; text-align: center; font: 700 12px/1.3 "Space Grotesk", sans-serif; }
.navtitle.mark { letter-spacing: .28em; }
.sbody { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 0 16px 16px; }
.center { text-align: center; }
.s-h { font: 700 15px/1.25 "Space Grotesk", sans-serif; }
.s-sub { margin-top: 4px; font-size: 9px; line-height: 1.35; color: var(--muted); }
.dropzone { padding: 16px 12px; text-align: center; border: 1px dashed rgb(176 183 195 / .4); border-radius: 16px; }
.dz-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 12px; background: var(--card); color: var(--primary); font-size: 20px; }
.dz-t { font-size: 11px; font-weight: 500; } .dz-s { font-size: 8px; color: var(--muted); }
.file { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 8px; border-radius: 8px; background: var(--card); text-align: left; font-size: 9px; }
.file .i { color: var(--muted); font-size: 12px; } .file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-btn { padding: 10px; border-radius: 12px; background: var(--primary); color: var(--bg); text-align: center; font-size: 11px; font-weight: 600; }
.row { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.fcard { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 196px; padding: 0 16px; text-align: center; border: 1px solid rgb(0 209 255 / .4); border-radius: 24px; background: rgb(0 209 255 / .1); }
.fcard small { margin-bottom: 8px; font-size: 8px; font-weight: 600; letter-spacing: .15em; color: var(--primary); }
.fcard p { font: 700 13px/1.35 "Space Grotesk", sans-serif; }
.rate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rate span { padding: 6px 0; border-radius: 8px; text-align: center; font-size: 9px; font-weight: 500; }
.r-again { background: rgb(239 68 68 / .15); color: #f87171; } .r-hard { background: rgb(249 115 22 / .15); color: #fb923c; }
.r-good { background: rgb(0 209 255 / .15); color: var(--primary); } .r-easy { background: rgb(34 197 94 / .15); color: #4ade80; }
.pad { display: flex; justify-content: center; gap: 12px; margin-top: auto; color: var(--muted); }
.pad span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .1); background: var(--card); font-size: 14px; }
.bar { height: 6px; overflow: hidden; border-radius: 999px; background: var(--card); }
.bar i { display: block; width: 20%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.q { font: 700 13px/1.35 "Space Grotesk", sans-serif; }
.opts { display: grid; gap: 6px; }
.opt { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--card); font-size: 10px; }
.opt.ok { background: rgb(34 197 94 / .2); } .opt .i { color: #4ade80; font-size: 12px; }
.note { padding: 8px 12px; border: 1px solid rgb(255 255 255 / .1); border-radius: 12px; background: rgb(26 29 35 / .8); font-size: 9px; line-height: 1.35; color: var(--muted); }
.search { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); font-size: 9px; color: var(--muted); }
.chips { display: flex; gap: 6px; font-size: 8px; font-weight: 500; }
.chips span { padding: 4px 10px; border-radius: 999px; background: var(--card); } .chips .on { background: var(--primary); color: var(--bg); }
.deck { padding: 12px; border: 1px solid rgb(255 255 255 / .05); border-radius: 16px; background: rgb(26 29 35 / .9); }
.deck small { display: flex; align-items: center; gap: 4px; font-size: 8px; font-weight: 500; color: var(--muted); }
.deck b { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.deck p { margin-top: 2px; font-size: 9px; line-height: 1.35; color: var(--muted); }
.deck time { display: block; margin-top: 6px; text-align: right; font-size: 8px; color: var(--muted); }
.tabbar { display: flex; justify-content: space-around; padding: 8px 24px 12px; border-top: 1px solid rgb(255 255 255 / .05); background: var(--card); font-size: 8px; }
.tabbar div { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); } .tabbar .on { color: var(--primary); } .tabbar .i { font-size: 14px; }
.dots { display: flex; gap: .5rem; }
.dots button { width: .5rem; height: .5rem; padding: 0; border: 0; border-radius: 999px; background: rgb(176 183 195 / .4); cursor: pointer; transition: width .3s var(--ease-spring), background .2s; }
.dots button:hover { background: rgb(176 183 195 / .7); } .dots button[aria-pressed="true"] { width: 1.5rem; background: var(--primary); }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }
.section-title { max-width: 48rem; margin: 0 auto 3.5rem; text-align: center; font-size: clamp(2.25rem, 6vw, 3.75rem); }
.steps { display: grid; justify-items: center; gap: 3.5rem; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step { display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.step .txt { max-width: 20rem; display: grid; gap: .5rem; }
.step .n { font: 700 .875rem/1 "Space Grotesk", sans-serif; letter-spacing: .2em; color: var(--primary); }
.step h3 { font: 600 1.5rem/1.25 "Space Grotesk", sans-serif; }
.step .txt p, .feat p { font-size: .875rem; color: var(--muted); }
.feats { display: grid; gap: 1rem; padding-bottom: 0; }
@media (min-width: 640px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feat { padding: 1.5rem; border-radius: 1.5rem; }
.feat .ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 12px; background: rgb(0 209 255 / .15); color: var(--primary); font-size: 20px; }
.feat h3 { margin-bottom: .375rem; font: 600 1.125rem/1.3 "Space Grotesk", sans-serif; }
.beta { position: relative; overflow: hidden; padding: 4rem 1.5rem; text-align: center; border: 1px solid var(--border); border-radius: 2.5rem; background: var(--card); }
@media (min-width: 640px) { .beta { padding: 5rem 3rem; } }
.beta .glow { position: absolute; width: 20rem; height: 20rem; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.beta .g1 { left: -6rem; top: -6rem; background: rgb(0 209 255 / .25); animation: drift1 12s ease-in-out infinite; }
.beta .g2 { right: -6rem; bottom: -6rem; background: rgb(255 0 199 / .2); animation: drift2 14s ease-in-out infinite; }
.beta-in { position: relative; z-index: 1; max-width: 48rem; margin: 0 auto; }
.tag { display: inline-block; margin-bottom: 1.5rem; padding: .375rem 1rem; border-radius: 999px; background: rgb(0 209 255 / .15); color: var(--primary); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.beta h2 { margin-bottom: 1.5rem; font-size: clamp(2.6rem, 7vw, 3.75rem); }
.beta .lead { margin: 0 auto 2.5rem; max-width: 42rem; }
.points { display: grid; gap: .75rem; margin-bottom: 2.5rem; text-align: left; }
@media (min-width: 640px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point { padding: 1.25rem; border: 1px solid rgb(43 48 59 / .6); border-radius: 1rem; background: rgb(15 17 21 / .4); }
.point b { display: block; margin-bottom: .25rem; font: 600 1rem/1.3 "Space Grotesk", sans-serif; } .point p { font-size: .875rem; color: var(--muted); }
.beta .cta-row { justify-content: center; }
.foot { margin-top: 6rem; padding: 3.5rem 0; border-top: 1px solid var(--border); border-radius: 2.5rem 2.5rem 0 0; background: var(--card); }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .foot-in { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.foot p { font-size: .875rem; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.foot nav a { padding: .5rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.foot nav a:hover { background: hsl(220 15% 18%); color: #fff; }

/* scroll reveal (only when JS is on, so content is never hidden without it) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { --d: .1s; } .reveal.d2 { --d: .2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* small layout helpers (classes instead of inline styles, so a strict CSP works) */
.push { margin-top: auto; }
.section.flush { padding-top: 0; }
.foot-brand { display: grid; gap: .75rem; justify-items: center; }
@media (min-width: 768px) { .foot-brand { justify-items: start; } }

/* 404 page */
.nf { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 1.5rem; padding: 2rem; text-align: center; background: linear-gradient(180deg, var(--bg), var(--bg-deep)); }
.nf h1 { font-size: clamp(3rem, 12vw, 6rem); }

/* ── Request-access form ─────────────────────────────────────────────────── */
.req { max-width: 40rem; margin: 0 auto; padding: 2.5rem 1.5rem; border: 1px solid var(--border); border-radius: 2rem; background: var(--card); }
@media (min-width: 640px) { .req { padding: 3rem; } }
.req h2 { margin-bottom: 1rem; text-align: center; font-size: clamp(2.2rem, 6vw, 3.25rem); }
.req .lead { margin: 0 auto 2rem; text-align: center; font-size: 1rem; }
.req-mark { color: var(--secondary); }
.form { display: grid; gap: 1.1rem; }
.row2 { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .875rem; font-weight: 500; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem 1rem; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: .9rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 7rem; resize: vertical; }
.field ::placeholder { color: hsl(220 12% 55%); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(0 209 255 / .2); }
.field [aria-invalid="true"] { border-color: #f87171; }
.field .err { font-size: .8rem; color: #f87171; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .8rem; color: var(--muted); }
.consent a { text-decoration: underline; }
.form .btn { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.status { min-height: 1.4em; text-align: center; font-size: .9rem; color: var(--muted); }
.status.bad { color: #f87171; }
.sent { display: none; padding: 1.5rem 0 .5rem; text-align: center; }
.sent:focus { outline: none; }
.sent h3 { margin-bottom: .5rem; font: 700 1.6rem/1.2 "Space Grotesk", sans-serif; }
.sent p { color: var(--muted); }
.req.done .form, .req.done .lead { display: none; }
.req.done .sent, #request-sent:target { display: block; }
.req:has(#request-sent:target) .form, .req:has(#request-sent:target) .lead { display: none; }
