/* TaskOptic marketing site. Builds on the Datum tokens (ds/tokens.css) and components (ds/components.css).
   Every colour comes from a token, so light and dark both follow html[data-theme] (set by ds/theme.js).
   Layout: one container, one spacing rhythm, hairlines over boxes; cards only where a group needs a boundary.
   No inline styles anywhere (the edge CSP is style-src 'self'). */

:root {
  --gutter: 1rem;
  --section-y: 4rem;
  --site-header-h: 4rem;
  --radius-frame: 12px;
  --frame-shadow: 0 1px 2px rgb(16 24 32 / 0.05), 0 12px 32px -8px rgb(16 24 32 / 0.14), 0 32px 64px -24px rgb(16 24 32 / 0.12);
  --grid-line: rgb(var(--rgb-border) / 0.55);
  --band-bg: var(--color-accent-subtle);
  --band-border: var(--color-accent-border);
}
:root[data-theme="dark"] {
  --frame-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 16px 40px -8px rgb(0 0 0 / 0.6);
  --grid-line: rgb(var(--rgb-border) / 0.6);
}
@media (min-width: 640px) { :root { --gutter: 1.5rem; --section-y: 5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; --section-y: 6.5rem; } }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--site-header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-size: var(--text-base); line-height: var(--leading-normal); background: var(--color-bg); }
main { display: block; }
img { height: auto; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--site-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(52rem + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); border-top: var(--border-width) solid var(--color-border); }
.section--surface { background: var(--color-surface); }
.section--flush-top { border-top: 0; }
.section__head { max-width: 46rem; margin-bottom: var(--space-12); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { margin-top: var(--space-4); }
.section__foot { margin-top: var(--space-10); }

/* ---------- Type ---------- */
h1, .h1 { font-size: clamp(2.25rem, 1.55rem + 2.9vw, 3.75rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 640; text-wrap: balance; }
h2, .h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.625rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 620; text-wrap: balance; }
h3, .h3 { font-size: var(--text-lg); line-height: var(--leading-snug); font-weight: var(--weight-semibold); letter-spacing: -0.01em; }
.lede { font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--color-text-muted); max-width: 40rem; text-wrap: pretty; }
.prose { color: var(--color-text-muted); max-width: 40rem; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: var(--space-4); }
.small { font-size: var(--text-sm); }
.fine { font-size: var(--text-sm); color: var(--color-text-subtle); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-accent); font-size: var(--text-xs); margin-bottom: var(--space-4); }
.eyebrow::before { content: ""; width: 14px; height: 2px; background: currentColor; border-radius: 1px; }
.eyebrow--plain::before { display: none; }
strong { font-weight: var(--weight-semibold); color: var(--color-text); }
.mono { font-family: var(--font-mono); font-size: 0.875em; }

.link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-semibold); }
.link-arrow .icon { transition: transform var(--duration-base) var(--ease-standard); }
.link-arrow:hover .icon { transform: translateX(3px); }

.btn { border-radius: var(--radius-md); font-weight: var(--weight-semibold); }
.btn--lg { min-height: 3rem; padding: 0 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
@media (max-width: 479px) { .actions .btn { flex: 1 1 100%; } }

.ticks { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); color: var(--color-text-muted); font-size: var(--text-sm); }
.ticks li { display: inline-flex; align-items: center; gap: var(--space-2); }
.ticks .icon { color: var(--color-success); }

.bullets { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.bullets li { position: relative; padding-left: 1.5rem; color: var(--color-text-muted); }
.bullets li::before { content: ""; position: absolute; left: 0.25rem; top: 0.6em; width: 7px; height: 7px; border: 1.5px solid var(--color-accent); border-radius: 2px; transform: rotate(45deg); }

/* ---------- Header ---------- */
.scroll-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: rgb(var(--rgb-bg) / 0.86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: var(--border-width) solid transparent; transition: border-color var(--duration-base) var(--ease-standard); }
.site-header.is-scrolled { border-bottom-color: var(--color-border); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-6); height: var(--site-header-h); }
.brand__name { font-size: 1.0625rem; }
.site-nav { display: none; gap: var(--space-1); }
.site-nav a { color: var(--color-text-muted); font-size: var(--text-sm); font-weight: var(--weight-medium); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); }
.site-nav a:hover { color: var(--color-text); background: var(--color-surface-sunken); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--color-text); background: var(--color-surface-sunken); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.site-header__actions > .btn, .site-header__actions > .theme-switch { display: none; }
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .site-header__actions > .btn, .site-header__actions > .theme-switch { display: inline-flex; }
  .mmenu { display: none; }
}
@media (min-width: 1024px) and (max-width: 1139px) { .site-signin { display: none !important; } }

.theme-switch { display: inline-flex; padding: 2px; gap: 2px; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); }
.theme-switch button { appearance: none; border: 0; background: transparent; color: var(--color-text-subtle); width: 2rem; height: 2rem; border-radius: var(--radius-full); display: inline-grid; place-items: center; cursor: pointer; }
.theme-switch button:hover { color: var(--color-text); }
.theme-switch button.is-active { background: var(--color-surface-sunken); color: var(--color-text); }
.theme-switch button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.theme-switch--labelled button { display: inline-flex; align-items: center; width: auto; padding: 0 var(--space-3); gap: var(--space-2); font: inherit; font-size: var(--text-sm); min-height: var(--touch-min); }

/* Mobile menu (details/summary; nav.js keeps it tidy) */
.mmenu { position: static; }
.mmenu > summary { list-style: none; display: inline-grid; place-items: center; width: var(--touch-min); height: var(--touch-min); border-radius: var(--radius-md); color: var(--color-text); cursor: pointer; }
.mmenu > summary::-webkit-details-marker { display: none; }
.mmenu > summary:focus-visible { outline: 2px solid var(--color-focus); }
.mmenu__close { display: none; }
.mmenu[open] .mmenu__open { display: none; }
.mmenu[open] .mmenu__close { display: inline-block; }
.mmenu__panel { position: fixed; left: 0; right: 0; top: var(--site-header-h); bottom: 0; overflow-y: auto; background: var(--color-bg); border-top: var(--border-width) solid var(--color-border); padding: var(--space-4) var(--gutter) var(--space-10); }
.mmenu__list { list-style: none; margin: 0; padding: 0; }
.mmenu__list a { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) 0; border-bottom: var(--border-width) solid var(--color-border); color: var(--color-text); font-size: var(--text-md); font-weight: var(--weight-medium); }
.mmenu__list a[aria-current="page"] { color: var(--color-accent); }
.mmenu__list a:hover { text-decoration: none; color: var(--color-accent); }
.mmenu__list .icon { color: var(--color-text-subtle); }
.mmenu__theme { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.mmenu__actions { display: grid; gap: var(--space-3); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
.hero > * { position: relative; }
.hero__copy { max-width: 50rem; }
.hero__copy h1 { max-width: 20ch; }
.hero__copy .lede { margin-top: var(--space-6); }
.hero--page { padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.hero--page h1 { max-width: 22ch; }
.hero--split .hero__grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 1024px) { .hero--split .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-16); } }

/* ---------- Screenshot frames ---------- */
.frame { margin: 0; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-frame); background: var(--color-surface); box-shadow: var(--frame-shadow); overflow: hidden; }
.frame__bar { display: flex; align-items: center; gap: var(--space-3); height: 2.25rem; padding: 0 var(--space-4); border-bottom: var(--border-width) solid var(--color-border); background: var(--color-surface-sunken); font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-text-subtle); white-space: nowrap; overflow: hidden; }
.frame__dots { display: inline-flex; gap: 6px; flex: none; }
.frame__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border); display: block; }
.frame__title { overflow: hidden; text-overflow: ellipsis; }
.frame img { display: block; width: 100%; }
.frame--bare { box-shadow: none; }
.shot-caption { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-text-subtle); display: flex; gap: var(--space-2); align-items: baseline; }
.shot-caption .marker { flex: none; display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--color-accent-subtle); color: var(--color-accent); font-size: 0.6875rem; font-weight: var(--weight-bold); font-family: var(--font-mono); }
/* Light/dark screenshot pairs: each pair holds both images; the theme shows one. */
.shot--dark { display: none !important; }
:root[data-theme="dark"] .shot--light { display: none !important; }
:root[data-theme="dark"] .shot--dark { display: block !important; }
.frame-stack { display: grid; gap: var(--space-4); }
.frame--unit { width: 100%; max-width: 24.3rem; justify-self: end; }

/* ---------- Grids and cards ---------- */
.grid-2 { display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); } }
.split { display: grid; gap: var(--space-10); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-16); } .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split--center { align-items: center; } }

.card { background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-6); }
.cards-4 { display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cards-2 { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tile-icon { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-lg); background: var(--color-accent-subtle); color: var(--color-accent); border: var(--border-width) solid var(--color-accent-border); }
.tile-icon .icon { width: 1.25rem; height: 1.25rem; }
.pillar { display: flex; flex-direction: column; }
.pillar h3 { margin-top: var(--space-5); }
.pillar p { margin-top: var(--space-2); color: var(--color-text-muted); }
.pillar .bullets { margin-top: auto; padding-top: var(--space-5); border-top: var(--border-width) solid var(--color-border); }
.pillar p + .bullets { margin-top: var(--space-5); }

/* ---------- Problem ---------- */
.gap-diagram { margin: var(--space-8) 0 0; display: none; }
@media (min-width: 560px) { .gap-diagram { display: block; } }
.gap-diagram svg { width: 100%; height: auto; display: block; }
.stakes { display: grid; gap: 1px; background: var(--color-border); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; }
@media (min-width: 560px) { .stakes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stake { background: var(--color-surface); padding: var(--space-6); }
.stake .icon { color: var(--color-warning); width: 1.25rem; height: 1.25rem; }
.stake h3 { font-size: var(--text-md); margin-top: var(--space-3); }
.stake p { margin-top: var(--space-1); color: var(--color-text-muted); font-size: var(--text-sm); }
.closing-line { margin-top: var(--space-8); font-size: var(--text-md); color: var(--color-text); font-weight: var(--weight-medium); }

/* ---------- Steps ---------- */
.steps-line { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); counter-reset: step; }
@media (min-width: 900px) { .steps-line { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); } }
.steps-line li { position: relative; padding-left: 3.25rem; }
@media (min-width: 900px) { .steps-line li { padding-left: 0; padding-top: 3.5rem; } }
.steps-line li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; color: var(--color-accent); background: var(--color-surface); border: 1.5px solid var(--color-accent-border); z-index: 1; }
.steps-line li::after { content: ""; position: absolute; left: 1.08rem; top: 2.5rem; bottom: -1.75rem; width: 1.5px; background: var(--color-border); }
.steps-line li:last-child::after { display: none; }
@media (min-width: 900px) { .steps-line li::after { left: 2.75rem; right: -1rem; top: 1.08rem; bottom: auto; width: auto; height: 1.5px; } }
.steps-line h3 { font-size: var(--text-md); }
.steps-line p { margin-top: var(--space-2); color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---------- Walkthrough tabs ---------- */
.tabs-x { margin-top: var(--space-2); }
.tabs-x__list { display: none; }
.tabs-x__panel + .tabs-x__panel { margin-top: var(--space-12); }
.tabs-x__copy { margin-bottom: var(--space-6); max-width: 44rem; }
.tabs-x__copy h3 { font-size: var(--text-xl); }
.tabs-x__copy p { margin-top: var(--space-2); color: var(--color-text-muted); }
.tabs-x__num { display: block; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-accent); margin-bottom: var(--space-2); }
@media (min-width: 760px) {
  .tabs-x.is-enhanced .tabs-x__list { display: flex; gap: var(--space-1); padding: 4px; margin: 0 auto var(--space-10); width: fit-content; max-width: 100%; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); overflow-x: auto; }
  .tabs-x.is-enhanced .tabs-x__tab { appearance: none; border: 0; background: transparent; font: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-muted); padding: 0.55rem 1.1rem; border-radius: var(--radius-full); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-2); }
  .tabs-x.is-enhanced .tabs-x__tab:hover { color: var(--color-text); }
  .tabs-x.is-enhanced .tabs-x__tab[aria-selected="true"] { background: var(--color-accent); color: var(--color-accent-text); }
  .tabs-x.is-enhanced .tabs-x__tab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
  .tabs-x.is-enhanced .tabs-x__panel { margin-top: 0; }
  .tabs-x.is-enhanced .tabs-x__panel:not(.is-active) { display: none; }
  .tabs-x.is-enhanced .tabs-x__panel.is-active { animation: fade-in var(--duration-slow) var(--ease-standard); }
  .tabs-x.is-enhanced .tabs-x__num { display: none; }
  .tabs-x__copy { text-align: center; margin-inline: auto; }
}
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tabs-x.is-enhanced .tabs-x__panel.is-active { animation: none; } }

/* ---------- Definition list ---------- */
.deflist { margin: 0; border-top: var(--border-width) solid var(--color-border); }
.deflist > div { display: grid; gap: var(--space-1) var(--space-8); padding: var(--space-5) 0; border-bottom: var(--border-width) solid var(--color-border); }
@media (min-width: 760px) { .deflist > div { grid-template-columns: 14rem minmax(0, 1fr); } }
.deflist dt { font-weight: var(--weight-semibold); color: var(--color-text); }
.deflist dd { margin: 0; color: var(--color-text-muted); }
.standards { margin-top: var(--space-8); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-text-muted); }
.standards span:first-child { font-family: var(--font-sans); color: var(--color-text-subtle); }
.standards b { font-weight: 500; color: var(--color-text); }
.footnote { margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border-left: 2px solid var(--color-border-strong); background: var(--color-surface-sunken); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- Quote factors (pricing) ---------- */
.factor h3 { margin-top: var(--space-4); }
.factor > p { margin-top: var(--space-2); color: var(--color-text-muted); }
.meter-iso { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: var(--space-5); }
.meter-iso i { height: 6px; border-radius: 3px; background: var(--color-surface-sunken); border: var(--border-width) solid var(--color-border); }
.meter-iso i.on { background: var(--color-accent); border-color: var(--color-accent); }
.meter-iso-label { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--color-text-subtle); display: flex; justify-content: space-between; }
.strip { margin-top: var(--space-6); display: grid; gap: var(--space-6); align-items: center; padding: var(--space-6); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); }
@media (min-width: 900px) { .strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.strip p { color: var(--color-text-muted); }

/* ---------- Diagrams (inline SVG; colours from tokens) ---------- */
.diagram { margin: 0; }
.diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
.diagram figcaption { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-text-subtle); }
.d-box { fill: var(--color-surface); stroke: var(--color-border-strong); stroke-width: 1.25; }
.d-box--muted { fill: var(--color-surface-sunken); stroke: var(--color-border); }
.d-box--accent { fill: var(--color-accent-subtle); stroke: var(--color-accent); stroke-width: 1.5; }
.d-box--dashed { fill: var(--color-warning-subtle); stroke: var(--color-warning); stroke-dasharray: 5 4; }
.d-line { stroke: var(--color-border-strong); stroke-width: 1.5; fill: none; }
.d-line--accent { stroke: var(--color-accent); }
.d-line--dash { stroke-dasharray: 4 4; }
.d-line--danger { stroke: var(--color-danger); }
.d-fill-accent { fill: var(--color-accent); }
.d-fill-line { fill: var(--color-border-strong); }
.d-fill-danger { fill: var(--color-danger); }
.d-text { fill: var(--color-text); font-family: var(--font-sans); font-size: 13px; font-weight: 600; }
.d-text--muted { fill: var(--color-text-muted); font-weight: 400; font-size: 12px; }
.d-text--small { font-size: 11px; }
.d-text--mono { font-family: var(--font-mono); font-size: 11px; font-weight: 500; fill: var(--color-accent); }
.d-text--mono.d-text--muted-mono { fill: var(--color-text-muted); }
.d-text--accent { fill: var(--color-accent); }
.d-text--danger { fill: var(--color-danger); font-weight: 600; }
.d-gate { stroke-width: 1.5; }
.d-gate--wait { fill: var(--color-surface); stroke: var(--color-border-strong); }
.d-gate--ready { fill: var(--color-info-subtle); stroke: var(--color-info); }
.d-gate--go { fill: var(--color-success); stroke: var(--color-success); }
.d-gate--cond { fill: var(--color-warning-subtle); stroke: var(--color-warning); }
.d-gate--rework { fill: var(--color-danger-subtle); stroke: var(--color-danger); }
.d-bar { fill: var(--color-surface-sunken); stroke: var(--color-border); }
.d-bar--done { fill: var(--color-success-subtle); stroke: var(--color-success); }
.d-bar--active { fill: var(--color-accent-subtle); stroke: var(--color-accent); }
.legend { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-xs); color: var(--color-text-muted); }
.legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.legend i { width: 10px; height: 10px; transform: rotate(45deg); border: 1.5px solid; border-radius: 2px; display: inline-block; }
.legend .l-wait { border-color: var(--color-border-strong); background: var(--color-surface); }
.legend .l-ready { border-color: var(--color-info); background: var(--color-info-subtle); }
.legend .l-go { border-color: var(--color-success); background: var(--color-success); }
.legend .l-cond { border-color: var(--color-warning); background: var(--color-warning-subtle); }
.legend .l-rework { border-color: var(--color-danger); background: var(--color-danger-subtle); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x > svg { min-width: 560px; }

/* ---------- Security facts ---------- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--space-10); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts li { display: flex; gap: var(--space-4); padding: var(--space-5) 0; border-top: var(--border-width) solid var(--color-border); }
.facts .icon { color: var(--color-accent); width: 1.25rem; height: 1.25rem; margin-top: 2px; }
.facts p { color: var(--color-text-muted); font-size: var(--text-sm); }
.facts strong { display: block; font-size: var(--text-base); margin-bottom: 2px; }

/* ---------- CTA band ---------- */
.band { padding-block: var(--section-y); border-top: var(--border-width) solid var(--color-border); }
.band__inner { position: relative; overflow: hidden; background: var(--band-bg); border: var(--border-width) solid var(--band-border); border-radius: 20px; padding: clamp(2rem, 1.25rem + 3vw, 4rem); display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 960px) { .band__inner { grid-template-columns: minmax(0, 1.4fr) auto; } }
.band__inner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgb(var(--rgb-accent) / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--rgb-accent) / 0.07) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); }
.band__inner > * { position: relative; z-index: 1; }
.band h2 { max-width: 22ch; }
.band p { margin-top: var(--space-4); color: var(--color-text-muted); max-width: 40rem; }
.band .actions { margin-top: 0; }

/* ---------- In-page nav (product, industries) ---------- */
.pagenav { position: sticky; top: var(--site-header-h); z-index: calc(var(--z-sticky) - 1); background: rgb(var(--rgb-bg) / 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-block: var(--border-width) solid var(--color-border); }
.pagenav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; }
.pagenav__list::-webkit-scrollbar { display: none; }
.pagenav a { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; padding: 0.85rem var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pagenav a:hover { color: var(--color-text); text-decoration: none; }
.pagenav a.is-current { color: var(--color-text); border-bottom-color: var(--color-accent); }
.pagenav a span { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--color-text-subtle); }

.feature { padding-block: clamp(3.5rem, 2.5rem + 3vw, 6rem); border-top: var(--border-width) solid var(--color-border); }
.feature:first-of-type { border-top: 0; }
.feature__grid { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 1000px) {
  .feature__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-16); }
  .feature--flip .feature__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature--flip .feature__copy { order: 2; }
}
.feature__step { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-accent); letter-spacing: 0.04em; margin-bottom: var(--space-3); display: block; }
.feature__copy h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); }
.feature__copy .prose { margin-top: var(--space-5); }
.feature__copy ol.modes { margin: var(--space-4) 0 0; padding-left: 1.25rem; color: var(--color-text-muted); display: grid; gap: var(--space-1); }
.feature__visual { min-width: 0; }

/* ---------- Industries ---------- */
.industry { padding-block: clamp(3.5rem, 2.5rem + 3vw, 6rem); border-top: var(--border-width) solid var(--color-border); }
.industry__grid { display: grid; gap: var(--space-10); }
@media (min-width: 1000px) { .industry__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-16); align-items: start; } }
.industry .eyebrow { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-size: var(--text-sm); font-weight: 500; }
.industry h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); }
.industry .prose { margin-top: var(--space-5); }
.starter { background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; }
.starter__head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: var(--border-width) solid var(--color-border); background: var(--color-surface-sunken); }
.starter__head .icon { color: var(--color-accent); }
.starter__label { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-subtle); }
.starter__body { padding: var(--space-5); }
.starter__name { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: var(--weight-semibold); font-size: var(--text-md); color: var(--color-text); }
.starter ol { list-style: none; counter-reset: ph; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 0; }
.starter ol li { counter-increment: ph; display: flex; gap: var(--space-3); padding: var(--space-2) 0; border-top: var(--border-width) dashed var(--color-border); font-size: var(--text-sm); color: var(--color-text); }
.starter ol li::before { content: counter(ph); flex: none; width: 1.375rem; height: 1.375rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--color-text-muted); border: var(--border-width) solid var(--color-border-strong); }
.starter__foot { display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-top: var(--border-width) solid var(--color-border); font-size: var(--text-sm); color: var(--color-text-muted); }
.starter__foot b { font-weight: var(--weight-semibold); color: var(--color-text); font-variant-numeric: tabular-nums; }
.gate-chip { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); color: var(--color-accent); background: var(--color-accent-subtle); border-radius: var(--radius-full); padding: 1px 8px; }

/* ---------- Docs layout (security) ---------- */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-10); padding-block: var(--space-12) var(--section-y); }
@media (min-width: 1024px) { .docs { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-16); } }
.docs__nav { display: none; }
@media (min-width: 1024px) {
  .docs__nav { display: block; position: sticky; top: calc(var(--site-header-h) + var(--space-8)); align-self: start; }
  .docs__nav ol { list-style: none; margin: 0; padding: 0 0 0 var(--space-4); border-left: var(--border-width) solid var(--color-border); display: grid; gap: 2px; }
  .docs__nav a { display: block; padding: 0.3rem 0; font-size: var(--text-sm); color: var(--color-text-muted); }
  .docs__nav a:hover, .docs__nav a.is-current { color: var(--color-accent); text-decoration: none; }
  .docs__nav a.is-current { font-weight: var(--weight-medium); }
}
.docs__toc-mobile { border: var(--border-width) solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.docs__toc-mobile summary { padding: var(--space-3) var(--space-4); cursor: pointer; font-weight: var(--weight-medium); min-height: var(--touch-min); display: flex; align-items: center; }
.docs__toc-mobile ol { margin: 0; padding: 0 var(--space-4) var(--space-4) 2.25rem; display: grid; gap: var(--space-1); font-size: var(--text-sm); }
@media (min-width: 1024px) { .docs__toc-mobile { display: none; } }
.docs__body { max-width: 44rem; }
.docs__section { padding-block: var(--space-10); border-top: var(--border-width) solid var(--color-border); }
.docs__section:first-child { border-top: 0; padding-top: 0; }
.docs__section h2 { font-size: var(--text-2xl); display: flex; align-items: center; gap: var(--space-3); }
.docs__section h2 .icon { color: var(--color-accent); width: 1.375rem; height: 1.375rem; }
.docs__section .bullets { margin-top: var(--space-5); gap: var(--space-3); }
.docs__section .bullets li { color: var(--color-text-muted); }
.docs__section .diagram { margin-top: var(--space-8); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: var(--space-4); align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; padding: var(--space-8); border-radius: var(--radius-xl); }
.plan--recommended { border: 1.5px solid var(--color-accent); }
.plan__tag { position: absolute; top: -0.75rem; left: var(--space-8); background: var(--color-accent); color: var(--color-accent-text); font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: 2px 10px; border-radius: var(--radius-full); }
.plan__tier { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-accent); }
.plan h2 { font-size: var(--text-xl); margin-top: var(--space-2); }
.plan > p { margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--text-sm); min-height: 4.5em; }
.plan__price { margin-top: var(--space-6); padding-block: var(--space-4); border-block: var(--border-width) solid var(--color-border); font-size: var(--text-sm); color: var(--color-text-muted); }
.plan__price b { display: block; font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: var(--text-xl); color: var(--color-text); font-weight: var(--weight-semibold); }
.plan .bullets { margin-bottom: var(--space-8); }
.plan .btn { margin-top: auto; }
.table-scroll { overflow-x: auto; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--text-sm); }
.compare th, .compare td { padding: var(--space-4) var(--space-5); text-align: left; border-bottom: var(--border-width) solid var(--color-border); vertical-align: top; }
.compare thead th { background: var(--color-surface-sunken); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--color-text-subtle); font-weight: var(--weight-semibold); }
.compare thead th.is-rec { color: var(--color-accent); }
.compare tbody th { font-weight: var(--weight-medium); color: var(--color-text); width: 26%; }
.compare td { color: var(--color-text-muted); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .no { color: var(--color-text-subtle); }
.faq { border-top: var(--border-width) solid var(--color-border); }
.faq details { border-bottom: var(--border-width) solid var(--color-border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-5) 0; font-weight: var(--weight-semibold); color: var(--color-text); min-height: var(--touch-min); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--color-text-subtle); transition: transform var(--duration-base) var(--ease-standard); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq details p { padding: 0 0 var(--space-5); color: var(--color-text-muted); max-width: 44rem; }

/* ---------- Demo, contact ---------- */
.roles { display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.role { display: flex; gap: var(--space-4); align-items: flex-start; }
.role h3 { font-size: var(--text-md); }
.role p { margin-top: var(--space-1); color: var(--color-text-muted); font-size: var(--text-sm); }
.callout { display: flex; gap: var(--space-4); padding: var(--space-5) var(--space-6); border-radius: var(--radius-xl); border: var(--border-width) solid var(--color-accent-border); background: var(--color-accent-subtle); color: var(--color-text); }
.callout .icon { color: var(--color-accent); width: 1.25rem; height: 1.25rem; margin-top: 2px; }
.callout--warn { border-color: rgb(var(--rgb-warning) / 0.45); background: var(--color-warning-subtle); }
.callout--warn .icon { color: var(--color-warning); }
.callout h2, .callout h3 { font-size: var(--text-lg); }
.callout .bullets li { color: var(--color-text); }
.callout .bullets li::before { border-color: var(--color-warning); }
.inside { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.inside li { display: flex; gap: var(--space-4); padding: var(--space-4) 0; border-top: var(--border-width) solid var(--color-border); color: var(--color-text-muted); }
.inside li:last-child { border-bottom: var(--border-width) solid var(--color-border); }
.inside .icon { color: var(--color-accent); margin-top: 3px; }
.contact-cards { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .contact-cards { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.contact-card { padding: var(--space-8); }
.contact-card h2 { font-size: var(--text-xl); margin-top: var(--space-4); }
.contact-card > p { margin-top: var(--space-3); color: var(--color-text-muted); }
.contact-card .address { display: inline-block; margin-top: var(--space-4); font-family: var(--font-mono); font-size: var(--text-md); color: var(--color-text); word-break: break-all; }
.contact-card .bullets { margin-bottom: var(--space-6); }
.contact-card--small { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); }
.contact-card--small p { color: var(--color-text-muted); }
.addr-chip { font-family: var(--font-mono); font-size: 0.9em; background: var(--color-surface-sunken); border: var(--border-width) solid var(--color-border); padding: 1px 6px; border-radius: var(--radius-sm); color: var(--color-text); white-space: nowrap; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section-y); }
.notfound__code { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-accent); margin-bottom: var(--space-4); display: block; }
.notfound .lede { margin-inline: auto; margin-top: var(--space-5); }
.notfound .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: var(--border-width) solid var(--color-border); background: var(--color-surface); padding-block: var(--space-16) var(--space-10); font-size: var(--text-sm); }
.site-footer__grid { display: grid; gap: var(--space-10); }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } }
.site-footer__tagline { margin-top: var(--space-4); color: var(--color-text-muted); max-width: 22rem; }
.site-footer__mail { display: inline-block; margin-top: var(--space-4); font-family: var(--font-mono); font-size: var(--text-sm); }
.site-footer h2 { font-family: var(--font-sans); font-stretch: normal; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--color-text-subtle); font-weight: var(--weight-semibold); }
.site-footer ul { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer ul a { color: var(--color-text-muted); display: inline-block; padding-block: 2px; }
.site-footer ul a:hover { color: var(--color-text); }
.site-footer__credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-border-strong); text-underline-offset: 2px; }
.site-footer__credit a:hover { color: var(--color-text); }
.site-footer__legal { margin-top: var(--space-12); padding-top: var(--space-6); border-top: var(--border-width) solid var(--color-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); color: var(--color-text-subtle); }

/* ---------- Motion: gentle reveal (only when JS adds .reveal-ready and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-standard), transform 500ms var(--ease-standard); }
  .reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- Small helpers ---------- */
.small-gap { margin-top: var(--space-5); }
.actions--center { justify-content: center; margin-top: var(--space-12); }
.callout--inline { margin-top: var(--space-8); padding: var(--space-3) var(--space-4); font-size: var(--text-sm); align-items: center; max-width: 40rem; }
.callout-gap { margin-top: var(--space-8); }
.frame-gap { margin-top: var(--space-8); }
.footnote-gap { margin-top: var(--space-6); max-width: 34rem; }
.faq-foot { margin-top: var(--space-6); }
.hero__picker { max-width: 34rem; width: 100%; justify-self: center; }
.contact-section { padding-top: 0; }
.facts { margin-top: var(--space-8); }
@media (min-width: 700px) { .facts--one { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .facts--one { grid-template-columns: minmax(0, 1fr); } }
.feature__grid { align-items: start; }
@media (min-width: 1000px) { .feature__copy { position: sticky; top: calc(var(--site-header-h) + 5rem); } }
.pagenav a { padding-inline: 0.6rem; }
@media (min-width: 1024px) { .hero--wide-visual .hero__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: var(--space-12); } }
@media (max-width: 599px) {
  .scroll-x { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-bottom: var(--space-2); }
  .scroll-x::after { content: ""; }
}
/* backdrop-filter makes the header the containing block for the fixed menu panel: size the panel explicitly, and drop the filter while open */
.mmenu__panel { bottom: auto; height: calc(100vh - var(--site-header-h)); height: calc(100dvh - var(--site-header-h)); z-index: var(--z-overlay); }
.site-header:has(.mmenu[open]) { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--color-bg); border-bottom-color: var(--color-border); }

/* ---------- Home hero carousel (ported from the Larkella hero pattern) ----------
   Full-bleed photo per slide, cross-faded; a veil fades it into the page background on the text side, so the
   text never sits on a busy part of the photo. Constant intro (eyebrow, h1, sub), then the slide block under a
   thin accent rule that doubles as the autoplay progress bar. Every colour is a Datum token, so the veil fades
   into --color-bg in light and dark alike. Without JS, slide 1 shows and the controls stay hidden. */
.hero-c { position: relative; overflow: hidden; background: var(--color-bg); }
.hero-c__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.hero-c__bg.is-on { opacity: 1; }
.hero-c__bg--pl { object-position: 70% 50%; }
.hero-c__bg--ci { object-position: 65% 40%; }
.hero-c__bg--mv { object-position: 70% 35%; }
.hero-c__bg--cr { object-position: 70% 50%; }
.hero-c__bg--el { object-position: 80% 45%; }
:root[data-theme="dark"] .hero-c__bg { filter: brightness(0.8) saturate(0.9); }
.hero-c__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(var(--rgb-bg) / 0.98) 0%, rgb(var(--rgb-bg) / 0.95) 44%, rgb(var(--rgb-bg) / 0.4) 64%, rgb(var(--rgb-bg) / 0) 82%); }
.hero-c__in { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 30px; min-height: 640px; padding-top: 76px; padding-bottom: 36px; box-sizing: border-box; }
.hero-c__intro { max-width: 42rem; display: flex; flex-direction: column; gap: var(--space-4); }
.hero-c__intro .eyebrow { margin-bottom: 0; }
.hero-c__intro h1 { font-size: clamp(2.25rem, 1.3rem + 2.4vw, 3.375rem); line-height: 1.04; }
.hero-c__nb { white-space: nowrap; }
.hero-c__lede { margin: 0; font-family: var(--font-display, inherit); font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem); line-height: 1.3; font-weight: 500; color: var(--color-text); text-wrap: balance; }
.hero-c__sub { margin: 0; font-size: 1.1875rem; line-height: 1.55; color: var(--color-text-muted); text-wrap: pretty; }

/* Slides share one grid cell: the band is as tall as the tallest slide, so nothing shifts on change. */
.hero-c__slides { display: grid; }
.hero-c__slide { grid-area: 1 / 1; min-width: 0; }
.hero-c__card { max-width: 34rem; display: flex; flex-direction: column; gap: var(--space-3); }
.hero-c:not(.is-ready) .hero-c__slide:not(:first-child) { display: none; }
.hero-c.is-ready .hero-c__slide:not(.is-on) { visibility: hidden; }
.hero-c__rule { display: block; height: 3px; margin-bottom: 7px; border-radius: 2px; background: var(--color-accent); overflow: hidden; }
.hero-c.is-ready .hero-c__rule { background: var(--color-accent-border); }
.hero-c__fill { display: block; height: 100%; background: var(--color-accent); transform: scaleX(1); transform-origin: left center; }
.hero-c__who { margin: 0; font-size: 1.125rem; font-weight: var(--weight-semibold); line-height: 1.3; color: var(--color-accent); }
.hero-c__title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem); line-height: 1.15; }
.hero-c__line { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--color-text-muted); }
.hero-c__btns { display: flex; flex-wrap: wrap; gap: var(--space-3); padding-top: 6px; }
.hero-c__btns .btn { border-radius: var(--radius-full); min-height: 48px; padding: 0 22px; }
.hero-c__btns .btn:not(.btn--primary) { background: var(--color-surface); }
/* The photo side opens the current slide's page; the buttons are the accessible way there. */
.hero-c__photolink { display: none; }
@media (min-width: 981px) { .hero-c__photolink { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 42%; z-index: 1; } }

/* Controls row: pause, prev, dots, next, "1 of 4", and jump links on the right. */
.hero-c__controls { position: relative; z-index: 2; margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.hero-c__controls[hidden] { display: none; }
.hero-c__round { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: var(--border-width) solid var(--color-border-strong); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text); cursor: pointer; }
.hero-c__round--quiet { border-color: var(--color-border); }
.hero-c__round:hover { background: var(--color-surface-sunken); }
.hero-c__round:focus-visible, .hero-c__dot:focus-visible, .hero-c__more:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.hero-c__ico-play { display: none; }
.hero-c.is-paused .hero-c__ico-play { display: block; }
.hero-c.is-paused .hero-c__ico-pause { display: none; }
.hero-c__dots { display: inline-flex; }
.hero-c__dot { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-full); }
.hero-c__dot span { display: block; width: 12px; height: 12px; border-radius: var(--radius-full); border: 2px solid var(--color-accent); box-sizing: border-box; }
.hero-c__dot[aria-selected="true"] span { background: var(--color-accent); }
.hero-c__status { font-size: var(--text-sm); color: var(--color-text-muted); }
.hero-c__jump { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-c__more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-accent); font-weight: var(--weight-semibold); font-size: 0.9375rem; text-decoration: none; }
.hero-c__more:hover { border-color: var(--color-accent); text-decoration: none; }

/* Product screen on slides 1 and 2: the template view and the project view. It cross-fades with its slide
   (it sets its own visibility, so the outgoing slide's text never lingers). Desktop: top right, on the photo,
   beside the intro (which narrows so they never overlap); the jump links stay in the controls row below it.
   Below 1100 px it sits full width under the slide card. */
.hero-c__screen { margin: var(--space-4) 0 0; max-width: 36rem; position: relative; z-index: 3; }
.hero-c__screen picture, .hero-c__screen img { display: block; width: 100%; }
/* The crops end mid-list; fade the last rows into the frame instead of a hard cut. */
.hero-c__screen img { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.hero-c.is-ready .hero-c__screen { opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.hero-c.is-ready .hero-c__slide.is-on .hero-c__screen { opacity: 1; visibility: visible; transition: opacity 0.9s ease, visibility 0s; }
@media (min-width: 1100px) {
  .hero-c__intro { max-width: 36rem; }
  .hero-c__intro h1 { font-size: clamp(2.5rem, 1rem + 2.2vw, 3rem); }
  .hero-c__screen { position: absolute; top: 76px; right: var(--gutter); width: min(40vw, 38rem); max-width: none; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-c.is-ready .hero-c__screen, .hero-c.is-ready .hero-c__slide.is-on .hero-c__screen { transition: none; } }

@media (max-width: 980px) {
  .hero-c__intro h1 { font-size: clamp(2.125rem, 1.4rem + 2.6vw, 2.75rem); }
}
/* Phone: the photo becomes a faint background and the slide block sits on a soft card. */
@media (max-width: 600px) {
  .hero-c__in { gap: 22px; padding-top: 40px; min-height: 0; }
  .hero-c__intro h1 { font-size: 2.125rem; }
  .hero-c__sub { font-size: 1.0625rem; }
  .hero-c__veil { background: linear-gradient(180deg, rgb(var(--rgb-bg) / 0.97) 0%, rgb(var(--rgb-bg) / 0.93) 52%, rgb(var(--rgb-bg) / 0.45) 78%, rgb(var(--rgb-bg) / 0.6) 100%); }
  .hero-c__bg { object-position: 60% 100%; }
  .hero-c__dots, .hero-c__status { background: rgb(var(--rgb-surface) / 0.92); border-radius: var(--radius-full); }
  .hero-c__status { padding: 2px 10px; flex: 0 0 auto; }
  .hero-c__card { max-width: none; padding: 0 18px 18px; border-radius: 16px; background: rgb(var(--rgb-bg) / 0.95); box-shadow: 0 0 0 var(--border-width) var(--color-border); overflow: hidden; }
  .hero-c__rule { margin: 0 -18px 9px; border-radius: 0; }
  .hero-c__btns .btn { width: 100%; }
  .hero-c__jump { margin-left: 0; width: 100%; }
  .hero-c__controls { gap: var(--space-2); }
  .hero-c__dot { min-width: 36px; }
}
@media (prefers-reduced-motion: reduce) { .hero-c__bg { transition: none; } }
