:root {
  --bg: #0b0d10;
  --surface: #14181d;
  --surface-2: #1c2128;
  --ink: #eef2f5;
  --muted: #aab3bc;
  --accent: #58e0c4;
  --accent-ink: #06201a;
  --accent-strong: #76ecd4;

  --font-display: "Epilogue", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Epilogue", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; /* taste-skill-ignore: mono only on real code blocks */

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.1rem + 4.2vw, 4.75rem);
  --step-display: clamp(2.75rem, 1rem + 9.3vw, 10.5rem);

  --margin: clamp(1rem, 3.5vw, 2.25rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 13vw, 13rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --stagger-line: 90ms;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f5f3;
    --surface: #e8eae6;
    --surface-2: #dcdfda;
    --ink: #0c1113;
    --muted: #596067;
    --accent: #0f7d68;
    --accent-ink: #ffffff;
    --accent-strong: #0b6353;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f5f3;
  --surface: #e8eae6;
  --surface-2: #dcdfda;
  --ink: #0c1113;
  --muted: #596067;
  --accent: #0f7d68;
  --accent-ink: #ffffff;
  --accent-strong: #0b6353;
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ul[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.skip { position: absolute; left: -999px; top: 0; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; }
.skip:focus { left: 0; }

.wrap { padding-inline: var(--margin); }
.section { padding-block: calc(var(--section) / 2); }

.head {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-head);
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-wrap: balance;
  hyphens: none;
  max-width: 18ch;
}
.lead {
  font-size: var(--step-lead);
  line-height: 1.35;
  max-width: 46ch;
  color: var(--ink);
}
.small { font-size: var(--step-small); line-height: 1.45; }
p { text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; }

/* --- buttons and links --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--invert { background: var(--bg); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button--invert:hover { background: var(--surface); }
}
.link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; color: var(--accent); }
}

/* --- hero --- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-block: 1.6rem 2.2rem;
}
.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.wordmark { font-weight: 900; letter-spacing: -0.04em; text-decoration: none; font-size: 0.95rem; }
.topbar__links { display: flex; gap: clamp(0.9rem, 2vw, 1.75rem); font-size: 0.95rem; flex-wrap: wrap; }

.hero__statement {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-display);
  line-height: 0.86;
  letter-spacing: -0.05em;
  margin-block: auto;
  padding-block: clamp(2rem, 8vh, 6rem);
}
.hero__statement .line > span { white-space: nowrap; }
.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
}
.hero__foot .lead { flex: 1 1 24rem; }
.hero__foot .button { flex: 0 0 auto; }

/* --- how it works --- */
.how .head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.stage {
  background: var(--surface);
  padding: clamp(1.4rem, 2.5vw, 2.25rem);
  min-height: 34vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.stage--run { background: var(--surface-2); }
.stage--recover { background: var(--accent); color: var(--accent-ink); }
.stage__time {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  letter-spacing: -0.03em;
}
.stage__text { color: var(--muted); max-width: 30ch; }
.stage__text b { color: var(--ink); font-weight: 500; }
.stage--recover .stage__text { color: var(--accent-ink); opacity: 0.86; }
.stage--recover .stage__text b { color: var(--accent-ink); opacity: 1; }

/* --- commit console and key card --- */
.consoles {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6px;
  margin-top: 6px;
}
.console { background: var(--surface); display: flex; flex-direction: column; margin: 0; }
.console__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem clamp(1rem, 2vw, 1.4rem);
  background: var(--surface-2);
}
.console__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); }
.console__title { font-size: var(--step-small); color: var(--muted); }
.console__meta { margin-left: auto; font-size: var(--step-small); font-weight: 500; color: var(--accent); }
.console__body { /* taste-skill-ignore: mono on a real pre/code block of program output */
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  line-height: 1.9;
  color: var(--ink);
  margin: 0;
  padding: clamp(1.2rem, 2.5vw, 1.8rem) clamp(1rem, 2vw, 1.4rem);
  overflow-x: auto;
}
.console__line { display: block; }
.console__ok { color: var(--accent); }
.console__muted { color: var(--muted); }

.keycard { background: var(--accent); color: var(--accent-ink); margin: 0; padding: clamp(2.6rem, 4vw, 3.4rem) clamp(1.4rem, 2.8vw, 2.25rem) clamp(1.4rem, 2.8vw, 2.25rem); display: flex; flex-direction: column; justify-content: flex-start; gap: 1rem; }
.keycard__key code { font-variant-numeric: tabular-nums; }
.keycard__cap { font-size: var(--step-small); opacity: 0.8; }
.keycard__key { max-width: none; }
.keycard__key code { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.05rem, 2.5vw, 1.6rem); letter-spacing: 0.01em; }
.keycard__note { font-size: var(--step-small); line-height: 1.5; max-width: 34ch; opacity: 0.88; }

/* --- levels --- */
.levels .head { max-width: 16ch; }
.levels__intro { margin-top: 1.4rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); color: var(--muted); }
.picker { display: grid; gap: 6px; }
.picker__tabs { display: flex; gap: 6px; }
.picker__tab {
  flex: 1 1 0;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  text-align: left;
  padding: clamp(0.9rem, 2vw, 1.4rem) clamp(1rem, 2vw, 1.5rem);
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease;
}
.picker__tab.is-selected { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) {
  .picker__tab:not(.is-selected):hover { color: var(--ink); background: var(--surface-2); }
}
.picker__panel {
  background: var(--surface);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.picker__panel[hidden] { display: none; }
.picker__cost { display: flex; flex-direction: column; gap: 1.25rem; }
.cost { display: flex; flex-direction: column; gap: 0.1rem; }
.cost__num {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1;
}
.cost__label { color: var(--muted); font-size: var(--step-small); }
.picker__what { max-width: 48ch; line-height: 1.55; }

/* --- the before/after transform --- */
.transform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}
.transform__pane { background: var(--surface); display: flex; flex-direction: column; }
.transform__pane--out { background: var(--surface-2); }
.transform__cap {
  padding: 0.9rem clamp(1rem, 2vw, 1.4rem);
  color: var(--muted);
  font-size: var(--step-small);
}
.transform__pane--out .transform__cap { color: var(--accent); }
.code {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.3vw, 0.9rem);
  line-height: 1.7;
  padding: 0 clamp(1rem, 2vw, 1.4rem) clamp(1.3rem, 2vw, 1.6rem);
  margin: 0;
  overflow-x: auto;
  color: var(--ink);
}
.c-k { color: var(--accent); }
.c-f { color: #c89bf0; }
.c-n { color: var(--ink); }
.c-cm { color: var(--muted); }
:root[data-theme="light"] .c-f, :root:not([data-theme="dark"]) .c-f { color: #7b3fb5; }

/* --- honest --- */
.honest { background: var(--surface); }
.honest__inner { max-width: 70rem; margin-inline: auto; }
.honest .head { margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.honest__body {
  columns: 2;
  column-gap: clamp(2rem, 4vw, 3.5rem);
  max-width: 62rem;
}
.honest__body p { break-inside: avoid; margin-bottom: 1.1em; max-width: 42ch; line-height: 1.6; color: var(--ink); }

/* --- faq --- */
.faq .head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.faq__text {
  columns: 2;
  column-gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 74rem;
}
.faq__text p { break-inside: avoid; margin-bottom: 1.25em; max-width: 40ch; line-height: 1.55; color: var(--ink); }
.faq__text b { color: var(--accent); font-weight: 600; }

/* --- footer --- */
.footer { background: var(--ink); color: var(--bg); overflow: clip; padding-top: clamp(4rem, 9vw, 8rem); }
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.footer__cta { color: var(--bg); max-width: 12ch; margin-bottom: 1.6rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__links a { color: var(--bg); opacity: 0.72; }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { opacity: 1; } }
.footer__legal { color: var(--bg); opacity: 0.55; padding-bottom: clamp(2.5rem, 6vw, 5rem); max-width: 60ch; }
.footer__name {
  display: block;
  width: 100%;
  height: auto;
  padding-inline: var(--margin);
  margin-bottom: -0.04em;
}
.footer__name text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 200px;
  fill: var(--bg);
}

/* --- motion --- */
.lines .line { display: block; overflow: hidden; padding-top: 0.16em; margin-top: -0.16em; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
[data-lines] .line { display: block; overflow: clip; padding-top: 0.16em; margin-top: -0.16em; padding-bottom: 0.12em; margin-bottom: -0.12em; }
[data-lines] .line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero .lines [data-line] {
    transform: translateY(105%);
    animation: line-up 900ms var(--ease-expo) forwards;
    animation-delay: calc(var(--i) * 110ms + 150ms);
  }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: load-rise 600ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-rise] { opacity: 0; transform: translateY(20px); transition: opacity 650ms var(--ease-out), transform 750ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-rise].is-in { opacity: 1; transform: none; }
  .js .is-split .line > span { transform: translateY(110%); }
  .js .is-split.is-in .line > span { transform: none; transition: transform 900ms var(--ease-expo) calc(var(--i) * var(--stagger-line)); }
}
@keyframes line-up { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }

/* --- phone --- */
@media (max-width: 52em) {
  .hero__statement { font-size: clamp(2.25rem, 10vw, 5rem); line-height: 0.92; }
  .hero__foot { flex-direction: column; align-items: stretch; }
  .hero__foot .button { width: 100%; }
  .topbar__links { gap: 0.9rem 1.1rem; font-size: 0.9rem; }

  .stages { grid-template-columns: 1fr; }
  .stage { min-height: 0; gap: 1.5rem; }

  .picker__tab { font-size: 7vw; }
  .picker__panel { grid-template-columns: 1fr; gap: 1.75rem; }
  .picker__cost { flex-direction: row; gap: 2rem; }

  .transform { grid-template-columns: 1fr; }

  .honest__body, .faq__text { columns: 1; }
  .honest__body p, .faq__text p { max-width: none; }

  .footer__top { flex-direction: column; gap: 2rem; }
}
