/* ==========================================================================
   Bridgehorse · 千里马 — shared design system
   Paper-white document surface, ink neutrals of one warm temperature,
   one seal-red accent for action and "current" state.
   ========================================================================== */

:root {
  /* color */
  --paper: #ffffff;
  --wash: #f6f5f1;
  --ink: #1a1916;
  --ink-2: #4a4740;
  --ink-3: #6e6a62;        /* 5.38:1 on paper */
  --rule: #e4e1da;
  --rule-2: #cfcbc2;
  --seal: #c02218;         /* accent = logo red: action + current state, 6.0:1 on white */
  --seal-ink: #971a12;     /* hover / pressed */
  --seal-wash: #fcecea;
  --ok: #1f6b45;
  --ok-wash: #edf6f1;
  --warn: #8c5811;
  --warn-wash: #fcf4e8;
  --bad: #8a2424;
  --bad-wash: #fbefef;

  /* type */
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --fs-display: clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem);   /* 36 → 56 */
  --fs-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);       /* 26 → 36 */
  --fs-h3: 1.25rem;
  --fs-lede: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1.0625rem;  /* 17 */
  --fs-sm: 0.9375rem;    /* 15 */
  --fs-xs: 0.8125rem;    /* 13 */

  /* space (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 24px;
  --max: 1200px;

  /* shape */
  --r: 4px;
  --r-sm: 2px;
  --shadow-pop: 0 12px 32px -12px rgba(26, 25, 22, 0.28);

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 140ms;
  --t: 220ms;
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --s9: 64px; --s8: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--seal); }

:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; border-radius: var(--r-sm); }

.code, code, .mono { font-family: var(--mono); font-size: 0.92em; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.zh { font-family: var(--cjk); }
.muted { color: var(--ink-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: var(--s4); top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--r);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: var(--s3); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }

/* ---------- Seal (brand mark + stage stamp) ---------- */

.seal {
  --size: 28px;
  width: var(--size); height: var(--size);
  flex: none;
  display: inline-grid; place-items: center;
  background: var(--seal); color: #fff;
  border-radius: var(--r-sm);
  font-family: var(--cjk); font-weight: 600; font-size: calc(var(--size) * 0.6); line-height: 1;
  box-shadow: inset 0 0 0 2px var(--seal), inset 0 0 0 3px rgba(255,255,255,0.85);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s5);
  border: 1px solid transparent; border-radius: var(--r);
  font: 500 var(--fs-sm)/1 var(--sans);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn-primary { background: var(--seal); color: #fff; }
.btn-primary:hover { background: var(--seal-ink); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--rule-2); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 var(--s3); }
.btn-ghost:hover { color: var(--seal); }
.btn-lg { min-height: 52px; padding: 0 var(--s6); font-size: var(--fs-body); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- Site header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--s5); height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-word { font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; }
.brand-mark { display: block; height: 36px; width: auto; flex: none; }
.brand-type { display: block; height: 19px; width: auto; flex: none; margin-top: 3px; }
.brand:has(.brand-mark) { gap: 8px; }
.brand-mark + .brand-type + .brand-zh { margin-left: 4px; }
.brand-zh { font-family: var(--cjk); font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: 0.08em; padding-left: 10px; border-left: 1px solid var(--rule-2); }

.site-nav { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.site-nav a.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3);
  font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; border-radius: var(--r);
}
.site-nav a.nav-link:hover, .site-nav a.nav-link[aria-current="page"] { color: var(--ink); }
.site-nav a.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--seal); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-actions { display: flex; align-items: center; gap: var(--s2); margin-left: var(--s3); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--rule-2); border-radius: var(--r);
  background: var(--paper); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; content: "";
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: var(--s2) var(--gutter) var(--s5);
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link { border-bottom: 1px solid var(--rule); border-radius: 0; font-size: var(--fs-body); padding: 0; }
  .nav-actions { margin: var(--s4) 0 0; flex-direction: column; align-items: stretch; }
  .brand-zh { display: none; }
}

/* ---------- Sections & type ---------- */

.section { padding: var(--s9) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-tight { padding: var(--s8) 0; }
.section-wash { background: var(--wash); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-wash + .section { border-top: 0; }

.display { font-size: var(--fs-display); line-height: 1.08; letter-spacing: -0.012em; font-weight: 500; }
.h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.01em; font-weight: 500; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: 0; font-weight: 600; }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }

.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s7); align-items: end; margin-bottom: var(--s7); }
.section-head .lede { max-width: 56ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: var(--s4); margin-bottom: var(--s6); } }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { margin-top: var(--s7); font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.005em; }
.prose h3 { margin-top: var(--s6); font-size: var(--fs-h3); font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--s2); }
.prose li::marker { color: var(--ink-3); }

.text-link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule-2); }
.text-link:hover { color: var(--seal); text-decoration-color: var(--seal); }

/* ---------- Hero ---------- */

.hero { padding: var(--s8) 0 var(--s9); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: var(--s8); align-items: start; }
.hero-copy { padding-top: var(--s6); }
.hero-copy .display { max-width: 15ch; }
.hero-copy .lede { margin-top: var(--s5); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-note { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--ink-3); }
.hero-note strong { color: var(--ink); font-weight: 500; }
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .hero-copy { padding-top: 0; }
}

/* ---------- Docket (signature): the order route ---------- */

.docket {
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  font-size: var(--fs-sm);
}
.docket-head {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s4);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--ink);
}
.docket-label { font-size: var(--fs-xs); color: var(--ink-3); }
.docket-title { font-weight: 600; font-size: 1rem; line-height: 1.35; }
.docket-no { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-2); text-align: right; }
.docket-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-top: var(--s2); font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-2); }
.docket-foot { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s5); border-top: 1px solid var(--rule); font-size: var(--fs-xs); color: var(--ink-3); }

.route { list-style: none; padding: var(--s2) 0; }
.route-step {
  position: relative;
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 0 var(--s4);
  padding: 9px var(--s5);
}
.route-step::before { /* connector */
  content: ""; position: absolute; left: calc(var(--s5) + 11.5px); top: 0; bottom: 0; width: 1px; background: var(--rule-2);
}
.route-step:first-child::before { top: 50%; }
.route-step:last-child::before { bottom: 50%; }
.route-step.is-done::before { background: var(--ink); }
.route-mark {
  position: relative; z-index: 1;
  width: 20px; height: 20px; margin: 2px;
  border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: var(--paper);
  display: grid; place-items: center;
}
.is-done .route-mark { background: var(--seal); border-color: var(--seal); transform: rotate(-4deg); }
.is-done .route-mark svg { width: 12px; height: 12px; color: #fff; }
.is-current .route-mark { border: 2px solid var(--seal); background: var(--seal-wash); }
.is-current .route-mark::after { content: ""; width: 6px; height: 6px; background: var(--seal); border-radius: 1px; }
.route-name { font-weight: 500; line-height: 24px; }
.is-upcoming .route-name { color: var(--ink-3); font-weight: 400; }
.is-current .route-name { color: var(--seal); font-weight: 600; }
.route-gate { grid-column: 2 / 3; font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
.is-current .route-gate { color: var(--ink-2); }
.route-date { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3); line-height: 24px; text-align: right; white-space: nowrap; }
.is-current .route-date { color: var(--seal); }

@keyframes stamp {
  0% { transform: scale(1.6) rotate(-14deg); opacity: 0; }
  60% { transform: scale(0.94) rotate(-3deg); opacity: 1; }
  100% { transform: scale(1) rotate(-4deg); opacity: 1; }
}
.route-mark.stamp-in { animation: stamp 420ms var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .route-mark.stamp-in { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Ledger (tables) ---------- */

.ledger { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--rule); }
.ledger th { font-weight: 500; font-size: var(--fs-xs); color: var(--ink-3); border-bottom: 1px solid var(--ink); padding-top: 0; }
.ledger td:last-child, .ledger th:last-child { padding-right: 0; }
.ledger .col-no { width: 3.5rem; font-family: var(--mono); color: var(--ink-3); }
.ledger .col-fee { text-align: right; white-space: nowrap; width: 13rem; }
.ledger .fee { font-family: var(--mono); font-size: 1.125rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.ledger .fee-note { display: block; font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s1); font-family: var(--sans); white-space: normal; max-width: 22ch; margin-left: auto; line-height: 1.4; }
.ledger .stage-name { font-weight: 600; color: var(--ink); }
.ledger .stage-zh { display: block; font-family: var(--cjk); font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }
.ledger td { color: var(--ink-2); }
.ledger tr:last-child td { border-bottom-color: var(--ink); }

.clause-ref { display: inline-block; font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-2); border: 1px solid var(--rule-2); border-radius: var(--r-sm); padding: 0 5px; margin: 0 4px 4px 0; line-height: 20px; white-space: nowrap; }

@media (max-width: 760px) {
  .ledger-stack thead { display: none; }
  .ledger-stack, .ledger-stack tbody, .ledger-stack tr, .ledger-stack td { display: block; width: 100%; }
  .ledger-stack tr { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
  .ledger-stack td { border: 0; padding: 2px 0; }
  .ledger-stack td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s2); }
  .ledger-stack .col-fee { text-align: left; }
  .ledger-stack tr:last-child { border-bottom-color: var(--ink); }
}

/* ---------- Status chips (shared with the schedule) ---------- */

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--s2); border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-ok { color: var(--ok); background: var(--ok-wash); }
.chip-warn { color: var(--warn); background: var(--warn-wash); }
.chip-pending { color: var(--ink-2); background: var(--paper); border-color: var(--rule-2); }
.chip-bad { color: var(--bad); background: var(--bad-wash); }
.chip-seal { color: var(--seal); background: var(--seal-wash); }

/* ---------- Schedule specimen ---------- */

.specimen { border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.specimen-bar { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s5); background: var(--ink); color: #f1efe9; font-family: var(--mono); font-size: var(--fs-xs); }
.specimen-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 120px; border-top: 1px solid var(--rule); }
.specimen-row > div { padding: var(--s4) var(--s5); }
.specimen-row > div + div { border-left: 1px solid var(--rule); }
.specimen-head > div { padding-top: var(--s2); padding-bottom: var(--s2); font-size: var(--fs-xs); color: var(--ink-3); }
.specimen .clause-no { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3); }
.specimen .clause-title { font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; margin-top: 2px; }
.specimen .clause-zh { font-family: var(--cjk); font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }
.specimen .clause-purpose { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s2); }
.tick-list { list-style: none; display: grid; gap: 6px; font-size: var(--fs-xs); color: var(--ink-2); }
.tick-list li { display: grid; grid-template-columns: 16px 1fr; gap: var(--s2); line-height: 1.45; }
.tick { width: 14px; height: 14px; margin-top: 2px; border: 1px solid var(--rule-2); border-radius: 2px; display: grid; place-items: center; }
.tick.on { background: var(--ink); border-color: var(--ink); }
.tick.on::after { content: ""; width: 7px; height: 4px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
@media (max-width: 640px) {
  .specimen-row { grid-template-columns: 1fr; }
  .specimen-row > div + div { border-left: 0; border-top: 1px dashed var(--rule); }
  .specimen-head { display: none; }
}

.sections-list { list-style: none; border-top: 1px solid var(--ink); }
.sections-list li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: var(--s4); align-items: baseline; padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.sections-list .roman { font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-3); }
.sections-list .t { font-weight: 500; }
.sections-list .tz { display: block; font-family: var(--cjk); font-size: var(--fs-xs); color: var(--ink-3); }
.sections-list .n { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap; }

/* ---------- Two-column feature list (no card grids) ---------- */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s6); } }

.def-list { border-top: 1px solid var(--ink); }
.def-item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--rule); }
.def-item dt { font-weight: 600; }
.def-item dt .stage-zh { display: block; font-family: var(--cjk); font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.def-item dt .mono { margin-right: 6px; font-weight: 400; }
.def-item dd { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.def-item dd .clause-ref { margin-top: var(--s2); }
@media (max-width: 640px) { .def-item { grid-template-columns: 1fr; gap: var(--s2); } }

/* ---------- Markets index ---------- */

.market-rows { border-top: 1px solid var(--ink); }
.market-row {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) auto; gap: var(--s5); align-items: center;
  padding: var(--s5) 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink);
  transition: background-color var(--t-fast) var(--ease);
}
.market-row:hover { color: var(--ink); background: var(--wash); }
.market-row .m-name { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.market-row .m-name small { display: block; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; letter-spacing: 0; margin-top: 2px; font-family: var(--mono); }
.market-row .m-desc { font-size: var(--fs-sm); color: var(--ink-2); }
.market-row .m-go { font-size: var(--fs-sm); color: var(--seal); white-space: nowrap; }
@media (max-width: 760px) {
  .market-row { grid-template-columns: 1fr; gap: var(--s2); }
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 24px; gap: var(--s4); align-items: center;
  padding: var(--s5) 0; font-weight: 500; font-size: 1.0625rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; justify-self: end;
  background: linear-gradient(var(--ink), var(--ink)) center/12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 12px no-repeat;
  transition: transform var(--t) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--seal); }
.faq .answer { padding: 0 0 var(--s5); color: var(--ink-2); max-width: 70ch; }
.faq .answer > * + * { margin-top: var(--s3); }

/* ---------- Disclosure + CTA band ---------- */

.cta-band { background: var(--ink); color: #f1efe9; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s6); align-items: center; padding-top: var(--s8); padding-bottom: var(--s8); }
.cta-band .h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: #c9c5bc; margin-top: var(--s3); max-width: 52ch; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: #5d5a53; }
.cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }
.cta-band .cta-actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

.disclosure { border-top: 1px solid var(--rule); background: var(--wash); font-size: var(--fs-xs); color: var(--ink-3); }
.disclosure .wrap { padding-top: var(--s4); padding-bottom: var(--s4); }

/* ---------- Footer ---------- */

.site-footer { padding: var(--s8) 0 var(--s6); border-top: 1px solid var(--rule); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: var(--s6); }
.footer-grid h2 { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-3); margin-bottom: var(--s3); }
.footer-grid ul { list-style: none; display: grid; gap: var(--s2); }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--seal); }
.footer-about p { color: var(--ink-2); max-width: 34ch; margin-top: var(--s4); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); padding-top: var(--s4); border-top: 1px solid var(--rule); color: var(--ink-3); font-size: var(--fs-xs); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding: var(--s8) 0 var(--s7); border-bottom: 1px solid var(--rule); }
.page-head .display { max-width: 20ch; }
.page-head .lede { margin-top: var(--s5); max-width: 60ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: var(--s5); }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--rule-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--seal); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-top: var(--s7); }
.facts > div { padding: var(--s4) var(--s4) var(--s4) 0; }
.facts > div + div { padding-left: var(--s4); border-left: 1px solid var(--rule); }
.facts dt { font-size: var(--fs-xs); color: var(--ink-3); }
.facts dd { margin: var(--s1) 0 0; font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

.lang-block { border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s5); background: var(--wash); }
.lang-block .lang-tag { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3); }
.lang-block p { margin-top: var(--s2); color: var(--ink-2); }
.lang-block h2 { font-size: 1.25rem; font-weight: 600; margin-top: var(--s2); }

.note { font-size: var(--fs-sm); color: var(--ink-3); }
.mt-1 { margin-top: var(--s2); } .mt-2 { margin-top: var(--s4); } .mt-3 { margin-top: var(--s5); } .mt-4 { margin-top: var(--s6); } .mt-5 { margin-top: var(--s7); }

/* ==========================================================================
   Landing structure: 1 pain → 2 outcomes + before/after → 3 proof → 4 start free + pricing
   ========================================================================== */

.eyebrow { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--seal); }
.hero-copy .eyebrow + .display { margin-top: var(--s4); }
.hero-pain .display { max-width: 17ch; }

/* 1 · what usually goes wrong (a marked-up document, not cards) */
.misses { border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); }
.misses-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s4); padding: var(--s3) var(--s5); background: var(--ink); color: #f1efe9; font-family: var(--mono); font-size: var(--fs-xs); }
.misses ol { list-style: none; counter-reset: miss; }
.misses li { counter-increment: miss; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s3); padding: var(--s4) var(--s5); border-top: 1px solid var(--rule); }
.misses li:first-child { border-top: 0; }
.misses li::before { content: counter(miss, decimal-leading-zero); font-family: var(--mono); font-size: var(--fs-xs); color: var(--seal); padding-top: 3px; }
.misses .m-what { font-weight: 600; line-height: 1.35; }
.misses .m-cost { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-2); }
.misses-foot { padding: var(--s3) var(--s5); border-top: 1px solid var(--ink); font-size: var(--fs-sm); color: var(--ink-2); }
.misses-foot strong { color: var(--seal); font-weight: 600; }

/* 2 · outcomes */
.outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.outcome { padding: var(--s5) var(--s5) var(--s5) 0; }
.outcome + .outcome { padding-left: var(--s5); border-left: 1px solid var(--rule); }
.outcome .o-no { font-family: var(--mono); font-size: var(--fs-xs); color: var(--seal); }
.outcome h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; margin-top: var(--s2); }
.outcome p { margin-top: var(--s2); font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 960px) {
  .outcomes { grid-template-columns: 1fr 1fr; }
  .outcome:nth-child(3) { padding-left: 0; border-left: 0; }
  .outcome:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .outcomes { grid-template-columns: 1fr; }
  .outcome, .outcome + .outcome { padding-left: 0; border-left: 0; }
  .outcome + .outcome { border-top: 1px solid var(--rule); }
}

/* 2 · before / after pairs */
.ba-list { display: grid; gap: var(--s6); margin-top: var(--s8); }
.ba { border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.ba-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s4); padding: var(--s3) var(--s5); border-bottom: 1px solid var(--ink); }
.ba-title h3 { font-size: 1.0625rem; font-weight: 600; }
.ba-title .ba-tag { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3); }
.ba-pair { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); }
.ba-side { padding: var(--s5); }
.ba-before { background: var(--wash); }
.ba-label { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.ba-after .ba-label { color: var(--ok); }
.ba-arrow { display: grid; place-items: center; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); color: var(--seal); font-size: 1.25rem; background: var(--paper); }
.ba-quote { margin-top: var(--s3); font-size: 1.0625rem; line-height: 1.45; color: var(--ink-2); }
.ba-quote q { quotes: "“" "”"; }
.ba-lines { list-style: none; margin-top: var(--s3); font-family: var(--mono); font-size: var(--fs-xs); line-height: 1.6; }
.ba-lines li { display: flex; justify-content: space-between; gap: var(--s4); padding: 3px 0; border-bottom: 1px dotted var(--rule-2); }
.ba-lines li:last-child { border-bottom: 0; }
.ba-lines .v { text-align: right; color: var(--ink); }
.ba-lines .bad { color: var(--bad); }
.ba-lines .ok { color: var(--ok); }
.ba-lines .total { font-weight: 500; border-top: 1px solid var(--ink); border-bottom: 0; margin-top: var(--s1); padding-top: var(--s2); }
.ba-verdict { margin-top: var(--s4); font-size: var(--fs-sm); font-weight: 600; }
.ba-verdict.bad { color: var(--bad); }
.ba-verdict.ok { color: var(--ok); }
.ba-before .ba-verdict { color: var(--ink-3); font-weight: 500; }
@media (max-width: 760px) {
  .ba-pair { grid-template-columns: 1fr; }
  .ba-arrow { border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--s1) 0; transform: rotate(90deg); height: 32px; width: 32px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--rule); }
}

/* 3 · proof */
.stats-line { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s7); padding: var(--s5) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: var(--s7); }
.stat .n { display: block; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.01em; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat .l { display: block; font-size: var(--fs-sm); color: var(--ink-3); margin-top: var(--s1); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s6); margin-bottom: var(--s7); }
.quotes:empty { display: none; }
.quote { border-left: 2px solid var(--seal); padding-left: var(--s5); }
.quote blockquote { font-size: 1.125rem; line-height: 1.5; }
.quote figcaption { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--ink-3); }
.quote figcaption strong { color: var(--ink); font-weight: 600; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.check { padding: var(--s5) var(--s5) var(--s5) 0; border-bottom: 1px solid var(--rule); }
.check:not(:nth-child(3n+1)) { padding-left: var(--s5); border-left: 1px solid var(--rule); }
.check dt { font-weight: 600; }
.check dt .mono { display: block; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; margin-bottom: var(--s1); }
.check dd { margin: var(--s2) 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 860px) {
  .checks { grid-template-columns: 1fr; }
  .check, .check:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
}

/* 4 · start free + pricing */
.start { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
@media (max-width: 960px) { .start { grid-template-columns: 1fr; } }
.free-step { border: 2px solid var(--seal); border-radius: var(--r); padding: var(--s6); background: var(--paper); }
.free-step .price-free { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.01em; }
.free-step .price-free small { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 400; letter-spacing: 0; margin-left: var(--s2); }
.free-step ul { list-style: none; margin-top: var(--s4); }
.free-step li { position: relative; padding: var(--s2) 0 var(--s2) 24px; border-top: 1px solid var(--rule); font-size: var(--fs-sm); }
.free-step li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.free-step .btn { margin-top: var(--s5); width: 100%; justify-content: center; }
.free-step .note { margin-top: var(--s3); text-align: center; }

.plan { border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); }
.plan-switch { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.plan-switch button { appearance: none; border: 0; background: var(--wash); color: var(--ink-2); font: inherit; font-size: var(--fs-sm); padding: var(--s3) var(--s4); min-height: 48px; cursor: pointer; text-align: left; }
.plan-switch button + button { border-left: 1px solid var(--ink); }
.plan-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--seal); }
.plan-switch .tag { display: inline-block; margin-left: var(--s2); padding: 1px 6px; border-radius: var(--r-sm); background: var(--seal); color: #fff; font-size: 11px; font-weight: 500; vertical-align: 1px; }
.plan-body { padding: var(--s6); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); }
.plan-price .amt { font-size: var(--fs-display); line-height: 1; letter-spacing: -0.015em; font-weight: 500; font-variant-numeric: tabular-nums; }
.plan-price .per { font-size: var(--fs-sm); color: var(--ink-3); }
.plan-anchor { margin-top: var(--s3); display: inline-block; padding: var(--s1) var(--s3); background: var(--ok-wash); color: var(--ok); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 500; }
.plan-scope { margin-top: var(--s4); color: var(--ink-2); font-size: var(--fs-sm); max-width: 60ch; }
.plan-then { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); font-size: var(--fs-sm); color: var(--ink-2); }
.plan-then strong { color: var(--ink); }
.vs { margin-top: var(--s5); border-top: 1px solid var(--ink); padding-top: var(--s4); }
.vs-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-size: var(--fs-sm); color: var(--ink-2); }
.vs-row label { color: var(--ink-2); }
.vs-row input { width: 9.5em; font: inherit; font-family: var(--mono); font-size: var(--fs-sm); padding: 6px 10px; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--paper); color: var(--ink); min-height: 40px; }
.vs-table { width: 100%; margin-top: var(--s3); border-collapse: collapse; font-size: var(--fs-sm); }
.vs-table td { padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
.vs-table td + td { text-align: right; font-family: var(--mono); white-space: nowrap; }
.vs-table tr.us td { color: var(--ink); font-weight: 600; }
.vs-table tr.us td + td { color: var(--ok); }
.vs-note { margin-top: var(--s2); font-size: var(--fs-xs); color: var(--ink-3); }

/* market pages: same 4 screens; the SEO line ("China sourcing agent for …") sits inside the H1 as its first line */
.display .eyebrow { display: block; margin-bottom: var(--s4); font-weight: 400; line-height: 1.5; }
.hero-copy .crumbs { margin-bottom: var(--s5); }
.hero-copy .facts { margin-top: var(--s7); }
.outcomes-split + .ba-list { margin-top: var(--s7); }
.stage-name .tag { display: inline-block; margin-left: var(--s2); padding: 1px 6px; border-radius: var(--r-sm); background: var(--seal); color: #fff; font-family: var(--sans); font-size: 11px; font-weight: 500; vertical-align: 2px; }

/* ==========================================================================
   v2 · Cards and photos
   Warm canvas, white cards with soft shadows, real photographs, a sans
   display face (Plus Jakarta Sans). Scoped to marketing pages (they carry .site-header), so the
   client portal keeps its own look.
   ========================================================================== */

:root {
  --canvas: #f6f4ef;
  --sand: #ece8df;
  --card: #ffffff;
  --display: "Plus Jakarta Sans", var(--sans);
  --r-card: 20px;
  --r-big: 28px;
  --shadow-card: 0 1px 2px rgba(26, 25, 22, 0.05), 0 10px 30px -12px rgba(26, 25, 22, 0.16);
  --shadow-lift: 0 2px 6px rgba(26, 25, 22, 0.06), 0 24px 48px -18px rgba(26, 25, 22, 0.28);
}

body:has(> .site-header) { background: var(--canvas); }
.site-header { background: rgba(246, 244, 239, 0.86); border-bottom-color: rgba(26, 25, 22, 0.06); }
.site-nav { background: var(--canvas); }
@media (min-width: 961px) { .site-nav { background: transparent; } }

/* type: sans display (Plus Jakarta Sans), seal-red accent word.
   Plus Jakarta Sans is already compact; keep tracking close to its own spacing
   (tighter than about -0.015em squeezes letters and word gaps at display sizes). */
.site-header ~ main .display,
.site-header ~ main .h2,
.cta-band .h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.site-header ~ main .display { font-size: clamp(2.5rem, 1.45rem + 3.9vw, 4.125rem); line-height: 1.1; letter-spacing: -0.012em; }
.site-header ~ main .h2, .cta-band .h2 { font-size: clamp(1.875rem, 1.45rem + 1.7vw, 2.625rem); line-height: 1.14; font-weight: 650; }
.display em, .h2 em { font-style: normal; color: var(--seal); }

/* pill buttons */
.site-header .btn, .site-header ~ main .btn, .cta-band .btn { border-radius: 999px; }
.site-header ~ main .btn-secondary { background: var(--card); border-color: rgba(26, 25, 22, 0.14); }
.site-header ~ main .btn-primary { box-shadow: 0 8px 20px -8px rgba(192, 34, 24, 0.5); }

/* sections: no rules between them, sand for alternate bands */
.site-header ~ main .section + .section { border-top: 0; }
.site-header ~ main .section-wash { background: var(--sand); border: 0; }
.site-header ~ main .page-head { border-bottom: 0; }

/* shared card surface */
.card-surface { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); }

/* ---------- 1 · hero with a photo ---------- */
.hero-pain { padding: var(--s7) 0 var(--s8); }
.hero-pain .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; }
.hero-pain .hero-copy { padding-top: 0; }
.hero-pain .display { max-width: 15ch; }

.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s6); font-size: var(--fs-sm); color: var(--ink-2); }
.trust-row li { display: inline-flex; align-items: center; gap: var(--s2); }
.trust-row li::before, .fc-checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%231f6b45' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

.hero-visual { position: relative; margin: 0; }
.hero-visual > img { width: 100%; height: auto; aspect-ratio: 10 / 11; object-fit: cover; border-radius: var(--r-big); box-shadow: var(--shadow-lift); background: var(--sand); }
.hero-visual > img.focus-right { object-position: 72% 50%; }
.float-card {
  position: absolute; background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 16px; box-shadow: var(--shadow-lift); font-size: var(--fs-sm); color: var(--ink);
}
.float-status { right: -36px; bottom: 36px; width: min(330px, 70%); padding: var(--s4) var(--s5); }
.float-badge { left: -28px; top: 32px; display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); font-weight: 600; max-width: 78%; }
.float-badge .seal { --size: 22px; }
.fc-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.fc-title { display: block; margin-top: var(--s1); font-weight: 600; }
.fc-stage { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); font-size: var(--fs-xs); color: var(--ink-2); }
.fc-stage b { color: var(--seal); font-weight: 600; }
.fc-bar { display: block; height: 6px; margin-top: var(--s2); border-radius: 99px; background: var(--sand); overflow: hidden; }
.fc-bar i { display: block; width: 78%; height: 100%; border-radius: inherit; background: var(--seal); }
.fc-checks { list-style: none; display: grid; gap: 6px; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--rule); font-size: var(--fs-xs); color: var(--ink-2); }
.fc-checks li { display: flex; align-items: center; gap: var(--s2); }

@media (max-width: 1020px) {
  .hero-pain .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .hero-visual > img { aspect-ratio: 4 / 3; }
  .float-status { right: 14px; bottom: 14px; }
  .float-badge { left: 14px; top: 14px; }
}
@media (max-width: 480px) {
  .hero-visual > img { aspect-ratio: 4 / 3; border-radius: var(--r-card); }
  .float-status { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -40px 12px 0; }
  .float-badge { left: 10px; top: 10px; max-width: calc(100% - 20px); font-size: var(--fs-xs); padding: var(--s2) var(--s3); }
}

/* the four "sound familiar?" problems, as a row of cards under the hero */
.hero-pains { margin-top: var(--s8); }
.misses { border: 0; border-radius: 0; background: none; }
.misses-head { background: none; color: var(--ink-3); padding: 0 0 var(--s4); font-size: var(--fs-xs); justify-content: flex-start; gap: var(--s3); }
.misses-head span + span { color: var(--seal); }
.misses ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.misses li, .misses li:first-child {
  grid-template-columns: 1fr; gap: var(--s3); align-content: start;
  padding: var(--s5); border: 0; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-card);
}
.misses li::before { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: var(--seal-wash); font-weight: 500; }
.misses .m-what { font-size: 1.0625rem; }
.misses .m-cost { margin-top: var(--s1); }
.misses-foot { border: 0; padding: var(--s4) 0 0; }
@media (max-width: 960px) { .misses ol { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .misses ol { grid-template-columns: 1fr; } }

/* market heroes keep their facts strip, as a card */
.hero-copy .facts { background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow-card); }
.hero-copy .facts > div, .hero-copy .facts > div + div { padding: var(--s4); }

/* ---------- 2 · outcomes as photo cards ---------- */
.outcomes { border-top: 0; gap: var(--s5); }
.outcomes .outcome {
  display: flex; flex-direction: column; padding: 0 0 var(--s5); border: 0; overflow: hidden;
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card);
}
.outcome img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.outcome > :not(img) { margin-left: var(--s5); margin-right: var(--s5); }
.outcome .o-no { margin-top: var(--s4); }
@media (max-width: 960px) { .outcomes { grid-template-columns: 1fr 1fr; } .outcomes .outcome { border: 0; padding-left: 0; } }
@media (max-width: 560px) { .outcomes { grid-template-columns: 1fr; } .outcome img, .market-card img { aspect-ratio: 16 / 9; } }

/* before / after as cards */
.ba { border: 0; border-radius: var(--r-card); box-shadow: var(--shadow-card); background: var(--card); }
.ba-title { border-bottom: 1px solid var(--rule); padding: var(--s4) var(--s5); align-items: baseline; }
.ba-title h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 650; letter-spacing: -0.005em; line-height: 1.25; }
.ba-title .ba-tag { padding: 2px 10px; border-radius: 99px; background: var(--canvas); }
.ba-before { background: #faf8f4; }
.ba .ba-arrow { position: relative; z-index: 0; border: 0; background: linear-gradient(90deg, #faf8f4 50%, var(--card) 50%); font-size: 1rem; }
.ba-arrow::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--card); box-shadow: var(--shadow-card); }
@media (max-width: 760px) {
  .ba .ba-arrow { width: 100%; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; transform: none; background: linear-gradient(180deg, #faf8f4 50%, var(--card) 50%); font-size: 0; }
  .ba-arrow::after { content: "↓"; font-size: 1rem; }
}

/* ---------- 3 · proof: photo + check cards ---------- */
.proof-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: stretch; }
.photo-card { position: relative; margin: 0; min-height: 440px; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); background: var(--ink); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-card figcaption { position: absolute; left: var(--s4); right: var(--s4); top: var(--s4); padding: var(--s4) var(--s5); border-radius: 14px; background: rgba(255, 255, 255, 0.95); font-size: var(--fs-sm); color: var(--ink-2); }
.photo-card figcaption strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.checks { border-top: 0; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.checks .check, .checks .check:not(:nth-child(3n+1)) { padding: var(--s5); border: 0; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-card); }
.check dt .mono { display: block; width: fit-content; margin-bottom: var(--s2); padding: 1px 10px; border-radius: 99px; background: var(--seal-wash); color: var(--seal); }
.stats-line { border: 0; padding: 0; gap: var(--s4); }
.stat { padding: var(--s4) var(--s5); background: var(--card); border-radius: 16px; box-shadow: var(--shadow-card); min-width: 210px; }
.stat .n { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.quote { padding: var(--s5); border: 0; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.quote blockquote { margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 500; line-height: 1.45; letter-spacing: 0; }
@media (max-width: 960px) { .proof-grid { grid-template-columns: 1fr; } .photo-card { min-height: 340px; } }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }

/* ---------- 4 · start free + pricing cards ---------- */
.free-step { border: 0; border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.free-step .price-free, .plan-price .amt { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; }
.free-step .price-free { font-size: 3.5rem; line-height: 1; }
.plan-price .amt { font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem); }
.plan { border: 0; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 0 0 2px var(--seal), var(--shadow-lift); }
.plan-switch { gap: 6px; padding: 6px; background: var(--canvas); border-bottom: 1px solid var(--rule); }
.plan-switch button, .plan-switch button + button { border: 0; border-radius: 14px; background: transparent; }
.plan-switch button[aria-pressed="true"] { background: var(--card); box-shadow: var(--shadow-card); }
.plan-switch .tag, .stage-name .tag { border-radius: 99px; padding: 1px 8px; }
.plan-anchor { border-radius: 99px; padding: var(--s1) var(--s4); }
.vs { border-top-color: var(--rule); }
.vs-row input { border-radius: 10px; }

/* ---------- markets as photo cards ---------- */
.market-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.market-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.market-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.market-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.mc-body { display: flex; flex-direction: column; gap: var(--s2); flex: 1; padding: var(--s5); }
.mc-tags { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3); }
.mc-name { font-family: var(--display); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.2; }
.mc-desc { font-size: var(--fs-sm); color: var(--ink-2); }
.mc-go { margin-top: auto; padding-top: var(--s2); font-size: var(--fs-sm); font-weight: 500; color: var(--seal); }
@media (max-width: 960px) { .market-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .market-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .market-card, .market-card:hover { transition: none; transform: none; } }

/* ---------- existing blocks on inner pages, as cards ---------- */
.market-rows { border-top: 0; padding: 0 var(--s5); background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.market-row:last-child { border-bottom: 0; }
.market-row:hover { background: transparent; }
.site-header ~ main .def-list { border-top: 0; padding: var(--s1) var(--s6); background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.site-header ~ main .def-item:last-child { border-bottom: 0; }
.site-header ~ main .ledger { border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.site-header ~ main .ledger th { padding-top: var(--s4); background: #fbfaf7; border-bottom: 1px solid var(--rule); }
.site-header ~ main .ledger th:first-child, .site-header ~ main .ledger td:first-child { padding-left: var(--s5); }
.site-header ~ main .ledger th:last-child, .site-header ~ main .ledger td:last-child { padding-right: var(--s5); }
.site-header ~ main .ledger tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .site-header ~ main .ledger-stack tr { padding: var(--s4) var(--s5); }
  .site-header ~ main .ledger-stack tr:last-child { border-bottom: 0; }
  .site-header ~ main .ledger-stack td:first-child, .site-header ~ main .ledger-stack td:last-child { padding: 2px 0; }
}
.site-header ~ main .faq { border-top: 0; display: grid; gap: var(--s3); }
.site-header ~ main .faq details { padding: 0 var(--s5); border: 0; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-card); }
.lang-block { border: 0; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: var(--s6); }

/* closing call to action: a dark card instead of a full-bleed band */
.cta-band { background: transparent; padding: var(--s6) 0 var(--s8); }
.cta-band .wrap {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter));
  padding: var(--s8) var(--s7); background: var(--ink); border-radius: var(--r-big); box-shadow: var(--shadow-lift);
}
@media (max-width: 720px) { .cta-band .wrap { padding: var(--s7) var(--s5); } }
.site-footer { border-top: 0; }
.hero-copy .facts { grid-template-columns: 1fr 1fr; }
.hero-copy .facts > div:nth-child(odd) { border-left: 0; }
.hero-copy .facts > div:nth-child(even) { border-left: 1px solid var(--rule); }
.hero-copy .facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
.page-head .facts { background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow-card); }
.page-head .facts > div, .page-head .facts > div + div { padding: var(--s4) var(--s5); }
@media (max-width: 960px) {
  .photo-card { min-height: 0; display: flex; flex-direction: column; background: var(--card); }
  .photo-card img { position: static; height: 280px; }
  .photo-card figcaption { position: static; border-radius: 0; background: var(--card); }
}

/* headings in cards share the display face */
.outcome h3, .misses .m-what, .check dt, .free-step h3, .float-card .fc-title { font-family: var(--display); letter-spacing: 0; }

/* About page: the three legs of an order (label above the leg name) */
.def-item dt .mono.leg { display: block; width: fit-content; margin: 0 0 var(--s2); padding: 1px 10px; border-radius: 99px; background: var(--seal-wash); color: var(--seal); font-size: var(--fs-xs); }
.def-item dt:has(.leg) { font-family: var(--display); letter-spacing: 0; }

/* Pricing card: fixed fee + savings incentive (partials/start.html) */
.fee-part + .fee-part { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--rule); }
.fee-part .eyebrow { display: block; margin-bottom: var(--s2); }
.fee-steps { list-style: none; margin-top: var(--s4); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); counter-reset: fee; }
.fee-steps li { counter-increment: fee; padding: var(--s3); border-radius: 12px; background: var(--canvas); font-size: var(--fs-xs); color: var(--ink-3); }
.fee-steps li::before { content: "Part " counter(fee); display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.fee-steps li strong { display: block; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.fee-steps li.last { background: var(--ok-wash); }
.fee-steps li.last::before { color: var(--ok); }
.fee-part .vs-row { margin: 0; }
@media (max-width: 560px) { .fee-steps { grid-template-columns: 1fr; } }
