:root {
  --bg: #0e0d10; --bg-2: #121115; --surface: #17161a; --surface-2: #1f1d23; --line: #2f2d35;
  --text: #f2efe9; --muted: #a29fa8; --faint: #6c6973;
  --display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --body: "Satoshi", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 136px);
  --r: 16px;
  --spectrum: linear-gradient(90deg, #E10600, #FF4F00, #FF9500, #FFD000, #8CD000, #00A83E, #00A99D, #0091EA, #1A3FE0, #6A1BD8, #A100C9, #E0007A);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #0091EA; outline-offset: 3px; border-radius: 6px; }

/* buttons: the app's rounded rectangles */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .2s ease; white-space: nowrap; }
.btn span { transition: transform .15s ease; }
.btn:hover span { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 0 0 0 rgb(255 255 255 / 0); }
.btn-primary:hover { box-shadow: 0 8px 30px -6px rgb(242 239 233 / .35); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgb(255 255 255 / .02); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* the repeated emphasis device: a 12-color dot row before every eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.dots { width: 70px; height: 6px; background: var(--spectrum);
  -webkit-mask: radial-gradient(circle at 3px 3px, #000 2.6px, transparent 3px) 0 0 / 5.83px 6px repeat-x;
          mask: radial-gradient(circle at 3px 3px, #000 2.6px, transparent 3px) 0 0 / 5.83px 6px repeat-x; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px var(--pad); background: rgb(14 13 16 / .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.nav nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); background: linear-gradient(var(--text), var(--text)) 0 100% / 0 1.5px no-repeat; transition: color .15s, background-size .25s ease; padding-bottom: 2px; }
.nav nav a:hover { color: var(--text); background-size: 100% 1.5px; }

/* hero */
html, body { overflow-x: clip; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(40px, 7vw, 96px) var(--pad) clamp(56px, 7vw, 96px); max-width: 1440px; margin: 0 auto; }
.hero::before { content: ""; position: absolute; inset: -10% 0 auto auto; width: 60vw; height: 70vw; max-width: 1000px; max-height: 1000px; background: radial-gradient(closest-side, rgb(0 145 234 / .16), transparent 70%), radial-gradient(closest-side at 30% 70%, rgb(225 6 0 / .14), transparent 70%); pointer-events: none; z-index: -1; }
h1 { font-size: clamp(46px, 6.4vw, 92px); }
.lede { margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 34ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.cta-row.center { justify-content: center; }
.fine { margin-top: 16px; font-size: 14px; color: var(--faint); }
.hero-media { position: relative; padding-bottom: 12%; }
.shot { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7); }
.shot img { width: 100%; }
.shot-desktop { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.shot-phone { position: absolute; left: -8%; bottom: 0; width: 62%; border-radius: 22px; border: 6px solid #050507; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .85), 0 0 0 1px var(--line); }

/* facts */
.facts { padding: 0 var(--pad); max-width: 1440px; margin: 0 auto; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dl > div { padding: 26px 18px; border-left: 1px solid var(--line); }
.facts dl > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; }
.facts dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* marquee */
.marquee { overflow: hidden; padding: 30px 0; margin-top: clamp(40px, 6vw, 72px); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 14px; background: var(--c); color: var(--i); white-space: nowrap; box-shadow: inset 0 -5px 0 rgb(0 0 0 / .2); }
.chip b { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; }
.chip span { font-weight: 700; font-size: 15px; opacity: .9; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2, .phone h2, .closer h2 { font-size: clamp(36px, 4.6vw, 64px); }
.section-head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 60ch; }
.try, .how, .science, .features, .faq { padding: var(--section) var(--pad) 0; max-width: 1440px; margin: 0 auto; }

/* try it */
.try-stage { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); padding: clamp(18px, 3vw, 32px); display: grid; gap: clamp(18px, 3vw, 28px); transition: background .35s ease, box-shadow .35s ease; }
.try-stage.lit { background: var(--lit); box-shadow: 0 30px 120px -30px var(--lit); }
.try-readout { min-height: clamp(150px, 20vw, 240px); display: grid; align-content: end; gap: 4px; padding: 0 8px; color: var(--ink, var(--text)); }
.try-readout strong { font-family: var(--display); font-weight: 800; font-size: clamp(80px, 13vw, 180px); line-height: .9; letter-spacing: -0.03em; }
.try-readout span { font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); opacity: .85; }
.try-keys { --gap: 6px; position: relative; height: clamp(170px, 22vw, 260px); display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--gap); user-select: none; -webkit-user-select: none; touch-action: none; }
.tk { border: 0; padding: 0 0 14px; border-radius: 0 0 12px 12px; background: var(--c); color: var(--i); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-family: var(--display); font-weight: 800; font-size: clamp(16px, 2vw, 26px); cursor: pointer; box-shadow: inset 0 -8px 0 rgb(0 0 0 / .22); transition: transform .06s ease, filter .15s ease, box-shadow .15s ease; }
.tk small { font-family: var(--mono); font-size: 11px; font-weight: 500; opacity: .7; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
.tk.black { position: absolute; top: 0; height: 60%; width: calc((100% - 7 * var(--gap)) / 8 * .62); left: calc(var(--k) * (100% + var(--gap)) / 8 - var(--gap) / 2); margin-left: calc((100% - 7 * var(--gap)) / 8 * -.31); border: 3px solid #0b0a0d; border-top: 0; z-index: 2; font-size: clamp(12px, 1.4vw, 17px); border-radius: 0 0 10px 10px; }
.tk:hover { filter: brightness(1.08); }
.tk.down { transform: translateY(3px); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .22), 0 0 34px 4px var(--c); filter: brightness(1.12); }

/* science */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principle { padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.principle h3 { font-size: 23px; line-height: 1.15; }
.principle p { margin-top: 12px; color: var(--muted); }
.principle .in-app { margin-top: auto; padding-top: 18px; color: var(--text); border-top: 1px solid var(--line); }
.principle > p:nth-last-child(2) { margin-bottom: 18px; }
.principle .in-app b { display: block; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ref { display: inline-block; vertical-align: super; font-size: 11px; line-height: 1; margin-left: 2px; padding: 2px 4px; border-radius: 4px; background: var(--surface-2); color: var(--text); text-decoration: none; font-family: var(--mono); }
.ref:hover, .ref:focus-visible { background: var(--text); color: var(--bg); }
.honest { margin-top: 16px; padding: 28px; border-radius: var(--r); border: 1px dashed var(--line-2, var(--line)); }
.honest h3 { font-size: 23px; }
.honest p { margin-top: 12px; color: var(--muted); max-width: 90ch; }
.refs { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.refs summary { list-style: none; cursor: pointer; padding: 18px 0; font-family: var(--display); font-weight: 700; font-size: 19px; }
.refs summary::-webkit-details-marker { display: none; }
.refs summary::after { content: " +"; color: var(--muted); }
.refs[open] summary::after { content: " –"; }
.refs ol { margin: 0 0 22px; padding-left: 22px; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.refs li { scroll-margin-top: 90px; }
.refs li:target { color: var(--text); }
.refs a { color: var(--text); word-break: break-word; }

/* how */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.step::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--spectrum); opacity: .9; }
.step:nth-child(2)::after { filter: hue-rotate(120deg); }
.step:nth-child(3)::after { filter: hue-rotate(240deg); }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); font-family: var(--display); font-weight: 800; font-size: 18px; }
.step h3 { margin-top: 18px; font-size: 28px; }
.step p { margin-top: 10px; color: var(--muted); }

/* features */
.feat-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); }
.feat-sticky { position: sticky; top: 100px; align-self: start; }
.feat-frame { position: relative; aspect-ratio: 2000 / 1400; background: var(--surface); }
.feat-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center top; opacity: 0; transform: scale(.985); transition: opacity .45s ease, transform .6s ease; }
.feat-frame img.on { opacity: 1; transform: none; }
.feat-list { display: grid; gap: 0; }
.feat { min-height: 62vh; display: grid; align-content: center; padding: 32px 0; border-top: 1px solid var(--line); opacity: .38; transition: opacity .35s ease; }
.feat:first-child { border-top: 0; }
.feat.on { opacity: 1; }
.feat-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.feat h3 { margin-top: 10px; font-size: clamp(26px, 2.4vw, 34px); }
.feat p:not(.feat-tag) { margin-top: 14px; color: var(--muted); }
.feat-inline { display: none; }

/* phone: the one dark punctuation band */
.phone { margin-top: var(--section); padding: var(--section) var(--pad); background: #050507; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.phone-copy p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 4px; background: var(--spectrum); }
.phone-shot { border-radius: 30px; border: 8px solid #000; box-shadow: 0 50px 100px -40px rgb(0 145 234 / .35), 0 0 0 1px var(--line); }

/* faq */
.faq-list { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(19px, 1.7vw, 23px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 66ch; }
.faq details[open] p { animation: drop .3s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* closer */
.closer { text-align: center; padding: var(--section) var(--pad); display: grid; justify-items: center; gap: 18px; }
.closer-ring { width: clamp(140px, 18vw, 220px); height: auto; animation: spin 40s linear infinite; filter: drop-shadow(0 0 60px rgb(106 27 216 / .45)); margin-bottom: 12px; }
.closer p { color: var(--muted); font-size: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* footer */
.foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px var(--pad) 40px; border-top: 1px solid var(--line); background: #050507; color: var(--faint); font-size: 14px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 17px; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot p { margin-left: auto; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .steps .reveal:nth-child(2) { transition-delay: .09s; }
.js .steps .reveal:nth-child(3) { transition-delay: .18s; }

/* responsive */
@media (max-width: 980px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero, .phone { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-media { padding-bottom: 18%; }
  .shot-desktop { transform: none; }
  .shot-phone { left: auto; right: -2%; width: 66%; }
  .facts dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts dl > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .facts dl > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-sticky { display: none; }
  .feat { min-height: 0; opacity: 1; padding: 36px 0; }
  .feat-inline { display: block; margin-top: 22px; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .honest { padding: 22px; }
  body { font-size: 16px; }
  .brand span { font-size: 19px; }
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl > div { padding: 20px 14px; }
  .facts dl > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts dl > div:nth-child(4) { border-left: 1px solid var(--line); padding-left: 14px; }
  .facts dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts dl > div:last-child { grid-column: 1 / -1; }
  .try-keys { --gap: 3px; }
  .tk small { display: none; }
  .tk.black { border-width: 2px; }
  .chip b { font-size: 20px; }
  .foot p { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .closer-ring { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .feat-frame img, .try-stage { transition: none; }
}
