/* Agent Journey Lab — brand system v2 "the journey trace, professionalised".
   System fonts only. No remote assets, no scripts, no raster images. */

:root {
  --paper: #F6F3EC;
  --canvas: #FFFFFF;
  --surface: #FAFAF7;
  --ink: #14130F;
  --ink-2: #4B4943;
  --muted: #6E6A60;
  --rule: #D6D3CB;
  --rule-strong: #8F8677;
  --stop: #A63A22;
  --reached: #3A6B4A;
  --data: #EFEDE6;
  --focus: #0C5A5E;
  --on-ink: #FAFAF7;
  --on-ink-2: #CFCABE;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", "Noto Sans", system-ui, ui-sans-serif, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;

  --shadow: 0 1px 2px rgba(20,19,15,.05), 0 12px 32px rgba(20,19,15,.06);
  --radius: 6px;
  --measure: 62ch;
  --gutter: 1.5rem;
  --pad: clamp(4rem, 2.6rem + 4.2vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1.02rem + 0.18vw, 1.1875rem);
  line-height: 1.62;
  overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 660; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 2.1rem + 2.2vw, 3.625rem); line-height: 1.02; letter-spacing: -0.032em; }
h2 { font-size: clamp(2rem, 1.6rem + 1.1vw, 2.625rem); }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; max-width: var(--measure); }
a { color: var(--ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
[id] { scroll-margin-top: 7rem; }
@media (min-width: 60rem) { [id] { scroll-margin-top: 6rem; } }

.wrap { width: 100%; max-width: 78rem; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; left: -9999px; top: 0; background: var(--ink); color: var(--on-ink); padding: 0.7rem 1rem; z-index: 60; }
.skip-link:focus { left: 0; }

/* ---------- bands ---------- */
.band { border-bottom: 1px solid var(--rule); }
.band-white { background: var(--canvas); }
.band-paper { background: var(--paper); }
.band-ink { background: var(--ink); color: var(--on-ink); border-bottom: 0; }
.band-ink h2, .band-ink a { color: var(--on-ink); }
.band-ink p { color: var(--on-ink-2); }
.band-ink :focus-visible { outline-color: var(--paper); }
.band > .wrap { padding-top: var(--pad); padding-bottom: var(--pad); }

.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.7rem; max-width: none;
}
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-2); }
.section-head .eyebrow { color: var(--muted); margin-bottom: 1rem; }
.section-head > :last-child { margin-bottom: 0; }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 50; background: var(--canvas); border-bottom: 1px solid var(--rule); }
.masthead .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 1rem;
  padding-top: 0.5rem; padding-bottom: 0.5rem;
}
.masthead .wordmark { grid-column: 1; grid-row: 1; }
.masthead .nav-cta { grid-column: 2; grid-row: 1; }
.wordmark { margin: 0; font-size: 1rem; font-weight: 660; letter-spacing: -0.015em; }
.wordmark a { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; min-height: 44px; }
.wordmark a:hover span { text-decoration: underline; }
.mark { display: block; flex: none; }

.masthead nav { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--rule); }
.masthead nav ul {
  display: flex; flex-wrap: wrap; gap: 0 1.15rem;
  list-style: none; margin: 0; padding: 0; font-size: 0.9rem;
}
.masthead nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; transition: color 150ms linear, border-color 150ms linear; }
.masthead nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.masthead nav [aria-current="page"] { color: var(--ink); border-bottom-color: var(--rule-strong); }
.nav-cta { margin: 0; }

@media (min-width: 60rem) {
  .masthead .wrap { grid-template-columns: auto 1fr auto; column-gap: 2rem; padding-top: 0.35rem; padding-bottom: 0.35rem; }
  .masthead nav { grid-column: 2; grid-row: 1; border-top: 0; justify-self: end; }
  .masthead .nav-cta { grid-column: 3; grid-row: 1; }
  .masthead nav ul { gap: 0 1.6rem; }
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.65rem 1.25rem;
  border: 1px solid var(--ink); border-radius: 7px;
  text-decoration: none; font-size: 0.98rem; font-weight: 620; letter-spacing: -0.005em;
  transition: background-color 150ms linear, color 150ms linear, border-color 150ms linear;
}
.button-primary { background: var(--ink); color: var(--canvas); }
.button-primary:hover { background: #26241D; }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.button-secondary:hover { background: var(--data); border-color: var(--ink); }
.button-sm { min-height: 44px; padding: 0.5rem 0.95rem; font-size: 0.9rem; }
.band-ink .button-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band-ink .button-primary:hover { background: #FFFFFF; }
.band-ink .button-secondary { color: var(--on-ink); border-color: var(--rule-strong); }
.band-ink .button-secondary:hover { background: #26241D; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.15rem 0 0; max-width: none; }

/* ---------- hero ---------- */
.hero > .wrap { padding-top: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem); }
.hero .wrap { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 64rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 4rem; align-items: start; }
}
.hero-lede { font-size: 1.14em; color: var(--ink-2); max-width: 40ch; margin-bottom: 0.85rem; }
.hero-boundary { color: var(--ink-2); max-width: 44ch; }
.hero h1 { max-width: 15ch; }
@media (min-width: 64rem) { .hero h1 { max-width: 18ch; } }

.owner-block {
  margin: 0.9rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--rule); max-width: 52ch;
}
.owner-line { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--muted); max-width: none; }
.owner-line .ua { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); }
.owner-links { display: flex; flex-wrap: wrap; gap: 0 1.15rem; list-style: none; margin: 0; padding: 0; font-size: 0.86rem; }
/* every standalone link is at least a 44 by 44 pixel target */
p > a:only-child, li > a:only-child, dd > a:only-child {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px;
}
/* pointer targets stay at least 44px tall even though the text is small */
.owner-links a, .tap { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.owner-links a { color: var(--ink-2); }

/* ---------- panels & figures ---------- */
.panel {
  background: var(--canvas); border: 1px solid var(--rule);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.band-white .panel { background: var(--surface); }
.figure { margin: 0; }
.figure-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; max-width: none;
}
.figure figcaption {
  margin-top: 0.9rem; font-size: 0.82rem; line-height: 1.55; color: var(--muted); max-width: 46ch;
}

/* record specimen — a document, not an interface */
.specimen-shell { position: relative; }
.specimen-shell::before {
  content: ""; position: absolute; inset: -0.75rem -0.75rem -0.75rem -0.75rem;
  background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.4; z-index: 0;
}
.band-white .specimen-shell::before { opacity: 0.5; }
.specimen { position: relative; z-index: 1; padding: 1.4rem 1.5rem 1.5rem; }
.specimen-head { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--rule); padding-bottom: 0.7rem; }
.specimen-title { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink); margin: 0; max-width: none; }
.specimen-note { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--muted); margin: 0; max-width: none; }
.specimen-disclosure {
  margin: 0.75rem 0 0; padding: 0.5rem 0.7rem; background: var(--data);
  border-radius: 4px; font-size: 0.76rem; color: var(--ink-2); max-width: none;
}
.fields { margin: 1rem 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.45rem 1rem; font-size: 0.83rem; }
.fields dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.fields dd { margin: 0; font-family: var(--mono); font-size: 0.8rem; color: var(--ink); overflow-wrap: anywhere; }
.redact { display: inline-block; width: 5.5em; height: 0.85em; background: var(--ink); border-radius: 2px; vertical-align: -0.05em; }
.redact + .redact { width: 3em; margin-left: 0.3em; }

.ck { list-style: none; margin: 1rem 0 0; padding: 0.9rem 0 0; border-top: 1px solid var(--rule); position: relative; }
.ck > li { display: grid; grid-template-columns: 2.1rem 1fr auto; align-items: baseline; gap: 0.5rem; padding: 0.34rem 0; font-size: 0.83rem; }
.ck .n { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ck .c { color: var(--ink-2); }
.ck .s { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; white-space: nowrap; }
.s-reached { color: var(--reached); }
.mk { position: relative; padding-left: 1.15em; }
.mk::before, .mk::after { content: ""; position: absolute; }
.s-reached.mk::before { left: 0.1em; top: 0.18em; width: 0.3em; height: 0.62em; border-right: 2px solid var(--reached); border-bottom: 2px solid var(--reached); transform: rotate(42deg); }
.s-stopped.mk::before, .s-stopped.mk::after { left: 0.05em; top: 0.52em; width: 0.68em; height: 2px; background: var(--stop); }
.s-stopped.mk::before { transform: rotate(45deg); }
.s-stopped.mk::after { transform: rotate(-45deg); }
.s-stopped { color: var(--stop); font-weight: 700; }
.specimen-foot { margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--rule); font-size: 0.8rem; color: var(--ink-2); max-width: none; }
.specimen-foot .s-stopped { font-family: var(--mono); font-size: 0.76rem; }

/* one-time trace draw on the checkpoint spine, <=600ms; static under reduced motion */
.ck::before { content: ""; position: absolute; left: 0.62rem; top: 1.5rem; bottom: 1.1rem; width: 2px; background: var(--rule-strong); transform-origin: top; }
.ck::before { animation: trace-draw 520ms linear 1 both; }
@media (prefers-reduced-motion: reduce) {
  .ck::before { animation: none; transform: none; }
}
@keyframes trace-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- small screens: the first viewport has to carry headline, mechanism,
   boundary, primary action and the site-owner route without clipping ---------- */
@media (max-width: 45.99rem) {
  /* one compact row for the wordmark, one for the two links a site owner needs
     plus the pilot action — DOM order and visual order stay identical. */
  .masthead .wrap { padding-top: 0.15rem; padding-bottom: 0.15rem; row-gap: 0; }
  .masthead .wordmark { grid-column: 1 / -1; grid-row: 1; }
  .masthead nav { grid-column: 1; grid-row: 2; border-top: 0; }
  .masthead .nav-cta { grid-column: 2; grid-row: 2; align-self: center; }
  /* keep one direct site-owner route in the chrome; the hero owner block
     immediately below carries the disclosure, address and opt-out links. */
  .masthead nav li:not(:nth-child(3)) { display: none; }
  .masthead .button-sm { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
  .masthead nav ul { gap: 0 0.72rem; font-size: 0.8rem; }
  .masthead .wordmark { font-size: 0.95rem; }
  .masthead .wordmark a span { white-space: nowrap; }
  .hero > .wrap { padding-top: 0.5rem; }
  .hero .eyebrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero h1 { line-height: 0.99; margin-bottom: 0.4em; }
  .hero-lede { font-size: 0.9em; line-height: 1.36; margin-bottom: 0.5rem; }
  .hero-boundary { font-size: 0.87em; line-height: 1.36; margin-bottom: 0; }
  .hero .actions { margin-top: 0.7rem; gap: 0.5rem; flex-wrap: nowrap; }
  .hero .actions .button { flex: 1 1 0; padding: 0.6rem 0.7rem; font-size: 0.88rem; text-align: center; }
  .owner-block { margin-top: 0.7rem; padding-top: 0.6rem; }
  .owner-line { font-size: 0.8rem; line-height: 1.4; }
  .owner-links { gap: 0 0.7rem; font-size: 0.78rem; }
}

/* ---------- trust strip ---------- */
.trust { display: grid; gap: 1.5rem 2rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 46rem) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.trust > li { border-top: 2px solid var(--rule-strong); padding-top: 0.9rem; }
.trust h3 { margin-bottom: 0.3rem; font-size: 1rem; }
.trust p { font-size: 0.92rem; color: var(--ink-2); margin: 0; max-width: 34ch; }

/* ---------- journeys ---------- */
.journeys { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 46rem) { .journeys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .journeys { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.journeys > li { padding: 1.3rem 1.35rem 1.4rem; }
.journeys h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.journeys p { font-size: 0.92rem; color: var(--ink-2); max-width: none; margin-bottom: 0.9rem; }
.bound { display: block; padding-top: 0.75rem; border-top: 1px solid var(--rule); font-size: 0.8rem; color: var(--muted); }
.bound b { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); display: block; margin-bottom: 0.15rem; font-weight: 600; }

/* ---------- stepper ---------- */
.stepper { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: st; }
@media (min-width: 60rem) { .stepper { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; } }
.stepper > li { counter-increment: st; position: relative; padding-top: 1.1rem; border-top: 1px solid var(--rule-strong); }
.stepper > li::before {
  content: counter(st, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em;
  color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 0.5rem;
}
.stepper h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.stepper p { font-size: 0.9rem; color: var(--ink-2); max-width: none; margin: 0; }
.stepper .st { display: inline-block; margin-top: 0.6rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--muted); }

/* ---------- record anatomy ---------- */
.anatomy { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 64rem) { .anatomy { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 3.5rem; } }
.doc-record { padding: 1.5rem 1.6rem 1.6rem; }
.rec { margin: 0; }
.rec > div { display: grid; gap: 0.15rem 1.25rem; padding: 0.8rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 34rem) { .rec > div { grid-template-columns: 11rem minmax(0, 1fr); } }
.rec > div:first-child { border-top: 0; padding-top: 0; }
.rec dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rec dd { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.rec dd .val { font-family: var(--mono); font-size: 0.85rem; color: var(--ink); }

/* ---------- contrasts ---------- */
.contrasts { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 46rem) { .contrasts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; } }
.contrasts > li { border-top: 1px solid var(--rule); padding-top: 1rem; }
.contrasts h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.contrasts .not { display: block; font-family: var(--mono); font-size: 0.73rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.contrasts p { font-size: 0.92rem; color: var(--ink-2); max-width: none; margin: 0; }

/* ---------- lanes / site owners ---------- */
.lanes { display: grid; gap: 1.25rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
@media (min-width: 46rem) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.lanes > li { padding: 1.3rem 1.4rem 1.4rem; }
.lane-tag { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.lanes h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.lanes p { font-size: 0.92rem; color: var(--ink-2); max-width: none; }
.lanes > li > :last-child { margin-bottom: 0; }

.data {
  display: block; background: var(--data); border: 1px solid var(--rule); border-radius: 4px;
  padding: 0.8rem 0.95rem; font-family: var(--mono); font-size: 0.8rem; line-height: 1.6;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: var(--measure);
}
.limits { max-width: var(--measure); margin: 1.25rem 0 0; }
.limits dt { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.05em; border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.limits dd { margin: 0.15rem 0 0.8rem; color: var(--ink-2); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.limits dd:last-of-type { margin-bottom: 0; padding-bottom: 0.8rem; border-bottom: 1px solid var(--rule); }

.note { border-left: 3px solid var(--rule-strong); background: var(--surface); padding: 1rem 1.15rem; margin: 1.5rem 0 0; max-width: var(--measure); border-radius: 4px; }
.note > :last-child { margin-bottom: 0; }
.note p { font-size: 0.94rem; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin: 0; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 0.9rem 0; cursor: pointer; list-style: none;
  font-size: 1.05rem; font-weight: 620; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.25rem; color: var(--muted); flex: none; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--ink); }
.faq .a { padding: 0 0 1.1rem; }
.faq .a p { font-size: 0.96rem; color: var(--ink-2); max-width: 62ch; margin-bottom: 0.6rem; }
.faq .a > :last-child { margin-bottom: 0; }

/* ---------- closing band ---------- */
.closing .wrap { display: grid; gap: 1.5rem; }
.closing h2 { max-width: 20ch; }
.closing p { max-width: 52ch; }
@media (min-width: 60rem) { .closing .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 3rem; } .closing .actions { margin-top: 0; justify-content: flex-end; } }

/* ---------- footer ---------- */
footer { background: var(--canvas); border-top: 1px solid var(--rule); }
footer .wrap { padding-top: 2.75rem; padding-bottom: 2.75rem; }
.foot-cols { display: grid; gap: 1.75rem 2rem; margin-bottom: 2rem; }
@media (min-width: 46rem) { .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot-cols h2 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 0.35rem; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li a, .foot-cols p a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 0.92rem; color: var(--ink-2); }
.foot-cols p { font-size: 0.92rem; color: var(--ink-2); margin: 0; overflow-wrap: anywhere; }
.foot-base { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.foot-base p { font-size: 0.86rem; color: var(--muted); }
.updated { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- disclosure page ---------- */
.doc-hero .wrap { padding-top: clamp(3rem, 2rem + 3vw, 5rem); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.doc-hero h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.1rem); max-width: 22ch; }
.doc-hero .lede { font-size: 1.12em; color: var(--ink-2); max-width: 54ch; }
.plain { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.plain > li { padding: 0.9rem 0; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.95rem; }
.plain > li:last-child { border-bottom: 1px solid var(--rule); }
.plain strong { display: block; color: var(--ink); font-weight: 620; font-size: 1rem; }

/* ---------- v5 additions: sales site ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 46rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .cards.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface);
  padding: 1.35rem 1.45rem;
}
.card h3 { margin-bottom: 0.45rem; }
.card p, .card li { font-size: 0.95rem; color: var(--ink-2); max-width: none; }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li { margin-bottom: 0.4rem; }
.card > :last-child { margin-bottom: 0; }

.ticks { list-style: none; margin: 1rem 0 0; padding: 0; max-width: var(--measure); }
.ticks > li { position: relative; padding: 0 0 0 1.6rem; margin-bottom: 0.7rem; color: var(--ink-2); font-size: 0.97rem; }
.ticks > li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.6rem; height: 0.6rem; border: 2px solid var(--reached); border-radius: 2px; }
.ticks.crosses > li::before { border-color: var(--rule-strong); border-radius: 50%; }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 0.75rem; }
.price-amount { font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 660; letter-spacing: -0.032em; line-height: 1; }
.price-unit { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.numbered { list-style: none; counter-reset: n; margin: 1.25rem 0 0; padding: 0; max-width: var(--measure); }
.numbered > li { counter-increment: n; position: relative; padding: 0.85rem 0 0.85rem 2.6rem; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.97rem; }
.numbered > li:last-child { border-bottom: 1px solid var(--rule); }
.numbered > li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0.95rem;
  font-family: var(--mono); font-size: 0.76rem; color: var(--stop); letter-spacing: 0.06em;
}
.numbered strong { display: block; color: var(--ink); font-weight: 620; font-size: 1rem; margin-bottom: 0.15rem; }

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.45rem, 1.25rem + 0.7vw, 1.8rem); margin-top: 2.75rem; }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.2rem; color: var(--ink-2); }
.prose li { margin-bottom: 0.5rem; }
.prose > :first-child { margin-top: 0; }

.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 64rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.ua { font-family: var(--mono); font-size: 0.85em; background: var(--data); border: 1px solid var(--rule); border-radius: 3px; padding: 0.1em 0.35em; }
