/* Nirvani Access public site. Light and bright, the Command Center palette:
   ivory surfaces, deep ink navy, sea-glass mint; Playfair Display headings,
   Plus Jakarta Sans body, JetBrains Mono numerals and code. Dark mode follows
   the visitor's system setting. Self-hosted fonts keep the CSP at font-src 'self'.
   Every text and UI color pair is checked in both color schemes by
   src/test/siteContrast.test.ts (WCAG 2.2 AA: 4.5:1 text, 3:1 large text and
   UI boundaries); body text clears AAA. */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/fonts/playfair-display-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("/fonts/playfair-display-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* Contrast notes are the lowest ratio of each token against every surface it
   is used on in that scheme. */
:root {
  /* Surfaces */
  --bg: #f6f8f9;
  --bg-2: #eef3f5;
  --panel: #ffffff;
  --panel-2: #fbfcfd;
  --tint: #e6f5f2; /* sea-glass tint under selected and highlighted items */
  /* Text */
  --ink: #082332; /* 14.4:1 */
  --ink-2: #36505e; /* 7.6:1 */
  --ink-3: #52697a; /* 5.1:1 */
  --accent: #0d6f6c; /* links, eyebrows, accent text: 5.3:1; white on it 6.0:1 */
  --accent-fill: #0d6f6c; /* primary button fill */
  --on-accent: #ffffff;
  /* Lines: decorative separators; --field is the 3:1 boundary for inputs */
  --line: #d5e1e6;
  --line-2: #e3eaee;
  --line-3: #b9cbd2;
  --field: #5f7781; /* 4.2:1 */
  /* Brand chrome: navy bars carry the gold */
  --navy: #082332;
  --navy-2: #0f2942;
  --on-navy: #ffffff;
  --on-navy-2: #c3d6dd; /* 9.9:1 on navy */
  --gold: #d4a843; /* decoration and text on navy only: 7.3:1 */
  --gold-hi: #f6d87a; /* 11.6:1 on navy */
  --mint: #1e9e9a; /* decoration and fills under navy text (4.9:1) */
  --teal: #0d6f6c;
  --focus: #082332;
  --ok: #166534; /* 6.3:1 */
  --warn: #92400e;
  --err: #b42318; /* 5.9:1 */
  --shadow: 0 1px 2px rgba(8, 35, 50, 0.06), 0 12px 32px -18px rgba(8, 35, 50, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1200px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #061823;
    --bg-2: #071d2a;
    --panel: #082130;
    --panel-2: #0a2737;
    --tint: #0c3140;
    --ink: #ebf9f6; /* 14.3:1 */
    --ink-2: #c3d6dd; /* 10.3:1 */
    --ink-3: #9fb3bd; /* 7.1:1 */
    --accent: #5fd3cc; /* 8.6:1 */
    --accent-fill: #5fd3cc;
    --on-accent: #082332; /* 9.0:1 on the fill */
    --line: #173445;
    --line-2: #12293a;
    --line-3: #24485c;
    --field: #7f98a5; /* 5.1:1 */
    --navy: #04121b;
    --navy-2: #082130;
    --on-navy-2: #c3d6dd;
    --mint: #5fd3cc;
    --teal: #5fd3cc;
    --focus: #f6d87a;
    --ok: #4ade80;
    --warn: #fbbf24;
    --err: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
/* Focus: 3px ring in --focus (navy on light surfaces, gold on navy bars and in
   dark mode), at least 3:1 against every surface it can sit on. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: #bfe8e1; color: #082332; }
code, kbd, pre, .mono { font-family: var(--mono); }
code { font-size: 0.88em; color: var(--ink); background: var(--tint); border: 1px solid var(--line); padding: 0.08em 0.38em; border-radius: 6px; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; border-radius: 0; }
kbd { font-size: 0.85em; padding: 0.1em 0.45em; border-radius: 5px; border: 1px solid var(--field); background: var(--panel); color: var(--ink); white-space: nowrap; }
.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; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 1000;
  background: var(--navy); color: var(--on-navy); padding: 12px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; color: var(--on-navy); outline-color: var(--gold-hi); }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(860px, 100% - 32px); margin-inline: auto; }

/* Type */
h1, h2, h3, h4 { margin: 0 0 14px; line-height: 1.12; color: var(--ink); }
h1, h2, .display { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.6vw, 4.9rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; }
h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.3; }
h1 em, h2 em, .gold-text { font-style: italic; color: var(--accent); padding-right: 0.04em; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(1.08rem, 1.9vw, 1.26rem); color: var(--ink-2); max-width: 64ch; line-height: 1.6; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: 0.93rem; color: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before, .eyebrow.both::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--mint)); }
.eyebrow.both::after { background: linear-gradient(90deg, var(--mint), transparent); }
.badge-frame {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  padding: 9px 18px; border: 1px solid var(--line-3); border-radius: 999px; background: var(--panel); box-shadow: var(--shadow);
}

/* Buttons. Primary: white on deep mint (6.0:1). Secondary: navy on white with
   a 3:1 field border. Both keep 44px+ targets. */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 10px;
  font-family: var(--sans); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); box-shadow: 0 10px 24px -14px rgba(13, 111, 108, 0.9); }
.btn-gold:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn-chrome { color: var(--ink); border-color: var(--field); background: var(--panel); box-shadow: var(--shadow); }
.btn-chrome:hover { color: var(--ink); border-color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Header: the Command Center's navy bar with the gold wordmark. */
.site-header {
  position: sticky; top: 0; z-index: 60; --focus: var(--gold-hi);
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border-bottom: 1px solid rgba(30, 158, 154, 0.35);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, rgba(46, 230, 196, 0.7), transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 22px; width: auto; display: block; }
.brand .product { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3); padding-left: 12px; border-left: 1px solid var(--line-3); line-height: 1; }
.site-header .brand, .site-footer .brand { color: var(--on-navy); }
.site-header .brand .product, .site-footer .brand .product { color: var(--on-navy-2); border-left-color: rgba(195, 214, 221, 0.35); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  color: var(--on-navy-2); text-decoration: none; font-size: 0.93rem; font-weight: 600;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--on-navy); background: rgba(255, 255, 255, 0.08); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { --h: 44px; padding: 0 18px; font-size: 0.76rem; }
/* On the navy bar: the primary button is mint with navy text (4.9:1), the
   secondary is outlined in light ink. */
.site-header .btn-gold { background: #5fd3cc; border-color: #5fd3cc; color: #082332; }
.site-header .btn-chrome { background: transparent; color: var(--on-navy); border-color: rgba(195, 214, 221, 0.6); box-shadow: none; }
.site-header .btn-chrome:hover { border-color: var(--on-navy); color: var(--on-navy); }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px; background: var(--navy); border-bottom: 1px solid rgba(30, 158, 154, 0.35); }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 50px; font-size: 1rem; }
  .menu-btn { display: inline-flex; --h: 44px; padding: 0 14px; }
}
@media (max-width: 520px) {
  .brand .product { display: none; }
  .nav-cta .btn-gold { padding: 0 14px; letter-spacing: 0.06em; }
}

/* Sections */
section { position: relative; padding: clamp(72px, 10vw, 132px) 0; }
.section-head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.hairline { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--line-3), transparent); }
.band { background: var(--bg-2); }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid > * { min-width: 0; }
@media (min-width: 680px) { .cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.card p { color: var(--ink-2); margin: 0; }
.icon-ring {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--tint); border: 1px solid var(--line); color: var(--accent);
}
.icon-ring svg { width: 24px; height: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.chips li { font-size: 0.8rem; color: var(--ink-2); border: 1px solid var(--line); background: var(--bg); padding: 5px 11px; border-radius: 999px; line-height: 1.4; }

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(820px 420px at 50% -8%, rgba(30, 158, 154, 0.16), transparent 70%),
    radial-gradient(600px 400px at 6% 40%, rgba(30, 158, 154, 0.08), transparent 70%),
    radial-gradient(600px 400px at 96% 46%, rgba(212, 168, 67, 0.08), transparent 70%);
}
.hero-bg svg { position: absolute; top: 0; height: 100%; width: auto; opacity: 0.32; -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent 92%); mask-image: linear-gradient(90deg, #000 35%, transparent 92%); }
.hero-bg .circuit-left { left: -60px; }
.hero-bg .circuit-right { right: -60px; transform: scaleX(-1); }
@media (max-width: 900px) { .hero-bg svg { opacity: 0.16; } }
.trace { fill: none; stroke: #6aa9b0; stroke-width: 1.2; }
.trace.teal { stroke: #1e9e9a; }
.trace-pulse { fill: none; stroke: #1e9e9a; stroke-width: 1.6; stroke-dasharray: 18 520; stroke-linecap: round; animation: pulse 7s linear infinite; }
.trace-pulse.t2 { animation-delay: -2.4s; stroke: #d4a843; }
.trace-pulse.t3 { animation-delay: -4.6s; }
.node { fill: var(--bg); stroke: #1e9e9a; stroke-width: 1.2; }
.node.teal { stroke: #d4a843; }
@keyframes pulse { from { stroke-dashoffset: 540; } to { stroke-dashoffset: 0; } }
.hero-copy { text-align: center; max-width: 980px; margin: 0 auto; }
.hero-copy .lede { margin: 22px auto 0; font-size: clamp(1.1rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.assurances { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 0.92rem; }
.assurances li { display: inline-flex; align-items: center; gap: 8px; }
.assurances svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* Live demo */
.demo { margin-top: clamp(48px, 7vw, 76px); display: grid; gap: 18px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 980px) { .demo { grid-template-columns: 1.45fr 1fr; } }
.demo > * { min-width: 0; }
.browser { display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-3); display: block; }
.url { flex: 1; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); background: var(--panel); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

/* The sample page inside the demo: a typical client site, light in both schemes. */
.sample { --s-bg: #fbf8f2; --s-ink: #22201c; --s-muted: #5b564c; --s-accent: #0f6f68; --s-head: #12100c; --s-scale: 1; --focus: #082332;
  position: relative; flex: 1; background: var(--s-bg); color: var(--s-ink); padding: 26px clamp(18px, 3vw, 34px) 30px; min-height: 420px;
  font-family: var(--sans); font-size: calc(15px * var(--s-scale)); line-height: 1.6; transition: background-color 0.25s ease, color 0.25s ease;
}
.sample * { transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease; }
.sample-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; font-size: 0.88em; }
.sample-logo { font-weight: 800; letter-spacing: -0.01em; color: var(--s-head); display: inline-flex; align-items: center; gap: 8px; }
.sample-logo i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #2bb5a8, #0f6f68); display: inline-block; }
.sample-nav ul { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; color: var(--s-muted); }
.sample-nav a { color: inherit; text-decoration: none; }
@media (max-width: 520px) { .sample-nav ul { display: none; } }
.sample-grid { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 640px) { .sample-grid { grid-template-columns: 1.3fr 1fr; } }
.sample h3 { font-family: var(--sans); font-size: 1.7em; line-height: 1.15; font-weight: 800; color: var(--s-head); margin: 10px 0 10px; letter-spacing: -0.02em; }
.sample p { color: var(--s-muted); margin: 0 0 12px; }
.sample .ann { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78em; font-weight: 700; color: var(--s-accent); background: rgba(15, 111, 104, 0.1); padding: 4px 10px; border-radius: 999px; }
.sample .ann i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; transform: scale(0.7); } }
.sample .s-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sample .s-btn { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 8px; background: var(--s-accent); color: #fff; font-weight: 700; font-size: 0.9em; text-decoration: none; }
.sample .s-link { color: var(--s-accent); font-weight: 600; font-size: 0.9em; }
.sample-art { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #e7dcc6, #c9b796); }
.sample-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), transparent 40%), linear-gradient(160deg, transparent 50%, rgba(15, 111, 104, 0.35)); }
.sample-art .slide { position: absolute; left: 10%; right: 10%; bottom: 12%; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); overflow: hidden; }
.sample-art .slide::after { content: ""; position: absolute; top: 0; bottom: 0; width: 34%; border-radius: inherit; background: #0f6f68; animation: carousel 3.2s ease-in-out infinite alternate; }
@keyframes carousel { from { left: 0; } to { left: 66%; } }
.sample-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.92em; }
.sample-list li { display: flex; gap: 8px; color: var(--s-ink); }
.sample-list li::before { content: ""; width: 6px; height: 6px; margin-top: 0.62em; border-radius: 50%; background: var(--s-accent); flex: none; }
.reading-guide { position: absolute; left: 0; right: 0; height: 34px; margin-top: -17px; pointer-events: none; display: none; background: rgba(30, 158, 154, 0.16); border-top: 2px solid #0f6f68; border-bottom: 2px solid #0f6f68; }

.sample.fx-bigger { --s-scale: 1.22; }
.sample.fx-contrast { --s-bg: #000; --s-ink: #ffff00; --s-muted: #ffff00; --s-head: #ffffff; --s-accent: #00e0ff; }
.sample.fx-contrast .sample-art { filter: contrast(1.3) grayscale(0.4); }
.sample.fx-contrast .s-btn { color: #000; }
.sample.fx-dyslexia, .sample.fx-dyslexia h3 { font-family: "Comic Sans MS", "Lexend", "Atkinson Hyperlegible", var(--sans); letter-spacing: 0.04em; word-spacing: 0.14em; line-height: 1.85; }
.sample.fx-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; outline: 2px dashed currentColor; outline-offset: 2px; }
.sample.fx-guide .reading-guide { display: block; }
.sample.fx-still *, .sample.fx-still *::before, .sample.fx-still *::after { animation: none !important; }
.sample .bio b { font-weight: 800; color: var(--s-head); }

.controls { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.controls-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(30, 158, 154, 0.35); background: linear-gradient(180deg, #0f2942, #082332); color: #ffffff; }
.controls-head svg { width: 30px; height: 30px; flex: none; }
.controls-head b { display: block; font-size: 0.98rem; color: #ffffff; }
.controls-head span { display: block; font-size: 0.8rem; color: #c3d6dd; }
.toggles { list-style: none; margin: 0; padding: 12px; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 520px) and (max-width: 979px) { .toggles { grid-template-columns: 1fr 1fr; } }
.toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font: inherit; font-size: 0.94rem; font-weight: 600; text-align: left; cursor: pointer;
}
.toggle:hover { border-color: var(--field); background: var(--panel-2); }
.toggle small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--ink-3); }
/* Switch: off track 4.2:1 on the card, knob 4.8:1 on the track; on track is
   the accent fill, 5.3:1 on the card, with the knob 6.0:1 on it. */
.switch { position: relative; width: 42px; height: 24px; flex: none; border-radius: 999px; background: var(--field); border: 0; transition: background-color 0.2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--panel); transition: transform 0.2s ease, background-color 0.2s ease; }
.toggle[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); }
.toggle[aria-pressed="true"] .switch { background: var(--accent-fill); }
.toggle[aria-pressed="true"] .switch::after { transform: translateX(18px); background: var(--on-accent); }
.controls-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--line); }
.controls-foot .btn { --h: 44px; font-size: 0.72rem; padding: 0 16px; }
.reset-link { background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 0.86rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0 4px; }
.reset-link:hover { color: var(--ink); }
@media (max-width: 979px) {
  .demo .controls { order: -1; }
  .controls-head { padding: 12px 14px; }
  .toggles { grid-template-columns: 1fr 1fr; padding: 10px; gap: 6px; }
  .toggle { min-height: 48px; padding: 8px 10px; font-size: 0.86rem; gap: 8px; }
  .toggle small { display: none; }
  .switch { width: 34px; height: 20px; }
  .switch::after { width: 14px; height: 14px; }
  .toggle[aria-pressed="true"] .switch::after { transform: translateX(14px); }
  .controls-foot { padding: 10px 14px; }
  .sample { min-height: 0; }
}
.demo-note { margin: 14px 0 0; text-align: center; font-size: 0.9rem; color: var(--ink-3); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(6, 1fr); } }
.stat { background: var(--panel); padding: 26px 22px; }
.stat b { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--accent); }
.stat span { display: block; margin-top: 8px; font-size: 0.88rem; color: var(--ink-2); }

/* Agents */
.agent { display: flex; flex-direction: column; }
.agent-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.agent .icon-ring { margin: 0; }
.tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line-3); color: var(--accent); background: var(--panel); white-space: nowrap; }
.tag.teal { border-color: var(--accent); color: var(--accent); background: var(--tint); }
.agent h3 { font-size: 1.16rem; }
.agent h3 .ai { font-family: var(--mono); font-size: 0.78em; font-weight: 500; letter-spacing: 0.06em; color: var(--accent); margin-right: 2px; }
.agent ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.agent li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
.agent li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--accent); }
.agent-feature { grid-column: 1 / -1; display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .agent-feature { grid-template-columns: 1fr 1.05fr; padding: 36px; } }
.chat { border-radius: 16px; border: 1px solid var(--line); background: var(--bg); padding: 18px; display: grid; gap: 12px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-2); }
.chat-head .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.18); }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 14px; font-size: 0.94rem; line-height: 1.5; }
.msg.visitor { justify-self: end; background: var(--navy); color: #ffffff; border-bottom-right-radius: 4px; }
.msg.assistant { justify-self: start; background: var(--panel); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.msg .who { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.msg.visitor .who { color: #c3d6dd; }
.msg.assistant .who { color: var(--accent); }
.applied { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
.applied li { font-size: 0.74rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--tint); color: var(--accent); border: 1px solid var(--line-3); }
.illustration-note { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 12px 0 0; }

/* Console mock: the Command Center as it really looks, navy chrome over a
   light workspace. Fixed light colors in both schemes, like a screenshot. */
.console-wrap { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1040px) { .console-wrap { grid-template-columns: 0.85fr 1.35fr; } }
.console-wrap > * { min-width: 0; }
.checklist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--ink-2); }
.checklist li b { color: var(--ink); font-weight: 700; }
.checklist svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.console { border-radius: var(--radius); border: 1px solid #d5e1e6; overflow: hidden; background: #f8fafc; color: #082332; box-shadow: var(--shadow); font-size: 13px; --focus: #082332; }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(30, 158, 154, 0.35); background: linear-gradient(180deg, #0f2942, #082332); color: #ffffff; }
.console-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #ffffff; }
.console-title svg { width: 26px; height: 26px; }
.pill-go { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; padding: 4px 9px; border-radius: 4px; color: #082332; background: #5fd3cc; font-weight: 600; }
.console-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .console-body { grid-template-columns: 190px 1fr; } }
.console-side { display: none; border-right: 1px solid rgba(30, 158, 154, 0.25); padding: 12px 10px; background: #082332; }
@media (min-width: 640px) { .console-side { display: block; } }
.console-side p { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: #5fd3cc; margin: 4px 8px 8px; }
.console-side ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.console-side li { padding: 7px 10px; border-radius: 8px; color: #c3d6dd; font-size: 0.8rem; display: flex; align-items: center; gap: 8px; }
.console-side li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(212, 168, 67, 0.7); }
.console-side li.on { background: #0d6f6c; color: #ffffff; border: 1px solid #1e9e9a; }
.console-side li.on::before { background: #f6d87a; }
.console-main { padding: 16px; display: grid; gap: 14px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { border: 1px solid #d5e1e6; border-radius: 12px; padding: 12px; background: #ffffff; }
.kpi b { display: block; font-family: var(--mono); font-size: 1.3rem; font-weight: 500; color: #082332; }
.kpi span { font-size: 0.72rem; color: #52697a; }
.kpi.good b { color: #166534; }
.fleet { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.fleet-scroll { overflow-x: auto; border: 1px solid #d5e1e6; border-radius: 12px; background: #ffffff; }
.fleet th, .fleet td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e3eaee; white-space: nowrap; }
.fleet th { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: #52697a; font-weight: 500; background: #f6f8f9; }
.fleet tr:last-child td { border-bottom: 0; }
.fleet td { color: #36505e; }
.fleet .site { color: #082332; font-weight: 600; }
.st { display: inline-flex; align-items: center; gap: 6px; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.st.warn::before { background: #d97706; }
.fleet .mono { color: #0d6f6c; }
.gate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid #86c9a0; background: #effaf3; font-size: 0.8rem; color: #36505e; }
.gate b { color: #082332; }
.gate .gate-go { color: #166534; font-weight: 600; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 70px; }
.step::after {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 28px; font-family: var(--mono); font-size: 2rem; font-weight: 500; line-height: 1.6; color: var(--accent);
}
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.platforms li { font-size: 0.86rem; font-weight: 600; color: var(--ink-2); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }

/* Embed: code blocks stay dark navy in both schemes, like an editor. */
.embed { position: relative; margin-top: 28px; border-radius: var(--radius); border: 1px solid #173445; background: #061823; overflow: hidden; box-shadow: var(--shadow); --focus: #f6d87a; }
.embed-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 10px 18px; border-bottom: 1px solid #173445; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9fb3bd; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid #5fd3cc; background: transparent; color: #5fd3cc; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.copy-btn:hover { background: rgba(95, 211, 204, 0.12); }
.embed pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 0.82rem; line-height: 1.7; color: #dbe7ec; tab-size: 2; }
.embed .t { color: #f6d87a; } .embed .a { color: #8fd3ff; } .embed .s { color: #7ee7c8; } .embed .c { color: #9fb3bd; }

/* Offer */
.offer { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .offer { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; }
.plan.feature { border: 2px solid var(--accent); }
.plan .for { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.plan .price { font-family: var(--serif); font-size: 3rem; font-weight: 600; line-height: 1; margin: 6px 0 14px; color: var(--ink); }
.plan .price em { font-style: italic; color: var(--accent); }
.plan .price .per { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-3); margin-left: 8px; letter-spacing: 0; }
.plan ul { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.93rem; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: #f6d87a; background: #082332; padding: 6px 12px; border-radius: 6px; white-space: nowrap; }
.stack { margin-top: 28px; padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line-3); background: var(--panel); }
.stack h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; }
.stack ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px 26px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .stack ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .stack ul { grid-template-columns: repeat(3, 1fr); } }
.stack li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.93rem; color: var(--ink-2); }
.stack li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }

/* FAQ: the disclosure arrow is the only cue that a row opens, so it uses the
   3:1 field color. */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.faq details[open] { border-color: var(--line-3); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; min-height: 64px; font-weight: 700; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .ans { padding: 0 22px 22px; color: var(--ink-2); }
.faq .ans p:last-child { margin-bottom: 0; }

/* Form: every field has a 3:1 boundary (--field) and a visible focus ring. */
.cta { background: radial-gradient(900px 500px at 15% 10%, rgba(30, 158, 154, 0.1), transparent 70%), var(--bg-2); }
.cta-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .cta-grid { grid-template-columns: 0.9fr 1.1fr; } }
.cta-grid > * { min-width: 0; }
.form { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 34px); box-shadow: var(--shadow); }
.f-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .f-row.two { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.form label, .form legend { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 7px; color: var(--ink); padding: 0; }
.hint { font-weight: 400; color: var(--ink-3); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--field); border-radius: 10px;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form textarea { min-height: 110px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-3); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.form fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.radios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .radios { grid-template-columns: repeat(4, 1fr); } }
.radios label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 0; padding: 0 10px; border: 1px solid var(--field); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.92rem; background: var(--panel); text-align: center; }
.radios label:has(input:checked) { border: 2px solid var(--accent); background: var(--tint); color: var(--ink); }
.radios label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.radios input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-fill); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
.form-msg.err { color: var(--err); }
.fine { font-size: 0.85rem; color: var(--ink-3); margin: 14px 0 0; }
.success { text-align: left; }
.success h3 { font-family: var(--serif); font-weight: 600; font-size: 2.1rem; }
.success:focus { outline: none; }
.next-steps { list-style: none; counter-reset: ns; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 34px 1fr; gap: 10px; color: var(--ink-2); }
.next-steps li::before { content: counter(ns); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 0.8rem; color: var(--on-accent); background: var(--accent-fill); }

/* Family band */
.family { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(700px 300px at 100% 0%, rgba(30, 158, 154, 0.1), transparent 70%), var(--panel); box-shadow: var(--shadow); }
@media (min-width: 980px) { .family { grid-template-columns: 1.1fr 1fr; } }
.family > * { min-width: 0; }
.roster { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.roster li { font-size: 0.84rem; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-3); color: var(--ink); background: var(--tint); }
.family-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Statement */
.statement h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.statement h3 { margin-top: 26px; }

/* Footer: navy, like the header. */
.site-footer { border-top: 1px solid rgba(30, 158, 154, 0.35); padding: 48px 0 40px; background: var(--navy); color: #c3d6dd; --focus: #f6d87a; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: #5fd3cc; margin: 6px 0 14px; font-weight: 500; }
.site-footer p { color: #c3d6dd; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: #c3d6dd; text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; font-size: 0.95rem; }
.site-footer a:hover { color: #f6d87a; text-decoration: underline; }
.site-footer .brand img { height: 24px; }
.footer-note { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(195, 214, 221, 0.2); font-size: 0.84rem; color: #9fb3bd; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }

/* Docs */
.docs { display: grid; gap: 40px; grid-template-columns: 1fr; padding: 56px 0 96px; }
@media (min-width: 1000px) { .docs { grid-template-columns: 240px 1fr; } }
.docs > * { min-width: 0; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc h2 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; font-weight: 500; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-3); }
.toc a { display: block; padding: 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 999px) { .toc { position: static; } }
.doc h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-top: 56px; padding-top: 8px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 28px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.table-scroll { overflow-x: auto; margin: 18px 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; background: var(--bg-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { white-space: nowrap; }
.doc td code { white-space: nowrap; }
.callout { margin: 20px 0; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-3); border-left: 4px solid var(--accent); background: var(--tint); color: var(--ink-2); }
.callout b { color: var(--ink); }
.doc-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); background: radial-gradient(700px 360px at 20% 0%, rgba(30, 158, 154, 0.12), transparent 70%); }

/* Motion preferences: the page honors the OS setting, and the widget's own Reduce Motion reaches it too. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
@media (forced-colors: active) {
  .switch, .toggle[aria-pressed="true"] .switch { forced-color-adjust: none; }
}
@media print {
  .site-header, .hero-bg, .demo, #nirvani-access-root { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Welcome / install kit */
.kit { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 110px); }
.kit-status { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line-3); border-top-color: var(--accent); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.kit-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.kit-meta li { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-3); color: var(--ink); background: var(--tint); }
.site-card { margin-top: 22px; }
.site-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 1.2rem; }
.site-card h3 small { font-family: var(--mono); font-size: 0.74rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0.04em; }
.site-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.site-actions .btn { --h: 46px; font-size: 0.74rem; }
.add-site { margin-top: 26px; }
.add-site .f-row { align-items: end; }
.tips { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .tips { grid-template-columns: repeat(2, 1fr); } }
.tips li { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); font-size: 0.92rem; }
.tips b { color: var(--ink); display: block; margin-bottom: 4px; }
.site-card .field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 7px; color: var(--ink); }
.site-card select {
  width: 100%; min-height: 48px; padding: 10px 40px 10px 14px; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--field); border-radius: 10px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
.site-card select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
