/* =====================================================================
   CFD AI - site.css : the design system (A68 phase 1)
   Spec: docs/design/WEBSITE_DESIGN.md. Loaded by BOTH layouts
   (_layout_site.html and _layout_app.html). Page-specific rules live in
   pages-marketing.css / pages-account.css / pages-admin.css / home.css.
   Sections:
    1 tokens            9 cards            17 FAQ accordion   25 window frame
    2 reset/base       10 forms            18 steps           26 reveal/motion
    3 typography       11 tables           19 stats           27 utilities
    4 layout           12 badges           20 code/kbd        28 legacy bridge
    5 a11y/focus       13 alerts/flash     21 empty states
    6 site header/nav  14 meters/progress  22 modal
    7 footer           15 tabs             23 toast
    8 buttons          16 pricing          24 heroes / bands
   ===================================================================== */

/* ------------------------------------------------------------ 1 tokens */
:root {
  color-scheme: light;
  /* palette */
  --navy-950: #070d1c; --navy-900: #0b1428; --navy-800: #111a30; --navy-700: #1a2744;
  --ink: #0f172a; --text: #1e293b; --muted: #64748b; --line: #e2e8f0;
  --line-strong: #cbd5e1; --bg: #f6f8fc; --surface: #ffffff; --surface-2: #f8fafc;
  --primary: #2563eb; --primary-hover: #1d4ed8; --primary-50: #eff6ff; --primary-100: #dbeafe;
  --cyan: #06b6d4; --teal: #14b8a6; --lime: #84cc16; --amber: #f59e0b;
  --orange: #f97316; --red: #ef4444; --success: #10b981;
  /* tone pairs (background / text) - AA on their background */
  --ok-bg: #ecfdf5;   --ok-fg: #047857;   --ok-line: #a7f3d0;
  --warn-bg: #fffbeb; --warn-fg: #b45309; --warn-line: #fde68a;
  --bad-bg: #fef2f2;  --bad-fg: #b91c1c;  --bad-line: #fecaca;
  --info-bg: #eff6ff; --info-fg: #1d4ed8; --info-line: #bfdbfe;
  /* the FLOW gradient (turbo colormap) - hairlines, highlights, ribbons */
  --flow: linear-gradient(90deg, #1e40af, #2563eb 18%, #06b6d4 40%, #84cc16 62%, #f59e0b 80%, #ea580c);
  /* lighter stops for TEXT on dark grounds (AA against navy) */
  --flow-text: linear-gradient(90deg, #60a5fa, #22d3ee 35%, #a3e635 62%, #fbbf24 82%, #fb923c);
  /* semantic (re-pointed inside dark contexts, see .theme-dark) */
  --c-bg: var(--bg); --c-surface: var(--surface); --c-text: var(--text);
  --c-heading: var(--ink); --c-muted: var(--muted); --c-line: var(--line);
  --c-link: var(--primary); --c-focus: var(--primary); --c-eyebrow: var(--primary);
  /* type */
  --font-head: "Space Grotesk", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --fs-display: clamp(2.375rem, 1.55rem + 3.4vw, 4.125rem);
  --fs-h1: clamp(2.125rem, 1.6rem + 2.1vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.35vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.12rem + .5vw, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-body: 1rem; --fs-sm: .875rem; --fs-xs: .75rem;
  /* space */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section-y: clamp(4rem, 2.8rem + 4.5vw, 7rem);
  --gutter: clamp(16px, 4vw, 32px);
  --container: 1200px; --container-wide: 1320px; --container-narrow: 760px;
  /* shape */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-2xl: 28px; --r-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .08);
  --shadow-lg: 0 28px 64px rgba(15, 23, 42, .16);
  --shadow-glow: 0 10px 28px rgba(37, 99, 235, .30);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 68px;
}

/* dark contexts re-point the semantic tokens; components follow */
.theme-dark, .section--dark, .band-dark, .site-footer, .hero--dark, .page-hero--dark {
  --c-bg: var(--navy-900); --c-surface: rgba(255, 255, 255, .04);
  --c-text: #cbd5e1; --c-heading: #ffffff; --c-muted: #94a3b8;
  --c-line: rgba(148, 163, 184, .18); --c-link: #7dd3fc; --c-focus: #67e8f9;
  --c-eyebrow: #67e8f9;
  color: var(--c-text);
}

/* ------------------------------------------------------- 2 reset/base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; font-family: var(--font-body); font-size: var(--fs-body);
  line-height: 1.6; color: var(--c-text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
.theme-dark a:hover, .section--dark a:hover, .band-dark a:hover, .site-footer a:hover, .hero--dark a:hover { color: #ffffff; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-6) 0; }
ul, ol { padding-left: 1.25rem; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* -------------------------------------------------------- 3 typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--c-heading); margin: 0 0 var(--s-4); font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
.lead, .section-head p { text-wrap: pretty; }
.page-hero--center .lead { text-wrap: balance; }
h1, .h1 { font-size: var(--fs-h1); line-height: 1.08; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.14; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.35; font-weight: 600; letter-spacing: 0; }
h5, h6 { font-size: 1rem; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.display { font-family: var(--font-head); font-size: var(--fs-display); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; color: var(--c-heading); }
p { margin: 0 0 var(--s-4); }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--c-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 700 var(--fs-xs)/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-eyebrow); margin: 0 0 var(--s-3); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--flow); }
.eyebrow--plain::before { display: none; }
.text-gradient { background: var(--flow-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.text-muted, .muted { color: var(--c-muted); }
.text-sm { font-size: var(--fs-sm); } .text-xs { font-size: var(--fs-xs); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.unit { font-family: var(--font-mono); font-size: .875em; color: var(--c-muted); }
strong, b { font-weight: 650; color: inherit; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--s-7); } .prose h3 { margin-top: var(--s-6); }
.prose p, .prose li { color: var(--c-text); }
.prose li + li { margin-top: .35rem; }

/* ------------------------------------------------------------ 4 layout */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section--muted { background: #eef3fb; }
.section--dark { background: radial-gradient(900px 420px at 15% 0%, rgba(37, 99, 235, .28), transparent 65%), radial-gradient(700px 380px at 100% 100%, rgba(6, 182, 212, .14), transparent 60%), var(--navy-900); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head > p:not(.eyebrow) { font-size: var(--fs-lead); color: var(--c-muted); margin: 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap, 1.5rem); }
.grid > *, .split > * { min-width: 0; }
.split.split--top { align-items: start; }
.eyebrow--center { justify-content: center; }
@media (min-width: 640px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) and (max-width: 1023.98px) { .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-media { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .split--reverse > :first-child { order: 2; }
  .split--wide-media.split--reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
.stack > * + * { margin-top: var(--stack, var(--s-4)); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap, var(--s-3)); align-items: center; }
.page-top { padding-top: calc(var(--nav-h) + clamp(2rem, 1.5rem + 2vw, 3.5rem)); padding-bottom: var(--section-y); }

/* -------------------------------------------------------- 5 a11y/focus */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; padding: .75rem 1rem; border-radius: var(--r-md); background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-lg); }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------- 6 site header / nav */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  --nav-text: #334155; --nav-text-hover: var(--ink); --nav-hover-bg: rgba(15, 23, 42, .05);
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(170%) blur(14px); backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .9); transition: background .25s var(--ease), border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
.site-header[data-theme="dark"]:not(.is-past-hero) {
  --nav-text: #cbd5e1; --nav-text-hover: #ffffff; --nav-hover-bg: rgba(255, 255, 255, .08); --c-focus: #67e8f9;
  background: rgba(11, 20, 40, .72); border-bottom-color: rgba(255, 255, 255, .08); box-shadow: none;
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; border-radius: 8px; }
.brand img { height: 34px; width: auto; }
.brand__logo--on-dark { display: none; }
.site-header[data-theme="dark"]:not(.is-past-hero) .brand__logo--on-light { display: none; }
.site-header[data-theme="dark"]:not(.is-past-hero) .brand__logo--on-dark { display: block; }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.site-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: .55rem .8rem; border: 0; border-radius: 10px;
  background: transparent; color: var(--nav-text); font: 600 .9375rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
}
.site-nav__link:hover, .site-nav__link[aria-expanded="true"] { color: var(--nav-text-hover); background: var(--nav-hover-bg); }
.site-nav__link[aria-current="page"], .site-nav__link.is-current { color: var(--nav-text-hover); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 10px 10px 4px 4px; }
.site-menu__item[aria-current="page"] { background: var(--primary-50); }
.site-nav__link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.site-nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-menu {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 340px; padding: 10px; display: grid; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.site-menu::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.site-nav__item.is-open .site-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1200px) { .site-nav__item.has-menu:hover .site-menu { opacity: 1; visibility: visible; transform: none; } }
.site-menu__item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; }
.site-menu__item:hover { background: var(--surface-2); color: var(--ink); }
.site-menu__item strong { display: block; font-size: .9375rem; color: var(--ink); font-weight: 600; }
.site-menu__item small { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.45; margin-top: 2px; text-wrap: pretty; }
.site-menu__item .icon-tile { width: 36px; height: 36px; border-radius: 10px; }
.site-header__actions { display: flex; align-items: center; gap: var(--s-2); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--c-line); background: transparent; color: var(--nav-text-hover); align-items: center; justify-content: center; }
.site-header[data-theme="dark"]:not(.is-past-hero) .nav-toggle { border-color: rgba(255, 255, 255, .18); }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.account-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--r-pill); border: 1px solid var(--c-line); background: rgba(255, 255, 255, .6); color: var(--ink); font: 600 .875rem/1 var(--font-body); text-decoration: none; max-width: 220px; }
.site-header[data-theme="dark"]:not(.is-past-hero) .site-header__actions .btn--ghost { --btn-fg: #e2e8f0; --btn-hover-bg: rgba(255, 255, 255, .08); }
.site-header[data-theme="dark"]:not(.is-past-hero) .account-chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.account-chip__avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 .8125rem/1 var(--font-head); background: linear-gradient(135deg, #2563eb, #06b6d4); }
.account-chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1199.98px) {
  .nav-toggle { display: inline-flex; }
  .site-header__inner { gap: var(--s-3); }
  .site-nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: var(--s-4); padding: var(--s-4) var(--gutter) var(--s-6);
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(15, 23, 42, .18);
    --nav-text: #334155; --nav-text-hover: var(--ink); --nav-hover-bg: var(--surface-2); --c-focus: var(--primary);
    display: none;
  }
  .nav-open .site-nav { display: flex; animation: navDrop .2s var(--ease); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__link { width: 100%; justify-content: space-between; padding: .85rem .75rem; font-size: 1rem; }
  .site-menu { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; display: none; transition: none; }
  .site-menu::before { display: none; }
  .site-nav__item.is-open .site-menu { display: grid; }
  .site-header__actions { flex-direction: column; align-items: stretch; padding-top: var(--s-4); border-top: 1px solid var(--line); }
  .site-header__actions .btn { width: 100%; min-height: 44px; font-size: .9375rem; }
  .site-header__actions .account-chip { max-width: none; background: var(--surface-2); color: var(--ink); border-color: var(--line); }
  .site-header[data-theme="dark"]:not(.is-past-hero) .site-nav .site-header__actions .btn--ghost,
  .site-header .site-nav .site-header__actions .btn--ghost { --btn-fg: var(--primary); --btn-hover-bg: var(--primary-50); border-color: var(--line-strong); }
  .site-header[data-theme="dark"]:not(.is-past-hero) .site-nav .site-header__actions .account-chip { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.nav-open { overflow: hidden; }
@media (max-width: 1199.98px) { body.nav-open::after { content: ""; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 40; background: rgba(7, 13, 28, .45); } }
@media (min-width: 1200px) { body.nav-open { overflow: auto; } }

/* ------------------------------------------------------------ 7 footer */
.site-footer { position: relative; background: var(--navy-950); padding: clamp(3.5rem, 2.5rem + 3vw, 5rem) 0 0; font-size: var(--fs-sm); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--flow); opacity: .85; }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); } }
.footer-brand { grid-column: 1 / -1; max-width: 340px; }
@media (min-width: 1024px) { .footer-brand { grid-column: auto; } }
.footer-brand img { height: 34px; width: auto; margin-bottom: var(--s-4); }
.footer-brand p { color: var(--c-muted); line-height: 1.6; }
.footer-col h2 { font: 700 var(--fs-xs)/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #e2e8f0; margin: 0 0 var(--s-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: #a8b4c8; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding: var(--s-5) 0 var(--s-6); border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); color: var(--c-muted); font-size: var(--fs-xs); }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-left: auto; }
@media (max-width: 639.98px) { .footer-bottom__links { margin-left: 0; width: 100%; } }
.footer-bottom a { color: #a8b4c8; }
.sim-marker { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .10); color: #fcd34d; font: 600 var(--fs-xs)/1.3 var(--font-body); }
.sim-marker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); flex: none; }
.sim-marker--light { color: var(--warn-fg); background: var(--warn-bg); border-color: var(--warn-line); }
.sim-urls { font-family: var(--font-mono); font-size: 11px; color: #7b8aa3; width: 100%; }

/* ----------------------------------------------------------- 8 buttons */
.btn {
  --btn-bg: var(--primary); --btn-fg: #fff; --btn-border: transparent; --btn-hover-bg: var(--primary-hover);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .7rem 1.2rem;
  border: 1px solid var(--btn-border); border-radius: var(--r-md); background: var(--btn-bg); color: var(--btn-fg);
  font: 600 .9375rem/1.1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s, color .18s, transform .18s var(--ease), box-shadow .18s;
}
.btn:hover { background: var(--btn-hover-bg); color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn--primary { box-shadow: 0 6px 18px rgba(37, 99, 235, .22); }
.btn--primary:hover { box-shadow: var(--shadow-glow); }
.btn--secondary { --btn-bg: #fff; --btn-fg: var(--ink); --btn-border: var(--line-strong); --btn-hover-bg: var(--surface-2); box-shadow: var(--shadow-xs); }
.btn--secondary:hover { border-color: #94a3b8; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--primary); --btn-hover-bg: var(--primary-50); }
.btn--on-dark { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-hover-bg: #e0f2fe; }
.btn--outline-dark { --btn-bg: rgba(255, 255, 255, .04); --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .28); --btn-hover-bg: rgba(255, 255, 255, .1); }
.btn--danger { --btn-bg: #dc2626; --btn-hover-bg: #b91c1c; }
.btn--danger-soft { --btn-bg: var(--bad-bg); --btn-fg: var(--bad-fg); --btn-border: var(--bad-line); --btn-hover-bg: #fee2e2; }
.btn--sm { min-height: 36px; padding: .45rem .85rem; font-size: .875rem; border-radius: 10px; }
.btn--lg { min-height: 52px; padding: .95rem 1.6rem; font-size: 1rem; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--link { --btn-bg: transparent; --btn-hover-bg: transparent; --btn-fg: var(--c-link); min-height: 0; padding: 0; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ------------------------------------------------------------- 9 cards */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a .icon, button .icon, summary .icon { display: inline-block; vertical-align: middle; }
.card { position: relative; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + .8vw, 1.75rem); box-shadow: var(--shadow-sm); }
.theme-dark .card, .section--dark .card, .band-dark .card { box-shadow: none; }
.card--flat { box-shadow: none; }
.card--hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card__title { font-family: var(--font-head); font-size: 1.125rem; font-weight: 600; color: var(--c-heading); margin: 0 0 var(--s-2); letter-spacing: -.01em; }
.card__text { color: var(--c-muted); font-size: .9375rem; margin: 0; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__title a { color: inherit; text-decoration: none; }
.card--hover:hover .card__title a { color: var(--primary); }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card__media { aspect-ratio: 4 / 3; background: #eef2f7; overflow: hidden; }
.card__media picture { display: block; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card--hover:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.icon-tile { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-50); }
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile--cyan { color: #0e7490; background: #ecfeff; } .icon-tile--teal { color: #0f766e; background: #f0fdfa; }
.icon-tile--lime { color: #4d7c0f; background: #f7fee7; } .icon-tile--amber { color: #b45309; background: #fffbeb; }
.icon-tile--orange { color: #c2410c; background: #fff7ed; } .icon-tile--navy { color: #fff; background: var(--navy-800); }
.theme-dark .icon-tile, .section--dark .icon-tile, .band-dark .icon-tile { color: #7dd3fc; background: rgba(125, 211, 252, .1); }
.feature-card { display: flex; flex-direction: column; gap: var(--s-3); }
.feature-card .card__title { margin: var(--s-2) 0 0; }
@media (max-width: 639.98px) {
  .feature-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: .3rem; align-items: start; }
  .feature-card .icon-tile { grid-row: span 2; }
  .feature-card .card__title { margin: .55rem 0 0; }
}

/* ------------------------------------------------------------ 10 forms */
.form { display: grid; gap: var(--s-5); }
.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field__label, .label { font: 600 .875rem/1.3 var(--font-body); color: var(--c-heading); }
.field__label .req { color: var(--bad-fg); margin-left: 2px; }
.field__hint { font-size: .8125rem; color: var(--c-muted); margin: 0; }
.field__error { font-size: .8125rem; color: var(--bad-fg); font-weight: 600; margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: .65rem .85rem; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--ink); font-size: .9375rem; line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #8a97ab; }
.input:hover, .select:hover, .textarea:hover { border-color: #94a3b8; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); outline: none; }
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 18px; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea, .input[aria-invalid="true"] { border-color: #dc2626; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .9375rem; color: var(--c-text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.check small { display: block; color: var(--c-muted); font-size: .8125rem; }
fieldset.fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4) var(--s-5) var(--s-5); margin: 0; min-width: 0; }
fieldset.fieldset legend { padding: 0 6px; font-weight: 600; color: var(--c-heading); font-size: .9375rem; }
.input-group { display: flex; gap: var(--s-2); } .input-group .input { flex: 1; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ----------------------------------------------------------- 11 tables */
.table-wrap { width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; }
.table th { text-align: left; padding: .75rem 1rem; background: var(--surface-2); color: var(--muted); font: 600 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .8rem 1rem; border-bottom: 1px solid #eef2f7; vertical-align: top; color: var(--text); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcff; }
.table .num, .table td.num, .table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table th.num { font-family: var(--font-body); }
.table td.num { white-space: nowrap; }
/* .table--stack: a marketing table as one card per row below 640 px
   (each <td> carries data-label; the first cell is the row title) */
@media (max-width: 639.98px) {
  .table-wrap:has(> .table--stack) { overflow: visible; border: 0; background: transparent; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td, .table--stack th { display: block; width: 100%; }
  .table--stack tbody { display: grid; gap: .75rem; }
  .table--stack tr { padding: .35rem 1rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
  .table--stack td, .table--stack th { display: flow-root; padding: .45rem 0; border: 0; border-top: 1px solid #eef2f7; text-align: right; }
  .table--stack td[data-label]::before { content: attr(data-label); float: left; margin-right: 1rem; color: var(--c-muted); font: 600 var(--fs-xs)/1.7 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
  .table--stack tr > :first-child { border-top: 0; text-align: left; }
  .table--stack tr > :first-child::before { content: none; }
}
.table--compact td, .table--compact th { padding: .5rem .75rem; }
.table caption { caption-side: top; text-align: left; padding: .75rem 1rem; font-weight: 600; color: var(--ink); }

/* ----------------------------------------------------------- 12 badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: .2rem .6rem; border-radius: var(--r-pill); border: 1px solid transparent; background: #f1f5f9; color: #334155; font: 600 var(--fs-xs)/1.4 var(--font-body); white-space: nowrap; vertical-align: middle; }
.badge--success, .badge--ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
.badge--warning, .badge--warn { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-line); }
.badge--danger, .badge--bad { background: var(--bad-bg); color: var(--bad-fg); border-color: var(--bad-line); }
.badge--info, .badge--primary { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-line); }
.badge--dark { background: var(--navy-800); color: #e2e8f0; }
.badge--flow { background: var(--navy-900); color: #fff; border: 1px solid transparent; background-image: linear-gradient(var(--navy-900), var(--navy-900)), var(--flow); background-origin: border-box; background-clip: padding-box, border-box; }
.badge--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.theme-dark .badge:not([class*="badge--"]), .section--dark .badge:not([class*="badge--"]), .band-dark .badge:not([class*="badge--"]) { background: rgba(255, 255, 255, .08); color: #e2e8f0; }

/* ----------------------------------------------------- 13 alerts/flash */
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r-md); border: 1px solid var(--info-line); background: var(--info-bg); color: #1e3a8a; font-size: .9375rem; }
.alert .icon { width: 20px; height: 20px; margin-top: 1px; }
.alert__title { display: block; font-weight: 700; margin-bottom: 2px; }
.alert p { margin: 0; }
.alert--success { border-color: var(--ok-line); background: var(--ok-bg); color: #065f46; }
.alert--warning { border-color: var(--warn-line); background: var(--warn-bg); color: #92400e; }
.alert--danger { border-color: var(--bad-line); background: var(--bad-bg); color: #991b1b; }
.alert__close { margin-left: auto; border: 0; background: transparent; color: inherit; opacity: .7; padding: 2px; border-radius: 6px; }
.alert__close:hover { opacity: 1; }
.flash-area { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }

/* -------------------------------------------------- 14 meters/progress */
.meter { display: grid; gap: 6px; }
.meter__head { display: flex; justify-content: space-between; gap: var(--s-3); font-size: .875rem; color: var(--c-muted); }
.meter__head strong { color: var(--c-heading); font-family: var(--font-mono); font-weight: 600; }
.meter__bar, .progress { height: 8px; border-radius: var(--r-pill); background: #e2e8f0; overflow: hidden; }
.meter__fill, .progress__fill { height: 100%; border-radius: inherit; background: var(--primary); transition: width .6s var(--ease); }
.meter--flow .meter__fill { background: var(--flow); }
.meter--warn .meter__fill { background: var(--amber); }
.meter--danger .meter__fill { background: #dc2626; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(37, 99, 235, .25); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Commerce screens share the site's typography and remain readable on narrow devices. */
.commerce form.adm-stack { display:grid; gap:1rem; }
.commerce .form-field { display:grid; gap:.4rem; min-width:0; }
.commerce .form-check { display:flex; align-items:flex-start; gap:.6rem; }
.commerce .form-check input { margin-top:.35rem; flex:none; }
.commerce .panel { margin-bottom:1.5rem; }
.commerce .panel h2 { font-size:1.45rem; line-height:1.35; }
.commerce .panel h3 { font-size:1.18rem; margin-top:1rem; }
.commerce code,.commerce p { overflow-wrap:anywhere; }
.commerce .table-wrap { overflow-x:auto; }
.commerce .feature-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:1.25rem; }
.commerce .feature-grid .panel { padding:1.25rem; border:1px solid #dce4ef; border-radius:18px; }

/* -------------------------------------------------------------- 15 tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--c-line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: .75rem 1rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--c-muted); font: 600 .9375rem/1.2 var(--font-body); text-decoration: none; margin-bottom: -1px; }
.tab:hover { color: var(--c-heading); }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { padding-top: var(--s-5); }
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: #e9eef6; }
.segmented button, .segmented a { border: 0; padding: .5rem 1rem; border-radius: var(--r-pill); background: transparent; color: var(--muted); font-weight: 600; font-size: .875rem; text-decoration: none; }
.segmented [aria-pressed="true"], .segmented [aria-current="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }

/* ----------------------------------------------------------- 16 pricing */
.pricing-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
/* two cards per row on tablets: an odd last card is centred, not left alone */
@media (min-width: 640px) and (max-width: 939.98px) { .pricing-grid > .price-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: 100%; max-width: calc(50% - var(--s-5) / 2); justify-self: center; } }
.price-card { position: relative; display: flex; flex-direction: column; gap: var(--s-4); padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.price-card--featured { border: 2px solid transparent; background-image: linear-gradient(#fff, #fff), var(--flow); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: var(--shadow-lg); }
.price-card__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.price-card__name { font: 600 1.25rem/1.2 var(--font-head); color: var(--ink); margin: 0; }
.price-card__desc { font-size: .875rem; color: var(--muted); margin: 0; }
.price-card__price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin: 0; }
.price-card__amount { font: 700 clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem)/1 var(--font-head); color: var(--ink); letter-spacing: -.03em; }
.price-card__currency { font: 600 1rem/1 var(--font-mono); color: var(--muted); }
.price-card__period { font-size: .9375rem; color: var(--muted); }
.price-card__features { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; font-size: .9375rem; }
.price-card__features li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text); }
.price-card__features .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--success); stroke-width: 2.4; }
.price-card__features li.is-off { color: var(--muted); }
.price-card__features li.is-off .icon { color: #a7b2c3; }
.price-card__features .mono { font-weight: 600; color: var(--ink); }
.price-card__cta { margin-top: auto; padding-top: var(--s-3); }
.price-card__cta form { margin: 0; }

/* ----------------------------------------------------- 17 FAQ accordion */
.faq { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 1.25rem 0; cursor: pointer; font: 600 1.0625rem/1.4 var(--font-body); color: var(--c-heading); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s var(--ease); }
.faq__item[open] > .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 2.75rem 1.4rem 0; color: var(--c-muted); }
.faq__a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ 18 steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; padding: 1.5rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.step__num { counter-increment: step; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: var(--s-4); font: 700 1rem/1 var(--font-mono); color: #fff; background: var(--navy-800); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__title { font: 600 1.125rem/1.3 var(--font-head); color: var(--c-heading); margin: 0 0 var(--s-2); }
.step p { color: var(--c-muted); font-size: .9375rem; margin: 0; }
@media (min-width: 1024px) {
  .steps--connected .step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -24px; width: 24px; height: 2px; background: var(--flow); opacity: .6; }
}

/* ------------------------------------------------------------ 19 stats */
.stats { display: flex; flex-wrap: wrap; gap: var(--s-5) clamp(1.5rem, 1rem + 2vw, 3rem); margin: 0; padding: 0; list-style: none; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat__value { font: 700 clamp(1.5rem, 1.25rem + .9vw, 2rem)/1.1 var(--font-head); color: var(--c-heading); letter-spacing: -.02em; }
.stat__label { font-size: .8125rem; color: var(--c-muted); font-weight: 500; }
.stats--boxed .stat { padding: 1.1rem 1.25rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); flex: 1 1 180px; }

/* --------------------------------------------------------- 20 code/kbd */
code, kbd, samp { font-family: var(--font-mono); font-size: .875em; }
:not(pre) > code { padding: .12em .4em; border-radius: 6px; background: #eef2f7; color: #0f172a; }
.theme-dark :not(pre) > code, .section--dark :not(pre) > code { background: rgba(255, 255, 255, .08); color: #e2e8f0; }
pre { margin: 0 0 var(--s-4); }
.code-block { position: relative; margin: 0 0 var(--s-4); padding: 1.1rem 1.25rem; padding-right: 4.5rem; border-radius: 14px; background: var(--navy-900); color: #e2e8f0; font: .875rem/1.65 var(--font-mono); overflow-x: auto; border: 1px solid rgba(148, 163, 184, .16); }
.code-block code { background: none; padding: 0; color: inherit; }
.copy-btn { position: absolute; top: .6rem; right: .6rem; display: inline-flex; align-items: center; gap: 6px; padding: .35rem .6rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #cbd5e1; font: 600 .75rem/1 var(--font-body); }
.copy-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.copy-btn.is-copied { color: #86efac; border-color: rgba(134, 239, 172, .4); }
kbd { display: inline-block; padding: .1em .45em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: #fff; color: var(--ink); font-size: .8125em; line-height: 1.4; }

/* ------------------------------------------------------ 21 empty states */
.empty { display: grid; justify-items: center; gap: var(--s-3); text-align: center; padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 1.5rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: rgba(255, 255, 255, .6); }
.empty .icon-tile { width: 56px; height: 56px; border-radius: 16px; }
.empty .icon-tile .icon { width: 26px; height: 26px; }
.empty__title { font: 600 1.125rem/1.3 var(--font-head); color: var(--c-heading); margin: 0; }
.empty__text { color: var(--c-muted); max-width: 46ch; margin: 0; font-size: .9375rem; }

/* ------------------------------------------------------------ 22 modal */
dialog.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--r-xl); background: #fff; color: var(--text); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(7, 13, 28, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__header { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.modal__header h2 { font-size: 1.25rem; margin: 0; }
.modal__body { padding: 1.5rem; overflow-y: auto; }
.modal__footer { display: flex; justify-content: flex-end; gap: var(--s-3); padding: 1rem 1.5rem; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ------------------------------------------------------------ 23 toast */
.toast-region { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: var(--s-2); width: min(380px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--r-md); background: var(--navy-900); color: #e2e8f0; box-shadow: var(--shadow-lg); border-left: 4px solid var(--primary); font-size: .9375rem; animation: toastIn .25s var(--ease); }
.toast--success { border-left-color: var(--success); } .toast--warning { border-left-color: var(--amber); } .toast--danger { border-left-color: var(--red); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------- 24 heroes / bands */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(3rem, 2rem + 4vw, 5.5rem)) 0 clamp(3rem, 2rem + 3vw, 4.5rem); background: radial-gradient(900px 420px at 12% -10%, #e3ecff 0%, transparent 62%), radial-gradient(700px 380px at 95% 0%, #dff7fb 0%, transparent 58%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 820px; }
.page-hero .lead { max-width: 680px; margin-bottom: 0; }
.page-hero .btn-row { margin-top: var(--s-6); }
@media (max-width: 479.98px) { .hero .btn-row .btn, .page-hero .btn-row .btn, .band-dark .btn-row .btn { width: 100%; } }
.page-hero--dark { background: radial-gradient(900px 480px at 10% -10%, rgba(37, 99, 235, .45), transparent 62%), radial-gradient(700px 420px at 100% 10%, rgba(6, 182, 212, .2), transparent 60%), var(--navy-900); border-bottom: 0; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }
.page-hero--center .eyebrow, .page-hero--center .btn-row { justify-content: center; }
.band { padding-block: var(--section-y); }
.band-dark { position: relative; overflow: hidden; border-radius: var(--r-2xl); padding: clamp(2rem, 1.2rem + 3.5vw, 4rem); background: radial-gradient(720px 340px at 12% 0%, rgba(37, 99, 235, .45), transparent 65%), radial-gradient(560px 300px at 100% 100%, rgba(249, 115, 22, .16), transparent 60%), linear-gradient(135deg, var(--navy-800), var(--navy-900)); box-shadow: 0 30px 70px rgba(7, 13, 28, .35); }
.band-dark__ribbon { position: absolute; right: -40px; top: 50%; width: min(40%, 460px); transform: translateY(-50%); opacity: .55; pointer-events: none; mask-image: linear-gradient(90deg, transparent 0 20%, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent 0 20%, #000 60%); }
.band-dark > *:not(.band-dark__ribbon) { position: relative; }
/* narrower than the text column: the ribbon stays a quiet accent at the edge
   so centred text never sits on the bright part */
@media (max-width: 1023.98px) { .band-dark__ribbon { width: min(42%, 340px); right: -110px; opacity: .3; } }
@media (max-width: 639.98px) { .band-dark__ribbon { width: 220px; right: -120px; top: auto; bottom: -30px; transform: none; opacity: .22; } }
.cta-band { text-align: center; }
.cta-band h2 { max-width: 760px; margin-inline: auto; }
.cta-band .lead { max-width: 620px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: var(--s-6); }
.hairline { height: 2px; border: 0; background: var(--flow); opacity: .7; border-radius: 2px; margin: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: var(--r-pill); background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-heading); font: 500 .875rem/1.2 var(--font-body); white-space: nowrap; }
.chip .icon { width: 16px; height: 16px; color: var(--c-eyebrow); }
a.chip { text-decoration: none; transition: border-color .15s, color .15s; }
a.chip:hover { border-color: var(--primary); color: var(--primary); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--c-text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.theme-dark .check-list li::before, .section--dark .check-list li::before, .band-dark .check-list li::before { background-color: rgba(125, 211, 252, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237dd3fc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.check-list strong { color: var(--c-heading); }
.draft-note { margin: var(--s-5) 0; padding: 1rem 1.25rem; border: 1.5px dashed #c4b5fd; border-radius: var(--r-md); background: #faf5ff; color: #5b21b6; font-size: .875rem; }
.draft-note strong { color: #4c1d95; }

/* ---------------------------------------------------- 25 window frame */
.window-frame { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--navy-800); border: 1px solid rgba(148, 163, 184, .22); box-shadow: 0 40px 80px rgba(2, 6, 23, .45), 0 0 0 1px rgba(255, 255, 255, .03) inset; }
.window-frame__bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: linear-gradient(180deg, #16223f, #111a30); border-bottom: 1px solid rgba(148, 163, 184, .16); }
.window-frame__dots { display: flex; gap: 6px; }
.window-frame__dots span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.window-frame__dots span:nth-child(1) { background: #f87171; } .window-frame__dots span:nth-child(2) { background: #fbbf24; } .window-frame__dots span:nth-child(3) { background: #34d399; }
.window-frame__title { flex: 1; text-align: center; font: 500 12px/1 var(--font-body); color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 42px; }
.window-frame img { width: 100%; }
.shot { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.shot img { width: 100%; }
.shot--crop img { max-height: 520px; object-fit: cover; object-position: top center; }
.shot--crop picture { display: block; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.shot figcaption { padding: .75rem 1rem; font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }

/* -------------------------------------------------- 26 reveal / motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal--d1 { transition-delay: .08s; } .js .reveal--d2 { transition-delay: .16s; } .js .reveal--d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------- 27 utilities */
.text-center { text-align: center; } .text-right { text-align: right; }
/* short message page (message.html), in both layouts */
.msg-card { max-width: 560px; margin-inline: auto; text-align: center; }
.msg-card > .icon-tile { margin: 0 auto 1.25rem; }
.msg-card .lead { margin-inline: auto; }
.msg-card .btn-row { justify-content: center; margin-top: 1.5rem; }
@media (max-width: 479.98px) { .msg-card .btn-row .btn { width: 100%; } }
.feature-card .card__link .icon { display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; transition: transform .15s; }
.feature-card:hover .card__link .icon { transform: translateX(2px); }
.sim-marker { flex-wrap: wrap; justify-content: center; text-align: center; column-gap: .3em; }
.nowrap { white-space: nowrap; } .w-full { width: 100%; }
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: var(--s-2); } .mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); } .mb-8 { margin-bottom: var(--s-8); }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--s-2); } .gap-4 { gap: var(--s-4); } .gap-6 { gap: var(--s-6); }
.max-w-prose { max-width: 68ch; }
.rounded { border-radius: var(--r-lg); } .shadow { box-shadow: var(--shadow-md); }
@media (max-width: 767.98px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .show-mobile { display: none !important; } }

/* ---------------------------------------------------- 28 legacy bridge
   Classes the pre-A68 templates use (account/admin/auth/checkout pages).
   Scoped to .legacy, the wrapper base.html puts around every page that
   still extends base.html. Phase 2 moves a page to _layout_*.html with
   the components above and the page loses the wrapper. */
.legacy { --legacy-gap: 1rem; }
.site-main > .legacy { width: 100%; max-width: calc(1100px + 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 4rem; }
.legacy h1 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); margin: 0 0 1.25rem; }
.legacy h2 { font-size: 1.25rem; margin: 1.75rem 0 .75rem; }
.legacy h3 { font-size: 1.0625rem; margin: 1.25rem 0 .5rem; }
.legacy .cards { display: grid; gap: var(--legacy-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0 0 1rem; }
.legacy .card { padding: 1.25rem; box-shadow: var(--shadow-xs); }
.legacy .card h2 { margin-top: 0; }
.legacy section.card { margin: 1rem 0; }
.legacy .price { font: 700 1.5rem/1.2 var(--font-head); color: var(--ink); margin: .25rem 0 .75rem; }
.legacy ul.feat { padding-left: 1.1rem; margin: .5rem 0 1rem; }
.legacy ul.feat li.no { color: var(--muted); text-decoration: line-through; }
.legacy table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: .5rem 0 1.25rem; font-size: .875rem; overflow: hidden; }
.legacy th, .legacy td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.legacy tr:last-child td { border-bottom: 0; }
.legacy th { background: var(--surface-2); font: 600 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.legacy td.num, .legacy th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.legacy .wrap { overflow-x: auto; }
@media (max-width: 767.98px) { .legacy table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .legacy .wrap table { display: table; } }
.legacy .wrap table { min-width: 640px; }
.legacy form.inline { display: inline; margin: 0; }
.legacy form.stack label { display: block; margin: .75rem 0 .3rem; font-weight: 600; font-size: .875rem; color: var(--ink); }
.legacy input[type=text], .legacy input[type=email], .legacy input[type=password], .legacy input[type=number], .legacy input[type=date], .legacy input[type=url], .legacy select, .legacy textarea {
  max-width: 100%; min-height: 40px; padding: .5rem .7rem; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink);
}
.legacy form.stack input[type=text], .legacy form.stack input[type=email], .legacy form.stack input[type=password], .legacy form.stack input[type=number], .legacy form.stack select { width: 100%; max-width: 440px; }
.legacy input:focus, .legacy select:focus, .legacy textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); outline: none; }
.legacy td input[type=text], .legacy td input[type=number], .legacy td select { width: 100%; min-width: 60px; min-height: 34px; padding: .3rem .45rem; border-radius: 7px; }
.legacy textarea { width: 100%; }
.legacy .grid2 { display: grid; gap: .25rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.legacy .check { display: flex; align-items: center; gap: .5rem; margin: .4rem 0; font-size: .9375rem; }
.legacy .check input { margin: 0; }
.legacy button, .legacy a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 38px; padding: .5rem 1rem; border: 1px solid transparent; border-radius: 10px;
  background: var(--primary); color: #fff; font: 600 .875rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.legacy button:hover, .legacy a.button:hover { background: var(--primary-hover); color: #fff; }
.legacy a.button { margin: 0 6px 6px 0; }
.legacy button.secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.legacy button.secondary:hover { background: var(--surface-2); border-color: #94a3b8; }
.legacy button.danger { background: #dc2626; } .legacy button.danger:hover { background: #b91c1c; }
.legacy button.link { background: none; color: var(--primary); padding: 0; min-height: 0; border: 0; }
.legacy button[disabled] { opacity: .45; cursor: not-allowed; }
.legacy .muted { color: var(--muted); }
.legacy .ok { color: var(--ok-fg); } .legacy .bad { color: var(--bad-fg); } .legacy .warn { color: var(--warn-fg); }
.legacy .note { margin: .75rem 0; padding: .7rem 1rem; border: 1px solid var(--warn-line); border-radius: 10px; background: var(--warn-bg); color: #78350f; }
.legacy .error { margin: .75rem 0; padding: .7rem 1rem; border: 1px solid var(--bad-line); border-radius: 10px; background: var(--bad-bg); color: var(--bad-fg); }
.legacy .meter { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.legacy .tag { display: inline-block; padding: 0 .55rem; border-radius: var(--r-pill); border: 1px solid #c9b3e6; background: #f5effc; color: #6b3fa0; font: 600 var(--fs-xs)/1.6 var(--font-body); vertical-align: middle; }
.legacy .bar { height: 6px; min-width: 60px; margin: 3px 0 2px; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
.legacy .bar span { display: block; height: 100%; background: var(--primary); }
.legacy details > summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.legacy td details form.stack { margin-top: .5rem; }
.legacy fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem; }
.legacy code { font-family: var(--font-mono); }

/* Account identity shared by public, account and admin navigation. */
[data-profile-actions] { display: flex; align-items: center; gap: 8px; }
.profile-menu { position: relative; color: #17233b; font-family: var(--font-body); text-align: left; }
.profile-menu__trigger { display: flex; align-items: center; gap: 10px; padding: 5px 9px 5px 5px; border: 1px solid #dbe3f0; border-radius: 999px; background: #fff; color: #17233b; cursor: pointer; list-style: none; box-shadow: 0 3px 12px #18345508; }
.profile-menu__trigger::-webkit-details-marker { display: none; }
.profile-menu__trigger:focus-visible { outline: 3px solid #65a5ff; outline-offset: 3px; }
.profile-menu__trigger > .icon { width: 15px; height: 15px; color: #6a7b96; }
.profile-menu__avatar { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#2c5df1,#147f9f); font-weight: 700; }
.profile-menu__identity { display: grid; gap: 1px; max-width: 130px; line-height: 1.3; }
.profile-menu__identity strong { font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-menu__identity small { font-size: 10px; color: #687995; }
.profile-menu__panel { position: absolute; z-index: 100; top: calc(100% + 12px); right: 0; width: min(320px,calc(100vw - 32px)); border: 1px solid #dce5f3; border-radius: 20px; background: #fff; box-shadow: 0 22px 64px #152d5329,0 4px 12px #152d530a; overflow: hidden; }
.profile-menu__heading { display: grid; gap: 5px; padding: 22px 22px 18px; background: linear-gradient(125deg,#edf4ff,#f5fbfc); overflow-wrap: anywhere; }
.profile-menu__eyebrow { font-size: 9px; letter-spacing: .14em; font-weight: 700; color: #346bb9; }
.profile-menu__heading strong { font: 700 19px/1.3 var(--font-head); }
.profile-menu__heading > span:not(.profile-menu__eyebrow):not(.profile-menu__badge) { font-size: 12px; color: #64748b; }
.profile-menu__badge { justify-self: start; margin-top: 5px; border: 1px solid #ccdcef; border-radius: 999px; padding: 3px 9px; background: #ffffffc9; font-size: 10px; color: #315786; }
.profile-menu__panel nav { display: grid; gap: 3px; padding: 10px; }
.profile-menu__panel a, .profile-menu__panel form button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #263a58; font-size: 13px; font-weight: 500; text-decoration: none; }
.profile-menu__panel .icon { width: 18px; height: 18px; color: #6886ac; flex: 0 0 18px; }
.profile-menu__panel a:hover, .profile-menu__panel a:focus-visible { background: #eef4ff; color: #245de4; }
.profile-menu__panel .profile-menu__admin { background: #f4f7fc; }
.profile-menu__panel form { margin: 0; padding: 6px 10px 10px; border-top: 1px solid #e8edf5; }
.profile-menu__panel form button { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
.profile-menu__panel form button:hover { background: #fff1f1; color: #a43636; }
@media (max-width: 1199px) {
  .site-header .profile-menu { width: 100%; }
  .site-header .profile-menu__trigger { width: fit-content; }
  .site-header .profile-menu__panel { position: static; margin-top: 12px; width: 100%; box-shadow: 0 8px 24px #152d5310; }
  .site-header [data-profile-actions] { width: 100%; }
}
@media (max-width: 600px) {
  .app-topbar .profile-menu__identity { display: none; }
  .app-topbar .profile-menu__trigger { gap: 4px; }
}
