@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&family=Fraunces:opsz,wght@9..144,400..600&display=swap');

/* ============================================================================
   Dart Browser design system v4 — "Aperture"
   Bright cool-porcelain canvas, a fixed left navigation rail, generous round
   geometry and soft layered shadow. Electric indigo lead with a hot-pink
   counter-accent. Bricolage Grotesque display, Inter body, Space Mono for
   labels and code, Fraunces for long-form reading.
   Signature: the four-dot progress cluster and a soft highlighter swash.
   ========================================================================= */

:root {
  /* color — cool porcelain ground, blue-graphite ink */
  --bg:          #EBECF2;
  --bg-soft:     #F4F5F9;
  --surface:     #FFFFFF;
  --ink:         #1A1B26;
  --ink-2:       #565A6E;
  --ink-3:       #8A8FA3;
  --line:        rgba(26, 27, 38, 0.10);
  --line-strong: rgba(26, 27, 38, 0.18);

  /* "night" = deep indigo-ink panels that lift off the porcelain canvas */
  --night:       #1E1A33;
  --night-2:     #261F40;
  --night-3:     #38305C;
  --bone:        #F3F1FB;
  --bone-70:     rgba(243, 241, 251, 0.74);
  --bone-55:     rgba(243, 241, 251, 0.56);
  --line-night:  rgba(150, 130, 255, 0.20);

  /* accent — electric indigo (primary) + hot pink (counter). legacy
     --amber* names retained as hooks so every component recolors at once. */
  --amber:       #5A3CF0;
  --amber-deep:  #4B2EDB;
  --amber-soft:  rgba(90, 60, 240, 0.30);
  --amber-wash:  rgba(90, 60, 240, 0.08);
  --on-accent:   #FFFFFF;
  --accent-2:    #FF4D8D;

  /* progress ramp */
  --m0: #CBCEDE;
  --m1: #9B8BF0;
  --m2: #5A3CF0;
  --m3: #FF4D8D;

  --good:        #16A36B;
  --good-bg:     rgba(22, 163, 107, 0.12);
  --bad:         #E5484D;
  --bad-bg:      rgba(229, 72, 77, 0.12);
  --good-night:  #5BE3B0;
  --bad-night:   #FF9AA0;

  /* radius — soft, rounded */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* shadow — soft layered depth + indigo-tinted lift */
  --shadow-1: 0 2px 4px rgba(26, 27, 38, 0.04), 0 14px 30px -18px rgba(40, 24, 90, 0.22);
  --shadow-2: 0 4px 12px rgba(26, 27, 38, 0.06), 0 44px 84px -34px rgba(40, 24, 90, 0.30);
  --glow:     0 0 0 1px var(--amber-soft), 0 20px 44px -18px rgba(90, 60, 240, 0.42);

  /* type */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  /* layout — content column sits right of a fixed rail */
  --rail: 264px;
  --max: 1240px;
  --max-narrow: 720px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* base ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  /* content sits to the right of the fixed navigation rail */
  padding-left: var(--rail);
  background:
    radial-gradient(900px 600px at 100% -8%, rgba(255, 77, 141, 0.10), transparent 58%),
    radial-gradient(820px 560px at 18% -6%, rgba(90, 60, 240, 0.10), transparent 56%),
    radial-gradient(2px 2px at 24px 24px, rgba(26, 27, 38, 0.05) 1px, transparent 1px) 0 0 / 30px 30px,
    var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent-2); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .foot :focus-visible, .wb :focus-visible { outline-color: var(--accent-2); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; padding: clamp(60px, 8vw, 108px) 0; }
section.tight { padding: clamp(34px, 5vw, 60px) 0; }
section.flush-top { padding-top: 0; }
section.dark {
  background:
    radial-gradient(120% 120% at 88% 0%, rgba(255, 77, 141, 0.12), transparent 60%),
    var(--night);
  color: var(--bone);
  border-radius: var(--r-lg);
  margin: clamp(14px, 2vw, 26px) clamp(14px, 2vw, 26px);
}
section.soft { background: var(--bg-soft); }
.divide-top { border-top: 1px solid var(--line); }

/* typography -------------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.4vw, 80px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(30px, 4.3vw, 50px); font-weight: 700; letter-spacing: -0.028em; font-variation-settings: "opsz" 48; }
h3 { font-size: clamp(21px, 2.3vw, 26px); line-height: 1.16; }
h4 { font-size: 18.5px; line-height: 1.3; }
p { margin: 0; }

.lede {
  font-size: clamp(17px, 1.35vw, 19.5px);
  line-height: 1.64;
  color: var(--ink-2);
  max-width: 62ch;
}
.dark .lede { color: var(--bone-70); }
.muted { color: var(--ink-3); }

/* eyebrow becomes a small rounded tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  background: var(--amber-wash);
  border: 1px solid var(--amber-soft);
  padding: 6px 13px;
  border-radius: var(--r-pill);
}
.dark .eyebrow { color: var(--bone); background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14); }

/* signature glyph: a four-dot progress cluster ---------------------------- */
.meter { display: inline-flex; gap: 5px; flex: none; align-items: center; }
.meter i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}
.dark .meter i, .foot .meter i, .wb .meter i { background: rgba(243, 241, 251, 0.26); }
.meter.f1 i:nth-child(-n+1),
.meter.f2 i:nth-child(-n+2),
.meter.f3 i:nth-child(-n+3),
.meter.f4 i:nth-child(-n+4) { background: var(--amber); }
.meter i { transition: background 400ms ease; }

/* highlighter swash for key headline words */
.uline {
  position: relative;
  background-image: linear-gradient(0deg, var(--accent-2) 0, var(--accent-2) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.34em;
  background-position: 0 86%;
  border-radius: 2px;
  padding: 0 0.04em 0.02em;
}
.dark .uline, .cta-panel .uline { background-image: linear-gradient(0deg, var(--accent-2) 0, var(--accent-2) 100%); color: #fff; }

/* section heads ------------------------------------------------------------ */
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); display: grid; gap: 18px; }
.sec-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.centered .eyebrow { justify-content: center; }

/* buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,
              border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arr { font-family: var(--font-sans); transition: transform 160ms ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--amber); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: #4a2fe0; box-shadow: var(--glow); }
.btn-accent { background: var(--amber); color: #fff; box-shadow: var(--shadow-1); }
.btn-accent:hover { background: #4a2fe0; box-shadow: var(--glow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-deep); background: var(--surface); }
.btn-ghost-dark { background: rgba(255,255,255,0.06); color: var(--bone); border-color: rgba(243,241,251,0.30); }
.btn-ghost-dark:hover { border-color: var(--bone); background: rgba(255,255,255,0.12); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* chips ---------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip.accent { background: var(--amber-wash); border-color: var(--amber-soft); color: var(--amber-deep); }
.chip.warn { background: var(--bad-bg); border-color: #F1CFC7; color: var(--bad); }

.caps {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dark .caps { color: var(--bone-55); }

/* nav — fixed left rail ---------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 60;
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 0 rgba(26,27,38,0.02);
}
.nav .wrap { max-width: none; height: 100%; padding: 28px 22px; }
.nav.is-scrolled { background: var(--surface); }
.nav-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: 100%;
}
.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; margin-bottom: 30px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.nav-links { display: flex; flex-direction: column; gap: 3px; margin-left: 0; }
.nav-links a {
  padding: 11px 15px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 140ms ease, background 140ms ease;
}
.nav-links a:hover { color: var(--amber-deep); background: var(--amber-wash); }
.nav-links a.is-active { color: var(--ink); font-weight: 700; background: var(--bg-soft); }
.nav-right { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-left: 0; margin-top: auto; }
.nav-right .btn { width: 100%; }
.nav-plain {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  text-align: center; padding: 11px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  transition: color 140ms ease, border-color 140ms ease;
}
.nav-plain:hover { color: var(--ink); border-color: var(--ink); }
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.mob-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  z-index: 55;
  background: var(--bg);
  padding: 18px var(--gutter) 40px;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
}
.mob-menu.is-open { display: flex; }
.mob-menu a {
  padding: 15px 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.mob-menu .mob-cta { margin-top: 22px; border: 0; }

/* hero --------------------------------------------------------------------------- */
.hero { padding: clamp(40px, 5vw, 76px) 0 clamp(48px, 7vw, 92px); overflow: clip; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.hero-copy { display: grid; gap: 20px; justify-items: start; max-width: none; }
.hero-copy > * { max-width: 600px; }
.hero-copy h1 { max-width: 12ch; font-size: clamp(40px, 4.6vw, 68px); }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 2px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.pill .dot.ink { background: var(--ink); }
.pill .dot.m3 { background: var(--m3); }

/* workbench: the dark editor panel ---------------------------------------------- */
.wb {
  background: var(--night);
  color: var(--bone);
  border-radius: var(--r-lg);
  border: 1px solid var(--night-3);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  font-size: 13.5px;
}
.wb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-night);
  background: var(--night-2);
}
.wb-file { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12.5px; color: var(--bone-70); }
.wb-file .fdot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.wb-concept {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--bone-55);
}
.wb-body { padding: 18px 18px 20px; display: grid; gap: 14px; }
.wb-diff { font-family: var(--font-mono); font-size: 12.8px; line-height: 1.7; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-night); }
.dl { padding: 1px 14px; white-space: pre-wrap; word-break: break-word; color: var(--bone-70); background: rgba(243, 241, 251, 0.03); }
.dl.add { background: rgba(127, 214, 164, 0.10); color: var(--good-night); }
.dl.rem { background: rgba(240, 154, 141, 0.10); color: var(--bad-night); text-decoration: line-through; text-decoration-thickness: 1px; }
.wb-q {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--amber);
  letter-spacing: 0.02em;
}
.wb-a {
  background: rgba(243, 241, 251, 0.06);
  border: 1px solid var(--line-night);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bone);
  min-height: 92px;
}
.wb-a .caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--amber);
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.wb-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.wb-verdict {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bone-70);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.wb-verdict .stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(127, 214, 164, 0.14);
  color: var(--good-night);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.wb.done .wb-verdict { opacity: 1; transform: none; }
.wb-merge {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-night);
  background: transparent;
  color: var(--bone-55);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 400ms ease, color 400ms ease, border-color 400ms ease;
  pointer-events: none;
}
.wb.done .wb-merge { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.wb .dl { opacity: 1; }
.wb.armed .dl { opacity: 0; transform: translateY(4px); }
.wb.armed.play .dl { animation: dl-in 360ms ease forwards; }
@keyframes dl-in { to { opacity: 1; transform: none; } }

/* generic cards ------------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
}
.card-night {
  background: var(--night-2);
  border: 1px solid var(--night-3);
  border-radius: var(--r);
  padding: 26px;
  color: var(--bone);
}

/* logo marquee --------------------------------------------------------------------- */
.marquee-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-bottom: 30px; }
.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marq-logo { display: flex; align-items: center; opacity: 0.62; filter: grayscale(1) contrast(0.9); transition: opacity 180ms ease, filter 180ms ease; }
.marq-logo:hover { opacity: 1; filter: none; }
.marq-logo img { height: 26px; width: auto; }
.marq-logo.icon img { height: 30px; }

/* stats ------------------------------------------------------------------------------ */
.stats { display: grid; gap: 16px; }
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stats.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; display: grid; gap: 12px; align-content: start; }
.dark .stat { background: rgba(243, 241, 251, 0.05); border-color: var(--line-night); }
.stat .big {
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .big small { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.dark .stat .big small { color: var(--bone-55); }
.stat .lbl { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.dark .stat .lbl { color: var(--bone-70); }
.amber-text { color: var(--amber); }

/* mode cards ----------------------------------------------------------------------------- */
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 24px;
  display: grid;
  gap: 13px;
  align-content: start;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.mode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--line-strong); }
.mode-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mode-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); }
.mode-card h3 { font-size: 25px; }
.mode-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.mode-when {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-3);
}
.mode-card.coach { background: var(--night); border-color: var(--night-3); color: var(--bone); }
.mode-card.coach p { color: var(--bone-70); }
.mode-card.coach .mode-tag, .mode-card.coach .mode-when { color: var(--bone-55); border-color: rgba(243, 241, 251,0.22); }

/* feature rows ---------------------------------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature-row > .copy { display: grid; gap: 18px; justify-items: start; }
.feature-row.flip > .copy { order: 2; }
.feature-row.flip > .visual { order: 1; }
.pts { display: grid; gap: 16px; margin-top: 10px; }
.pt { display: flex; gap: 14px; align-items: flex-start; }
.pt .num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--amber-deep);
  background: var(--amber-wash);
  border: 1px solid var(--amber-soft);
  border-radius: 7px;
  padding: 5px 9px;
  margin-top: 2px;
}
.pt h4 { margin-bottom: 4px; }
.pt p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* byo grid ------------------------------------------------------------------------------------------ */
.byo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.byo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 22px;
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.byo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.byo-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
}
.byo-card p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }

/* dashboard mock bars ----------------------------------------------------------------------------------- */
.bar-row { display: grid; gap: 8px; }
.bar-row .bar-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--bone-70); }
.bar-track { height: 8px; border-radius: 4px; background: rgba(243, 241, 251,0.12); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--amber); }
.bar-fill.dim { background: rgba(243, 241, 251,0.55); }

/* testimonials -------------------------------------------------------------------------------------------- */
.t-case {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 18px;
}
.t-case-quote { padding: clamp(28px, 4vw, 44px); display: grid; gap: 22px; align-content: space-between; }
.t-case-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.012em;
}
.t-case-side {
  background: var(--night);
  color: var(--bone);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 36px);
  display: grid;
  gap: 20px;
  align-content: center;
}
.t-case-side .row { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line-night); }
.t-case-side .row:last-child { border: 0; padding-bottom: 0; }
.t-case-side .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--bone-55); }
.t-case-side .v { font-size: 15px; font-weight: 600; }
.t-case-side .v em { color: var(--amber); font-style: normal; }

.t-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.t-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 26px 22px;
  display: grid;
  gap: 18px;
  align-content: space-between;
  position: relative;
}
.t-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--amber);
  opacity: 0.85;
}
.t-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-deep); }
.t-card blockquote {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
}
.t-author { display: flex; align-items: center; gap: 13px; }
.t-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-wash);
  border: 1px solid var(--amber-soft);
  color: var(--amber-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.t-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.t-role { font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.t-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 70ch;
}

/* FAQ -------------------------------------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  letter-spacing: -0.012em;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .ic {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}
.faq-item[open] .faq-q .ic { transform: rotate(45deg); background: var(--ink); color: var(--bone); border-color: var(--ink); }
.faq-a { padding: 0 44px 24px 4px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 70ch; }

/* CTA panel ----------------------------------------------------------------------------------------------------- */
.cta-panel {
  background: var(--night);
  color: var(--bone);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 76px) clamp(24px, 5vw, 72px);
  text-align: center;
  display: grid;
  gap: 22px;
  justify-items: center;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.16), transparent 65%);
  pointer-events: none;
}
.cta-panel .eyebrow { color: var(--bone-55); }
.cta-panel .lede { color: var(--bone-70); margin: 0 auto; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta-fine { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-55); }

/* footer ------------------------------------------------------------------------------------------------------------ */
.foot { background: var(--night); color: var(--bone); padding: clamp(52px, 7vw, 84px) 0 36px; }
.foot a:hover { color: var(--amber); }
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-night);
}
.foot .logo-text { color: var(--bone); }
.foot .tag { margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: var(--bone-70); max-width: 36ch; }
.foot .addr { margin-top: 18px; font-size: 13.5px; line-height: 1.7; color: var(--bone-55); }
.foot h5 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-55);
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot ul a { font-size: 14.5px; color: var(--bone-70); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px 32px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 12.5px;
  color: var(--bone-55);
}
.foot-bottom .fb-right { max-width: 60ch; }

/* page hero (subpages) ----------------------------------------------------------------------------------------------- */
.page-hero { padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 72px); }
.page-hero .inner { display: grid; gap: 22px; justify-items: start; max-width: 880px; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 68px); }
.page-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

/* pricing --------------------------------------------------------------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: grid;
  gap: 18px;
  align-content: start;
  position: relative;
}
.tier .tier-name { font-family: var(--font-display); font-size: 22px; font-weight: 650; }
.tier .tier-for { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; min-height: 2.6em; }
.tier .price { display: flex; align-items: baseline; gap: 8px; }
.tier .price b { font-family: var(--font-display); font-size: 42px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.tier .price span { font-size: 13px; color: var(--ink-3); }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tier ul li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.tier ul li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); margin-top: 7px; }
.tier .btn { width: 100%; margin-top: 4px; }
.tier.featured { background: var(--night); border-color: var(--night-3); color: var(--bone); box-shadow: var(--shadow-2); }
.tier.featured .tier-for, .tier.featured .price span { color: var(--bone-55); }
.tier.featured ul li { color: var(--bone-70); }
.tier-flag {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
.edu-banner {
  margin-top: 22px;
  background: var(--amber-wash);
  border: 1px solid var(--amber-soft);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 36px;
  align-items: center;
}
.edu-banner p { font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 72ch; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
table.cmp th, table.cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp thead th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-soft);
}
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody th { font-weight: 500; color: var(--ink); }
table.cmp td { color: var(--ink-2); }
table.cmp td .yes { color: var(--good); font-weight: 600; }
table.cmp td .no { color: var(--line-strong); }

/* careers ---------------------------------------------------------------------------------------------------------------------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.value-card .vnum { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--amber-deep); }
.value-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

.bens { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.ben { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ben::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--amber); margin-top: 7px; }
.ben b { color: var(--ink); }

.role {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  overflow: hidden;
}
.role summary { list-style: none; cursor: pointer; padding: 24px 26px; }
.role summary::-webkit-details-marker { display: none; }
.role-top { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.role-top h3 { font-size: 22px; margin-right: auto; }
.role-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.role-open {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}
.role[open] .role-open { transform: rotate(45deg); background: var(--ink); color: var(--bone); border-color: var(--ink); }
.role-blurb { margin-top: 12px; font-size: 15px; line-height: 1.62; color: var(--ink-2); max-width: 78ch; }
.role-body { padding: 4px 26px 28px; display: grid; gap: 24px; border-top: 1px dashed var(--line); margin: 0 0 0; padding-top: 22px; }
.role-body h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.role-list li { display: flex; gap: 11px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.role-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); margin-top: 8px; }
.role-list.alt li::before { background: var(--m0); }
.role-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* contact -------------------------------------------------------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.contact-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.contact-tile .addr-line {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--amber-deep);
  word-break: break-all;
}
.contact-tile p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

/* about ------------------------------------------------------------------------------------------------------------------------------- */
.essay { max-width: var(--max-narrow); display: grid; gap: 22px; }
.essay p { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.essay p b, .essay p strong { color: var(--ink); }
.pullquote {
  margin: 8px 0;
  padding: 28px 0 28px 30px;
  border-left: 4px solid var(--amber);
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.founders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.founder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.founder .f-av {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.founder p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* legal doc layout -------------------------------------------------------------------------------------------------------------------------- */
.doc-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.doc-toc { position: sticky; top: 96px; display: grid; gap: 2px; }
.doc-toc .toc-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.doc-toc a { padding: 7px 12px; border-left: 2px solid var(--line); font-size: 13.5px; color: var(--ink-3); transition: color 140ms ease, border-color 140ms ease; }
.doc-toc a:hover { color: var(--ink); border-color: var(--amber); }
.doc { max-width: 720px; }
.doc .meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 36px; }
.doc h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 44px 0 14px; scroll-margin-top: 96px; }
.doc h3 { font-size: 18px; margin: 28px 0 10px; }
.doc p { font-size: 15.5px; line-height: 1.72; color: var(--ink-2); margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.doc ul li { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.doc ul li::marker { color: var(--amber-deep); }
.doc .legal-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}
.doc a { color: var(--amber-deep); text-decoration: underline; text-decoration-color: var(--amber-soft); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--amber-deep); }

/* blog ----------------------------------------------------------------------------------------------------------------------------------------- */
.b-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.b-featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.b-featured .txt { padding: clamp(26px, 3.6vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.b-featured h2 { font-size: clamp(25px, 3vw, 38px); }
.b-featured .txt p { font-size: 15.5px; line-height: 1.62; color: var(--ink-2); }
.b-featured .thumb { background: var(--night); display: flex; }
.b-featured .thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.b-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.b-by { margin-top: auto; display: flex; align-items: center; gap: 11px; padding-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.b-by .av {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.b-by b { color: var(--ink); font-weight: 600; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bpost {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.bpost:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--line-strong); }
.bpost .thumb { aspect-ratio: 8 / 5; background: var(--night); }
.bpost .thumb img { width: 100%; height: 100%; object-fit: cover; }
.bpost .txt { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.bpost h3 { font-size: 19px; line-height: 1.25; }
.bpost .txt p { font-size: 14px; line-height: 1.58; color: var(--ink-2); }

/* article ------------------------------------------------------------------------------------------------ */
.article-hero { padding: clamp(40px, 6vw, 72px) 0 0; }
.article-hero .inner { max-width: 800px; margin: 0 auto; display: grid; gap: 20px; }
.article-hero h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; }
.article-hero .dek { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); }
.article-byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-3); }
.article-byline b { color: var(--ink); font-weight: 600; }
.article-figure { max-width: 920px; margin: clamp(28px, 4vw, 44px) auto 0; padding: 0 var(--gutter); }
.article-figure img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--night-3); }
.article { max-width: 720px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) var(--gutter) 0; }
.article > * + * { margin-top: 22px; }
.article p {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.78;
  color: #20242D;
}
.article p.intro { font-size: 20px; line-height: 1.7; }
.article h2 {
  font-size: clamp(24px, 2.6vw, 31px);
  margin-top: 48px;
  scroll-margin-top: 96px;
}
.article h3 { font-size: 20px; margin-top: 34px; }
.article ul, .article ol { font-family: var(--font-serif); font-size: 17.5px; line-height: 1.72; color: #20242D; padding-left: 26px; display: grid; gap: 10px; }
.article li::marker { color: var(--amber-deep); }
.article em { font-style: italic; }
.article blockquote {
  margin: 34px 0;
  padding: 4px 0 4px 28px;
  border-left: 4px solid var(--amber);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -0.014em;
  color: var(--ink);
}
.article code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}
.article .fig-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  margin: 34px 0;
}
.article .fig-card .caps { display: block; margin-bottom: 14px; }
.article .note {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 44px;
}
.keep-reading { padding-top: clamp(48px, 7vw, 80px); }
.kr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* 404 ----------------------------------------------------------------------------------- */
.nf { padding: clamp(80px, 13vw, 168px) 0; text-align: center; }
.nf .inner { display: grid; gap: 26px; justify-items: center; }
.nf h1 { font-size: clamp(48px, 9vw, 116px); }
.nf .meter i { width: 26px; height: 15px; border-radius: 4px; }

/* reveal on scroll ------------------------------------------------------------------------ */
html.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js [data-reveal][data-reveal="2"] { transition-delay: 90ms; }
html.js [data-reveal][data-reveal="3"] { transition-delay: 180ms; }

/* skip link ------------------------------------------------------------------------------ */
.skip {
  position: absolute;
  left: 16px;
  top: -52px;
  z-index: 100;
  background: var(--ink);
  color: var(--bone);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition: top 160ms ease;
}
.skip:focus { top: 14px; }

/* responsive -------------------------------------------------------------------------------- */
@media (max-width: 1060px) {
  /* rail collapses back into a conventional top bar */
  body { padding-left: 0; }
  .nav {
    position: sticky;
    inset: auto;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: none;
  }
  .nav.is-scrolled { background: rgba(255, 255, 255, 0.94); box-shadow: 0 1px 0 var(--line); }
  .nav .wrap { max-width: var(--max); padding: 0 var(--gutter); height: 64px; }
  .nav-row { flex-direction: row; align-items: center; gap: 20px; height: 64px; }
  .logo { margin-bottom: 0; }
  .nav-links { display: none; }
  .nav-plain { display: none; }
  .nav-right { flex-direction: row; align-items: center; gap: 12px; margin-top: 0; margin-left: auto; }
  .nav-right .btn { width: auto; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-copy h1 { max-width: 16ch; }
  .hero .wb { max-width: 640px; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row.flip > .copy { order: 1; }
  .feature-row.flip > .visual { order: 2; }
  .modes-grid { grid-template-columns: 1fr; }
  .byo-grid { grid-template-columns: 1fr 1fr; }
  .stats.cols-4 { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .founders { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-toc { position: static; grid-template-columns: 1fr 1fr; display: grid; gap: 2px 18px; margin-bottom: 8px; }
  .doc-toc .toc-label { grid-column: 1 / -1; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  section.dark { margin-left: 0; margin-right: 0; border-radius: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .stats.cols-3, .stats.cols-4 { grid-template-columns: 1fr; }
  .byo-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .t-case { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .bens { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .b-featured { grid-template-columns: 1fr; }
  .b-featured .thumb { order: -1; }
  .b-featured .thumb img { min-height: 0; }
  .kr-grid { grid-template-columns: 1fr; }
  .edu-banner { grid-template-columns: 1fr; }
  .hero-cta { align-items: stretch; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }
  .foot-top { grid-template-columns: 1fr; gap: 36px; }
  .role summary { padding: 20px; }
  .role-body { padding-left: 20px; padding-right: 20px; }
}

/* motion safety -------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* print: keep legal pages clean ------------------------------------------------------------------ */
@media print {
  .nav, .foot, .mob-menu, .doc-toc, .skip { display: none !important; }
  body { background: #fff; }
}

/* ============================================================================
   v2.1 additions: no-JS defaults, utilities, article Q&A, misc
   ========================================================================= */

/* Workbench settles in the finished state when JS is unavailable;
   JS rewinds it and replays the sequence. */
.wb-verdict { opacity: 1; transform: none; }
html.js .wb:not(.done) .wb-verdict { opacity: 0; transform: translateY(4px); }
.wb-merge { background: var(--amber); border-color: var(--amber); color: var(--ink); }
html.js .wb:not(.done) .wb-merge { background: transparent; border-color: var(--line-night); color: var(--bone-55); }

/* simple two-column block */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* footnote under tables / grids */
.foot-note { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--ink-3); max-width: 74ch; }

/* breadcrumb back-link on articles */
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 140ms ease;
}
.crumb:hover { color: var(--ink); }

/* interview questions inside articles */
.article .q {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-top: 32px;
}

/* founder avatar holds a small meter glyph on night ground */
.f-av .meter i { background: rgba(243, 241, 251, 0.22); }
.f-av .meter.f1 i:nth-child(-n+1),
.f-av .meter.f2 i:nth-child(-n+2),
.f-av .meter.f3 i:nth-child(-n+3),
.f-av .meter.f4 i:nth-child(-n+4) { background: var(--amber); }

/* mini bar chart on light ground (pricing / about cards) */
.bar-row.light .bar-meta { color: var(--ink-2); }
.bar-row.light .bar-track { background: var(--bg-soft); }

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Footer social links */
.foot .foot-social {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.foot .foot-social li { margin: 0; }
.foot .foot-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-night);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--bone-70);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.foot .foot-social a:hover {
  color: var(--amber);
  border-color: var(--amber);
  background-color: rgba(90, 60, 240, 0.10);
}
.foot .foot-social svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ============================================================================
   v4 OVERRIDE LAYER — "Aperture"
   Source-order-last. Re-skins the shared components into the bright,
   rounded, indigo identity and neutralises the old terminal motifs
   (corner brackets, glows, inverted marquee) without touching markup.
   ========================================================================= */

::selection { background: var(--accent-2); color: #fff; }

/* dark bands: rounded indigo cards floating on the porcelain canvas */
section.dark {
  background:
    radial-gradient(120% 120% at 88% 0%, rgba(255, 77, 141, 0.14), transparent 60%),
    var(--night);
  border: 1px solid var(--night-3);
  box-shadow: var(--shadow-2);
}

/* nav rail: clean surface, no glass blur on desktop */
.nav { background: var(--surface); }
.nav.is-scrolled { background: var(--surface); box-shadow: 1px 0 0 rgba(26,27,38,0.02); }

/* buttons keep the indigo identity */
.btn-accent, .btn-primary { color: #fff; }

/* progress dot cluster: fourth/mastered dot resolves to the pink counter */
.meter.f4 i:nth-child(4) { background: var(--accent-2); }

/* highlighter swash — no terminal glow */
.uline { filter: none; }

/* focal panels: rounded, soft-lifted, NO schematic corner brackets */
.wb { position: relative; border-color: var(--night-3); box-shadow: var(--shadow-2); border-radius: var(--r-lg); }
.wb::after, .cta-panel::after, .tier.featured::after { content: none !important; }

/* generic card hovers: soft indigo lift */
.card:hover, .stat:hover, .founder:hover { border-color: var(--amber-soft); box-shadow: var(--shadow-1); }
.mode-card:hover, .byo-card:hover, .contact-tile:hover,
.bpost:hover, .b-featured:hover { box-shadow: var(--glow); border-color: var(--amber-soft); }

/* logo marquee: present on its own indigo panel so the light wordmarks read */
.marquee-wrap {
  background:
    radial-gradient(120% 140% at 90% 0%, rgba(255,77,141,0.12), transparent 60%),
    var(--night);
  border: 1px solid var(--night-3);
  border-radius: var(--r-lg);
  padding: 26px clamp(18px, 3vw, 34px);
  box-shadow: var(--shadow-1);
}
.marq-logo { opacity: 0.62; filter: grayscale(1) brightness(0) invert(1); }
.marq-logo:hover { opacity: 1; filter: grayscale(1) brightness(0) invert(1); }

/* CTA panel: rounded indigo with a soft pink bloom */
.cta-panel { border: 1px solid var(--night-3); box-shadow: var(--shadow-2); }
.cta-panel::before { background: radial-gradient(circle, rgba(255, 77, 141, 0.22), transparent 65%); }

/* FAQ + role toggles: accent fill on open */
.faq-item[open] .faq-q .ic,
.role[open] .role-open {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}
.skip { background: var(--amber); color: #fff; }
.tier-flag { background: var(--amber); color: #fff; }
.tier.featured { box-shadow: var(--shadow-2); }

/* workbench merge button: white text on the accent done-state */
.wb-merge { color: #fff; }
html.js .wb:not(.done) .wb-merge { color: var(--bone-55); }
.wb.done .wb-merge { color: #fff; }

/* long-form article body: dark ink on light paper, indigo accents */
.article p, .article ul, .article ol { color: #2A2D3A; }
.article blockquote { color: var(--ink); border-left-color: var(--accent-2); }
.article code { background: var(--bg-soft); border-color: var(--line); color: var(--amber-deep); }
.essay p { color: var(--ink-2); }
.pullquote { border-left-color: var(--accent-2); }

/* comparison table marks */
table.cmp td .yes { color: var(--good); }
table.cmp td .no { color: var(--ink-3); }

/* legal callouts + doc accents */
.doc .legal-callout { background: var(--bg-soft); border-left-color: var(--accent-2); }

/* generic card radius bumps so the rounded language is consistent */
.card, .stat, .byo-card, .t-card, .contact-tile, .value-card, .founder,
.bpost, .alpha-card { border-radius: var(--r-lg); }
.chip { border-radius: var(--r-pill); }

/* t-card top accent rule recolored */
.t-card::before { background: var(--accent-2); }

/* eyebrow pill on dark/indigo contexts that aren't .dark sections */
.cta-panel .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
/* hero product panel: give the stacked panel a comfortable max width */
.hero .wb { max-width: none; }

/* ============================================================================
   v4.1 — Left rail micro-animations
   Motion-safe: entrance, nav indicator, logo spin, CTA sheen, ambient aura.
   ========================================================================= */

/* nav links: animated indicator dot + slide on hover/active --------------- */
.nav-links a { position: relative; transition: color 160ms ease, background 160ms ease, padding-left 200ms cubic-bezier(.2,.8,.2,1); }
.nav-links a::before {
  content: "";
  position: absolute;
  left: 9px; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-2);
  transform: translateY(-50%) scale(0);
  transition: transform 220ms cubic-bezier(.2,.85,.25,1.4);
}
.nav-links a:hover { padding-left: 26px; }
.nav-links a:hover::before { transform: translateY(-50%) scale(1); }
.nav-links a.is-active { padding-left: 26px; }
.nav-links a.is-active::before { transform: translateY(-50%) scale(1); background: var(--amber); }

/* logo: aperture mark spins to settle on hover ---------------------------- */
.logo .logo-mark { transition: transform 700ms cubic-bezier(.34,1.4,.5,1); transform-origin: center; }
.logo:hover .logo-mark { transform: rotate(180deg); }

/* CTA: clip a recurring sheen sweep -------------------------------------- */
.nav-right .btn-accent { position: relative; overflow: hidden; }
.nav-right .btn-accent::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -70%; width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* staggered entrance for rail items on load */
  @keyframes rail-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .nav .logo,
  .nav-links a,
  .nav-right > * { animation: rail-in 560ms cubic-bezier(.2,.7,.2,1) both; }
  .nav .logo { animation-delay: 40ms; }
  .nav-links a:nth-child(1) { animation-delay: 130ms; }
  .nav-links a:nth-child(2) { animation-delay: 180ms; }
  .nav-links a:nth-child(3) { animation-delay: 230ms; }
  .nav-links a:nth-child(4) { animation-delay: 280ms; }
  .nav-links a:nth-child(5) { animation-delay: 330ms; }
  .nav-links a:nth-child(6) { animation-delay: 380ms; }
  .nav-right > * { animation-delay: 450ms; }

  /* active indicator gives a slow pulse */
  .nav-links a.is-active::before { animation: dot-pulse 2.6s ease-in-out infinite; }
  @keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(90, 60, 240, 0.55); }
    50%      { box-shadow: 0 0 0 5px rgba(90, 60, 240, 0); }
  }

  /* recurring CTA sheen */
  .nav-right .btn-accent::after { animation: cta-sheen 5s ease-in-out infinite; }
  @keyframes cta-sheen { 0%, 16% { left: -70%; } 40%, 100% { left: 135%; } }
}

/* ambient aura drifting behind the rail CTA (desktop rail only) ----------- */
@media (min-width: 1061px) {
  .nav,
  .nav.is-scrolled {
    background:
      radial-gradient(58% 26% at 32% 100%, rgba(90, 60, 240, 0.16), transparent 72%) no-repeat,
      var(--surface);
    background-size: 180% 280px, auto;
    background-position: 30% 100%, 0 0;
  }
  @media (prefers-reduced-motion: no-preference) {
    .nav { animation: rail-aura 9s ease-in-out infinite alternate; }
    @keyframes rail-aura {
      from { background-position: 16% 100%, 0 0; }
      to   { background-position: 48% 100%, 0 0; }
    }
  }
}
