/* spoe.app (website plan U6, U7). Spoe's dark theme, from src/constants/theme.ts. */
:root {
  --bg: #0e0e14; --surface: #14171e; --surface2: #191c25; --text: #fff; --muted: #c2c2c2; --dim: #8a8e9b;
  --accent: #3ab3fa; --accent-ink: #04121c; --green: #89cc78; --danger: #ff6b6b;
  --outline: rgba(255,255,255,.16); --divider: rgba(255,255,255,.08);
  --paper: #F3EFE6; --ink: #16140f; --ink-label: #7a7468;
  --tiktok: #25F4EE; --instagram: #DD2A7B;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 22px; font-weight: 800; }
.skip:focus { top: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { letter-spacing: -.02em; }
section h2 { font-weight: 900; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.04; margin-top: 10px; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.5; margin-top: 14px; max-width: 560px; font-weight: 500; }
main > .wrap > section { padding: 96px 0 0; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 22px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 900; font-size: 15px; white-space: nowrap; border: 0; text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: default; }

/* The pill nav, as Steppa's and Opal's sites have it. */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 10; }
.nav .bar { max-width: 1120px; width: calc(100% - 32px); margin: 0 auto; height: 56px; border-radius: 28px; background: rgba(20,23,30,.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--outline); display: flex; align-items: center; padding: 0 8px 0 10px; gap: 8px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 19px; letter-spacing: -.03em; text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.logo span { color: var(--accent); }
.nav .links { display: flex; gap: 26px; margin: 0 auto; font-size: 14px; font-weight: 800; color: var(--muted); }
.nav .links a { text-decoration: none; }
.nav .btn { height: 40px; font-size: 14px; padding: 0 16px; }

/* Hero: the app's ghosts on Spoe's grey, edge to edge from the top of the page, fading into the
   page's dark as you scroll down; no glow behind the ghosts (R1). */
.hero { padding: 84px 16px 96px; text-align: center; background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 55%, var(--bg) 100%); }
.hero-in { max-width: 1180px; margin: 0 auto; padding-top: 52px; }
/* Section links land below the fixed nav. */
section[id] { scroll-margin-top: 84px; }
.hero-ghosts { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 3vw, 36px); }
.hero-ghosts .g-side { width: clamp(92px, 13vw, 150px); }
.hero-ghosts .g-main { width: clamp(132px, 19vw, 210px); }
.hero .inner { max-width: 760px; margin: 24px auto 0; }
.hero h1 { font-weight: 900; font-size: clamp(40px, 7vw, 80px); line-height: .98; letter-spacing: -.035em; }
.hero-lede { color: #e2e4ea; font-size: 18px; line-height: 1.45; margin: 16px auto 0; max-width: 560px; font-weight: 500; }
.signup { display: flex; gap: 8px; margin: 24px auto 0; max-width: 460px; }
.signup[hidden] { display: none; }
.signup input[type=email] { flex: 1; min-width: 0; height: 52px; border-radius: 26px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.24); color: var(--text); font: inherit; font-size: 16px; font-weight: 600; padding: 0 20px; }
.signup input[type=email]::placeholder { color: var(--dim); }
.signup input[aria-invalid=true] { border-color: var(--danger); }
.signup .btn { height: 52px; border-radius: 26px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.note { color: var(--muted); font-size: 14px; font-weight: 600; margin: 12px auto 0; max-width: 460px; min-height: 1.3em; }
.note.ok { color: var(--green); }
.note.bad { color: var(--danger); }
.note:empty { min-height: 0; margin: 0; }
.fine { color: var(--dim); font-size: 13px; font-weight: 700; margin-top: 12px; }

/* A ghost's box keeps the file's 150x190 shape whether or not it loads (R11, AE4). */
.ghost { aspect-ratio: 150 / 190; }
.ghost canvas { display: block; width: 100%; height: 100%; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; text-align: left; }
.step { background: var(--surface); border: 1px solid var(--outline); border-radius: 24px; padding: 22px; position: relative; overflow: hidden; }
.step .num { position: absolute; top: 16px; right: 20px; font-weight: 900; font-size: 44px; color: rgba(255,255,255,.07); letter-spacing: -.04em; }
.step .art { height: 170px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step .art .ghost { width: 112px; }
.step h3 { font-weight: 900; font-size: 21px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 8px; font-weight: 500; }
.split-pot { width: 170px; height: 170px; }
.split-pot svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* The entry ticket, as Home's Available row draws it, at 1.7x. */
.ticket-wrap { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ticket { --k: 1.7; position: relative; display: flex; width: calc(272px * var(--k)); height: calc(144px * var(--k)); filter: drop-shadow(0 24px 50px rgba(0,0,0,.5)); text-align: left; }
.ticket .main { position: relative; width: calc(200px * var(--k)); padding: calc(13px * var(--k)) calc(14px * var(--k)) calc(11px * var(--k)); border-radius: calc(20px * var(--k)) 0 0 calc(20px * var(--k)); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.3) 55%, rgba(0,0,0,.05)), url(/img/snap-back-to-reality.jpg) center/cover, var(--surface);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.12); }
.ticket .title { font-size: calc(15px * var(--k)); line-height: 1.2; font-weight: 900; text-shadow: 0 0 8px rgba(0,0,0,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket .rule { margin-top: calc(3px * var(--k)); font-size: calc(11px * var(--k)); line-height: 1.27; font-weight: 700; color: rgba(255,255,255,.92); text-shadow: 0 0 6px rgba(0,0,0,.8); }
.ticket .plabel { font-size: calc(8.5px * var(--k)); font-weight: 900; letter-spacing: 1px; color: rgba(255,255,255,.8); }
.ticket .prow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket .prize { font-size: calc(22px * var(--k)); font-weight: 900; letter-spacing: -.4px; text-shadow: 0 0 10px rgba(0,0,0,.85); }
.ticket .joined { display: flex; align-items: center; gap: calc(4px * var(--k)); font-size: calc(11px * var(--k)); font-weight: 800; text-shadow: 0 0 3px rgba(0,0,0,.8); }
.ticket .joined svg { width: calc(16px * var(--k)); fill: #fff; }
.ticket .stub { width: calc(72px * var(--k)); background: var(--paper); color: var(--ink); border-radius: 0 calc(20px * var(--k)) calc(20px * var(--k)) 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(12px * var(--k)); }
.ticket .part { text-align: center; }
.ticket .part small { display: block; font-size: calc(8px * var(--k)); font-weight: 900; letter-spacing: 1px; color: var(--ink-label); }
.ticket .part b { font-size: calc(13px * var(--k)); font-weight: 900; }
.ticket .part b.big { font-size: calc(20px * var(--k)); letter-spacing: -.4px; }
.ticket .perf { position: absolute; left: calc(200px * var(--k)); top: calc(12px * var(--k)); bottom: calc(12px * var(--k)); border-left: 2px dashed rgba(0,0,0,.28); }
.ticket .notch { position: absolute; left: calc((200px - 8px) * var(--k)); width: calc(16px * var(--k)); height: calc(16px * var(--k)); border-radius: 50%; background: var(--bg); }
.ticket .notch.t { top: calc(-8px * var(--k)); }
.ticket .notch.b { bottom: calc(-8px * var(--k)); }
.caption { color: var(--dim); font-size: 13px; font-weight: 700; }

/* Feature rows, each with a phone. */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .copy { order: 2; }
.copy h2 { font-size: clamp(28px, 3.6vw, 42px); }
.copy ul { margin-top: 20px; }
.copy li { color: var(--muted); font-size: 15px; line-height: 1.45; padding: 8px 0 8px 28px; position: relative; font-weight: 500; }
.copy li::before { content: ''; position: absolute; left: 0; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: rgba(58,179,250,.18); border: 1px solid var(--accent); }
.phone { width: 290px; height: 600px; margin: 0 auto; border-radius: 48px; border: 9px solid #22252e; background: var(--bg); position: relative; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.phone::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 12px; background: #000; z-index: 3; }

/* Home, rebuilt (src/app/(tabs)/home.tsx): lockup and avatar, the day, the ghosts, the runs' weeks, the tabs. */
.ph-home { position: absolute; inset: 0; background: radial-gradient(70% 22% at 8% 0%, #252c38, transparent) var(--bg); }
.ph-top { display: flex; justify-content: space-between; align-items: center; padding: 46px 14px 0; }
.ph-top b { font-weight: 800; font-size: 18px; letter-spacing: .01em; }
.ph-top b span { color: var(--accent); }
/* The profile button with no photo: the app's ghost peeking up (src/components/profile-card.tsx). */
.avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: linear-gradient(180deg, #1d2534, #121620); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.avatar svg { display: block; width: 100%; height: 100%; fill: #b3b9c4; }
.avatar .eye { fill: #0e0e14; }
.ph-day { font-weight: 800; font-size: 26px; letter-spacing: -.02em; padding: 14px 16px 0; }
.ph-ghosts { display: flex; justify-content: space-between; padding: 16px 22px 0; }
.ph-ghosts > div { width: 104px; text-align: center; position: relative; }
.ph-ghosts b { position: absolute; left: 0; right: 0; top: 57.9%; font-size: 10.4px; font-weight: 800; }
/* ghost-gauge.tsx's label places: the figure at 110/190 of the box, the limit at 176/190. */
.ph-ghosts small { position: absolute; left: 0; right: 0; top: 92.6%; color: rgba(255,255,255,.45); font-size: 8.3px; font-weight: 800; }
.ph-sheet { position: absolute; left: 0; right: 0; top: 318px; bottom: 0; padding: 8px 14px; }
/* The tracker card: every run's week in one rounded card. */
.ph-card { background: var(--surface); border-radius: 19px; padding: 12px 14px 2px; }
.ph-run { padding-bottom: 12px; }
.ph-run p { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; font-weight: 800; }
.ph-run span { color: rgba(255,255,255,.45); font-size: 10px; font-weight: 800; }
.ph-run em { font-style: normal; color: var(--text); }
.dots { display: flex; gap: 6.5px; margin-top: 8px; }
.dots li { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 6.5px; font-weight: 700; color: rgba(255,255,255,.45); }
.dots li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px color-mix(in srgb, var(--c) 55%, transparent); }
.dots li.now { color: #fff; }
.dots li.now::before { box-sizing: border-box; background: transparent; border: 1.5px solid var(--c); box-shadow: none; animation: breathe 2.4s ease-in-out infinite; }
.dots li.n::before { background: #262930; box-shadow: none; }
.dots.tiktok { --c: var(--tiktok); }
.dots.instagram { --c: var(--instagram); }
@keyframes breathe { 50% { transform: scale(.86); opacity: .7; } }
/* iOS's glass tab bar, its colours read off the app on a phone. */
.ph-tabs { position: absolute; left: 14px; right: 14px; bottom: 10px; height: 42px; padding: 3px; border-radius: 21px; display: flex; background: #2d2d35; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.05), 0 6px 18px rgba(0,0,0,.45); }
.ph-tabs span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 18px; color: #fdfdff; font-size: 7px; font-weight: 600; }
.ph-tabs span.on { background: #15151e; color: #10a1ff; }
.ph-tabs svg { height: 16px; width: auto; fill: currentColor; }

/* The lock's wall. */
.ph-shield { position: absolute; inset: 0; background: linear-gradient(180deg, #232733, #12141b); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 26px; }
.ph-shield img { width: 60px; border-radius: 14px; }
.ph-shield .h { font-weight: 800; font-size: 20px; letter-spacing: -.02em; margin-top: 18px; }
.ph-shield p { color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 8px; }
.ph-shield .btn { position: absolute; left: 20px; right: 20px; bottom: 74px; height: 46px; }
.ph-shield .alt { position: absolute; left: 0; right: 0; bottom: 42px; color: var(--accent); font-size: 14px; font-weight: 800; }

/* Go solo. */
.ph-solo { padding: 52px 14px 0; }
.ph-solo .t { font-weight: 900; font-size: 22px; letter-spacing: -.03em; margin-bottom: 14px; }
.goal { border-radius: 18px; overflow: hidden; border: 1px solid var(--outline); margin-bottom: 12px; background: var(--surface2); }
.goal img { width: 100%; height: 110px; object-fit: cover; }
.goal p { padding: 10px 12px; color: var(--dim); font-size: 12px; font-weight: 600; }
.goal b { display: block; color: var(--text); font-size: 14px; font-weight: 800; margin-bottom: 3px; }

/* Why it's fair. */
.fair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; text-align: left; }
.fair > div { background: var(--surface); border: 1px solid var(--outline); border-radius: 22px; padding: 22px; }
.fair h3 { font-size: 17px; font-weight: 900; }
.fair p { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 6px; font-weight: 500; }

/* FAQ, the money answer first and open (R8). */
.faq { max-width: 720px; margin: 40px auto 0; border: 1px solid var(--outline); border-radius: 24px; overflow: hidden; text-align: left; }
.faq details { border-bottom: 1px solid var(--divider); background: var(--surface); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 900; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--dim); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > p { color: var(--muted); font-size: 15px; line-height: 1.5; padding: 0 22px 18px; font-weight: 500; }
.lines { margin: 0 22px 18px; border: 1px solid var(--outline); border-radius: 16px; }
.lines div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--divider); font-size: 14px; }
.lines div:last-child { border-bottom: 0; }
.lines dt { color: var(--muted); font-weight: 500; }
.lines dd { font-weight: 900; white-space: nowrap; }

/* Legal pages and the 404. */
.doc { max-width: 720px; padding-top: 110px; }
.doc h1 { font-weight: 900; font-size: clamp(32px, 5vw, 44px); letter-spacing: -.03em; }
.doc .draft { margin-top: 14px; padding: 10px 14px; border: 1px solid var(--outline); border-radius: 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.doc section, .doc details { margin-top: 30px; }
.doc h2 { font-size: 19px; font-weight: 900; }
.doc p { color: var(--muted); font-size: 16px; line-height: 1.6; margin-top: 10px; font-weight: 500; }
.doc a { color: var(--accent); }
.doc .box { padding: 16px; border: 1px solid var(--outline); border-radius: 18px; }
.doc .box summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.doc .box summary::-webkit-details-marker { display: none; }
.doc .box summary::after { content: '+'; font-size: 20px; font-weight: 900; line-height: 1.2; }
.doc .box[open] summary::after { content: '−'; }

/* Footer: the eligibility line, Apple's line, support and the company (R24). */
.foot { margin-top: 110px; border-top: 1px solid var(--divider); background: #0b0b10; padding: 56px 0 40px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot .about p { color: var(--dim); font-size: 14px; line-height: 1.5; margin-top: 12px; max-width: 280px; }
.foot h2 { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot .cols a { display: block; color: var(--muted); font-size: 14px; font-weight: 600; padding: 5px 0; text-decoration: none; }
.foot .cols a.logo { display: flex; color: var(--text); font-size: 19px; padding: 0; }
.foot .legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--divider); color: var(--dim); font-size: 12.5px; line-height: 1.6; }

@media (max-width: 860px) {
  .nav .links { display: none; }
  .nav .logo { margin-right: auto; }
  .hero { padding-bottom: 72px; }
  .hero-in { padding-top: 28px; }
  .hero-lede { font-size: 16px; }
  main > .wrap > section { padding-top: 72px; }
  .steps, .fair { grid-template-columns: 1fr; }
  .ticket { --k: 1.22; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .copy { order: 0; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
}
@media (max-width: 400px) { .ticket { --k: 1.18; } .signup .btn { padding: 0 16px; } }
@media (max-width: 359px) { .signup { flex-direction: column; } }
/* TikTok's in-app browser leaves about 660pt: keep the headline and field in the first screen. */
@media (max-width: 860px) and (max-height: 720px) {
  .hero { padding-top: 78px; }
  .hero-ghosts .g-side { width: 76px; }
  .hero-ghosts .g-main { width: 108px; }
  .hero .inner { margin-top: 14px; }
  .hero h1 { font-size: 36px; }
  .hero-lede { font-size: 15px; margin-top: 10px; }
  .signup { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
