/* ============================================================
   PSEO Builder — "The Ahrefs Pipeline, Decoded"
   Field-report landing page. Builds on tokens.css.
   Builder sub-brand: violet -> indigo color world.
   ============================================================ */

:root {
  /* Accent color world — overridden live by the Tweaks panel.
     Defaults to the Builder gradient (violet -> indigo). */
  --accent-1: #a556f7;
  --accent-2: #6366f1;
  --accent-grad: linear-gradient(96deg, #a556f7 0%, #6366f1 100%);
  --accent-solid: #7c3aed;
  --accent-glow: rgba(124, 58, 237, 0.5);
  --accent-soft: rgba(124, 58, 237, 0.10);
  --accent-line: rgba(124, 58, 237, 0.28);
  --cta-shadow: 0 -1px 70.8px -16px rgba(167, 139, 250, 1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--surface-0);
  color: var(--ink-900);
  overflow-x: hidden;
}
::selection { background: var(--accent-soft); color: var(--accent-solid); }

.wrap { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: var(--container-wide); margin: 0 auto; padding-inline: var(--gutter); }

.gr { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.mono { font-family: var(--font-mono); }

/* Shared eyebrow + part labels --------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  color: var(--ink-700); font: var(--type-label);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent-grad); }
.eyebrow.on-dark { color: rgba(255,255,255,.78); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); }

.part-label {
  font: var(--type-eyebrow); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-solid);
  display: flex; align-items: center; gap: 12px;
}
.part-label .pnum { font-family: var(--font-mono); color: var(--ink-400); letter-spacing: 0; }
.part-label::after { content: ""; flex: 1; height: 1px; background: var(--line-200); }

.sec-title {
  font: var(--type-display-m); letter-spacing: var(--tracking-display);
  line-height: 1.06; margin: 18px 0 0; max-width: 18ch;
}
.sec-intro { font: var(--type-body-l); color: var(--ink-500); margin: 18px 0 0; max-width: 60ch; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-100);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.footer .brand-logo.white { height: 34px; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent-grad);
  display: grid; place-items: center; color: #fff; font: 700 15px/1 var(--font-display);
  box-shadow: 0 4px 14px -4px var(--accent-glow);
}
.brand .wm { font: 700 18px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink-900); }
.brand .wm b { font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font: 500 14px/1 var(--font-sans); color: var(--ink-500); text-decoration: none;
  padding: 9px 14px; border-radius: var(--radius-md); transition: all .18s var(--ease-standard);
}
.nav-links a:hover { color: var(--ink-900); background: var(--surface-100); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-url { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-400); text-decoration: none; }
.nav-url b { color: var(--ink-700); font-weight: 600; }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--accent-grad); width: 0; transition: width .1s linear; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 12px 22px; border-radius: var(--radius-pill);
  font: 600 14px/1 var(--font-sans); border: 0; cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease-spring), box-shadow .2s var(--ease-standard), background .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: var(--cta-shadow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary { background: var(--surface-0); color: var(--ink-900); border: 1px solid var(--line-200); }
.btn-secondary:hover { border-color: var(--ink-300); transform: translateY(-1px); }
.btn-ghost-dark { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.14); }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* CTA with sub-label (the Free Trial cluster) ------------------------------ */
.cta-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cta-stack.center { align-items: center; }
.cta-sub { font: var(--type-caption); color: var(--ink-400); max-width: 42ch; }
.cta-sub.on-dark { color: rgba(255,255,255,.55); }
.cta-sub b { color: var(--ink-700); font-weight: 600; }
.cta-sub.on-dark b { color: rgba(255,255,255,.85); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden; background: var(--ink-1000); color: #fff;
  padding: 92px 0 80px;
}
.hero .glow {
  position: absolute; inset: -20% -10% auto -10%; height: 720px; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 30%, var(--accent-glow), transparent 70%);
  opacity: .55;
}
.hero .dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 28px 28px;
  mask: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent 72%);
  -webkit-mask: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent 72%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font: var(--type-label); color: rgba(255,255,255,.55); margin-bottom: 26px;
}
.hero-meta .dot-sep { width: 4px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.3); }
.hero h1 {
  font: var(--type-display-xl); letter-spacing: var(--tracking-display);
  line-height: 1.02; margin: 0; max-width: 16ch;
}
.hero h1 .gr { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font: var(--type-body-l); color: rgba(255,255,255,.66); max-width: 56ch; margin: 26px 0 0; }
.hero-ctas { display: flex; align-items: flex-start; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-attr {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10);
  font: var(--type-body-s); color: rgba(255,255,255,.5); max-width: 64ch;
  display: flex; gap: 12px; align-items: flex-start;
}
.hero-attr svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; color: rgba(255,255,255,.4); }

/* Hero stat rail */
.hero-stats {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 56px; border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-xl); overflow: hidden; background: rgba(255,255,255,.10);
}
.hero-stats .cell { background: rgba(13,20,33,.6); padding: 26px 28px; }
.hero-stats .v { font: 600 clamp(34px,4vw,52px)/1 var(--font-display); letter-spacing: -0.02em; }
.hero-stats .v .u { font-size: .5em; color: rgba(255,255,255,.5); font-weight: 500; margin-left: 6px; }
.hero-stats .v em { font-style: normal; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .l { font: var(--type-body-s); color: rgba(255,255,255,.6); margin-top: 10px; }

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section { padding: 96px 0; }
.section.tint { background: var(--surface-100); }
.section.dark { background: var(--ink-1000); color: #fff; }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .part-label { justify-content: center; }
.section-head.center .part-label::after { display: none; }
.section-head.center .sec-title, .section-head.center .sec-intro { margin-left: auto; margin-right: auto; }

/* ============================================================
   PART 1 — WHAT JUST HAPPENED + ARCHITECTURE
   ============================================================ */
.lede {
  font: 500 clamp(20px,2vw,26px)/1.5 var(--font-sans); color: var(--ink-700);
  max-width: 30ch; letter-spacing: -0.01em;
}
.lede .gr { font-weight: 600; }
.prose { font: var(--type-body-l); color: var(--ink-500); }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose b { color: var(--ink-900); font-weight: 600; }

.tldr {
  border-left: 3px solid var(--accent-solid); background: var(--accent-soft);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 22px 26px; margin-top: 8px;
}
.tldr .t { font: var(--type-label); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--accent-solid); margin-bottom: 8px; }
.tldr p { font: var(--type-body); color: var(--ink-700); margin: 0; }

.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.arch-card {
  background: var(--surface-0); border: 1px solid var(--line-100); border-radius: var(--radius-xl);
  padding: 26px; box-shadow: var(--shadow-card); transition: transform .2s var(--ease-standard), box-shadow .2s;
}
.arch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-builder); }
.arch-card .ico {
  width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft);
  border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent-solid); margin-bottom: 18px;
}
.arch-card .ico svg { width: 23px; height: 23px; }
.arch-card .k { font: var(--type-label); font-family: var(--font-mono); color: var(--ink-400); margin-bottom: 8px; }
.arch-card h3 { font: var(--type-h3); margin: 0 0 8px; }
.arch-card p { font: var(--type-body-s); color: var(--ink-500); margin: 0; }

/* ============================================================
   INTERACTIVE PIPELINE RUNNER
   ============================================================ */
.runner {
  background: var(--ink-1000); border-radius: var(--radius-2xl); overflow: hidden;
  box-shadow: 0 40px 120px -50px rgba(124,58,237,.6); position: relative;
}
.runner .runner-glow {
  position: absolute; inset: auto -10% -40% -10%; height: 420px; pointer-events: none;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, var(--accent-glow), transparent 70%); opacity: .4;
}
.runner-top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 28px; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; z-index: 2;
}
.runner-top .title { display: flex; align-items: center; gap: 12px; color: #fff; }
.runner-top .title .dot3 { display: flex; gap: 6px; }
.runner-top .title .dot3 i { width: 11px; height: 11px; border-radius: 999px; display: block; }
.runner-top .title .lbl { font: var(--type-h4); }
.runner-top .title .sub { font: var(--type-caption); color: rgba(255,255,255,.5); margin-left: 4px; }
.runner-controls { display: flex; align-items: center; gap: 14px; }
.run-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: var(--radius-pill);
  background: var(--accent-grad); color: #fff; border: 0; cursor: pointer; font: 600 14px/1 var(--font-sans);
  box-shadow: 0 8px 24px -8px var(--accent-glow); transition: transform .18s var(--ease-spring), opacity .2s;
}
.run-btn:hover { transform: translateY(-2px); }
.run-btn.running { background: rgba(255,255,255,.1); box-shadow: none; }
.run-btn svg { width: 16px; height: 16px; }
.runner-clock { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 8px; }
.runner-clock b { color: #fff; font-weight: 600; }

/* progress bar */
.runner-progress { height: 3px; background: rgba(255,255,255,.08); position: relative; z-index: 2; }
.runner-progress i { display: block; height: 100%; width: 0; background: var(--accent-grad); transition: width .5s var(--ease-standard); }

/* stage flow */
.flow { position: relative; z-index: 2; padding: 34px 28px 14px; overflow-x: auto; }
.flow-track { display: flex; align-items: stretch; gap: 0; min-width: max-content; }
.stage {
  position: relative; width: 158px; flex: 0 0 auto; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg); padding: 16px; transition: all .25s var(--ease-standard);
}
.stage:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.stage.active { background: var(--accent-soft); border-color: var(--accent-1); box-shadow: 0 0 0 3px var(--accent-soft), 0 12px 30px -12px var(--accent-glow); transform: translateY(-4px); }
.stage.done { border-color: rgba(255,255,255,.16); }
.stage.selected { border-color: var(--accent-1); }
.stage .s-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.stage .s-num { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.4); }
.stage .s-ico { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.stage.active .s-ico, .stage.done .s-ico { background: var(--accent-grad); }
.stage .s-ico svg { width: 16px; height: 16px; }
.stage h4 { font: var(--type-h4); color: #fff; margin: 0 0 6px; }
.stage .s-art {
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.5);
  display: inline-flex; align-items: center; gap: 5px;
}
.stage .s-art svg { width: 11px; height: 11px; }
.stage.done .s-art { color: var(--accent-1); }
.stage .s-check {
  position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 999px;
  background: var(--success); display: grid; place-items: center; color: #fff;
  opacity: 0; transform: scale(.4); transition: all .3s var(--ease-spring);
}
.stage .s-check svg { width: 13px; height: 13px; }
.stage.done .s-check { opacity: 1; transform: scale(1); }

/* quality gate between stages */
.gate {
  flex: 0 0 auto; width: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  align-self: center; position: relative;
}
.gate .line { position: absolute; top: 50%; left: -2px; right: -2px; height: 2px; background: rgba(255,255,255,.12); z-index: 0; }
.gate .line i { display: block; height: 100%; width: 0; background: var(--accent-grad); transition: width .4s var(--ease-standard); }
.gate .diamond {
  width: 26px; height: 26px; border-radius: 7px; transform: rotate(45deg); z-index: 1;
  background: var(--ink-1000); border: 2px solid rgba(255,255,255,.18); display: grid; place-items: center;
  transition: all .3s var(--ease-standard);
}
.gate .diamond svg { width: 12px; height: 12px; transform: rotate(-45deg); color: rgba(255,255,255,.4); }
.gate.passed .diamond { border-color: var(--success); background: rgba(4,161,70,.18); }
.gate.passed .diamond svg { color: var(--success); }
.gate.passed .line i { width: 100%; }
.gate .g-lbl { position: absolute; bottom: -22px; font: 9px/1 var(--font-mono); color: rgba(255,255,255,.35); white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; }

/* status ticker */
.runner-status {
  position: relative; z-index: 2; margin: 18px 28px 0; padding: 14px 18px; border-radius: var(--radius-md);
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,.8);
  display: flex; align-items: center; gap: 10px; min-height: 46px;
}
.runner-status .cursor { width: 7px; height: 14px; background: var(--accent-1); display: inline-block; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.runner-status .tag { color: var(--accent-1); }

/* detail panel */
.stage-detail {
  position: relative; z-index: 2; margin: 18px 28px 28px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); padding: 24px 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.stage-detail .col .dh {
  font: var(--type-label); text-transform: uppercase; letter-spacing: var(--tracking-wide);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.stage-detail .col.ahrefs .dh { color: rgba(255,255,255,.55); }
.stage-detail .col.builder .dh { color: var(--accent-1); }
.stage-detail .col p { font: var(--type-body-s); line-height: 1.6; color: rgba(255,255,255,.78); margin: 0; }
.stage-detail .col .artifact {
  margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.6);
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm); padding: 9px 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.stage-detail .col .artifact svg { width: 13px; height: 13px; color: var(--accent-1); }
.runner-foot {
  position: relative; z-index: 2; padding: 0 28px 26px; font: var(--type-caption); color: rgba(255,255,255,.4);
  display: flex; align-items: center; gap: 8px;
}
.runner-foot svg { width: 13px; height: 13px; }

/* ============================================================
   PART 2 — FIVE PRINCIPLES
   ============================================================ */
.principles { display: grid; gap: 16px; margin-top: 8px; }
.principle {
  background: var(--surface-0); border: 1px solid var(--line-200); border-radius: var(--radius-xl);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.principle.open { border-color: var(--accent-line); box-shadow: var(--shadow-card); }
.principle .p-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  padding: 26px 28px; cursor: pointer; user-select: none;
}
.principle .p-num {
  font: 600 22px/1 var(--font-display); width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; background: var(--surface-100); color: var(--ink-400);
  transition: all .25s var(--ease-standard);
}
.principle.open .p-num { background: var(--accent-grad); color: #fff; }
.principle .p-title { font: var(--type-h3); color: var(--ink-900); }
.principle .p-toggle { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-200); display: grid; place-items: center; color: var(--ink-400); transition: all .25s; }
.principle.open .p-toggle { transform: rotate(45deg); border-color: var(--accent-solid); color: var(--accent-solid); }
.principle .p-toggle svg { width: 16px; height: 16px; }
.principle .p-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-standard); }
.principle.open .p-body { max-height: 460px; }
.principle .p-body-inner { padding: 0 28px 28px 102px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.principle .pb-col .lab { font: var(--type-label); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.principle .pb-col.problem .lab { color: var(--ink-400); }
.principle .pb-col.solution .lab { color: var(--accent-solid); }
.principle .pb-col p { font: var(--type-body); color: var(--ink-500); margin: 0; line-height: 1.55; }
.principle .pb-col.solution { background: var(--accent-soft); border-radius: var(--radius-md); padding: 18px 20px; margin-top: -18px; }
.principle .pb-col.solution p { color: var(--ink-700); }

/* ============================================================
   PART 3 — THE GAP
   ============================================================ */
.gap-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.checklist { display: grid; gap: 2px; }
.checklist .ci {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line-100);
}
.checklist .ci:first-child { padding-top: 0; }
.checklist .ci .mk {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; border: 1.5px solid var(--line-300);
  display: grid; place-items: center; color: var(--ink-300); margin-top: 1px;
}
.checklist .ci .mk svg { width: 14px; height: 14px; }
.checklist .ci p { font: var(--type-body); color: var(--ink-700); margin: 0; }
.gap-aside {
  background: var(--ink-1000); color: #fff; border-radius: var(--radius-2xl); padding: 34px; position: relative; overflow: hidden;
  position: sticky; top: 96px;
}
.gap-aside .glow { position: absolute; inset: -40% -20% auto auto; width: 360px; height: 300px; background: radial-gradient(ellipse, var(--accent-glow), transparent 65%); opacity: .5; pointer-events: none; }
.gap-aside h3 { font: var(--type-h2); margin: 0 0 8px; position: relative; letter-spacing: var(--tracking-tight); }
.gap-aside .sub { font: var(--type-body-s); color: rgba(255,255,255,.6); margin: 0 0 24px; position: relative; }
.option { position: relative; display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.option .on { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 999px; background: var(--accent-grad); display: grid; place-items: center; font: 600 13px/1 var(--font-sans); color: #fff; }
.option h4 { font: var(--type-h4); margin: 0 0 4px; color: #fff; }
.option p { font: var(--type-body-s); color: rgba(255,255,255,.62); margin: 0; }
.option.hl h4 .gr { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================
   PART 4 — COMPARISON (centerpiece)
   ============================================================ */
.compare { margin-top: 8px; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line-200); background: var(--surface-0); }
.compare-head { display: grid; grid-template-columns: 1.1fr 1fr 1.15fr; }
.compare-head .ch { padding: 26px 28px; }
.compare-head .ch.crit { background: var(--surface-100); }
.compare-head .ch.inhouse { background: var(--surface-50); border-left: 1px solid var(--line-200); }
.compare-head .ch.builder {
  background: var(--ink-1000); color: #fff; position: relative; overflow: hidden;
}
.compare-head .ch.builder .gl { position: absolute; inset: -60% -20% auto auto; width: 320px; height: 260px; background: radial-gradient(ellipse, var(--accent-glow), transparent 65%); opacity:.6; pointer-events:none; }
.compare-head .label { font: var(--type-label); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--ink-400); }
.compare-head .ch.builder .label { color: rgba(255,255,255,.6); position: relative; }
.compare-head .nm { font: var(--type-h3); margin-top: 6px; color: var(--ink-900); position: relative; }
.compare-head .ch.builder .nm { color: #fff; }
.compare-head .ch.builder .nm .gr { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.compare-head .tagline { font: var(--type-body-s); color: var(--ink-500); margin-top: 6px; }
.compare-head .ch.builder .tagline { color: rgba(255,255,255,.65); position: relative; }

.crow { display: grid; grid-template-columns: 1.1fr 1fr 1.15fr; border-top: 1px solid var(--line-100); transition: background .15s; }
.crow:hover { background: var(--surface-50); }
.crow .cell { padding: 20px 28px; display: flex; align-items: flex-start; gap: 10px; }
.crow .cell.crit { font: 600 15px/1.4 var(--font-sans); color: var(--ink-900); background: var(--surface-100); align-items: center; }
.crow:hover .cell.crit { background: var(--surface-150); }
.crow .cell.inhouse { border-left: 1px solid var(--line-100); color: var(--ink-500); font: var(--type-body-s); line-height: 1.5; }
.crow .cell.builder { border-left: 1px solid var(--accent-line); color: var(--ink-700); font: var(--type-body-s); line-height: 1.5; background: var(--accent-soft); }
.crow .cell .ic { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.crow .cell.inhouse .ic { color: var(--ink-300); }
.crow .cell.builder .ic { color: var(--accent-solid); }
.crow .cell.builder b { color: var(--accent-solid); font-weight: 600; }

.quote-band {
  margin-top: 40px; padding: 44px; border-radius: var(--radius-2xl); text-align: center;
  background: var(--surface-0); border: 1px solid var(--line-200); box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.quote-band .qm { font: 600 80px/.6 var(--font-display); color: var(--accent-soft); position: absolute; top: 30px; left: 40px; }
.quote-band blockquote { font: 500 clamp(22px,2.6vw,32px)/1.35 var(--font-display); letter-spacing: -0.01em; color: var(--ink-900); margin: 0 auto; max-width: 24ch; position: relative; }
.quote-band cite { display: block; margin-top: 20px; font: var(--type-body-s); font-style: normal; color: var(--ink-500); }
.quote-band cite b { color: var(--ink-900); font-weight: 600; }

/* ============================================================
   PART 5 — BEYOND REPLICATION
   ============================================================ */
.beyond { display: grid; gap: 18px; margin-top: 8px; }
.beyond-row {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 28px;
  background: var(--surface-0); border: 1px solid var(--line-100); border-radius: var(--radius-xl);
  padding: 28px 32px; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s;
}
.beyond-row:hover { transform: translateX(4px); box-shadow: var(--shadow-builder); }
.beyond-row .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-grad); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px -10px var(--accent-glow); }
.beyond-row .ico svg { width: 26px; height: 26px; }
.beyond-row .txt h3 { font: var(--type-h3); margin: 0 0 6px; }
.beyond-row .txt p { font: var(--type-body); color: var(--ink-500); margin: 0; max-width: 70ch; }
.beyond-row .tagchip {
  font: var(--type-label); font-family: var(--font-mono); color: var(--accent-solid); background: var(--accent-soft);
  border: 1px solid var(--accent-line); padding: 7px 13px; border-radius: var(--radius-pill); white-space: nowrap;
}

/* ============================================================
   PART 6 — THREE PATHS
   ============================================================ */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; align-items: stretch; }
.path {
  display: flex; flex-direction: column; border-radius: var(--radius-2xl); padding: 32px;
  border: 1px solid var(--line-200); background: var(--surface-0); box-shadow: var(--shadow-card);
}
.path.featured { background: var(--ink-1000); color: #fff; border-color: transparent; box-shadow: var(--shadow-card-hover); position: relative; overflow: hidden; }
.path.featured .pglow { position: absolute; inset: -40% -20% auto auto; width: 340px; height: 280px; background: radial-gradient(ellipse, var(--accent-glow), transparent 60%); opacity: .55; pointer-events: none; }
.path .p-no { font-family: var(--font-mono); font-size: 12px; color: var(--ink-400); position: relative; }
.path.featured .p-no { color: rgba(255,255,255,.5); }
.path h3 { font: var(--type-h2); margin: 10px 0 0; letter-spacing: var(--tracking-tight); position: relative; }
.path.featured h3 .gr { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.path .recommend { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--accent-grad); color: #fff; font: 600 11px/1 var(--font-sans); text-transform: uppercase; letter-spacing: var(--tracking-wide); align-self: flex-start; position: relative; }
.path .pblock { margin-top: 22px; position: relative; }
.path .pblock .pl { font: var(--type-label); text-transform: uppercase; letter-spacing: var(--tracking-wide); display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.path .pblock.good .pl { color: var(--success); }
.path .pblock.bad .pl { color: var(--danger); }
.path.featured .pblock.bad .pl { color: #ff8aa3; }
.path .pblock p { font: var(--type-body-s); line-height: 1.55; color: var(--ink-500); margin: 0; }
.path.featured .pblock p { color: rgba(255,255,255,.72); }
.path .pblock .pl svg { width: 15px; height: 15px; }
.path .p-cta { margin-top: auto; padding-top: 26px; position: relative; }

/* ============================================================
   NEXT STEPS / CTA BANNER
   ============================================================ */
.next { background: var(--ink-1000); color: #fff; position: relative; overflow: hidden; padding: 100px 0; }
.next .glow { position: absolute; inset: -30% -10% auto -10%; height: 620px; background: radial-gradient(ellipse 55% 60% at 50% 35%, var(--accent-glow), transparent 70%); opacity: .5; pointer-events: none; }
.next-inner { position: relative; z-index: 1; }
.next h2 { font: var(--type-display-l); letter-spacing: var(--tracking-display); line-height: 1.04; margin: 18px 0 0; max-width: 16ch; }
.next h2 .gr { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.next-sub { font: var(--type-body-l); color: rgba(255,255,255,.66); max-width: 54ch; margin: 22px 0 0; }
.next-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.way { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-xl); padding: 26px; transition: all .2s; }
.way:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); transform: translateY(-3px); }
.way .wn { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-grad); display: grid; place-items: center; font: 600 15px/1 var(--font-display); color: #fff; margin-bottom: 16px; }
.way h4 { font: var(--type-h4); color: #fff; margin: 0 0 8px; }
.way p { font: var(--type-body-s); color: rgba(255,255,255,.6); margin: 0; line-height: 1.55; }
.next-cta { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.next-cta .trust { font: var(--type-body-s); color: rgba(255,255,255,.45); }
.next-cta .trust span { margin: 0 8px; color: rgba(255,255,255,.2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #060c16; color: rgba(255,255,255,.6); padding: 56px 0 32px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .brand .wm { color: #fff; }
.footer .fdesc { font: var(--type-body-s); color: rgba(255,255,255,.5); max-width: 38ch; margin: 16px 0 0; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links .col h5 { font: var(--type-h4); color: #fff; margin: 0 0 14px; }
.footer-links .col a { display: block; font: 400 14px/1.2 var(--font-sans); color: rgba(255,255,255,.55); text-decoration: none; padding: 5px 0; }
.footer-links .col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font: var(--type-caption); color: rgba(255,255,255,.4); }
.footer-bottom .nl { font-family: var(--font-mono); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .arch-grid { grid-template-columns: 1fr 1fr; }
  .gap-grid { grid-template-columns: 1fr; gap: 36px; }
  .gap-aside { position: static; }
  .paths { grid-template-columns: 1fr; }
  .next-ways { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .principle .p-body-inner { grid-template-columns: 1fr; padding-left: 28px; }
  .stage-detail { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; }
  .compare-head, .crow { grid-template-columns: 1fr; }
  .compare-head .ch, .crow .cell { border-left: 0 !important; }
  .crow .cell.crit { background: var(--surface-150); }
  .beyond-row { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .footer-top { flex-direction: column; }
  .nav-url { display: none; }
  .two-col { grid-template-columns: 1fr !important; }
}

/* Two-column prose block used in Part 1/3 intros */
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.stack-lg > * + * { margin-top: 28px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-standard), transform .7s var(--ease-standard); }
.reveal.in { opacity: 1; transform: none; }

/* Tweak: hide artifact filename chips on pipeline stages */
body.hide-artifacts .stage .s-art { display: none; }
body.hide-artifacts .stage h4 { margin-bottom: 0; }
