/* QuickThought demo — "Signal" skin v1.
   Precision/decision-tree aesthetic: ink navy, warm paper, electric lime
   signal accents, mono labels. System font stacks (no hosted fonts).
   Strict CSP: this file is the only stylesheet; no inline styles. */

:root {
  --ink: #0a0e14;
  --ink-2: #11161f;
  --paper: #f7f6f2;
  --panel: #ffffff;
  --line: #e4e2da;
  --line-dark: #232a38;
  --text: #1d2430;
  --muted: #5b6370;
  --muted-dark: #9aa4b5;
  --signal: #b8f03c;
  --signal-ink: #3f5b06;
  --steel: #3b82f6;
  --radius: 14px;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--steel); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px;
}
.site-head :focus-visible, .section--dark :focus-visible, .site-foot :focus-visible,
.site-nav__toggle:focus-visible {
  outline-color: var(--signal);
}
/* THE ALIGNMENT LAW (core, every site): one content column. Every band
   wraps in .wrap — the max-width centres it on wide screens and the
   inline gutter is ALWAYS on (it is what keeps content off the screen
   edges on narrow ones). Vertical rhythm lives on padding-block ONLY:
   no shorthand padding rule on a wrapped element can ever clobber the
   gutter again (the old `padding: 64px 0` on .section wiped it). */
.wrap { max-width: 1600px; margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 64px; }
.section--tight { padding-block: 44px; }
.section--dark { background: var(--ink); color: #e8ecf3; }
.section--panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50;
}
.skip-link:focus { left: 0; }

.kicker {
  margin: 0 0 10px;
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .kicker, .hero .kicker, .cta-band .kicker { color: var(--signal); }
.kicker--foot { color: var(--muted-dark); }

h1, h2, h3 { font-family: var(--sans); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; }
.h-hero { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.h-page { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.h-section { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.h-card { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.lede { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0 0 10px; }
.section--dark .lede, .hero .lede { color: var(--muted-dark); }
mark { background: var(--signal); color: var(--ink); padding: 0 0.12em; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 99px;
  font: 700 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease,
    border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.btn--accent {
  background: var(--signal); color: var(--ink);
  box-shadow: 0 1px 2px rgba(10, 14, 20, 0.22), 0 5px 16px rgba(10, 14, 20, 0.12);
}
.btn--accent:hover {
  filter: brightness(1.05); transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(10, 14, 20, 0.24), 0 9px 24px rgba(10, 14, 20, 0.16);
}
.btn--accent:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(10, 14, 20, 0.22); }
.btn--ghost { border-color: var(--line-dark); color: #e8ecf3; background: transparent; }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn--ink {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 2px rgba(10, 14, 20, 0.28), 0 5px 16px rgba(10, 14, 20, 0.16);
}
.btn--ink:hover {
  filter: brightness(1.14); transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(10, 14, 20, 0.3), 0 9px 24px rgba(10, 14, 20, 0.2);
}
.btn--ink:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(10, 14, 20, 0.28); }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.link-plain { font-weight: 600; }

/* Header */
.site-head {
  background: var(--ink); color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.site-head__row { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--signal); color: var(--ink);
  font: 800 15px/1 var(--mono);
}
.brand__name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand__name sup { font-size: 9px; font-weight: 600; margin-left: 1px; }
.site-nav__list { display: flex; gap: 26px; align-items: center; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { color: #cfd6e2; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--signal); }
.site-nav__list a.btn { color: var(--ink); }
.site-nav__list a.btn:hover { color: var(--ink); filter: brightness(1.06); }
.site-nav__toggle { display: none; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(184, 240, 60, 0.14), transparent 60%),
    radial-gradient(700px 380px at 10% 110%, rgba(59, 130, 246, 0.12), transparent 60%),
    var(--ink);
  color: #e8ecf3;
  padding-block: 84px 72px;
  position: relative;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding: 0; list-style: none; }
.hero__badges li {
  font: 600 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-dark); border: 1px solid var(--line-dark); border-radius: 99px; padding: 7px 12px;
}
.hero__path {
  margin: 0; padding: 0; list-style: none;
  position: relative;
}
/* One restrained glow behind the process visual (the only gradient the
   opening earns; decorative, reduced-motion safe). */
.hero__path::before {
  content: ""; position: absolute; inset: -56px -40px;
  background: radial-gradient(460px 300px at 55% 42%, rgba(184, 240, 60, 0.20), transparent 72%);
  pointer-events: none;
}
.hero__path li { display: flex; gap: 18px; padding: 24px 0; position: relative; }
.hero__path li + li::before {
  content: ""; position: absolute; left: 16px; top: -24px; height: 24px; width: 2px;
  background: var(--line-dark);
}
.hero__path .node {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--signal); color: var(--ink); font: 700 14px/1 var(--mono);
  position: relative; z-index: 1;
}
.hero__path .node--alt { background: var(--signal); color: var(--ink); }
.hero__path strong { display: block; font-size: 17px; }
.hero__path span:last-child { color: var(--muted-dark); font-size: 14px; opacity: 0.82; line-height: 1.35; }

/* Hero: light surface (the asymmetric benchmark variant). Default remains
   dark; the surface is a typed block field, not custom markup. */
.hero--light {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(184, 240, 60, 0.22), transparent 62%),
    radial-gradient(700px 380px at 8% 110%, rgba(59, 130, 246, 0.10), transparent 60%),
    var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero--light .kicker { color: var(--muted); }
.hero--light .lede { color: var(--muted); }
.hero--light .btn--ghost { border-color: rgba(10, 14, 20, 0.28); color: var(--ink); }
.hero--light .btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(10, 14, 20, 0.04); }
.hero--light .hero__path li + li::before { background: linear-gradient(var(--line), rgba(184, 240, 60, 0.6)); }
.hero--light .hero__path .node { box-shadow: 0 1px 2px rgba(10, 14, 20, 0.14); }
.hero--light .hero__path strong { color: var(--ink); }
.hero--light .hero__path span:last-child { color: var(--muted); }

/* Headline: solid ink. Lime is reserved for the primary action; any
   <mark> in a hero heading reads as plain emphasis (no gradient, no
   highlighter block). */
.hero .h-hero mark {
  background: none; color: inherit; padding: 0; border-radius: 0;
}

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); background: var(--panel); }
.trust__row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding-block: 18px; }
.trust__label { font: 600 11.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.trust__items { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.trust__items li { font-weight: 700; font-size: 14.5px; color: #39404c; }

/* Card grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
/* THE IMAGE LAW (both hosts): card photos always keep their aspect ratio
   and fill a fixed 16:10 shape; the frame clips, nothing squashes. */
.card__photo { aspect-ratio: 16 / 10; border-radius: calc(var(--radius) - 4px) calc(var(--radius) - 4px) 0 0; overflow: hidden; margin: -24px -22px 4px; background: var(--paper); }
.card__photo picture, .card__photo img { display: block; width: 100%; height: 100%; }
.card__photo img { object-fit: cover; object-position: center; }
.card__photo.qf-nophoto { background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 8px, var(--line) 8px, var(--line) 9px); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: #cfccc0; box-shadow: 0 8px 24px rgba(10, 14, 20, 0.06); }
.card__chip {
  align-self: flex-start; font: 700 11px/1 var(--mono); letter-spacing: 0.1em;
  background: var(--ink); color: var(--signal); border-radius: 6px; padding: 6px 9px;
  text-transform: uppercase;
}
.card p { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.card .card__link { margin-top: auto; font-weight: 700; font-size: 14px; text-decoration: none; }
.card .card__link:hover { text-decoration: underline; }

/* Steps (decision path) */
.steps { margin-top: 34px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  display: block; padding: 22px 0 22px 64px; position: relative; counter-increment: step;
}
.steps li + li::before {
  content: ""; position: absolute; left: 22px; top: -6px; height: 22px; width: 2px;
  background: var(--line);
}
.steps li::after {
  content: "0" counter(step);
  position: absolute; left: 0; top: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--signal); font: 700 14px/1 var(--mono);
}
.steps li:last-child::after { background: var(--signal); color: var(--ink); }
.steps h3 { margin: 4px 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; align-items: stretch; }
.plan {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; position: relative;
}
.plan--featured { border-color: var(--ink); box-shadow: 0 14px 34px rgba(10, 14, 20, 0.10); }
.plan__badge {
  position: absolute; top: -12px; left: 20px;
  background: var(--signal); color: var(--ink);
  font: 700 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 99px; padding: 7px 12px;
}
.plan__name { font-size: 20px; font-weight: 800; margin: 6px 0 2px; }
.plan__price { font: 800 30px/1.1 var(--sans); letter-spacing: -0.02em; margin: 10px 0 4px; }
.plan__blurb { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.plan__features { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.plan__features li { padding-left: 24px; position: relative; font-size: 14.5px; }
.plan__features li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px;
  border-radius: 3px; background: var(--signal); border: 2px solid var(--ink);
}
.plan .btn { margin-top: auto; text-align: center; }
.plan .btn--ghost { border-color: var(--line); color: var(--text); }
.plan .btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Testimonial */
.quote {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; margin: 22px 0 0;
}
.quote blockquote { margin: 0 0 16px; font-size: 19px; line-height: 1.5; letter-spacing: -0.01em; }
.quote blockquote::before { content: "“"; color: var(--signal); font-size: 44px; line-height: 0; vertical-align: -12px; margin-right: 4px; }
.quote figcaption { font: 600 13.5px/1.5 var(--sans); color: var(--text); }
.quote figcaption span { display: block; color: var(--muted); font-weight: 500; }
.quote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote-row .quote { margin-top: 30px; display: flex; flex-direction: column; }
.quote-row blockquote { font-size: 16px; flex: 1; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.stat { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font: 800 30px/1.1 var(--sans); color: var(--signal); letter-spacing: -0.02em; }
.stat span { color: var(--muted-dark); font-size: 13.5px; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(560px 260px at 88% -20%, rgba(184, 240, 60, 0.10), transparent 70%),
    radial-gradient(420px 220px at 6% 120%, rgba(59, 130, 246, 0.10), transparent 70%),
    var(--ink);
  color: #e8ecf3; border-radius: 18px; padding: 46px 42px;
}
.cta-band__row { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band p { color: var(--muted-dark); max-width: 56ch; margin: 0; }

/* Text and image */
.ti { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.ti h2 { position: relative; padding-top: 18px; }
.ti h2::before {
  content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 3px;
  background: var(--signal); border-radius: 2px;
}
.ti__media img { border-radius: calc(var(--radius) + 6px); box-shadow: 0 24px 60px rgba(10, 14, 20, 0.12); }
.ti--flip .ti__media { order: 2; }
.ti__media { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); min-height: 240px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ti__media img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; object-position: center; }
.ti__placeholder { font: 600 12px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 40px; text-align: center; }
.ti p { color: var(--muted); }

/* Divider */
.divider { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

/* Forms (CMS LITE Forms runtime) — the core form-runtime.css owns the
   control system; this maps the core --qf-* tokens onto the Signal skin
   and styles only what is host-specific (layout, panels, buttons). */
.qf {
  max-width: 720px; margin-inline: auto;
  --qf-ink: var(--ink);
  --qf-text: var(--text);
  --qf-muted: var(--muted);
  --qf-line: #7d838d;
  --qf-line-soft: var(--line);
  --qf-surface: var(--panel);
  --qf-page: var(--paper);
  --qf-focus: rgba(10, 14, 20, 0.11);
  --qf-danger: #be123c;
  --qf-radius: 10px;
  --qf-scroll-offset: 92px;
}
@media (min-width: 900px) {
  .qf:has(.qf-steps--sidebar) { max-width: 100%; }
}
/* The modal dialog is moved to the body by the runtime, outside the .qf
   scope: map the same site tokens so its surface, border and text keep
   the design system instead of falling back to nothing. */
.qf-modal-dialog {
  --qf-ink: var(--ink);
  --qf-text: var(--text);
  --qf-muted: var(--muted);
  --qf-line: #7d838d;
  --qf-line-soft: var(--line);
  --qf-surface: var(--panel);
  --qf-page: var(--panel);
  --qf-focus: rgba(10, 14, 20, 0.11);
  --qf-danger: #be123c;
  --qf-radius: 10px;
  --qf-scroll-offset: 92px;
}
.qf-noscript { font-size: 13.5px; color: var(--muted); }
.qf-step__title { font-size: 25px; font-weight: 800; letter-spacing: -0.015em; margin: 2px 0 10px; }
.qf-step__intro { color: var(--muted); margin: 0 0 24px; font-size: 15.5px; }
.qf-step__intro--notice { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 10px; padding: 12px 14px; color: var(--text); font-size: 14.5px; line-height: 1.55; }
.qf-back[hidden], .qf-next[hidden], .qf-save-later[hidden] { display: none !important; }
.qf-step { padding: 6px 0 4px; }
.qf-field input, .qf-field select, .qf-field textarea { font-family: var(--sans); }
.qf-error-summary { background: #fdf2f4; border: 1px solid #f4c3cf; color: #9f1239; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.qf-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; padding-top: 6px; }
.qf-nav .btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.qf-nav .btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.qf-nav .btn--ghost:active { transform: translateY(0); }
.qf-privacy { font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.qf-success { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.qf-ref { font: 600 13.5px/1.5 var(--mono); color: var(--muted); }
.qf-hp { position: absolute; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }

/* Footer */
.site-foot { background: var(--ink); color: var(--muted-dark); margin-top: 64px; }
.site-foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-block: 46px 30px; }
.site-foot__tag { max-width: 34ch; font-size: 14px; margin: 14px 0 0; }
.brand__mark--foot { width: 30px; height: 30px; font-size: 13px; }
.site-foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot__links a { color: #cfd6e2; text-decoration: none; font-size: 14.5px; }
.site-foot__links a:hover { color: var(--signal); }
.site-foot__base { border-top: 1px solid var(--line-dark); padding-block: 18px 26px; font-size: 13px; }

/* Reveal on scroll (JS adds .is-in; off under reduced motion) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid, .ti, .site-foot__grid { grid-template-columns: 1fr; }
  .cards, .plans, .quote-row { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards, .plans, .quote-row, .stats { grid-template-columns: 1fr; }
  .site-nav__toggle {
    display: inline-block; background: transparent; color: #fff; border: 1px solid var(--line-dark);
    border-radius: 8px; padding: 8px 14px; font: 600 13px/1 var(--sans); cursor: pointer;
  }
  .site-nav__list {
    display: none; position: absolute; right: 20px; top: 60px; flex-direction: column;
    background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 12px; padding: 14px 18px; gap: 14px;
  }
  .site-nav__list.is-open { display: flex; }
  .section { padding-block: 44px; }
  .cta-band { padding: 32px 24px; }
}

/* Forms Slice B: grouped fieldsets + resume panel */
.qf-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.qf-group legend { font: 700 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 8px; }
.qf-resume { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; font-size: 14px; }
.qf-resume a { word-break: break-all; }

/* Forms Slice C: disqualify outcome + hidden-by-rule fields */
.qf-success--stop { border-color: #f4c3cf; background: #fdf2f4; }
.qf-field[hidden], .qf-step[hidden] { display: none !important; }

/* Video block (YouTube / Vimeo): the 16:9 frame + the click-to-load
   facade. ZERO provider requests before activation. */
.b-video { margin: 0; }
.b-video-embed__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #0a0e14; border: 1px solid var(--line);
}
.b-video-embed__frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
/* First-party cover image (fetched server-side; the visitor's browser
   never talks to the provider before activation). The translucent load
   button keeps the play affordance readable over it. */
.b-video-embed__frame .b-video-embed__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.b-video-embed__load {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(10, 14, 20, 0.55); color: #fff; border: 0; cursor: pointer;
  font: 600 14px/1.4 var(--sans); letter-spacing: 0.02em;
  transition: background 0.18s ease;
}
.b-video-embed__load:hover { background: rgba(10, 14, 20, 0.75); }
.b-video-embed__load:focus-visible { outline: 2px solid var(--signal); outline-offset: -4px; }
.b-video-embed__icon { width: 56px; height: 56px; color: var(--signal); opacity: 0.9; transition: transform 0.18s ease, opacity 0.18s ease; }
.b-video-embed__load:hover .b-video-embed__icon { transform: scale(1.06); opacity: 1; }
.b-video-embed__provider {
  font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-dark); opacity: 0.7;
}
.b-video-embed__caption {
  margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .b-video-embed__icon, .b-video-embed__load { transition: none; }
  .b-video-embed__load:hover .b-video-embed__icon { transform: none; }
}

/* Local Video block: the native first-party player (the restored
   original design). Native controls are mandatory; the caption adapts
   to the theme tokens. */
.b-video__player {
  width: 100%; height: auto; display: block;
  border-radius: 14px; background: #0a0e14; border: 1px solid var(--line);
}
.b-video__caption {
  margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center;
}

/* Self-hosted film: a deliberate dark frame; native controls stay (a11y) */
.b-video { margin: 0; padding: 12px; background: var(--ink); border-radius: calc(var(--radius) + 6px); }
.b-video__player { display: block; width: 100%; height: auto; border-radius: var(--radius); background: #000; }
.b-video__caption { margin: 12px 4px 2px; color: #c9cfda; font-size: 13.5px; }

/* Carousel: swipeable image stories (native scroll-snap, keyboard focus,
   no autoplay; reduced motion respected) */
.carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 0 18px; margin: 0; list-style: none; scrollbar-width: thin;
}
.carousel:focus-visible { outline: 3px solid rgba(59, 130, 246, 0.35); outline-offset: 4px; border-radius: 12px; }
.carousel__slide { flex: 0 0 44%; scroll-snap-align: start; }
.carousel__card {
  margin: 0; height: 100%; background: var(--panel);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.carousel__card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(10, 14, 20, 0.09); }
@media (prefers-reduced-motion: reduce) { .carousel__card { transition: none; } .carousel__card:hover { transform: none; box-shadow: none; } }
.carousel__card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.carousel__caption { padding: 16px 18px 20px; }
.carousel__title { margin: 0 0 6px; font-size: 17px; }
.carousel__text { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 800px) { .carousel__slide { flex-basis: 86%; } }
@media (prefers-reduced-motion: reduce) { .carousel { scroll-behavior: auto; } }

/* Slider: one full-width image at a time, words on a dark strip. Without
   JS the slides stack (nothing hidden); JS takes over with a transform
   track, a timer, pause on hover/focus/tab-hidden, and a pause control. */
.slider { position: relative; overflow: hidden; background: var(--ink); }
.slider .kicker { color: var(--signal); }
.slider > .wrap { padding-block: 34px 10px; color: #e8ecf3; }
.slider > .wrap .h-section { color: #fff; }
.slider__viewport { overflow: hidden; outline-offset: 4px; }
.slider__track { margin: 0; padding: 0; list-style: none; }
.slider__slide { position: relative; }
.slider__slide img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.slider__caption {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(10, 14, 20, 0.84));
  padding-block: 56px 24px;
}
.slider__title { color: #fff; margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 30px); }
.slider__text { color: #d9dee8; margin: 0; max-width: 62ch; }
.slider--js .slider__track { display: flex; transition: transform 600ms ease; }
.slider--js .slider__slide { flex: 0 0 100%; }
.slider--js .slider__slide + .slider__slide { display: block; }
.slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(10, 14, 20, 0.44); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.slider__nav:hover { background: rgba(10, 14, 20, 0.7); }
.slider__nav::before { content: "‹"; }
.slider__nav--next::before { content: "›"; }
.slider__nav--prev { left: 18px; }
.slider__nav--next { right: 18px; }
.slider__controls { position: absolute; inset-inline: 0; bottom: 12px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.45); cursor: pointer; }
.slider__dot[aria-current="true"] { background: #fff; }
.slider__pause { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(10, 14, 20, 0.5); color: #fff; font: 600 10px/1 var(--mono); cursor: pointer; }
.slider__pause::before { content: "II"; }
.slider__pause[data-paused="true"]::before { content: "▶"; }
.slider__nav, .slider__pause { display: none; }
.slider--js .slider__nav, .slider--js .slider__pause { display: block; }
@media (max-width: 800px) {
  .slider__slide img { aspect-ratio: 4 / 3; }
  .slider__caption { padding-block: 30px 44px; }
  .slider--js .slider__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .slider--js .slider__track { transition: none; } }

/* Hero diagram: the process visual, its spine, the rules chip and the
   positioning note (rule-driven, never improvised) */
.hero__diagram { position: relative; }
.hero__path .chip {
  display: inline-block; margin-top: 11px; padding: 3px 9px;
  font: 600 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--signal); border-radius: 999px;
}
.hero__note { margin: 10px 0 0 52px; max-width: 44ch; color: var(--muted); font-size: 13.5px; }
.hero--light .hero__note { color: var(--muted); }
@media (max-width: 800px) { .hero__note { margin-left: 0; } }

/* Process map: the renderer-drawn "how it works" path. A structured
   ordered list first; the spine, markers and kinds are decorative CSS.
   Branch = a decision, outcome = a path taken, exit = a polite ending
   that leaves the main path. */
.pmap { list-style: none; margin: 20px 0 0; padding: 0; max-width: 800px; }
.pmap__item { position: relative; display: flex; gap: 18px; padding: 13px 0; }
.pmap__item + .pmap__item::before {
  content: ""; position: absolute; left: 13px; top: -13px; height: 26px; width: 2px; background: var(--line);
}
.pmap__item--exit + .pmap__item::before { display: none; }
.pmap__marker {
  flex: 0 0 28px; height: 28px; margin-top: 2px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 1px var(--line); position: relative; z-index: 1;
}
.pmap__item--branch .pmap__marker { background: var(--ink); box-shadow: 0 0 0 3px rgba(184, 240, 60, 0.4); }
.pmap__item--outcome .pmap__marker { background: var(--steel); box-shadow: 0 0 0 1px var(--line); }
.pmap__item--exit { margin-left: 30px; }
.pmap__item--exit .pmap__marker { background: var(--panel); border: 2px dashed var(--line); box-shadow: none; }
.pmap__label { margin: 0 0 4px; font-weight: 700; font-size: 16px; color: var(--ink); }
.pmap__chip {
  display: inline-block; margin-left: 8px; padding: 2px 8px; vertical-align: middle;
  font: 600 10px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--signal); border-radius: 999px;
}
.pmap__detail { color: var(--muted); font-size: 14.5px; }
.pmap__detail p { margin: 0; }
.pmap__note { margin: 24px 0 0; padding-left: 14px; border-left: 3px solid var(--signal); color: var(--muted); font-size: 14px; max-width: 58ch; }
.pmap__intro p { margin: 0 0 6px; }

/* FAQ: native details/summary, design-system surfaces */
.faq { margin: 22px 0 0; max-width: 820px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 44px 18px 0; font-weight: 700; font-size: 16.5px; color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: 600 20px/1 var(--mono); color: var(--muted);
}
.faq__item[open] .faq__q::after { content: "–"; }
.faq__q:focus-visible { outline: 3px solid rgba(59, 130, 246, 0.35); outline-offset: 3px; border-radius: 6px; }
.faq__a { padding: 0 44px 18px 0; color: var(--muted); font-size: 14.5px; }
.faq__a p { margin: 0 0 8px; }

/* Download block: one document as a button, or up to twelve as a list. */
.b-download__btn{display:inline-flex;align-items:flex-start;gap:10px;text-align:left;max-width:100%}
.b-download__icon{display:inline-flex;flex:0 0 auto;margin-top:2px}
.b-download__text{display:flex;flex-direction:column;gap:2px;min-width:0}
.b-download__label{overflow-wrap:anywhere}
.b-download__sub{font-size:.8em;font-weight:500;opacity:.85;overflow-wrap:anywhere}
.b-download__list{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:6px;max-width:760px}
.b-download__item{margin:0}
.b-download__link{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:10px 0;text-decoration:none;color:inherit;border-bottom:1px solid var(--line-dark)}
.b-download__item:last-child .b-download__link{border-bottom:0}
.b-download__link:hover .b-download__label{text-decoration:underline}
.b-download__placeholder{margin:0;padding:14px 18px;border:1px dashed var(--line-dark);border-radius:8px;color:var(--muted, #9aa4b2);font-size:.95rem}

/* A dialog owns the top layer: mute the chat launcher while it is open so
   it cannot sit over the form or its backdrop. */
body:has(dialog[open]) .chat-wrapper,
body:has(dialog[open]) .chat-popup { display: none; }
