/* AI with Pelumi · light by day, dark by night
   Theme is set on <html data-theme> before paint (see the head script). */
:root, [data-theme="light"] {
  --sc-canvas:  #ffffff;
  --sc-surface: #f5f5f2;
  --raised:     #ecece8;
  --sc-ink:     #0b0c10;
  --sc-ink-soft:#5b5d64;
  --sc-accent:  #0f9a63;
  --sc-accent-ink: #ffffff;
  --line:   rgb(11 12 16 / 0.09);
  --line-2: rgb(11 12 16 / 0.16);
  --btn:    #0b0c10;
  --btn-ink:#ffffff;
  --card-shadow: 0 1px 2px rgb(11 12 16 / 0.05), 0 12px 32px -12px rgb(11 12 16 / 0.18);
  --mark-filter: none;
  color-scheme: light;
}
[data-theme="dark"] {
  --sc-canvas:  #0d0e11;
  --sc-surface: #15171c;
  --raised:     #1d2027;
  --sc-ink:     #eceae5;
  --sc-ink-soft:#9b9a95;
  --sc-accent:  #5be3a6;
  --sc-accent-ink: #07130d;
  --line:   rgb(236 234 229 / 0.09);
  --line-2: rgb(236 234 229 / 0.17);
  --btn:    #eceae5;
  --btn-ink:#0d0e11;
  --card-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -16px rgb(0 0 0 / 0.6);
  --mark-filter: invert(1);
  color-scheme: dark;
}
:root {
  --sc-font-display: "Geist", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-font-mono:    "Geist Mono", ui-monospace, monospace;
  --gut: clamp(16px, 4.5vw, 64px);
  --maxw: 1240px;
  /* the closing band stays night-dark in both themes */
  --night: #0c0d14;
  --night-2: #161824;
  --night-ink: #eeece7;
  --night-soft: #a19fa8;
}

html { background: var(--sc-canvas); scroll-padding-top: 88px; }
body {
  background: var(--sc-canvas); color: var(--sc-ink); font-family: var(--sc-font-text);
  -webkit-font-smoothing: antialiased; transition: background-color 300ms, color 300ms;
}
::selection { background: var(--sc-ink); color: var(--sc-canvas); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[data-sc-progress] { background: var(--sc-ink); height: 2px; }

.eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--sc-ink-soft); margin: 0 0 16px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-accent); flex: none; }
.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 0; text-wrap: balance; }

/* ------------------------------------------------------------- nav -- */
.nav {
  position: fixed; inset: 14px var(--gut) auto; z-index: 70;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__mark { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; justify-self: start; padding: 8px 14px 8px 10px; border-radius: 999px; transition: background-color 200ms; }
.nav__mark img { filter: var(--mark-filter); }
.nav__pill {
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: color-mix(in oklab, var(--sc-surface) 82%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.nav__pill a { font-size: 0.86rem; text-decoration: none; color: var(--sc-ink-soft); padding: 8px 14px; border-radius: 999px; transition: background-color 160ms, color 160ms; white-space: nowrap; }
.nav__pill a:hover { color: var(--sc-ink); }
.nav__pill a.is-on { background: var(--sc-canvas); color: var(--sc-ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav__theme {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  color: var(--sc-ink); background: color-mix(in oklab, var(--sc-surface) 82%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
[data-theme="light"] .i-sun, [data-theme="dark"] .i-moon { display: none; }
.nav__cta {
  display: inline-flex; gap: 8px; align-items: center; padding: 11px 18px; border-radius: 999px; text-decoration: none;
  font-size: 0.88rem; font-weight: 600; background: var(--btn); color: var(--btn-ink);
  transition: transform 160ms var(--sc-ease-out);
}
.nav__cta:active { transform: scale(0.97); }
.nav.is-scrolled .nav__mark { background: color-mix(in oklab, var(--sc-surface) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (max-width: 920px) {
  .nav { grid-template-columns: 1fr auto; inset-inline: 12px; top: 10px; }
  .nav__pill { display: none; }
  .nav__mark span { font-size: 0.95rem; }
}

/* ----------------------------------------------------------- forms -- */
.signup-form {
  display: flex; align-items: center; gap: 6px; max-width: 30rem;
  background: var(--sc-canvas); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 5px 5px 20px;
  box-shadow: var(--card-shadow);
  transition: border-color 160ms, box-shadow 160ms;
}
.signup-form:focus-within { border-color: var(--sc-ink); }
.signup-form input[type="email"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--sc-ink); font: 400 1rem/1.2 var(--sc-font-text); padding: 12px 0; }
.signup-form input::placeholder { color: var(--sc-ink-soft); }
.signup-form button {
  flex: none; border: 0; cursor: pointer; border-radius: 999px; padding: 13px 22px;
  font: 600 0.95rem/1 var(--sc-font-text); background: var(--btn); color: var(--btn-ink);
  transition: transform 160ms var(--sc-ease-out), opacity 160ms;
}
.signup-form button:hover { opacity: 0.88; }
.signup-form button:active { transform: scale(0.97); }
.signup-form button:disabled { opacity: 0.6; cursor: progress; }
.signup-form.is-done { flex-direction: column; align-items: flex-start; gap: 8px; border-radius: 20px; padding: 16px 20px; }
.form-success { margin: 0; font-weight: 500; }
.form-success::before { content: "✓ "; color: var(--sc-accent); }
.masterclass-cta { font-weight: 600; text-underline-offset: 4px; }
.signup-error { color: #d64532; font-size: 0.88rem; margin: 8px 0 0; }
[data-theme="dark"] .signup-error { color: #ff9b8a; }
.signup-note { font-size: 0.82rem; line-height: 1.55; color: var(--sc-ink-soft); margin: 12px 0 0; max-width: 30rem; }
.btn-ghost {
  display: inline-block; font-family: var(--sc-font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-decoration: none;
  padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 999px; transition: background-color 160ms, border-color 160ms;
}
.btn-ghost:hover { background: var(--sc-surface); border-color: var(--sc-ink); }

/* ------------------------------------------------------------ hero -- */
.hero {
  max-width: var(--maxw); margin-inline: auto; padding: 108px var(--gut) 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  min-height: min(92svh, 900px);
}
.hero__h { font-size: clamp(2.3rem, 1.2rem + 3.3vw, 4rem); line-height: 1.02; letter-spacing: -0.048em; font-weight: 600; margin: 0; text-wrap: balance; }
.hero__sub { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); line-height: 1.55; color: var(--sc-ink-soft); margin: 20px 0 28px; max-width: 32rem; text-wrap: pretty; }
.trust { display: flex; align-items: center; gap: 8px; font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--sc-ink-soft); margin: 18px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 700ms var(--sc-ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: 60ms; } .hero__copy > :nth-child(3) { animation-delay: 120ms; }
  .hero__copy > :nth-child(4) { animation-delay: 180ms; } .hero__copy > :nth-child(n+5) { animation-delay: 240ms; }
  .hero__card { animation: rise 900ms 120ms var(--sc-ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.hero__card {
  position: relative; height: min(72svh, 640px); border-radius: 28px; overflow: hidden;
  background: var(--sc-surface); border: 1px solid var(--line);
}
.hero__plane { position: absolute; will-change: transform; }
.hero__plane--back {
  inset: -40px;
  background:
    radial-gradient(circle at 70% 20%, color-mix(in oklab, var(--sc-accent) 22%, transparent), transparent 45%),
    radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 0 / 22px 22px;
}
.mail {
  left: 50%; top: 50%; width: min(80%, 25rem); margin: 0; translate: -50% -50%;
  background: var(--sc-canvas); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px 20px;
  box-shadow: var(--card-shadow); rotate: -2deg;
}
.mail__bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mail__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mail__meta { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--sc-font-mono); font-size: 0.66rem; }
.mail__meta div { display: flex; gap: 10px; padding: 2px 0; }
.mail__meta dt { width: 3.4em; color: var(--sc-ink-soft); }
.mail__meta dd { margin: 0; }
.mail__date { font-family: var(--sc-font-mono); font-size: 0.64rem; letter-spacing: 0.05em; color: var(--sc-ink-soft); margin: 0 0 6px; }
.mail__title { font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 12px; }
.mail img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.mail__ex { font-size: 0.82rem; line-height: 1.5; color: var(--sc-ink-soft); margin: 12px 0 0; }
.chip {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-radius: 14px; font-size: 0.86rem; font-weight: 500;
  background: color-mix(in oklab, var(--sc-canvas) 86%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--card-shadow); white-space: nowrap;
}
.chip b { font-family: var(--sc-font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.06em; color: var(--sc-accent); }
.chip--a { left: 6%; top: 9%; } .chip--b { right: 5%; top: 21%; } .chip--c { left: 4%; bottom: 19%; } .chip--d { right: 7%; bottom: 7%; }
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 92px; min-height: 0; gap: 36px; }
  .hero__card { height: 26rem; }
  .chip { font-size: 0.76rem; padding: 8px 11px; }
  .chip--b { top: 6%; } .chip--a { top: auto; bottom: 34%; left: 3%; }
}
@media (max-width: 480px) { .hero__card { height: 23rem; } .mail { width: 84%; } .chip--c { display: none; } }

/* ---------------------------------------------------- shared stages -- */
.stage { max-width: var(--maxw); margin-inline: auto; padding: 96px var(--gut) 40px; }

/* ------------------------------------------- 2 · what you'll learn -- */
.stage--learn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.learn__list .h2 { margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 14px 0 14px 20px; border-left: 2px solid var(--line); transition: border-color 300ms; }
.step h3 { margin: 4px 0 0; font-size: var(--sc-t-lg); letter-spacing: -0.025em; font-weight: 600; color: var(--sc-ink-soft); transition: color 300ms; }
.step__n { font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--sc-ink-soft); }
.step .stream { margin: 6px 0 0; font-size: 0.95rem; line-height: 1.55; color: var(--sc-ink-soft); max-width: 34rem; }
.step.is-on { border-color: var(--sc-ink); }
.step.is-on h3 { color: var(--sc-ink); }
.step.is-on .step__n { color: var(--sc-accent); }
.stream .u { color: transparent; }
.stream .w { color: var(--sc-ink); }
.step.is-on .stream .w:not(:empty)::after {
  content: ""; display: inline-block; width: 0.5em; height: 1.05em; margin-left: 2px; vertical-align: -0.18em; background: var(--sc-accent);
}
.step.is-done .stream .w::after { display: none; }

.learn__card {
  position: relative; height: min(64svh, 560px); border-radius: 28px; overflow: hidden;
  background: var(--sc-surface); border: 1px solid var(--line);
}
.learn__card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 0 / 22px 22px; opacity: 0.7; }
.learn__card-tag { position: absolute; left: 20px; top: 18px; margin: 0; font-family: var(--sc-font-mono); font-size: 0.7rem; letter-spacing: 0.06em; display: flex; gap: 8px; align-items: center; }
.learn__card-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sc-accent); }
.vis { position: absolute; inset: 64px 28px 28px; display: grid; place-content: center; opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 420ms var(--sc-ease-out), transform 420ms var(--sc-ease-out); }
.vis.is-on { opacity: 1; transform: none; }
.vis--0 { gap: 12px; }
.vis__label { margin: 0 0 8px; padding: 12px 16px; border-radius: 12px; background: var(--btn); color: var(--btn-ink); font-weight: 600; letter-spacing: -0.01em; }
.fmt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--sc-canvas); border: 1px solid var(--line); width: min(24rem, 64vw); box-shadow: var(--card-shadow); }
.fmt span { font-family: var(--sc-font-mono); font-size: 0.66rem; letter-spacing: 0.06em; width: 6.5em; color: var(--sc-ink-soft); }
.fmt i { height: 8px; border-radius: 4px; background: var(--line-2); width: var(--w); }
.site { width: min(24rem, 64vw); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 16px 40px 56px 34px; gap: 10px; padding: 16px; border-radius: 16px; background: var(--sc-canvas); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.site .b { border-radius: 6px; background: var(--line-2); }
.b--nav { grid-column: 1 / -1; } .b--h { background: var(--sc-ink) !important; } .b--btn { width: 60%; background: var(--sc-accent) !important; } .b--img { grid-column: 2; grid-row: 2 / 5; background: linear-gradient(135deg, var(--raised), var(--line-2)) !important; }
.hub { width: 132px; height: 132px; border-radius: 30px; display: grid; place-items: center; background: var(--btn); color: var(--btn-ink); font-family: var(--sc-font-mono); letter-spacing: 0.2em; font-size: 0.9rem; box-shadow: var(--card-shadow); position: relative; z-index: 1; }
.node { position: absolute; width: 58px; height: 58px; border-radius: 50%; background: var(--sc-canvas); border: 1px solid var(--line-2); box-shadow: var(--card-shadow); }
.node::after { content: ""; position: absolute; inset: 20px; border-radius: 50%; background: var(--sc-accent); opacity: 0.8; }
.node--1 { left: 12%; top: 14%; } .node--2 { right: 12%; top: 14%; } .node--3 { left: 12%; bottom: 14%; } .node--4 { right: 12%; bottom: 14%; }
.vis--3 { justify-items: start; }
.flow { font-family: var(--sc-font-mono); font-size: 0.74rem; letter-spacing: 0.06em; padding: 14px 18px; width: 14rem; border-radius: 12px; background: var(--sc-canvas); border: 1px solid var(--line); box-shadow: var(--card-shadow); position: relative; }
.flow:nth-child(2) { margin: 26px 0 0 3rem; } .flow:nth-child(3) { margin: 26px 0 0 6rem; }
.flow + .flow::before { content: ""; position: absolute; left: 22px; top: -27px; height: 26px; border-left: 1px dashed var(--line-2); }
.flow--out { background: var(--btn); color: var(--btn-ink); }
@media (max-width: 920px) {
  .stage--learn { grid-template-columns: 1fr; align-content: start; gap: 18px; padding-top: 84px; }
  .learn__card { height: 30svh; order: -1; border-radius: 22px; }
  .vis { inset: 40px 12px 12px; transform: scale(0.78); }
  .vis.is-on { transform: scale(0.8); }
  .learn__list .h2 { font-size: 1.7rem; margin-bottom: 12px; }
  .step { padding: 8px 0 8px 14px; }
  .step h3 { font-size: 1rem; }
  .step .stream { display: none; font-size: 0.86rem; }
  .step.is-on .stream { display: block; }
  .learn__list .eyebrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vis { transition: none; } }

/* ------------------------------------------------------- 3 · compare -- */
.stage--compare { display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { border-radius: 24px; padding: 22px 24px; background: var(--sc-surface); border: 1px solid var(--line); transition: background-color 400ms, color 400ms, opacity 400ms; }
.compare-col__h { margin: 0 0 8px; font-family: var(--sc-font-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--sc-ink-soft); }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); font-size: var(--sc-t-base); opacity: 0.25; transition: opacity 300ms var(--sc-ease-out); }
.compare-col li:last-child { border-bottom: 0; }
.compare-col li.is-on { opacity: 1; }
.compare-col li::before { position: absolute; left: 2px; font-family: var(--sc-font-mono); }
.compare-col--them li::before { content: "×"; color: #d64532; }
.compare-col--us li::before { content: "✓"; color: var(--sc-accent); }
.is-struck .compare-col--them { opacity: 0.6; }
.is-struck .compare-col--them li { text-decoration: line-through; text-decoration-color: color-mix(in oklab, #d64532 55%, transparent); color: var(--sc-ink-soft); }
.is-struck .compare-col--us { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.is-struck .compare-col--us .compare-col__h { color: color-mix(in oklab, var(--btn-ink) 65%, transparent); }
.is-struck .compare-col--us li { border-color: color-mix(in oklab, var(--btn-ink) 14%, transparent); }
[data-theme="light"] .is-struck .compare-col--us li::before { color: #5be3a6; }
@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; gap: 10px; }
  .compare-col { padding: 14px 18px; border-radius: 18px; }
  .compare-col li { padding: 8px 0 8px 26px; font-size: 0.9rem; }
  .stage--compare { gap: 18px; justify-content: flex-start; padding-top: 84px; }
}
@media (prefers-reduced-motion: reduce) { .compare-col li { opacity: 1; } }

/* ---------------------------------------------------------- 4 · band -- */
.band { padding: clamp(72px, 12vw, 160px) var(--gut); }
.band__inner { max-width: 54rem; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.band__line { font-size: clamp(1.7rem, 1rem + 2.8vw, 3.2rem); line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; margin: 0 0 32px; text-wrap: balance; }
.band .signup-form { width: 100%; }

/* --------------------------------------------------------- 5 · rail -- */
.stage--rail { max-width: none; padding-inline: 0; display: flex; align-items: center; }
.rail { display: flex; align-items: stretch; gap: 20px; padding: 0 var(--gut); }
.rail__lead { flex: 0 0 min(24rem, 80vw); align-self: center; }
.rail__end { flex: 0 0 auto; align-self: center; padding-right: var(--gut); }
.post {
  flex: 0 0 min(23rem, 78vw); display: flex; flex-direction: column; text-decoration: none;
  padding: 12px 12px 20px; border-radius: 24px; background: var(--sc-surface); border: 1px solid var(--line);
  transition: border-color 200ms;
}
.post:hover { border-color: var(--line-2); }
.post img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; display: block; }
.post__meta { font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--sc-ink-soft); margin: 16px 6px 8px; }
.post h3 { margin: 0 6px 10px; font-size: var(--sc-t-lg); line-height: 1.25; letter-spacing: -0.025em; }
.post > p:not(.post__meta) { color: var(--sc-ink-soft); margin: 0 6px 16px; line-height: 1.55; font-size: 0.93rem; }
.post__read { margin: auto 6px 0; font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.05em; }

/* ------------------------------------------------------ 6 · letter -- */
.lib { max-width: var(--maxw); margin-inline: auto; padding: clamp(64px, 10vw, 140px) var(--gut); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.letter { background: #f3efe6; color: #1a1915; border-radius: 8px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--card-shadow); line-height: 1.65; rotate: -0.6deg; }
.letter p { margin: 0 0 14px; }
.letter mark { background: #cdeedd; color: inherit; padding: 0 2px; }
.letter__meta { margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid #ddd7ca; font-family: var(--sc-font-mono); font-size: 0.74rem; }
.letter__meta div { display: flex; gap: 12px; padding: 3px 0; }
.letter__meta dt { width: 3.5em; color: #6b675d; }
.letter__meta dd { margin: 0; }
.letter__sign { font-size: 1.6rem; font-style: italic; font-weight: 500; letter-spacing: -0.02em; }
.help details { border-top: 1px solid var(--line); }
.help details:last-child { border-bottom: 1px solid var(--line); }
.help summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 500; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 12px; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "+"; font-family: var(--sc-font-mono); color: var(--sc-ink-soft); transition: transform 200ms var(--sc-ease-out); }
.help details[open] summary::after { transform: rotate(45deg); }
.help details p { margin: 0 0 18px; color: var(--sc-ink-soft); line-height: 1.6; }
@media (max-width: 860px) { .lib { grid-template-columns: 1fr; } .letter { rotate: 0deg; } }

/* -------------------------------------------------- 7 · night band -- */
.close {
  --sc-ink: var(--night-ink); --sc-ink-soft: var(--night-soft); --line: rgb(238 236 231 / 0.1); --line-2: rgb(238 236 231 / 0.2);
  --sc-canvas: var(--night); --sc-surface: var(--night-2); --btn: #eeece7; --btn-ink: #0c0d14; --sc-accent: #5be3a6;
  color: var(--sc-ink);
  margin: 0 clamp(8px, 1.4vw, 20px) clamp(8px, 1.4vw, 20px); border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 0%, rgb(91 227 166 / 0.14), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgb(120 110 255 / 0.10), transparent 55%),
    var(--night);
}
[data-theme="dark"] .close { border: 1px solid rgb(238 236 231 / 0.08); }
.close__inner { max-width: var(--maxw); margin-inline: auto; padding: clamp(64px, 10vw, 128px) var(--gut) 56px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.close__grey { margin: 0; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; color: var(--sc-ink-soft); }
.close__h { margin: 0 0 32px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; text-wrap: balance; }
.close .signup-form { background: var(--night-2); box-shadow: none; }
.founder { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--night-2); border: 1px solid var(--line); max-width: 24rem; }
.founder img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; display: block; }
.founder__text { padding: 18px 20px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.founder__name { margin: 0; font-weight: 600; font-size: 1.1rem; }
.founder__role { margin: 0 0 14px; color: var(--sc-ink-soft); }
.founder__email { margin: 10px 0 0; font-family: var(--sc-font-mono); font-size: 0.7rem; color: var(--sc-ink-soft); }
.foot { max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gut); }
.foot__row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--line); font-size: 0.82rem; }
.foot__brand p { margin: 0 0 4px; font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--sc-ink-soft); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot__social { margin-left: auto !important; }
.foot__links { font-family: var(--sc-font-mono); font-size: 0.7rem; letter-spacing: 0.05em; }
.foot a { text-decoration: none; color: var(--sc-ink); opacity: 0.85; transition: opacity 160ms; }
.foot a:hover { opacity: 1; }
.foot__mark { margin: 0 0 -0.18em; font-size: clamp(3rem, 12.5vw, 11.5rem); line-height: 0.85; letter-spacing: -0.06em; font-weight: 700; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgb(238 236 231 / 0.16); text-align: center; user-select: none; }
@media (max-width: 860px) {
  .close__inner { grid-template-columns: 1fr; }
  .foot__social { margin-left: 0 !important; }
  .close { border-radius: 24px; }
}

/* ---------------------------------------------------------- dialog -- */
.signup-popup { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.signup-popup[hidden] { display: none; }
.signup-popup-backdrop { position: absolute; inset: 0; background: rgb(8 9 12 / 0.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity 240ms; }
.signup-popup-card {
  position: relative; width: min(30rem, 100%); background: var(--sc-canvas); border: 1px solid var(--line); border-radius: 28px;
  padding: 28px; box-shadow: var(--card-shadow); opacity: 0; transform: translateY(10px) scale(0.98);
  transition: opacity 240ms var(--sc-ease-out), transform 240ms var(--sc-ease-out);
}
.signup-popup.is-open .signup-popup-backdrop, .signup-popup.is-open .signup-popup-card { opacity: 1; transform: none; }
.signup-popup-card h2 { margin: 0 0 8px; font-size: var(--sc-t-xl); letter-spacing: -0.035em; }
.signup-popup-sub { color: var(--sc-ink-soft); margin: 0 0 18px; }
.signup-popup-close { position: absolute; top: 12px; right: 12px; background: var(--sc-surface); border: 0; color: var(--sc-ink); font-size: 1.3rem; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
body.popup-open { overflow: hidden; }

@media (max-width: 480px) {
  .signup-form { padding-left: 16px; }
  .signup-form button { padding: 13px 16px; }
}

/* ---------------------------------------------------- round-2 tune -- */
/* chips sit in the margins around the email, never over its text */
.mail { width: min(72%, 21rem); }
.chip--a { left: 5%; top: 5%; bottom: auto; } .chip--b { right: 5%; top: 9%; bottom: auto; }
.chip--c { left: 5%; bottom: 7%; top: auto; } .chip--d { right: 6%; bottom: 4%; top: auto; }
/* only the pillar being written shows its description; the rest are titles */
.step .stream { display: none; }
.step.is-on .stream { display: block; }
.step { padding-block: 12px; }
@media (max-width: 920px) { .mail { width: 78%; } .chip--a { top: 4%; } .chip--d { bottom: 3%; } }
@media (max-width: 920px) { .vis { inset: 46px 8px 8px; transform: scale(0.7); } .vis.is-on { transform: scale(0.72); } }

/* ------------------------------------------------ centred hero (v4) -- */
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: 0; padding-top: clamp(120px, 15vh, 168px); padding-bottom: 0; gap: clamp(40px, 6vh, 64px);
  position: relative;
}
/* a soft light behind the headline, not a gradient on the text */
.hero::before {
  content: ""; position: absolute; left: 50%; top: 40px; width: min(1100px, 120vw); height: 620px; translate: -50% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, color-mix(in oklab, var(--sc-accent) 14%, transparent), transparent 62%);
}
.hero__copy { display: flex; flex-direction: column; align-items: center; max-width: 52rem; }
.hero__copy .eyebrow {
  padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in oklab, var(--sc-surface) 70%, transparent);
  margin-bottom: 24px;
}
.hero__h { font-size: clamp(2.5rem, 1.1rem + 4.6vw, 5.2rem); line-height: 0.98; letter-spacing: -0.055em; max-width: 17ch; }
.hero__sub { margin: 24px auto 32px; max-width: 34rem; }
.hero .signup-form { width: 100%; max-width: 30rem; margin-inline: auto; }
.hero .signup-note { margin-inline: auto; max-width: 28rem; }
.hero .trust { justify-content: center; }

/* the visual becomes a wide stage under the copy, tilted back, flattening on scroll */
.hero__stage { width: 100%; max-width: 1080px; perspective: 1600px; }
.hero__card {
  height: clamp(380px, 52vw, 560px); border-radius: 32px; transform-origin: 50% 0%;
  transform: rotateX(calc(18deg * (1 - var(--flat, 0)))) scale(calc(0.94 + 0.06 * var(--flat, 0)));
  box-shadow: 0 40px 80px -40px rgb(11 12 16 / 0.35);
}
[data-theme="dark"] .hero__card { box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(255 255 255 / 0.04); }
.hero .mail { width: min(46%, 23rem); text-align: left; }
.hero .chip { text-align: left; }
.hero .chip--a { left: 7%; top: 14%; } .hero .chip--b { right: 7%; top: 18%; bottom: auto; }
.hero .chip--c { left: 10%; bottom: 16%; top: auto; } .hero .chip--d { right: 9%; bottom: 12%; top: auto; }
@media (prefers-reduced-motion: reduce) { .hero__card { transform: none; } }
@media (max-width: 920px) {
  .hero { padding-top: 104px; gap: 36px; }
  .hero__h { font-size: clamp(2.3rem, 9.5vw, 3.4rem); }
  .hero__card { height: 26rem; }
  .hero .mail { width: 78%; }
  .hero .chip--a { left: 4%; top: 4%; } .hero .chip--b { right: 4%; top: 12%; }
  .hero .chip--c { display: none; } .hero .chip--d { right: 4%; bottom: 3%; }
}
.hero .trust { display: block; text-wrap: balance; max-width: 30rem; line-height: 1.6; }
.hero .trust .dot { display: inline-block; vertical-align: 1px; margin-right: 8px; }
@media (max-width: 920px) {
  .hero__card { height: 22rem; }
  .hero .mail { width: 70%; top: 56%; }
  .hero .mail__ex, .hero .mail__meta { display: none; }
  .hero .chip--a { left: 4%; top: 4%; } .hero .chip--b { right: 4%; top: 4%; left: auto; }
  .hero .chip--d { display: none; }
}

/* ------------------------------------------- motion films (Remotion) -- */
/* Each film is rendered on the card's own surface colour, so it reads as
   the card itself moving. Light and dark renders swap with the theme. */
.hero__film { inset: -2.5%; }
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film--dark { display: none; }
[data-theme="dark"] .film--light { display: none; }
[data-theme="dark"] .film--dark { display: block; }
.vis--film { inset: 0; display: block; z-index: 1; }
.learn__card-tag { z-index: 2; }
/* Phones: the wide hero film shrinks to fit rather than cropping to its
   middle; its background matches the card, so there is no visible band. */
@media (max-width: 700px) {
  .hero__film { inset: 0; }
  .hero__film .film { object-fit: contain; }
  .vis--film { transform: none; }
}

/* ------------------------------------------- hero spacing (quiet luxury) -- */
/* The longer headline sat on four tight lines. Wider measure, a touch
   smaller, more air between letters and lines, and room between each
   piece of the stack so nothing reads as a cluster. */
.hero__h { font-size: clamp(2.4rem, 1.2rem + 3.8vw, 4.6rem); line-height: 1.06; letter-spacing: -0.038em; max-width: 19ch; }
.hero__copy .eyebrow { margin-bottom: 32px; }
.hero__sub { margin: 32px auto 44px; max-width: 33rem; line-height: 1.7; }
.hero .signup-note { margin-top: 18px; line-height: 1.65; }
.hero .trust { margin-top: 30px; line-height: 1.8; }
@media (max-width: 700px) {
  .hero__h { font-size: clamp(2.1rem, 8.4vw, 3rem); line-height: 1.08; letter-spacing: -0.032em; }
  .hero__sub { margin: 24px auto 32px; }
}
