/*
 * ZenoCookieConsent website styles.
 * Consumes the semantic tokens from tokens.css (copy of brand/tokens.css).
 * Light by default; dark via prefers-color-scheme or <html data-theme="dark">.
 * Visual language shared with ZenoTunnel (brand/styleguide.md).
 */

/* ---------- Site-level tokens ---------- */
:root {
  --s-header-h: 64px;
  --s-section: var(--zt-space-9);
  --s-hero-glow: radial-gradient(60rem 28rem at 50% -6rem, rgba(47, 107, 239, 0.10), transparent 70%);
  --s-ring: var(--zt-blue-100);
  --s-header-bg: rgba(255, 255, 255, 0.82);
  --s-window: var(--zt-white);
  --s-window-bar: var(--zt-snow);
  --s-window-side: var(--zt-snow);
  --s-skeleton: var(--zt-mist);
  --s-bar: var(--zt-blue-600);
  --s-bar-soft: var(--zt-blue-200);
  --s-toggle-off: #B7C2D6;
  --s-banner-bg: var(--zt-white);
  --s-band: var(--zt-blue-950);
  --s-chip: var(--zt-mist);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --s-hero-glow: radial-gradient(60rem 28rem at 50% -6rem, rgba(90, 143, 246, 0.16), transparent 70%);
    --s-ring: #1E3263;
    --s-header-bg: rgba(10, 18, 38, 0.80);
    --s-window: var(--zt-night-2);
    --s-window-bar: #0D1730;
    --s-window-side: #0D1730;
    --s-skeleton: var(--zt-night-3);
    --s-bar: var(--zt-blue-400);
    --s-bar-soft: #2A3A60;
    --s-toggle-off: #34497A;
    --s-banner-bg: #111C36;
    --s-band: #060C1C;
    --s-chip: var(--zt-night-3);
  }
}
:root[data-theme="dark"] {
  --s-hero-glow: radial-gradient(60rem 28rem at 50% -6rem, rgba(90, 143, 246, 0.16), transparent 70%);
  --s-ring: #1E3263;
  --s-header-bg: rgba(10, 18, 38, 0.80);
  --s-window: var(--zt-night-2);
  --s-window-bar: #0D1730;
  --s-window-side: #0D1730;
  --s-skeleton: var(--zt-night-3);
  --s-bar: var(--zt-blue-400);
  --s-bar-soft: #2A3A60;
  --s-toggle-off: #34497A;
  --s-banner-bg: #111C36;
  --s-band: #060C1C;
  --s-chip: var(--zt-night-3);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--s-header-h) + 16px); }
body {
  margin: 0;
  background: var(--zt-bg);
  color: var(--zt-text);
  font-family: var(--zt-font-text);
  font-size: var(--zt-text-base);
  line-height: var(--zt-leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
svg { display: block; }
h1, h2, h3, h4 {
  font-family: var(--zt-font-display);
  color: var(--zt-text);
  margin: 0;
  line-height: var(--zt-leading-snug);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, var(--zt-text-5xl)); font-weight: 800; line-height: 1.1; letter-spacing: var(--zt-tracking-display); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: var(--zt-text-xl); font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--zt-text-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, pre { font-family: var(--zt-font-mono); }
:not(pre) > code {
  background: var(--zt-inline-code-bg);
  border-radius: var(--zt-radius-sm);
  padding: 0.1em 0.38em;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
strong { font-weight: 600; }
::selection { background: var(--zt-blue-200); color: var(--zt-ink-900); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--zt-primary); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, summary:focus-visible, .icon-btn:focus-visible { outline: none; box-shadow: var(--zt-focus-ring); }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  background: var(--zt-primary); color: var(--zt-on-primary);
  padding: 10px 16px; border-radius: var(--zt-radius-md); font-weight: 600; text-decoration: none;
  transition: top var(--zt-duration) var(--zt-ease);
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--zt-container) + 2 * var(--zt-space-5)); margin: 0 auto; padding: 0 var(--zt-space-5); }
.container-narrow { max-width: calc(48rem + 2 * var(--zt-space-5)); }
.section { padding: var(--s-section) 0; }
.section-subtle { background: var(--zt-bg-subtle); border-top: 1px solid var(--zt-border); border-bottom: 1px solid var(--zt-border); }
.section-head { max-width: 46rem; margin-bottom: var(--zt-space-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: var(--zt-space-4); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--zt-text-xs); font-weight: 600;
  letter-spacing: var(--zt-tracking-eyebrow); text-transform: uppercase;
  color: var(--zt-primary);
  margin-bottom: var(--zt-space-4);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--zt-accent); }
.lead { font-size: var(--zt-text-lg); color: var(--zt-text-secondary); line-height: 1.65; }
.muted { color: var(--zt-text-secondary); }
.small { font-size: var(--zt-text-sm); }
.mt-4 { margin-top: var(--zt-space-4); } .mt-5 { margin-top: var(--zt-space-5); } .mt-6 { margin-top: var(--zt-space-6); } .mt-7 { margin-top: var(--zt-space-7); }

.grid { display: grid; gap: var(--zt-space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--zt-space-8); align-items: center; }
.split.even { grid-template-columns: 1fr 1fr; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.even { grid-template-columns: 1fr; gap: var(--zt-space-6); } .split.flip > :first-child { order: 0; } }
.split > *, .grid > * { min-width: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--s-header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--zt-duration) var(--zt-ease);
}
.site-header.scrolled { border-bottom-color: var(--zt-border); }
.site-header .container { display: flex; align-items: center; height: var(--s-header-h); gap: var(--zt-space-5); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--zt-text); flex: none; border-radius: 8px; }
.brand svg { width: 32px; height: 32px; }
.brand-word { font-family: var(--zt-font-display); font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1; }
.brand-word b { font-weight: 800; }
.brand-word span { font-weight: 500; color: var(--zt-primary); }
.logo-cookie { stroke: var(--zt-blue-600); }
.logo-check { stroke: var(--zt-blue-950); }
:root[data-theme="dark"] .logo-cookie { stroke: var(--zt-blue-400); }
:root[data-theme="dark"] .logo-check { stroke: #E8EEF9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-cookie { stroke: var(--zt-blue-400); }
  :root:not([data-theme="light"]) .logo-check { stroke: #E8EEF9; }
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: var(--zt-space-4); }
.nav a {
  color: var(--zt-text-secondary); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap;
  transition: color var(--zt-duration-fast) var(--zt-ease), background var(--zt-duration-fast) var(--zt-ease);
}
.nav a:hover { color: var(--zt-text); background: var(--zt-bg-muted); }
.nav a[aria-current="page"] { color: var(--zt-text); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--zt-primary); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; flex: none;
  border-radius: var(--zt-radius-md); border: 1px solid var(--zt-border);
  background: transparent; color: var(--zt-text-secondary); cursor: pointer;
  transition: color var(--zt-duration-fast) var(--zt-ease), background var(--zt-duration-fast) var(--zt-ease);
}
.icon-btn:hover { color: var(--zt-text); background: var(--zt-bg-muted); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.menu-open .menu-toggle .i-close { display: block; }
.menu-open .menu-toggle .i-menu { display: none; }
.mobile-nav { display: none; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--s-header-h) 0 0 0; z-index: 49;
    background: var(--zt-bg); padding: var(--zt-space-5) var(--zt-space-5) var(--zt-space-7);
    overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--zt-duration) var(--zt-ease), transform var(--zt-duration) var(--zt-ease), visibility 0s linear var(--zt-duration);
  }
  .menu-open .mobile-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .mobile-nav a.m-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 4px; border-bottom: 1px solid var(--zt-border);
    font-family: var(--zt-font-display); font-weight: 700; font-size: 1.25rem; color: var(--zt-text); text-decoration: none;
  }
  .mobile-nav a.m-link::after { content: "→"; color: var(--zt-text-secondary); font-weight: 500; }
  .mobile-nav .m-actions { display: grid; gap: 12px; margin-top: var(--zt-space-6); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .header-actions .btn-primary { display: none; }
  .brand-word { font-size: 1.08rem; }
  .site-header .container { gap: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px;
  border-radius: var(--zt-radius-md);
  font-family: var(--zt-font-text); font-weight: 600; font-size: 0.9375rem; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--zt-duration-fast) var(--zt-ease), border-color var(--zt-duration-fast) var(--zt-ease), color var(--zt-duration-fast) var(--zt-ease), transform var(--zt-duration-fast) var(--zt-ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 1rem; }
.btn-primary { background: var(--zt-primary); color: var(--zt-on-primary); box-shadow: 0 1px 2px rgba(11, 21, 48, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn-primary:hover { background: var(--zt-primary-hover); }
.btn-secondary { background: var(--zt-surface); color: var(--zt-text); border-color: var(--zt-border-strong); }
.btn-secondary:hover { background: var(--zt-bg-subtle); border-color: var(--zt-text-secondary); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform var(--zt-duration) var(--zt-ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.center { justify-content: center; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges.center { justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px; border-radius: var(--zt-radius-pill);
  font-size: var(--zt-text-xs); font-weight: 600; line-height: 1; white-space: nowrap;
  background: var(--zt-primary-soft); color: var(--zt-on-primary-soft);
}
.badge svg { width: 14px; height: 14px; flex: none; }
.badge-neutral { background: var(--s-chip); color: var(--zt-text-secondary); }
.badge-free { background: rgba(25, 195, 230, 0.13); color: var(--zt-accent-text); }
.badge-free::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--zt-cyan-500); }
.badge-ok { background: var(--zt-success-soft); color: var(--zt-success); }
.badge-warn { background: var(--zt-warning-soft); color: var(--zt-warning); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--zt-space-9) 0 var(--zt-space-8); background: var(--s-hero-glow); }
.hero-rings {
  position: absolute; left: 50%; top: -260px; width: 1400px; height: 1000px; transform: translateX(-50%);
  pointer-events: none; color: var(--s-ring); opacity: 0.6;
  -webkit-mask-image: radial-gradient(closest-side at 50% 40%, #000 25%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 40%, #000 25%, transparent 100%);
}
.hero-inner { position: relative; text-align: center; max-width: 60rem; margin: 0 auto; }
.hero h1 { font-size: var(--zt-text-display); line-height: 1.04; letter-spacing: -0.035em; margin-top: var(--zt-space-5); }
.hero h1 .accent { color: var(--zt-primary); }
.hero .lead { max-width: 42rem; margin: var(--zt-space-5) auto 0; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.hero .btn-row { justify-content: center; margin-top: var(--zt-space-6); }
.trust-line {
  margin-top: var(--zt-space-5);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  font-size: var(--zt-text-sm); color: var(--zt-text-secondary);
}
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line svg { width: 16px; height: 16px; color: var(--zt-primary); }

.page-hero { position: relative; overflow: hidden; padding: var(--zt-space-9) 0 var(--zt-space-8); background: var(--s-hero-glow); border-bottom: 1px solid var(--zt-border); }
.page-hero .hero-rings { opacity: 0.45; }
.page-hero .inner { position: relative; max-width: 50rem; }
.page-hero.center .inner { margin: 0 auto; text-align: center; }
.page-hero .lead { margin-top: var(--zt-space-5); }
.page-hero .btn-row { margin-top: var(--zt-space-6); }
.page-hero.center .btn-row, .page-hero.center .badges { justify-content: center; }
.page-hero .badges { margin-bottom: var(--zt-space-5); }

/* ---------- Strip ---------- */
.strip { background: var(--s-band); color: #FFFFFF; }
:root[data-theme="dark"] .strip { border-top: 1px solid var(--zt-border); border-bottom: 1px solid var(--zt-border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .strip { border-top: 1px solid var(--zt-border); border-bottom: 1px solid var(--zt-border); } }
.strip .container { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; text-align: center; flex-wrap: wrap; }
.strip p { font-family: var(--zt-font-display); font-weight: 700; font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem); letter-spacing: -0.01em; }
.strip p span { color: #8EB5FB; }
.strip .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(142, 181, 251, 0.12); color: #8EB5FB; flex: none; }
.strip .ico svg { width: 22px; height: 22px; }

/* ---------- Cards ---------- */
.card {
  background: var(--zt-surface);
  border: 1px solid var(--zt-border);
  border-radius: var(--zt-radius-lg);
  padding: var(--zt-space-6);
  transition: box-shadow var(--zt-duration) var(--zt-ease), border-color var(--zt-duration) var(--zt-ease);
}
.card-hover:hover { box-shadow: var(--zt-shadow-md); border-color: var(--zt-blue-200); }
:root[data-theme="dark"] .card-hover:hover { border-color: #2A3A60; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-hover:hover { border-color: #2A3A60; } }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--zt-text-secondary); }
.icon-tile {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--zt-primary-soft); color: var(--zt-primary); margin-bottom: var(--zt-space-5);
}
.icon-tile svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.0625rem; }
.feature-card p { font-size: 0.9375rem; }
@media (max-width: 680px) {
  .feature-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .feature-card .icon-tile { margin: 0; grid-row: span 2; }
  .feature-card h3 { margin: 2px 0 4px; }
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
a.card h3::after { content: "→"; color: var(--zt-text-secondary); font-weight: 500; transition: transform var(--zt-duration) var(--zt-ease), color var(--zt-duration) var(--zt-ease); }
a.card:hover h3::after { transform: translateX(3px); color: var(--zt-primary); }

/* Big "why" cards */
.why-card { padding: var(--zt-space-6); }
.why-card .num { font-family: var(--zt-font-display); font-weight: 800; font-size: 2.25rem; letter-spacing: -0.03em; line-height: 1; color: var(--zt-primary); margin-bottom: var(--zt-space-4); }
.why-card h3 { font-size: 1.25rem; }

/* ---------- Steps ---------- */
.step { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-family: var(--zt-font-display); font-weight: 800; font-size: 0.9375rem;
  background: var(--zt-primary); color: var(--zt-on-primary);
  box-shadow: 0 0 0 6px var(--zt-primary-soft);
  margin-bottom: var(--zt-space-4);
}
.step h3 { font-size: 1.125rem; margin-bottom: 6px; }
.step p { color: var(--zt-text-secondary); font-size: 0.9375rem; }
.step-list { display: grid; gap: var(--zt-space-6); }
.step-list .step { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 18px; }
.step-list .step-num { margin: 0; grid-row: span 2; }
.step-list .step h3 { margin-top: 4px; }

/* ---------- Code block ---------- */
.code {
  background: var(--zt-code-bg);
  color: var(--zt-code-text);
  border-radius: var(--zt-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(142, 181, 251, 0.14);
  box-shadow: var(--zt-shadow-lg);
}
.code-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; min-height: 48px;
  border-bottom: 1px solid rgba(142, 181, 251, 0.12);
  font-family: var(--zt-font-mono); font-size: 0.8125rem; color: var(--zt-ink-300);
}
.code-head .dots { display: flex; gap: 6px; flex: none; }
.code-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(163, 177, 204, 0.25); display: block; }
.code-head .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-tabs { display: flex; gap: 4px; margin-left: 4px; overflow-x: auto; }
.code-tab { background: none; border: 0; color: var(--zt-ink-300); font: inherit; cursor: pointer; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.code-tab[aria-selected="true"] { background: rgba(142, 181, 251, 0.14); color: #FFFFFF; }
.code-tab:focus-visible, .copy-btn:focus-visible { outline: 2px solid #8EB5FB; }
.copy-btn {
  margin-left: auto; flex: none; background: rgba(142, 181, 251, 0.10); color: #DCE8FE; border: 1px solid rgba(142, 181, 251, 0.18);
  border-radius: 6px; font: 600 0.75rem var(--zt-font-text); padding: 6px 10px; cursor: pointer; min-height: 30px;
}
.copy-btn:hover { background: rgba(142, 181, 251, 0.18); }
.copy-btn[hidden] { display: none; }
.code pre { font-variant-ligatures: none; margin: 0; padding: 20px 22px; overflow-x: auto; font-size: 0.8125rem; line-height: 1.75; tab-size: 2; }
@media (min-width: 700px) { .code pre { font-size: 0.875rem; } }
.code .c { color: var(--zt-code-comment); }
.code .k { color: var(--zt-code-keyword); }
.code .s { color: var(--zt-code-string); }
.code .n { color: var(--zt-code-number); }
.code .p { color: #5A8FF6; user-select: none; }
.code .ok { color: #4ADE80; }
.code-panel[hidden] { display: none; }
.code-note { font-size: var(--zt-text-sm); color: var(--zt-text-secondary); margin-top: 12px; }

/* ---------- Tables ---------- */
.table-wrap { border: 1px solid var(--zt-border); border-radius: var(--zt-radius-lg); overflow-x: auto; background: var(--zt-surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
caption { text-align: left; padding: 14px 18px; font-size: var(--zt-text-sm); color: var(--zt-text-secondary); caption-side: bottom; border-top: 1px solid var(--zt-border); }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--zt-border); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--zt-font-display); font-size: 0.9375rem; font-weight: 700; background: var(--zt-bg-subtle); }
tbody th { font-weight: 600; color: var(--zt-text); }
td { color: var(--zt-text-secondary); }
td.hl, th.hl { background: var(--zt-primary-soft); }
thead th.hl { color: var(--zt-on-primary-soft); }
td.hl { color: var(--zt-text); font-weight: 500; }
.yes, .no, .part { display: inline-flex; align-items: flex-start; gap: 8px; }
.yes svg, .no svg, .part svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.yes svg { color: var(--zt-success); }
.no svg { color: var(--zt-text-secondary); }
.part svg { color: var(--zt-warning); }
.cmp-table { min-width: 640px; table-layout: fixed; }
.cmp-table th:first-child { width: 26%; }
@media (max-width: 700px) { th, td { padding: 12px 14px; } }

/* Stacking table for phones */
@media (max-width: 700px) {
  .stack-table { min-width: 0; table-layout: auto; }
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table th, .stack-table td { display: block; width: 100% !important; }
  .stack-table tr { padding: 14px 16px; border-bottom: 1px solid var(--zt-border); }
  .stack-table tbody tr:last-child { border-bottom: 0; }
  .stack-table th, .stack-table td { padding: 4px 0; border: 0; background: none; }
  .stack-table td::before { content: attr(data-label); display: block; font-size: var(--zt-text-xs); text-transform: uppercase; letter-spacing: var(--zt-tracking-eyebrow); color: var(--zt-text-secondary); font-weight: 600; margin-top: 8px; margin-bottom: 2px; }
  .stack-table td.hl { background: none; }
}

/* ---------- Lists ---------- */
.tick-list { list-style: none; margin: var(--zt-space-5) 0 0; padding: 0; display: grid; gap: 14px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--zt-text-secondary); }
.tick-list li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--zt-primary); }
.tick-list li strong { color: var(--zt-text); }

/* ---------- Compliance pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--zt-border); border-radius: var(--zt-radius-xl); overflow: hidden; background: var(--zt-border); gap: 1px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--zt-surface); padding: var(--zt-space-6); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 18px; align-content: start; }
.pillar .icon-tile { margin: 0; grid-row: span 3; }
.pillar h3 { font-size: 1.125rem; margin-top: 2px; }
.pillar p { color: var(--zt-text-secondary); font-size: 0.9375rem; margin-top: 4px; }
.pillar .law { font-size: var(--zt-text-xs); font-weight: 600; color: var(--zt-text-secondary); margin-top: 10px; letter-spacing: 0.02em; }
.pillar .law span { display: inline-block; background: var(--s-chip); border-radius: 6px; padding: 2px 8px; margin: 2px 4px 2px 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--zt-border); border-radius: var(--zt-radius-lg); background: var(--zt-surface); }
.faq details[open] { border-color: var(--zt-border-strong); box-shadow: var(--zt-shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; border-radius: var(--zt-radius-lg);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--zt-font-display); font-weight: 700; font-size: 1.0625rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--zt-bg-muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A8FF6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform var(--zt-duration) var(--zt-ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--zt-text-secondary); max-width: 46rem; }
.faq .answer p + p { margin-top: 10px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--zt-space-8); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: var(--zt-space-6); } }
.faq-layout > * { min-width: 0; }

/* ---------- Callouts ---------- */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--zt-radius-lg);
  background: var(--zt-info-soft); color: var(--zt-text); font-size: 0.9375rem;
}
.callout svg { width: 20px; height: 20px; flex: none; color: var(--zt-info); margin-top: 2px; }
.callout.warn { background: var(--zt-warning-soft); }
.callout.warn svg { color: var(--zt-warning); }
.callout p { color: var(--zt-text-secondary); }
.callout strong { color: var(--zt-text); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--zt-radius-xl); border: 1px solid var(--zt-border);
  background: var(--s-hero-glow), var(--zt-bg-subtle);
  padding: clamp(40px, 7vw, 88px) var(--zt-space-5);
}
.cta .hero-rings { top: -300px; opacity: 0.55; }
.cta > :not(.hero-rings) { position: relative; }
.cta h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.cta p { max-width: 36rem; margin: var(--zt-space-4) auto 0; color: var(--zt-text-secondary); font-size: 1.125rem; }
.cta .btn-row { justify-content: center; margin-top: var(--zt-space-6); }

/* ---------- Prose / legal ---------- */
.prose { max-width: var(--zt-container-text); }
.prose p, .prose li { color: var(--zt-text-secondary); font-size: 1.0625rem; line-height: 1.75; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-size: var(--zt-text-2xl); margin: 2em 0 0.6em; }
.prose h3 { margin: 1.6em 0 0.4em; font-size: 1.125rem; }
.prose ul { padding-left: 1.25rem; margin: 0.8em 0 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--zt-text); }
.prose address { font-style: normal; color: var(--zt-text-secondary); line-height: 1.8; }
.ph {
  font-family: var(--zt-font-mono); font-size: 0.85em; font-weight: 500;
  background: var(--zt-warning-soft); color: var(--zt-warning);
  border: 1px dashed currentColor; padding: 1px 6px; border-radius: 6px; white-space: normal;
}
.draft-banner { background: var(--zt-warning-soft); color: var(--zt-text); border-bottom: 1px solid var(--zt-border); padding: 12px 0; font-size: 0.9375rem; text-align: center; }
.draft-banner strong { color: var(--zt-warning); }
.toc { position: sticky; top: calc(var(--s-header-h) + 32px); font-size: 0.9375rem; }
.toc h2 { font-family: var(--zt-font-text); font-size: var(--zt-text-xs); text-transform: uppercase; letter-spacing: var(--zt-tracking-eyebrow); color: var(--zt-text-secondary); font-weight: 600; margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--zt-border); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--zt-text-secondary); text-decoration: none; }
.toc a:hover { color: var(--zt-text); border-left-color: var(--zt-primary); }
.doc-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: var(--zt-space-8); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .doc-layout .toc-col { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--zt-border); background: var(--zt-bg-subtle); padding: var(--zt-space-8) 0 var(--zt-space-6); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--zt-space-6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--zt-text-secondary); margin-top: var(--zt-space-4); max-width: 22rem; }
.footer-brand p strong { color: var(--zt-text); font-family: var(--zt-font-display); }
.footer-col h2 { font-family: var(--zt-font-text); font-size: var(--zt-text-xs); text-transform: uppercase; letter-spacing: var(--zt-tracking-eyebrow); color: var(--zt-text-secondary); font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a, .footer-col button.linklike { color: var(--zt-text); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-col a:hover, .footer-col button.linklike:hover { color: var(--zt-primary); text-decoration: underline; }
button.linklike { background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: var(--zt-space-7); padding-top: var(--zt-space-5); border-top: 1px solid var(--zt-border); color: var(--zt-text-secondary); font-size: var(--zt-text-sm); }
.footer-bottom a { color: inherit; }
.no-tracking { display: inline-flex; align-items: center; gap: 8px; }
.no-tracking svg { width: 16px; height: 16px; color: var(--zt-success); }

/* =====================================================================
 * Product mockups (pure HTML/CSS illustrations, aria-hidden or labelled)
 * ===================================================================== */

/* Browser window frame */
.window {
  position: relative;
  background: var(--s-window);
  border: 1px solid var(--zt-border);
  border-radius: var(--zt-radius-lg);
  box-shadow: var(--zt-shadow-lg);
  overflow: hidden;
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
  color: var(--zt-text);
}
.window-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--s-window-bar); border-bottom: 1px solid var(--zt-border); }
.window-bar .dots { display: flex; gap: 6px; flex: none; }
.window-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--zt-border-strong); display: block; }
.window-url {
  flex: 1; max-width: 460px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--s-window); border: 1px solid var(--zt-border); border-radius: 8px; height: 26px; padding: 0 10px;
  font-size: 12px; color: var(--zt-text-secondary); overflow: hidden; white-space: nowrap;
}
.window-url svg { width: 12px; height: 12px; flex: none; color: var(--zt-success); }
.window-url span { overflow: hidden; text-overflow: ellipsis; }
.window-bar .spacer { width: 46px; flex: none; }

/* Hero composition */
.hero-visual { position: relative; max-width: 68rem; margin: var(--zt-space-8) auto 0; padding-bottom: 88px; }
.hero-visual .window { z-index: 1; }
.hero-visual .float-banner { position: absolute; z-index: 2; right: -36px; bottom: 0; width: 360px; }
.hero-visual .float-widget { position: absolute; z-index: 2; left: -20px; bottom: 112px; }
@media (max-width: 1180px) { .hero-visual .float-banner { right: 12px; } .hero-visual .float-widget { left: 12px; } }
@media (max-width: 760px) {
  .hero-visual { padding-bottom: 0; }
  .hero-visual .float-banner { position: relative; right: auto; bottom: auto; width: auto; margin: 20px 0 0; text-align: center; }
  .dash-row .panel + .panel { display: none; }
  .hero-visual .float-widget { display: none; }
}
.float-label {
  display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zt-text-secondary);
}
.float-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--zt-accent); }

/* Dashboard */
.dash { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 460px; }
.dash-side { background: var(--s-window-side); border-right: 1px solid var(--zt-border); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.dash-org { display: flex; align-items: center; gap: 9px; padding: 6px 8px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--zt-border); }
.dash-org svg { width: 26px; height: 26px; flex: none; }
.dash-org b { display: block; font-family: var(--zt-font-display); font-size: 13px; font-weight: 700; }
.dash-org small { display: block; font-size: 11px; color: var(--zt-text-secondary); }
.dash-nav { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; color: var(--zt-text-secondary); font-weight: 500; }
.dash-nav svg { width: 16px; height: 16px; flex: none; }
.dash-nav.active { background: var(--zt-primary-soft); color: var(--zt-on-primary-soft); font-weight: 600; }
.dash-nav .count { margin-left: auto; font-size: 11px; background: var(--s-chip); border-radius: 99px; padding: 0 7px; }
.dash-side .sep { font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zt-text-secondary); padding: 14px 9px 6px; }
.dash-main { padding: 18px 20px 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.dash-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-head h4 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.dash-head .crumb { font-size: 11.5px; color: var(--zt-text-secondary); width: 100%; margin-bottom: -6px; }
.dash-head .live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--zt-success-soft); color: var(--zt-success); }
.dash-head .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dash-head .actions { margin-left: auto; display: flex; gap: 8px; }
.mini-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 7px; font-size: 12px; font-weight: 600; border: 1px solid var(--zt-border-strong); color: var(--zt-text); background: var(--s-window); white-space: nowrap; }
.mini-btn.primary { background: var(--zt-primary); border-color: var(--zt-primary); color: var(--zt-on-primary); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--zt-border); border-radius: 10px; padding: 10px 12px; background: var(--s-window); }
.kpi .l { font-size: 11px; color: var(--zt-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font-family: var(--zt-font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 11px; color: var(--zt-text-secondary); }
.kpi .d.up { color: var(--zt-success); }
.dash-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; }
.panel { border: 1px solid var(--zt-border); border-radius: 10px; padding: 12px 14px; background: var(--s-window); min-width: 0; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; font-size: 12.5px; margin-bottom: 10px; }
.panel-title small { font-weight: 500; font-size: 11px; color: var(--zt-text-secondary); }
.chart { width: 100%; height: 120px; }
.chart .grid-line { stroke: var(--zt-border); stroke-width: 1; }
.chart .bar { fill: var(--s-bar); }
.chart .bar.soft { fill: var(--s-bar-soft); }
.chart text { fill: var(--zt-text-secondary); font-size: 9px; font-family: var(--zt-font-text); }
.meters { display: grid; gap: 11px; }
.meter .row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.meter .row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter .track { height: 6px; border-radius: 99px; background: var(--s-chip); overflow: hidden; }
.meter .fill { display: block; height: 100%; border-radius: 99px; background: var(--s-bar); }
.meter .note { font-size: 10.5px; color: var(--zt-text-secondary); margin-top: 3px; }
.receipts { width: 100%; border-collapse: collapse; font-size: 12px; }
.receipts th, .receipts td { padding: 7px 8px; border-bottom: 1px solid var(--zt-border); text-align: left; vertical-align: middle; white-space: nowrap; color: var(--zt-text); background: none; }
.receipts th { font-family: var(--zt-font-text); font-weight: 600; font-size: 11px; color: var(--zt-text-secondary); }
.receipts tr:last-child td { border-bottom: 0; }
.receipts .mono { font-family: var(--zt-font-mono); font-size: 11px; color: var(--zt-text-secondary); }
.act { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--s-chip); color: var(--zt-text-secondary); }
.act.accept { background: var(--zt-primary-soft); color: var(--zt-on-primary-soft); }
.act.reject { background: var(--s-chip); color: var(--zt-text); }
.act.custom { background: rgba(25, 195, 230, 0.13); color: var(--zt-accent-text); }
.cats { display: inline-flex; gap: 4px; }
.cats i { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font-style: normal; font-size: 9.5px; font-weight: 700; background: var(--s-chip); color: var(--zt-text-secondary); }
.cats i.on { background: var(--zt-primary); color: var(--zt-on-primary); }
@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { display: none; }
  .dash-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .receipts .hide-sm { display: none; }
  .dash-head .actions .mini-btn:not(.primary) { display: none; }
  .dash-main { padding: 14px; }
  .window-bar .spacer { display: none; }
}

/* Cookie banner mockup (mirrors packages/banner: equal Accept/Reject buttons) */
.cb {
  background: var(--s-banner-bg);
  border: 1px solid var(--zt-border);
  border-radius: 14px;
  box-shadow: var(--zt-shadow-lg);
  padding: 20px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--zt-text);
}
.cb-title { display: flex; align-items: center; gap: 10px; font-family: var(--zt-font-display); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.cb-title svg { width: 22px; height: 22px; color: var(--zt-primary); flex: none; }
.cb p { color: var(--zt-text-secondary); margin-bottom: 14px; }
.cb p u { color: var(--zt-text); text-underline-offset: 2px; }
.cb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cb-btn {
  flex: 1 1 120px; display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px;
  background: var(--zt-primary); color: var(--zt-on-primary); border: 2px solid var(--zt-primary);
}
.cb-link { width: 100%; text-align: center; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--zt-text); padding-top: 4px; }
.cb-parity { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 11px; font-weight: 600; color: var(--zt-success); }
.cb-parity svg { width: 14px; height: 14px; }

/* Preferences panel mockup */
.prefs { padding: 22px; }
.pref { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-top: 1px solid var(--zt-border); }
.pref strong { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.pref p { margin: 2px 0 0; font-size: 12.5px; color: var(--zt-text-secondary); }
.pref .tag { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--s-chip); color: var(--zt-text-secondary); }
.sw { position: relative; flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--s-toggle-off); margin-top: 2px; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(11, 21, 48, 0.2); }
.sw.on { background: var(--zt-primary); }
.sw.on::after { transform: translateX(18px); }
.sw.locked { opacity: 0.55; }
.prefs .cb-row { margin-top: 14px; }
.prefs .cb-link { width: auto; flex: 1 1 100%; }

/* Revocation widget */
.widget-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--zt-primary); color: var(--zt-on-primary); box-shadow: var(--zt-shadow-md);
}
.widget-btn svg { width: 22px; height: 22px; }

/* Consent receipt mockup */
.receipt { padding: 0; font-size: 13px; }
.receipt-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--zt-border); }
.receipt-head b { font-family: var(--zt-font-display); font-size: 14.5px; }
.receipt-head .act { margin-left: auto; }
.receipt dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.receipt dt, .receipt dd { padding: 8px 18px; border-bottom: 1px solid var(--zt-border); margin: 0; }
.receipt dt { color: var(--zt-text-secondary); padding-right: 8px; }
.receipt dd { font-family: var(--zt-font-mono); font-size: 12px; overflow-wrap: anywhere; color: var(--zt-text); }
.receipt dl > :nth-last-child(-n+2) { border-bottom: 0; }
.receipt dd .cats i { width: auto; padding: 0 6px; font-family: var(--zt-font-text); font-weight: 600; }
.receipt-foot { padding: 12px 18px; background: var(--zt-bg-subtle); border-top: 1px solid var(--zt-border); font-size: 12px; color: var(--zt-text-secondary); display: flex; gap: 8px; align-items: center; }
.receipt-foot svg { width: 15px; height: 15px; color: var(--zt-success); flex: none; }

/* Fake page content inside a window (for banner-position thumbnails) */
.fake-page { position: relative; height: 210px; padding: 16px; background: var(--s-window); overflow: hidden; }
.sk { display: block; height: 8px; border-radius: 4px; background: var(--s-skeleton); margin-bottom: 8px; }
.sk.h { height: 14px; width: 55%; margin-bottom: 12px; }
.sk.w80 { width: 80%; } .sk.w60 { width: 60%; } .sk.w90 { width: 90%; }
.sk-img { height: 60px; border-radius: 8px; background: var(--s-skeleton); margin: 12px 0; }
.fp-bar { position: absolute; left: 0; right: 0; background: var(--s-banner-bg); border-top: 1px solid var(--zt-border); padding: 10px 12px; display: flex; gap: 6px; align-items: center; box-shadow: 0 -6px 16px -8px rgba(23, 56, 140, 0.25); }
.fp-bar.bottom { bottom: 0; }
.fp-bar.top { top: 0; border-top: 0; border-bottom: 1px solid var(--zt-border); box-shadow: 0 6px 16px -8px rgba(23, 56, 140, 0.25); }
.fp-bar .sk { margin: 0; flex: 1; }
.fp-btn { width: 34px; height: 14px; border-radius: 4px; background: var(--zt-primary); flex: none; }
.fp-scrim { position: absolute; inset: 0; background: rgba(13, 27, 64, 0.35); display: grid; place-items: center; }
.fp-modal { width: 70%; background: var(--s-banner-bg); border-radius: 10px; padding: 12px; box-shadow: var(--zt-shadow-lg); }
.fp-modal .sk { margin-bottom: 6px; }
.fp-modal .btns { display: flex; gap: 6px; margin-top: 10px; }
.fp-modal .fp-btn { flex: 1; }
.pos-card figcaption { margin-top: 12px; }
.pos-card figcaption b { display: block; font-family: var(--zt-font-display); }
.pos-card figcaption span { font-size: 0.9375rem; color: var(--zt-text-secondary); }
.pos-card { margin: 0; }
.pos-card .window { box-shadow: var(--zt-shadow-md); }

/* Language chips */
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lang { border: 1px solid var(--zt-border); border-radius: 12px; padding: 12px 14px; background: var(--zt-surface); }
.lang .code-tag { font-family: var(--zt-font-mono); font-size: 11px; font-weight: 500; color: var(--zt-on-primary-soft); background: var(--zt-primary-soft); padding: 1px 7px; border-radius: 6px; }
.lang b { display: block; font-family: var(--zt-font-display); margin-top: 8px; }
.lang span { display: block; font-size: 0.875rem; color: var(--zt-text-secondary); }

/* Revision timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0; position: relative; font-size: 0.9375rem; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--zt-border); }
.timeline li:first-child::before { top: 20px; }
.timeline li:last-child::before { bottom: calc(100% - 20px); }
.timeline .dot { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--zt-surface); border: 2px solid var(--zt-border-strong); margin-top: 2px; }
.timeline .live .dot { border-color: var(--zt-success); background: var(--zt-success); box-shadow: 0 0 0 4px var(--zt-success-soft); }
.timeline .draft .dot { border-style: dashed; border-color: var(--zt-primary); }
.timeline b { font-family: var(--zt-font-display); }
.timeline small { display: block; color: var(--zt-text-secondary); font-size: 0.875rem; }
.timeline .tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--s-chip); color: var(--zt-text-secondary); white-space: nowrap; }
.timeline .live .tag { background: var(--zt-success-soft); color: var(--zt-success); }
.timeline .draft .tag { background: var(--zt-primary-soft); color: var(--zt-on-primary-soft); }

/* Feature rows (features page) */
.feature-row + .feature-row { margin-top: var(--zt-space-9); }
.feature-row h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.feature-row .lead { margin-top: var(--zt-space-4); font-size: 1.0625rem; }
.visual-pad { padding: clamp(16px, 3vw, 36px); border-radius: var(--zt-radius-xl); background: linear-gradient(180deg, var(--zt-bg-subtle), var(--zt-bg)); border: 1px solid var(--zt-border); }

/* Optional real screenshots (revealed by site.js once they load) */
.shots[hidden] { display: none; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--zt-border); border-radius: var(--zt-radius-lg); box-shadow: var(--zt-shadow-lg); background: var(--zt-surface); }
.shot figcaption { margin-top: 10px; font-size: var(--zt-text-sm); color: var(--zt-text-secondary); }

/* Docs cards */
.doc-card .meta { margin-top: var(--zt-space-4); display: flex; flex-wrap: wrap; gap: 6px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: var(--zt-space-9) 0; position: relative; overflow: hidden; background: var(--s-hero-glow); }
.notfound .big { font-family: var(--zt-font-display); font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 9rem); letter-spacing: -0.05em; line-height: 1; color: var(--zt-primary); }
.notfound .inner { position: relative; }
.notfound p { margin: var(--zt-space-4) auto 0; max-width: 32rem; }
.notfound .btn-row { justify-content: center; margin-top: var(--zt-space-6); }

/* ---------- Mobile spacing ---------- */
@media (max-width: 700px) {
  :root { --s-section: var(--zt-space-8); }
  .container { padding: 0 var(--zt-gutter); }
  .hero { padding-top: var(--zt-space-7); }
  .page-hero { padding: var(--zt-space-7) 0 var(--zt-space-7); }
  .card, .why-card { padding: var(--zt-space-5); }
  .pillar { padding: var(--zt-space-5); grid-template-columns: 1fr; }
  .pillar .icon-tile { grid-row: auto; margin-bottom: 8px; }
  .faq summary { padding: 16px 18px; font-size: 1rem; }
  .faq .answer { padding: 0 18px 18px; }
  .hero .btn-row .btn, .cta .btn-row .btn, .page-hero .btn-row .btn { width: 100%; }
  .feature-row + .feature-row { margin-top: var(--zt-space-8); }
  .code pre { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (forced-colors: active) {
  .sw, .cb-btn, .fp-btn, .meter .fill, .chart .bar { forced-color-adjust: none; }
}

@media print {
  .site-header, .site-footer, .skip-link, .hero-rings { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Architecture diagram (self-hosting) ---------- */
.arch { width: 100%; height: auto; font-family: var(--zt-font-text); }
.arch text { fill: var(--zt-text-secondary); font-size: 13px; }
.arch .a-node { fill: var(--zt-surface); stroke: var(--zt-border-strong); stroke-width: 1.5; }
.arch .a-main { fill: var(--zt-primary-soft); stroke: var(--zt-primary); }
.arch .a-strong { fill: var(--zt-text); font-family: var(--zt-font-display); font-weight: 700; font-size: 16px; }
.arch .a-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.arch .a-blue { fill: var(--zt-primary); }
.arch .a-mono { font-family: var(--zt-font-mono); font-size: 12.5px; fill: var(--zt-text); }
.arch .a-small { font-size: 12px; }
.arch .a-mono.a-small { font-size: 11px; fill: var(--zt-text-secondary); }
.arch .a-flow { stroke: var(--zt-primary); stroke-width: 2; stroke-dasharray: 4 5; fill: none; }
.mini-code { margin: var(--zt-space-4) 0 0; padding: 10px 12px; border-radius: var(--zt-radius-md); background: var(--zt-code-bg); color: var(--zt-code-text); font-size: 12px; overflow-x: auto; font-variant-ligatures: none; }
.receipt-head svg { width: 20px; height: 20px; flex: none; color: var(--zt-primary); }
.act { white-space: nowrap; }
@media (max-width: 680px) { .feature-card > :nth-child(n+4) { grid-column: 2; } }
.lang span.code-tag { display: inline-block; }
.langs.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.langs.chips .lang { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: var(--zt-radius-pill); }
.langs.chips .lang b { margin-top: 0; font-size: 0.9375rem; }
.split.top { align-items: start; }
.prose > * + * { margin-top: 1em; }
.table-wrap th code { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 700px) { .stack-table caption { display: block; width: auto; border-top: 0; border-bottom: 1px solid var(--zt-border); } }
@media (max-width: 480px) { .code pre { font-size: 0.75rem; } }
.pref .tag { white-space: nowrap; }
.pref strong { flex-wrap: wrap; row-gap: 2px; }
.receipt dd .cats { flex-wrap: wrap; }
.receipt dd .cats i { width: auto; height: auto; display: inline-block; padding: 1px 7px; white-space: nowrap; font-size: 10.5px; }
@media (max-width: 520px) {
  .timeline li { grid-template-columns: 20px minmax(0, 1fr); row-gap: 6px; }
  .timeline .tag { grid-column: 2; justify-self: start; }
  .visual-pad { padding: 10px; }
  .receipt dl { grid-template-columns: 1fr; }
  .receipt dt { border-bottom: 0; padding-bottom: 0; font-size: 12px; }
  .receipt dl > :nth-last-child(2) { border-bottom: 0; }
}
