/* =============================================================================
   NEXUS_AI v2 — design system
   One stylesheet for the shell and the new pages (home, install, pricing, chat).
   Migrated page content (docs, cabinet, news, rankings) lives in content.css and
   uses the same tokens, so both themes and the new palette apply everywhere.
   No external fonts or CDNs: the site must load the same everywhere.
   ============================================================================= */

/* ---------- tokens ----------
   Palettes: ember (default: amber + teal in the dark theme, "linen" terracotta + sage in the light one), lime (signal green on cool greys), cobalt (blue + teal).
   Chosen with <html data-palette="…"> (assets/js/boot.js, ?palette=lime to preview). Each palette has a light
   and a dark variant tuned separately: a colour that reads well on white is too dull on black and vice versa.
   Everything else derives from --brand / --brand-ink / --brand-2, so a new palette is ~10 lines. */
:root {
  color-scheme: light;
  /* light neutrals: "linen" - peachy off-white #FFF8F1, terracotta, sage, brown ink */
  --bg-canvas: #FFF8F1;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F9EEE3;
  --bg-card: #FFFFFF;
  --bg-hover: #F4E7DA;
  --bg-active: #ECDCCC;
  --bg-elevated: #FFFFFF;
  --bg-glass: rgba(255, 248, 241, .86);
  --text-main: #3A2E27;
  --text-secondary: #67574C;
  --text-muted: #94816F;
  --charcoal-900: #3A2E27;
  --charcoal-800: #4A3B34;
  --border: #F0E2D3;
  --border-subtle: #F6EBDF;
  --border-strong: #E0CBB6;
  --grid-line: rgba(74, 59, 52, .06);
  /* "ink" blocks: dark accents inside the light theme */
  --ink: #3A2E27;
  --ink-2: #4A3B34;
  --ink-line: #5A4A41;
  --ink-text: #FFF8F1;
  --ink-muted: #CDB8A6;
  --btn-primary-bg: #3A2E27;
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover: #4A3B34;

  /* brand (light): terracotta */
  --brand: #C2603F;          /* fills: primary buttons, logo, badges */
  --brand-hover: #A94E30;
  --on-brand: #FFFFFF;       /* text on --brand */
  --brand-ink: #A44D2F;      /* brand-coloured text and links on the page background */
  --brand-2: #5F7D5A;        /* second accent (sage): info, focus, links in chat */
  --grad-accent: linear-gradient(120deg, #D9A46F 0%, #C2603F 100%);
  --mark: rgba(246, 214, 189, .95);  /* apricot underline behind key words */
  --mark-text: var(--text-main);
  --blob: rgba(217, 164, 111, .14);
  --blob-2: transparent;

  /* status colours */
  /* status colours, muted to sit on linen (the dark theme has its own bright set) */
  --accent-green: #4E7A4A;
  --accent-blue: #3D6E86;
  --accent-purple: #8A4F72;
  --accent-red: #B5443A;
  --accent-yellow: #A2731C;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;

  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius: var(--radius-md);
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 2px rgba(74, 59, 52, .06);
  --shadow-sm: 0 1px 2px rgba(74, 59, 52, .05), 0 6px 16px -10px rgba(120, 80, 50, .2);
  --shadow-md: 0 1px 2px rgba(74, 59, 52, .05), 0 14px 30px -14px rgba(120, 80, 50, .26);
  --shadow-lg: 0 2px 4px rgba(74, 59, 52, .05), 0 24px 48px -18px rgba(120, 80, 50, .3);
  --shadow-xl: 0 30px 70px rgba(74, 50, 35, .2), 0 6px 14px rgba(74, 50, 35, .07);
  --shadow-hover: 0 1px 2px rgba(74, 59, 52, .05), 0 18px 36px -14px rgba(120, 80, 50, .32);

  --header-h: 64px;
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* derived: the rest of the site (and the migrated pages) only use these names */
  --text-primary: var(--text-main);
  --text-inverse: var(--bg-surface);
  --accent-warm: var(--brand-ink);
  --accent: var(--brand-ink);
  --accent-primary: var(--brand-ink);
  --accent-violet: var(--brand-2);
  --border-focus: var(--brand-2);
  --accent-warm-subtle: color-mix(in srgb, var(--brand) 11%, transparent);
  --accent-violet-subtle: color-mix(in srgb, var(--brand-2) 11%, transparent);
  --accent-green-subtle: color-mix(in srgb, var(--accent-green) 12%, transparent);
  --accent-blue-subtle: color-mix(in srgb, var(--accent-blue) 12%, transparent);
  --accent-purple-subtle: color-mix(in srgb, var(--accent-purple) 12%, transparent);
  --accent-red-subtle: color-mix(in srgb, var(--accent-red) 12%, transparent);
  --brand-shadow: color-mix(in srgb, var(--brand) 30%, transparent);
  --grad-soft: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, transparent), color-mix(in srgb, var(--brand-2) 7%, transparent));
  --glow: color-mix(in srgb, var(--brand) 18%, transparent);
}

[data-theme="dark"] {
  color-scheme: dark;
  /* warm charcoal (ember) */
  --bg-canvas: #0D0C0A;
  --bg-surface: #151310;
  --bg-subtle: #1C1915;
  --bg-card: #151310;
  --bg-hover: #231F1A;
  --bg-active: #2C2721;
  --bg-elevated: #191612;
  --bg-glass: rgba(13, 12, 10, .78);
  --text-main: #F2EDE5;
  --text-secondary: #B6AD9F;
  --text-muted: #7E766A;
  --charcoal-900: #F4EFE7;
  --charcoal-800: #DED7CB;
  --border: #27231D;
  --border-subtle: #1E1B17;
  --border-strong: #3B352C;
  --grid-line: rgba(255, 240, 220, .055);
  --ink: #0B0A08; --ink-2: #151310; --ink-line: #27231D; --ink-text: #F2EDE5; --ink-muted: #8F8679;
  --btn-primary-bg: #F2EDE5;
  --btn-primary-text: #0D0C0A;
  --btn-primary-hover: #FFFFFF;

  --brand: #FF9B3D;
  --brand-hover: #FFB264;
  --on-brand: #1D0F02;       /* dark text on bright amber: reads better than white */
  --brand-ink: #FFA95A;
  --brand-2: #3CCFBE;
  --grad-accent: linear-gradient(120deg, #FFC14D 0%, #FF8A2B 100%);
  --mark: rgba(255, 155, 61, .26);
  --mark-text: var(--brand-ink);
  --blob: rgba(255, 155, 61, .10);
  --blob-2: transparent;

  --accent-green: #3DD68C;
  --accent-blue: #5AA2FF;
  --accent-purple: #A68BFF;
  --accent-red: #FF6060;
  --accent-yellow: #F2C14E;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .55);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-lg: 0 20px 44px rgba(0, 0, 0, .6), 0 3px 8px rgba(0, 0, 0, .4);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, .7), 0 6px 14px rgba(0, 0, 0, .45);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, .55);
  --brand-shadow: color-mix(in srgb, var(--brand) 22%, transparent);
}

/* cool neutrals for lime and cobalt */
[data-palette="lime"], [data-palette="cobalt"] {
  --bg-canvas: #F5F6F8; --bg-surface: #FFFFFF; --bg-subtle: #EEF0F3; --bg-card: #FFFFFF; --bg-hover: #E6E9EE; --bg-active: #DCE0E7;
  --bg-elevated: #FFFFFF; --bg-glass: rgba(255, 255, 255, .78);
  --text-main: #0F1217; --text-secondary: #4B5260; --text-muted: #7C8391; --charcoal-900: #0F1217; --charcoal-800: #1C2129;
  --border: #E0E3E9; --border-subtle: #EAECF0; --border-strong: #C8CDD6; --grid-line: rgba(15, 18, 23, .07);
  --btn-primary-bg: #0F1217; --btn-primary-text: #FFFFFF; --btn-primary-hover: #232833;
  --ink: #0F1217; --ink-2: #191D24; --ink-line: #2A303A; --ink-text: #EEF0F3; --ink-muted: #9BA2AE;
  --shadow-xs: 0 1px 2px rgba(15, 18, 23, .06); --shadow-sm: 0 1px 2px rgba(15, 18, 23, .05), 0 6px 16px -10px rgba(15, 18, 23, .2);
  --shadow-md: 0 1px 2px rgba(15, 18, 23, .05), 0 14px 30px -14px rgba(15, 18, 23, .26); --shadow-hover: 0 1px 2px rgba(15, 18, 23, .05), 0 18px 36px -14px rgba(15, 18, 23, .3);
  --blob-2: transparent;
}
[data-theme="dark"][data-palette="lime"], [data-theme="dark"][data-palette="cobalt"] {
  --bg-canvas: #08090B; --bg-surface: #0F1114; --bg-subtle: #16191D; --bg-card: #0F1114; --bg-hover: #1C2025; --bg-active: #24292F;
  --bg-elevated: #13161A; --bg-glass: rgba(8, 9, 11, .78);
  --text-main: #ECEEF1; --text-secondary: #A6ACB6; --text-muted: #6D7480; --charcoal-900: #F1F3F6; --charcoal-800: #DADDE3;
  --border: #20242A; --border-subtle: #181B20; --border-strong: #2F343C; --grid-line: rgba(255, 255, 255, .05);
  --btn-primary-bg: #ECEEF1; --btn-primary-text: #08090B; --btn-primary-hover: #FFFFFF;
}

/* lime: a "signal" green, like a terminal cursor */
[data-palette="lime"] {
  --brand: #B5EE1F; --brand-hover: #A3DD0C; --on-brand: #121A02; --brand-ink: #4E7C05; --brand-2: #0C6E8C;
  --grad-accent: linear-gradient(120deg, #D8FB66 0%, #A5E40E 100%);
  --mark: rgba(181, 238, 31, .75); --blob: rgba(181, 238, 31, .26);
}
[data-theme="dark"][data-palette="lime"] {
  --brand: #C6FF3D; --brand-hover: #D6FF70; --on-brand: #0E1402; --brand-ink: #C6FF3D; --brand-2: #5CD3F0;
  --grad-accent: linear-gradient(120deg, #E3FF8C 0%, #AEF02A 100%);
  --mark: rgba(198, 255, 61, .22); --blob: rgba(198, 255, 61, .08);
}

/* cobalt: deep blue, no gradient at all */
[data-palette="cobalt"] {
  --brand: #2A55E5; --brand-hover: #1E44C7; --on-brand: #FFFFFF; --brand-ink: #2347C9; --brand-2: #0B7A6E;
  --grad-accent: linear-gradient(0deg, #2A55E5, #2A55E5);
  --mark: rgba(42, 85, 229, .2); --blob: rgba(42, 85, 229, .12);
}
[data-theme="dark"][data-palette="cobalt"] {
  --brand: #5B82FF; --brand-hover: #7C9BFF; --on-brand: #FFFFFF; --brand-ink: #8EA8FF; --brand-2: #35CDB8;
  --grad-accent: linear-gradient(0deg, #5B82FF, #5B82FF);
  --mark: rgba(91, 130, 255, .26); --blob: rgba(91, 130, 255, .09);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg-canvas); color: var(--text-main);
  font: 400 15px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0 0 auto 0; height: 720px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% -15%, var(--blob), transparent 70%),
    radial-gradient(50% 60% at 5% 0%, var(--blob-2), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--grid-line) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(#000 35%, transparent);
  mask-image: linear-gradient(#000 35%, transparent);
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--mark); }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; border-radius: 6px; }
code, kbd, pre, samp { font-family: var(--font-mono); }
kbd {
  display: inline-block; min-width: 22px; padding: 1px 6px; font-size: 11.5px; line-height: 1.6; text-align: center;
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--bg-subtle); color: var(--text-secondary);
}
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; color: var(--text-main); }
h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { color: var(--text-secondary); }
small { font-size: 12.5px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid var(--bg-canvas); }
::-webkit-scrollbar-track { background: transparent; }

.container, .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
main { flex: 1 0 auto; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { margin-top: 12px; font-size: 17px; }
.eyebrow-v2 {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--radius-full);
  font: 600 12px var(--font-mono); letter-spacing: .04em; color: var(--text-secondary);
  background: var(--bg-surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
}
.eyebrow-v2 .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 0 4px var(--accent-green-subtle); }
.grad-text { color: var(--mark-text); background: linear-gradient(transparent 64%, var(--mark) 64%, var(--mark) 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--bg-glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--text-main); white-space: nowrap; }
.logo:hover { color: var(--text-main); }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--on-brand); font-size: 13px;
  background: var(--brand); box-shadow: 0 4px 12px var(--brand-shadow);
}
.logo b { color: var(--brand-ink); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav a {
  padding: 7px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 550; color: var(--text-secondary);
  transition: background .15s, color .15s;
}
.nav a:hover { color: var(--text-main); background: var(--bg-hover); }
.nav a.active { color: var(--text-main); background: var(--bg-subtle); }
.nav a .new { margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 700; color: var(--on-brand); background: var(--brand); vertical-align: 1px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px 0 12px; min-width: 180px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-muted); font-size: 13.5px;
  transition: border-color .15s, color .15s;
}
.search-btn:hover { border-color: var(--border-strong); color: var(--text-secondary); }
.search-btn kbd { margin-left: auto; font-size: 11px; }
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-secondary); font-size: 15px;
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { color: var(--text-main); border-color: var(--border-strong); }
.lang-select {
  height: 36px; padding: 0 28px 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237B8399' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none; appearance: none; font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer;
}
.burger { display: none; }
.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; padding: 18px 20px 30px; overflow-y: auto;
  background: var(--bg-canvas); border-top: 1px solid var(--border);
}
.mobile-nav.open { display: block; animation: fade-in .18s var(--ease); }
.mobile-nav a { display: block; padding: 13px 6px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--border-subtle); }
.mobile-nav .row-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--border-subtle); padding: 44px 0 36px; color: var(--text-muted); font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { font: 700 11.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 12px; }
.footer-grid a { display: block; padding: 4px 0; color: var(--text-muted); }
.footer-grid a:hover { color: var(--text-main); }
.footer-grid a.logo { display: inline-flex; padding: 0; color: var(--text-main); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 18px;
  border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 14.5px; font-weight: 650; white-space: nowrap;
  transition: transform .12s var(--ease), box-shadow .2s, background .15s, border-color .15s, color .15s; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary, .btn.primary {
  color: var(--on-brand); background: var(--brand);
  box-shadow: 0 6px 18px var(--brand-shadow), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover, .btn.primary:hover { color: var(--on-brand); background: var(--brand-hover); box-shadow: 0 10px 24px var(--brand-shadow), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-dark { color: var(--btn-primary-text); background: var(--btn-primary-bg); }
.btn-dark:hover { color: var(--btn-primary-text); background: var(--btn-primary-hover); }
.btn-secondary, .btn.secondary { color: var(--text-main); background: var(--bg-surface); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-secondary:hover, .btn.secondary:hover { color: var(--text-main); border-color: var(--border-strong); background: var(--bg-hover); }
.btn-ghost { color: var(--text-secondary); background: transparent; }
.btn-ghost:hover { color: var(--text-main); background: var(--bg-hover); }
.btn-danger { color: var(--accent-red); background: var(--accent-red-subtle); }
.btn-sm { --h: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { --h: 50px; padding: 0 26px; font-size: 16px; border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn .ico { font-size: 1.1em; line-height: 1; }

/* ---------- cards, chips, badges ---------- */
.card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-xs); }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-full);
  font: 600 12px var(--font-sans); color: var(--text-secondary); background: var(--bg-subtle); border: 1px solid var(--border-subtle);
}
.chip.ok { color: var(--accent-green); background: var(--accent-green-subtle); border-color: transparent; }
.chip.warn { color: var(--accent-warm); background: var(--accent-warm-subtle); border-color: transparent; }
.chip.bad { color: var(--accent-red); background: var(--accent-red-subtle); border-color: transparent; }
.chip.violet { color: var(--accent-violet); background: var(--accent-violet-subtle); border-color: transparent; }
.rate {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 7px; font: 700 12px var(--font-mono);
  color: var(--text-secondary); background: var(--bg-subtle);
}
.rate.low { color: var(--accent-green); background: var(--accent-green-subtle); }
.rate.mid { color: var(--accent-yellow); background: rgba(242, 193, 78, .14); }
.rate.high { color: var(--accent-warm); background: var(--accent-warm-subtle); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font: 600 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--text-main); font-size: 14.5px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 4px var(--accent-violet-subtle); }
.input.mono { font-family: var(--font-mono); font-size: 13.5px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--bg-subtle); border: 1px solid var(--border-subtle); }
.seg button { padding: 6px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); transition: background .15s, color .15s; }
.seg button:hover { color: var(--text-main); }
.seg button.active, .seg button[aria-pressed="true"] { background: var(--bg-surface); color: var(--text-main); box-shadow: var(--shadow-sm); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--text-secondary); user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track-v2 { width: 34px; height: 20px; border-radius: 20px; background: var(--border-strong); position: relative; transition: background .2s; flex: 0 0 34px; }
.switch .track-v2::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + .track-v2 { background: var(--accent-violet); }
.switch input:checked + .track-v2::after { transform: translateX(14px); }
.switch input:focus-visible + .track-v2 { outline: 2px solid var(--border-focus); outline-offset: 2px; }

/* ---------- callouts ---------- */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-surface); font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.callout b { color: var(--text-main); }
.callout .ico { font-size: 18px; line-height: 1.3; }
.callout.info { background: var(--accent-violet-subtle); border-color: transparent; }
.callout.ok { background: var(--accent-green-subtle); border-color: transparent; }
.callout.warn { background: var(--accent-warm-subtle); border-color: transparent; }
.callout.bad { background: var(--accent-red-subtle); border-color: transparent; }

/* ---------- code window ("terminal") ---------- */
.codewin { margin: 12px 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid #23283a; background: #0B0D14; box-shadow: var(--shadow-sm); color: #D8DCEA; }
.codewin-head { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 12px; background: #11141E; border-bottom: 1px solid #1E2232; }
.codewin-dots { display: flex; gap: 6px; }
.codewin-dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.codewin-dots i:nth-child(2) { background: #FEBC2E; }
.codewin-dots i:nth-child(3) { background: #28C840; }
.codewin-title { font: 600 12px var(--font-mono); color: #8A90A6; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.codewin-actions { margin-left: auto; display: flex; gap: 2px; }
.codewin-actions button {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 6px;
  font: 600 11.5px var(--font-sans); color: #9AA0B6; transition: background .15s, color .15s;
}
.codewin-actions button:hover { background: #1C2030; color: #fff; }
.codewin-actions button.done { color: #3DD68C; }
.codewin-body { position: relative; overflow: auto; max-height: 560px; }
.codewin pre { margin: 0; padding: 14px 16px; font: 13px/1.6 var(--font-mono); tab-size: 4; white-space: pre; color: #D8DCEA; background: transparent; }
.codewin.wrap pre { white-space: pre-wrap; word-break: break-word; }
.codewin.lines pre { counter-reset: ln; padding-left: 0; }
.codewin.lines pre .ln { counter-increment: ln; display: block; padding-left: 52px; position: relative; }
.codewin.lines pre .ln::before { content: counter(ln); position: absolute; left: 0; width: 38px; text-align: right; color: #4A5068; user-select: none; }
.codewin-foot { display: flex; justify-content: space-between; gap: 10px; padding: 6px 12px; font: 600 11px var(--font-mono); color: #626984; background: #0E1119; border-top: 1px solid #1A1E2C; }
/* syntax colors (own tiny highlighter) */
.tk-k { color: #C792EA; } .tk-s { color: #C3E88D; } .tk-c { color: #697098; font-style: italic; } .tk-n { color: #F78C6C; }
.tk-f { color: #82AAFF; } .tk-t { color: #FFCB6B; } .tk-p { color: #89DDFF; } .tk-a { color: #FFCB6B; } .tk-v { color: #F07178; }

/* ---------- toast / modal / palette ---------- */
.toast-host { position: fixed; z-index: 200; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; min-width: 240px; max-width: 380px; padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px;
  background: var(--bg-elevated); color: var(--text-main); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: toast-in .25s var(--ease);
}
.toast.ok { border-left: 3px solid var(--accent-green); }
.toast.bad { border-left: 3px solid var(--accent-red); }
.toast.info { border-left: 3px solid var(--accent-violet); }
.overlay { position: fixed; inset: 0; z-index: 150; background: rgba(5, 6, 10, .55); backdrop-filter: blur(3px); display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; }
.overlay.open { display: flex; animation: fade-in .15s var(--ease); }
.modal { width: 100%; max-width: 520px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); overflow: hidden; animation: pop-in .2s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border-subtle); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border-subtle); }
.palette { max-width: 620px; }
.palette-input { width: 100%; height: 54px; padding: 0 18px 0 46px; border: 0; border-bottom: 1px solid var(--border-subtle); background: transparent; font-size: 16px; outline: none; }
.palette-search { position: relative; }
.palette-search::before { content: '⌕'; position: absolute; left: 18px; top: 50%; transform: translateY(-52%); font-size: 20px; color: var(--text-muted); }
.palette-list { max-height: 52vh; overflow-y: auto; padding: 8px; }
.palette-group { padding: 10px 10px 4px; font: 700 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; text-align: left; font-size: 14.5px; color: var(--text-main); }
.palette-item .pi-ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-subtle); font-size: 14px; flex: 0 0 28px; }
.palette-item .pi-sub { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.palette-item.sel { background: var(--bg-hover); }
.palette-empty { padding: 24px; text-align: center; color: var(--text-muted); }
.palette-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--text-muted); }

/* ---------- home ---------- */
.hero { padding: 72px 0 40px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 18px; }
.hero .lead-v2 { font-size: 18.5px; line-height: 1.6; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 13.5px; color: var(--text-muted); }
.hero-trust span::before { content: '✓ '; color: var(--accent-green); font-weight: 800; }
.hero-visual { position: relative; }
.hero-visual::before { content: ''; position: absolute; inset: -40px; background: radial-gradient(closest-side, var(--glow), transparent); z-index: -1; }
.stat-strip-v2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-surface); overflow: hidden; }
.stat-strip-v2 > div { padding: 20px 22px; border-right: 1px solid var(--border-subtle); }
.stat-strip-v2 > div:last-child { border-right: 0; }
.stat-strip-v2 small { display: block; font: 600 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.stat-strip-v2 b { display: block; margin-top: 6px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.clients a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-full); background: var(--bg-surface); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--text-secondary); }
.clients a:hover { color: var(--text-main); border-color: var(--border-strong); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 24px; }
.feat .f-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--grad-soft); border: 1px solid var(--border-subtle); margin-bottom: 14px; }
.feat h3 { margin-bottom: 8px; }
.feat p { font-size: 14.5px; }
.steps-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: st; }
.step-v2 { position: relative; padding: 26px 22px 22px; }
.step-v2::before { counter-increment: st; content: counter(st); position: absolute; top: -14px; left: 22px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: var(--on-brand); background: var(--brand); box-shadow: 0 4px 12px var(--brand-shadow); }
.step-v2 h3 { margin: 6px 0 8px; }
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.model-tile { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.model-tile .mc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.model-tile .mc-name { font-weight: 700; font-size: 15px; }
.model-tile .mc-id { font: 12px var(--font-mono); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-tile .mc-bar { height: 4px; border-radius: 4px; background: var(--bg-subtle); overflow: hidden; }
.model-tile .mc-bar i { display: block; height: 100%; border-radius: 4px; background: var(--grad-accent); }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 4px; font-weight: 650; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--text-muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 4px 18px; color: var(--text-secondary); line-height: 1.65; }
.cta-band { position: relative; overflow: hidden; padding: 44px; border-radius: var(--radius-xl); background: var(--bg-surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: var(--grad-soft); pointer-events: none; }
.cta-band > * { position: relative; }

/* ---------- install ---------- */
.install-hero { padding: 56px 0 24px; text-align: center; }
.install-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 16px auto 14px; max-width: 860px; }
.install-hero p { font-size: 18px; max-width: 700px; margin: 0 auto; }
.install-card { max-width: 880px; margin: 30px auto 0; padding: 0; overflow: hidden; }
.install-step { padding: 22px 26px; border-bottom: 1px solid var(--border-subtle); }
.install-step:last-child { border-bottom: 0; }
.install-step-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; font-size: 16px; }
.install-step-title .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--on-brand); background: var(--brand); }
.key-status { margin-top: 10px; font-size: 13.5px; color: var(--text-muted); min-height: 21px; }
.key-status.ok { color: var(--accent-green); }
.key-status.bad { color: var(--accent-red); }
.os-tabs { margin-bottom: 18px; }
.dl-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dl-note { font-size: 13px; color: var(--text-muted); }
.oneliner { display: flex; align-items: stretch; gap: 0; border: 1px solid #23283a; border-radius: var(--radius-sm); overflow: hidden; background: #0B0D14; }
.oneliner code { flex: 1; padding: 12px 14px; font-size: 12.5px; color: #D8DCEA; white-space: nowrap; overflow-x: auto; }
.oneliner button { padding: 0 16px; font-weight: 650; font-size: 13px; color: #fff; background: #1C2030; border-left: 1px solid #23283a; }
.oneliner button:hover { background: #262B3E; }
.what-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.what-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-subtle); font-size: 14px; color: var(--text-secondary); }
.what-item b { color: var(--text-main); display: block; font-size: 14.5px; }
.what-item .wi { font-size: 18px; line-height: 1.2; }

/* ---------- pricing ---------- */
.price-tabs { display: flex; justify-content: center; margin-bottom: 26px; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.price-grid.price-grid-3 { grid-template-columns: repeat(3, 1fr); }
.price-card { position: relative; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.price-card.featured { border-color: transparent; background:
  linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
  var(--grad-accent) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow-md); }
.price-card .pc-badge { position: absolute; top: -11px; left: 18px; padding: 2px 10px; border-radius: 999px; font: 700 10.5px var(--font-mono); letter-spacing: .04em; color: var(--on-brand); background: var(--brand); }
.price-card .pc-tokens { font-size: 30px; font-weight: 850; letter-spacing: -.03em; }
.price-card .pc-tokens small { font-size: 14px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.price-card .pc-price { font-size: 20px; font-weight: 750; }
.price-card .pc-per { font-size: 12.5px; color: var(--text-muted); font-family: var(--font-mono); }
.price-card .pc-list { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-secondary); margin: 4px 0 8px; }
.price-card .pc-list li::before { content: '✓  '; color: var(--accent-green); font-weight: 800; }
.price-card .btn { margin-top: auto; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.calc .range { width: 100%; accent-color: var(--accent-violet); }
.calc-out { padding: 22px; border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid var(--border); }
.calc-out .big { font-size: 34px; font-weight: 850; letter-spacing: -.03em; }
.table-v2 { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-v2 th { text-align: left; font: 700 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table-v2 td { padding: 11px 12px; border-bottom: 1px solid var(--border-subtle); }
.table-v2 tr:hover td { background: var(--bg-hover); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-surface); }

/* ---------- page heads (docs, cabinet, news...) ---------- */
.page-head { padding: 48px 0 22px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 10px; }
.page-head p { font-size: 17px; max-width: 760px; }

/* ---------- animation ---------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .search-btn { min-width: 0; }
  .search-btn .sb-text, .search-btn kbd { display: none; }
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid, .price-grid.price-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav, .header-actions .hide-m { display: none; }
  .burger { display: inline-grid; }
  .hero-grid, .calc { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .feature-grid, .steps-v2 { grid-template-columns: 1fr; gap: 26px; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip-v2 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip-v2 > div:nth-child(2) { border-right: 0; }
  .stat-strip-v2 > div:nth-child(-n+2) { border-bottom: 1px solid var(--border-subtle); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .what-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container, .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 20px; }
  .hero h1 { font-size: 31px; }
  .hero .lead-v2 { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  #hero-term { font-size: 11.5px; }
  .dl-row .btn { flex: 1 1 100%; max-width: 100%; white-space: normal; text-align: center; }
  .model-grid, .price-grid, .price-grid.price-grid-3 { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; }
  .install-step { padding: 18px 16px; }
  .btn-lg { --h: 48px; padding: 0 20px; }
  .toast-host { left: 12px; right: 12px; }
  .toast { max-width: none; }
}

/* ---------- "site updated" note + old-design link ---------- */
.site-notice {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 360px; padding: 16px 18px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: notice-in .35s var(--ease);
}
.site-notice b { display: block; font-size: 14.5px; }
.site-notice p { margin: 4px 0 12px; font-size: 13.5px; }
.site-notice .row { display: flex; gap: 8px; flex-wrap: wrap; }
@keyframes notice-in { from { opacity: 0; transform: translateY(10px); } }
.classic-link { color: var(--text-muted); }
.classic-link:hover { color: var(--brand-ink); }
@media (max-width: 560px) { .site-notice { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---------- touch screens ---------- */
.phone-note { margin-bottom: 14px; }
.phone-note p { margin: 4px 0 12px; font-size: 14px; }
@media (pointer: coarse) {
  /* iOS zooms the page into any field with text smaller than 16px */
  input, textarea, select, .input, .select, .textarea { font-size: 16px !important; }
  .btn-sm { --h: 38px; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  .codewin-actions button { min-height: 32px; padding: 0 10px; }
}

/* =============================================================================
   Light theme: "paper and ink". Warm paper, crisp cards with warm shadows, a bright
   highlighter, and a few dark ink blocks that echo the dark theme (stats, best plan, CTA).
   ============================================================================= */
[data-theme="light"] .grad-text { background: linear-gradient(transparent 66%, var(--mark) 66%, var(--mark) 94%, transparent 94%); }
[data-theme="light"] .card { box-shadow: var(--shadow-sm); }
[data-theme="light"] .card-hover:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow: var(--shadow-hover); }
[data-theme="light"] .btn-secondary, [data-theme="light"] .btn.secondary { background: var(--bg-elevated); border-color: var(--border-strong); }
[data-theme="light"] .eyebrow-v2 { background: var(--bg-elevated); border-color: var(--border-strong); }
[data-theme="light"] .feat .f-ico { background: color-mix(in srgb, var(--brand) 12%, var(--bg-surface)); border-color: color-mix(in srgb, var(--brand) 22%, transparent); }
[data-theme="light"] .codewin { box-shadow: var(--shadow-lg); }

/* stats strip: an ink bar under the hero, continuing the dark terminal */
[data-theme="light"] .stat-strip-v2 { background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-lg); }
[data-theme="light"] .stat-strip-v2 > div { border-color: var(--ink-line); }
[data-theme="light"] .stat-strip-v2 small { color: var(--ink-muted); }
[data-theme="light"] .stat-strip-v2 b { color: var(--ink-text); }
[data-theme="light"] .stat-strip-v2 > div:first-child b { color: var(--brand); }

/* best plan: ink card */
[data-theme="light"] .price-card.featured { background: var(--ink); border: 1px solid var(--ink); box-shadow: var(--shadow-lg); color: var(--ink-text); }
[data-theme="light"] .price-card.featured .pc-tokens, [data-theme="light"] .price-card.featured .pc-price { color: var(--ink-text); }
[data-theme="light"] .price-card.featured .pc-tokens small, [data-theme="light"] .price-card.featured .pc-per { color: var(--ink-muted); }

/* CTA: ink band with a warm glow */
[data-theme="light"] .cta-band { background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-lg); }
[data-theme="light"] .cta-band::before { background: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--brand) 32%, transparent), transparent 70%); }
[data-theme="light"] .cta-band h2, [data-theme="light"] .cta-band h3 { color: var(--ink-text); }
[data-theme="light"] .cta-band p { color: var(--ink-muted); }
[data-theme="light"] .cta-band .btn-secondary { color: var(--ink-text); background: transparent; border-color: var(--ink-line); }
[data-theme="light"] .cta-band .btn-secondary:hover { background: var(--ink-2); }

[data-theme="light"] .site-footer { background: var(--bg-subtle); border-top-color: var(--border); }
[data-theme="light"] .step-v2::before { background: var(--ink); color: var(--brand); box-shadow: var(--shadow-sm); }
[data-theme="light"] .install-step-title .n { background: var(--ink); color: var(--brand); }
@media (max-width: 560px) {
  .stat-strip-v2 > div { padding: 16px; }
  .stat-strip-v2 b { font-size: 22px; white-space: nowrap; }
  .stat-strip-v2 small { font-size: 10px; letter-spacing: .06em; }
}

/* ---------- secret door (footer ▲ x5 or typing "admin") ---------- */
.site-footer .logo-mark { cursor: pointer; transition: transform .25s var(--ease); }
.egg { position: fixed; left: 50%; bottom: 18px; z-index: 180; width: min(440px, calc(100vw - 24px)); transform: translate(-50%, calc(100% + 40px));
  border-radius: 14px; overflow: hidden; background: #0B0D14; color: #D8DCEA; border: 1px solid #23283a; box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  transition: transform .45s cubic-bezier(.2, 1.2, .3, 1); font: 13.5px/1.6 var(--font-mono); }
.egg.open { transform: translate(-50%, 0); }
.egg-head { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px 0 12px; background: #11141E; border-bottom: 1px solid #1E2232; color: #8A90A6; font-size: 12px; font-weight: 600; }
.egg-x { margin-left: auto; width: 26px; height: 26px; border-radius: 7px; color: #8A90A6; }
.egg-x:hover { background: #1C2030; color: #fff; }
.egg-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.egg-line { opacity: 0; }
.egg-line.show { animation: egg-in .35s ease forwards; }
.egg-line .p { color: #3DD68C; margin-right: 6px; }
.egg-line .btn { margin-top: 8px; }
@keyframes egg-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
