:root {
  /* Generated from design/tokens.json by Scripts/design-tokens.py. Edit the tokens, not this block. */
  --paper: #F4F5F7;
  --surface: #FFFFFF;
  --ink: #161B2B;
  --slate: #586276;
  --line: #DCE0E7;
  --signal: #5E4AE3;
  --signal-soft: #ECE9FD;
  --on-signal: #FFFFFF;
  --verified: #1E8A4C;
  --band: #1D1846;
  --band-ink: #F1EFFF;
  --band-mist: #C3BDEB;
  --band-link: #B9B0FF;
  --bezel: #0E1420;
  --bezel-edge: rgba(14, 20, 32, 0);
  --shadow: rgba(22, 27, 43, 0.22);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: "Source Serif 4", ui-serif, Georgia, serif;
  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 78rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0E121C;
  --surface: #171C29;
  --ink: #E9ECF2;
  --slate: #9AA4B6;
  --line: #283043;
  --signal: #8B7CFF;
  --signal-soft: #231F45;
  --on-signal: #0E121C;
  --verified: #4CC27E;
  --band: #1A1640;
  --bezel: #05070C;
  --bezel-edge: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, summary, label, .button, .wordmark, .site-header nav, .reasons dt, .steps h3,
.details dt, .waitlist-note, .site-footer, .lost-code {
  font-family: var(--display);
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--signal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--signal-soft); color: var(--ink); }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: var(--gutter); top: -3rem; z-index: 20;
  background: var(--ink); color: var(--paper); padding: 0.5rem 0.9rem; border-radius: 8px; font-family: var(--display);
}
.skip:focus { top: 0.75rem; }

main > section:not(.band) { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
main > section + section { margin-top: clamp(5rem, 11vw, 9rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 17ch; }

/* Header: solid paper, a rule once you've scrolled */

.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); transition: box-shadow 0.3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.bar { display: flex; align-items: center; gap: 1rem; max-width: var(--wide); margin: 0 auto; padding: 0.85rem var(--gutter); }
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; margin-right: auto; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.mark { width: 1.75rem; height: 1.75rem; flex: none; }
.site-header nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 1.9rem); font-size: 1rem; font-weight: 500; }
.site-header nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover { color: var(--signal); }
.nav-github { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.85rem 0.35rem 0.7rem; border: 1.5px solid var(--line); border-radius: 999px; }
.site-header nav .nav-github:hover { color: var(--ink); border-color: var(--ink); background: var(--surface); }
.nav-github svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* Theme toggle: shows the theme you'd switch to */

.theme-toggle {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; padding: 0; cursor: pointer;
  color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { border-color: var(--ink); background: var(--surface); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Buttons */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.35rem;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 1.02rem; text-decoration: none; white-space: nowrap; transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.button:hover { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.button:active { transform: scale(0.97); }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button.quiet:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }

/* Hero: the promise and one action on the left, the real app and your channel on the right */

main > section.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center;
  gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(2.5rem, 6vw, 5rem);
}
.hero-copy { display: grid; justify-items: start; gap: 1.4rem; }
.hero h1 { font-size: clamp(3.1rem, 7vw, 6.2rem); line-height: 0.9; font-weight: 800; letter-spacing: -0.045em; }
.hero h1 span { display: block; }
.sub { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--slate); max-width: 26rem; text-wrap: balance; }
.fine { font-family: var(--display); font-weight: 500; font-size: 0.95rem; color: var(--slate); }

.waitlist { display: grid; gap: 0.55rem; width: min(100%, 31rem); text-align: left; }
.waitlist-row {
  display: flex; align-items: center; gap: 0.35rem; padding: 0.3rem; min-width: 0;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; transition: border-color 0.2s;
}
.waitlist-row:focus-within { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.waitlist input { flex: 1; min-width: 0; min-height: 2.7rem; padding: 0 0.6rem 0 1.1rem; border: 0; background: transparent; color: var(--ink); font: 500 1rem var(--display); outline: none; }
.waitlist input::placeholder { color: var(--slate); }
.waitlist .button { min-height: 2.7rem; padding: 0.45rem 1.25rem; gap: 0.45rem; background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.waitlist .button svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.waitlist .button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.waitlist .button:disabled { opacity: 0.6; cursor: default; }
.waitlist-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-note { font-family: var(--display); font-size: 0.92rem; font-weight: 500; color: var(--slate); }
.waitlist-note:empty { display: none; }
.waitlist.is-done .waitlist-row { display: none; }
.waitlist.is-done .waitlist-note { font-size: 1.05rem; font-weight: 600; color: var(--verified); }

/* The real app on an iPhone, cut off at the bottom, with your channel resting on it */
.hero-visual { position: relative; justify-self: center; width: clamp(15rem, 24vw, 19.5rem); }
.hero-visual .phone-clip {
  height: clamp(24rem, 40vw, 33rem); overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent);
}
.channel {
  position: absolute; left: -38%; bottom: 14%; z-index: 2; margin: 0;
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.2rem 0.85rem 0.9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 48px -24px var(--shadow); font-family: var(--display); line-height: 1.3; white-space: nowrap;
}
.channel-avatar { width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; }
.channel-name { display: block; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.channel-sub { display: block; font-size: 0.82rem; color: var(--slate); font-variant-numeric: tabular-nums; }

/* Three reasons, under the hero */

main > section.reasons { margin-top: clamp(2.5rem, 5vw, 4rem); }

.reasons dl { margin: clamp(0.5rem, 2vw, 1.5rem) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3.5rem); }
.reasons div { border-top: 2px solid var(--ink); padding-top: 1rem; }
.reasons dt { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.reasons dd { margin: 0.55rem 0 0; color: var(--slate); max-width: 22rem; }

/* Phones: the real app, in a plain bezel */

.phone {
  position: relative; width: 100%; aspect-ratio: 607 / 1320;
  border-radius: 16% / 7.4%; background: var(--bezel); padding: 3.2%;
  box-shadow: 0 0 0 1px var(--bezel-edge), 0 40px 80px -40px var(--shadow), 0 12px 24px -12px var(--shadow);
}
.phone > img { width: 100%; height: 100%; object-fit: cover; border-radius: 13.4% / 6.2%; }

/* Feature tour: the phone stays, the screen changes */

.features h2 { max-width: 15ch; }
.tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); margin-top: 3rem; }
.tour-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; opacity: 0.32; transition: opacity 0.5s var(--ease); }
.tour-step.is-active { opacity: 1; }
.tour-step h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.9rem; }
.tour-step p + p { margin-top: 0.8rem; }
.tour-step .note { color: var(--slate); font-size: 1rem; }
.tour-inline { display: none; }
.tour-phone { position: sticky; top: calc(50vh - min(21rem, 38vh)); height: fit-content; align-self: start; display: flex; justify-content: center; margin-top: 8vh; }
.tour-phone .phone { width: min(19.5rem, 33vh); }
.tour-phone .phone > img { position: absolute; inset: 3.2%; width: 93.6%; height: 94.2%; opacity: 0; transform: scale(0.985); transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.tour-phone .phone > img.is-on { opacity: 1; transform: none; }

/* Details */

.details dl { margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem clamp(1.5rem, 3vw, 2.5rem); }
.details svg { width: 2rem; height: 2rem; fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 0.9rem; }
.details dt { font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.details dd { margin: 0.4rem 0 0; color: var(--slate); font-size: 1.02rem; }

/* How it works: a real sequence */

.steps { list-style: none; counter-reset: step; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.steps li { counter-increment: step; }
.steps img {
  width: min(14rem, 100%); aspect-ratio: 607 / 1320; object-fit: cover; border-radius: 1.9rem;
  border: 7px solid var(--bezel); box-shadow: 0 0 0 1px var(--bezel-edge), 0 30px 50px -30px var(--shadow); margin-bottom: 1.6rem;
}
.steps h3 { font-size: 1.35rem; line-height: 1.2; display: flex; align-items: baseline; gap: 0.6rem; }
.steps h3::before { content: counter(step); color: var(--signal); font-weight: 800; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 0.5rem; color: var(--slate); max-width: 22rem; }

/* Privacy band: deep indigo in both themes */

.band { background: var(--band); color: var(--band-ink); }
.band-inner { max-width: var(--wide); margin: 0 auto; padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); }
.band h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); max-width: 12ch; letter-spacing: -0.035em; }
.band p { margin-top: 1.6rem; max-width: 38rem; font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--band-mist); }
.band a { color: var(--band-link); }
.band :focus-visible { outline-color: var(--band-link); }

/* FAQ */

.faq details, .faq-more { max-width: 54rem; }
.faq-intro { margin-top: 1.25rem; color: var(--slate); max-width: var(--measure); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { margin-top: 2.5rem; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.1rem 0; font-weight: 600; font-size: 1.2rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.75rem; height: 0.75rem; border-right: 2px solid var(--signal); border-bottom: 2px solid var(--signal);
  transform: translateY(-25%) rotate(45deg); transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq summary:hover { color: var(--signal); }
.answer { overflow: hidden; }
.answer p { padding: 0 2.5rem 1.5rem 0; max-width: 44rem; }
.faq-more { margin-top: 2rem; color: var(--slate); }

/* Open source */

.open { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 3rem; padding-bottom: clamp(4rem, 9vw, 7rem); }
.open p { max-width: var(--measure); margin-top: 1.25rem; }
.open .actions { margin-top: 0; }

/* Footer: the same on every page */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner {
  max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 2.5rem;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 2.5rem clamp(2rem, 5vw, 5rem);
}
.footer-brand p { margin-top: 0.8rem; max-width: 18rem; font-size: 1rem; color: var(--slate); }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-links h2 { font-size: 0.95rem; letter-spacing: 0; color: var(--slate); font-weight: 600; margin-bottom: 0.8rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-links svg { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: var(--slate); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-links svg.solid { fill: var(--slate); stroke: none; }
.footer-links a:hover svg { stroke: var(--signal); }
.footer-links a:hover svg.solid { fill: var(--signal); }
.footer-links a:hover { color: var(--signal); }
.footer-legal {
  grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.88rem; line-height: 1.55; color: var(--slate);
}
.footer-legal a { color: inherit; }

/* Long-form pages: changelog and privacy policy */

.prose { max-width: 46rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(4rem, 8vw, 6rem); }
.prose h1 { font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 0.98; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.prose h1 + p { font-size: 1.2rem; color: var(--slate); }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.015em; margin: 3rem 0 0.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: none; }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 0.4rem; }
.prose p, .prose ul { margin: 0.8rem 0 0; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--signal); }
.prose code { font-size: 0.88em; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; }

/* Not found */

.lost { padding-block: clamp(4rem, 12vw, 9rem); }
.lost .lost-code { margin: 0 0 1rem; font-size: 1rem; font-weight: 700; color: var(--signal); font-variant-numeric: tabular-nums; }
.lost h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 0.95; font-weight: 800; letter-spacing: -0.04em; max-width: 12ch; }
.lost p { margin-top: 1.25rem; font-size: 1.2rem; color: var(--slate); }

@media (prefers-reduced-motion: reduce) {
  .tour-step, .tour-phone .phone > img, .button, .faq summary::after { transition: none; }
}

/* Smaller screens */

@media (max-width: 1000px) {
  .details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour { grid-template-columns: 1fr; }
  .tour-phone { display: none; }
  .tour-step { min-height: 0; opacity: 1; margin-bottom: 4rem; }
  .tour-inline {
    display: block; width: min(17rem, 72%); aspect-ratio: 607 / 1320; object-fit: cover; border-radius: 2.2rem;
    border: 8px solid var(--bezel); margin-bottom: 1.6rem; box-shadow: 0 0 0 1px var(--bezel-edge), 0 30px 50px -30px var(--shadow);
  }
}
@media (max-width: 820px) {
  main > section.hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: min(15rem, 58vw); margin-top: 1rem; }
  .hero-visual .phone-clip { height: min(24rem, 100vw); }
  .channel { left: -30%; bottom: 10%; }
  .reasons dl { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .open { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .site-header nav a[href$="#how"], .site-header nav a[href$="#features"], .site-header nav a[href$="#faq"] { display: none; }
  .bar { gap: 0.6rem; }
  .waitlist-row { flex-wrap: wrap; border-radius: 22px; padding: 0.4rem; }
  .waitlist input { flex-basis: 100%; padding: 0 0.6rem; }
  .waitlist .button { flex: 1; }
  .actions .button { width: 100%; }
  .details dl { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps img { width: min(15rem, 70%); }
  .faq summary { font-size: 1.1rem; }
  .answer p { padding-right: 0; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
