/* ==========================================================================
   TicketsCRM.com.ua - design system
   Language: "operational schematic" - blueprint diagrams over text walls.
   Continuity with ticketcrm.org: corporate blue, same nav logic, same voice.
   One accent (brand blue) + neutrals. One radius scale. One theme per mode.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light dark;

  /* accent: single brand blue, inherited from ticketcrm.org */
  --brand:        #1B4FD8;
  --brand-ink:    #12379B;
  --brand-soft:   #B9CDFA;
  --brand-tint:   #E8EFFE;
  --on-brand:     #FFFFFF;

  /* surfaces */
  --bg:           #FFFFFF;
  --bg-2:         #F4F7FC;
  --bg-3:         #EAF0FA;

  /* text */
  --ink:          #0A1526;
  --ink-2:        #33445E;
  --ink-3:        #5F6E88;

  /* lines */
  --line:         #E2E8F2;
  --line-2:       #C9D4E5;

  /* shape: one scale, no exceptions */
  --r:            14px;
  --r-sm:         10px;
  --r-pill:       999px;

  /* rhythm */
  --gut:          clamp(20px, 5vw, 40px);
  --sec:          clamp(64px, 9vw, 112px);
  --wrap:         1240px;

  /* motion */
  --e-out:        cubic-bezier(0.23, 1, 0.32, 1);
  --e-in-out:     cubic-bezier(0.77, 0, 0.175, 1);

  --shadow-1:     0 1px 2px rgba(10, 21, 38, .04), 0 8px 24px -12px rgba(10, 21, 38, .12);
  --shadow-2:     0 2px 4px rgba(10, 21, 38, .05), 0 24px 56px -24px rgba(10, 21, 38, .22);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand:      #6D9BFF;
    --brand-ink:  #A9C4FF;
    --brand-soft: #2A4478;
    --brand-tint: #12203A;
    --on-brand:   #06101F;

    --bg:         #0A1220;
    --bg-2:       #0E1829;
    --bg-3:       #13203A;

    --ink:        #EEF3FB;
    --ink-2:      #B7C4D8;
    --ink-3:      #8B9AB2;

    --line:       #1E2C43;
    --line-2:     #2C3E5C;

    --shadow-1:   0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-2:   0 2px 4px rgba(0, 0, 0, .5), 0 24px 56px -24px rgba(0, 0, 0, .75);
  }
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Onest", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5.1vw, 60px); letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.7vw, 44px); letter-spacing: -0.03em; }
h3 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.25; }
h4 { font-size: 16px; line-height: 1.35; }
p  { text-wrap: pretty; }

::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: var(--r-sm);
  transition: top 160ms var(--e-out);
}
.skip:focus { top: 12px; }

/* ---------- 3. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sec  { padding-block: var(--sec); }
.sec--tint { background: var(--bg-2); }
.sec--edge { border-top: 1px solid var(--line); }

.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 60ch; }
.sub  { font-size: 15px; color: var(--ink-3); max-width: 64ch; }

.head { max-width: 44ch; }
.head p { margin-top: 16px; color: var(--ink-2); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 16px; font-weight: 560; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--e-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.972); }
.btn i { font-size: 18px; }

.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-1); }
.btn--ghost   { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--quiet   { background: transparent; color: var(--brand); min-height: 40px; padding: 0 4px; font-weight: 560; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--brand-ink); }
  .btn--ghost:hover   { border-color: var(--brand); color: var(--brand); }
  .btn--quiet:hover   { text-decoration: underline; text-underline-offset: 4px; }
}

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- 5. Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease, background-color 220ms ease;
}
.hdr[data-stuck="true"] { border-bottom-color: var(--line); }
@media (prefers-reduced-transparency: reduce) { .hdr { background: var(--bg); backdrop-filter: none; } }

.hdr__in { display: flex; align-items: center; gap: 28px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo__mark { width: 30px; height: 30px; }
.logo__txt { font-size: 18px; font-weight: 640; letter-spacing: -0.03em; color: var(--ink); }
.logo__txt b { color: var(--brand); font-weight: 640; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 12px; border-radius: var(--r-sm); white-space: nowrap;
  font-size: 15.5px; color: var(--ink-2); text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: var(--bg-2); } }
.nav a[aria-current="page"] { color: var(--brand); }

.hdr__cta { display: flex; align-items: center; gap: 10px; flex: none; }

.burger {
  display: none; gap: 8px; min-width: 44px; height: 44px; flex: none; padding: 0 12px;
  font-size: 15px; color: var(--ink);
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  cursor: pointer;
}
.burger i { font-size: 20px; color: var(--ink); }

@media (max-width: 1240px) {
  .nav { display: none; }
  .hdr__cta .btn--ghost { display: none; }
  .burger { display: inline-flex; margin-left: auto; }
  .hdr__cta { margin-left: 0; }
  .hdr__in { gap: 12px; }
}
@media (max-width: 560px) { .hdr__cta .btn--primary { display: none; } }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  padding: 88px var(--gut) 40px;
  display: grid; align-content: start; gap: 4px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity 200ms var(--e-out), transform 200ms var(--e-out);
}
.drawer[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
.drawer a {
  padding: 14px 0; font-size: 20px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.drawer a.btn {
  font-size: 16px; border-bottom: 0; margin-top: 24px;
  padding: 0 22px; justify-content: center;
}
.drawer a.btn--primary { background: var(--brand); color: var(--on-brand); }
.drawer__close {
  position: absolute; top: 20px; right: var(--gut);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer;
}
.drawer__close i { font-size: 22px; color: var(--ink); }

/* ---------- 6. Schematic canvas (the signature device) ---------- */
.dgm {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
}
.dgm::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
  opacity: .75;
}
.dgm > * { position: relative; }
.dgm__cap {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.dgm__cap::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dgm--flat { background: var(--bg-2); }
.dgm--plain::before { display: none; }

/* ---------- 7. Pipeline (hero infographic) ---------- */
.pipe { display: grid; gap: 0; }
.pipe__row {
  position: relative;
  display: grid; grid-template-columns: 46px 1fr; gap: 16px;
  padding: 14px 0;
  text-decoration: none;
}
.pipe__row + .pipe__row::before {
  content: ""; position: absolute; left: 23px; top: -14px; height: 28px; width: 2px;
  background: var(--line-2);
}
.pipe__node {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-2);
  color: var(--ink-3);
  transition: color 300ms ease, border-color 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
}
.pipe__node i { font-size: 22px; }
.pipe__num {
  position: absolute; left: 0; top: 8px;
  font-size: 10px; color: var(--ink-3);
}
.pipe__row > span:last-child { display: block; align-self: center; }
.pipe__t { display: block; color: var(--ink); font-weight: 560; font-size: 16.5px; line-height: 1.3; transition: color 180ms ease; }
.pipe__d { display: block; font-size: 14.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.4; }

/* Node lighting sequence: shows the flow order. Pure CSS, off main thread. */
@media (prefers-reduced-motion: no-preference) {
  .pipe__row .pipe__node { animation: nodeLit 10s var(--e-out) infinite; }
  .pipe__row:nth-child(1) .pipe__node { animation-delay: 0s; }
  .pipe__row:nth-child(2) .pipe__node { animation-delay: 2s; }
  .pipe__row:nth-child(3) .pipe__node { animation-delay: 4s; }
  .pipe__row:nth-child(4) .pipe__node { animation-delay: 6s; }
  .pipe__row:nth-child(5) .pipe__node { animation-delay: 8s; }

  .pipe__row + .pipe__row::after {
    content: ""; position: absolute; left: 23px; top: -14px; height: 28px; width: 2px;
    background: var(--brand); transform-origin: top; transform: scaleY(0);
    animation: lineFill 10s linear infinite;
  }
  .pipe__row:nth-child(2)::after { animation-delay: 0.7s; }
  .pipe__row:nth-child(3)::after { animation-delay: 2.7s; }
  .pipe__row:nth-child(4)::after { animation-delay: 4.7s; }
  .pipe__row:nth-child(5)::after { animation-delay: 6.7s; }
}
@keyframes nodeLit {
  0%, 16%   { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 5px var(--brand-tint); }
  26%, 100% { background: var(--bg); border-color: var(--line-2); color: var(--ink-3); box-shadow: 0 0 0 0 transparent; }
}
@keyframes lineFill {
  0%   { transform: scaleY(0); }
  13%  { transform: scaleY(1); }
  86%  { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .pipe__node { background: var(--brand-tint); border-color: var(--brand-soft); color: var(--brand); }
}
@media (hover: hover) and (pointer: fine) {
  .pipe__row:hover .pipe__t { color: var(--brand); }
}

/* ---------- 8. Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(48px, 6vw, 84px); }
.hero__grid {
  display: grid; gap: clamp(32px, 4.4vw, 60px);
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  align-items: center;
}
.hero h1 { font-size: clamp(32px, 3.6vw, 48px); max-width: 20ch; }
.hero__lede { margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 46ch; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 100%; }
}

/* ---------- 9. Integration strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip__in { display: flex; align-items: center; gap: clamp(24px, 4vw, 52px); padding-block: 26px; flex-wrap: wrap; }
.strip__lbl { font-size: 13px; color: var(--ink-3); flex: none; }
.strip__logos { display: flex; align-items: center; gap: clamp(22px, 3.4vw, 44px); flex-wrap: wrap; }
.strip__logos img { height: 22px; width: auto; opacity: .62; filter: grayscale(1); transition: opacity 220ms ease; }
@media (hover: hover) and (pointer: fine) { .strip__logos img:hover { opacity: 1; } }

/* ---------- 10. Problem / solution diptych ---------- */
.dip { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; margin-top: 44px; }
@media (max-width: 900px) { .dip { grid-template-columns: 1fr; } }
.dip__side { display: grid; gap: 20px; align-content: start; }
.dip__tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: start;
  font-size: 13px; padding: 5px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); color: var(--ink-3);
}
.dip__tag--good { border-color: var(--brand-soft); color: var(--brand); background: var(--brand-tint); }
.dip__list { display: grid; gap: 14px; list-style: none; padding: 0; }
.dip__list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15.5px; }
.dip__list i { font-size: 18px; color: var(--ink-3); margin-top: 3px; }
.dip__list--good i { color: var(--brand); }
.dip__list b { color: var(--ink); font-weight: 560; }

/* ---------- 11. Step cards (asymmetric grid) ---------- */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(6, 1fr); margin-top: 44px; }
.step {
  grid-column: span 2;
  display: grid; align-content: start; gap: 14px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); text-decoration: none;
  transition: border-color 220ms ease, transform 220ms var(--e-out), box-shadow 220ms ease;
}
.step:nth-child(1), .step:nth-child(2) { grid-column: span 3; }
.step:active { transform: scale(0.995); }
@media (hover: hover) and (pointer: fine) {
  .step:hover { border-color: var(--brand-soft); box-shadow: var(--shadow-1); }
  .step:hover .step__go { color: var(--brand); }
}
.step__idx { font-size: 11.5px; color: var(--ink-3); letter-spacing: .08em; }
.step__t { color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.step__d { font-size: 15px; color: var(--ink-3); }
.step__go { font-size: 14.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; transition: color 200ms ease; }
.step figure { margin: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step:nth-child(1), .step:nth-child(2) { grid-column: span 1; }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- 12. Metrics row (hairlines, no cards) ---------- */
.mets { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 1px solid var(--line); }
.mets > div { padding: 30px 24px 30px 0; border-right: 1px solid var(--line); }
.mets > div:last-child { border-right: 0; }
.mets--3 { grid-template-columns: repeat(3, 1fr); }
.mets dt { font-size: clamp(30px, 3.6vw, 44px); color: var(--ink); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.mets dd { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-3); max-width: 26ch; }
@media (max-width: 860px) {
  .mets, .mets--3 { grid-template-columns: 1fr 1fr; }
  .mets > div:nth-child(2n) { border-right: 0; }
  .mets > div { padding-inline: 0; }
  .mets > div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .mets--3 > div:nth-child(3) { border-right: 0; }
}
@media (max-width: 520px) {
  .mets, .mets--3 { grid-template-columns: 1fr; }
  .mets > div, .mets--3 > div { border-right: 0; border-left: 0; padding-left: 0; padding-block: 22px; border-bottom: 1px solid var(--line); }
}

/* ---------- 13. Industry chips + photo band ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--bg);
  font-size: 14.5px; color: var(--ink-2);
}
.chip i { font-size: 16px; color: var(--brand); }

.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.band figure { margin: 0; border-radius: var(--r); overflow: hidden; position: relative; background: var(--bg-3); aspect-ratio: 4 / 3; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 860px) { .band { grid-template-columns: 1fr 1fr; } }

/* ---------- 14. Intent tabs ---------- */
.intent { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 52px); margin-top: 40px; }
.intent__list { display: grid; gap: 6px; align-content: start; }
.intent__btn {
  text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 14px 16px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 15.5px; line-height: 1.35;
  border-left: 2px solid var(--line);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.intent__btn[aria-selected="true"] { color: var(--ink); background: var(--bg-2); border-left-color: var(--brand); font-weight: 560; }
@media (hover: hover) and (pointer: fine) { .intent__btn:hover { color: var(--ink); } }
.intent__panel { display: none; }
.intent__panel[data-active="true"] { display: grid; gap: 18px; align-content: start; }
.intent__panel h3 { max-width: 24ch; }
.intent__panel p { color: var(--ink-2); max-width: 62ch; }
.intent__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.intent__facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.intent__facts b { display: block; color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.intent__facts span { font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 860px) {
  .intent { grid-template-columns: 1fr; }
  .intent__list { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .intent__btn { scroll-snap-align: start; border-left: 0; border-bottom: 2px solid var(--line); border-radius: var(--r-sm) var(--r-sm) 0 0; }
  .intent__btn[aria-selected="true"] { border-bottom-color: var(--brand); }
  .intent__facts { grid-template-columns: 1fr; }
}

/* ---------- 15. CTA form ---------- */
.cta { background: var(--bg-2); border-top: 1px solid var(--line); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 940px) { .cta__grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; color: var(--ink); font-weight: 500; }
.field label span { color: var(--ink-3); font-weight: 400; }
.field input, .field select {
  min-height: 50px; padding: 0 14px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease;
  width: 100%;
}
.field input::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field .hint { font-size: 13px; color: var(--ink-3); }
.field .err { font-size: 13px; color: #C02A38; display: none; }
@media (prefers-color-scheme: dark) { .field .err { color: #FF8B95; } }
.field[data-invalid="true"] input { border-color: #C02A38; }
.field[data-invalid="true"] .err { display: block; }

.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__note { font-size: 14.5px; color: var(--brand); }
.form__ok {
  display: none; gap: 12px; align-items: start;
  padding: 18px; border: 1px solid var(--brand-soft); background: var(--brand-tint);
  border-radius: var(--r); color: var(--ink);
}
.form__ok i { color: var(--brand); font-size: 22px; }
.form[data-sent="true"] .form__ok { display: flex; }
.form[data-sent="true"] .form__body { display: none; }
.form__body { display: grid; gap: 18px; }

.cta__points { display: grid; gap: 16px; list-style: none; padding: 0; margin-top: 26px; }
.cta__points li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15.5px; }
.cta__points i { color: var(--brand); font-size: 18px; margin-top: 3px; }

/* ---------- 16. FAQ ---------- */
.faq { margin-top: 40px; border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 24px; gap: 16px; align-items: start;
  padding: 22px 0;
  color: var(--ink); font-size: 17.5px; font-weight: 540; line-height: 1.35;
  transition: color 180ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--brand); } }
.faq summary i { font-size: 20px; color: var(--ink-3); transition: transform 220ms var(--e-out), color 220ms ease; margin-top: 2px; }
.faq details[open] summary i { transform: rotate(45deg); color: var(--brand); }
.faq__a { padding-bottom: 24px; max-width: 68ch; font-size: 16px; color: var(--ink-2); }
.faq__a a { color: var(--brand); }

/* ---------- 17. Footer ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--bg); padding-block: 56px 34px; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.ftr ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ftr a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .ftr a:hover { color: var(--brand); } }
.ftr__about p { font-size: 15px; color: var(--ink-3); margin-top: 16px; max-width: 38ch; }
.ftr__legal {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-3);
}

/* ---------- 18. Subpage bits ---------- */
.crumbs { font-size: 13.5px; color: var(--ink-3); padding-top: 22px; }
.crumbs a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--brand); } }
.crumbs span { opacity: .5; padding-inline: 6px; }

.page-hero { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 64px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (max-width: 940px) { .page-hero__grid { grid-template-columns: 1fr; } }
.page-hero h1 { font-size: clamp(29px, 3.2vw, 41px); max-width: 21ch; }
.page-hero .lede { margin-top: 18px; }

.prose { max-width: 68ch; display: grid; gap: 18px; }
.prose h2 { font-size: clamp(23px, 2.4vw, 30px); margin-top: 14px; }
.prose ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.prose ul li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 16px; }
.prose ul i { color: var(--brand); font-size: 17px; margin-top: 4px; }
.prose b { color: var(--ink); font-weight: 560; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } }

.next { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
@media (max-width: 900px) { .next { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .next { grid-template-columns: 1fr; } }
.next a {
  display: grid; gap: 6px; align-content: start;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; transition: border-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .next a:hover { border-color: var(--brand-soft); } }
.next b { color: var(--ink); font-weight: 560; font-size: 16px; }
.next span { font-size: 14px; color: var(--ink-3); }

/* ---------- 19. Reveal on scroll (IntersectionObserver driven) ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-rv] { opacity: 0; transform: translateY(14px); transition: opacity 620ms var(--e-out), transform 620ms var(--e-out); }
  [data-rv][data-in="true"] { opacity: 1; transform: none; }
  [data-rv-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity 560ms var(--e-out), transform 560ms var(--e-out); }
  [data-rv-stagger][data-in="true"] > * { opacity: 1; transform: none; }
  [data-rv-stagger][data-in="true"] > *:nth-child(1) { transition-delay: 0ms; }
  [data-rv-stagger][data-in="true"] > *:nth-child(2) { transition-delay: 55ms; }
  [data-rv-stagger][data-in="true"] > *:nth-child(3) { transition-delay: 110ms; }
  [data-rv-stagger][data-in="true"] > *:nth-child(4) { transition-delay: 165ms; }
  [data-rv-stagger][data-in="true"] > *:nth-child(5) { transition-delay: 220ms; }
  [data-rv-stagger][data-in="true"] > *:nth-child(6) { transition-delay: 275ms; }
}

/* ---------- 20. SVG schematic helpers ---------- */
.sv { width: 100%; height: auto; }
.sv text { font-family: "JetBrains Mono", ui-monospace, monospace; fill: var(--ink-3); font-size: 11px; }
.sv .t-ink { fill: var(--ink); font-family: "Onest", sans-serif; font-size: 13px; font-weight: 560; }
.sv .t-brand { fill: var(--brand); }
.sv .box { fill: var(--bg); stroke: var(--line-2); stroke-width: 1.25; }
.sv .box-2 { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1.25; }
.sv .box-b { fill: var(--brand-tint); stroke: var(--brand-soft); stroke-width: 1.25; }
.sv .fill-b { fill: var(--brand); }
.sv .ln { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.sv .ln-b { stroke: var(--brand); stroke-width: 1.75; fill: none; }
.sv .ln-d { stroke: var(--line-2); stroke-width: 1.5; fill: none; stroke-dasharray: 4 5; }
.sv .bar { fill: var(--brand-soft); }
.sv .bar-a { fill: var(--brand); }

@media (prefers-reduced-motion: no-preference) {
  .sv .dash { stroke-dasharray: 6 8; animation: dashRun 1.4s linear infinite; }
  @keyframes dashRun { to { stroke-dashoffset: -28; } }
  .sv .pulse { animation: pulseSoft 2.6s var(--e-in-out) infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes pulseSoft { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
  .sv .grow { transform-box: fill-box; transform-origin: bottom; animation: growBar 2.4s var(--e-out) infinite alternate; }
  @keyframes growBar { from { transform: scaleY(.42); } to { transform: scaleY(1); } }
}

/* ---------- 21. Print / misc ---------- */
@media print { .hdr, .cta, .drawer { display: none; } }
