/* WebLocales studio page — style: home/studio/DESIGN.md (Steep-based, approved 2026-11-25; v3 layout 2026-11-25) */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2-variations"), url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk.woff2") format("woff2-variations"), url("fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallbacks: no reflow when the web fonts swap in (measured against the shipped woff2, 2026-11-26) */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 100.74%; ascent-override: 73.46%; descent-override: 25.81%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 101.48%; ascent-override: 98.54%; descent-override: 29.56%; line-gap-override: 0%; }

:root {
  --ink: #141a17;
  --ink-hover: #26302b;
  --ink-2: #222a26;
  --text: #2e3532;
  --text-2: #5d6561;
  --text-3: #6e7571;
  --bg: #ffffff;
  --surface-band: #fafaf8;
  --surface: #f1f2ef;
  --accent: #f4e9c1;
  --on-accent: #4a3d12;
  --line: #e4e6e2;
  --line-strong: #8d938f;
  --on-ink: #f4f5f2;
  --on-ink-2: #aeb6b1;
  --line-ink: #343d38;

  --serif: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --sans: "Hanken Grotesk", "Hanken Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --max: 1200px;
  --gap-s: 64px;      /* between related sections */
  --gap-l: 80px;      /* around the dark band and bands */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-kin: cubic-bezier(.16, 1, .3, 1); /* kinetics Stagger Entrance */
  --float: 0 0 0 1px rgba(20, 26, 23, .06), 0 20px 25px -5px rgba(20, 26, 23, .10), 0 8px 10px -6px rgba(20, 26, 23, .08);

  color-scheme: light;
  accent-color: var(--ink);
}
@media (min-width: 640px) { :root { --gutter: 24px; --gap-s: 80px; --gap-l: 96px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --gap-s: 96px; --gap-l: 128px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--sans);
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } }

::selection { background: var(--accent); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p, li { text-wrap: pretty; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 {
  font-size: clamp(2.625rem, 6vw, 4.75rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
}
h2 {
  font-size: clamp(1.875rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 60;
}
.h2-sm { font-size: clamp(1.625rem, 3vw, 2.25rem); }
h3, h4 {
  font: 500 1.25rem/1.3 var(--sans);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
h4 { font-size: 1.125rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
}
.skip:focus-visible { top: 12px; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-top: 8px;
}
@media (min-width: 1024px) { .nav { min-height: 96px; } }
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 12px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark {
  font: 400 1.375rem/1 var(--serif);
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.01em;
}
@media (min-width: 1024px) { .wordmark { font-size: 1.5rem; } }
.brand__slogan { display: none; font-size: .875rem; color: var(--text-2); }
@media (min-width: 480px) { .brand__slogan { display: inline; } }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  font-weight: 450;
  font-size: 1rem;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 9999px;
  transition: color 200ms ease;
}
.nav__links li:last-child a { padding-right: 0; }
@media (hover: hover) { .nav__links a:hover { color: var(--ink); } }
.nav__wide { display: none; }
@media (min-width: 768px) { .nav__wide { display: block; } }

/* ── Buttons and links ───────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 9999px;
  font: 450 1rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn--fill { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--light { background: var(--on-ink); color: var(--ink); border: 1px solid var(--on-ink); }
@media (hover: hover) {
  .btn--fill:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
  .btn--ghost:hover { background: var(--surface); }
  .btn--light:hover { background: #ffffff; border-color: #ffffff; }
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 200ms ease, gap 200ms var(--ease-out);
}
@media (hover: hover) { .link:hover { text-decoration-thickness: 2px; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .link:hover { gap: 9px; } }
.arrow { flex: none; }

.tag {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
  font-size: .875rem;
  line-height: 1.4;
}

.shot {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--float);
  background: var(--surface);
}

.section-head {
  display: grid;
  gap: 16px;
  align-items: end;
}
@media (min-width: 1024px) {
  .section-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; }
}
.section-head p { max-width: 34em; color: var(--text-2); font-size: 1.0625rem; }
@media (min-width: 1024px) { .section-head p { font-size: 1.1875rem; padding-bottom: 6px; } }

/* ── Hero: studio + release ledger ───────────────────── */
.hero {
  display: grid;
  gap: 48px;
  padding-top: 40px;
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 64px;
    padding-top: 64px;
    min-height: min(640px, calc(100svh - 96px));
  }
}
.hero h1 { max-width: 15ch; }
.hero__sub {
  margin-top: 20px;
  max-width: 34em;
  font-size: 1.1875rem;
  line-height: 1.45;
  color: var(--text-2);
}
@media (min-width: 1024px) { .hero__sub { margin-top: 28px; font-size: 1.3125rem; } }
.hero .actions { margin-top: 32px; }
@media (min-width: 1024px) { .hero .actions { margin-top: 40px; } }

.ledger {
  position: relative;
  padding-bottom: 0;
}
@media (min-width: 640px) { .ledger { max-width: 520px; } }
@media (min-width: 1024px) { .ledger { max-width: none; padding-top: 0; min-height: 520px; display: flex; align-items: flex-end; } }
.ledger__card {
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: 24px;
  background: var(--bg);
  box-shadow: var(--float);
}
@media (min-width: 640px) { .ledger__card { padding: 24px 28px; } }
@media (min-width: 1024px) { .ledger__card { width: 86%; margin-bottom: 8px; } }
.ledger__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  color: var(--text-2);
}
.ledger__row + .ledger__row { border-top: 1px solid var(--line); }
.ledger__link, .ledger__row--next {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block: 16px;
}
.ledger__link {
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
}
.ledger__num {
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}
.ledger__main { display: grid; gap: 2px; min-width: 0; }
.ledger__name {
  font: 400 1.625rem/1.1 var(--serif);
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ledger__for { font-size: .9375rem; color: var(--text-2); }
.ledger__row--next .ledger__name { color: var(--text-2); }
.ledger__status {
  padding: 3px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 9999px;
  font-size: .875rem;
  color: var(--text-2);
}
@media (hover: hover) {
  .ledger__link:hover .ledger__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}
.ledger__phone {
  display: none;
}
@media (min-width: 1024px) {
  .ledger__phone {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    border-radius: 24px;
    box-shadow: var(--float);
    rotate: 3deg;
  }
}

/* ── Releases ─────────────────────────────────────────── */
.releases { margin-top: var(--gap-s); }
.release {
  margin-top: 32px;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
}
@media (min-width: 640px) { .release { padding: 40px; } }
@media (min-width: 1024px) { .release { padding: 56px 56px 48px; margin-top: 48px; } }
.release__top { display: grid; gap: 20px; }
@media (min-width: 1024px) {
  .release__top { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: end; }
}
.release__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: .9375rem;
  color: var(--text-2);
}
.release__name {
  margin-top: 16px;
  font: 400 clamp(3rem, 6vw, 4.5rem)/1 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.03em;
}
.release__lead { font-size: 1.1875rem; line-height: 1.45; color: var(--text); max-width: 30em; }
.release__intro .link { margin-top: 16px; min-height: 44px; }
.release__stage { margin-top: 40px; }
@media (max-width: 639px) { .release__stage { max-width: 440px; } }
@media (min-width: 1024px) { .release__stage { margin-top: 56px; } }
.release__stage figcaption { margin-top: 12px; font-size: .875rem; color: var(--text-2); }
.release__features {
  display: grid;
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .release__features { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.release__features p { margin-top: 6px; color: var(--text-2); }


/* ── How we work: pipeline ───────────────────────────── */
.band {
  margin-top: var(--gap-l);
  padding-block: var(--gap-s);
  background: var(--surface-band);
}
.steps {
  position: relative;
  display: grid;
  gap: 32px;
  margin-top: 48px;
  counter-reset: step;
}
@media (min-width: 560px) and (max-width: 899px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; } }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; }
  /* connector: kinetics "Step Progress" structure — track + fill scaled on X */
  .steps::before, .steps::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 22px;
    right: calc((100% - 96px) / 4 - 22px);
    height: 1px;
    background: var(--line-strong);
  }
  .steps::after {
    height: 2px;
    top: 20.5px;
    background: var(--ink);
    transform-origin: left center;
  }
}
.step { position: relative; }
.step__num {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  background: var(--surface-band);
  font-size: .9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.step h3 { margin-top: 20px; }
.step p { margin-top: 8px; color: var(--text-2); max-width: 26em; }

/* ── Custom solutions: dark band ─────────────────────── */
.dark {
  margin-top: 0;
  padding-block: var(--gap-l);
  background: var(--ink);
  color: var(--on-ink-2);
}
.dark h2, .dark h3 { color: var(--on-ink); }
.dark ::selection { background: var(--accent); color: var(--ink); }
.dark :focus-visible { outline-color: var(--on-ink); }
.dark__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .dark__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: start; } }
.dark__head p { margin-top: 20px; max-width: 30em; font-size: 1.1875rem; line-height: 1.45; }
.dark__head .btn { margin-top: 32px; }
.terms { display: grid; }
.terms li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line-ink);
}
.terms li:last-child { border-bottom: 1px solid var(--line-ink); }
.terms__k { padding-top: 2px; font-size: .9375rem; color: var(--on-ink-2); }
.terms p { margin-top: 6px; }

/* ── Founder ─────────────────────────────────────────── */
.founder {
  display: grid;
  gap: 32px;
  margin-top: var(--gap-l);
}
@media (min-width: 768px) {
  .founder { grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: center; }
}
@media (min-width: 1024px) { .founder { grid-template-columns: 240px minmax(0, 1fr); gap: 80px; } }
.founder__photo {
  width: 160px;
  height: 160px;
  border-radius: 24px;
  object-fit: cover;
  background: var(--surface);
}
@media (min-width: 768px) { .founder__photo { width: 100%; height: auto; aspect-ratio: 1; } }
.founder__quote {
  margin-top: 20px;
  max-width: 24em;
  font: 400 clamp(1.5rem, 2.6vw, 2.125rem)/1.3 var(--serif);
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.founder__mail { margin-top: 20px; font-size: 1.1875rem; }
.founder__mail .link { min-height: 44px; }

/* ── Websites ────────────────────────────────────────── */
.sites { margin-top: var(--gap-s); }
.sites::before { content: ""; display: block; height: 1px; margin-bottom: var(--gap-s); background: var(--line); }
.sites__head p { margin-top: 16px; max-width: 40em; color: var(--text-2); }
.sites__row {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.sites__row { grid-template-columns: repeat(2, 1fr); }
.sites__row li:nth-child(3) { display: none; }
@media (min-width: 640px) { .sites__row { grid-template-columns: repeat(3, 1fr); gap: 24px; } .sites__row li:nth-child(3) { display: block; } }
.sites__row a { display: block; color: var(--text-2); text-decoration: none; font-size: .9375rem; }
.sites__row img {
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  transition: border-color 200ms ease;
}
@media (hover: hover) {
  .sites__row a:hover img { border-color: var(--line-strong); }
  .sites__row a:hover span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
}

/* ── Footer ──────────────────────────────────────────── */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: var(--gap-s);
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  line-height: 1.45;
  color: var(--text-2);
}
@media (min-width: 1024px) { .foot { font-size: .9375rem; } }
.foot a {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}
@media (hover: hover) { .foot a:hover { color: var(--ink); } }

/* ── Motion ──────────────────────────────────────────── */
/* Hero rise on load (transform only, text readable from frame one) */
@keyframes rise { from { transform: translateY(16px); } }
/* kinetics "Stagger Entrance": rows rise 14px, 0.45s, cubic-bezier(.16,1,.3,1), 90ms step — transform only */
@keyframes row-in { from { transform: translateY(14px); } }
@keyframes card-in { from { transform: translateY(24px); } }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 520ms var(--ease-out) backwards; }
  .hero__sub.rise { animation-delay: 60ms; }
  .actions.rise { animation-delay: 120ms; }
  .ledger__card { animation: card-in 600ms var(--ease-kin) 120ms backwards; }
  .ledger__row { animation: row-in 450ms var(--ease-kin) backwards; }
  .ledger__row:nth-child(1) { animation-delay: 300ms; }
  .ledger__row:nth-child(2) { animation-delay: 390ms; }
  .ledger__phone { animation: card-in 700ms var(--ease-kin) 220ms backwards; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fill-x { from { transform: scaleX(0); } }
    @keyframes shot-in { from { transform: translateY(32px); } }
    @media (min-width: 900px) {
      .steps::after {
        animation: fill-x linear both;
        animation-timeline: view();
        animation-range: entry 40% cover 55%;
      }
    }
  }
}

/* ── Privacy page ────────────────────────────────────── */
.legal { padding-top: 40px; max-width: calc(680px + 2 * var(--gutter)); }
@media (min-width: 1024px) { .legal { padding-top: 72px; } }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.legal .updated { margin-top: 16px; color: var(--text-2); font-size: .9375rem; }
.legal h2 { margin-top: 48px; font-size: clamp(1.5rem, 3vw, 1.875rem); }
.legal p, .legal li { margin-top: 12px; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal .ph { background: var(--accent); color: var(--on-accent); padding: 0 4px; border-radius: 4px; }

/* ════════ v4: multi-page studio site (2026-11-25) ════════ */

/* Nav: desktop links, phone popover menu (Popover API) */
.nav__main { display: none; }
@media (min-width: 900px) { .nav__main { display: block; } }
.nav__links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav__cta { color: var(--ink) !important; font-weight: 500; }
.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle svg { stroke-width: 1.6; }
@media (min-width: 900px) { .nav > .nav__toggle { display: none; } }
.menu {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px var(--gutter) 32px;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}
.menu:popover-open { display: flex; flex-direction: column; gap: 32px; }
.menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.menu__links { display: grid; }
.menu__links a {
  display: block;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font: 400 2rem/1.15 var(--serif);
  color: var(--ink);
  text-decoration: none;
}
.menu__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.menu .btn { align-self: flex-start; }

svg use { pointer-events: none; }
.link svg, .door__go svg, .trades__more svg { flex: none; stroke-width: 1.6; }

/* Editorial hero */
.hero-ed { padding-top: 48px; }
@media (min-width: 1024px) { .hero-ed { padding-top: 88px; } }
.hero-ed h1 {
  max-width: 18ch;
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero-ed__foot { display: grid; gap: 28px; margin-top: 32px; }
@media (min-width: 1024px) {
  .hero-ed__foot { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; gap: 64px; margin-top: 48px; }
  .hero-ed__foot .actions { justify-content: flex-end; }
}
.hero-ed__sub { max-width: 32em; font-size: 1.1875rem; line-height: 1.45; color: var(--text-2); }
@media (min-width: 1024px) { .hero-ed__sub { font-size: 1.3125rem; } }
.meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  margin: 48px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
@media (min-width: 768px) { .meta { grid-template-columns: repeat(4, 1fr); margin-top: 72px; } }
.meta dt { font-size: .8125rem; color: var(--text-2); }
.meta dd { margin: 4px 0 0; font-size: 1.0625rem; color: var(--ink); font-weight: 500; }

/* Two doors */
.doors { display: grid; gap: 16px; margin-top: var(--gap-s); }
@media (min-width: 900px) { .doors { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; } }
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 300ms var(--ease-out);
}
@media (min-width: 640px) { .door { padding: 40px; } }
.door--product { background: var(--surface); color: var(--text); }
.door--custom { background: var(--ink); color: var(--on-ink-2); }
.door__kicker { display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: inherit; }
.door--product .door__kicker { color: var(--text-2); }
.door__title {
  font: 400 clamp(2.25rem, 4.5vw, 3.5rem)/1 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.door--custom .door__title { color: var(--on-ink); }
.door__text { max-width: 30em; font-size: 1.0625rem; }
.door__shot {
  margin: 8px -40px -40px 0;
  width: calc(100% + 40px);
  max-width: none;
  border-radius: 16px 0 0 0;
  box-shadow: var(--float);
}
@media (max-width: 639px) { .door__shot { margin: 8px -28px -28px 0; width: calc(100% + 28px); } }
.door__terms { display: grid; gap: 0; margin-top: 8px; }
.door__terms li {
  display: flex;
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--line-ink);
  color: var(--on-ink);
  font-size: 1.0625rem;
}
.door__terms span { color: var(--on-ink-2); font-size: .875rem; padding-top: 3px; font-variant-numeric: tabular-nums; }
.door__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  font-weight: 500;
  color: var(--ink);
}
.door--product .door__go { order: 3; }
.door--product .door__shot { order: 4; }
.door--custom .door__go { color: var(--on-ink); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .door:hover { transform: translateY(-4px); }
  .door:hover .door__go svg { translate: 4px 0; }
  .door__go svg { transition: translate 200ms var(--ease-out); }
}
.door:focus-visible { outline-offset: 4px; }
.door--custom:focus-visible { outline-color: var(--ink); }

/* Funnel proof band */
.funnel { margin-top: var(--gap-l); }
.funnel__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
@media (min-width: 900px) { .funnel__row { grid-template-columns: repeat(5, 1fr); margin-top: 56px; } }
.funnel__row li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--bg);
}
@media (min-width: 900px) { .funnel__row li { padding: 32px 28px 28px; min-height: 220px; } }
.funnel__row li.funnel__last { grid-column: 1 / -1; background: var(--accent); }
@media (min-width: 900px) { .funnel__row li.funnel__last { grid-column: auto; } }
.funnel__n {
  font: 400 clamp(3rem, 6vw, 5rem)/1 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.funnel__l { margin-top: auto; font-size: .9375rem; line-height: 1.4; color: var(--text-2); }
.funnel__last .funnel__n, .funnel__last .funnel__l { color: var(--on-accent); }

/* Trades grid 6×4 */
.trades { margin-top: var(--gap-l); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: .9375rem; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.trades__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
@media (min-width: 640px) { .trades__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .trades__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .trades__grid { grid-template-columns: repeat(6, 1fr); } }
.trade { position: relative; background: var(--bg); }
.trade > a, .trade:not(.trade--live):not(.trade--short) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 20px 18px 18px;
}
.trade--live { background: var(--accent); }
.trade--live > a { color: var(--on-accent); text-decoration: none; }
.trade__icon { width: 28px; height: 28px; stroke-width: 1.4; color: var(--ink); margin-bottom: 12px; transition: color 200ms ease, transform 300ms var(--ease-out); }
.trade--live .trade__icon { color: var(--on-accent); }
.trade--stop .trade__icon, .trade--stop .trade__name { color: var(--text-2); }
.trade__name { font: 500 1rem/1.3 var(--sans); color: var(--ink); }
.trade--live .trade__name { color: var(--on-accent); }
.trade__pain { font-size: .875rem; line-height: 1.4; color: var(--text-2); }
.trade--live .trade__pain { color: var(--on-accent); }
.trade .status { margin-top: auto; align-self: flex-start; }
.trade__pain + .status { margin-top: 12px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .trade:hover .trade__icon { transform: translateY(-2px); }
}
.trade--live > a:focus-visible { outline-color: var(--on-accent); outline-offset: -6px; }
.status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.status--live { background: var(--ink); color: var(--bg); }
.status--short { background: var(--accent); color: var(--on-accent); }
.status--studied { background: var(--surface); color: var(--text); }
.status--stop { border: 1px dashed var(--line-strong); color: var(--text-2); padding: 1px 9px; }
.trades__more { margin-top: 24px; color: var(--text-2); }
.trades__more .link { margin-left: 4px; }

/* Method teaser */
.method-teaser { margin-top: var(--gap-l); }
.mt { display: grid; column-gap: 32px; margin-top: 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .mt { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mt { grid-template-columns: repeat(3, 1fr); } }
.mt--4 { }
@media (min-width: 1024px) { .mt--4 { grid-template-columns: repeat(4, 1fr); } }
.mt li { padding: 28px 0; border-top: 1px solid var(--line); }

@media (min-width: 640px) { .mt li { padding: 32px 0; } }
.mt__n { display: block; font: 400 2.5rem/1 var(--serif); font-variation-settings: "opsz" 72; color: var(--ink); letter-spacing: -0.02em; }
.mt h3 { margin-top: 20px; }
.mt p { margin-top: 8px; color: var(--text-2); max-width: 26em; }
.mt__now .mt__n::after {
  content: "Now";
  display: inline-block;
  margin-left: 12px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 500 .8125rem/1.4 var(--sans);
  vertical-align: middle;
}
.mt__link { margin-top: 32px; }

/* Principles */
.principles { margin-top: var(--gap-l); }
.pr { margin-top: 32px; border-top: 1px solid var(--ink); }
.pr li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .pr li { grid-template-columns: 80px minmax(0, 5fr) ; }
  .pr li > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: baseline; }
}
.pr li > span { font-size: .9375rem; color: var(--text-2); font-variant-numeric: tabular-nums; padding-top: 4px; }
.pr h3 { font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--serif); font-variation-settings: "opsz" 48; letter-spacing: -0.01em; }
.pr p { margin-top: 6px; color: var(--text-2); }
@media (min-width: 900px) { .pr p { margin-top: 0; } }

/* Founder / contact (dark) */
.founder-x { margin-top: var(--gap-l); padding-block: var(--gap-l); background: var(--ink); color: var(--on-ink-2); }
.founder-x__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .founder-x__grid { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: center; } }
@media (min-width: 1024px) { .founder-x__grid { grid-template-columns: 280px minmax(0, 1fr); gap: 80px; } }
.founder-x__photo { width: 160px; height: 160px; border-radius: 24px; object-fit: cover; }
@media (min-width: 768px) { .founder-x__photo { width: 100%; height: auto; aspect-ratio: 1; } }
.founder-x h2 { color: var(--on-ink); }
.founder-x__quote {
  margin-top: 20px;
  max-width: 28em;
  font: 400 clamp(1.375rem, 2.4vw, 1.875rem)/1.35 var(--serif);
  font-variation-settings: "opsz" 48;
  color: var(--on-ink);
  text-wrap: pretty;
}
.founder-x .actions { margin-top: 32px; }
.founder-x :focus-visible, .cta-band :focus-visible { outline-color: var(--on-ink); }
.btn--ghost-light { background: transparent; color: var(--on-ink); border: 1px solid var(--on-ink-2); }
@media (hover: hover) { .btn--ghost-light:hover { border-color: var(--on-ink); background: var(--ink-2); } }

/* Site footer */
.site-foot { padding-top: var(--gap-s); border-top: 1px solid var(--line); color: var(--text-2); font-size: .9375rem; }
.founder-x + main, .founder-x ~ .site-foot { border-top: 0; }
.site-foot__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .site-foot__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.site-foot__brand p { margin-top: 12px; max-width: 26em; }
.site-foot__brand .brand { padding-block: 0; }
.site-foot__col h2 { font: 500 .8125rem/1.4 var(--sans); color: var(--text-2); letter-spacing: 0; }
.site-foot__col ul { margin-top: 4px; display: grid; }
.site-foot__col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
@media (hover: hover) { .site-foot__col a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.site-foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}

/* Inner pages */
.page-hero { padding-top: 40px; }
@media (min-width: 1024px) { .page-hero { padding-top: 72px; } }
.crumb { font-size: .9375rem; color: var(--text-2); }
.crumb a { color: var(--text-2); text-underline-offset: 3px; }
.page-hero h1 { margin-top: 20px; max-width: 18ch; font-size: clamp(2.75rem, 6.5vw, 5.25rem); line-height: 1.04; letter-spacing: -0.03em; }
.page-hero__sub { margin-top: 24px; max-width: 32em; font-size: 1.1875rem; line-height: 1.45; color: var(--text-2); }
@media (min-width: 1024px) { .page-hero__sub { font-size: 1.3125rem; } }
.page-hero .actions { margin-top: 32px; }
.page-hero + .wrap .release, .page-hero + section .release { margin-top: var(--gap-s); }
.page-hero + .dark { margin-top: var(--gap-s); }

.facts {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--ink);
}
@media (min-width: 768px) { .facts { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.facts > div { padding-block: 18px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .875rem; color: var(--text-2); }
.facts dd { margin: 4px 0 0; color: var(--ink); }

.pipeline { margin-top: var(--gap-l); }
.pipe { display: grid; gap: 1px; margin-top: 32px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
@media (min-width: 768px) { .pipe { grid-template-columns: repeat(2, 1fr); } }
.pipe li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 24px; background: var(--bg); }
.pipe svg { width: 26px; height: 26px; stroke-width: 1.4; color: var(--ink); }
.pipe h3 { font-size: 1.0625rem; }
.pipe p { margin-top: 4px; font-size: .9375rem; color: var(--text-2); }

.cta-band { margin-top: var(--gap-l); padding-block: var(--gap-l); background: var(--ink); color: var(--on-ink-2); }
.cta-band__in { display: grid; gap: 20px; justify-items: start; }
.cta-band h2 { max-width: 18ch; color: var(--on-ink); font-size: clamp(2rem, 4.8vw, 3.5rem); }
.cta-band p { max-width: 34em; font-size: 1.1875rem; }
.cta-band .btn { margin-top: 12px; }
.cta-band + .site-foot { border-top: 0; }

/* Method page steps */
.steps-x { margin-top: var(--gap-s); }
.sx { border-top: 1px solid var(--ink); }
.sx__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .sx__item { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 48px; padding-block: 56px; }
}
.sx__n {
  font: 400 clamp(4rem, 9vw, 8rem)/.85 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.04em;
  color: var(--line-strong);
}
.sx__item--now .sx__n { color: var(--ink); }
.sx__body h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.sx__body > p { margin-top: 16px; max-width: 34em; font-size: 1.125rem; line-height: 1.55; }
.sx__io { display: grid; gap: 0; margin: 28px 0 0; max-width: 38em; }
@media (min-width: 640px) { .sx__io { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.sx__io > div { padding-block: 14px; border-top: 1px solid var(--line); }
.sx__io dt { font-size: .8125rem; color: var(--text-2); }
.sx__io dd { margin: 4px 0 0; color: var(--ink); }
.sx__item--now .sx__io > div:last-child dd::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 9999px;
  background: var(--on-accent);
  box-shadow: 0 0 0 4px var(--accent);
  vertical-align: middle;
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes num-in { from { transform: translateY(40px); } }
    .sx__n { animation: num-in linear backwards; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  }
}

/* FAQ */
.faq { display: grid; gap: 32px; }
@media (min-width: 1024px) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; } }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  min-height: 44px;
  font: 500 1.125rem/1.35 var(--sans);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.5rem/1 var(--sans); color: var(--text-2); transition: rotate 200ms var(--ease-out); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 20px; max-width: 34em; color: var(--text-2); }

/* Custom page */
.flow { margin-top: var(--gap-l); }
.fit { margin-top: var(--gap-l); }
.fit__grid { display: grid; gap: 32px; margin-top: 32px; }
@media (min-width: 768px) { .fit__grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.fit__grid h3 { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.ticks li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 12px;
  height: 6px;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  rotate: -45deg;
}
.ticks--no li::before { width: 12px; height: 0; top: 25px; border-left: 0; rotate: 0deg; border-bottom-color: var(--text-2); }
.fit__note { margin-top: 28px; max-width: 44em; color: var(--text-2); }

/* Load motion for v4 elements (transform only) */
@media (prefers-reduced-motion: no-preference) {
  .meta.rise { animation-delay: 180ms; }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes cell-in { from { transform: translateY(18px); } }
  }
}

.mt__link, .site-foot .link, .trades__more .link { min-height: 44px; }
.site-foot__brand .brand { min-height: 44px; align-items: center; }

/* v4 review fixes */
.status--plain { padding: 0; color: var(--text-2); font-weight: 400; }
.trade--short > a { display: flex; flex-direction: column; gap: 8px; min-height: 100%; padding: 20px 18px 18px; color: inherit; text-decoration: none; }
@media (hover: hover) { .trade--short > a:hover .trade__name, .trade--live > a:hover .trade__name { text-decoration: underline; text-underline-offset: 3px; } }
.trade--studied .trade__name { font-weight: 450; }
.funnel__note { margin-top: 20px; max-width: 52em; font-size: .9375rem; color: var(--text-2); }
.pr li { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pr li { grid-template-columns: minmax(0, 1fr); } }
.page-hero--split { display: grid; gap: 40px; }
@media (min-width: 1024px) { .page-hero--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; } }
.example { padding: 28px; border-radius: 24px; background: var(--surface); }
@media (min-width: 640px) { .example { padding: 32px; } }
.example__label { display: inline-block; padding: 3px 10px; border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-size: .8125rem; font-weight: 500; }
.example__title { margin-top: 16px; font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.example__rows { margin: 20px 0 0; }
.example__rows > div { padding-block: 12px; border-top: 1px solid var(--line); }
.example__rows dt { font-size: .8125rem; color: var(--text-2); }
.example__rows dd { margin: 4px 0 0; color: var(--ink); font-size: 1rem; }
.example__note { margin-top: 16px; font-size: .875rem; color: var(--text-2); }
.paid { margin-top: var(--gap-l); }
.paid__grid { display: grid; gap: 32px; padding-top: 32px; border-top: 1px solid var(--ink); }
@media (min-width: 1024px) { .paid__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; } }
.paid__head p { margin-top: 16px; color: var(--text-2); font-size: 1.125rem; }
.terms--light li { border-top-color: var(--line); }
.terms--light li:last-child { border-bottom-color: var(--line); }
.terms--light .terms__k { color: var(--text-2); }
.terms--light h3 { color: var(--ink); }
.terms--light p { color: var(--text-2); }
.funnel__note { max-width: 40em; }
.page-hero--split h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }

/* ════════ v5: distilled home (2026-11-25) ════════ */
.center-h { text-align: center; margin-inline: auto; max-width: 20ch; }
.center-t { text-align: center; }
.hero-ed { padding-bottom: 0; }
.hero-ed__sub { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.35; color: var(--text); max-width: 26em; }
.door__text { font-size: 1.1875rem; }
.door--custom { justify-content: flex-start; }
.door--custom .door__title { margin-top: 8px; }
.funnel .funnel__row { margin-top: 48px; }
.funnel__row li { align-items: center; text-align: center; justify-content: flex-start; }
@media (min-width: 900px) { .funnel__row li { min-height: 200px; justify-content: center; } }
.funnel__l { margin-top: 4px; font-size: 1rem; color: var(--text-2); }
.funnel__last .funnel__l { color: var(--on-accent); }
.trades .trades__grid--min { margin-top: 48px; }
.trades__grid--min .trade, .trades__grid--min .trade > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  min-height: 132px;
  padding: 22px 20px;
}
.trades__grid--min .trade--live { padding: 0; }
.trades__grid--min .trade__icon { margin: 0; }
.trades__grid--min .trade__name { font-size: 1rem; line-height: 1.3; }
.trades__grid--min .trade--live .status { margin-top: -16px; }
.trades__more.center-t { margin-top: 32px; }
.steps-min {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 48px 0 32px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
@media (min-width: 640px) { .steps-min { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .steps-min { grid-template-columns: repeat(6, 1fr); } }
.steps-min li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 150px;
  padding: 22px 20px;
  background: var(--surface-band);
  font: 400 1.25rem/1.3 var(--serif);
  font-variation-settings: "opsz" 36;
  color: var(--ink);
}
.steps-min span { font: 500 .875rem/1 var(--sans); color: var(--text-2); font-variant-numeric: tabular-nums; }
.steps-min li.is-now { background: var(--accent); color: var(--on-accent); }
.steps-min li.is-now span { color: var(--on-accent); }
.steps-min li.is-now span::after { content: "Now"; margin-left: 8px; padding: 2px 8px; border-radius: 9999px; background: var(--on-accent); color: var(--accent); font-size: .75rem; }
.founder-x__quote { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.trades__grid--min { grid-auto-rows: 1fr; }
.trades__grid--min .trade--live > a { height: 100%; }
.trades__grid--min .trade--live .status { margin-top: 0; }
.hero-ed__sub { max-width: 30em; }
.trades__grid--min .trade--live .trade__name { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 639px) {
  .steps-min li { min-height: 104px; font-size: 1.125rem; }
  .trades__grid--min .trade, .trades__grid--min .trade > a { min-height: 108px; gap: 18px; padding: 18px 16px; }
  .trades__grid--min .trade--live { padding: 0; }
}

/* v5 review fixes */
.hero-ed__foot { grid-template-columns: 1fr !important; gap: 28px; }
.hero-ed__foot .actions { justify-content: flex-start !important; }
.door__shot { max-height: 280px; object-fit: cover; object-position: left top; }
.trades { margin-top: var(--gap-l); }
.trades__grid--min .trade, .trades__grid--min .trade > a { min-height: 104px; gap: 16px; }
@media (min-width: 1200px) { .trades__grid--min .trade, .trades__grid--min .trade > a { min-height: 112px; } }
.funnel.band { margin-top: var(--gap-l); padding-block: var(--gap-s); }
.funnel__lead { margin-top: 12px; color: var(--text-2); }
.funnel .funnel__row { margin-top: 40px; }
.funnel__row li.funnel__last { padding: 0; }
.funnel__last > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 24px; color: inherit; text-decoration: none; }
@media (hover: hover) { .funnel__last > a:hover .funnel__l { text-decoration: underline; text-underline-offset: 3px; } }
.funnel__last > a:focus-visible { outline-color: var(--on-accent); outline-offset: -6px; }
.method-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 40px; }
.method-line__name { font: 400 1.25rem/1.3 var(--serif); color: var(--ink); }
.method-line__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.method-line__steps li { padding: 6px 14px; border-radius: 9999px; font-size: .9375rem; color: var(--text); background: var(--surface); }
.method-line__steps li.is-now { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 500; }
.method-line .link { min-height: 44px; }
.founder-x { margin-top: 0; }

/* ════════ v6 polish: centered hero with real product fragments (Steep floating artifacts) ════════ */
.hero-c {
  position: relative;
  overflow: clip;
  padding: 56px 0 0;
}
@media (min-width: 1100px) { .hero-c { padding-top: 72px; min-height: 760px; } }
.hero-c__in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-c h1 {
  margin-top: 28px;
  max-width: 15ch;
  font-size: clamp(2.75rem, 6.6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero-c__sub { margin-top: 24px; max-width: 28em; font-size: clamp(1.1875rem, 1.8vw, 1.5rem); line-height: 1.4; color: var(--text-2); }
.hero-c .actions { margin-top: 32px; justify-content: center; }
.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--ink);
  font-size: .9375rem;
  text-decoration: none;
  transition: border-color 200ms ease;
}
.announce svg { stroke-width: 1.6; transition: translate 200ms var(--ease-out); }
@media (hover: hover) { .announce:hover { border-color: var(--line-strong); } .announce:hover svg { translate: 3px 0; } }
.doors { margin-top: var(--gap-l); }

/* Custom door chips */
.door__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.door__chips li { padding: 6px 14px; border: 1px solid var(--line-ink); border-radius: 9999px; color: var(--on-ink); font-size: .9375rem; }

/* Trades grid polish */
.trades__grid--min .trade__icon { box-sizing: content-box; width: 22px; height: 22px; padding: 11px; border-radius: 9999px; background: var(--surface); stroke-width: 1.5; }
.trades__grid--min .trade--live .trade__icon { background: rgba(255,255,255,.55); }
.trades__grid--min .trade { transition: background-color 200ms ease; }
@media (hover: hover) {
  .trades__grid--min .trade:not(.trade--live):hover { background: var(--surface-band); }
  .trades__grid--min .trade:not(.trade--live):hover .trade__icon { background: var(--bg); }
}


.doors .door { min-height: 340px; }
.door__chips--light li { border-color: var(--line-strong); color: var(--text); }
.door--product .door__go { order: 0; }

/* ════════ v6 finish pass (review) ════════ */
:root { --section-y: 96px; }
@media (min-width: 1024px) { :root { --section-y: 128px; } }
.doors { margin-top: var(--section-y); }
.trades, .funnel.band { margin-top: var(--section-y); }
.funnel.band { padding-block: var(--section-y); }
.founder-x { padding-block: var(--section-y); }
/* doors aligned */
.doors .door { min-height: 0; }
@media (min-width: 900px) {
  .doors { grid-template-columns: 1fr 1fr; }
  .door__title { white-space: nowrap; font-size: clamp(2.25rem, 3.4vw, 3rem); }
  .door__chips { flex-wrap: nowrap; }
}
.door__chips li { white-space: nowrap; }
.door--product .door__go { order: 0; }
.door--product .door__shot { order: 5; max-height: 190px; margin-top: 16px; }
/* trade cells: same baseline, badge top-right */
.trades__grid--min .trade, .trades__grid--min .trade > a { position: relative; display: grid; grid-template-rows: auto 1fr; align-items: end; justify-items: start; }
.trades__grid--min .trade--live { display: block; }
.trades__grid--min .trade__icon { align-self: start; }
.trade__badge { position: absolute; top: 20px; right: 16px; }
/* method row */
.method-line { margin-top: 56px; }
.method-line__name { font: 500 .9375rem/1.4 var(--sans); color: var(--text-2); }
/* one link style for standalone CTAs: arrow, no underline until hover */
.center-t .link, .method-line .link, .trades__more .link { text-decoration: none; font-weight: 500; }
@media (hover: hover) { .center-t .link:hover, .method-line .link:hover, .trades__more .link:hover { text-decoration: underline; text-underline-offset: 4px; } }

.trades__grid--min .trade, .trades__grid--min .trade > a { grid-template-columns: 100%; justify-content: stretch; justify-items: start; text-align: left; }
.trades__grid--min .trade:not(.trade--live):not(.trade--short) { display: grid; grid-template-rows: auto 1fr; grid-template-columns: 100%; align-items: end; justify-items: start; }
.trades__grid--min .trade:not(.trade--live) .trade__icon { align-self: start; }
.trades__grid--min .trade:not(.trade--live), .trades__grid--min .trade--live > a { padding: 18px; }

/* ════════ v7: load, scroll and fragment finish ════════ */
/* Sticky header; hairline only once stuck (scroll-state query, progressive) */
html { scroll-padding-top: 96px; }
.site-head { position: sticky; top: 0; z-index: 50; container: site-head / scroll-state; }
.site-head__bar { background: var(--bg); transition: box-shadow 240ms ease; }
@container site-head scroll-state(stuck: top) {
  .site-head__bar { box-shadow: 0 1px 0 var(--line); }
}
@supports (animation-timeline: scroll()) and (not (container-type: scroll-state)) {
  @keyframes head-line { to { box-shadow: 0 1px 0 var(--line); } }
  .site-head__bar { animation: head-line linear both; animation-timeline: scroll(root); animation-range: 0px 24px; }
}
.nav { min-height: 72px; padding-top: 0; }
@media (min-width: 1024px) { .nav { min-height: 80px; } }

/* Page-to-page: header stays, content cross-fades (cross-document view transitions, progressive) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-head { view-transition-name: site-head; }
  ::view-transition-old(root) { animation: 250ms ease both vt-fade-out; }
  ::view-transition-new(root) { animation: 250ms ease both vt-fade-in; }
  @keyframes vt-fade-out { to { opacity: 0; } }
  @keyframes vt-fade-in { from { opacity: 0; } }
}

/* Hero load order: badge, title, line, buttons, then the product */
@media (prefers-reduced-motion: no-preference) {
  .hero-c h1.rise { animation-delay: 60ms; }
  .hero-c__sub.rise { animation-delay: 140ms; }
  .hero-c .actions.rise { animation-delay: 220ms; }
}

/* Hero fragments: PlanKeep UI rebuilt in HTML (crisp at any density, one radius) */
.hero-c__frags {
  --float-soft: 0 20px 25px -5px rgba(20, 26, 23, .10), 0 8px 10px -6px rgba(20, 26, 23, .08);
  --pk-ink: #0f2a24; --pk-text: #38403c; --pk-text-2: #5b6460; --pk-line: #dfe3e0;
  --pk-bad: #b92a2a; --pk-bad-wash: #fbe5e3; --pk-ok: #1d7148;
}
.frag {
  font: 400 16px/1.3 var(--sans);
  color: var(--pk-text);
  text-align: left;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(20, 26, 23, .09), var(--float-soft);
}
.frag p { margin: 0; }
.pk-tile { width: 14em; padding: 1.125em 1.25em; }
.pk-tile__k { font-size: .875em; font-weight: 600; color: var(--pk-text-2); }
.pk-tile__n { margin-top: .2em; font-size: 2.125em; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--pk-ink); font-variant-numeric: tabular-nums; }
.pk-tile__s { margin-top: .4em; font-size: .875em; color: var(--pk-text-2); }
.pk-tile--bad { background: var(--pk-bad-wash); }
.pk-tile--bad :is(.pk-tile__k, .pk-tile__n, .pk-tile__s) { color: var(--pk-bad); }
.pk-job { display: grid; gap: .3em; width: 12.5em; padding: 1em 1.0625em 1.0625em; box-shadow: 0 0 0 1px rgba(185, 42, 42, .4), var(--float-soft); }
.pk-job p { font-size: .875em; }
.pk-job .pk-job__name { font-size: .9375em; font-weight: 700; color: var(--pk-ink); }
.pk-job__dim { color: var(--pk-text-2); }
.pk-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .8125em; color: var(--pk-ink); }
.pk-job p.pk-code { font-size: .8125em; }
.pk-alert, .pk-btn { justify-self: start; display: inline-flex; align-items: center; gap: .375em; border-radius: 9999px; }
.pk-alert { margin-top: .2em; padding: .25em .625em .25em .5em; background: var(--pk-bad-wash); color: var(--pk-bad); font-weight: 700; }
.pk-btn { margin-top: .75em; padding: .375em .875em; border: 1px solid var(--pk-ink); color: var(--pk-ink); font-weight: 600; }
.pk-alert svg, .pk-btn svg { width: 1em; height: 1em; flex: none; }
.pk-contract { width: 16.5em; overflow: clip; }
.pk-contract__head { padding: 1.125em 1.25em 1em; border-bottom: 1px solid var(--pk-line); }
.pk-contract__name { font-size: 1.375em; font-weight: 800; letter-spacing: -.01em; color: var(--pk-ink); }
.pk-contract__id { display: flex; align-items: center; gap: .5em; margin-top: .5em !important; }
.pk-pill { padding: .1em .6em; border: 1px solid var(--pk-ink); border-radius: 9999px; font-size: .8125em; font-weight: 600; color: var(--pk-ink); }
.pk-contract__body { padding: 1em 1.25em 1.125em; }
.pk-contract__price { font-size: 1.875em; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--pk-ink); }
.pk-contract__price span { margin-left: .3em; font-size: .45em; font-weight: 500; letter-spacing: 0; color: var(--pk-text-2); }
.pk-contract__plan { margin-top: .4em !important; font-size: .875em; font-weight: 600; color: var(--pk-ink); }
.pk-rows { display: grid; gap: .375em; margin: .875em 0 0; font-size: .875em; }
.pk-rows div { display: grid; grid-template-columns: 4.25em 1fr; }
.pk-rows dt { color: var(--pk-text-2); }
.pk-rows dd { display: flex; align-items: center; gap: .25em; margin: 0; }
.pk-rows i { width: 1.1em; height: .65em; border-radius: 9999px; background: var(--pk-ok); }
.pk-rows i + i { margin-right: .35em; }

/* Fragments: fanned row under the buttons below 1280px */
.hero-c { display: flex; flex-direction: column; padding: 48px 0 40px; min-height: 0; }
.hero-c + .doors { margin-top: 56px; }
.hero-c__in { order: 1; }
.hero-c__frags { order: 2; position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 56px; padding-inline: var(--gutter); }
.frag { position: relative; font-size: min(13px, 3.35vw); }
.frag--lapsed { margin-inline-start: -28px; }
.frag--stuck, .frag--contract { display: none; }
.frag--due { rotate: -3deg; }
.frag--lapsed { rotate: 3deg; }
@media (min-width: 640px) and (max-width: 1279px) {
  .frag { font-size: min(14px, 1.85vw); }
  .frag--contract { display: block; z-index: 1; margin-inline: -28px; translate: 0 -16px; }
  .frag--lapsed { margin-inline-start: 0; }
}
/* Floating around the title from 1280px */
@media (min-width: 1280px) {
  .hero-c { display: block; padding: 64px 0 0; min-height: 620px; }
  .hero-c + .doors { margin-top: 48px; }
  .hero-c__frags { position: absolute; inset: 0; display: block; margin: 0; padding: 0; pointer-events: none; }
  .frag { position: absolute; display: block; font-size: 14px; }
  .frag--due { left: max(var(--gutter), calc(50% - 600px)); top: 150px; rotate: -3deg; }
  .frag--stuck { left: max(calc(var(--gutter) + 32px), calc(50% - 560px)); top: 380px; rotate: 2deg; }
  .frag--contract { right: max(var(--gutter), calc(50% - 610px)); top: 120px; rotate: 3deg; }
  .frag--lapsed { right: max(calc(var(--gutter) + 24px), calc(50% - 580px)); top: 440px; rotate: -2deg; }
}
@media (min-width: 1440px) {
  .frag { font-size: 16px; }
  .frag--due { left: calc(50% - 635px); }
  .frag--stuck { left: calc(50% - 590px); top: 400px; }
  .frag--contract { right: calc(50% - 650px); }
  .frag--lapsed { right: calc(50% - 615px); top: 460px; }
  .hero-c { min-height: 650px; }
}
/* Fragments arrive after the text, then drift at different speeds on scroll (depth) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes frag-in { from { opacity: 0; transform: translateY(32px) scale(.97); } }
  .frag--due { --in: 320ms; }
  .frag--contract { --in: 400ms; }
  .frag--stuck { --in: 480ms; }
  .frag--lapsed { --in: 560ms; }
  .frag { animation: frag-in 900ms var(--ease-kin) var(--in) backwards; }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @media (min-width: 1280px) {
      @keyframes frag-drift { to { translate: 0 var(--drift); } }
      .frag--due { --drift: -70px; }
      .frag--contract { --drift: -110px; }
      .frag--stuck { --drift: -150px; }
      .frag--lapsed { --drift: -190px; }
      .frag {
        animation: frag-in 900ms var(--ease-kin) var(--in) backwards, frag-drift linear both;
        animation-timeline: auto, scroll(root);
        animation-range: normal, 0px 720px;
      }
    }
  }
}

/* Blocks below the first screen fade up once (reveal.js marks them .rv-wait, then .is-in).
   Hairline grids reveal as a whole, so their grey frame never shows through. Nothing is hidden without JS. */
.rv-wait:not(.is-in) { opacity: 0; }
@keyframes reveal { from { opacity: 0; translate: 0 24px; } }
.is-in { animation: reveal 700ms var(--ease-kin) var(--d, 0ms) backwards; }
@media print { .rv-wait { opacity: 1 !important; animation: none !important; } }

/* ═══ v8 (2026-11-26): client-facing home — hero, walkthrough (after Devinium), doors, tangle, products, how, compare ═══ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── walkthrough ── */
.wt { margin-top: 48px; }
.wt__grid { display: grid; gap: 32px; }
.wt__steps { position: relative; display: grid; gap: 24px; }
.wt__step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; align-content: start; }
.wt__step > :not(.wt__ico) { grid-column: 2; }
.wt__ico { grid-row: 1 / span 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); transition: background 250ms var(--ease-out), color 250ms var(--ease-out), border-color 250ms var(--ease-out); }
.wt__ico svg { stroke-width: 1.7; }
.wt__step h3 { padding-top: 8px; transition: color 250ms var(--ease-out); }
.wt__step p { margin-top: 8px; max-width: 26em; color: var(--text-2); transition: color 250ms var(--ease-out); }
.wt__big { font: 400 clamp(1.75rem, 3vw, 2.375rem)/1.12 var(--serif); letter-spacing: -0.015em; color: var(--ink) !important; padding-top: 2px; text-wrap: balance; }
.wt__skip { margin-top: 24px; text-align: center; }
.wt__skip .link { color: var(--text-2); }
.wt__skip svg { stroke-width: 1.7; }

/* live mode (JS on): inactive steps are quieter, the active one is ink */
.wt.is-live .wt__steps::before { content: ""; position: absolute; left: 19.5px; top: 20px; bottom: 20px; width: 1px; background: var(--line); }
.wt.is-live .wt__step h3 { color: var(--text-3); }
.wt.is-live .wt__step p { color: var(--text-3); }
.wt.is-live .wt__step .wt__big { color: var(--text-3) !important; }
.wt.is-live .wt__step[data-active] h3, .wt.is-live .wt__step[data-active] .wt__big { color: var(--ink) !important; }
.wt.is-live .wt__step[data-active] p { color: var(--text); }
.wt.is-live .wt__step[data-active] .wt__ico { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* sticky stage: on phones the window sits on top and the steps scroll under it */
.wt__stage { grid-row: 1; }
.wt__sticky { margin: 0; }
.wt.is-live .wt__stage { position: sticky; top: 72px; z-index: 2; padding-block: 8px 16px; background: var(--bg); }
.wt.is-live .wt__step { min-height: 44vh; padding-top: 4px; }
@media (max-width: 1023px) { .wt.is-live .wt__skip { display: none; } }
.wt.is-live .wt__step:last-child { min-height: 40vh; }
@media (min-width: 1024px) {
  .wt { margin-top: 40px; }
  .wt__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .wt__stage { grid-row: auto; grid-column: 2; }
  .wt__steps { grid-column: 1; grid-row: 1; }
  .wt.is-live .wt__stage { top: max(104px, calc(50vh - 260px)); padding: 0; background: none; }
  .wt.is-live .wt__steps { padding-block: 8vh 38vh; gap: 0; }
  .wt.is-live .wt__step { min-height: 34vh; }
  .wt.is-live .wt__step:last-child { min-height: 0; }
}

/* app window */
.app {
  --ok: #1d7148; --bad: #b92a2a; --bad-wash: #fdeeed; --pk: #0f2a24;
  font-size: clamp(10.5px, 2.9vw, 12.5px);
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(20, 26, 23, .04), 0 24px 48px -16px rgba(20, 26, 23, .18), 0 8px 16px -8px rgba(20, 26, 23, .08);
  color: var(--text); font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) { .app { font-size: 13px; } }
@media (min-width: 1280px) { .app { font-size: 14px; } }
.app svg { flex: none; stroke-width: 1.8; }
.app .v1 { display: none; }
.app.s1 .v0 { display: none; }
.app.s1 .v1 { display: inline; }
.app__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: .7em 1em; background: var(--surface-band); border-bottom: 1px solid var(--line); }
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 9px; height: 9px; border-radius: 50%; background: #dfe1dd; }
.app__url { justify-self: center; padding: .35em 1.1em; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--text-2); font-size: .92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.app__url > span { display: inline-flex !important; align-items: center; gap: .45em; }
.app__url > .v1 { display: none !important; }
.app.s1 .app__url > .v0 { display: none !important; }
.app.s1 .app__url > .v1 { display: inline-flex !important; }
.app__head { display: flex; align-items: center; gap: 2em; padding: .9em 1.3em; border-bottom: 1px solid var(--line); }
.app__brand { display: flex; align-items: center; gap: .7em; color: var(--ink); white-space: nowrap; }
.app__brand b { font-weight: 600; }
.app__logo { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 8px; background: var(--pk); color: #fff; font-size: .8em; font-weight: 600; }
.app__menu { color: var(--text-2); white-space: nowrap; overflow: hidden; }
.app__nav { white-space: nowrap; }
.app.s1 .app__nav { display: inline-flex; gap: 1.6em; color: var(--text-2); }
.app__nav b { color: var(--ink); font-weight: 600; }
.app__in { overflow: hidden; min-height: 0; }
.app__chips, .app__tiles { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 450ms var(--ease-out), opacity 350ms var(--ease-out); }
.app__chips .app__in { display: flex; flex-wrap: wrap; gap: .6em; padding-inline: 1.3em; }
.app.s4 .app__chips { grid-template-rows: 1fr; opacity: 1; }
.app.s4 .app__chips .app__in { padding-block: .9em 0; }
.chip { display: inline-flex; align-items: center; gap: .45em; padding: .3em .8em; border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-size: .9em; font-weight: 500; }
.app__tiles .app__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; padding-inline: 1.3em; }
.app.s2 .app__tiles { grid-template-rows: 1fr; opacity: 1; }
.app.s2 .app__tiles .app__in { padding-block: 1em .2em; }
.tile { padding: .8em 1em; border: 1px solid var(--line); border-radius: 12px; }
.tile p { color: var(--text-2); font-size: .88em; }
.tile b { display: block; margin-top: .2em; font-size: 1.45em; font-weight: 600; color: var(--pk); letter-spacing: -0.01em; }
.tile span { font-size: .85em; color: var(--text-2); }
.tile--bad b { color: var(--bad); }
.app__table { padding: .6em 0 .2em; }
.app__row { display: grid; grid-template-columns: 1.35fr 1.15fr 1fr .65fr 1.25fr; align-items: center; padding-inline: 1.3em; max-height: 4em; overflow: hidden; transition: max-height 400ms var(--ease-out), opacity 300ms var(--ease-out), background 300ms var(--ease-out); }
.app__row > span { padding: .7em .6em .7em 0; line-height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--line); }
.app__row--h > span { padding-block: .55em; color: var(--text-2); font-size: .88em; font-weight: 500; }
.c-name { color: var(--ink); font-weight: 500; }
.c-val { text-align: right; padding-right: 1.4em !important; }
.c-st { overflow: visible !important; }
/* spreadsheet look (state 0) */
.app:not(.s1) .app__row > span { border-right: 1px solid var(--line); padding-left: .5em; font-weight: 400; }
.app:not(.s1) .app__row--h > span { background: var(--surface); color: var(--text-2); }
.app:not(.s1) .r-dup { background: #fff6d6; }
.app:not(.s1) .c-st { color: transparent; }
.app .is-bad { color: var(--bad); }
.app:not(.s1) .app__row .is-bad { background: var(--bad-wash); padding-inline: .3em; border-radius: 3px; }
.app.s1 .r-dup { max-height: 0; opacity: 0; }
.app.s1 .r-dup > span { border-bottom-color: transparent; }
/* statuses appear at step 3 */
.pill { display: inline-flex; align-items: center; padding: 0 .7em; line-height: 1.6em; border-radius: 9999px; background: var(--surface); color: var(--text); font-size: .86em; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity 300ms var(--ease-out); }
.pill--due { background: var(--accent); color: var(--on-accent); }
.pill--bad { background: var(--bad-wash); color: var(--bad); }
.app.s2 .pill--due, .app.s3 .pill { opacity: 1; }
.app.s3 .r-late { background: #fdf6f5; box-shadow: inset 3px 0 0 var(--bad); }
.app__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1.6em; padding: .8em 1.3em; color: var(--text-2); font-size: .9em; }
.app__log { display: inline-flex; align-items: center; gap: .45em; color: var(--ok); opacity: 0; transition: opacity 300ms var(--ease-out); }
.app.s3 .app__log { opacity: 1; }
.app__sheets { display: flex; gap: 2px; padding: 0 1.3em; border-top: 1px solid var(--line); background: var(--surface-band); font-size: .85em; color: var(--text-2); }
.app__sheets span { padding: .45em .9em; border-inline: 1px solid var(--line); }
.app__sheets span:first-child { background: var(--bg); color: var(--ink); }
.app.s1 .app__sheets { display: none; }
@media (max-width: 639px) {
  .app__row { grid-template-columns: 1.3fr 1fr 1.2fr; }
  .app .c-gen, .app .c-val { display: none; }
  .app__menu { display: none; }
  .app__head { gap: 1em; }
  .app.s1 .app__nav span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .app *, .wt * { transition: none !important; }
}

/* ── doors ── */
.doors8 { margin-top: var(--gap-l); }
.doors8__grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .doors8__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.door8 { display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 24px; background: var(--surface); }
.door8 h3 { font: 400 1.625rem/1.15 var(--serif); letter-spacing: -0.01em; }
.door8__pains { display: grid; gap: 10px; color: var(--text-2); }
.door8__pains li { position: relative; padding-left: 20px; }
.door8__pains li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--text-2); }
.door8 .link { margin-top: auto; }

/* ── tangle ── */
.tangle { margin-top: var(--gap-l); }
.tangle__grid { display: grid; gap: 24px; margin-top: 40px; align-items: center; }
@media (min-width: 900px) { .tangle__grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 32px; } }
.tangle__label { font-size: .9375rem; font-weight: 500; color: var(--text-2); margin-bottom: 14px; }
.tangle__tools { display: grid; gap: 10px; }
.tangle__tools li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 2px 16px; padding: 14px 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.tangle__tools span { grid-row: span 2; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.tangle__tools span svg { color: var(--text-2); stroke-width: 1.7; }
.tangle__tools em { font-style: normal; color: var(--ink); }
.tangle__tools small { font-size: .875rem; color: #b92a2a; }
.tangle__sum { margin-top: 14px; color: var(--text-2); }
.tangle__arrow { display: grid; place-items: center; color: var(--text-2); }
.tangle__arrow svg { stroke-width: 1.5; }
@media (max-width: 899px) { .tangle__arrow { rotate: 90deg; } }
.tangle__one { padding: 22px 24px; border-radius: 20px; background: var(--bg); border: 1px solid var(--ink); box-shadow: var(--float); }
.tangle__name { font: 400 1.5rem/1.2 var(--serif); color: var(--ink); }
.tangle__one dl { margin: 14px 0 0; display: grid; }
.tangle__one dl div { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; border-top: 1px solid var(--line); }
.tangle__one dt { color: var(--text-2); }
.tangle__one dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.tangle__cta { margin-top: 40px; }

/* ── products ── */
.built { margin-top: var(--gap-l); }
.built__grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 1024px) { .built__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.pcard { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--surface); color: inherit; text-decoration: none; transition: background 200ms var(--ease-out); }
.pcard:hover { background: #eaece8; }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .9375rem; color: var(--text-2); }
.pcard__name { font: 400 clamp(1.75rem, 3vw, 2.25rem)/1.1 var(--serif); letter-spacing: -0.015em; }
.pcard__text { color: var(--text-2); max-width: 32em; }
.pcard .shot { margin-top: 8px; }
.pcard .link { margin-top: auto; padding-top: 6px; }
.pcard--next { background: transparent; border: 1px dashed var(--line-strong); }
.pcard--next:hover { background: var(--surface-band); }

/* ── how we work ── */
.how8 { margin-top: var(--gap-l); scroll-margin-top: 96px; }
.how8__steps { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .how8__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.how8__steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--ink); }
.how8__n { font-size: .9375rem; color: var(--text-2); }
.how8__time { display: inline-flex; align-self: flex-start; padding: 3px 12px; border-radius: 9999px; background: var(--surface); font-size: .9375rem; color: var(--text); }
.how8__steps li > p:not(.how8__n):not(.how8__time) { color: var(--text-2); max-width: 26em; }
.how8__stop { margin-top: auto; padding-top: 12px; font-size: .9375rem; font-weight: 500; color: var(--ink); }

/* ── compare ── */
.compare { margin-top: var(--gap-l); }
.compare__scroll { margin-top: 40px; overflow-x: auto; }
.compare__table { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare__table th, .compare__table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare__table thead th { font-weight: 500; color: var(--text-2); }
.compare__table thead th.is-us { color: var(--ink); font: 400 1.375rem/1.2 var(--serif); }
.compare__table tbody th { font-weight: 500; color: var(--ink); width: 18%; }
.compare__table td { color: var(--text-2); }
.compare__table .is-us { background: var(--bg); color: var(--ink); }
.compare__table tbody tr:last-child .is-us { border-radius: 0 0 16px 16px; }
.compare__table thead .is-us { border-radius: 16px 16px 0 0; }
/* phones (2026-11-27): a 640px table in a scroll box cut its columns mid-word. Each question becomes a block:
   the question, then the three answers with who gives them on the left; ours sits on the card background. */
@media (max-width: 639px) {
  .compare__scroll { overflow: visible; margin-top: 28px; }
  .compare__table { min-width: 0; }
  .compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table th, .compare__table td { display: block; width: auto; }
  .compare__table tr { padding-block: 20px; border-bottom: 1px solid var(--line); }
  .compare__table tr:first-child { padding-top: 0; }
  .compare__table tbody th { width: auto; padding: 0 0 10px; border: 0; font-size: 1.0625rem; }
  .compare__table td { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); column-gap: 12px; padding: 10px 14px; border: 0; border-radius: 12px; }
  .compare__table td::before { content: attr(data-label); font-size: .875rem; color: var(--text-3); padding-top: 1px; }
  .compare__table td.is-us::before { color: var(--ink); font-weight: 500; }
  .compare__table tbody tr:last-child .is-us { border-radius: 12px; }
}

.faq8 { margin-top: var(--gap-l); }
.founder-x .actions { flex-wrap: wrap; }

/* v8 review fixes: end state, phone window kept short */
.app__done { display: flex; align-items: center; gap: .5em; margin: 0 1.3em; padding: 0 1em; max-height: 0; opacity: 0; overflow: hidden; border-radius: 10px; background: #e6f2ec; color: #1d7148; font-weight: 500; transition: max-height 400ms var(--ease-out), opacity 300ms var(--ease-out), padding 400ms var(--ease-out), margin 400ms var(--ease-out); }
.app.s5 .app__done { max-height: 3em; opacity: 1; padding-block: .7em; margin-bottom: 1em; }
@media (max-width: 639px) {
  .app__table .app__row:nth-last-child(-n+2) { display: none; }
  .app__tiles .app__in { grid-template-columns: 1fr 1fr; }
  .app__tiles .tile:last-child { display: none; }
  .app__chips .chip:last-child { display: none; }
  .app__foot { font-size: .85em; }
}
@media (min-width: 1024px) and (max-height: 840px) {
  .app { font-size: 11.5px; }
  .wt.is-live .wt__stage { top: 92px; }
}

/* phones: the active step is shown as a caption inside the sticky stage; list items stay in the a11y tree but invisible */
.wt__caption { display: none; }
@media (max-width: 1023px) {
  /* 2026-11-27, Kirill: the caption read as faint and left an empty third of the screen.
     Now: the stage fills the screen under the header with the window and caption centred as one block (the window's height
     animates between steps, so the block glides rather than jumps; a fixed tallest height left early steps half empty),
     the caption is ink on the full width, and a 5-part bar shows how far through the steps you are. */
  .wt.is-live .wt__stage { min-height: calc(100svh - 72px); display: flex; flex-direction: column; padding-block: 12px 20px; }
  /* auto margins centre it but never push it above the stage when the block is taller than a short phone screen */
  .wt.is-live .wt__sticky { margin-block: auto; }
  .wt.is-live .wt__caption {
    display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; row-gap: 10px; align-items: center;
    align-content: start; min-height: 8.5em; margin-top: 20px; padding-top: 18px; position: relative;
  }
  /* progress: a hairline track with the done part in ink */
  .wt.is-live .wt__caption::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 3px;
    background: linear-gradient(var(--ink), var(--ink)) 0 0 / calc(var(--wt-p, .2) * 100%) 100% no-repeat, var(--line);
    transition: background-size 300ms var(--ease-out);
  }
  .wt__caption .wt__ico { grid-row: auto; width: 36px; height: 36px; background: var(--ink); border-color: var(--ink); color: var(--bg); }
  .wt__caption .wt__ico svg { width: 18px; height: 18px; }
  .wt__caption h3 { padding-top: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
  .wt__caption .wt__big { font-size: 1.5rem; padding-top: 0; }
  .wt__caption p { grid-column: 1 / -1; margin-top: 0; max-width: none; font-size: 1rem; line-height: 1.55; color: var(--text); }
  .wt.is-live .wt__steps { opacity: 0; }
  .wt.is-live .wt__step { min-height: 38vh; }

  /* No scroll snap: on iPhone, scroll-snap-type on <html> changed scrolling on the whole page (Kirill, 2026-11-27).
     walkthrough.js moves one step per swipe. The invisible steps share one grid cell with the sticky stage, so their
     positions do not move when the window's height changes between steps; they start 24px down, so step 1 rests
     (at scroll-padding-top 96px) exactly when the stage sticks at 72px. Steps are 55svh apart, the last one is tall
     enough to hold the stage. */
  .wt.is-live .wt__stage, .wt.is-live .wt__steps { grid-row: 1; grid-column: 1; }
  .wt.is-live .wt__stage { align-self: start; }
  .wt.is-live .wt__steps { padding-top: 24px; pointer-events: none; }
  .wt.is-live .wt__step { min-height: 55svh; }
  .wt.is-live .wt__step:last-child { min-height: calc(100svh - 96px); }
}

/* v8.1: a visible Contact button in the header (Kirill 2026-11-26) */
.nav__links .nav__cta, .nav__cta--m {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px !important; margin-left: 8px;
  border-radius: 9999px; background: var(--ink); color: var(--bg) !important; font-weight: 500; text-decoration: none;
  transition: background 200ms ease;
}
@media (hover: hover) { .nav__links .nav__cta:hover, .nav__cta--m:hover { background: var(--ink-hover); color: var(--bg) !important; } }
.nav__cta--m { margin-left: auto; padding: 0 16px !important; min-height: 40px; font-size: .9375rem; }
@media (min-width: 900px) { .nav__cta--m { display: none; } }

/* v8.1: contact section with a form (sends to /api/contact) */
.contact8 { margin-top: var(--gap-l); padding-block: var(--gap-l); background: var(--ink); color: var(--on-ink-2); scroll-margin-top: 72px; }
.contact8__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact8__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; } }
.contact8__photo { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; }
.contact8 h2 { margin-top: 28px; color: var(--on-ink); max-width: 14ch; }
.contact8__quote { margin-top: 20px; max-width: 26em; font-size: 1.1875rem; color: var(--on-ink); }
.contact8__alt { margin-top: 20px; }
.contact8__alt a { color: var(--on-ink); text-underline-offset: 3px; }
.contact8 :focus-visible { outline-color: var(--on-ink); }
.cform { display: grid; gap: 18px; padding: 28px; border-radius: 24px; background: var(--bg); color: var(--text); }
@media (min-width: 640px) { .cform { padding: 36px; } }
.cform :focus-visible { outline-color: var(--ink); }
.cform__row { display: grid; gap: 6px; }
.cform label { font-weight: 500; color: var(--ink); }
.cform label span { font-weight: 400; color: var(--text-2); margin-left: 6px; }
.cform input, .cform textarea {
  font: inherit; font-size: max(1rem, 1em); width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #767676; border-radius: 12px; background: var(--bg); color: var(--ink);
}
.cform textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.cform input:focus-visible, .cform textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.cform [aria-invalid="true"] { border-color: #b92a2a; }
.cform__err { color: #b92a2a; font-size: .9375rem; }
.cform__err::before { content: "Error: "; font-weight: 500; }
.cform__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cform__send { justify-self: start; min-height: 48px; cursor: pointer; font: inherit; font-weight: 500; }
.cform__send:disabled { opacity: .6; cursor: progress; }
.cform__status:empty { display: none; }
.cform__status { padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--ink); }
.cform__status.is-ok { background: #e6f2ec; color: #1d7148; }
.cform__status.is-bad { background: #fdeeed; color: #b92a2a; }
.cform__status a { color: inherit; }
.cform__note { font-size: .875rem; color: var(--text-2); }
.cform__note a { color: inherit; }

/* ═══ v8.1 (2026-11-26): centered hero with PlanKeep fragments is back (Kirill preferred it to the left-aligned v8 hero) ═══ */
.hero-c .tag { white-space: nowrap; }
/* more air before the walkthrough: it starts a new idea, not a continuation of the hero */
.hero-c + .wt { margin-top: 96px; }
/* phones: the full-screen walkthrough stage already centres the window with space above it */
@media (max-width: 1023px) { .hero-c + .wt { margin-top: 32px; } }
@media (min-width: 1024px) { .hero-c + .wt { margin-top: 160px; } }

/* Contact form v2: questions you answer with a tap (radio chips), free text optional.
   Native radios stay in the tree (visually hidden, modern-web-guidance "forms"), the label is the chip. */
.cform fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.cform legend { padding: 0; margin-bottom: 10px; font-weight: 500; color: var(--ink); }
.cform legend span { font-weight: 400; color: var(--text-2); margin-left: 6px; }
.cform__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cform__chips label {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 9999px;
  font-weight: 400; color: var(--text); cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.cform__chips input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.cform__chips label:has(:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cform__chips label:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .cform__chips label:hover:not(:has(:checked)) { border-color: var(--ink); } }
.cform__pick[aria-invalid="true"] .cform__chips label { border-color: #b92a2a; }
.cform input::placeholder { color: var(--text-3); }
.cform textarea { min-height: 88px; }
.cform__pair { display: grid; gap: 18px; }
@media (min-width: 640px) { .cform__pair { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .announce__more { display: none; } }
