/* Lead Automation Store - graphite + plum, flat bands, horizontal pipeline.
   System fonts only, no external requests. Light + dark via prefers-color-scheme.
   Accent moved from cobalt to plum (uniqueness review, round 1).
   Contrast (WCAG 2.x, computed with python from the tokens below, round 1):
   light  text      #1f2328 on bg #fafaf7 15.11, bg-alt 13.87, surface 15.80, accent-soft 13.65
          muted     #55585e on bg 6.82, bg-alt 6.26, surface 7.13, accent-soft 6.16
          accent-tx #5e2878 on bg 9.79, bg-alt 8.99, surface 10.24, accent-soft 8.85
          accent    #6b2f8a on bg 8.37; white on accent 8.75, on accent-hover 11.13
          done      #17693a on bg 6.44, bg-alt 5.91, surface 6.73, done-soft 5.80
          warn-text on warn-soft 8.36; ph-text on ph-bg 9.84; danger on bg-alt 5.77
   dark   text      #eeeae4 on bg #171513 15.20, bg-alt 14.30, surface 13.49, accent-soft 12.41
          muted     #b3aca2 on bg 8.10, bg-alt 7.62, surface 7.19, accent-soft 6.62
          accent-tx #d2b5ee on bg 10.05, bg-alt 9.46, surface 8.92, accent-soft 8.21
          accent    #c9a7e8 on bg 8.83; on-accent #1d1424 on accent 8.64, on accent-hover 10.72
          done      #7fd3a0 on bg 10.17, bg-alt 9.57, surface 9.03, done-soft 8.40
          warn-text on warn-soft 10.51; ph-text on ph-bg 9.65; danger on bg-alt 8.45 */

:root {
  --bg: #fafaf7;
  --bg-alt: #f2f0eb;
  --surface: #ffffff;
  --line: #e1ddd5;
  --line-strong: #b5aea2;
  --text: #1f2328;
  --muted: #55585e;
  --accent: #6b2f8a;          /* plum fills */
  --accent-hover: #57246f;
  --on-accent: #ffffff;
  --accent-text: #5e2878;     /* plum text/links */
  --accent-soft: #f3ecf6;
  --done: #17693a;
  --done-fill: #2a8a52;
  --done-soft: #e5f1e8;
  --warn-soft: #f5ede3;
  --warn-text: #66391a;
  --danger: #b42318;
  --ph-bg: #f1dfe0;           /* light warm rose-grey, not yellow */
  --ph-text: #5a1f2a;
  --shadow: 0 1px 2px rgba(31, 35, 40, 0.06), 0 8px 24px -12px rgba(31, 35, 40, 0.16);
  --radius: 8px;
  --radius-lg: 12px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513;
    --bg-alt: #1e1b18;
    --surface: #24201d;
    --line: #3b3631;
    --line-strong: #5c554d;
    --text: #eeeae4;
    --muted: #b3aca2;
    --accent: #c9a7e8;        /* light plum fills */
    --accent-hover: #d8bff0;
    --on-accent: #1d1424;
    --accent-text: #d2b5ee;
    --accent-soft: #2d2433;
    --done: #7fd3a0;
    --done-fill: #7fd3a0;
    --done-soft: #1a2a20;
    --warn-soft: #2e241a;
    --warn-text: #f0d2ae;
    --danger: #ff9b91;
    --ph-bg: #4a2a30;
    --ph-text: #f8dade;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 700; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.35rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.005em; }
p, ul, ol, dl { margin: 0 0 1em; }
a { color: var(--accent-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
/* small plain sans label (no uppercase mono numbering) */
.mono-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin: 0 0 0.35em;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ph {
  background: var(--ph-bg);
  color: var(--ph-text);
  border-radius: 3px;
  padding: 0 0.2em;
  outline: 1px dashed currentColor;
  outline-offset: -1px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.skip {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip:focus { top: 8px; }

/* icon strokes used in inline SVG */
.i-stroke { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.grid12 > * { grid-column: 1 / -1; }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- draft banner ---------- */
.draft-notice {
  background: var(--warn-soft);
  color: var(--warn-text);
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  padding-block: 10px;
}
.draft-notice .ph { color: var(--ph-text); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--bg); } }
.header-row {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "brand" "nav";
  align-items: center;
  column-gap: 16px;
  min-height: var(--header-h);
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 44px; min-width: 0; }
.brand-mark { flex: none; }
.bm-bg { fill: var(--accent); }
.bm-line { fill: none; stroke: var(--on-accent); stroke-width: 1.8; stroke-linecap: round; }
.bm-node { fill: var(--on-accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 700; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-sub { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.03em; }
.main-nav { grid-area: nav; border-top: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px;
  color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
}
.main-nav a:hover { color: var(--accent-text); text-decoration: underline; }
@media (min-width: 860px) {
  .header-row { grid-template-columns: auto 1fr; grid-template-areas: "brand nav"; }
  .main-nav { border-top: 0; margin: 0; padding: 0; justify-self: end; }
  .main-nav ul { gap: 8px; }
  .main-nav a { padding-inline: 12px; }
}
@media (max-width: 859px) { :root { --header-h: 110px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-primary:disabled, .btn-primary.is-disabled, .btn-primary[aria-disabled="true"] { background: var(--bg-alt); color: var(--muted); border-color: var(--line-strong); cursor: not-allowed; }
.btn-primary.is-disabled:hover, .btn-primary[aria-disabled="true"]:hover { background: var(--bg-alt); color: var(--muted); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-sm { min-height: 44px; padding: 8px 12px; font-size: 0.9375rem; width: 100%; }
.btn-block { width: 100%; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; }

/* ---------- hero: flat band, full-width copy, then one horizontal pipeline ---------- */
.hero {
  padding-block: 40px 48px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.eyebrow { font-size: 0.9375rem; font-weight: 600; color: var(--accent-text); margin-bottom: 0.75em; }
.hero h1 { max-width: 24ch; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 64ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9375rem; color: var(--muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (min-width: 980px) {
  .hero { padding-block: 64px 72px; }
}

/* pipeline: nodes left to right on one line (>= 980px), stacked below */
.pipeline { margin: 40px 0 0; }
.pipe-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--muted); margin-bottom: 14px; }
.tag {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 2px 8px; border: 1px solid var(--accent-text); color: var(--accent-text); border-radius: 4px;
  background: var(--surface);
}
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pnode {
  position: relative; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
}
/* connector between nodes: vertical when stacked */
.pnode + .pnode::before {
  content: ""; position: absolute; left: 25px; top: -19px; height: 18px;
  border-left: 2px solid var(--accent);
}
.pnode-k { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--accent-text); margin: 0 0 8px; }
.pdot { flex: none; }
.pd-ring { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.pd-core { fill: var(--accent); }
.pdot-done .pd-ring { stroke: var(--done-fill); }
.pdot-done .pd-core { fill: var(--done-fill); }
.pnode-t { margin: 0; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.pnode-t svg { flex: none; margin-top: 3px; color: var(--accent-text); }
.pnode-s { margin: 6px 0 0; color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 980px) {
  .pipe { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .pnode + .pnode::before { left: -25px; top: 25px; width: 24px; height: 0; border-left: 0; border-top: 2px solid var(--accent); }
}
.chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--line);
}
.chips svg { color: var(--muted); }
.mini { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.mini th { text-align: left; font-weight: 600; font-size: 0.8125rem; color: var(--muted); padding: 0 8px 6px 0; border-bottom: 1px solid var(--line); }
.mini td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); }
.mini tr:last-child td { border-bottom: 0; }
.st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; font-size: 0.8125rem; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; }
.st-new { color: var(--accent-text); }
.st-work { color: var(--muted); }
.st-done { color: var(--done); }
.st-done::before { background: currentColor; }

/* ---------- trust strip: one bar of facts ---------- */
.trust { background: var(--bg); border-bottom: 1px solid var(--line); }
.facts-bar { list-style: none; margin: 0; padding: 10px 0; display: grid; gap: 0; font-size: 0.9375rem; }
.facts-bar li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-height: 44px; padding: 4px 0; }
.facts-bar li + li { border-top: 1px solid var(--line); }
.facts-bar strong { color: var(--text); }
.facts-bar > li > span { color: var(--muted); }
.facts-bar a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 980px) {
  .facts-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px 0; }
  .facts-bar li { padding: 6px 16px; }
  .facts-bar li:first-child { padding-left: 0; }
  .facts-bar li + li { border-top: 0; border-left: 1px solid var(--line-strong); }
}

/* ---------- sections ---------- */
.section { padding-block: 56px; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
@media (min-width: 980px) { .section { padding-block: 88px; } }
.sec-head { margin-bottom: 32px; max-width: 72ch; }
.sec-head h2 { margin-bottom: 0.35em; }
.sec-lead { color: var(--muted); max-width: 64ch; margin: 0; font-size: 1.0625rem; }
@media (min-width: 980px) { .sec-head { margin-bottom: 44px; } }
.fine { font-size: 0.9375rem; color: var(--muted); max-width: 80ch; margin-top: 20px; }

/* ---------- products matrix ---------- */
.matrix-wrap { display: none; }
.pstack { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; position: relative;
}
.pcard::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--line-strong); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.pcard:nth-child(n+3)::before { background: var(--accent); }
.pcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pcard-price { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.pcard h3 { font-size: 1.25rem; margin: 4px 0 14px; }
.pcard h3 a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.pcard h3 a:hover { color: var(--accent-text); text-decoration: underline; }
.pcard-actions { display: grid; gap: 4px; margin-top: 16px; }
.spec { margin: 0; display: grid; }
.spec > div { display: grid; grid-template-columns: minmax(7.5rem, 38%) 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); padding-top: 0.2em; }
.spec dd { margin: 0; }
@media (min-width: 640px) and (max-width: 979px) {
  .pstack { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .matrix-wrap { display: block; }
  .pstack { display: none; }
}
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 0.9375rem; }
.matrix .c-label { width: 17%; }
.matrix th, .matrix td { padding: 14px 14px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.matrix tbody th { font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); padding-left: 0; }
.m-groups th { border-bottom: 0; padding-bottom: 6px; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }
.m-groups th span { display: block; padding-top: 8px; border-top: 2px solid var(--line-strong); }
.m-groups th + th span { border-top-color: var(--accent); color: var(--accent-text); }
.m-groups td { border-bottom: 0; }
.m-names th { font-size: 1.0625rem; line-height: 1.3; border-bottom: 2px solid var(--text); }
.m-names a { color: var(--text); text-decoration: none; }
.m-names a:hover { color: var(--accent-text); text-decoration: underline; }
.m-names td { border-bottom: 2px solid var(--text); }
.m-price td { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.m-refund td { font-size: 0.875rem; color: var(--muted); }
.m-actions th, .m-actions td { border-bottom: 0; padding-top: 18px; }
.m-actions .more { font-size: 0.875rem; }
.matrix tbody tr:not(.m-actions):hover td { background: var(--accent-soft); }
.yes, .no { display: inline-flex; gap: 6px; align-items: baseline; font-weight: 600; }
.yes { color: var(--done); }
.yes::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-1px); }
.no { color: var(--text); }
.no::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--muted); flex: none; transform: translateY(-1px); }
.na { color: var(--muted); }

/* ---------- steps ---------- */
/* vertical timeline with a left rail, at every width */
.steps { list-style: none; margin: 0; padding: 0; position: relative; max-width: 760px; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px;
  border-left: 2px solid var(--line-strong);
}
.steps li { position: relative; padding: 0 0 32px 72px; min-height: 44px; }
.steps li:last-child { padding-bottom: 0; }
.step-node {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--surface); color: var(--accent-text); border: 2px solid var(--accent);
}
.step-node-done { color: var(--done); border-color: var(--done-fill); }
.steps h3 { margin: 9px 0 0.35em; }
.steps p { color: var(--muted); margin: 0; max-width: 64ch; }

/* ---------- modules ---------- */
.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.modules li { position: relative; padding: 20px 0 20px 64px; border-bottom: 1px solid var(--line); }
.m-no {
  position: absolute; left: 0; top: 20px; font-size: 0.875rem; font-weight: 600;
  color: var(--accent-text); border: 1px solid var(--accent-text); border-radius: 4px; padding: 1px 7px;
}
.modules h3 { margin-bottom: 0.3em; }
.modules p { margin: 0; color: var(--muted); }
.m-tag { display: inline-block; margin-top: 10px; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--done); background: var(--done-soft); padding: 3px 8px; border-radius: 4px; }
@media (min-width: 720px) {
  .modules:not(.modules-compact) { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 980px) {
  .modules:not(.modules-compact) { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- fit ---------- */
.fit { row-gap: 24px; }
.fit-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.fit-col ul { list-style: none; padding: 0; margin: 0; }
.fit-col li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); }
.fit-col li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 12px; border-radius: 50%; }
.fit-yes li::before { background: var(--done-fill); }
.fit-no li::before { border: 2px solid var(--muted); }
.fit-yes { border-top: 3px solid var(--done-fill); }
.fit-no { border-top: 3px solid var(--line-strong); }
@media (min-width: 860px) {
  .fit-yes { grid-column: 1 / span 6; }
  .fit-no { grid-column: 7 / span 6; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  min-height: 56px; display: flex; align-items: center;
  padding: 14px 44px 14px 0; font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent-text); }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 72ch; }
.faq details > div ul { padding-left: 1.2em; }
.faq details > div li { margin-bottom: 0.5em; }
.faq details > div strong { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform 0.2s ease; }
}

/* ---------- contact block ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.contact-grid > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-grid dd { margin: 0; font-size: 1.0625rem; }
.contact-grid a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 980px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- product page ---------- */
.product { padding-block: 24px 72px; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 0.9375rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.product-grid { row-gap: 32px; }
.product h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.block { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.block h2 { font-size: 1.375rem; }
.ticks, .crosses { list-style: none; padding: 0; margin: 0; }
.ticks li, .crosses li { position: relative; padding: 8px 0 8px 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 13px; width: 14px; height: 8px;
  border-left: 2px solid var(--done); border-bottom: 2px solid var(--done); transform: rotate(-45deg);
}
.crosses li::before, .crosses li::after {
  content: ""; position: absolute; left: 4px; top: 19px; width: 15px; border-top: 2px solid var(--muted);
}
.crosses li::before { transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.spec-wide > div { grid-template-columns: minmax(8rem, 30%) 1fr; }
.rule-box, .note-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.rule-box ul { padding-left: 1.2em; }
.rule-box li { margin-bottom: 0.5em; }
.note-box { border-left: 3px solid var(--accent); }
.rule-box .fine, .note-box .fine { margin-top: 0; margin-bottom: 0; }
.buybox {
  align-self: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow); display: grid; gap: 10px;
  border-top: 3px solid var(--accent);
}
.buybox p { margin: 0; }
.buy-price { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.buy-note { font-size: 0.9375rem; color: var(--muted); margin-bottom: 6px !important; }
.buy-facts { list-style: none; padding: 0; margin: 8px 0 0; font-size: 0.9375rem; }
.buy-facts li { padding: 8px 0; border-top: 1px solid var(--line); }
/* compact buy row right under the lead, shown below 980px (the buybox is far down there) */
.buy-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  margin: 20px 0 0; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius);
}
.buy-row-price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.buy-row-price strong { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.buy-row-price span { color: var(--muted); font-size: 0.9375rem; }
.buy-row .btn { flex: 1 1 14rem; }
@media (min-width: 980px) {
  .buy-row { display: none; }
  .product { padding-top: 32px; }
  .product-main { grid-column: 1 / span 7; }
  .buybox { grid-column: 9 / span 4; }
}
/* sticky only where the whole buy box (with consents) fits on screen */
@media (min-width: 980px) and (min-height: 980px) {
  .buybox { position: sticky; top: calc(var(--header-h) + 24px); }
}
/* consent checkboxes in the buy box */
.consents { display: grid; gap: 2px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.check { display: grid; grid-template-columns: 44px 1fr; align-items: start; }
.check input { width: 22px; height: 22px; margin: 11px; accent-color: var(--accent); cursor: pointer; }
.check label { padding: 10px 0; cursor: pointer; font-size: 0.9375rem; }
.buy-hint { font-size: 0.875rem; color: var(--muted); }
.buy-status { font-size: 0.875rem; color: var(--muted); }
.buy-status:empty { display: none; }
.buy-foot { font-size: 0.875rem; color: var(--muted); }

/* ---------- status pages ---------- */
.status-page { padding-block: 48px 80px; }
.status-card { max-width: 720px; }
.status-flow { display: block; margin-bottom: 24px; height: auto; }
.sf-line { stroke: var(--done-fill); stroke-width: 2; fill: none; }
.sf-dashed { stroke: var(--line-strong); stroke-dasharray: 4 5; }
.sf-node { fill: var(--bg); stroke: var(--line-strong); stroke-width: 2; }
.sf-done { fill: var(--done-fill); stroke: var(--done-fill); }
.sf-open { fill: var(--bg); stroke: var(--line-strong); }
.sf-tick { fill: none; stroke: var(--bg); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.next-steps { list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.next-steps li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.next-steps p { margin: 0; }
@media (min-width: 640px) { .next-steps li { grid-template-columns: 9rem 1fr; gap: 16px; } }

/* ---------- legal pages (written by another builder; structure: h1, p, h2/h3, ul/ol, table) ---------- */
.legal {
  width: 100%; max-width: calc(72ch + var(--gutter) * 2);
  margin-inline: auto; padding: 32px var(--gutter) 80px;
}
@media (min-width: 980px) { .legal { padding-top: 56px; } }
.legal h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); margin-bottom: 0.3em; }
.legal h1 + p { font-family: var(--mono); font-size: 0.875rem; color: var(--muted); padding-bottom: 20px; border-bottom: 2px solid var(--text); margin-bottom: 28px; }
.legal h2 { font-size: 1.375rem; margin-top: 2.2em; padding-top: 14px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.0625rem; margin-top: 1.6em; }
.legal p, .legal li { max-width: 72ch; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: 0.45em; }
.legal li::marker { color: var(--accent-text); }
.legal address { font-style: normal; }
.legal a { overflow-wrap: anywhere; }
.legal table {
  display: block; width: 100%; max-width: 100%; overflow-x: auto;
  border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 0.9375rem;
  -webkit-overflow-scrolling: touch;
}
.legal table > thead, .legal table > tbody { width: 100%; }
.legal caption { text-align: left; font-weight: 600; padding: 0 0 8px; caption-side: top; }
.legal table.is-stacked caption { display: block; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.legal thead th { font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--text); background: var(--bg-alt); }
.legal tbody th { font-weight: 600; }
.legal tbody tr:nth-child(even) td, .legal tbody tr:nth-child(even) th { background: var(--bg-alt); }
@media (min-width: 720px) {
  .legal table { display: table; }
}
/* app.js adds .is-stacked + data-label on small screens: each row becomes a block */
@media (max-width: 719px) {
  .legal table.is-stacked { display: block; overflow: visible; border-top: 2px solid var(--text); }
  .legal table.is-stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal table.is-stacked tbody, .legal table.is-stacked tr { display: block; }
  .legal table.is-stacked tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .legal table.is-stacked tbody tr:nth-child(even) td, .legal table.is-stacked tbody tr:nth-child(even) th { background: none; }
  .legal table.is-stacked td, .legal table.is-stacked th { display: grid; grid-template-columns: minmax(6.5rem, 40%) 1fr; gap: 10px; padding: 4px 0; border: 0; }
  .legal table.is-stacked td::before, .legal table.is-stacked th::before {
    content: attr(data-label); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); padding-top: 0.25em;
  }
  .legal table.is-stacked [data-label=""]::before { content: none; }
  .legal table.is-stacked [data-label=""] { display: block; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 48px; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.f-name { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.4em; }
.f-tag { color: var(--muted); max-width: 42ch; }
.f-pay { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); max-width: 48ch; }
.f-pay svg { flex: none; margin-top: 3px; color: var(--accent-text); }
.f-head { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--text); }
.f-col ul { list-style: none; padding: 0; margin: 0; }
.f-col li a { display: flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.f-col li a:hover { color: var(--accent-text); text-decoration: underline; }
.f-company address { font-style: normal; display: grid; gap: 4px; color: var(--muted); }
.f-company .f-legal { color: var(--text); font-weight: 600; }
.f-company a { display: inline-flex; align-items: center; min-height: 44px; }
.f-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); margin-top: 32px; padding-block: 20px 28px; color: var(--muted); }
.f-base p { margin: 0; }
.f-base .mono { font-size: 0.875rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 4fr 2fr 3fr 3fr; gap: 32px; } }

/* ---------- small screens: no content text below 14px (.875rem) ---------- */
@media (max-width: 719px) {
  .brand-sub, .tag, .m-tag, .mini th, .spec dt, .st, .pnode-k, .f-head,
  .legal thead th, .legal h1 + p,
  .legal table.is-stacked td::before, .legal table.is-stacked th::before {
    font-size: 0.875rem;
  }
}

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .draft-notice, .hero-actions, .buybox .btn, .buy-row .btn, .m-actions, .pcard-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .legal table { display: table; }
}
