/* ============================================================
   THEFA Core — Homepage section styles
   Visual language derived from the official logo:
   command prompt `>_` · ascending block/stair motif · execution
   nodes · thin connector lines · verified receipt cards
   ============================================================ */

/* ================= HERO ================= */

.hero {
  position: relative;
  background: var(--ink-900);
  padding-top: clamp(44px, 6vw, 84px);
  padding-bottom: clamp(34px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1240px 580px at 72% 2%, rgba(214, 190, 136, 0.075), transparent 64%),
    radial-gradient(860px 480px at 2% 100%, rgba(214, 190, 136, 0.035), transparent 68%),
    linear-gradient(180deg, #21201D 0%, #1C1B19 58%, #1B1A18 100%);
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 132px 132px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 68%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
}
@media (min-width: 1081px) {
  /* nudge the copy up slightly so the eyebrow still sits near the top
     of the visual rather than floating in the vertical middle */
  .hero__copy { margin-top: -34px; }
}
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
  .hero__copy { margin-top: 0; }
}

.hero__copy .eyebrow { margin-bottom: 22px; }
.hero__h1 { font-size: var(--fs-display); line-height: var(--lh-tight); }
.hero__h1 .line { display: block; }
/* Primary message: "검증된 실행" carries the logo's own metallic gold.
   The solid colour is declared first and the transparent fill is applied
   only inside @supports, so a browser without background-clip:text shows
   champagne type instead of an invisible word. */
.hero__h1 em {
  font-style: normal;
  color: var(--gold-text);
  padding-right: 0.06em;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__h1 em {
    background: var(--gold-text-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
/* Forced-colors mode throws away the gradient; keep the word visible. */
@media (forced-colors: active) {
  .hero__h1 em { -webkit-text-fill-color: currentColor; background: none; }
}
.hero__sub {
  margin-top: 26px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--tx-on-dark);
  font-weight: 550;
  letter-spacing: -0.012em;
}
.hero__sub .line { display: block; }
.hero__body {
  margin-top: 18px;
  max-width: 52ch;
  font-size: var(--fs-small);
}
.hero__cta { margin-top: 32px; }
.hero__micro { margin-top: 22px; max-width: 46ch; }

/* hero stat-free trust strip */
.trust-strip {
  margin-top: clamp(30px, 3.4vw, 46px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.trust-strip__item {
  background: var(--ink-800);
  padding: 16px 18px;
}
.trust-strip__item dt {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: 0;
  text-transform: none;
  color: var(--tx-on-dark-dim);
  margin-bottom: 7px;
}
.trust-strip__item dd {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--tx-on-dark);
}
@media (max-width: 760px) {
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .trust-strip { grid-template-columns: minmax(0, 1fr); }
}

/* --- flow chip --- */
.flowchip {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.flowchip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.04em;
  color: var(--tx-on-dark-muted);
  background: rgba(255, 255, 255, 0.028);
}
.flowchip li[data-on="true"] {
  border-color: var(--ink-line-strong);
  color: var(--tx-on-dark);
  background: rgba(255, 255, 255, 0.035);
}
.flowchip li:last-child {
  border-color: var(--gold-edge-strong);
  color: var(--gold-text);
}
.flowchip li::after {
  content: "→";
  color: var(--tx-on-dark-dim);
  font-size: var(--fs-meta);
}
.flowchip li:last-child::after { display: none; }
@media (max-width: 620px) {
  .flowchip li { font-size: var(--fs-meta); padding: 6px 10px; }
}

/* --- hero visual: shared chrome --- */
.hero__visual { min-width: 0; }

.pane {
  background: var(--ink-850);
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.pane__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.028);
}
.pane__dots { display: flex; gap: 6px; flex: none; }
.pane__dots i { width: 9px; height: 9px; border-radius: 50%; background: #3A3A3A; display: block; }
.pane__title {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-on-dark-dim);
}
.pane__bar .badge { margin-left: auto; }
.pane__body { padding: clamp(16px, 2vw, 22px); }

/* command line */
.cmd {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-ctl);
  background: var(--ink-950);
  font-size: var(--fs-small);
}
.cmd__prompt {
  font-family: var(--font-mono);
  color: var(--gold-text);
  font-weight: 700;
  flex: none;
  line-height: 1.6;
}
.cmd__text { color: var(--tx-on-dark); line-height: 1.6; }
.cmd__caret {
  display: inline-block;
  width: 7px; height: 1.05em;
  vertical-align: -0.14em;
  background: var(--gold);
  margin-left: 2px;
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cmd__caret { animation: none; } }

/* work unit list */
.units { margin-top: 14px; display: grid; gap: 8px; }
.unit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, 0.026);
  position: relative;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.unit[data-state="running"] { border-color: var(--gold-edge-strong); background: var(--gold-wash); }
.unit[data-state="verified"] { border-color: rgba(95, 169, 122, 0.34); }
.unit__id {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--tx-on-dark-dim);
  letter-spacing: 0.05em;
}
.unit__title { font-size: var(--fs-small); font-weight: 600; }
.unit__meta { font-size: var(--fs-caption); color: var(--tx-on-dark-dim); font-family: var(--font-mono); }

/* the ascending stair motif — used as a progress/verification marker */
.stair { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; flex: none; }
.stair i { width: 4px; background: var(--ink-line-strong); border-radius: 1px; display: block; }
.stair i:nth-child(1) { height: 5px; }
.stair i:nth-child(2) { height: 9px; }
.stair i:nth-child(3) { height: 14px; }
.unit[data-state="running"] .stair i:nth-child(1),
.unit[data-state="running"] .stair i:nth-child(2) { background: var(--gold); }
.unit[data-state="running"] .stair i:nth-child(3) { background: var(--ink-line-strong); }
.unit[data-state="verified"] .stair i { background: var(--state-ok); }

/* receipt mini card */
.receipt-mini {
  margin-top: 14px;
  border: 1px dashed var(--ink-line-strong);
  border-radius: var(--r-ctl);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.014);
}
.receipt-mini__label {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.receipt-mini__text { font-size: var(--fs-caption); color: var(--tx-on-dark-muted); }

/* pipeline variant */
.pipe { display: grid; gap: 7px; }
.pipe__row {
  display: grid;
  grid-template-columns: 34px auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, 0.026);
}
.pipe__row[data-state="active"] { border-color: var(--gold-edge-strong); background: var(--gold-wash); }
.pipe__row[data-state="done"] { border-color: rgba(95, 169, 122, 0.3); }
.pipe__no { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--tx-on-dark-dim); }
.pipe__en { font-family: var(--font-mono); font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0.05em; color: var(--tx-on-dark); min-width: 78px; }
.pipe__row[data-state="active"] .pipe__en { color: var(--gold-text); }
.pipe__note { font-size: var(--fs-caption); color: var(--tx-on-dark-dim); text-align: right; }

/* ================= WHY ================= */

.prob-card { display: grid; gap: 10px; align-content: start; }
.prob-card__n {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  color: var(--gold-text);
}
.prob-card h3 { font-size: var(--fs-h4); }
.prob-card p { font-size: var(--fs-small); color: var(--tx-on-light-muted); }
.prob-card__detail {
  font-size: var(--fs-caption);
  color: var(--tx-on-light-dim);
  padding-top: 10px;
  border-top: 1px solid var(--paper-line);
}

.closing-line {
  margin-top: clamp(26px, 3vw, 40px);
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: var(--paper-100);
  border-radius: 0 var(--r-ctl) var(--r-ctl) 0;
  font-weight: 600;
  font-size: var(--fs-lead);
  max-width: 62ch;
}

/* ================= CORE FLOW ================= */

.flow-rail {
  position: relative;
  margin-bottom: 26px;
  padding-top: 30px;
}
.flow-rail__line {
  position: absolute;
  left: 0; right: 0; top: 8px;
  height: 1px;
  background: var(--ink-line-strong);
}
.flow-rail__fill {
  position: absolute;
  left: 0; top: 8px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 1200ms var(--ease-out);
}
.flow-rail__nodes {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.flow-rail__nodes li {
  position: relative;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tx-on-dark-dim);
  text-align: center;
}
.flow-rail__nodes li::before {
  content: "";
  position: absolute;
  top: 3px; left: 50%;
  transform: translateX(-50%);
  width: 11px; height: 11px;
  border: 1px solid var(--ink-line-strong);
  border-radius: 3px;
  background: var(--ink-800);
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.flow-rail__nodes li[data-on="true"] { color: var(--gold-text); }
.flow-rail__nodes li[data-on="true"]::before { border-color: var(--gold-text); background: var(--gold); }

.flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.flow-grid .stage {
  background: var(--ink-700);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  padding: clamp(18px, 2vw, 24px);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.flow-grid .stage[data-on="true"] { border-color: var(--gold-edge); background: #191813; }
/* wrap, or the mono English tag collides with a long Korean/translated
   stage name once the card is in a two-up or one-up grid */
.stage__top { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; }
.stage__no { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--gold-text); letter-spacing: 0.1em; flex: none; }
.stage__en {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tx-on-dark-dim);
  margin-left: auto;
}
.stage__ko { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -0.02em; min-width: 0; }
.stage__body { font-size: var(--fs-small); color: var(--tx-on-dark-muted); }
.stage__human {
  font-size: var(--fs-caption);
  color: var(--tx-on-dark-dim);
  padding-top: 11px;
  border-top: 1px solid var(--ink-line);
}

.flow-statement {
  margin-top: clamp(26px, 3vw, 40px);
  padding: 20px 24px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  background: var(--ink-850);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--tx-on-dark-muted);
  overflow-wrap: anywhere;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.flow-statement strong { color: var(--gold-text); font-weight: 600; }

@media (max-width: 1080px) {
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The horizontal rail needs ~150px per node to keep "WORK UNIT" on one
   line. Below 1080 that no longer holds and the eight labels used to
   collide, so the rail becomes a vertical timeline there — not at 860,
   where it was already broken for 220px of viewport width. */
@media (max-width: 1080px) {
  .flow-rail { padding-top: 0; margin-bottom: 20px; }
  .flow-rail__line, .flow-rail__fill { display: none; }
  .flow-rail__nodes {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-left: 1px solid var(--ink-line-strong);
    margin-left: 5px;
    padding-left: 18px;
  }
  .flow-rail__nodes li {
    text-align: left;
    padding: 7px 0;
  }
  .flow-rail__nodes li::before {
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
  }
}
@media (max-width: 860px) {
  .flow-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ================= INTERACTIVE DEMO ================= */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
}
@media (max-width: 1024px) { .demo { grid-template-columns: minmax(0, 1fr); } }

.demo__controls {
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  background: var(--ink-900);
  padding: clamp(16px, 2vw, 22px);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
@media (max-width: 1024px) { .demo__controls { position: static; } }

.demo-request {
  border: 1px solid var(--gold-edge);
  border-radius: var(--r-ctl);
  background: var(--gold-wash);
  padding: 14px;
  margin-bottom: 16px;
}
.demo-request__label {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--tx-on-dark-dim);
  display: block;
  margin-bottom: 8px;
}
.demo-request p { font-size: var(--fs-small); font-weight: 600; line-height: 1.6; }

.demo-steps { display: grid; gap: 5px; }
.demo-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--r-ctl);
  text-align: left;
  color: var(--tx-on-dark-muted);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.demo-step:hover { background: rgba(255, 255, 255, 0.04); color: var(--tx-on-dark); }
.demo-step[aria-current="step"] {
  border-color: var(--gold-edge);
  background: var(--gold-wash-strong);
  color: var(--tx-on-dark);
}
.demo-step__n {
  width: 26px; height: 26px;
  border: 1px solid var(--ink-line-strong);
  border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: var(--fs-meta); font-weight: 600;
  color: var(--tx-on-dark-dim);
  flex: none;
}
.demo-step[aria-current="step"] .demo-step__n { border-color: var(--gold-text); color: var(--gold-text); }
.demo-step[data-done="true"] .demo-step__n { border-color: rgba(95, 169, 122, 0.5); color: #8FD3A8; }
.demo-step__label { font-size: var(--fs-small); font-weight: 600; }
.demo-step__en {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-on-dark-dim);
  display: block;
  margin-top: 2px;
}
.demo-step__tick { opacity: 0; color: #8FD3A8; font-size: 13px; }
.demo-step[data-done="true"] .demo-step__tick { opacity: 1; }

.demo__player {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-line);
  display: grid;
  gap: 12px;
}
.demo__progress {
  height: 2px;
  background: var(--ink-line);
  border-radius: 2px;
  overflow: hidden;
}
.demo__progress i {
  display: block;
  height: 100%;
  background: var(--gold);
  width: 0;
  transition: width 420ms var(--ease-out);
}
.demo__player-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.demo__count { font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: 600; color: var(--tx-on-dark-dim); }

.demo__stage {
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-card);
  background: var(--ink-850);
  min-height: 420px;
  overflow: hidden;
}
.demo__stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-line);
  flex-wrap: wrap;
}
.demo__stage-head .badge { margin-left: auto; }
.demo__stage-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-text);
}
.demo-panel { padding: clamp(18px, 2.4vw, 28px); }
.demo-panel__head { margin-bottom: 18px; }
.demo-panel__head h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.demo-panel__summary { font-size: var(--fs-lead); color: var(--tx-on-dark); font-weight: 600; }
.demo-panel__detail {
  margin-top: 12px;
  font-size: var(--fs-small);
  color: var(--tx-on-dark-muted);
  max-width: 68ch;
}
.demo-panel__foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-line);
  font-size: var(--fs-caption);
  color: var(--tx-on-dark-dim);
}

/* demo payload blocks */
.kv { display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--r-ctl); overflow: hidden; }
.kv__row { display: grid; grid-template-columns: minmax(96px, 0.5fr) minmax(0, 1.5fr); gap: 14px; padding: 11px 14px; background: var(--ink-800); }
.kv__k {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--tx-on-dark-dim);
}
.kv__v { font-size: var(--fs-small); color: var(--tx-on-dark); }
@media (max-width: 480px) { .kv__row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 13px;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-ctl);
  font-size: var(--fs-small);
  color: var(--tx-on-dark);
  background: rgba(255, 255, 255, 0.028);
}
.chip--gold { border-color: var(--gold-edge); color: var(--gold-text); }

.worker-list { display: grid; gap: 8px; }
.worker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, 0.024);
}
.worker-row__name { font-weight: 600; font-size: var(--fs-small); }
.worker-row__role { font-size: var(--fs-caption); color: var(--tx-on-dark-dim); display: block; margin-top: 2px; }

.units-table { display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--r-ctl); overflow: hidden; }
.unit-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--ink-800);
}
.unit-row__id { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.05em; color: var(--gold-text); }
.unit-row__title { font-size: var(--fs-small); font-weight: 600; display: block; }
.unit-row__sub { display: block; font-size: var(--fs-caption); color: var(--tx-on-dark-dim); font-family: var(--font-sans);
  font-weight: 600; margin-top: 3px; }
@media (max-width: 560px) {
  .unit-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .unit-row__id { order: -1; }
}

.receipt-trail-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ink-line); }

.stream { display: grid; gap: 0; border-left: 1px solid var(--ink-line-strong); margin-left: 6px; }
.stream li { position: relative; padding: 0 0 16px 20px; }
.stream li::before {
  content: "";
  position: absolute; left: -4.5px; top: 7px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--ink-line-strong);
}
.stream li[data-state="done"]::before { background: var(--state-ok); }
.stream li[data-state="running"]::before { background: var(--gold); }
.stream li[data-state="waiting"]::before { background: var(--state-wait); }
.stream__t { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--tx-on-dark-dim); margin-right: 10px; }
.stream__x { font-size: var(--fs-small); color: var(--tx-on-dark); }

.qa-list { display: grid; gap: 8px; }
.qa-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ink-line);
  border-left-width: 2px;
  border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, 0.024);
}
.qa-row[data-state="verified"] { border-left-color: var(--state-ok); }
.qa-row[data-state="qa"] { border-left-color: var(--gold-soft); }
.qa-row[data-state="waiting"] { border-left-color: var(--state-wait); }
.qa-row__name { font-size: var(--fs-small); font-weight: 600; }
.qa-row__scope { font-size: var(--fs-caption); color: var(--tx-on-dark-dim); display: block; margin-top: 2px; }

/* ================= BEFORE / AFTER ================= */

.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 820px) { .ba-grid { grid-template-columns: minmax(0, 1fr); } }

.ba-card { border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--paper-line); background: var(--paper-000); }
.ba-card[data-kind="after"] { border-color: var(--charcoal); background: var(--ink-800); color: var(--tx-on-dark); }
.ba-card__label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: 0;
  text-transform: none;
  color: var(--tx-on-light-dim);
  display: block;
  margin-bottom: 18px;
}
.ba-card[data-kind="after"] .ba-card__label { color: var(--gold-text); }
.ba-steps { display: grid; gap: 0; }
.ba-steps li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--paper-line);
  font-size: var(--fs-small);
}
.ba-card[data-kind="after"] .ba-steps li { border-bottom-color: var(--ink-line); }
.ba-steps li:last-child { border-bottom: 0; }
.ba-steps__mark {
  width: 22px; height: 22px;
  border: 1px solid var(--paper-line-strong);
  border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: var(--fs-meta);
  color: var(--tx-on-light-dim);
}
.ba-card[data-kind="after"] .ba-steps__mark { border-color: var(--gold-edge-strong); color: var(--gold-text); }
.ba-card__note { margin-top: 18px; font-size: var(--fs-caption); color: var(--tx-on-light-muted); }
.ba-card[data-kind="after"] .ba-card__note { color: var(--tx-on-dark-muted); }

/* ================= ORCHESTRATION ================= */

.orch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1024px) { .orch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .orch-grid { grid-template-columns: minmax(0, 1fr); } }

.orch-card {
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  background: var(--ink-700);
  padding: 20px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.orch-card__tag {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-text);
}
.orch-card__title { font-family: var(--font-mono); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.03em; }
.orch-card__body { font-size: var(--fs-caption); color: var(--tx-on-dark-muted); }

.hub {
  margin-top: 22px;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-card);
  background: var(--ink-900);
  padding: clamp(18px, 2.2vw, 26px);
  display: grid;
  gap: 16px;
}
.hub__core {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--gold-edge);
  border-radius: var(--r-ctl);
  background: var(--gold-wash);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.06em;
  color: var(--gold-text);
  width: fit-content;
}
.hub__principle { font-size: var(--fs-lead); font-weight: 600; }

/* ================= MODES ================= */

.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
@media (max-width: 900px) { .mode-grid { grid-template-columns: minmax(0, 1fr); } }

.mode-card {
  border: 1px solid var(--paper-line);
  border-radius: var(--r-card);
  background: var(--paper-000);
  padding: clamp(20px, 2.4vw, 28px);
  display: grid;
  gap: 12px;
  align-content: start;
}
.mode-card__id {
  font-family: var(--font-mono);
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--charcoal);
}
.mode-card__ko { font-size: var(--fs-small); font-weight: 600; color: var(--gold-on-light); }
.mode-card__body { font-size: var(--fs-small); color: var(--tx-on-light-muted); }
.mode-card__meta { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--paper-line); }
.mode-card__meta div { font-size: var(--fs-caption); color: var(--tx-on-light-dim); }
.mode-card__meta span { color: var(--charcoal); font-weight: 600; }

/* ================= VERIFY ================= */

.neq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
@media (max-width: 900px) { .neq-grid { grid-template-columns: minmax(0, 1fr); } }

.neq-card {
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-card);
  background: var(--ink-700);
  padding: clamp(18px, 2.2vw, 26px);
  display: grid;
  gap: 14px;
}
.neq-card__en {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tx-on-dark);
  overflow-wrap: anywhere;
}
.neq-card__en s { text-decoration-color: var(--state-wait); text-decoration-thickness: 2px; }
.neq-card__ko { font-size: var(--fs-h4); font-weight: 700; color: var(--gold-text); }
.neq-card__body { font-size: var(--fs-small); color: var(--tx-on-dark-muted); }

.receipt-pane {
  margin-top: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-card);
  background: var(--ink-900);
  overflow: hidden;
}
.receipt-pane__head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink-line);
}
.receipt-pane__title { font-family: var(--font-sans);
  font-weight: 600; font-size: var(--fs-caption); letter-spacing: 0; text-transform: none; color: var(--gold-text); }
.receipt-pane__sub { font-size: var(--fs-caption); color: var(--tx-on-dark-dim); }
.receipt-pane__head .badge { margin-left: auto; }
.receipt-pane__body { padding: clamp(16px, 2vw, 22px); display: grid; gap: 18px; }
@media (min-width: 860px) { .receipt-pane__body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }

.receipt-trail { display: grid; gap: 0; align-self: start; }
.receipt-trail li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  font-size: var(--fs-small);
  color: var(--tx-on-dark-muted);
  position: relative;
}
.receipt-trail li::before {
  content: "";
  width: 10px; height: 10px; border-radius: 3px;
  border: 1px solid var(--ink-line-strong);
}
.receipt-trail li[data-state="done"]::before { background: var(--state-ok); border-color: var(--state-ok); }
.receipt-trail li[data-state="active"]::before { background: var(--gold); border-color: var(--gold-text); }
.receipt-trail li[data-state="active"] { color: var(--gold-text); font-weight: 600; }

/* ================= CONTINUITY ================= */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--ink-line);
}
@media (max-width: 1100px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .timeline { grid-template-columns: minmax(0, 1fr); } }

.timeline li {
  background: var(--ink-800);
  padding: clamp(18px, 2.2vw, 26px);
  display: grid;
  gap: 10px;
  align-content: start;
  border-top: 2px solid var(--ink-line-strong);
}
.timeline li[data-state="running"] { border-top-color: var(--gold-text); }
.timeline li[data-state="waiting"] { border-top-color: var(--state-wait); }
.timeline li[data-state="qa"] { border-top-color: var(--gold-soft); }
.timeline li[data-state="verified"] { border-top-color: var(--state-ok); }
.timeline__id { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.08em; color: var(--tx-on-dark-dim); overflow-wrap: anywhere; }
.timeline li[data-state="verified"] .timeline__id { color: #8FD3A8; }
.timeline__ko { font-size: var(--fs-h4); font-weight: 700; }
.timeline__body { font-size: var(--fs-small); color: var(--tx-on-dark-muted); }

.callout {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--gold-edge);
  border-radius: var(--r-card);
  background: var(--gold-wash);
}
.callout__mark {
  font-family: var(--font-mono);
  color: var(--gold-text);
  font-weight: 700;
  flex: none;
  line-height: 1.6;
}
.callout p { font-size: var(--fs-small); font-weight: 600; }
.callout .caption { margin-top: 6px; }

/* ================= RESOURCE ================= */

.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .res-grid { grid-template-columns: minmax(0, 1fr); } }

.res-card {
  border: 1px solid var(--paper-line);
  border-radius: var(--r-card);
  background: var(--paper-000);
  padding: 20px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.res-card__title { font-size: var(--fs-h4); }
.res-card__body { font-size: var(--fs-caption); color: var(--tx-on-light-muted); }

.quote-line {
  margin: 26px 0 0;
  font-size: clamp(1.25rem, 1.02rem + 1.1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  max-width: 30ch;
  color: var(--charcoal);
}
.quote-line .hl { background: linear-gradient(transparent 62%, rgba(226, 195, 132, 0.34) 62%); }

/* ================= USE CASES ================= */

.uc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
@media (max-width: 860px) { .uc-grid { grid-template-columns: minmax(0, 1fr); } }

.uc-card {
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  background: var(--ink-700);
  padding: clamp(20px, 2.4vw, 28px);
  display: grid;
  gap: 16px;
  align-content: start;
}
.uc-card__head { display: flex; align-items: center; gap: 12px; }
.uc-card__head h3 { font-size: var(--fs-h4); }
.uc-card__head .badge { margin-left: auto; }
.uc-card__request {
  font-size: var(--fs-small);
  color: var(--tx-on-dark);
  padding: 13px 15px;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-ctl);
  background: var(--ink-900);
  line-height: 1.6;
}
.uc-flow { display: grid; gap: 12px; }
.uc-flow__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.uc-flow__k {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: block;
}
.uc-flow__v { display: flex; flex-wrap: wrap; gap: 6px; }
.uc-flow__v span {
  font-size: var(--fs-caption);
  line-height: 1.35;
  padding: 6px 11px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-sm);
  color: var(--tx-on-dark-muted);
  background: rgba(255, 255, 255, 0.022);
  /* nowrap + max-width:100% is a contradiction: the chip could not wrap
     and could not shrink, so a long label overflowed the card instead.
     keep-all alone holds Korean words together and still lets the chip
     wrap when it has to. */
  word-break: keep-all;
  max-width: 100%;
}

/* ================= CONSOLE PREVIEW ================= */

.console-frame {
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-card);
  background: var(--ink-900);
  overflow: hidden;
}
.console-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.028);
}
.console-top__path { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--tx-on-dark-muted); overflow-wrap: anywhere; }
.console-top .badge { margin-left: auto; }

.console-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 380px; }
@media (max-width: 900px) { .console-body { grid-template-columns: minmax(0, 1fr); } }

.console-nav { border-right: 1px solid var(--ink-line); padding: 14px 10px; }
@media (max-width: 900px) {
  .console-nav {
    border-right: 0; border-bottom: 1px solid var(--ink-line);
    display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--ink-line-strong) transparent;
  }
  .console-nav li { scroll-snap-align: start; flex: none; }
  .console-nav::-webkit-scrollbar { height: 6px; }
  .console-nav::-webkit-scrollbar-thumb { background: var(--ink-line-strong); border-radius: 3px; }
}
.console-nav li {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: var(--fs-caption);
  color: var(--tx-on-dark-dim);
  white-space: nowrap;
}
.console-nav li[data-active="true"] { background: var(--gold-wash-strong); color: var(--gold-text); font-weight: 600; }
.console-nav i { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 2px; flex: none; }

.console-main { padding: clamp(16px, 2vw, 22px); display: grid; gap: 16px; align-content: start; }
.console-req {
  border: 1px solid var(--ink-line);
  border-radius: var(--r-ctl);
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.024);
}
.console-req__label {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--tx-on-dark-dim);
  display: block;
  margin-bottom: 7px;
}
.console-req p { font-size: var(--fs-small); font-weight: 600; }

.stage-rail {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-line-strong) transparent;
}
.stage-rail::-webkit-scrollbar { height: 6px; }
.stage-rail::-webkit-scrollbar-thumb { background: var(--ink-line-strong); border-radius: 3px; }
.stage-rail__item {
  flex: 1 0 auto;
  scroll-snap-align: start;
  min-width: 108px;
  padding: 10px 12px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-ctl);
  display: grid; gap: 6px;
}
.stage-rail__item[data-state="running"] { border-color: var(--gold-edge-strong); background: var(--gold-wash); }
.stage-rail__item[data-state="verified"] { border-color: rgba(95, 169, 122, 0.38); }
.stage-rail__no { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--tx-on-dark-dim); }
.stage-rail__label { font-size: var(--fs-caption); font-weight: 600; }
.stage-rail__state { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx-on-dark-dim); }
.stage-rail__item[data-state="running"] .stage-rail__state { color: var(--gold-text); }

.console-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .console-cols { grid-template-columns: minmax(0, 1fr); } }

.panel-box { border: 1px solid var(--ink-line); border-radius: var(--r-ctl); overflow: hidden; }
.panel-box__head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: 0;
  text-transform: none;
  color: var(--tx-on-dark-dim);
  background: rgba(255, 255, 255, 0.024);
}
.panel-box__head .badge { margin-left: auto; }
.panel-box__body { padding: 12px 14px; display: grid; gap: 9px; }

.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: var(--fs-caption);
}
.mini-row__k { color: var(--tx-on-dark); overflow-wrap: anywhere; }
.mini-row__sub { color: var(--tx-on-dark-dim); font-size: var(--fs-meta); display: block; }

.console-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.console-tab {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-pill);
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--tx-on-dark-muted);
}
.console-tab[aria-selected="true"] { border-color: var(--gold-text); color: var(--gold-text); background: var(--gold-wash); }
.console-tabpanel { padding: 16px; border: 1px solid var(--ink-line); border-radius: var(--r-ctl); border-top-left-radius: 0; }
.console-tabpanel__row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  font-size: var(--fs-caption);
  color: var(--tx-on-dark-muted);
  border-bottom: 1px dashed var(--ink-line);
  align-items: center;
}
.console-tabpanel__row:last-child { border-bottom: 0; }
/* drawn dot instead of a text glyph, so no spacer element is needed */
.console-tabpanel__row::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-line-strong);
}
.console-tabpanel__row > span { grid-column: 2; word-break: keep-all; }

/* ================= TRUST ================= */

.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: minmax(0, 1fr); } }

.trust-card {
  border: 1px solid var(--paper-line);
  border-radius: var(--r-card);
  background: var(--paper-000);
  padding: 20px;
  display: grid; gap: 8px; align-content: start;
}
.trust-card__title { font-size: var(--fs-h4); }
.trust-card__body { font-size: var(--fs-caption); color: var(--tx-on-light-muted); }

/* ================= EARLY ACCESS ================= */

.ea-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1024px) { .ea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ea-grid { grid-template-columns: minmax(0, 1fr); } }

.ea-card {
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  background: var(--ink-700);
  padding: 20px;
  display: grid; gap: 10px; align-content: start;
}
.ea-card__title { font-size: var(--fs-h4); }
.ea-card__body { font-size: var(--fs-caption); color: var(--tx-on-dark-muted); }
.ea-card__need {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: 0;
  color: var(--gold-text);
  padding-top: 11px;
  border-top: 1px solid var(--ink-line);
  align-self: end;
}
.ea-foot {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border: 1px solid var(--gold-edge);
  border-radius: var(--r-card);
  background: var(--gold-wash);
}
.ea-foot__note { font-size: var(--fs-small); color: var(--tx-on-dark); }
.ea-foot__note strong { color: var(--gold-text); }

/* ================= STAGES ================= */

.stage-list { display: grid; gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); border-radius: var(--r-card); overflow: hidden; }
.stage-list__row {
  background: var(--paper-000);
  padding: 18px 20px;
  display: grid;
  /* auto lets the column fit the badge; a fixed 124px was narrower than the
     badge itself so it spilled over the title beside it. */
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.stage-list__row > span:first-child { justify-self: start; }
@media (max-width: 620px) { .stage-list__row { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.stage-list__title {
  display: block;
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stage-list__body { display: block; font-size: var(--fs-small); color: var(--tx-on-light-muted); }
/* the wrapping cell that holds title + body should stack them */
.stage-list__row > span:last-child { display: block; }

/* ================= THE FA ================= */

.thefa-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: center;
}
@media (max-width: 860px) { .thefa-band { grid-template-columns: minmax(0, 1fr); } }
.thefa-lockup {
  border: 1px solid var(--paper-line);
  border-radius: var(--r-card);
  background: var(--paper-000);
  padding: clamp(20px, 2.4vw, 30px);
  display: grid;
  gap: 18px;
  justify-items: start;
}
.thefa-lockup img { height: 42px; width: auto; }
.thefa-tagline {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: var(--tx-on-light-muted);
}

/* ================= FAQ ================= */

.faq-list { border-top: 1px solid var(--ink-line); }
.faq-item { border-bottom: 1px solid var(--ink-line); }
.faq-item h3 { margin: 0; }
.faq-q {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 20px 2px;
  text-align: left;
  font-size: var(--fs-lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tx-on-dark);
}
.faq-q:hover { color: var(--gold-text); }
.faq-q__icon { position: relative; width: 26px; height: 26px; flex: none; }
.faq-q__icon::before, .faq-q__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: currentColor; transform: translate(-50%, -50%);
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}
.faq-q__icon::before { width: 13px; height: 1.5px; }
.faq-q__icon::after { width: 1.5px; height: 13px; }
.faq-q[aria-expanded="true"] { color: var(--gold-text); }
.faq-q[aria-expanded="true"] .faq-q__icon::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

.faq-a { overflow: hidden; }
.faq-a[hidden] { display: none; }
.faq-a__inner {
  padding: 0 46px 26px 2px;
  font-size: var(--fs-small);
  color: var(--tx-on-dark-muted);
  max-width: 76ch;
}
@media (max-width: 620px) { .faq-a__inner { padding-right: 8px; } }

/* ================= FINAL CTA ================= */

.final-cta {
  position: relative;
  background: var(--ink-800);
  overflow: hidden;
  isolation: isolate;
}
.final-cta__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 50% 114%, rgba(214, 190, 136, 0.14), transparent 66%),
    linear-gradient(180deg, #1B1A18, #242220);
}
.final-cta__inner { text-align: center; display: grid; gap: 24px; justify-items: center; }
.final-cta__h2 { font-size: clamp(1.6rem, 1.15rem + 2.1vw, 3rem); line-height: 1.22; }
.final-cta__h2 .line { display: block; }
.final-cta__h2 .dim { color: var(--tx-on-dark-muted); }
.final-cta__body { font-size: var(--fs-lead); color: var(--tx-on-dark-muted); }
.final-cta__body .line { display: block; }
.final-cta__actions { margin-top: 6px; justify-content: center; }
.final-cta__micro { margin-top: 4px; }

/* ================= AUTH / SHELL PAGES ================= */

.shell-page {
  /* svh, not vh: on mobile Safari and Chrome Android, 100vh is the
     tallest-toolbar height, so a vh-based auth page always overflowed by
     the height of the browser chrome and produced a phantom scroll. */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 80px) 0 max(clamp(32px, 6vw, 80px), env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(760px 400px at 50% 0%, rgba(226, 195, 132, 0.042), transparent 64%),
    var(--ink-800);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-card-lg);
  background: var(--ink-900);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-pop);
}
.auth-card--wide { max-width: 680px; }
.auth-card__head { display: grid; gap: 12px; margin-bottom: 26px; }
.auth-card h1 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); line-height: 1.22; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: var(--fs-caption); font-weight: 600; color: var(--tx-on-dark-muted); }
.field label .req { color: var(--gold-text); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-ctl);
  background: var(--ink-950);
  color: var(--tx-on-dark);
  font: inherit;
  /* 16px exactly. iOS Safari zooms the whole page whenever a focused
     field is under 16px, and the old 14.5px made every form on this site
     jump on tap. */
  font-size: 1rem;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--tx-on-dark-dim) 50%),
                    linear-gradient(135deg, var(--tx-on-dark-dim) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-500); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-edge-strong); }
.field textarea { min-height: 124px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--tx-placeholder); opacity: 1; }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.field__hint { font-size: var(--fs-caption); color: var(--tx-on-dark-dim); }
/* validation: only ever shown after the form has been submitted once, so
   a half-typed email is not scolded mid-keystroke */
.field__error { font-size: var(--fs-caption); font-weight: 600; color: #F0A9A0; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: #C9736A; background: rgba(201, 115, 106, 0.07); }

.form-status {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, 0.025);
  font-size: var(--fs-caption);
  color: var(--tx-on-dark-muted);
  display: grid;
  gap: 6px;
}
.form-status strong { color: var(--gold-text); }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ink-line); display: grid; gap: 10px; }

.link-list { display: grid; gap: 10px; }
.link-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-ctl);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--tx-on-dark);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.link-list a:hover { border-color: var(--gold-text); background: var(--gold-wash); }
.link-list span { font-size: var(--fs-caption); font-weight: 400; color: var(--tx-on-dark-dim); }

/* ================= TWEAKS PANEL ================= */

.tweaks {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  width: min(320px, calc(100vw - 36px));
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-card);
  background: rgba(12, 12, 12, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-pop);
  color: var(--tx-on-dark);
}
.tweaks[hidden] { display: none; }
.tweaks__head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--ink-line);
  cursor: grab;
}
.tweaks__head strong { font-size: var(--fs-small); }
.tweaks__head button { margin-left: auto; width: 30px; height: 30px; border-radius: 7px; color: var(--tx-on-dark-muted); font-size: 15px; }
.tweaks__head button:hover { background: rgba(255, 255, 255, 0.07); color: var(--tx-on-dark); }
.tweaks__body { padding: 14px 15px 18px; display: grid; gap: 16px; max-height: 60vh; overflow-y: auto; }
.tweak__label { font-size: var(--fs-meta); font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx-on-dark-dim); margin-bottom: 8px; display: block; }
.tweak__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tweak__opt {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-sm);
  font-size: var(--fs-meta);
  color: var(--tx-on-dark-muted);
}
.tweak__opt[aria-pressed="true"] { border-color: var(--gold-text); color: var(--gold-text); background: var(--gold-wash-strong); }
.tweak__swatches { display: flex; gap: 8px; }
.tweak__swatch {
  width: 34px; height: 34px; border-radius: 9px; border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.tweak__swatch[aria-pressed="true"] { border-color: var(--gold-text); }

/* ================= TWEAK-DRIVEN VARIANTS =================
   These only apply when the user actually changes something in the
   Tweaks panel. The default look is the final look. */

/* Section rhythm alternate takes */
html[data-tweak-rhythm="technical"] .section--light {
  background: #141414;
  color: var(--tx-on-dark);
  border-top-color: var(--ink-line);
}
html[data-tweak-rhythm="technical"] .section--light .lead,
html[data-tweak-rhythm="technical"] .section--light .body-muted { color: var(--tx-on-dark-muted); }
html[data-tweak-rhythm="technical"] .section--light .caption { color: var(--tx-on-dark-dim); }
html[data-tweak-rhythm="technical"] .section--light .eyebrow { color: var(--gold-text); }
html[data-tweak-rhythm="technical"] .section--light .card,
html[data-tweak-rhythm="technical"] .section--light .trust-card,
html[data-tweak-rhythm="technical"] .section--light .res-card,
html[data-tweak-rhythm="technical"] .section--light .mode-card,
html[data-tweak-rhythm="technical"] .section--white .trust-card,
html[data-tweak-rhythm="technical"] .section--white .card {
  background: var(--ink-700);
  border-color: var(--ink-line);
  box-shadow: none;
}
html[data-tweak-rhythm="technical"] .section--light .mode-card__id,
html[data-tweak-rhythm="technical"] .section--light .stage-list__title,
html[data-tweak-rhythm="technical"] .section--light .trust-card__title,
html[data-tweak-rhythm="technical"] .section--light .res-card__title { color: var(--tx-on-dark); }
html[data-tweak-rhythm="technical"] .section--light .mode-card__body,
html[data-tweak-rhythm="technical"] .section--light .stage-list__body,
html[data-tweak-rhythm="technical"] .section--light .trust-card__body,
html[data-tweak-rhythm="technical"] .section--light .res-card__body { color: var(--tx-on-dark-muted); }
html[data-tweak-rhythm="technical"] .section--light .prob-card p { color: var(--tx-on-dark-muted); }
html[data-tweak-rhythm="technical"] .section--light .prob-card__detail { color: var(--tx-on-dark-dim); border-top-color: var(--ink-line); }
html[data-tweak-rhythm="technical"] .section--light .closing-line { background: var(--ink-700); color: var(--tx-on-dark); }
html[data-tweak-rhythm="technical"] .section--light .quote-line { color: var(--tx-on-dark); }
html[data-tweak-rhythm="technical"] .section--light .mode-card__meta div { color: var(--tx-on-dark-dim); }
html[data-tweak-rhythm="technical"] .section--light .mode-card__meta span { color: var(--tx-on-dark); }
html[data-tweak-rhythm="technical"] .section--light .mode-card__meta { border-top-color: var(--ink-line); }
html[data-tweak-rhythm="technical"] .section--light .note,
html[data-tweak-rhythm="technical"] .section--white .note { color: var(--tx-on-dark-dim); }
html[data-tweak-rhythm="technical"] .section--light .badge,
html[data-tweak-rhythm="technical"] .section--white .badge { border-color: var(--ink-line-strong); color: var(--tx-on-dark-muted); }
html[data-tweak-rhythm="technical"] .section--light .stage-list,
html[data-tweak-rhythm="technical"] .section--white .stage-list { background: var(--ink-line); border-color: var(--ink-line); }
html[data-tweak-rhythm="technical"] .section--light .stage-list__row { background: var(--ink-700); }
html[data-tweak-rhythm="technical"] .section--light .ba-card { background: var(--ink-700); border-color: var(--ink-line); color: var(--tx-on-dark); }
html[data-tweak-rhythm="technical"] .section--light .ba-card__label { color: var(--tx-on-dark-dim); }
html[data-tweak-rhythm="technical"] .section--light .ba-steps li { border-bottom-color: var(--ink-line); }
html[data-tweak-rhythm="technical"] .section--light .ba-steps__mark { border-color: var(--ink-line-strong); color: var(--tx-on-dark-dim); }
html[data-tweak-rhythm="technical"] .section--light .ba-card__note { color: var(--tx-on-dark-muted); }
html[data-tweak-rhythm="technical"] .section--white .limit-list li { border-bottom-color: var(--ink-line); color: var(--tx-on-dark-muted); }
html[data-tweak-rhythm="technical"] .section--white .limit-list { border-top-color: var(--ink-line); }
html[data-tweak-rhythm="technical"] .section--white .legal-note { background: var(--ink-700); border-color: var(--ink-line); }
html[data-tweak-rhythm="technical"] .section--white .legal-note h2 { color: var(--tx-on-dark); }
html[data-tweak-rhythm="technical"] .section--white .legal-note p { color: var(--tx-on-dark-muted); }
html[data-tweak-rhythm="technical"] .thefa-lockup { background: var(--ink-700); border-color: var(--ink-line); }

html[data-tweak-rhythm="light"] .section--dark:not(.hero):not(.final-cta) {
  background: var(--paper-050);
  color: var(--tx-on-light);
  border-top-color: var(--paper-line);
}
html[data-tweak-rhythm="light"] .section--dark:not(.hero):not(.final-cta) .lead,
html[data-tweak-rhythm="light"] .section--dark:not(.hero):not(.final-cta) .body-muted { color: var(--tx-on-light-muted); }
html[data-tweak-rhythm="light"] .section--dark:not(.hero):not(.final-cta) .caption { color: var(--tx-on-light-dim); }
html[data-tweak-rhythm="light"] .section--dark:not(.hero):not(.final-cta) .eyebrow { color: var(--gold-on-light); }
html[data-tweak-rhythm="light"] .pane,
html[data-tweak-rhythm="light"] .demo__stage { background: #FFFFFF; border-color: var(--paper-line-strong); }
html[data-tweak-rhythm="light"] .pane__bar,
html[data-tweak-rhythm="light"] .demo__stage-head { background: var(--paper-100); border-bottom-color: var(--paper-line); }
html[data-tweak-rhythm="light"] .pane__title,
html[data-tweak-rhythm="light"] .demo-step__en { color: var(--tx-on-light-dim); }
html[data-tweak-rhythm="light"] .unit,
html[data-tweak-rhythm="light"] .pipe__row,
html[data-tweak-rhythm="light"] .receipt-mini { background: var(--paper-050); border-color: var(--paper-line); }
html[data-tweak-rhythm="light"] .unit__title,
html[data-tweak-rhythm="light"] .pipe__en,
html[data-tweak-rhythm="light"] .cmd__text { color: var(--tx-on-light); }
html[data-tweak-rhythm="light"] .stage,
html[data-tweak-rhythm="light"] .orch-card,
html[data-tweak-rhythm="light"] .neq-card,
html[data-tweak-rhythm="light"] .uc-card { background: #FFFFFF; border-color: var(--paper-line); }
html[data-tweak-rhythm="light"] .stage__ko,
html[data-tweak-rhythm="light"] .neq-card__en,
html[data-tweak-rhythm="light"] .uc-card__head h3 { color: var(--tx-on-light); }

/* Density */
html[data-tweak-density="compact"] { --section-y: clamp(56px, 6.4vw, 100px); --gutter: clamp(18px, 4vw, 30px); }
html[data-tweak-density="compact"] .card,
html[data-tweak-density="compact"] .stage,
html[data-tweak-density="compact"] .uc-card,
html[data-tweak-density="compact"] .mode-card { padding: 18px; }
html[data-tweak-density="compact"] .grid { gap: 12px; }

/* Gold emphasis */
html[data-tweak-gold="strong"] .hero__bg {
  background:
    radial-gradient(1200px 560px at 74% 4%, rgba(226, 195, 132, 0.055), transparent 64%),
    radial-gradient(820px 460px at 4% 98%, rgba(226, 195, 132, 0.028), transparent 68%),
    linear-gradient(180deg, #262320 0%, #1E1C1A 58%, #1B1A18 100%);
}
html[data-tweak-gold="strong"] .final-cta__bg {
  background:
    radial-gradient(860px 460px at 50% 112%, rgba(226, 195, 132, 0.09), transparent 66%),
    linear-gradient(180deg, #1D1B19, #2A2622);
}
html[data-tweak-gold="strong"] .eyebrow::before { opacity: 1; }
html[data-tweak-gold="strong"] .flowchip li[data-on="true"] { background: var(--gold-wash-strong); }

/* Motion variants */
html[data-tweak-motion="minimal"] .cmd__caret { animation: none; }
html[data-tweak-motion="medium"] .card--hover:hover { transform: translateY(-5px); }

/* ================= PRINT / MOTION SAFETY ================= */

@media (prefers-reduced-motion: reduce) {
  .unit, .stage, .flow-rail__fill, .demo__progress i { transition: none !important; }
}

/* ================= SECTION ARTWORK =================
   Original vector scenes, not stock photography: they stay sharp on any
   display, carry no licensing risk, weigh ~4KB each, and are built from
   the same stair / node / receipt vocabulary as the logo. Each one is a
   real <img> with a descriptive alt, so it is also a content image for
   search and for screen readers — not a decorative background.
   ================= */

.figure {
  margin: clamp(26px, 3.4vw, 46px) 0 0;
  display: grid;
  gap: 14px;
}
.figure__frame {
  position: relative;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  background: var(--ink-850);
  line-height: 0;
}
.section--light .figure__frame, .section--white .figure__frame {
  border-color: var(--paper-line);
  background: var(--paper-000);
  box-shadow: var(--shadow-card);
}
.figure__frame img {
  display: block;
  width: 100%;
  height: auto;
}
.figure__cap {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--tx-on-dark-dim);
}
.section--light .figure__cap, .section--white .figure__cap { color: var(--tx-on-light-dim); }
.figure__cap b {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-text);
}
.section--light .figure__cap b, .section--white .figure__cap b { color: var(--gold-on-light); }

/* Side-by-side variant: copy on one side, artwork on the other. */
.figure--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(22px, 3vw, 48px);
  align-items: center;
}
@media (max-width: 900px) {
  .figure--split { grid-template-columns: minmax(0, 1fr); }
}

/* On the narrowest phones a wide 880x520 scene becomes an unreadable
   smudge. Let it scroll horizontally at its own legible size instead of
   shrinking it to nothing. */
@media (max-width: 560px) {
  .figure__frame--scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .figure__frame--scroll img { width: 560px; max-width: none; }
}

/* ================= AUTH SPLIT LAYOUT =================
   login.html / signup.html use a two-pane layout: the form on the left,
   a product scene on the right. The scene is purely supporting, so it is
   the first thing dropped on tablet and below.
   ================= */

.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: center;
  width: 100%;
}
.auth-split__aside { display: grid; gap: 20px; align-content: center; }
.auth-split__art {
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  background: var(--ink-850);
  line-height: 0;
  box-shadow: var(--shadow-lift);
}
.auth-split__art img { display: block; width: 100%; height: auto; }
.auth-split__points { display: grid; gap: 12px; }
.auth-split__points li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: var(--fs-small);
  color: var(--tx-on-dark-muted);
}
.auth-split__points li::before {
  content: "";
  width: 9px; height: 9px; margin-top: 8px;
  border-radius: 2px;
  background: var(--gold-text);
  opacity: 0.8;
}
.auth-split__points b { color: var(--tx-on-dark); font-weight: 600; }

@media (max-width: 980px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .auth-split__aside { display: none; }
}

/* ================= MOBILE POLISH ================= */

@media (max-width: 560px) {
  /* The hero pane is the single tallest block on the page. Trim its
     internal padding so the fold still shows the first work units. */
  .pane__body { padding: 14px; }
  .unit { gap: 10px; padding: 10px 12px; }
  .receipt-mini { padding: 12px; gap: 12px; }
  .flowchip { gap: 6px; margin-top: 26px; }

  .closing-line { padding: 16px 18px; }
  .flow-statement { padding: 16px 18px; gap: 10px; }
  .callout { padding: 16px; gap: 12px; }
  .ea-foot { padding: 18px; }
  .hub { padding: 18px; }

  .demo__stage { min-height: 0; }
  .demo__player-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .pane__title { display: none; }
  .demo__stage-head { gap: 8px; }
}

/* The Tweaks panel is a design-review tool. On a phone it covers the
   content it is meant to review, so it docks to the bottom edge. */
@media (max-width: 560px) {
  .tweaks {
    right: 8px; left: 8px; bottom: 8px;
    width: auto;
  }
  .tweaks__body { max-height: 52vh; }
}

/* ============================================================
   THEFA Core Homepage V2 — conversion-focused, 2026-10-03
   Scoped to body.home-v2 so existing product pages stay untouched.
   ============================================================ */
.home-v2{background:#0b0b0a;color:#f5f2ea}
.home-v2 .site-header{background:rgba(11,11,10,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(214,178,99,.12)}
.home-v2 .header-inner{min-height:var(--header-h)}
.home-v2 .brand img{width:auto;height:44px;max-width:none}
.home-v2 .nav{gap:clamp(2px,.8vw,12px)}
.home-v2 .nav a{font-weight:600;color:rgba(245,242,234,.70)}
.home-v2 .nav a:hover,.home-v2 .nav a[aria-current="true"]{color:#e7c97f}
.home-v2 .header-cta{min-width:184px;box-shadow:0 10px 34px rgba(214,178,99,.18)}
.home-v2 main{overflow:hidden}
.hv2-eyebrow{margin:0 0 18px;color:#d8b86f;font-size:13px;font-weight:780;letter-spacing:.22em;text-transform:uppercase}
.hv2-hero{position:relative;isolation:isolate;min-height:760px;padding:96px 0 68px;background:#0b0b0a}
.hv2-grid-bg{position:absolute;inset:0;z-index:-2;background-image:linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.026) 1px,transparent 1px),radial-gradient(circle at 74% 31%,rgba(197,151,58,.18),transparent 30%),radial-gradient(circle at 44% 105%,rgba(176,126,32,.1),transparent 40%);background-size:74px 74px,74px 74px,auto,auto}
.hv2-grid-bg::after{content:"";position:absolute;left:22%;right:-8%;bottom:2%;height:260px;background:radial-gradient(ellipse at center,rgba(216,174,82,.18),transparent 68%);filter:blur(20px);transform:skewY(-3deg);opacity:.8}
.hv2-hero__grid{display:grid;grid-template-columns:minmax(0,.83fr) minmax(580px,1.17fr);align-items:center;gap:54px}
.hv2-hero__copy{padding:34px 0 10px}
.hv2-hero h1{margin:0;color:#f8f6f1;font-size:clamp(58px,5.4vw,88px);line-height:.98;letter-spacing:-.055em;font-weight:840}
.hv2-hero h1 em{font-style:normal;color:#ead29c;text-shadow:0 0 36px rgba(221,178,82,.14)}
.hv2-hero__lead{max-width:600px;margin:30px 0 0;color:rgba(245,242,234,.76);font-size:20px;line-height:1.75;letter-spacing:-.018em}
.hv2-actions{margin-top:34px;gap:14px}
.home-v2 .btn--primary{background:linear-gradient(135deg,#f0d99c,#c99e43);color:#16130d;border-color:rgba(255,235,185,.5);font-weight:800;box-shadow:0 14px 38px rgba(202,159,67,.18)}
.home-v2 .btn--primary:hover{transform:translateY(-1px);filter:brightness(1.04)}
.home-v2 .btn--ghost{border-color:rgba(223,190,116,.46);color:#f5f0e4;background:rgba(16,15,13,.46)}
.hv2-proof{display:flex;flex-wrap:wrap;gap:22px;margin:28px 0 0;padding:0;list-style:none;color:rgba(245,242,234,.68);font-size:14px}
.hv2-proof li{display:flex;align-items:center;gap:8px}
.hv2-proof span{display:grid;place-items:center;width:22px;height:22px;border:1px solid #d8b257;border-radius:50%;color:#e5c56f;font-size:12px}
.hv2-showcase{position:relative;margin:0;padding:18px 0 0}
.hv2-showcase__glow{position:absolute;inset:8% 2% 12%;z-index:-1;background:radial-gradient(ellipse at center,rgba(224,183,86,.28),transparent 67%);filter:blur(34px)}
.hv2-showcase img{display:block;width:100%;height:auto;border:1px solid rgba(222,183,94,.44);border-radius:20px;background:#0d0e0c;box-shadow:0 32px 90px rgba(0,0,0,.54),0 0 0 1px rgba(255,255,255,.025),0 0 60px rgba(207,159,59,.12)}
.hv2-showcase figcaption{margin:13px 4px 0;color:rgba(245,242,234,.48);font-size:12px;line-height:1.55;text-align:right}
.hv2-section{padding:116px 0}
.hv2-section--light{background:#f4f1e9;color:#161513}
.hv2-section--dark{background:#121210;color:#f4f0e8;border-top:1px solid rgba(219,183,101,.12);border-bottom:1px solid rgba(219,183,101,.12)}
.hv2-section--product{background:linear-gradient(180deg,#1a1916,#121210);color:#f5f1e7}
.hv2-section--trust{background:#0e0e0c;color:#f5f2ea}
.hv2-heading{max-width:820px}
.hv2-heading h2{margin:0;font-size:clamp(40px,4vw,64px);line-height:1.08;letter-spacing:-.045em;font-weight:820}
.hv2-heading>p:last-child{margin:24px 0 0;max-width:720px;font-size:18px;line-height:1.75;color:rgba(34,32,27,.68)}
.hv2-section--dark .hv2-heading>p:last-child,.hv2-section--product .hv2-heading>p:last-child,.hv2-section--trust .hv2-heading>p:last-child{color:rgba(245,242,234,.64)}
.hv2-problem-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:54px}
.hv2-card{min-height:260px;padding:30px;border:1px solid #ded8cb;border-radius:24px;background:rgba(255,255,255,.68);box-shadow:0 18px 48px rgba(37,31,21,.05)}
.hv2-no{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:28px;border-radius:99px;background:#161513;color:#e7c77a;font:700 12px/1 monospace;letter-spacing:.08em}
.hv2-card h3{margin:48px 0 12px;font-size:27px;letter-spacing:-.035em}
.hv2-card p{margin:0;color:#6d685f;line-height:1.7;font-size:16px}
.hv2-bridge{margin:34px 0 0;padding:22px 28px;border-left:3px solid #cba44f;background:rgba(216,184,112,.12);font-size:20px;letter-spacing:-.02em}
.hv2-flow{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;margin:56px 0 0;padding:0;list-style:none}
.hv2-flow::before{content:"";position:absolute;left:7%;right:7%;top:28px;height:1px;background:linear-gradient(90deg,rgba(208,169,79,.18),rgba(225,188,100,.78),rgba(208,169,79,.18))}
.hv2-flow li{position:relative;z-index:1;min-width:0;padding:0 6px}
.hv2-flow li::after{display:none}
.hv2-flow span{position:relative;display:grid;place-items:center;width:56px;height:56px;border:1px solid rgba(225,188,100,.6);border-radius:50%;background:#121210;color:#e2b95e;font:750 12px/1 monospace;letter-spacing:.08em;box-shadow:0 0 0 7px #121210,0 10px 30px rgba(0,0,0,.22)}
.hv2-flow b{display:block;margin-top:25px;font-size:22px;line-height:1.3;letter-spacing:-.03em}
.hv2-flow p{margin:10px 0 0;max-width:27ch;color:rgba(245,242,234,.58);line-height:1.68;font-size:15px}
.hv2-product-grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(560px,1.18fr);gap:70px;align-items:start}
.hv2-product-grid .link-arrow{display:inline-flex;margin-top:26px;color:#e2bd67;font-weight:750}
.hv2-console-cards{display:grid;gap:14px}
.hv2-mini{position:relative;min-height:160px;padding:24px 26px;border:1px solid rgba(222,187,105,.18);border-radius:20px;background:rgba(255,255,255,.025);overflow:hidden}
.hv2-mini>span{color:#cfa64c;font:700 11px/1 monospace;letter-spacing:.16em}
.hv2-mini h3{margin:16px 0 8px;font-size:22px}
.hv2-mini p{max-width:72%;margin:0;color:rgba(245,242,234,.57);font-size:14px;line-height:1.65}
.hv2-lines{position:absolute;right:24px;bottom:24px;width:150px;display:grid;gap:9px}
.hv2-lines i{height:8px;border-radius:99px;background:rgba(229,211,167,.7)}
.hv2-lines i:nth-child(2){width:78%;background:rgba(255,255,255,.2)}
.hv2-lines i:nth-child(3){width:52%;background:rgba(255,255,255,.1)}
.hv2-status{position:absolute;right:24px;bottom:24px;display:grid;gap:5px;padding:13px 16px;border:1px solid rgba(218,176,80,.34);border-radius:14px;background:rgba(214,168,61,.08)}
.hv2-status b{font-size:13px;color:#e5c779}.hv2-status small{font-size:11px;color:rgba(245,242,234,.42)}
.hv2-checks{position:absolute;right:24px;bottom:24px;display:flex;gap:8px}.hv2-checks i{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(116,216,167,.46);border-radius:50%;color:#83d5ae;font-style:normal}
.hv2-use-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:52px}
.hv2-use{padding:32px;border-top:2px solid #c9a04a;background:#fff;border-radius:0 0 20px 20px;box-shadow:0 14px 38px rgba(42,32,17,.06)}
.hv2-use span{font:700 11px/1 monospace;color:#9b7627;letter-spacing:.12em}.hv2-use h3{margin:24px 0 12px;font-size:26px}.hv2-use p{margin:0;color:#6c665c;line-height:1.7}
.hv2-note{margin:24px 0 0;color:#8a8376;font-size:13px}
.hv2-trust-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(520px,1.1fr);gap:80px;align-items:start}
.hv2-trust-list{display:grid;border-top:1px solid rgba(221,187,109,.2)}
.hv2-trust-list article{display:grid;grid-template-columns:58px 1fr;gap:18px;padding:24px 0;border-bottom:1px solid rgba(221,187,109,.15)}
.hv2-trust-list article>span{color:#d0a94f;font:700 12px/1.5 monospace;letter-spacing:.12em}.hv2-trust-list h3{margin:0 0 7px;font-size:21px}.hv2-trust-list p{margin:0;color:rgba(245,242,234,.56);line-height:1.6;font-size:14px}
.hv2-adoption{position:relative;isolation:isolate;padding:128px 0;background:#0b0b0a;color:#f5f2ea;text-align:center;overflow:hidden}
.hv2-adoption__glow{position:absolute;inset:auto 8% -45% 8%;height:420px;z-index:-1;background:radial-gradient(ellipse at center,rgba(214,169,69,.28),transparent 67%);filter:blur(20px)}
.hv2-adoption__inner{max-width:900px}.hv2-adoption h2{margin:0;font-size:clamp(46px,4.5vw,70px);line-height:1.06;letter-spacing:-.05em}.hv2-adoption p:not(.hv2-eyebrow){max-width:700px;margin:24px auto 0;color:rgba(245,242,234,.64);font-size:18px;line-height:1.7}.hv2-adoption .hv2-actions{justify-content:center}.hv2-adoption small{display:block;margin-top:22px;color:rgba(245,242,234,.4);font-size:12px}
@media (max-width:1100px){.hv2-hero__grid,.hv2-product-grid,.hv2-trust-grid{grid-template-columns:1fr;gap:48px}.hv2-hero{padding-top:70px}.hv2-showcase{max-width:920px}.hv2-problem-grid,.hv2-use-grid{grid-template-columns:1fr 1fr}.hv2-flow{gap:20px}}
@media (max-width:760px){.home-v2 .header-inner{min-height:66px}.home-v2 .brand img{height:34px}.home-v2 .header-cta{display:none}.hv2-hero{min-height:auto;padding:56px 0 42px}.hv2-hero__grid{display:block}.hv2-hero h1{font-size:clamp(48px,14vw,66px)}.hv2-hero__lead{font-size:17px}.hv2-actions{display:grid;grid-template-columns:1fr}.hv2-actions .btn{width:100%}.hv2-proof{gap:12px 16px;font-size:13px}.hv2-showcase{margin-top:42px}.hv2-showcase figcaption{text-align:left}.hv2-section{padding:78px 0}.hv2-heading h2{font-size:clamp(36px,10vw,48px)}.hv2-heading>p:last-child{font-size:16px}.hv2-problem-grid,.hv2-use-grid{grid-template-columns:1fr}.hv2-card{min-height:auto}.hv2-card h3{margin-top:30px}.hv2-flow{grid-template-columns:1fr;gap:0;margin-top:42px}.hv2-flow::before{left:27px;right:auto;top:28px;bottom:28px;width:1px;height:auto}.hv2-flow li{display:grid;grid-template-columns:56px minmax(0,1fr);gap:20px;padding:0 0 34px}.hv2-flow li:last-child{padding-bottom:0}.hv2-flow b{margin-top:4px}.hv2-product-grid,.hv2-trust-grid{display:block}.hv2-console-cards,.hv2-trust-list{margin-top:42px}.hv2-mini p{max-width:100%;padding-right:0}.hv2-lines,.hv2-status,.hv2-checks{position:static;margin-top:24px}.hv2-adoption{padding:90px 0}.hv2-adoption h2{font-size:clamp(40px,11vw,54px)}}
@media (max-width:430px){.hv2-eyebrow{font-size:11px;letter-spacing:.17em}.hv2-hero h1{font-size:46px}.hv2-proof{display:grid}.hv2-section{padding:68px 0}.hv2-card,.hv2-use,.hv2-mini{padding:24px}.hv2-adoption h2{font-size:40px}}
@media (min-width:1101px){
  .hv2-hero__grid{grid-template-columns:minmax(0,.95fr) minmax(560px,1.05fr);gap:48px}
  .hv2-hero h1{font-size:clamp(58px,4.8vw,76px)}
}

/* THE FA Core V3: scoped storytelling, shared product pages retain their styles. */
.home-v3 { background: var(--ink-950); color: var(--tx-on-dark); }
.home-v3 .site-header { background: rgba(20,19,18,.94); border-bottom: 1px solid var(--ink-line); }
.home-v3 .nav a { padding-inline: 9px; }
.home-v3 .btn--ghost { --btn-bd: var(--gold-edge-strong); }
.v3-hero { position: relative; padding-block: clamp(56px,7vw,110px); background: radial-gradient(ellipse at 85% 20%,rgba(203,178,131,.08),transparent 52%); }
.v3-hero-grid { display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); gap: clamp(30px,4vw,64px); align-items: center; }
.v3-hero-copy { min-width: 0; }
.v3-eyebrow { margin: 0 0 20px; color: var(--gold-text); font: 600 12px/1.6 var(--font-mono); letter-spacing: .15em; overflow-wrap: anywhere; }
.v3-hero h1 { font-size: clamp(2.1rem,1.2rem + 3.3vw,4.3rem); line-height: 1.17; letter-spacing: -.055em; font-weight: 750; margin: 0; }
.v3-hero h1 em { color: var(--gold-soft); font-style: normal; }
.v3-hero-sub { font-size: clamp(1.12rem,1rem + .6vw,1.4rem); margin: 28px 0 14px; font-weight: 600; }
.v3-lead { font-size: 17px; line-height: 1.85; color: var(--tx-on-dark-muted); max-width: 36em; margin: 0; }
.v3-actions { margin-top: 30px; }
.v3-hero-note { color: var(--tx-on-dark-dim); font-size: 13px; line-height: 1.75; margin: 18px 0 4px; max-width: 42em; }
.v3-micro { font: 600 11px/1.7 var(--font-mono); letter-spacing: .06em; color: var(--gold-text); overflow-wrap: anywhere; }
.v3-mesh { margin: 0; min-width: 0; }
.v3-mesh-request { width: fit-content; max-width: 95%; margin: 0 auto 25px; text-align: center; padding: 15px 26px; border: 1px solid var(--ink-line-strong); background: var(--ink-850); border-radius: 12px; position: relative; }
.v3-mesh-request::after { content: ''; position: absolute; width: 1px; height: 26px; background: var(--gold-edge-strong); left: 50%; bottom: -26px; }
.v3-mesh-request p { margin: 5px 0 0; font-size: 16px; line-height: 1.6; }
.v3-mesh-network { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1fr) minmax(140px,1.03fr) minmax(0,1fr); gap: 14px; align-items: center; }
.v3-mesh-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.v3-mesh-lines path { fill: none; stroke: var(--ink-line-strong); stroke-width: 1; }
.v3-mesh-lines .v3-mesh-route { stroke: var(--gold-soft); stroke-width: 1.5; stroke-dasharray: 6 5; animation: v3-route 12s linear infinite; }
@keyframes v3-route { to { stroke-dashoffset: -110; } }
.v3-mesh-bank { display: grid; gap: 10px; min-width: 0; }
.v3-mesh-bank > span:not(.v3-micro) { background: var(--ink-850); border: 1px solid var(--ink-line); padding: 9px 7px; border-radius: 6px; text-align: center; color: var(--tx-on-dark-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.v3-mesh-bank .v3-micro { text-align: center; font-size: 10px; letter-spacing: 0; }
.v3-mesh-bank > .is-selected { border-color: var(--gold-edge-strong) !important; color: var(--gold-soft) !important; }
.v3-mesh-core { position: relative; background: var(--ink-950); border: 1px solid var(--gold-edge-strong); border-radius: 50%; aspect-ratio: 1; min-height: 164px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 8px; text-align: center; box-shadow: 0 0 0 9px rgba(203,178,131,.025),0 0 65px rgba(203,178,131,.07); }
.v3-mesh-core > .v3-micro { font-size: 8px; letter-spacing: .07em; }
.v3-mesh-core strong { font-size: clamp(22px,2.1vw,31px); line-height: 1.13; letter-spacing: .05em; font-weight: 700; margin: 8px 0 10px; }
.v3-mesh-core > span:last-child { font-size: 9px; line-height: 1.5; color: var(--tx-on-dark-muted); }
.v3-mesh-result { position: relative; margin: 26px auto 0; text-align: center; padding: 18px 12px; border-top: 1px solid var(--gold-edge-strong); border-bottom: 1px solid var(--ink-line); }
.v3-mesh-result::before { content: ''; position: absolute; top: -27px; left: 50%; width: 1px; height: 26px; background: var(--gold-edge-strong); }
.v3-mesh-result > span { display: block; color: var(--tx-on-dark-dim); font-size: 11px; }
.v3-mesh-result b { display: block; margin: 4px 0 15px; font-weight: 550; color: var(--gold-soft); font-size: 13px; }
.v3-mesh-result > div { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font: 11px/1.5 var(--font-mono); }
.v3-mesh-result i { color: var(--tx-on-dark-dim); font-style: normal; }
.v3-mesh-result strong { color: var(--state-ok-text); font-weight: 550; }
.v3-mesh figcaption { color: var(--tx-on-dark-dim); font-size: 11px; line-height: 1.65; text-align: center; margin-top: 14px; }
.v3-section { padding-block: clamp(64px,7vw,100px); border-top: 1px solid var(--ink-line); }
.v3-section h2,.v3-final h2 { font-size: clamp(1.9rem,1.25rem + 1.8vw,2.95rem); line-height: 1.25; letter-spacing: -.045em; font-weight: 700; margin: 0; }
.v3-section-head { max-width: 750px; margin-bottom: 36px; }
.v3-section-head > p:not(.v3-eyebrow) { margin: 22px 0 0; color: var(--tx-on-dark-muted); font-size: 17px; line-height: 1.8; }
.v3-section-head > .v3-section-note { font-size: 14px; color: var(--tx-on-dark-dim); }
.v3-paper { background: var(--paper-100); color: var(--tx-on-light); --gold-text: var(--gold-on-light); --gold-soft: var(--gold-on-light); --gold-edge-strong: rgba(113,86,31,.32); }
.v3-paper .v3-section-head > p:not(.v3-eyebrow) { color: var(--tx-on-light-muted); }
.v3-paper .v3-section-head > .v3-section-note { color: var(--tx-on-light-dim); }
.v3-frictions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.v3-frictions li { border-top: 1px solid var(--paper-line-strong); padding-top: 22px; }
.v3-frictions li > span { font: 500 14px/1 var(--font-mono); color: var(--gold-on-light); }
.v3-frictions h3 { font-size: 19px; margin: 18px 0 10px; font-weight: 600; }
.v3-frictions p { font-size: 15px; line-height: 1.8; color: var(--tx-on-light-muted); margin: 0; }
.v3-bridge { border-left: 2px solid var(--gold-on-light); padding-left: 22px; margin: 38px 0 0; font-size: 20px; line-height: 1.6; }
.v3-bridge strong { font-weight: 600; }
.v3-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(36px,7vw,105px); align-items: center; }
.v3-split .v3-section-head { margin-bottom: 0; }
.v3-engine-map { border: 1px solid var(--ink-line-strong); border-radius: 12px; overflow: hidden; }
.v3-engine-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 22px; background: var(--gold-wash-strong); border-bottom: 1px solid var(--gold-edge-strong); color: var(--gold-soft); }
.v3-engine-head > span { font: 600 16px/1.4 var(--font-mono); }
.v3-engine-head small { font-size: 12px; }
.v3-engine-map dl { margin: 0; padding: 4px 22px; }
.v3-engine-map dl > div { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--ink-line); font-size: 13px; line-height: 1.6; }
.v3-engine-map dl > div:last-child { border: 0; }
.v3-engine-map dt { font-weight: 600; }
.v3-engine-map dd { margin: 0; color: var(--tx-on-dark-muted); }
.v3-resource-section { background: var(--ink-900); }
.v3-resource-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-top: 1px solid var(--gold-edge-strong); }
.v3-resource-grid article { padding: 26px 20px 20px; border-right: 1px solid var(--ink-line-strong); min-width: 0; display: flex; flex-direction: column; }
.v3-resource-grid article:first-child { padding-left: 0; }
.v3-resource-grid article:last-child { border-right: 0; }
.v3-resource-grid h3 { font: 600 11px/1.6 var(--font-mono); letter-spacing: .03em; color: var(--gold-text); margin: 0 0 16px; }
.v3-resource-grid p { font-size: 13px; color: var(--tx-on-dark-muted); margin: 0 0 18px; line-height: 1.85; overflow-wrap: anywhere; }
.v3-resource-grid article > span { font-size: 12px; margin-top: auto; }
.v3-resource-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 30px; border-top: 1px solid var(--ink-line); padding-top: 18px; }
.v3-resource-bottom p { max-width: 520px; font-size: 12px; color: var(--tx-on-dark-dim); margin: 0; line-height: 1.7; }
.v3-example { font: 500 11px/1.7 var(--font-mono); color: var(--gold-text); overflow-wrap: anywhere; }
.v3-criteria { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.v3-criteria span { border: 1px solid var(--paper-line-strong); border-radius: 4px; padding: 6px 9px; font-size: 11px; line-height: 1.5; color: var(--tx-on-light-muted); }
.v3-router-story { border: 1px solid var(--paper-line-strong); background: var(--paper-000); border-radius: 12px; padding: clamp(22px,2.8vw,34px); }
.v3-router-story > p { margin: 0; }
.v3-router-story blockquote { margin: 20px 0; font-size: 21px; line-height: 1.65; font-weight: 550; }
.v3-router-story ol { list-style: none; margin: 0; padding: 0; counter-reset: route; }
.v3-router-story li { counter-increment: route; position: relative; display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1fr); padding: 14px 0 14px 28px; gap: 12px; border-top: 1px solid var(--paper-line); font-size: 13px; line-height: 1.6; }
.v3-router-story li::before { content: counter(route); position: absolute; left: 0; top: 14px; font-family: var(--font-mono); color: var(--gold-on-light); }
.v3-router-story li b { font-weight: 550; }
.v3-router-story li > span { color: var(--tx-on-light-muted); }
.v3-router-story .v3-route-output { color: var(--gold-on-light); }
.v3-workflow { border: 1px solid var(--ink-line-strong); border-radius: 12px; background: var(--ink-900); overflow: hidden; }
.v3-workflow-request { padding: 22px 28px; border-bottom: 1px solid var(--ink-line); }
.v3-workflow-request p { margin: 8px 0 0; font-size: 19px; }
.v3-step-tabs { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); background: var(--ink-950); border-bottom: 1px solid var(--ink-line-strong); }
.v3-step-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 92px; padding: 16px 18px; color: var(--tx-on-dark-muted); border: 0; border-right: 1px solid var(--ink-line); border-bottom: 2px solid transparent; background: transparent; cursor: pointer; font: 500 12px/1.5 var(--font-sans); text-align: left; overflow-wrap: anywhere; }
.v3-step-tabs button span { font: 600 11px/1.5 var(--font-mono); }
.v3-step-tabs button[aria-selected="true"] { border-bottom-color: var(--gold-soft); background: var(--gold-wash-strong); color: var(--gold-soft); }
.v3-step-tabs button[data-passed="true"] > span::after { content: ' ✓'; color: var(--state-ok-text); }
.v3-step-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 36px; padding: clamp(24px,3.5vw,44px); min-height: 265px; align-items: center; }
.v3-step-panel h3 { font-size: 26px; line-height: 1.45; margin: 16px 0 12px; }
.v3-step-panel [data-step-body] { color: var(--tx-on-dark-muted); font-size: 15px; line-height: 1.9; margin: 0; }
.v3-step-evidence { border-left: 1px solid var(--gold-edge-strong); padding-left: 28px; }
.v3-step-evidence ul { list-style: none; padding: 0; margin: 16px 0 0; }
.v3-step-evidence li { font-size: 14px; line-height: 1.8; padding: 7px 0; border-bottom: 1px solid var(--ink-line); }
.v3-workflow-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 28px; border-top: 1px solid var(--ink-line); }
.v3-workflow-controls > span { font-size: 12px; color: var(--tx-on-dark-muted); }
.v3-workflow-controls > div { display: flex; gap: 8px; }
.v3-round-btn { width: 44px; height: 44px; border: 1px solid var(--ink-line-strong); border-radius: 50%; background: var(--ink-850); color: var(--tx-on-dark); cursor: pointer; font-size: 18px; }
.v3-round-btn:disabled { color: var(--tx-on-dark-dim); opacity: .5; cursor: default; }
.v3-buildup-section { background: var(--ink-900); }
.v3-build-loop ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 28px; gap: 8px; }
.v3-build-loop li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--ink-line-strong); border-radius: 5px; font-size: 12px; }
.v3-build-loop li:not(:last-child)::after { content: '→'; color: var(--tx-on-dark-dim); }
.v3-build-loop .v3-build-issue { color: var(--gold-soft); border-color: var(--gold-edge-strong); }
.v3-build-loop .v3-build-result { color: var(--state-ok-text); }
.v3-build-loop blockquote { margin: 0; font-size: 26px; line-height: 1.6; letter-spacing: -.025em; }
.v3-build-loop blockquote strong { font-weight: 550; }
.v3-build-loop > p { font: 500 11px/1.9 var(--font-mono); color: var(--tx-on-dark-dim); margin: 20px 0 0; }
.v3-memory-visual { position: relative; padding: 20px 16px 0; }
.v3-memory-layer { position: relative; padding: 16px; text-align: center; font-size: 13px; color: var(--tx-on-light-muted); background: var(--paper-200); border: 1px solid var(--paper-line-strong); border-radius: 8px 8px 0 0; margin: -8px auto 0; }
.v3-memory-layer:nth-child(1) { max-width: 88%; }
.v3-memory-layer:nth-child(2) { max-width: 94%; }
.v3-memory-focus { position: relative; border: 1px solid var(--gold-edge-strong); padding: 32px 22px; text-align: center; background: var(--paper-000); border-radius: 8px; margin-top: -5px; box-shadow: 0 15px 30px rgba(26,24,21,.05); }
.v3-memory-focus strong { display: block; margin: 12px 0 20px; font-size: 28px; line-height: 1.45; font-weight: 600; }
.v3-memory-focus > span:last-child { font-size: 13px; color: var(--tx-on-light-muted); }
.v3-review-board { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); border: 1px solid var(--ink-line-strong); border-radius: 12px; overflow: hidden; }
.v3-review-voices { padding: 20px 30px; background: var(--ink-900); }
.v3-review-voices > div { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1fr); border-bottom: 1px solid var(--ink-line); padding: 14px 0; gap: 20px; }
.v3-review-voices > div:last-child { border: 0; }
.v3-review-voices span { color: var(--gold-soft); font: 500 16px/1.8 var(--font-mono); }
.v3-review-voices p { font-size: 14px; color: var(--tx-on-dark-muted); margin: 0; }
.v3-review-resolution { padding: 30px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.v3-review-resolution > span { grid-column: 1/-1; }
.v3-review-resolution h3 { font-size: 20px; margin: 0 0 12px; }
.v3-review-resolution p { font-size: 14px; color: var(--tx-on-dark-muted); margin: 0 0 16px; }
.v3-review-resolution > div > span { font: 500 10px/1.7 var(--font-mono); color: var(--tx-on-dark-dim); overflow-wrap: anywhere; }
.v3-disclaimer { color: var(--tx-on-dark-dim); font-size: 12px; line-height: 1.8; margin: 22px 0 0; }
.v3-paper .v3-disclaimer { color: var(--tx-on-light-dim); }
.v3-execution-section { background: var(--ink-900); }
.v3-execution-map { text-align: center; border-top: 1px solid var(--gold-edge-strong); border-bottom: 1px solid var(--ink-line-strong); padding: 30px 0; }
.v3-execution-map > strong { display: block; font-size: 27px; line-height: 1.5; margin: 10px 0 22px; font-weight: 600; }
.v3-execution-gate { width: fit-content; margin: auto; border: 1px solid var(--gold-edge-strong); color: var(--gold-soft); padding: 10px 16px; border-radius: 6px; font-size: 13px; }
.v3-execution-workers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 25px 0 18px; }
.v3-execution-workers span { background: var(--ink-850); border: 1px solid var(--ink-line-strong); padding: 14px 8px; font-size: 13px; border-radius: 6px; }
.v3-tool-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; color: var(--tx-on-dark-muted); font: 12px/1.7 var(--font-mono); }
.v3-execution-map small { display: block; margin-top: 20px; font-size: 11px; color: var(--tx-on-dark-dim); }
.v3-governor { border-top: 1px solid var(--paper-line-strong); }
.v3-governor > div { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 6px 16px; padding: 20px 0; border-bottom: 1px solid var(--paper-line-strong); }
.v3-governor > div > span { grid-row: 1/3; font: 500 13px/1.8 var(--font-mono); color: var(--gold-on-light); }
.v3-governor b { font-size: 18px; font-weight: 600; }
.v3-governor p { margin: 0; font-size: 14px; color: var(--tx-on-light-muted); }
.v3-governor footer { font-size: 12px; color: var(--tx-on-light-dim); padding-top: 20px; line-height: 1.8; }
.v3-workspace-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 34px; }
.v3-workspace-heading .v3-section-head { margin: 0; max-width: 670px; }
.v3-workspace-heading > a { flex-shrink: 0; }
.v3-workspace { border: 1px solid var(--ink-line-strong); border-radius: 12px; overflow: hidden; background: var(--ink-900); }
.v3-workspace-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 17px 24px; border-bottom: 1px solid var(--ink-line); }
.v3-workspace-bar > span:first-child { font: 500 12px/1.7 var(--font-mono); color: var(--tx-on-dark-muted); }
.v3-workspace-body { display: grid; grid-template-columns: minmax(0,.27fr) minmax(0,.73fr); }
.v3-workspace-body aside { display: flex; flex-direction: column; gap: 14px; padding: 26px 22px; border-right: 1px solid var(--ink-line); font-size: 13px; }
.v3-workspace-body aside b { font-size: 17px; font-weight: 550; }
.v3-workspace-active { background: var(--gold-wash-strong); color: var(--gold-soft); padding: 10px; border-left: 2px solid var(--gold-soft); }
.v3-workspace-body aside > span:nth-last-child(2) { color: var(--tx-on-dark-dim); margin-top: 26px; }
.v3-workspace-body aside p { color: var(--tx-on-dark-muted); font-size: 12px; line-height: 1.9; margin: 0; }
.v3-workspace-main { padding: 28px 32px; min-width: 0; }
.v3-workspace-goal h3 { font-size: 27px; margin: 10px 0; line-height: 1.45; }
.v3-workspace-goal p { color: var(--tx-on-dark-muted); font-size: 13px; margin: 0 0 24px; }
.v3-workspace-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 26px; }
.v3-workspace-facts > div { display: flex; flex-direction: column; gap: 5px; }
.v3-workspace-facts span { font-size: 11px; color: var(--tx-on-dark-dim); }
.v3-workspace-facts b { font-size: 13px; font-weight: 500; line-height: 1.7; }
.v3-workspace-outputs { display: grid; grid-template-columns: 75px minmax(0,1fr); gap: 8px 14px; border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); padding-block: 20px; margin: 24px 0 12px; font-size: 13px; }
.v3-workspace-outputs > span { color: var(--tx-on-dark-dim); }
.v3-workspace-outputs > b { font-weight: 550; }
.v3-workspace summary { cursor: pointer; min-height: 44px; display: list-item; padding-block: 12px; font-size: 13px; color: var(--gold-soft); }
.v3-advanced-info { display: flex; flex-wrap: wrap; gap: 8px; }
.v3-advanced-info span { padding: 7px 10px; border: 1px solid var(--ink-line-strong); font-size: 11px; border-radius: 4px; }
.v3-workspace details p { font-size: 11px; color: var(--tx-on-dark-dim); margin: 12px 0 0; }
.v3-use-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--paper-line-strong); padding-bottom: 18px; }
.v3-use-tabs button { min-height: 44px; border: 1px solid var(--paper-line-strong); border-radius: 5px; padding: 9px 18px; background: transparent; color: var(--tx-on-light-muted); cursor: pointer; font: 500 14px/1.6 var(--font-sans); }
.v3-use-tabs button[aria-selected="true"] { background: var(--ink-900); color: var(--tx-on-dark); border-color: var(--ink-900); }
.v3-use-panel { padding-top: 30px; min-height: 280px; }
.v3-use-panel h3 { font-size: 27px; line-height: 1.4; margin: 10px 0 12px; }
.v3-use-panel [data-use-body] { color: var(--tx-on-light-muted); font-size: 15px; margin: 0; max-width: 660px; }
.v3-use-panel ol { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 30px 0 20px; }
.v3-use-panel li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 550; }
.v3-use-panel li:not(:last-child)::after { content: '→'; font-weight: 400; color: var(--gold-on-light); }
.v3-use-result { font-size: 13px; color: var(--gold-on-light); padding-top: 18px; border-top: 1px solid var(--paper-line); margin: 0; }
.v3-control-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.v3-control-grid article { min-width: 0; border-top: 1px solid var(--ink-line-strong); padding-top: 26px; }
.v3-control-symbol { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--gold-edge-strong); color: var(--gold-soft); font-size: 26px; border-radius: 50%; margin-bottom: 24px; }
.v3-control-grid h3 { font-size: 18px; margin: 0 0 12px; }
.v3-control-grid p { font-size: 14px; color: var(--tx-on-dark-muted); margin: 0 0 20px; }
.v3-control-state { font-size: 11px; line-height: 1.8; color: var(--gold-soft); }
.v3-comparison-section { background: var(--ink-900); }
.v3-comparison { border-top: 1px solid var(--ink-line-strong); }
.v3-comparison > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; border-bottom: 1px solid var(--ink-line); }
.v3-comparison > div > span,.v3-comparison > div > strong { padding: 16px 20px; font-size: 14px; line-height: 1.7; }
.v3-comparison > div > span { color: var(--tx-on-dark-dim); }
.v3-comparison > div > strong { font-weight: 500; background: var(--gold-wash); }
.v3-comparison .v3-compare-head > span,.v3-comparison .v3-compare-head > strong { font-size: 12px; font-weight: 600; color: var(--tx-on-dark-muted); }
.v3-comparison .v3-compare-head > strong { color: var(--gold-soft); }
.v3-final { text-align: center; background: radial-gradient(ellipse at 50% 100%,rgba(203,178,131,.1),transparent 70%); padding-block: clamp(78px,9vw,130px); }
.v3-final .shell > p:not(.v3-eyebrow) { color: var(--tx-on-dark-muted); font-size: 17px; line-height: 1.9; margin: 26px 0 0; }
.v3-final .v3-actions { justify-content: center; }
.v3-final small { display: block; color: var(--tx-on-dark-dim); font-size: 12px; line-height: 1.8; margin-top: 22px; }
.home-v3 button:focus-visible,.home-v3 summary:focus-visible,.home-v3 [role="tabpanel"]:focus-visible { outline: 2px solid var(--focus-dark); outline-offset: 4px; }
.home-v3 .v3-paper button:focus-visible,.home-v3 .v3-paper [role="tabpanel"]:focus-visible { outline-color: var(--focus-light); }
@media (max-width: 1100px) {
  .v3-hero-grid { grid-template-columns: minmax(0,1fr); gap: 48px; }
  .v3-hero-copy { max-width: 760px; }
  .v3-mesh { width: 100%; max-width: 750px; margin-inline: auto; }
  .v3-hero h1 { font-size: clamp(2.4rem,1.4rem + 4vw,4.3rem); }
  .v3-mesh-core { min-height: 185px; aspect-ratio: auto; border-radius: 24px; }
  .v3-mesh-core > .v3-micro { font-size: 10px; }
  .v3-mesh-core > span:last-child { font-size: 11px; }
  .v3-resource-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
  .v3-resource-grid article { border-bottom: 1px solid var(--ink-line); padding-left: 18px; }
  .v3-resource-grid article:first-child { padding-left: 18px; }
  .v3-resource-grid article:nth-child(3) { border-right: 0; }
  .v3-workspace-heading { display: block; }
  .v3-workspace-heading > a { margin-top: 20px; }
}
@media (max-width: 800px) {
  .v3-split { grid-template-columns: minmax(0,1fr); gap: 36px; }
  .v3-frictions,.v3-control-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 22px; }
  .v3-step-tabs { display: flex; overflow-x: auto; scrollbar-width: thin; }
  .v3-step-tabs button { flex: 0 0 125px; }
  .v3-review-board { grid-template-columns: minmax(0,1fr); }
  .v3-review-voices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 24px; }
  .v3-review-voices > div { display: block; border: 0; padding: 0; }
  .v3-review-voices p { margin-top: 8px; }
  .v3-workspace-body { grid-template-columns: minmax(0,1fr); }
  .v3-workspace-body aside { border-right: 0; border-bottom: 1px solid var(--ink-line); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px 20px; padding: 20px 24px; }
  .v3-workspace-body aside > span:nth-last-child(2) { margin-top: 0; }
}
@media (max-width: 640px) {
  .v3-hero { padding-block: 46px 52px; }
  .v3-hero h1 { font-size: clamp(2.1rem,1.5rem + 2.8vw,3rem); }
  .v3-hero-sub { font-size: 18px; margin-top: 22px; }
  .v3-lead { font-size: 15px; line-height: 1.85; }
  .v3-eyebrow { font-size: 10px; letter-spacing: .11em; margin-bottom: 17px; }
  .v3-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .v3-actions .btn { width: 100%; font-size: 14px; min-height: 50px; }
  .v3-hero-note { font-size: 11px; }
  .v3-mesh-network { display: flex; flex-direction: column; }
  .v3-mesh-lines,.v3-mesh-bank { display: none; }
  .v3-mesh-core { width: 100%; min-height: 145px; border-radius: 12px; aspect-ratio: auto; }
  .v3-mesh-core strong { font-size: 25px; }
  .v3-mesh-core strong br { display: none; }
  .v3-mesh-core strong { word-spacing: .1em; }
  .v3-mesh-request { padding-inline: 18px; }
  .v3-mesh-request p { font-size: 15px; }
  .v3-mesh-result b { font-size: 12px; }
  .v3-section { padding-block: 58px; }
  .v3-section h2,.v3-final h2 { font-size: clamp(1.75rem,1.45rem + 1.8vw,2.2rem); }
  .v3-section-head > p:not(.v3-eyebrow) { font-size: 15px; }
  .v3-section-head > .v3-section-note { font-size: 12px; }
  .v3-frictions { gap: 24px 18px; }
  .v3-frictions h3 { font-size: 16px; }
  .v3-frictions p { font-size: 13px; }
  .v3-bridge { font-size: 17px; margin-top: 30px; padding-left: 16px; }
  .v3-engine-map dl { padding-inline: 16px; }
  .v3-engine-map dl > div { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 10px; font-size: 12px; }
  .v3-resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v3-resource-grid article { padding: 20px 14px; }
  .v3-resource-grid article:first-child { padding-left: 14px; }
  .v3-resource-grid article:nth-child(3) { border-right: 1px solid var(--ink-line-strong); }
  .v3-resource-grid article:nth-child(even) { border-right: 0; }
  .v3-resource-grid article:last-child { grid-column: 1/-1; }
  .v3-resource-grid p { font-size: 12px; }
  .v3-resource-bottom { display: block; }
  .v3-resource-bottom p { margin-top: 10px; }
  .v3-router-story blockquote { font-size: 18px; }
  .v3-router-story li { grid-template-columns: minmax(0,1fr); gap: 3px; }
  .v3-workflow-request { padding: 20px; }
  .v3-workflow-request p { font-size: 16px; }
  .v3-step-panel { grid-template-columns: minmax(0,1fr); gap: 24px; padding: 24px 20px; min-height: 380px; }
  .v3-step-panel h3 { font-size: 22px; }
  .v3-step-evidence { padding-left: 18px; }
  .v3-step-evidence li { font-size: 12px; }
  .v3-step-panel [data-step-body] { font-size: 13px; }
  .v3-workflow-controls { padding: 12px 20px; }
  .v3-workflow-controls > span { flex: 1 1 135px; font-size: 11px; }
  .v3-build-loop blockquote { font-size: 21px; }
  .v3-memory-focus strong { font-size: 24px; }
  .v3-memory-layer { font-size: 11px; padding: 13px 8px; }
  .v3-review-voices { gap: 12px; padding: 20px; }
  .v3-review-voices span { font-size: 13px; }
  .v3-review-voices p { font-size: 11px; }
  .v3-review-resolution { padding: 22px; grid-template-columns: minmax(0,1fr); gap: 24px; }
  .v3-review-resolution h3 { font-size: 18px; }
  .v3-execution-workers { gap: 7px; }
  .v3-execution-workers span { padding-inline: 6px; font-size: 11px; }
  .v3-execution-gate { font-size: 12px; padding-inline: 12px; }
  .v3-workspace-main { padding: 24px 20px; }
  .v3-workspace-goal h3 { font-size: 23px; }
  .v3-workspace-facts { gap: 18px; }
  .v3-workspace-facts b { font-size: 12px; }
  .v3-workspace-body aside { padding: 20px; font-size: 11px; gap: 8px 14px; }
  .v3-workspace-body aside b { font-size: 14px; }
  .v3-workspace-bar { padding-inline: 20px; }
  .v3-use-tabs { gap: 8px; }
  .v3-use-tabs button { padding: 8px 13px; font-size: 12px; }
  .v3-use-panel h3 { font-size: 22px; }
  .v3-use-panel [data-use-body] { font-size: 14px; }
  .v3-use-panel li { font-size: 13px; }
  .v3-control-grid { gap: 30px 18px; }
  .v3-control-grid h3 { font-size: 16px; }
  .v3-control-grid p { font-size: 12px; }
  .v3-control-state { font-size: 10px; }
  .v3-comparison > div { gap: 0; }
  .v3-comparison > div > span,.v3-comparison > div > strong { padding: 13px 10px; font-size: 12px; }
  .v3-comparison .v3-compare-head > span,.v3-comparison .v3-compare-head > strong { font-size: 10px; }
  .v3-final { padding-block: 74px; }
  .v3-final .shell > p:not(.v3-eyebrow) { font-size: 15px; }
  .v3-final small { font-size: 11px; }
}
@media (max-width: 380px) {
  .v3-hero h1 { font-size: 33px; }
  .v3-frictions { grid-template-columns: minmax(0,1fr); }
  .v3-frictions li { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 7px 12px; padding-top: 16px; }
  .v3-frictions h3 { margin: 0; }
  .v3-frictions p { grid-column: 2; }
  .v3-frictions li > span { line-height: 1.7; }
  .v3-workspace-facts { grid-template-columns: minmax(0,1fr); }
  .v3-control-grid { grid-template-columns: minmax(0,1fr); }
  .v3-control-grid article { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 8px 18px; padding-top: 20px; }
  .v3-control-symbol { grid-row: 1/4; width: 44px; height: 44px; margin: 0; }
  .v3-control-grid h3,.v3-control-grid p { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-mesh-lines .v3-mesh-route { animation: none; stroke-dasharray: none; }
}
@media (forced-colors: active) {
  .v3-mesh-core,.v3-engine-map,.v3-workflow,.v3-workspace { border-color: CanvasText; }
  .v3-step-tabs button[aria-selected="true"],.v3-use-tabs button[aria-selected="true"] { border: 2px solid Highlight; }
}
