/* bhovix-site/dist/assets/css/site.css
   Authored in-place per build.py:23. Token vars live in tokens.css.
   Vanilla CSS — no preprocessor, no Node, strict-CSP friendly.
   Visual language: Linear-style dark (refined 2026-05-17). */

/* ============================================================
   1. Font face (Inter v4 variable, self-hosted, woff2)
   ============================================================ */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-var.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   2. Token overrides — quiet down the Impact fallback + soften palette.
       (Channel config keeps Bebas Neue for engine video rendering;
        web site overrides display to Inter so headings stay readable.)
   ============================================================ */
:root {
  /* Surfaces */
  --bg-primary:   #0F1115;          /* near-black, slight warm shift */
  --bg-secondary: #1A1F2E;          /* charcoal panel */
  --bg-elevated: #1F2433;
  --bg-deep:      #07080B;

  /* Ink hierarchy (Linear convention) */
  --ink-bright:   #E7EAF0;
  --ink-muted:    #B6C2D2;          /* lighter than #94A3B8 — better contrast */
  --ink-subtle:   #8A93A4;
  --ink-tertiary: #5C6477;

  /* Borders */
  --hairline:        rgba(255, 255, 255, 0.06);
  --hairline-strong: rgba(255, 255, 255, 0.12);

  /* Accents stay from tokens.css; bind to ink so refs work */
  --text-on-dark: var(--ink-bright);
  --muted: var(--ink-muted);

  /* All headings use Inter (override the Impact fallback chain from tokens.css) */
  --font-display: "Inter", system-ui, sans-serif;
}

/* ============================================================
   3. Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-bright);
  background: var(--bg-primary);
  font-feature-settings: "ss01", "cv01", "cv02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink-bright);
}
h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  margin-top: 1.8em;
  letter-spacing: -0.015em;
}
h3 { font-size: 1.15rem; margin-top: 1.2em; }
h4 { font-size: 0.98rem; margin-top: 1em; }

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(34, 211, 238, 0.4);
  text-underline-offset: 3px;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}
a:hover { color: var(--accent-soft); text-decoration-color: var(--accent-soft); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(34, 211, 238, 0.07);
  color: var(--accent-soft);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

blockquote {
  margin: 1.25em 0;
  padding: 0.9em 1.1em;
  border-left: 3px solid var(--accent);
  background: var(--bg-secondary);
  color: var(--ink-bright);
  border-radius: 0 8px 8px 0;
}

hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 2em 0;
}

::selection { background: var(--accent); color: var(--text-on-accent); }

/* ============================================================
   4. Layout containers
   ============================================================ */
.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.section-hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(ellipse 70% 50% at 25% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 45% at 90% 10%, rgba(94, 106, 210, 0.05), transparent 60%),
    var(--bg-primary);
  overflow: hidden;
  isolation: isolate;
}
.section-hero h1 { margin-bottom: 0.4em; }

/* WebGL canvas behind hero text — fallback to CSS gradient if canvas missing/blocked */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 600ms ease;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0) 100%);
}
.hero-canvas + .wrap { position: relative; z-index: 1; }

/* Subtle depth on hero text (layered shadows give a "3D" lift on dark bg) */
.hero-headline {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.45);
}
.hero-headline .accent {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 30px rgba(34, 211, 238, 0.35);
}

.hero { max-width: 760px; }

/* Hero grid — text + 3D coin side by side on desktop, stacked on mobile */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 3rem; }
}
.hero-text { max-width: 600px; }

/* ============================================================
   Hero 3D stage — rotating CSS coin + orbital rings.
   Pure CSS 3D, CSP-safe, always-animating without JS.
   ============================================================ */
.hero-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 360px;
  max-height: 360px;
  margin: 0 auto;
  perspective: 900px;
  perspective-origin: 50% 50%;
  pointer-events: none;
}

.coin {
  position: absolute;
  inset: 22%;
  transform-style: preserve-3d;
  animation: coin-spin 9s linear infinite, coin-float 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 24px 40px rgba(34, 211, 238, 0.18));
}

.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.08),
    inset 0 10px 30px rgba(255, 255, 255, 0.18),
    inset 0 -20px 40px rgba(0, 0, 0, 0.55);
}
.coin-front {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(160deg, #22D3EE 0%, #5E6AD2 65%, #1E2533 100%);
  transform: translateZ(14px);
}
.coin-back {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(160deg, #FACC15 0%, #F59E0B 60%, #3B2E0F 100%);
  transform: translateZ(-14px) rotateY(180deg);
}
.coin-glyph {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5rem);
  color: rgba(15, 17, 21, 0.85);
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.4),
    0 -2px 4px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.04em;
}
.coin-edge {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, #0e7490 0%, #5E6AD2 50%, #0e7490 100%);
  transform: rotateX(90deg) scaleY(0.12);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.4);
}

/* Orbital rings — gentle rotation around the coin */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.2);
  transform-style: preserve-3d;
  pointer-events: none;
}
.orbit-1 { inset: 6%;  border-color: rgba(34, 211, 238, 0.28); animation: orbit-tilt-a 16s linear infinite; }
.orbit-2 { inset: 0%;  border-color: rgba(94, 106, 210, 0.22); animation: orbit-tilt-b 22s linear infinite reverse; }
.orbit-3 { inset: -8%; border-color: rgba(250, 204, 21, 0.14); border-style: dashed; animation: orbit-tilt-c 30s linear infinite; }

/* Tiny satellite dots */
.orbit-1::before, .orbit-2::before, .orbit-3::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
  transform: translateX(-50%);
}
.orbit-2::before { background: #5E6AD2; box-shadow: 0 0 12px rgba(94, 106, 210, 0.7); }
.orbit-3::before { background: var(--accent-alt); box-shadow: 0 0 12px rgba(250, 204, 21, 0.6); top: auto; bottom: -4px; }

@keyframes coin-spin {
  0%   { transform: rotateY(0deg) rotateX(8deg); }
  100% { transform: rotateY(360deg) rotateX(8deg); }
}
@keyframes coin-float {
  0%   { translate: 0 -6px; }
  100% { translate: 0 6px; }
}
@keyframes orbit-tilt-a {
  0%   { transform: rotateX(62deg) rotateY(0deg); }
  100% { transform: rotateX(62deg) rotateY(360deg); }
}
@keyframes orbit-tilt-b {
  0%   { transform: rotateX(72deg) rotateZ(10deg) rotateY(0deg); }
  100% { transform: rotateX(72deg) rotateZ(10deg) rotateY(360deg); }
}
@keyframes orbit-tilt-c {
  0%   { transform: rotateX(55deg) rotateZ(-20deg) rotateY(0deg); }
  100% { transform: rotateX(55deg) rotateZ(-20deg) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .coin, .orbit, .orbit-1, .orbit-2, .orbit-3 { animation: none; }
  .coin { transform: rotateY(-22deg) rotateX(8deg); }
}
@media (max-width: 860px) {
  .hero-3d { max-width: 220px; max-height: 220px; margin-top: 1rem; }
}

/* ============================================================
   Floating coin variant — appears on every non-home hero
   (tool pages, /about, /ai-audit, /disclaimer, /privacy, /terms,
    /contact, /thanks). Right-aligned, smaller, transparent enough
    not to crowd the text. Auto-injected by effects-3d.js.
   ============================================================ */
.section-hero.has-hero-3d-floating .wrap { position: relative; }
.hero-3d-floating {
  position: absolute;
  right: clamp(0.5rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(120px, 18vw, 200px);
  height: clamp(120px, 18vw, 200px);
  margin: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}
.hero-3d-floating .coin {
  inset: 18%;
  animation: coin-spin 8s linear infinite, coin-float 4s ease-in-out infinite alternate;
}
.hero-3d-floating .coin-face {
  border-width: 1.5px;
}
.hero-3d-floating .coin-glyph {
  font-size: clamp(2rem, 5vw, 3rem);
}
.hero-3d-floating .orbit-3 { display: none; } /* less busy on smaller scale */

@media (max-width: 720px) {
  .hero-3d-floating {
    position: static;
    transform: none;
    margin: 1rem auto 0;
    display: block;
  }
  .section-hero.has-hero-3d-floating .wrap { text-align: left; }
}

/* Floating-coin padding rule kept dormant — no .has-hero-3d-floating class
   is applied at runtime now that ensureHero3DEverywhere() is disabled.
   The rule below would still scope the padding correctly if the floating
   coin is ever re-enabled per-page. */
@media (min-width: 720px) {
  .section-hero.has-hero-3d-floating h1,
  .section-hero.has-hero-3d-floating .hero-sub {
    padding-right: clamp(140px, 22vw, 240px);
  }
}
.hero-headline {
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 0.4em;
  color: var(--ink-bright);
}
.hero-headline .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--ink-muted);
  max-width: 60ch;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2em; }
.prose p { color: var(--ink-bright); }

.muted { color: var(--ink-muted); }
.micro { font-size: 0.82rem; color: var(--ink-subtle); }
.accent { color: var(--accent); }

/* ============================================================
   5. Header + footer
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 1rem;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink-bright);
  line-height: 1.15;
}
.brand:hover { color: var(--ink-bright); }
.brand-mark {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand-tag {
  font-size: 0.7rem;
  color: var(--ink-subtle);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.site-nav a:hover { color: var(--ink-bright); border-bottom-color: var(--accent); }

.site-footer {
  margin-top: 4rem;
  padding-top: 3rem;
  background: var(--bg-deep);
  color: var(--ink-muted);
  border-top: 1px solid var(--hairline);
}
.footer-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 0.85em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4em; }
.footer-col a { color: var(--ink-muted); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--ink-bright); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.25rem; padding-bottom: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-subtle);
}

/* ============================================================
   6. Buttons — Linear-flat
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.7em 1.15em;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 150ms ease;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.btn:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
}
.btn-primary:hover { background: var(--accent-soft); color: var(--text-on-accent); box-shadow: 0 4px 14px rgba(34, 211, 238, 0.22); }
.btn-secondary {
  background: transparent;
  color: var(--ink-bright);
  border-color: var(--hairline-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-affiliate {
  background: #FBC02D;
  color: #1A1F2E;
}
.btn-affiliate:hover { background: #FACC15; color: #1A1F2E; box-shadow: 0 4px 14px rgba(250, 204, 21, 0.22); }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ============================================================
   7. Homepage tool grid
   ============================================================ */
.section-tools h2 + p { margin-top: -0.25em; color: var(--ink-muted); }
.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.1rem;
  margin-top: 1.75rem;
  perspective: 1200px;
}
.tool-card {
  display: block;
  padding: 1.35rem 1.35rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.0) 60%),
    var(--bg-secondary);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink-bright);
  transform-style: preserve-3d;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  will-change: transform;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.04) inset,
    0 2px 6px rgba(0, 0, 0, 0.25);
}
.tool-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.05), rgba(255, 255, 255, 0.0) 60%),
    var(--bg-elevated);
  color: var(--ink-bright);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 18px 42px -12px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(34, 211, 238, 0.08);
}
.tool-card h3 { margin: 0.5em 0 0.35em; font-size: 1.1rem; letter-spacing: -0.01em; }
.tool-card p { margin: 0; color: var(--ink-muted); font-size: 0.9rem; line-height: 1.55; }
.tool-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  padding: 0.2em 0.6em;
  border-radius: 999px;
}

/* ============================================================
   8. Tool page — input/output split
   ============================================================ */
.tool {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .tool { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
}
.tool-input, .tool-output {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.0) 50%),
    var(--bg-secondary);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.6rem 1.6rem 1.85rem;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 24px -8px rgba(0, 0, 0, 0.4);
}
.tool-input::before, .tool-output::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 60% at 50% -10%, rgba(34, 211, 238, 0.06), transparent 60%);
  opacity: 0.7;
}
.tool h2 {
  margin-top: 0;
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-subtle);
}

/* ============================================================
   9. Form fields
   ============================================================ */
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1rem; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; gap: 1rem; } }

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.35em;
  color: var(--ink-muted);
}
.field input[type="number"],
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select,
input[type="number"],
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  font-variant-numeric: tabular-nums;
  padding: 0.65em 0.85em;
  border-radius: 8px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-primary);
  color: var(--ink-bright);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field input:focus,
.field textarea:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}
.field input[aria-invalid="true"],
.field input.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}
.field-error {
  display: block;
  min-height: 1.1em;
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 0.3em;
}
.field-error:empty { min-height: 0; }
.field-hint { display: block; font-size: 0.76rem; color: var(--ink-subtle); margin-top: 0.3em; }

input[type="checkbox"], input[type="radio"] {
  width: auto; accent-color: var(--accent);
  margin-right: 0.4em;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  background: transparent;
}

textarea { min-height: 8em; resize: vertical; }

/* Honeypot — visually hidden but reachable to bots */
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ============================================================
   10. Metric grid (calculator output)
   ============================================================ */
.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 520px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }

.metric {
  position: relative;
  padding: 0.95rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.0) 60%),
    var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.05) inset,
    0 4px 12px -4px rgba(0, 0, 0, 0.4);
  animation: metric-breathe 6s ease-in-out infinite alternate;
}
.metric:nth-child(2) { animation-delay: -2s; }
.metric:nth-child(3) { animation-delay: -4s; }
.metric:nth-child(4) { animation-delay: -1s; }
@keyframes metric-breathe {
  from { transform: translateY(0) rotateX(0); }
  to   { transform: translateY(-3px) rotateX(1.2deg); }
}
@media (prefers-reduced-motion: reduce) { .metric { animation: none; } }
.metric:hover {
  border-color: rgba(34, 211, 238, 0.25);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 24px -8px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(34, 211, 238, 0.08);
}
.metric-label {
  font-size: 0.75rem;
  color: var(--ink-subtle);
  margin-bottom: 0.35em;
  font-weight: 500;
}
.metric-value {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.025em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 18px rgba(34, 211, 238, 0.25);
}
.metric-value.secondary {
  font-size: 1.3rem;
  color: var(--ink-bright);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 14px rgba(0, 0, 0, 0.45);
}

.verdict {
  grid-column: 1 / -1;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 0.85em 1.05em;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.05);
  border-left: 2px solid var(--accent);
  color: var(--ink-bright);
}
.verdict.warn { background: rgba(250, 204, 21, 0.06); border-left-color: var(--accent-alt); }
.verdict.bad  { background: rgba(248, 113, 113, 0.06); border-left-color: var(--error); }
.verdict.good { background: rgba(52, 211, 153, 0.06); border-left-color: var(--success); }

/* ============================================================
   11. Tables (audit-table, compare-table)
   ============================================================ */
.audit-table, .compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}
.audit-table th, .compare-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-subtle);
  padding: 0.65em 0.5em;
  border-bottom: 1px solid var(--hairline-strong);
}
.audit-table td, .compare-table td {
  padding: 0.55em 0.5em;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
.audit-table tr:last-child td, .compare-table tr:last-child td { border-bottom: none; }
.audit-table .col-cost, .audit-table .col-using, .audit-table .col-x { width: 1%; white-space: nowrap; }
.audit-table input[type="number"], .audit-table input[type="text"] { padding: 0.4em 0.5em; font-size: 0.9rem; }
.audit-table .row-remove {
  background: transparent;
  color: var(--ink-subtle);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25em 0.5em;
  line-height: 1;
}
.audit-table .row-remove:hover { color: var(--error); }

.compare-table tfoot td { padding-top: 1em; }
.compare-table .yes { color: var(--success); font-weight: 600; }
.compare-table .no { color: var(--error); font-weight: 600; }
.compare-table .partial { color: var(--accent-alt); font-weight: 600; }
.compare-table th[scope="col"] { color: var(--ink-bright); font-size: 0.95rem; }

@media (max-width: 540px) {
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 0.4em 0.3em; }
}

/* ============================================================
   12. Quiz
   ============================================================ */
.quiz-progress {
  height: 3px;
  background: var(--hairline);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.quiz-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 250ms ease;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-step h2 { margin-top: 0; }
.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
}
@media (min-width: 520px) { .quiz-options { grid-template-columns: 1fr 1fr; } }
.quiz-options label {
  display: flex;
  align-items: center;
  padding: 0.75em 0.95em;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
  font-size: 0.94rem;
}
.quiz-options label:hover { border-color: var(--hairline-strong); }
.quiz-options input[type="radio"]:checked + span { color: var(--accent); font-weight: 600; }
.quiz-options label:has(input[type="radio"]:checked) { border-color: var(--accent); background: rgba(34, 211, 238, 0.05); }
.quiz-result-pick {
  padding: 1.05rem 1.15rem;
  margin-bottom: 0.65rem;
  background: rgba(34, 211, 238, 0.05);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.quiz-result-pick h3 { margin: 0 0 0.35em; font-size: 1.05rem; }

/* ============================================================
   13. Details / how-calc, caveats, CTA rows
   ============================================================ */
.how-calc {
  margin-top: 1rem;
  padding: 0.65em 0.95em;
  background: var(--bg-primary);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}
.how-calc summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
}
.how-calc summary:hover { color: var(--accent-soft); }
.how-calc ul { margin-top: 0.6em; padding-left: 1.25em; color: var(--ink-muted); }
.how-calc code { background: rgba(34, 211, 238, 0.06); }

.caveats {
  margin-top: 1.5rem;
  padding: 0.95em 1.05em 1em;
  background: rgba(250, 204, 21, 0.04);
  border-left: 2px solid var(--accent-alt);
  border-radius: 0 8px 8px 0;
}
.caveats h4 { margin: 0 0 0.4em; color: var(--accent-alt); font-weight: 600; }
.caveats ul { margin-bottom: 0; color: var(--ink-muted); }

.tool-cta { margin: 1.4rem 0 0.5rem; }
.tool-cta-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ============================================================
   14. Email capture + contact form
   ============================================================ */
.email-capture { max-width: 32em; }
.email-capture .field { margin-bottom: 0.9rem; }
.email-capture .btn { margin-top: 0.4rem; }

/* ============================================================
   15. Legal pages
   ============================================================ */
.legal-toc {
  padding: 0.9em 1.15em 0.9em 2.3em;
  background: var(--bg-secondary);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  margin: 1em 0 2em;
}
.legal-toc ol { margin: 0; color: var(--ink-muted); }
.legal-toc li { margin-bottom: 0.3em; }
.legal-toc li a { color: var(--accent); }

/* ============================================================
   16. Disclosure banner
   ============================================================ */
.disclosure {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(7, 8, 11, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--hairline-strong);
  color: var(--ink-muted);
}
.disclosure[hidden] { display: none; }
.disclosure-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 0.7em; padding-bottom: 0.7em;
  font-size: 0.82rem;
}
.disclosure-inner strong { color: var(--ink-bright); font-weight: 600; }
.disclosure-dismiss {
  background: transparent;
  color: var(--ink-bright);
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.2em 0.6em;
  border-radius: 4px;
}
.disclosure-dismiss:hover { color: var(--accent); }

/* ============================================================
   17. AD SLOTS — CLS-safe reserved space, lazy-fillable.
       Hidden by default; ad-loader.js adds `body.ads-on` once
       a valid publisher_id is loaded from /assets/data/ads-config.json.
   ============================================================ */
body:not(.ads-on) .ad-container { display: none !important; }
body:not(.ads-on) .ad-slot-anchor { display: none !important; }

.ad-slot {
  display: block;
  margin: 1.5rem auto;
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.4), rgba(7, 8, 11, 0.6));
  border: 1px dashed var(--hairline-strong);
  border-radius: 8px;
  overflow: hidden;
  min-height: 0;
}
.ad-slot .adsbygoogle { display: block; width: 100%; height: 100%; }
.ad-slot[data-ad-state="empty"]::before {
  content: "Advertisement";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-tertiary);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.7;
}
.ad-label {
  display: block;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 0.35rem;
  opacity: 0.7;
}
.ad-container { margin: 1.75rem 0; }

.ad-slot-top     { max-width: 728px; aspect-ratio: 728 / 90; }
.ad-slot-inline  { max-width: 336px; aspect-ratio: 336 / 280; }
.ad-slot-mid     { max-width: 728px; aspect-ratio: 728 / 90; }
.ad-slot-sidebar { max-width: 300px; aspect-ratio: 300 / 600; position: sticky; top: 5rem; }

@media (max-width: 720px) {
  .ad-slot-top     { aspect-ratio: 320 / 100; }
  .ad-slot-mid     { aspect-ratio: 320 / 100; }
  .ad-slot-sidebar { display: none; }
}

@media (min-width: 1180px) {
  .tool-page main > .section:not(.section-hero) > .wrap.has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
  }
}

.ad-slot-anchor {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  margin: 0;
  max-width: 100%;
  height: 60px;
  aspect-ratio: auto;
  background: var(--bg-deep);
  border-top: 1px solid var(--hairline-strong);
  border-bottom: none; border-left: none; border-right: none;
  display: none;
}
body.ads-on .ad-slot-anchor.ad-active { display: block; }
.ad-slot-anchor[hidden] { display: none !important; }
.ad-anchor-dismiss {
  position: absolute;
  top: -28px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(7, 8, 11, 0.92);
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  color: var(--ink-bright);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ad-anchor-dismiss:hover { color: var(--accent); }

@media (min-width: 720px) {
  .ad-slot-anchor { display: none !important; }
}

.tool-list .ad-slot-feed {
  grid-column: 1 / -1;
  max-width: 728px;
  margin: 0.5rem auto;
  aspect-ratio: 728 / 200;
}
@media (max-width: 720px) {
  .tool-list .ad-slot-feed { aspect-ratio: 320 / 200; }
}

/* ============================================================
   17b. Motion-reduce + touch fallbacks for 3D effects
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .tool-card, .metric { transform: none !important; transition: none; }
  .hero-canvas { display: none; }
  .hero-headline, .hero-sub { transform: none !important; transition: none !important; }
}
@media (hover: none) {
  .tool-card, .metric { transform: none !important; }
}

/* ============================================================
   18. Accessibility helpers
   ============================================================ */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

@media (prefers-contrast: more) {
  body { color: #ffffff; }
  .muted, .micro { color: #d0d6e0; }
}

/* ============================================================
   19. Print
   ============================================================ */
@media print {
  .site-header, .site-footer, .ad-slot, .ad-container, .disclosure, .tool-cta { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .tool-input, .tool-output, .tool-card, .metric { background: white; border-color: #ccc; color: black; }
  .metric-value { color: black; }
  .field-label, .metric-label { color: black; }
}

/* ============================================================
   20. Small-screen polish
   ============================================================ */
.section-tools { padding-top: clamp(1.5rem, 4vw, 2.5rem); }

@media (max-width: 720px) {
  .footer-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .header-wrap { padding-top: 0.7rem; padding-bottom: 0.7rem; }
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.88rem; }
  .brand-tag { display: none; }
  .section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
}
