/* ==========================================================================
   Self-hosted webfonts.

   Deliberately NOT loaded from a third-party CDN: dedicated on-premise
   deployments have no outbound internet, and hotlinking a font host would be
   an external request on every page load, which contradicts what /privacy
   tells visitors. Latin and latin-ext subsets only.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-400-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-400-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/plexmono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/plexmono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/plexmono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/plexmono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/plexmono-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/plexmono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Iris: a muted plum brand, warm-neutral greys. Kept in step with the app's own palette in
     static/app/styles.css -- the two must not drift, or the marketing site and the product it
     leads to stop looking like the same company. */
  --brand: #4a4057;
  --brand-dark: #372f42;
  --accent: #8b76a0;
  --brand-tint: #f4f1f7;
  --brand-tint-2: #e8e2ee;
  --bg: #ffffff;
  --surface: #f7f7f5;
  --surface-2: #f0efec;
  --card: #ffffff;
  --border: #e4e2de;
  --border-strong: #cbc9c4;
  --text: #232226;
  --text-muted: #4b4a51;
  --text-subtle: #74737a;
  --on-brand: #ffffff;
  --ink: #17181b;
  --shadow-sm: 0 1px 2px rgba(35, 34, 38, .06);
  --shadow-md: 0 8px 24px -12px rgba(35, 34, 38, .18);
  --shadow-lg: 0 28px 50px -20px rgba(23, 24, 27, .28);
  --shadow-brand: 0 10px 24px -6px rgba(74, 64, 87, .35);
  --radius: 10px;
  --radius-lg: 18px;
  --nav-bg: rgba(255, 255, 255, .86);
  --nav-border: #e2e6dc;
  --max: 1180px;
}
:root[data-theme="dark"] {
  /* On a dark ground the brand has to be the *light* end of the family, with dark type on it --
     the deep plum used in light mode is 1.6:1 here and would vanish. Neutrals match the app's
     dark theme exactly. */
  --brand: #bb8bcf;
  --brand-dark: #cba7da;
  --accent: #957fa3;
  --brand-tint: rgba(187, 139, 207, .12);
  --brand-tint-2: rgba(187, 139, 207, .2);
  --bg: #17181b;
  --surface: #202226;
  --surface-2: #26282c;
  --card: #232529;
  --border: #37393f;
  --border-strong: #4a4c53;
  --text: #e3e1db;
  --text-muted: #b6b5b0;
  --text-subtle: #8f9195;
  --on-brand: #1c1a20;
  --ink: #e3e1db;
  --nav-bg: rgba(23, 24, 27, .82);
  --nav-border: #37393f;
  --shadow-lg: 0 28px 50px -18px rgba(0, 0, 0, .65);
  --shadow-brand: 0 10px 28px -8px rgba(187, 139, 207, .28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--text-muted);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.ui, .btn, nav, footer, .tag, .eyebrow, .kpi, .mtable, .foot-col, .nav-inner, input, select, textarea, label, .meta {
  font-family: var(--sans);
}
h1, h2, h3, h4 { color: var(--text); line-height: 1.14; margin: 0; letter-spacing: -.022em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--brand-tint-2); color: var(--text); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff;
  padding: 8px 12px; z-index: 80; border-radius: 8px;
}
.skip:focus { left: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; line-height: 1; cursor: pointer;
  padding: 12px 20px; border-radius: var(--radius); border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 10px 14px; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.btn-white { background: #fff; color: #372f42; }
.btn-white:hover { background: #f1f5f0; }
.btn-on-dark { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-on-dark:hover { background: rgba(255,255,255,.2); }

header.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--nav-border);
}
.nav-inner { display: flex; align-items: center; gap: 10px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { height: 32px; width: auto; }
:root[data-theme="dark"] .brand-mark path { fill: #bb8bcf; }
.brand-name { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -.032em; font-family: var(--sans); }
nav.links { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
nav.links > a, .drop > button {
  font-size: 14px; font-weight: 550; color: var(--text-muted);
  padding: 9px 11px; border-radius: 8px; background: none; border: 0; cursor: pointer;
  font-family: inherit;
}
nav.links > a:hover, .drop > button:hover, .drop.open > button { color: var(--text); background: var(--surface-2); }
.drop { position: relative; }
.drop-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 10px; z-index: 40;
}
.drop.open .drop-panel, .drop:hover .drop-panel { display: grid; gap: 2px; }
.drop-panel a {
  display: block; padding: 10px 12px; border-radius: 9px; color: var(--text);
  font-size: 14px; font-weight: 600;
}
.drop-panel a span { display: block; font-size: 12px; font-weight: 450; color: var(--text-subtle); margin-top: 2px; }
.drop-panel a:hover { background: var(--surface-2); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: block; }
.hamburger { display: none; }
.mobile-menu { display: none; }
.mobile-menu.open { display: block; border-top: 1px solid var(--border); padding: 8px 0 16px; }
.mobile-menu a, .mobile-menu .mm-h {
  display: block; padding: 11px 24px; font-size: 15px; font-weight: 600; color: var(--text);
}
.mobile-menu .mm-h { color: var(--text-subtle); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 16px; }
.mobile-menu .sub { padding-left: 36px; font-weight: 500; color: var(--text-muted); }
.mobile-menu .mm-actions { display: flex; flex-direction: column; gap: 10px; padding: 14px 24px 4px; }

.hero-cinema {
  position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: #08110a;
}
.hero-cinema img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) contrast(1.05);
}
/* Rotating hero: the backgrounds stack and crossfade. Only .is-active shows. */
.hero-cinema img.bg { opacity: 0; transition: opacity .9s ease; }
.hero-cinema img.bg.is-active { opacity: 1; }
.hero-cinema img.bg:only-of-type { opacity: 1; }
.hero-cinema .veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,17,10,.25) 0%, rgba(8,17,10,.55) 45%, rgba(8,17,10,.88) 100%),
    linear-gradient(90deg, rgba(8,17,10,.55) 0%, rgba(8,17,10,.15) 70%);
}
.hero-cinema .container { position: relative; z-index: 2; padding-bottom: 72px; padding-top: 120px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #d9c7e4;
  margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #bb8bcf; }
.hero-cinema h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; color: #fff; max-width: 17ch; margin-bottom: 20px; letter-spacing: -.042em; }
.hero-cinema .lede { font-size: 18.5px; max-width: 60ch; color: rgba(255,255,255,.82); margin-bottom: 28px; line-height: 1.52; letter-spacing: -.008em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border-top: 1px solid var(--border);
}
.stat { background: var(--bg); padding: 28px 24px; }
.stat b { display: block; font-size: 28px; color: var(--text); letter-spacing: -.03em; font-family: var(--sans); }
.stat span { font-size: 13.5px; color: var(--text-subtle); }

section.block { padding: 88px 0; }
section.block.tight { padding: 18px 0; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.tag { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.7vw, 42px); margin-bottom: 14px; letter-spacing: -.035em; }
.section-head p { font-size: 17px; line-height: 1.55; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px;
  color: #fff; display: flex; align-items: flex-end; isolation: isolate;
}
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s; }
.photo-card:hover img { transform: scale(1.04); }
.photo-card .shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 20%, rgba(8,17,10,.88) 100%);
}
.photo-card .copy { position: relative; z-index: 2; padding: 22px; }
.photo-card h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.photo-card p { color: rgba(255,255,255,.8); font-size: 14.5px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.split.reverse { grid-template-columns: .95fr 1.05fr; }
.split.reverse .copy { order: 2; }
.split img.shot {
  width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.split h2 { font-size: clamp(26px, 3.2vw, 37px); margin: 10px 0 14px; letter-spacing: -.033em; }
.split p + p { margin-top: 12px; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.step img { width: 100%; height: 180px; object-fit: cover; }
.step .pad { padding: 22px; }
.step .n { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .06em; }
.step h3 { font-size: 20px; margin: 8px 0; }

.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 15px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.compare thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-subtle); background: var(--surface); }
.compare thead th.blv { color: var(--brand); }
.compare td.blv { background: var(--brand-tint); font-weight: 650; color: var(--text); }
.compare tr:last-child td { border-bottom: 0; }

.cta-box {
  background: linear-gradient(145deg, #241f2b 0%, #4a4057 58%, #6f5f80 100%);
  border-radius: 24px; padding: 64px 48px; color: #fff; position: relative; overflow: hidden;
}
.cta-box h2 { color: #fff; font-size: clamp(26px, 3.3vw, 38px); margin-bottom: 14px; letter-spacing: -.035em; }
.cta-box p { color: rgba(255,255,255,.84); font-size: 18px; max-width: 56ch; margin-bottom: 26px; }

.page-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; background: #08110a; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,17,10,.2), rgba(8,17,10,.82)); }
.page-hero .container { position: relative; z-index: 2; padding: 90px 24px 48px; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); max-width: 18ch; margin: 8px 0 14px; }
.page-hero .lede { color: rgba(255,255,255,.84); font-size: 18px; max-width: 62ch; }

.prose { max-width: 74ch; }
.prose p { margin-bottom: 14px; font-size: 17.5px; }
.prose h2 { font-size: 30px; margin: 32px 0 12px; }
.prose ul { margin: 0 0 16px; padding-left: 1.15em; }
.prose li { margin: 6px 0; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.fact { border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; background: var(--card); }
.fact h3 { font-size: 16px; margin-bottom: 6px; }
.fact p { font-size: 14.5px; }

.form { display: grid; gap: 14px; position: relative; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: var(--text); }
.form input, .form select, .form textarea {
  font: inherit; padding: 12px 13px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .cf-turnstile { margin-top: 2px; }
.note { font-size: 14px; color: var(--text-subtle); }
.ok { color: var(--brand); font-weight: 650; }
.err { color: #b91c1c; }

.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.aside-card h3 { font-size: 16px; margin-bottom: 8px; }
.aside-card a { color: var(--brand); font-weight: 650; }

footer.site { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 28px; }
footer.site .brand-name, footer.site h4 { color: #fff; }
:root[data-theme="dark"] footer.site { background: #050805; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 28px; margin-bottom: 40px; }
.foot-brand p { font-size: 14px; max-width: 280px; margin-top: 12px; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; font-weight: 700; }
.foot-col a { display: block; font-size: 13.5px; padding: 5px 0; color: rgba(255,255,255,.68); }
.foot-col a:hover { color: #cbb4d9; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px;
}
.foot-bottom a { color: rgba(255,255,255,.68); margin-left: 14px; }
.foot-bottom a:hover { color: #cbb4d9; }
.social { display: flex; gap: 8px; }
.social a {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.75);
}
.social svg { width: 15px; height: 15px; }

@media (max-width: 980px) {
  .photo-grid, .steps, .stats, .facts { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .copy { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  nav.links, .nav-right .desktop-only { display: none; }
  .hamburger { display: inline-flex; }
  .hero-cinema { min-height: 78vh; }
  .hero-cinema h1 { font-size: 38px; }
  .photo-grid, .steps, .stats, .facts, .form .row, .foot-grid { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
  .cta-box { padding: 40px 22px; }
  section.block.tight { padding: 12px 0; }
  .page-hero { min-height: 340px; }
}

/* ==========================================================================
   INNER-PAGE SYSTEM
   Editorial layouts for product / solution / resource / legal templates.
   Everything below is additive: existing home, about, contact, pricing
   markup is untouched.
   ========================================================================== */

:root {
  --measure: 66ch;
  --hair: rgba(35, 34, 38, .09);
  --lift: rgba(74, 64, 87, .05);
}
:root[data-theme="dark"] {
  --hair: rgba(255, 255, 255, .10);
  --lift: rgba(34, 197, 94, .06);
}

/* --- global typographic polish ------------------------------------------- */
h1, h2, h3 { text-wrap: balance; }
.prose p, .lede, .section-head p { text-wrap: pretty; }
.mono, .mtable td.v, .states code, .flow .n {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.stat b, .kpi b { font-variant-numeric: tabular-nums; }

/* --- hero: editorial variant -------------------------------------------- */
.page-hero.tall { min-height: 540px; }
.page-hero img.bg { filter: saturate(.82) contrast(1.06); }
.page-hero .veil {
  background:
    linear-gradient(180deg, rgba(8,17,10,.18) 0%, rgba(8,17,10,.52) 48%, rgba(8,17,10,.90) 100%),
    linear-gradient(90deg, rgba(8,17,10,.62) 0%, rgba(8,17,10,.10) 72%);
}
.page-hero .container { padding: 116px 24px 56px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 700; max-width: 21ch; letter-spacing: -.04em; }
.page-hero .lede { font-size: 18px; max-width: 62ch; line-height: 1.52; letter-spacing: -.008em; }
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px;
}
.hero-chips span {
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08);
  padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}

/* --- KPI band (sits under a hero, mono numerals) ------------------------- */
.kpi {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  background: var(--ink); color: #fff;
}
:root[data-theme="dark"] .kpi { background: #050805; }
.kpi-item { padding: 30px 26px; border-right: 1px solid rgba(255,255,255,.10); }
.kpi-item:last-child { border-right: 0; }
.kpi b {
  display: block; font-family: var(--sans); font-size: 29px; font-weight: 650;
  color: #cbb4d9; letter-spacing: -.032em; margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}
.kpi span { font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.45; display: block; }

/* --- ruled section head (numbered, editorial) ---------------------------- */
.rule-head {
  display: grid; grid-template-columns: 76px 1fr; gap: 28px;
  padding-top: 26px; border-top: 1px solid var(--border-strong);
  margin-bottom: 40px;
}
.rule-head .num {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  color: var(--brand); letter-spacing: .02em; padding-top: 6px;
}
.rule-head h2 { font-size: clamp(25px, 3.1vw, 36px); margin-bottom: 12px; letter-spacing: -.032em; }
.rule-head p { font-size: 16.75px; max-width: 64ch; line-height: 1.58; }

/* --- prose: lead paragraph and drop cap ---------------------------------- */
.prose { max-width: var(--measure); }
.prose p { margin-bottom: 17px; font-size: 16.75px; line-height: 1.62; }
.prose.dropcap > p:first-of-type::first-letter {
  float: left; font-size: 54px; line-height: .92; font-weight: 700;
  color: var(--brand); margin: 3px 11px 0 0; letter-spacing: -.04em;
}
.prose .lead { font-size: 19.5px; line-height: 1.5; color: var(--text); font-weight: 400; letter-spacing: -.011em; }

/* --- spec sheet (definition list, mono values) --------------------------- */
.spec {
  margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--card); overflow: hidden; box-shadow: var(--shadow-sm);
}
.spec-h {
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-subtle); padding: 15px 20px; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.spec dl { margin: 0; }
.spec .row {
  display: grid; grid-template-columns: 44% 1fr; gap: 16px;
  padding: 13px 20px; border-bottom: 1px solid var(--hair);
}
.spec .row:last-child { border-bottom: 0; }
.spec dt { font-size: 14px; color: var(--text-subtle); }
.spec dd {
  margin: 0; font-family: var(--sans); font-size: 13.75px; color: var(--text);
  font-weight: 500; line-height: 1.45; font-variant-numeric: tabular-nums;
}

/* --- technical data table ------------------------------------------------ */
.mtable {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.mtable caption {
  caption-side: bottom; text-align: left; font-size: 13px; color: var(--text-subtle);
  padding: 14px 2px 0; font-family: inherit;
}
.mtable th, .mtable td {
  padding: 13px 18px; text-align: left; font-size: 14px;
  border-bottom: 1px solid var(--hair);
}
.mtable thead th {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-subtle); background: var(--surface); font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.mtable tbody tr:last-child td { border-bottom: 0; }
.mtable td.v { font-size: 13px; color: var(--brand); font-weight: 600; white-space: nowrap; }
.mtable td.k { color: var(--text); font-weight: 600; }
.mtable tbody tr:hover { background: var(--lift); }

/* --- escalation ladder (modality floors) -------------------------------- */
.ladder { display: grid; gap: 10px; counter-reset: rung; }
.ladder .rung {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 16px; align-items: center;
  padding: 15px 20px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); counter-increment: rung; position: relative;
}
.ladder .rung::before {
  content: counter(rung); font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--brand); background: var(--brand-tint); border-radius: 7px;
  width: 26px; height: 26px; display: grid; place-items: center;
}
.ladder .rung code {
  font-family: var(--mono); font-size: 13.5px; color: var(--text); font-weight: 600;
}
.ladder .rung code + em { display: block; font-style: normal; font-size: 13.5px; color: var(--text-subtle); margin-top: 3px; }
.ladder .rung b {
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-subtle); white-space: nowrap;
}
.ladder .rung:last-child { border-color: var(--brand); background: var(--brand-tint); }

/* --- state chips --------------------------------------------------------- */
.states { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.state {
  border: 1px solid var(--border); border-left: 3px solid var(--brand);
  border-radius: 0; padding: 15px 17px; background: var(--card);
}
.state code { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); }
.state p { font-size: 13.5px; color: var(--text-subtle); margin-top: 5px; line-height: 1.5; }
.state.hold { border-left-color: #d97706; }
.state.stop { border-left-color: #b91c1c; }

/* --- ordered flow / pipeline -------------------------------------------- */
.flow { display: grid; gap: 0; }
.flow .fstep {
  display: grid; grid-template-columns: 60px 1fr; gap: 22px;
  padding: 22px 0; border-top: 1px solid var(--hair); position: relative;
}
.flow .fstep:first-child { border-top: 0; }
.flow .n {
  font-size: 12px; font-weight: 600; color: var(--brand); padding-top: 4px;
  letter-spacing: .04em;
}
.flow h3 { font-size: 19px; margin-bottom: 7px; }
.flow p { font-size: 15.75px; max-width: 66ch; line-height: 1.6; }

/* --- figure / diagram frame --------------------------------------------- */
.figure {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); padding: 26px; overflow-x: auto;
}
.figure pre {
  margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.62;
  color: var(--text-muted); white-space: pre;
}
.figure figcaption {
  font-size: 13px; color: var(--text-subtle); margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--hair);
}

/* --- callout (normative statement) -------------------------------------- */
.callout {
  border-left: 3px solid var(--brand); background: var(--brand-tint);
  border-radius: 0 12px 12px 0; padding: 16px 22px; margin: 0;
}
.callout b { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.callout p { font-size: 15.75px; color: var(--text-muted); line-height: 1.6; }

/* --- pull statement ----------------------------------------------------- */
.pull {
  font-size: clamp(23px, 2.8vw, 31px); line-height: 1.3; font-weight: 600;
  color: var(--text); letter-spacing: -.032em; max-width: 32ch;
  padding-left: 24px; border-left: 3px solid var(--brand);
}

/* --- resource index cards ----------------------------------------------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.doc-card {
  display: block; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; background: var(--card); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.doc-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.doc-card .dk {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--brand);
  letter-spacing: .04em; margin-bottom: 12px;
}
.doc-card h3 { font-size: 20px; margin-bottom: 8px; }
.doc-card p { font-size: 14.5px; color: var(--text-subtle); line-height: 1.55; }
.doc-card .more {
  font-family: var(--sans);
  display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 650; color: var(--brand);
}

/* --- timeline (release notes, implementation order) --------------------- */
.timeline { display: grid; gap: 0; border-left: 2px solid var(--border); padding-left: 0; }
.timeline .tl {
  position: relative; padding: 0 0 34px 32px; margin-left: -1px;
}
.timeline .tl::before {
  content: ""; position: absolute; left: -7px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); border: 3px solid var(--bg);
}
.timeline .tl:last-child { padding-bottom: 0; }
.timeline .tl .when {
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--brand);
  letter-spacing: .03em;
}
.timeline .tl h3 { font-size: 19px; margin: 6px 0 8px; }
.timeline .tl p { font-size: 15.5px; line-height: 1.6; max-width: 62ch; }
.timeline .tl.pending::before { background: var(--bg); border-color: var(--border-strong); }
.timeline .tl.pending .when { color: var(--text-subtle); }

/* --- legal long-form layout --------------------------------------------- */
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; }
.toc h4 {
  font-family: var(--sans);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-subtle); margin-bottom: 14px;
}
.toc a {
  display: block; font-size: 14px; padding: 7px 0 7px 13px; color: var(--text-muted);
  border-left: 2px solid var(--border); line-height: 1.4;
}
.toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.legal-body { max-width: 70ch; }
.legal-body section { padding-bottom: 40px; scroll-margin-top: 100px; }
.legal-body h2 {
  font-size: 25px; margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.legal-body p { font-size: 16px; line-height: 1.68; margin-bottom: 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 1.2em; font-size: 16px; line-height: 1.68; }
.legal-body li { margin: 7px 0; }
.stamp {
  font-family: var(--mono); font-size: 12.5px; color: var(--text-subtle);
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); display: inline-block; margin-bottom: 34px;
}

/* --- related strip ------------------------------------------------------ */
.related-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rel {
  display: block; border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; background: var(--card); transition: border-color .2s, background .2s;
}
.rel:hover { border-color: var(--brand); background: var(--lift); }
.rel .rk {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-subtle); margin-bottom: 9px;
}
.rel h3 { font-size: 17.5px; margin-bottom: 6px; }
.rel p { font-size: 14px; color: var(--text-subtle); line-height: 1.5; }

/* --- two-column feature copy ------------------------------------------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.duo h3 { font-size: 21px; margin-bottom: 10px; }
.duo p { font-size: 16px; line-height: 1.6; }
.duo p + p { margin-top: 12px; }

/* --- aside layout (prose + rail) ---------------------------------------- */
.with-rail { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .with-rail, .legal-wrap, .duo { grid-template-columns: 1fr; gap: 36px; }
  .toc { position: static; }
  .rule-head { grid-template-columns: 1fr; gap: 10px; }
  .rule-head .num { padding-top: 0; }
}
@media (max-width: 760px) {
  .kpi { grid-template-columns: 1fr 1fr; }
  .kpi-item { padding: 22px 18px; }
  .kpi-item:nth-child(2n) { border-right: 0; }
  .page-hero .container { padding: 96px 24px 44px; }
  .spec .row { grid-template-columns: 1fr; gap: 4px; }
  .flow .fstep { grid-template-columns: 1fr; gap: 8px; }
  .prose.dropcap > p:first-of-type::first-letter { font-size: 44px; }
  .mtable th, .mtable td { padding: 11px 13px; font-size: 13.5px; }
}

/* --- light editorial header (resource + legal pages, no photo) ----------- */
.lite-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.lite-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(720px 300px at 12% -10%, var(--brand-tint) 0%, transparent 70%);
  pointer-events: none;
}
.lite-hero .lh-inner { position: relative; padding: 92px 0 64px; max-width: 780px; }
.lite-hero .lh-inner.narrow { max-width: 660px; }
.lite-hero h1 {
  font-size: clamp(34px, 4.9vw, 54px); font-weight: 700;
  margin: 6px 0 18px; letter-spacing: -.04em;
}
.lite-hero .lede { font-size: 18px; line-height: 1.55; color: var(--text-muted); letter-spacing: -.008em; }
.lite-hero .lh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.lite-hero .lh-chips span {
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border-strong); background: var(--card);
  padding: 7px 13px; border-radius: 999px;
}
@media (max-width: 760px) {
  .lite-hero .lh-inner { padding: 64px 0 46px; }
}

/* --- wide tables scroll inside themselves, never widening the page -------- */
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tscroll > .mtable, .tscroll > .compare { min-width: 560px; }
.tscroll > .mtable caption { min-width: 0; }
@media (max-width: 620px) {
  .tscroll > .mtable, .tscroll > .compare { min-width: 520px; }
}

/* ==========================================================================
   ROTATING HERO
   Lives inside .hero-cinema and reuses its veil, eyebrow, h1, lede and button
   treatment. Only what the hero does not already provide is defined here: the
   crossfade, the indicator tracks, and the pause control. Add .circles to
   .rot-nav for the stacked-dot variant.
   ========================================================================== */

.rotator { --rot-dur: 6500ms; }
.hero-rot { margin: 0 0 30px; }

/* Reserve height so the buttons below never jump between slides. */
.rot-stage { position: relative; min-height: 340px; }
.rot-item[hidden] { display: none; }
.rot-item.is-active { animation: rotIn .6s cubic-bezier(.16, .84, .3, 1) both; }
@keyframes rotIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.hero-rot .rot-item .lede { margin-bottom: 0; }
.rot-link {
  font-family: var(--sans); display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; font-size: 14.5px; font-weight: 650; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px;
}
.rot-link::after { content: ">"; font-weight: 400; opacity: .7; }
.rot-link:hover { border-bottom-color: #fff; }

/* --- controls row: four tracks plus the pause button -------------------- */
.rot-controls { display: flex; align-items: flex-start; gap: 24px; }
.rot-nav {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; flex: 1; max-width: 780px;
}
.rot-tab {
  display: block; text-align: left; background: none; border: 0; padding: 0;
  cursor: pointer; font-family: inherit; color: inherit;
}
.rot-track {
  display: block; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .26); overflow: hidden; margin-bottom: 10px;
}
.rot-fill { display: block; height: 100%; width: 0; background: #bb8bcf; border-radius: 2px; }
.rot-tab.is-active .rot-fill { animation: rotFill var(--rot-dur) linear forwards; }
.rotator.is-paused .rot-tab.is-active .rot-fill { animation-play-state: paused; }
@keyframes rotFill { from { width: 0; } to { width: 100%; } }
.rot-tab em {
  font-style: normal; font-size: 13px; font-weight: 550; display: block;
  line-height: 1.35; color: rgba(255, 255, 255, .6);
}
.rot-tab:hover em { color: rgba(255, 255, 255, .9); }
.rot-tab.is-active em { color: #fff; font-weight: 650; }
.rot-tab:focus-visible,
.rot-pause:focus-visible { outline: 2px solid #bb8bcf; outline-offset: 4px; border-radius: 4px; }

.rot-pause {
  flex-shrink: 0; width: 34px; height: 34px; margin-top: -8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  transition: background .2s, border-color .2s;
}
.rot-pause:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); }
.rot-pause svg { width: 15px; height: 15px; }
.rot-pause .ic-play { display: none; }
.rot-pause[aria-pressed="true"] .ic-pause { display: none; }
.rot-pause[aria-pressed="true"] .ic-play { display: block; }

/* --- variant: four stacked circles ------------------------------------- */
.rot-nav.circles { grid-template-columns: 1fr; gap: 0; max-width: none; }
.rot-nav.circles .rot-tab {
  display: grid; grid-template-columns: 14px 1fr; gap: 12px;
  padding: 8px 0; align-items: center;
}
.rot-nav.circles .rot-track {
  width: 12px; height: 12px; border-radius: 50%; margin: 0;
  background: transparent; border: 2px solid rgba(255, 255, 255, .35);
}
.rot-nav.circles .rot-tab.is-active .rot-track { border-color: #bb8bcf; }
.rot-nav.circles .rot-fill {
  animation: none !important; width: 100%; height: 100%;
  border-radius: 50%; background: transparent;
}
.rot-nav.circles .rot-tab.is-active .rot-fill { background: #bb8bcf; }

@media (prefers-reduced-motion: reduce) {
  .rot-item.is-active { animation: none; }
  .rot-tab.is-active .rot-fill { animation: none; width: 100%; }
  .hero-cinema img.bg { transition: none; }
}
@media (max-width: 900px) {
  .rot-stage { min-height: 300px; }
  .rot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
}
@media (max-width: 560px) {
  .rot-stage { min-height: 330px; }
  .rot-controls { gap: 16px; }
  .rot-tab em { font-size: 12.5px; }
}
