:root {
  --paper: #ffffff;
  --plate: #eef2f8;      /* the soft panel every screenshot sits on */
  --ink: #0b0d12;
  --gray: #5b616e;
  --faint: #8a909c;
  --line: #e4e7ec;
  --blue: #1f5fd6;       /* the app's action blue */
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1; letter-spacing: -.045em; max-width: 13ch; margin: 0 auto; }
h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
h3 { font-size: 28px; letter-spacing: -.03em; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: #ffffffe6; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.brand-logo { width: 20px; height: 20px; color: var(--blue); }
.top-nav { display: flex; gap: 28px; font-size: 14px; color: var(--gray); }
.top-nav a:hover { color: var(--ink); }

/* Screenshots sit on a soft panel, inset, with one quiet shadow. */
.plate { background: var(--plate); border-radius: 28px; padding: clamp(16px, 4vw, 56px); }
.plate img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px #0b0d120f, 0 24px 60px -24px #1e2a4a40; background: #fff; }

/* Hero */
.hero { padding: clamp(64px, 10vw, 120px) 0 0; text-align: center; }
.sub { font-size: clamp(18px, 1.8vw, 22px); color: var(--gray); max-width: 34em; margin: 28px auto 0; letter-spacing: -.01em; }
.sub a { color: var(--blue); }
.plate-hero { margin-top: clamp(48px, 7vw, 80px); }

/* Sections */
.block { padding: clamp(96px, 12vw, 160px) 0 0; }
.head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.head p:not(.kicker) { font-size: 19px; color: var(--gray); margin-top: 18px; letter-spacing: -.01em; }
.kicker { font-size: 15px; font-weight: 500; color: var(--blue); margin-bottom: 14px; letter-spacing: -.01em; }

/* Image and copy side by side */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-rev { grid-template-columns: 7fr 5fr; }
.split .head { text-align: left; margin: 0; }
.split .plate { padding: clamp(12px, 2.4vw, 28px); }

/* Two pathways */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path { border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 44px); }
.path > p { color: var(--gray); margin: 10px 0 28px; font-size: 18px; letter-spacing: -.01em; }
.path dl div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.path dt { color: var(--faint); }

/* Tabs under a screenshot */
.tabs { display: flex; justify-content: center; gap: 4px; margin: 20px auto 0; padding: 4px; width: max-content; border-radius: 999px; background: var(--plate); }
.tabs button { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--gray); transition: color .15s, background .15s, box-shadow .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #0b0d121f; }

/* DTS clause list */
.clauses { list-style: none; margin-top: 32px; font-size: 15px; }
.clauses li { display: flex; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.clauses li:last-child { border-bottom: 1px solid var(--line); }
.clauses span { font-family: var(--mono); font-size: 13px; color: var(--faint); width: 36px; padding-top: 2px; }

/* Section cut: a tall section with a pinned stage; main.js maps scroll progress to a frame. */
.cut { height: 300vh; margin-top: clamp(96px, 12vw, 160px); }
.cut-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.cut-inner { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cut-inner .head { text-align: left; margin: 0; }
.cut-stage { padding: clamp(12px, 3vw, 40px); }
.cut-stage img { max-height: calc(100vh - 200px); width: auto; margin: 0 auto; box-shadow: none; border-radius: 10px; }
.cut-meter { display: flex; align-items: center; gap: 12px; margin-top: 28px; font: 500 13px var(--mono); color: var(--faint); }
.cut-track { width: 140px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cut-fill { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* Footer */
.foot { margin-top: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--faint); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.foot .brand { font-size: 14px; color: var(--ink); }

@media (width <= 900px) {
  .split, .split-rev, .cut-inner, .paths { grid-template-columns: 1fr; }
  .split .head, .cut-inner .head { text-align: center; margin: 0 auto; }
  .split-rev .plate { order: 2; }
  .clauses { text-align: left; }
  .cut-meter { justify-content: center; }
  .cut-inner { gap: 24px; }
  .cut-inner .head p:not(.kicker) { display: none; }
}
@media (width <= 680px) {
  .wrap { padding: 0 16px; }
  .top-nav { display: none; }
  .plate { border-radius: 18px; }
  .plate img { border-radius: 8px; }
  .head p:not(.kicker) { font-size: 17px; }
  .cut { height: 220vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cut { height: auto; }
  .cut-sticky { position: static; height: auto; }
  .cut-meter { display: none; }
}

/* Waitlist */
.waitlist { text-align: center; padding: clamp(56px, 8vw, 96px) 24px; }
.waitlist p:not(.kicker) { font-size: 19px; color: var(--gray); margin-top: 16px; }
.mail { display: inline-block; margin-top: 32px; padding: 14px 26px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; letter-spacing: -.01em; transition: background .15s; }
.mail:hover { background: #2a2f3a; }

/* Motion. Only with JS (html.js), so nothing stays hidden if the script fails; off for reduced motion. */
:root { --ease: cubic-bezier(.16, 1, .3, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Load: top bar, headline word by word, subtitle, then the hero screenshot. */
.js .top-inner { animation: drop .8s var(--ease) both; }
.js .hero h1 .w { display: inline-block; animation: rise 1s var(--ease) both; animation-delay: calc(.08s + var(--i) * 70ms); }
.js .hero .sub { animation: rise 1s var(--ease) .45s both; }
.js .plate-hero { animation: rise 1.3s var(--ease) .6s both; }

/* Screenshots: a soft shimmer on the panel until the image loads, then the image fades in. */
.js .plate:not(.ready) { background: linear-gradient(100deg, var(--plate) 40%, #f7f9fc 50%, var(--plate) 60%) 0 0 / 200% 100%; animation: shimmer 1.6s linear infinite; }
.js .plate-hero:not(.ready) { animation: rise 1.3s var(--ease) .6s both, shimmer 1.6s linear infinite; }
.js .plate img { opacity: 0; transform: scale(.985); transition: opacity .7s var(--ease), transform 1s var(--ease); }
.js .plate.ready img { opacity: 1; transform: none; }
.js .plate img.swapping { opacity: 0; transform: scale(.99); transition-duration: .2s; }

/* Scroll: each heading, card and screenshot eases up once as it comes into view. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hovers */
.path { transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease); }
.path:hover { border-color: #d3d8e0; box-shadow: 0 18px 40px -24px #1e2a4a33; transform: translateY(-2px); }
.mail { transition: background .2s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.mail:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px #0b0d1266; }
.top-nav a { transition: color .2s; }

@media (prefers-reduced-motion: reduce) {
  .js .top-inner, .js .hero h1 .w, .js .hero .sub, .js .plate-hero, .js .plate:not(.ready) { animation: none; }
  .js .plate img, .js .reveal { opacity: 1; transform: none; transition: none; }
  .path:hover, .mail:hover { transform: none; }
}
