@layer sb-tokens, sb-base, sb-blocks, sb-frame, sb-style, sb-style-blocks;

@layer sb-tokens {
:root {
  --paper: #f8f5ee;
  --paper-dim: #efe9dc;
  --card: #fffcf5;
  --ink: #1b1916;
  --ink-soft: #5c554a;
  --line: #ddd5c4;
  --primary: #1b1916;
  --primary-dark: #3d372f;
  --on-primary: #f8f5ee;
  --accent: #b5451b;
  --success: #3f7d4e;
  --warning: #a8660a;
  --danger: #b42318;
  --dark: #1b1916;
  --dark-card: #25221d;
  --dark-line: #3d382f;
  --dark-ink: #f3eee3;
  --dark-muted: #b5ac9a;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius-sm: 0px;
  --radius-md: 2px;
  --radius-lg: 4px;
  --radius-button: 0px;
  --space-section-base: 112px;
  --heading-weight: 500;
  --heading-tracking: -0.02em;
  --heading-scale: 1.12;
  --eyebrow-font: var(--font-body);
  --eyebrow-case: uppercase;
  --eyebrow-tracking: 0.06em;
  --label-font: var(--font-body);
  --border-w: 1px;
  --shadow-sm: 0 1px 0 rgba(27, 25, 22, 0.06);
  --shadow-md: 0 18px 40px -30px rgba(27, 25, 22, 0.35);
  --shadow-lg: 0 30px 70px -44px rgba(27, 25, 22, 0.55);
  --shadow-card: none;
  --motion-duration: 0.8s;
  --motion-easing: cubic-bezier(0.2, 0.7, 0.2, 1);
  --reveal-distance: 10px;
}
}

@layer sb-base {
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Role tokens. Light is the default; every tone class starts a new scope. */
:root, .tone-light, .tone-dim {
  --bg: var(--paper);
  --bg-card: var(--card);
  --bg-soft: var(--paper-dim);
  --bg-inset: var(--paper-dim);
  --fg: var(--ink);
  --fg-muted: var(--ink-soft);
  --fg-heading: var(--ink);
  --border: var(--line);
  --emph: var(--primary);
  --on-emph: var(--on-primary);
  --positive: var(--success);
  --caution: var(--warning);
  --negative: var(--danger);
}
:root {
  /* Device frames (phones, terminals) are drawn from the dark palette in every tone */
  --device-body: color-mix(in srgb, var(--dark) 60%, var(--dark-line));
  --device-edge: color-mix(in srgb, var(--dark-line) 92%, var(--dark-muted));
  --space-section: var(--space-section-base);
  --space-section-md: calc(var(--space-section-base) * 7 / 12);
  --space-section-sm: calc(var(--space-section-base) / 3);
}
.tone-dim {
  --bg: var(--paper-dim);
}
.tone-dark {
  --bg: var(--dark);
  --bg-card: var(--dark-card);
  --bg-soft: var(--dark-card);
  --bg-inset: var(--dark);
  --fg: var(--dark-ink);
  --fg-muted: var(--dark-muted);
  --fg-heading: var(--dark-ink);
  --border: var(--dark-line);
  --emph: var(--accent);
  --on-emph: var(--dark);
  --positive: color-mix(in oklab, var(--success) 72%, var(--dark-ink));
  --caution: color-mix(in oklab, var(--warning) 72%, var(--dark-ink));
  --negative: color-mix(in oklab, var(--danger) 72%, var(--dark-ink));
}
/* Emphasis must stay readable whatever brand colours a site brings: at most
   mid lightness on light sections, at least fairly light on dark ones. Colours
   that already contrast are unchanged. */
@supports (color: oklch(from red l c h)) {
  :root, .tone-light, .tone-dim { --emph: oklch(from var(--primary) min(l, 0.6) c h); }
  .tone-dark { --emph: oklch(from var(--accent) max(l, 0.7) c h); }
}
/* Signals on dark: lift lightness but keep chroma, so greens stay green rather than turning grey */
@supports (color: oklch(from red l c h)) {
  .tone-dark {
    --positive: oklch(from var(--success) max(l, 0.74) c h);
    --caution: oklch(from var(--warning) max(l, 0.82) c h);
    --negative: oklch(from var(--danger) max(l, 0.72) c h);
  }
}
.tone-brand {
  --bg: var(--primary);
  --bg-card: color-mix(in srgb, var(--on-primary) 12%, var(--primary));
  --bg-soft: color-mix(in srgb, var(--on-primary) 9%, var(--primary));
  --bg-inset: color-mix(in srgb, var(--on-primary) 9%, var(--primary));
  --fg: var(--on-primary);
  --fg-muted: color-mix(in srgb, var(--on-primary) 82%, var(--primary));
  --fg-heading: var(--on-primary);
  --border: color-mix(in srgb, var(--on-primary) 26%, var(--primary));
  --emph: var(--on-primary);
  --on-emph: var(--primary);
  --positive: color-mix(in oklab, var(--success) 45%, var(--on-primary));
  --caution: color-mix(in oklab, var(--warning) 45%, var(--on-primary));
  --negative: color-mix(in oklab, var(--danger) 45%, var(--on-primary));
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  margin: 0;
  color: var(--fg-heading);
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--on-primary);
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--emph); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Reveal-on-scroll: progressive enhancement, content is visible without JS */
[data-reveal] { opacity: 0; transform: translateY(var(--reveal-distance)); transition: opacity var(--motion-duration) var(--motion-easing), transform var(--motion-duration) var(--motion-easing); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }
html.no-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }

/* Section frame: the tone of a section paints it; nested scopes only re-bind tokens */
.blk { padding: var(--space-section) 0; }
.blk.tone-light, .blk.tone-dim, .blk.tone-dark, .blk.tone-brand, .surface { background: var(--bg); color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: var(--radius-button); border: var(--border-w) solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap; cursor: pointer; max-width: 100%;
}
/* Long labels (translations run longer) wrap on phones instead of widening the page. */
@media (max-width: 600px) { .btn { white-space: normal; text-align: center; } }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.tone-brand .btn-primary { background: var(--on-primary); color: var(--primary); }
.tone-brand .btn-primary:hover { background: color-mix(in srgb, var(--on-primary) 88%, var(--primary)); }
.btn-ghost { background: transparent; color: var(--fg-heading); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--emph); color: var(--emph); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-muted { font-size: 0.92rem; font-weight: 500; color: var(--fg-muted); }
.link-muted:hover { color: var(--fg); }

/* Eyebrows and section heads */
.eyebrow {
  font-family: var(--eyebrow-font); font-size: 0.78rem; font-weight: 500;
  letter-spacing: var(--eyebrow-tracking); text-transform: var(--eyebrow-case); color: var(--emph); margin: 0 0 14px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head-wide { max-width: 700px; }
.section-head h2 { font-size: calc(clamp(1.7rem, 3vw, 2.35rem) * var(--heading-scale)); line-height: 1.16; margin-bottom: 16px; }
.section-lede { font-size: 1.05rem; color: var(--fg-muted); max-width: 58ch; }
.section-lede + .section-lede { margin-top: 12px; }
.section-cta { margin-top: 44px; display: flex; justify-content: center; }

/* Primitives shared by blocks. Styles restyle these. */
.card { background: var(--bg-card); border: var(--border-w) solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 500; color: var(--fg-muted);
  background: var(--bg-card); border: var(--border-w) solid var(--border); border-radius: 999px; padding: 7px 16px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
a.chip:hover { border-color: var(--emph); color: var(--emph); }
.label-caps { font-family: var(--label-font); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-muted); }
.icon-tile { display: inline-flex; color: var(--emph); width: 32px; height: 32px; }
.icon-tile svg { width: 100%; height: 100%; }

/* Signal tints. Anything with data-tone gets --sig (the colour) and derived
   --sig-bg / --sig-line; on dark they are recomputed at a fixed low lightness
   so they stay saturated instead of turning grey. */
[data-tone] {
  --sig-bg: color-mix(in srgb, var(--sig) 12%, var(--bg-card));
  --sig-line: color-mix(in srgb, var(--sig) 45%, var(--bg-card));
}
@supports (color: oklch(from red l c h)) {
  .tone-dark [data-tone] {
    --sig-bg: oklch(from var(--sig) 0.24 calc(c * 0.5) h);
    --sig-line: oklch(from var(--sig) 0.48 calc(c * 0.8) h);
  }
}

/* Status pills. The tone picks the signal colour; tints derive from it. */
.badge {
  --sig: var(--fg-muted);
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--label-font); font-size: 0.74rem; font-weight: 500;
  padding: 5px 12px; border-radius: 999px;
  color: var(--sig);
  border: var(--border-w) solid var(--sig-line, var(--border));
  background: var(--sig-bg, var(--bg-inset));
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.badge--plain::before { display: none; }
.badge[data-tone="neutral"] { --sig: var(--fg-muted); border-color: var(--border); background: var(--bg-inset); }
.badge[data-tone="brand"] { --sig: var(--emph); }
.badge[data-tone="accent"] { --sig: var(--accent); }
.badge[data-tone="positive"] { --sig: var(--positive); }
.badge[data-tone="caution"] { --sig: var(--caution); }
.badge[data-tone="negative"] { --sig: var(--negative); }

/* Entrance animation primitives: pieces start "before" and settle when their
   [data-reveal] ancestor is revealed. Still for reduced motion, in the editor
   preview (html.no-reveal) and without JavaScript (see noscriptCss). */
.anim-draw { stroke-dasharray: 1000; }
@media (prefers-reduced-motion: no-preference) {
  .anim-grow { transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0s); transform-box: fill-box; transform-origin: var(--grow-origin, 50% 100%); }
  .anim-draw { transition: stroke-dashoffset 1.4s ease var(--delay, 0s); }
  .anim-fade { transition: opacity 0.9s ease var(--delay, 0s); }
  html:not(.no-reveal) [data-reveal]:not(.is-visible) .anim-grow { transform: scale(var(--grow-x, 1), var(--grow-y, 0)); }
  html:not(.no-reveal) [data-reveal]:not(.is-visible) .anim-draw { stroke-dashoffset: 1000; }
  html:not(.no-reveal) [data-reveal]:not(.is-visible) .anim-fade { opacity: 0; }
}

/* People: a round photo or initials */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar--initials { display: inline-grid; place-items: center; background: color-mix(in srgb, var(--emph) 16%, var(--bg-card)); color: var(--emph); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; }

/* Image placeholder shown in the editor preview only */
.img-placeholder {
  display: grid; place-items: center; min-height: 160px; width: 100%;
  border: 1px dashed var(--border); border-radius: var(--radius-md); background: var(--bg-soft);
  color: var(--fg-muted); font-size: 0.85rem; font-family: var(--font-mono);
}

/* Prose inside rich text fields */
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.prose ul { margin: 0; padding-left: 20px; color: var(--fg-muted); }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--emph); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; }
.prose-wrap { max-width: calc(72ch + 2 * var(--gutter)); }

@media (max-width: 760px) {
  :root {
    --space-section: calc(var(--space-section-base) * 2 / 3);
    --space-section-md: calc(var(--space-section-base) * 5 / 12);
    --space-section-sm: calc(var(--space-section-base) / 4);
  }
}
}

@layer sb-blocks {
/* ---- hero ---- */
.hero { position: relative; padding: 80px 0 56px; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-grid--single { grid-template-columns: 1fr; }
.hero-grid--single .hero-copy { max-width: 720px; }
.hero-copy h1 { font-size: calc(clamp(2.2rem, 4.6vw, 3.5rem) * var(--heading-scale)); line-height: 1.07; margin-bottom: 22px; }
.hero-lede { font-size: 1.12rem; color: var(--fg-muted); max-width: 52ch; }
.hero-lede + .hero-lede { margin-top: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-image img { border-radius: var(--radius-lg); }
.hero-steps { border-radius: var(--radius-lg); padding: 26px 26px 22px; box-shadow: var(--shadow-md); }
.hero-steps-label { font-size: 0.76rem; letter-spacing: 0.06em; margin-bottom: 20px; }
.hero-steps-list { list-style: none; margin: 0; padding: 0; }
.hero-steps-item { position: relative; padding: 0 0 26px 30px; }
.hero-steps-item:last-child { padding-bottom: 0; }
.hero-steps-item::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: -2px; width: 1.5px; background: var(--border); }
.hero-steps-item:last-child::before { display: none; }
.hero-steps-dot { position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--emph); background: var(--bg-card); }
.hero-steps-item--end .hero-steps-dot { background: var(--success); border-color: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 16%, transparent); }
.hero-steps-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--fg-heading); }
.hero-steps-sub { display: block; font-family: var(--font-mono); font-size: 0.76rem; color: var(--fg-muted); margin-top: 3px; }
.hero-steps-foot { margin-top: 22px; padding-top: 18px; border-top: var(--border-w) solid var(--border); font-size: 0.86rem; color: var(--fg-muted); }
.hero-steps-foot strong { color: var(--fg-heading); }
.hero--centered .hero-grid { justify-items: center; text-align: center; }
.hero--centered .hero-copy { max-width: 800px; }
.hero--centered .hero-lede { margin-left: auto; margin-right: auto; }
.hero--centered .hero-actions { justify-content: center; }
.hero--centered .hero-steps { width: 100%; max-width: 560px; text-align: left; }
.hero--centered .hero-image, .hero--stacked .hero-image { width: 100%; }
.hero--stacked .hero-copy { max-width: 780px; }
.hero--stacked .hero-steps-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px 24px; }
.hero--stacked .hero-steps-item { padding: 0 0 0 26px; }
.hero--stacked .hero-steps-item::before { display: none; }
/* An image background: a tall section, and a wash that is heavy behind left-aligned text and light on the right. */
.hero.has-bd-image { display: flex; align-items: center; min-height: min(86vh, 720px); padding: 120px 0 96px; }
.hero.has-bd-image > .wrap { width: 100%; }
.hero.has-bd-image:not(.hero--centered) { --bd-wash-lead: 22%; --bd-wash-trail: 54%; }
@media (max-width: 1080px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero-steps { max-width: 520px; } }
@media (max-width: 760px) { .hero.has-bd-image:not(.hero--centered) { --bd-wash-angle: 180deg; --bd-wash-lead: 0%; --bd-wash-trail: -22%; } .hero.has-bd-image { min-height: 0; padding: 88px 0 64px; } }
@media (max-width: 760px) { .hero { padding: 52px 0 44px; } }

/* ---- stats ---- */
.stats { padding: 40px 0; border-bottom: var(--border-w) solid var(--border); }
.stats.tone-light { background: var(--bg-card); }
.stats-grid { display: grid; grid-template-columns: repeat(var(--stats-cols, 4), 1fr); gap: 28px; }
.stats-item { display: flex; flex-direction: column; gap: 6px; }
.stats-value { font-family: var(--font-mono); font-weight: 600; font-size: 1.25rem; color: var(--fg-heading); font-variant-numeric: tabular-nums; }
.stats-label { font-size: 0.85rem; color: var(--fg-muted); }
.stats--cards, .stats--big { padding: var(--space-section-md) 0; border-bottom: 0; }
.stats--cards.tone-light { background: var(--bg); }
.stats-grid--cards { gap: 18px; }
.stats-grid--cards .stats-item { padding: 24px 22px; }
.stats-grid--big .stats-value { font-family: var(--font-display); font-weight: var(--heading-weight); font-size: calc(clamp(2.3rem, 4.6vw, 3.5rem) * var(--heading-scale)); letter-spacing: -0.03em; line-height: 1; }
.stats-grid--big .stats-label { font-size: 0.95rem; }
@media (max-width: 980px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .stats { padding: 40px 0; } .stats-grid { grid-template-columns: 1fr; } .stats-grid--big { grid-template-columns: repeat(2, 1fr); } }

/* ---- feature-cards ---- */
.features-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 24px; }
.features-card { padding: 28px 24px; }
.features-icon { margin-bottom: 18px; }
.features-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.features-card p { font-size: 0.92rem; color: var(--fg-muted); }
.features-flag { margin-top: 16px; padding: 4px 11px; }
.features-chips { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.features-chip { font-family: var(--label-font); font-size: 0.8rem; color: var(--emph); padding: 6px 14px; }
.features-grid--plain .features-card { padding: 0; }
.features-grid--list { grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.features-grid--list .features-card { display: grid; grid-template-columns: 44px 1fr; align-content: start; column-gap: 16px; padding: 24px 0; border-top: var(--border-w) solid var(--border); }
.features-grid--list .features-card > :not(.features-icon) { grid-column: 2; }
.features-grid--list .features-icon { grid-row: 1 / span 3; margin: 2px 0 0; width: 28px; height: 28px; }
.features-grid--list .features-flag { justify-self: start; }
@media (max-width: 980px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .features-grid, .features-grid--list { grid-template-columns: 1fr; } }

/* ---- testimonials ---- */
.quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.quotes-card { margin: 0; padding: 26px 24px; display: flex; flex-direction: column; gap: 18px; }
.quotes-text { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--fg); }
.quotes-text::before { content: "“"; }
.quotes-text::after { content: "”"; }
.quotes-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quotes-name { display: block; font-weight: 600; font-size: 0.92rem; color: var(--fg-heading); }
.quotes-role { display: block; font-size: 0.82rem; color: var(--fg-muted); }
.quotes-stars { display: flex; }
.quotes-stars > span:first-child { display: inline-flex; gap: 3px; }
.quotes-star { width: 16px; height: 16px; fill: var(--border); }
.quotes-star--on { fill: var(--caution); }
.quotes-spotlight { display: flex; flex-direction: column; gap: 24px; }
.quotes-card--big { max-width: 880px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); text-align: center; align-items: center; }
.quotes-card--big .quotes-text { font-family: var(--font-display); font-size: calc(clamp(1.3rem, 2.4vw, 1.75rem) * var(--heading-scale)); line-height: 1.35; letter-spacing: var(--heading-tracking); color: var(--fg-heading); }
.quotes-card--big .quotes-who { margin-top: 4px; text-align: left; }
.quotes-marquee { --quotes-duration: 60s; position: relative; overflow: hidden; margin: 0 calc(var(--gutter) * -1); -webkit-mask-image: linear-gradient(90deg, transparent, currentColor 6%, currentColor 94%, transparent); mask-image: linear-gradient(90deg, transparent, currentColor 6%, currentColor 94%, transparent); }
.quotes-marquee--slow { --quotes-duration: 100s; }
.quotes-marquee--fast { --quotes-duration: 35s; }
.quotes-track { display: flex; width: max-content; }
.quotes-lane { display: flex; gap: 20px; padding-right: 20px; }
.quotes-lane .quotes-card, .quotes-scroll .quotes-card { width: min(360px, 82vw); flex-shrink: 0; }
@keyframes quotes-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .quotes-track { animation: quotes-scroll var(--quotes-duration) linear infinite; }
  .quotes-marquee:hover .quotes-track, .quotes-marquee:focus-within .quotes-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .quotes-marquee { margin: 0; -webkit-mask-image: none; mask-image: none; }
  .quotes-track { width: auto; }
  .quotes-lane { flex-wrap: wrap; padding-right: 0; }
  .quotes-lane[aria-hidden] { display: none; }
}
.quotes-scroll { position: relative; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: -4px; scrollbar-width: thin; }
.quotes-scroll .quotes-card { scroll-snap-align: start; }

/* ---- faq ---- */
.faq-list { display: flex; flex-direction: column; border-top: var(--border-w) solid var(--border); }
.faq-item { border-bottom: var(--border-w) solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.05rem; font-weight: 600; }
.faq-mark { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--emph); border-radius: 2px; transition: transform 0.2s ease; }
.faq-mark::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-mark::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-mark::after { transform: rotate(90deg); }
.faq-answer { padding: 0 0 22px; font-size: 0.97rem; max-width: 68ch; }

/* ---- cta-banner ---- */
.banner { max-width: 760px; }
.banner h2 { font-size: calc(clamp(1.6rem, 3vw, 2.1rem) * var(--heading-scale)); line-height: 1.16; margin-bottom: 16px; }
.banner-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.banner--centered, .banner--panel { text-align: center; margin: 0 auto; }
.banner--centered .section-lede, .banner--panel .section-lede { margin-left: auto; margin-right: auto; }
.banner--centered .banner-actions, .banner--panel .banner-actions { justify-content: center; }
.banner--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; }
.banner--split .banner-copy { max-width: 680px; }
.banner--split .banner-actions { margin-top: 0; justify-content: flex-end; }
.banner--panel { max-width: none; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); }
@media (max-width: 760px) { .banner--split { grid-template-columns: 1fr; } .banner--split .banner-actions { justify-content: flex-start; } }

/* ---- contact ---- */
.contact.tone-light, .contact.tone-dim { border-top: var(--border-w) solid var(--border); }
.contact-inner { max-width: 760px; text-align: center; margin: 0 auto; }
.contact h2 { font-size: calc(clamp(1.6rem, 3vw, 2.1rem) * var(--heading-scale)); line-height: 1.16; margin-bottom: 16px; }
.contact .section-lede { margin: 0 auto; }
.contact-reasons { border: 0; padding: 0; margin: 40px 0 0; min-width: 0; }
.contact-reasons-label { display: block; float: none; width: 100%; padding: 0; margin-bottom: 16px; }
.contact-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.contact-chip { position: relative; }
.contact-chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.contact-chip span { display: block; font-size: 0.88rem; font-weight: 500; color: var(--fg-muted); background: var(--bg-card); border: var(--border-w) solid var(--border); border-radius: 999px; padding: 9px 18px; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease; }
.contact-chip input:hover + span { border-color: var(--emph); color: var(--emph); }
.contact-chip input:checked + span { border-color: var(--emph); background: var(--emph); color: var(--on-emph); }
.contact-chip input:focus-visible + span { outline: 2px solid var(--emph); outline-offset: 3px; }
.contact .btn { margin-top: 30px; }
.contact-form { text-align: left; }
.contact-form .contact-chips { justify-content: center; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.contact-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 500; color: var(--fg-muted); }
.contact-field--wide { grid-column: 1 / -1; }
.contact-fields input, .contact-fields textarea { font: inherit; font-size: 0.95rem; color: var(--fg-heading); background: var(--bg-card); border: var(--border-w) solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; }
.contact-fields input:focus, .contact-fields textarea:focus { outline: 2px solid var(--emph); outline-offset: 1px; border-color: var(--emph); }
.contact-honeypot { position: absolute; left: -9999px; }
.contact-form .btn { display: flex; margin: 24px auto 0; }
.contact-status { margin-top: 14px; text-align: center; font-size: 0.9rem; color: var(--fg-muted); min-height: 1.4em; }
.contact-status.is-error { color: var(--negative); }
.contact-status.is-ok { color: var(--positive); }
@media (max-width: 760px) {
  .contact-chips { flex-direction: column; align-items: stretch; }
  .contact-chip span { text-align: center; }
  .contact-fields { grid-template-columns: 1fr; }
}

/* ---- header ---- */
.site-header { z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: var(--border-w) solid var(--border); color: var(--fg); }
.site-header.is-sticky { position: sticky; top: 0; }
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-glyph { height: 28px; width: auto; }
.brand-glyph.img-placeholder { min-height: 28px; width: 46px; font-size: 0.6rem; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--fg-heading); }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 0.93rem; font-weight: 500; }
.site-nav a { color: var(--fg-muted); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; flex-shrink: 0; background: none; border: none; padding: 0; appearance: none; -webkit-appearance: none;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--fg); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; padding: 12px var(--gutter) 24px; border-top: var(--border-w) solid var(--border); gap: 4px; }
.mobile-nav a { padding: 12px 4px; font-weight: 500; border-bottom: var(--border-w) solid var(--border); }
.mobile-nav .btn { margin-top: 14px; text-align: center; }
.site-header.is-open .mobile-nav { display: flex; }
.header-lang { position: relative; font-size: 0.85rem; font-weight: 600; }
.header-lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: var(--border-w) solid var(--border); border-radius: var(--radius-button); color: var(--fg-muted); }
.header-lang summary::-webkit-details-marker { display: none; }
.header-lang summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.header-lang summary:hover, .header-lang[open] summary { color: var(--fg); }
.header-lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; list-style: none; margin: 0; padding: 6px; background: var(--bg-card); border: var(--border-w) solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); z-index: 60; }
.header-lang-list a { display: flex; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--fg); font-weight: 500; }
.header-lang-list a:hover { background: var(--bg-soft); }
.header-lang-list a[aria-current] { color: var(--emph); }
.header-lang-list .header-lang-code { color: var(--fg-muted); min-width: 2ch; }
.header-lang-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 0.82rem; font-weight: 600; }
.header-lang-links a { padding: 4px 6px; color: var(--fg-muted); border-radius: var(--radius-sm); }
.header-lang-links a:hover { color: var(--fg); }
.header-lang-links a[aria-current] { color: var(--fg-heading); }
.header-lang-links .header-lang-name, .header-mobile-lang .header-lang-code { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header-mobile-lang { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 0.9rem; }
.site-header .header-mobile-lang a { border: 0; padding: 4px 0; color: var(--fg-muted); }
.site-header .header-mobile-lang a[aria-current] { color: var(--fg-heading); }
@media (max-width: 900px) {
  .site-header .site-nav, .site-header .header-actions, .site-header .header-lang, .site-header .header-lang-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ---- footer ---- */
.site-footer { background: var(--bg); color: var(--fg-muted); padding: 72px 0 0; }
.site-footer.tone-light, .site-footer.tone-dim { border-top: var(--border-w) solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(var(--footer-cols, 3), 1fr); gap: 32px; padding-bottom: 56px; border-bottom: var(--border-w) solid var(--border); }
.footer-brand .brand-name { color: var(--fg-heading); }
.footer-brand .brand-glyph { height: 24px; }
.footer-tagline { font-family: var(--label-font); font-size: 0.8rem; margin-top: 10px; color: var(--fg-muted); max-width: 26ch; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-heading { font-family: var(--label-font); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-heading); margin-bottom: 4px; }
.footer-col a { font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--fg-heading); }
.footer-bottom { padding: 22px 0; font-size: 0.82rem; }
.footer-bottom:has(.footer-lang) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-lang { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.footer-lang .footer-lang-code { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-lang a:hover, .footer-lang a[aria-current] { color: var(--fg-heading); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.has-backdrop { position: relative; isolation: isolate; overflow: hidden; }
.has-backdrop > :where(:not(.bd)) { position: relative; z-index: 1; }
.bd { --bd-c1: var(--primary); --bd-c2: var(--primary); --bd-speed: 1; --bd-level: 0.6; position: absolute; inset: 0; z-index: 0; pointer-events: none; color: var(--bd-c1); opacity: calc(var(--bd-base, 1) * var(--bd-level)); }
.bd > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.bd-c-accent { --bd-c1: var(--accent); --bd-c2: var(--accent); }
.bd-c-ink { --bd-c1: var(--fg); --bd-c2: var(--fg-muted); }
.bd-c-duo { --bd-c1: var(--primary); --bd-c2: var(--accent); }
.tone-brand > .bd-c-primary, .tone-brand > .bd-c-duo { --bd-c1: var(--on-primary); }
.tone-brand > .bd-c-primary { --bd-c2: var(--on-primary); }
.bd-i-subtle { --bd-level: 0.35; }
.bd-i-strong { --bd-level: 0.9; }
.bd-m-lively { --bd-speed: 0.5; }
.bd-f-bottom { -webkit-mask-image: linear-gradient(to bottom, currentColor 40%, transparent); mask-image: linear-gradient(to bottom, currentColor 40%, transparent); }
.bd-f-edges { -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, currentColor 30%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, currentColor 30%, transparent 100%); }
.bd-f-center { -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, transparent 20%, currentColor 80%); mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, transparent 20%, currentColor 80%); }
.bd .bd-l1, .bd .bd-l2 { fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bd .bd-l1 { stroke: var(--bd-c1); }
.bd .bd-l2 { stroke: var(--bd-c2); }
.bd .bd-faint { opacity: 0.5; }
@keyframes bd-drift { from { transform: translate3d(-1.2%, 0.8%, 0) scale(1.02); } to { transform: translate3d(1.2%, -0.8%, 0) scale(1.05); } }
@media (prefers-reduced-motion: no-preference) {
  .bd:not(.bd-m-none) .bd-drift { animation: bd-drift calc(28s * var(--bd-speed)) ease-in-out infinite alternate; transform-box: view-box; transform-origin: 50% 50%; }
}

/* ---- backdrop: aurora ---- */
.bd-aurora { overflow: hidden; --bd-base: 0.7; }
.tone-dark > .bd-aurora { --bd-base: 1; }
.bd-aurora::before, .bd-aurora::after { content: ""; position: absolute; inset: -40% -20%; filter: blur(70px); }
.bd-aurora::before { background: conic-gradient(from var(--bd-angle) at var(--bd-x1) var(--bd-y1), transparent 0deg, color-mix(in srgb, var(--bd-c1) 70%, transparent) 60deg, transparent 130deg, color-mix(in srgb, var(--bd-c2) 60%, transparent) 220deg, transparent 300deg); }
.bd-aurora::after { background: radial-gradient(45% 35% at var(--bd-x2) var(--bd-y2), color-mix(in srgb, var(--bd-c2) 55%, transparent), transparent 70%); opacity: 0.8; }
@keyframes bd-aurora { from { transform: rotate(0deg) scale(1); } to { transform: rotate(18deg) scale(1.12); } }
@keyframes bd-aurora-2 { from { transform: translate3d(-4%, 0, 0); } to { transform: translate3d(5%, -3%, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .bd-aurora:not(.bd-m-none)::before { animation: bd-aurora calc(26s * var(--bd-speed)) ease-in-out infinite alternate; }
  .bd-aurora:not(.bd-m-none)::after { animation: bd-aurora-2 calc(20s * var(--bd-speed)) ease-in-out infinite alternate; }
}
}

@layer sb-frame {
.blk.sp-t-medium { padding-top: var(--space-section-md); }
.blk.sp-t-small { padding-top: var(--space-section-sm); }
.blk.sp-t-none { padding-top: 0; }
.blk.sp-b-medium { padding-bottom: var(--space-section-md); }
.blk.sp-b-small { padding-bottom: var(--space-section-sm); }
.blk.sp-b-none { padding-bottom: 0; }
}

@layer sb-style {
/* ---- style: editorial ---- */

/* The accent carries emphasis on light sections; primary is ink-black for buttons. */
:root, .tone-light, .tone-dim { --emph: var(--accent); }
@supports (color: oklch(from red l c h)) {
  :root, .tone-light, .tone-dim { --emph: oklch(from var(--accent) min(l, 0.58) c h); }
}
h1, h2 { font-optical-sizing: auto; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; }
.section-head::before { content: ""; display: block; width: 44px; height: 2px; background: var(--emph); margin-bottom: 22px; }
.section-head h2 { line-height: 1.1; }
.section-lede { font-size: 1.1rem; line-height: 1.6; }
.btn { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; padding: 15px 26px; }
.btn-sm { font-size: 0.72rem; padding: 11px 18px; }
.btn-lg { font-size: 0.82rem; padding: 18px 32px; }
.btn-primary:hover { transform: none; }
.btn-ghost { border-color: var(--fg-heading); }
.chip { border-radius: var(--radius-sm); }
.badge { border-radius: var(--radius-sm); }
.card { background: var(--bg-card); }
.prose a { text-decoration-thickness: 1px; }
.icon-tile { width: 28px; height: 28px; }
.site-header { backdrop-filter: none; background: var(--bg); }
.brand-name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.label-caps { letter-spacing: 0.12em; font-size: 0.72rem; }
}

@layer sb-style-blocks {
/* ---- editorial: hero ---- */
.hero-copy h1 { font-weight: 400; line-height: 1.02; letter-spacing: -0.03em; }
.hero-steps { box-shadow: none; }

/* ---- editorial: stats ---- */
.stats-value { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; letter-spacing: -0.02em; }

/* ---- editorial: feature-cards ---- */
.features-card { background: transparent; border: 0; border-top: 1px solid var(--fg-heading); border-radius: 0; padding: 22px 0 0; }
.features-card h3 { font-size: 1.2rem; }

/* ---- editorial: faq ---- */
.faq-item summary h3 { font-size: 1.2rem; font-weight: 500; }
}
