/* AnswerAudit SEO + GEO Audit Tool: shared styles.
   Pure vanilla CSS. No frameworks. Fonts are vendored locally
   (assets/fonts/, SIL OFL); icons are inline Lucide SVGs (ISC).
   Light theme is the default.
   Zero em/en dashes anywhere in this file. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/inter-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

:root {
  --bg: #F5F7F8;
  --paper: #F5F7F8;
  --surface: #FFFFFF;
  --surface-2: #F0F4F2;
  --hairline: #E2E6EB;
  --text: #101828;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #5B6472;
  --faint: #6B7A8D;
  --line: #E2E6EB;
  --line-strong: #C9D0D9;
  --accent: #0B6E4F;
  --accent-2: #10B981;
  --accent-dark: #085640;
  --accent-tint: #E4F3EC;
  --accent-tint-2: #CDE9DC;
  --gradient: linear-gradient(135deg, #0B6E4F 0%, #10B981 100%);
  --green: #067647;
  --green-bg: #E7F6EE;
  --green-soft: #F0FDF4;
  --amber: #9A4A08;
  --amber-bg: #FEF3E4;
  --amber-soft: #FFFBEB;
  --red: #B42318;
  --red-bg: #FDEEEC;
  --red-soft: #FEF2F2;
  --blue: #0B6E4F;
  --blue-bg: #E4F3EC;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

[data-theme="night"] {
  --bg: #0B132B;
  --paper: #0B132B;
  --surface: #121C33;
  --surface-2: #16223D;
  --hairline: #2A3B5C;
  --text: #EDF2FA;
  --ink: #EDF2FA;
  --ink-2: #BAC7D5;
  --muted: #93A7C4;
  --faint: #6B7FA3;
  --line: #2A3B5C;
  --line-strong: #3E5274;
  --accent: #10B981;
  --accent-2: #34D399;
  --accent-dark: #059669;
  --accent-tint: rgba(16, 185, 129, 0.16);
  --accent-tint-2: rgba(16, 185, 129, 0.28);
  --green: #10B981;
  --green-bg: rgba(16, 185, 129, 0.16);
  --green-soft: rgba(16, 185, 129, 0.08);
  --amber: #F59E0B;
  --amber-bg: rgba(245, 158, 11, 0.16);
  --amber-soft: rgba(245, 158, 11, 0.08);
  --red: #EF4444;
  --red-bg: rgba(239, 68, 68, 0.16);
  --red-soft: rgba(239, 68, 68, 0.08);
  --blue: #10B981;
  --blue-bg: rgba(16, 185, 129, 0.16);
}

[data-theme="day"] {
  --bg: #F5F7F8;
  --paper: #F5F7F8;
  --surface: #FFFFFF;
  --surface-2: #F0F4F2;
  --hairline: #E2E6EB;
  --text: #101828;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #5B6472;
  --faint: #6B7A8D;
  --line: #E2E6EB;
  --line-strong: #C9D0D9;
  --accent: #0B6E4F;
  --accent-2: #10B981;
  --green: #067647;
  --green-bg: #E7F6EE;
  --green-soft: #F0FDF4;
  --amber: #9A4A08;
  --amber-bg: #FEF3E4;
  --amber-soft: #FFFBEB;
  --red: #B42318;
  --red-bg: #FDEEEC;
  --red-soft: #FEF2F2;
  --blue: #0B6E4F;
  --blue-bg: #E4F3EC;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  position: relative;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Ambient background glows */
.hero-ambient-glow { position: absolute; top: -80px; right: -50px; width: 720px; height: 720px; background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(52, 211, 153, 0.12) 35%, rgba(245, 247, 248, 0) 70%); pointer-events: none; z-index: 0; filter: blur(40px); }
.hero-ambient-left { position: absolute; top: 100px; left: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(11, 110, 79, 0.1) 0%, rgba(245, 247, 248, 0) 70%); pointer-events: none; z-index: 0; filter: blur(50px); }
[data-theme="night"] .hero-ambient-glow { background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.08) 35%, rgba(11, 19, 43, 0) 70%); }
[data-theme="night"] .hero-ambient-left { background: radial-gradient(circle, rgba(11, 110, 79, 0.08) 0%, rgba(11, 19, 43, 0) 70%); }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px 64px; position: relative; z-index: 1; }
.wrap.narrow { max-width: 960px; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 6px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.3px; }
.brand:hover { text-decoration: none; }
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand:hover .brand-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(11, 110, 79, 0.4);
}
.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -1px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 110, 79, 0.35);
}
.header-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(11, 110, 79, 0.1);
  border: 1px solid rgba(11, 110, 79, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.site-nav a.active { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }
.theme-btn {
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  box-shadow: var(--shadow-sm);
}
.header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(11, 110, 79, 0.3);
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn svg, .btn-ghost svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn-small { padding: 8px 13px; font-size: 14px; }

/* Hero */
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #E4F3EC; border: 1px solid #CDE9DC; border-radius: 999px; padding: 6px 16px; font-family: var(--mono); font-size: 0.82rem; font-weight: 600; color: var(--emerald); margin-bottom: 20px; }
[data-theme="night"] .hero-badge { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.25); color: #34D399; }
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0.75;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  60%, 100% { transform: scale(2.2); opacity: 0; }
}

.text-gradient {
  background: linear-gradient(135deg, #0B6E4F 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="day"] .text-gradient {
  background: linear-gradient(135deg, #0B6E4F 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero { padding: 32px 0 10px; }
.hero h1 { font-family: var(--display); font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.025em; font-weight: 800; color: #101828; }
[data-theme="night"] .hero h1 { color: #FFFFFF; }
.hero p.lede { font-size: 1.15rem; line-height: 1.6; color: #475467; margin: 0 0 12px; max-width: 720px; }
[data-theme="night"] .hero p.lede { color: #94A3B8; }
.hero p.sub { font-size: 0.95rem; color: #64748B; margin: 0 0 20px; max-width: 700px; }
[data-theme="night"] .hero p.sub { color: #6B7FA3; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 13px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.hero-chip:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.hero-chip svg { width: 14px; height: 14px; color: var(--accent); }

/* Audit form */
.audit-form { position: relative; background: #FFFFFF; border: 1px solid #E2E6EB; border-radius: 20px; padding: 32px; margin-top: 28px; box-shadow: 0 4px 24px -2px rgba(16, 24, 40, 0.05); overflow: hidden; }
[data-theme="night"] .audit-form { background: #121C33; border-color: #2A3B5C; box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.3); }
.audit-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0B6E4F, #10B981, #34D399);
}
.audit-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.url-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.url-input-wrap {
  position: relative;
  flex: 1 1 320px;
  display: flex;
  align-items: center;
}
.url-icon {
  position: absolute;
  left: 15px;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s ease;
}
.url-icon svg { width: 19px; height: 19px; }
.url-input-wrap input[type="url"], .url-input-wrap input[type="text"] { width: 100%; height: 52px; background: #FFFFFF; border: 1.5px solid #CBD5E1; color: var(--text); border-radius: 12px; padding: 0 16px 0 48px; font-size: 1.02rem; font-family: var(--font); box-sizing: border-box; transition: all 0.2s ease; }
[data-theme="night"] .url-input-wrap input[type="url"], [data-theme="night"] .url-input-wrap input[type="text"] { background: #16223D; border-color: #3E5274; color: #FFFFFF; }
.url-input-wrap input::placeholder { color: var(--faint); }
.url-input-wrap:focus-within .url-icon { color: var(--accent); }
.url-input-wrap input:focus-visible,
.url-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint-2), 0 4px 12px rgba(11, 110, 79, 0.1);
  background: var(--surface);
}

/* Animated Button */
.btn-animated { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px; background: #0B6E4F; color: #FFFFFF; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; font-family: var(--font); cursor: pointer; white-space: nowrap; box-shadow: 0 4px 14px rgba(11, 110, 79, 0.28); transition: all 0.2s ease; }
.btn-animated:hover { background: #085640; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11, 110, 79, 0.35); filter: none; }
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.btn-animated::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.75s ease;
}
.btn-animated:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(11, 110, 79, 0.45), 0 2px 4px rgba(0, 0, 0, 0.15);
  filter: brightness(1.06);
}
.btn-animated:hover::after {
  left: 150%;
}
.btn-animated:active {
  transform: translateY(0);
}
.btn-animated:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
  box-shadow: 0 4px 14px rgba(11, 110, 79, 0.25);
}
.btn-animated .btn-arrow {
  display: inline-block;
  font-size: 16px;
  transition: transform 0.22s ease;
}
.btn-animated:hover .btn-arrow {
  transform: translateX(4px);
}
.btn-spinner {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}
.btn-spinner svg {
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.mode-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--muted); }
.mode-row label { display: inline-flex; align-items: center; gap: 7px; font-weight: 400; margin: 0; cursor: pointer; }
.mode-row input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }
.form-note { font-size: 13px; color: var(--faint); margin: 14px 0 0; line-height: 1.5; }
.form-error {
  display: none;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid var(--red);
  border-radius: 10px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 14px;
}
.form-error.show { display: block; }
.demo-link { font-size: 14px; margin-top: 14px; color: var(--muted); }

/* ==========================================================================
   Live Audit Loading Dashboard (AuditFlow Architecture - Day & Night Mode)
   Matches Master Plan & Design References: Stepper, 3D Hologram / Gauge,
   Live Activity Timeline, Elapsed Timer, Checks Counter & Ticker.
   ========================================================================== */
.audit-loading-dashboard {
  display: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg, 16px);
  padding: 28px 32px;
  margin-top: 24px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  animation: fadeInDashboard 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.audit-loading-dashboard.show { display: block; }
.progress { display: none; }
.progress.show { display: block; }

@keyframes fadeInDashboard {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Top Active Audit Bar */
.loading-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.loading-url-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loading-url-pill .pill-icon { color: var(--accent); flex-shrink: 0; }
.loading-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pill-running-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10B981, #0B6E4F);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(11, 110, 79, 0.4);
}
.pill-running-status .radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  animation: radarPulse 1.4s infinite ease-in-out;
}
@keyframes radarPulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 10px #ffffff; }
  100% { transform: scale(0.8); opacity: 0.5; }
}
.btn-cancel-audit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-cancel-audit:hover {
  background: var(--surface-2);
  color: var(--fg);
  border-color: var(--muted);
}
.loading-micro-sub {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 24px;
}

/* Central Visual Hero Section */
.loading-hero {
  text-align: center;
  padding: 10px 0 24px;
}
.loading-heading {
  font-size: 26px;
  font-weight: 700;
  margin: 12px 0 6px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.loading-subheading {
  font-size: 15px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* Central 3D Holographic / Gauge Visual */
.loading-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  margin: 10px auto 28px;
}

/* Circular Donut Gauge Visual (Matches Reference Images on Mobile & Desktop) */
.circular-progress-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circular-progress-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.circular-progress-svg .circle-bg {
  stroke: var(--hairline);
  opacity: 0.5;
}
.circular-progress-svg .circle-bar {
  transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.6));
}
.circle-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.circle-pct {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}
.circle-status-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
[data-theme="day"] .circular-progress-svg .circle-bg {
  stroke: #e2e8f0;
  opacity: 1;
}
[data-theme="day"] .circular-progress-svg .circle-bar {
  filter: drop-shadow(0 2px 8px rgba(11, 110, 79, 0.3));
}
.hologram-stage {
  position: relative;
  width: 240px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}
.hologram-ring {
  position: absolute;
  width: 210px;
  height: 70px;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid rgba(11, 110, 79, 0.4);
  box-shadow: 0 0 30px rgba(11, 110, 79, 0.35), inset 0 0 20px rgba(11, 110, 79, 0.2);
  transform: rotateX(65deg);
  animation: ringPulse 3s infinite ease-in-out;
}
@keyframes ringPulse {
  0%, 100% { transform: rotateX(65deg) scale(0.96); opacity: 0.6; }
  50% { transform: rotateX(65deg) scale(1.04); opacity: 1; box-shadow: 0 0 45px rgba(11, 110, 79, 0.5); }
}
.hologram-card {
  position: relative;
  width: 140px;
  height: 95px;
  background: var(--surface-2);
  border: 1px solid rgba(11, 110, 79, 0.5);
  border-radius: 10px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(11, 110, 79, 0.25);
  transform: rotateX(12deg) rotateY(-8deg);
  padding: 8px 10px;
  z-index: 2;
  animation: floatCard 4s infinite ease-in-out;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotateX(12deg) rotateY(-8deg); }
  50% { transform: translateY(-8px) rotateX(8deg) rotateY(-4deg); }
}
.hologram-card-header {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.hologram-card-header .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.hologram-card-header .dot.red { background: #ef4444; }
.hologram-card-header .dot.yellow { background: #f59e0b; }
.hologram-card-header .dot.green { background: #22c55e; }
.hologram-card-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hologram-card-lines .hline {
  height: 4px;
  background: var(--hairline);
  border-radius: 2px;
}
.hologram-card-lines .hline.l1 { width: 75%; background: var(--accent); }
.hologram-card-lines .hline.l2 { width: 90%; }
.hologram-card-lines .hline.l3 { width: 60%; }
.hologram-card-lines .hline.l4 { width: 85%; }

/* Floating Glowing Satellite Badges */
.floating-badge {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.badge-search {
  top: 10px;
  left: 10px;
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.3);
  animation: floatBadge1 3.5s infinite ease-in-out;
}
.badge-shield {
  bottom: 20px;
  left: 15px;
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
  animation: floatBadge2 4s infinite ease-in-out;
}
.badge-chart {
  top: 15px;
  right: 15px;
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.3);
  animation: floatBadge3 3.8s infinite ease-in-out;
}
.badge-sparkle {
  bottom: 25px;
  right: 10px;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
  animation: floatBadge4 4.2s infinite ease-in-out;
}

@keyframes floatBadge1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes floatBadge2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes floatBadge3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes floatBadge4 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Circular Donut Progress Gauge Stage (Light Mode & Mobile Hero) */
.circular-gauge-stage {
  position: relative;
  width: 170px;
  height: 170px;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.circular-gauge-svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}
.gauge-bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}
html[data-theme="day"] .gauge-bg-circle {
  stroke: #e2e8f0;
}
.gauge-arc-circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 389.56;
  stroke-dashoffset: 350;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 8px rgba(11, 110, 79, 0.5));
}
.gauge-center-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.gauge-pct-text {
  font-size: 32px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  letter-spacing: -0.02em;
  font-family: var(--mono);
}
.gauge-sub-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}
html[data-theme="day"] .circular-gauge-stage {
  display: flex;
}
html[data-theme="day"] .hologram-stage {
  display: none;
}
@media (max-width: 768px) {
  .circular-gauge-stage {
    display: flex !important;
  }
  .hologram-stage {
    display: none !important;
  }
}

/* 5-Step Process Stepper Timeline */
.audit-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 10px 0 28px;
  position: relative;
}
.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
}
.step-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--hairline);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}
.step-node.active .step-icon-wrap {
  background: linear-gradient(135deg, #10B981, #0B6E4F);
  border-color: #0B6E4F;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(11, 110, 79, 0.5);
  transform: scale(1.08);
}
.step-node.completed .step-icon-wrap {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}
.step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 2px;
}
.step-node.active .step-num { color: var(--accent); }
.step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}
.step-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  max-width: 110px;
}
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--hairline);
  margin-top: 22px;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease;
}
.step-connector.active {
  background: linear-gradient(90deg, #10b981, #10B981);
}

/* Overall Progress Card & Dynamic Stats */
.loading-progress-card {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.progress-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.progress-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}
.progress-pct-badge {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
}
.loading-progress-card .bar-track {
  height: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.loading-progress-card .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0B6E4F 0%, #10B981 100%);
  border-radius: 999px;
  width: 5%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(0, 112, 243, 0.5);
}

.loading-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1080px) {
  .loading-stats-row { grid-template-columns: repeat(2, 1fr); }
}
.stat-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-width: 0;
}
.stat-box.ai-assistant-box {
  background: linear-gradient(135deg, rgba(11, 110, 79, 0.08) 0%, rgba(11, 110, 79, 0.12) 100%);
  border-color: rgba(11, 110, 79, 0.35);
}
.ai-mascot-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  animation: floatMascot 3.5s infinite ease-in-out;
}
@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.ai-mascot-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.ai-mascot-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-mascot-text p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}
.stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon-green { color: #10b981; }
.stat-icon-purple { color: #0B6E4F; }
.stat-text-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  font-family: var(--mono);
}
.stat-ticker {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Live Activity Diagnostic Log Card */
.live-activity-card {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.activity-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.activity-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}
.activity-status-pill {
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.activity-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 13px;
  transition: all 0.2s ease;
}
.activity-row .row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}
.activity-row .row-status-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activity-row .row-status-icon.done {
  background: #10b981;
  color: #ffffff;
}
.activity-row .row-status-icon.in-progress {
  border: 2px solid #10B981;
}
.activity-row .row-status-icon .spin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  animation: pulseInprog 1s infinite alternate;
}
@keyframes pulseInprog { from { opacity: 0.3; } to { opacity: 1; } }
.activity-row .row-status-icon.pending {
  border: 1px solid var(--hairline);
  background: transparent;
}
.activity-row .row-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-status-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.tag-done {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.tag-progress {
  background: rgba(11, 110, 79, 0.15);
  color: #818cf8;
}
.tag-pending {
  background: var(--surface-2);
  color: var(--muted);
}
.row-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  min-width: 40px;
  text-align: right;
}

.activity-tip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(11, 110, 79, 0.08);
  border: 1px dashed rgba(11, 110, 79, 0.3);
  border-radius: 8px;
  padding: 8px 14px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--fg);
}
.tip-left-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.activity-tip-banner .tip-icon { font-size: 14px; }
.tip-mascot-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  animation: floatMascot 3s infinite ease-in-out;
}

/* Bottom Trust Guarantees Bar */
.loading-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 10px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
}
.trust-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.trust-purple { background: rgba(11, 110, 79, 0.15); color: #0B6E4F; }
.trust-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.trust-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.trust-text strong {
  display: block;
  font-size: 13px;
  color: var(--fg);
  line-height: 1.2;
}
.trust-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* Day Mode Adaptations */
html[data-theme="day"] .audit-loading-dashboard {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}
html[data-theme="day"] .hologram-card {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 0 15px rgba(11, 110, 79, 0.2);
}
html[data-theme="day"] .loading-progress-card .bar-track {
  background: #e2e8f0;
}
html[data-theme="day"] .pill-running-status {
  box-shadow: 0 0 12px rgba(11, 110, 79, 0.3);
}

/* Responsive Mobile Layout (375px - 768px) */
@media (max-width: 768px) {
  .audit-loading-dashboard { padding: 18px 16px; }
  .loading-top-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .loading-url-pill { max-width: 100%; }
  .loading-top-right { justify-content: space-between; width: 100%; }
  .loading-heading { font-size: 20px; }
  .loading-subheading { font-size: 13px; }
  
  .audit-stepper {
    overflow-x: auto;
    padding-bottom: 12px;
    justify-content: flex-start;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .step-node { min-width: 90px; }
  .step-desc { display: none; }
  .step-connector { min-width: 20px; }
  
  .loading-stats-row { grid-template-columns: 1fr; gap: 10px; }
  .loading-trust-bar { grid-template-columns: 1fr 1fr; gap: 10px; }
  .activity-row { font-size: 12px; padding: 6px 10px; }
  .row-time { display: none; }
}

@media (max-width: 480px) {
  .loading-trust-bar { grid-template-columns: 1fr; }
}


/* Report */
.report { margin-top: 24px; }

/* Report header: title, date, success badge, header actions, and screenshot preview */
.report-head { padding: 8px 0 0; }
.report-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.report-head-info {
  flex: 1 1 480px;
  min-width: 0;
}
.report-kicker { font-size: 14px; color: var(--muted); margin: 0 0 2px; }
.report-head h1 { font-size: 28px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.6px; font-weight: 800; word-break: break-all; }
.report-head h1 .mode-word { color: var(--accent); }
.report-head .report-sub { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.report-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-bg);
  border-radius: 999px;
  padding: 4px 11px;
}
.success-badge svg { width: 14px; height: 14px; }
.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(11, 110, 79, 0.12);
  border: 1px solid rgba(11, 110, 79, 0.25);
  border-radius: 999px;
  padding: 4px 11px;
  letter-spacing: 0.2px;
}

/* Screenshot Preview Card in Report Header */
.report-preview-col {
  flex: 0 0 340px;
  max-width: 100%;
  margin-top: 4px;
}
@media (max-width: 840px) {
  .report-preview-col {
    flex: 1 1 100%;
    max-width: 440px;
  }
}
.report-preview-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  user-select: none;
}
.report-preview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 110, 79, 0.45);
  box-shadow: 0 16px 36px -10px rgba(11, 110, 79, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
}
.report-preview-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.preview-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
}
.preview-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.p-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.p-dot.red { background: #ef4444; }
.p-dot.yellow { background: #f59e0b; }
.p-dot.green { background: #10b981; }
.preview-url-pill {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-url-pill svg {
  width: 11px;
  height: 11px;
  color: var(--faint);
  flex-shrink: 0;
}
.preview-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.preview-zoom-btn svg {
  width: 12px;
  height: 12px;
}
.preview-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0b0f19;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.report-preview-card:hover .preview-thumb {
  transform: scale(1.03);
  filter: brightness(0.92);
}
.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.report-preview-card:hover .preview-overlay {
  opacity: 1;
}
.zoom-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.zoom-badge svg {
  width: 13px;
  height: 13px;
}
.preview-img-wrap.img-fallback::before {
  content: "Screenshot preview loading or unavailable";
  color: var(--faint);
  font-size: 12px;
  text-align: center;
  padding: 20px;
}
.preview-img-wrap.img-fallback .preview-thumb {
  display: none;
}

/* Lightbox Modal */
.screenshot-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(8px);
  animation: modal-fade-in 0.2s ease;
}
.modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-scale-in 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-scale-in {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.modal-url-pill {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 5px 12px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal-url-pill svg {
  width: 13px;
  height: 13px;
  color: var(--faint);
  flex-shrink: 0;
}
.modal-close-btn {
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.modal-close-btn:hover {
  background: var(--surface-2);
  color: var(--red);
}
.modal-close-btn svg {
  width: 16px;
  height: 16px;
}
.modal-img-wrap {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  max-height: calc(90vh - 54px);
  background: #070a10;
  padding: 16px;
  text-align: center;
}
.modal-img-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat-card.score-card { display: flex; gap: 16px; align-items: center; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.stat-label svg { width: 15px; height: 15px; color: var(--faint); }
.stat-num { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; line-height: 1; }
.stat-num small { font-size: 15px; font-weight: 600; color: var(--faint); letter-spacing: 0; }
.stat-bar { height: 7px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.stat-bar span { display: block; height: 100%; border-radius: 99px; transform: scaleX(0); transform-origin: left; animation: bar-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes bar-in { to { transform: scaleX(1); } }
.stat-pct { font-size: 13px; font-weight: 700; margin-top: 8px; }
.stat-sub { font-size: 12px; color: var(--faint); margin-top: 2px; }
.donut-wrap { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.donut-wrap svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.donut-track { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.donut-arc { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dashoffset: var(--donut-target, 289); animation: donut-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes donut-in { from { stroke-dashoffset: 289; } to { stroke-dashoffset: var(--donut-target, 289); } }
.donut-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-num .num { font-size: 28px; font-weight: 800; letter-spacing: -0.8px; line-height: 1; }
.donut-num .of { font-size: 11px; color: var(--faint); margin-top: 2px; }
.score-verdict { min-width: 0; }
.score-verdict .verdict { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.score-verdict .verdict-sub { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }
.impact-dots { display: flex; gap: 5px; margin-top: 12px; }
.impact-dots .dot { width: 22px; height: 7px; border-radius: 99px; background: var(--surface-2); }
.impact-dots .dot.on { background: var(--green); }
.impact-dots .dot.on.med { background: var(--amber); }
.impact-dots .dot.on.low { background: var(--blue); }

/* Strengths: what is perfect, in green */
.strengths {
  background: var(--green-soft);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 16px;
}
.strengths h2 { font-size: 16px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.strengths h2 svg { width: 18px; height: 18px; color: var(--green); }
.strengths p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.strength-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.strength-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: var(--surface);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
}
.strength-chip svg { width: 14px; height: 14px; }
.strength-chip .chip-score { font-weight: 800; }

/* Checks banner */
.checks-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 16px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.checks-banner .banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(11, 110, 79, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.checks-banner .banner-icon svg { width: 22px; height: 22px; }
.checks-banner h2 { font-size: 17px; margin: 0 0 2px; }
.checks-banner p { font-size: 14px; color: var(--muted); margin: 0; }
.checks-banner .banner-action { margin-left: auto; }

/* GEO dialog */
.geo-dialog { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; max-width: 520px; background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25); }
.geo-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.geo-dialog h2 { margin: 0 0 8px; font-size: 19px; }
.geo-dialog p { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.geo-dialog .dialog-close { margin-top: 12px; }

/* Report layout: sidebar + main */
.report-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; margin-top: 16px; align-items: start; }
.report-main { min-width: 0; }
.report-side { position: sticky; top: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.side-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 8px 10px; border-radius: 8px; }
.side-title svg { width: 16px; height: 16px; color: var(--accent); }
.side-title .side-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(11, 110, 79, 0.1); border-radius: 999px; padding: 2px 8px; }
.side-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--faint); padding: 12px 10px 4px; }
.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.side-item:hover { background: var(--surface-2); color: var(--text); }
.side-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--faint); }
.side-item .side-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--faint); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.side-item .side-count.bad { color: var(--red); background: var(--red-bg); }
.side-note-card { margin-top: 12px; padding: 14px; }
.side-note-card h3 { font-size: 14px; margin: 0 0 4px; display: flex; gap: 7px; align-items: center; }
.side-note-card h3 svg { width: 15px; height: 15px; color: var(--accent); }
.side-note-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* Cards (kept for compatibility with existing sections) */
section.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}
section.card h2 { font-size: 18px; margin: 0 0 4px; letter-spacing: -0.3px; }
section.card h3 { font-size: 15px; margin: 18px 0 6px; }
section.card .card-sub { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.formula { font-family: var(--mono); font-size: 13px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: nowrap; }

/* Category bars (kept) */
.cat-row { margin-bottom: 14px; }
.cat-row:last-child { margin-bottom: 0; }
.cat-head { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.cat-head .cat-name { font-weight: 600; }
.cat-head .cat-weight { color: var(--faint); font-size: 13px; }
.cat-head .cat-score { font-weight: 700; }
.cat-bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.cat-bar span { display: block; height: 100%; border-radius: 99px; }
.cat-counts { font-size: 12px; color: var(--faint); margin-top: 3px; }

/* Filter chips + sort */
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.filter-row .filter-label { font-size: 14px; color: var(--muted); margin-right: 2px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.active.chip-fail { background: var(--red); border-color: var(--red); }
.chip.active.chip-warn { background: var(--amber); border-color: var(--amber); }
.chip.active.chip-pass { background: var(--green); border-color: var(--green); }
.chip .chip-n { font-weight: 800; }
.sort-wrap { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.sort-wrap select {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 7px 9px;
  cursor: pointer;
}

/* Category sections with check tables */
.cat-section {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin-top: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cat-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font);
  color: var(--text);
  padding: 16px 20px;
  cursor: pointer;
}
.cat-sec-head:hover { background: var(--surface-2); }
.cat-sec-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(11, 110, 79, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-sec-icon svg { width: 18px; height: 18px; }
.cat-sec-title { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.cat-sec-title .cat-sec-n { font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(11, 110, 79, 0.1); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 1px; }
.cat-sec-counts { display: flex; gap: 10px; margin-left: auto; font-size: 13px; font-weight: 700; align-items: center; }
.count-pill { display: inline-flex; align-items: center; gap: 4px; }
.count-pill svg { width: 15px; height: 15px; }
.count-pill.ok { color: var(--green); }
.count-pill.warn { color: var(--amber); }
.count-pill.fail { color: var(--red); }
.cat-sec-chevron { color: var(--faint); transition: transform 0.25s ease; flex-shrink: 0; }
.cat-sec-chevron svg { width: 18px; height: 18px; display: block; }
.cat-section.closed .cat-sec-chevron { transform: rotate(-90deg); }
.cat-body { border-top: 1px solid var(--hairline); display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.cat-body-inner { overflow: hidden; min-height: 0; }
.cat-section.closed .cat-body { grid-template-rows: 0fr; }
.check-head-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 92px 76px 24px;
  gap: 12px;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--faint);
  border-bottom: 1px solid var(--hairline);
}
.check-row { border-bottom: 1px solid var(--hairline); }
.check-row:last-child { border-bottom: none; }
.check-row.hidden-by-filter { display: none; }
.check-row.collapsed-extra { display: none; }
.cat-section.show-all .check-row.collapsed-extra { display: block; }
.check-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 92px 76px 24px;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font);
  padding: 13px 20px;
  cursor: pointer;
  color: var(--text);
}
.check-head:hover { background: var(--surface-2); }
.check-head .check-status-ic { display: flex; align-items: center; justify-content: center; }
.check-head .check-status-ic svg { width: 19px; height: 19px; }
.check-head .check-status-ic.pass { color: var(--green); }
.check-head .check-status-ic.warn { color: var(--amber); }
.check-head .check-status-ic.fail { color: var(--red); }
.check-title { font-size: 14px; font-weight: 600; line-height: 1.35; min-width: 0; }
.check-title .check-sub { display: block; font-size: 12px; font-weight: 400; color: var(--faint); margin-top: 1px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.status-pill svg { width: 12px; height: 12px; }
.status-pill.pass { color: var(--green); background: var(--green-bg); }
.status-pill.warn { color: var(--amber); background: var(--amber-bg); }
.status-pill.fail { color: var(--red); background: var(--red-bg); }
.impact-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.impact-pill.high { color: var(--red); background: var(--red-bg); }
.impact-pill.medium { color: var(--amber); background: var(--amber-bg); }
.impact-pill.low { color: var(--blue); background: var(--blue-bg); }
.impact-pill.none { color: var(--faint); background: var(--surface-2); }
.check-chevron { color: var(--faint); display: flex; justify-content: center; transition: transform 0.25s ease; }
.check-chevron svg { width: 16px; height: 16px; }
.check-row.open .check-chevron { transform: rotate(180deg); }
.check-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.check-detail-inner { overflow: hidden; min-height: 0; padding: 0 20px 16px 66px; }
.check-row.open .check-detail { grid-template-rows: 1fr; }
.check-detail .detail-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--faint); margin: 10px 0 4px; }
.check-detail .evidence {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 9px 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.check-detail p { font-size: 14px; margin: 6px 0; color: var(--muted); }
.check-detail .fix-label { font-weight: 700; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.view-all-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--hairline);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding: 13px;
  cursor: pointer;
}
.view-all-btn:hover { background: var(--surface-2); }
.cat-empty { padding: 18px 20px; color: var(--faint); font-size: 14px; }

/* Findings (kept, restyled) */
.finding { border-top: 1px solid var(--hairline); padding: 16px 0; }
.finding:first-of-type { border-top: none; padding-top: 4px; }
.finding h3 { margin: 0 0 6px; font-size: 16px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.badge.sev-critical { color: #fff; background: var(--red); border-color: var(--red); }
.badge.sev-high { color: #fff; background: #ea580c; border-color: #ea580c; }
.badge.sev-medium { color: #1a1005; background: var(--amber); border-color: var(--amber); }
.badge.sev-low { color: var(--text); background: var(--surface-2); }
.badge.sev-info { color: var(--muted); }
.finding p { margin: 6px 0; font-size: 14px; }
.finding .evidence {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 9px 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.finding .fix-label { font-weight: 700; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.finding .copy-row { margin-top: 8px; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { border-color: var(--accent); }
.copy-btn.copied { border-color: var(--green); color: var(--green); }
details.fix-prompt { margin-top: 8px; }
details.fix-prompt summary { cursor: pointer; color: var(--blue); font-size: 14px; font-weight: 600; }
details.fix-prompt pre {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
}

/* Tables */
.table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
td code, .mono { font-family: var(--mono); font-size: 13px; }
td .url-cell { word-break: break-all; }

/* Lighthouse / CrUX */
.lab-field { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-score { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.mini-score:last-child { border-bottom: none; }
.mini-score .val { font-weight: 700; }
.lh-gauge { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 4px 0 10px; }
.lh-gauge span { display: block; height: 100%; border-radius: 99px; transform: scaleX(0); transform-origin: left; animation: bar-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.metric { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 12px; }
.metric .m-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.metric .m-value { font-size: 18px; font-weight: 800; margin-top: 2px; letter-spacing: -0.3px; }
.no-data { color: var(--faint); font-size: 14px; }

/* Citability blocks */
.cite-block { border-top: 1px solid var(--hairline); padding: 14px 0; }
.cite-block:first-of-type { border-top: none; }
.cite-block blockquote { margin: 0 0 10px; color: var(--muted); font-size: 14px; border-left: 3px solid var(--accent-2); padding-left: 12px; }
.cite-score { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cite-score .cite-bar { flex: 1; height: 7px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.cite-score .cite-bar span { display: block; height: 100%; border-radius: 99px; }
.cite-score .cite-num { font-size: 14px; font-weight: 800; }
.dim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 16px; font-size: 13px; }
.dim-grid span b { float: right; }

/* Actions */
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.actions .btn, .actions .btn-ghost { padding: 10px 16px; font-size: 15px; }

/* History */
.history { margin-top: 24px; }
.history h2 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.3px; }
.history ul { list-style: none; margin: 0; padding: 0; }
.history li { border-top: 1px solid var(--hairline); padding: 10px 0; font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.history li:first-child { border-top: none; }
.history .h-score { font-weight: 700; }
.history .h-date { color: var(--faint); font-size: 13px; margin-left: auto; }
.history .clear-btn { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 13px; padding: 0; text-decoration: underline; }

/* Disclaimer and footer */
.disclaimer {
  margin-top: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.site-footer { margin-top: 32px; border-top: 1px solid var(--hairline); padding-top: 16px; font-size: 13px; color: var(--faint); }
.site-footer a { color: var(--muted); }

/* Methodology */
.method h2 { font-size: 22px; margin: 32px 0 8px; letter-spacing: -0.4px; }
.method h3 { font-size: 17px; margin: 24px 0 6px; }
.method p, .method li { font-size: 15px; }
.method ul, .method ol { padding-left: 22px; }
.method table { min-width: 0; }
.method .rule-cat { margin-top: 24px; }
.method .rule-cat h3 { margin-top: 0; }
.method .rule-cat ul { margin: 6px 0 0; }
.method .rule-cat li { margin-bottom: 5px; }
.method .rule-cat li .tag { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.toc { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px 20px; margin-top: 20px; box-shadow: var(--shadow); }
.toc ul { margin: 0; padding-left: 20px; }

/* Responsive */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-card.score-card { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .report-grid { grid-template-columns: minmax(0, 1fr); }
  .report-side { position: static; min-width: 0; max-width: 100%; overflow: hidden; }
  .side-card { min-width: 0; max-width: 100%; overflow: hidden; }
  .side-card .side-list { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .side-card .side-group { display: none; }
  .side-item { flex-shrink: 0; width: auto; }
  .side-note-card { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px 48px; }
  .hero h1 { font-size: 26px; }
  .report-head h1 { font-size: 22px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-num { font-size: 25px; }
  .donut-wrap, .donut-wrap svg { width: 88px; height: 88px; }
  .donut-num .num { font-size: 23px; }
  .site-nav a { padding: 6px 7px; }
  .formula { white-space: normal; }
  .lab-field { grid-template-columns: 1fr; }
  .check-head-row { display: none; }
  .check-head { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; }
  .check-head .check-status-ic { grid-row: 1; }
  .check-head .check-title { grid-row: 1; }
  .check-head .status-pill { grid-row: 2; grid-column: 2; justify-self: start; }
  .check-head .impact-pill { display: none; }
  .check-head .check-chevron { grid-row: 1 / 3; }
  .check-detail-inner { padding: 0 14px 14px 54px; }
  .cat-sec-head { padding: 14px; }
  .cat-sec-counts .count-pill span { display: none; }
  .header-actions { width: 100%; }
  .header-actions .btn, .header-actions .btn-ghost { flex: 1; justify-content: center; }
  .checks-banner .banner-action { margin-left: 0; width: 100%; }
  .checks-banner .banner-action .btn-ghost { width: 100%; justify-content: center; }
}

/* Print: the PDF path. Hide motion, buttons and filters; expand
   every collapsed section and every check row so nothing is missing. */
@media print {
  .bg-blobs, .header-actions, .filter-row, .theme-btn, .view-all-btn, .side-note-card { display: none !important; }
  body { background: #fff; }
  /* The header, report head, strengths card, and footer sit on the white
     page in print, so their light dark-theme text needs explicit dark
     colors there. The cards keep their dark backgrounds and stay
     readable as-is. */
  .site-header .brand, .report-head h1 { color: #0f172a; }
  .site-nav a, .report-kicker, .report-sub, .site-footer { color: #475569; }
  .strengths { background: #f0fdf4; color: #14532d; }
  .wrap { max-width: none; }
  .stat-card, section.card, .cat-section, .strengths, .checks-banner { box-shadow: none; break-inside: avoid; }
  .cat-section.closed .cat-body { display: block !important; }
  .check-row.hidden-by-filter { display: block !important; }
  /* Check rows stay one-liners in print: the fix text lives in the
     "What to fix first" findings, which are expanded below. Expanding
     all 137 check details would triple the PDF. */
  .check-detail { display: none !important; }
  .check-row.collapsed-extra { display: block !important; }
  .finding-extra { display: grid !important; }
  .finding-detail { display: block !important; }
  .cite-extra { display: block !important; }
  .donut-arc, .stat-bar span, .lh-gauge span, .cite-score .cite-bar span, .cat-bar-fill { animation: none !important; transform: none !important; }
  /* Entrance animations must not hide content in print: force the
     final state, otherwise the stat cards print invisible. */
  .stat-card, .overview-card, .strengths, .checks-banner, .insight-card, .cta-banner { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---- Dark report visuals: sparklines, overview donut, bar chart ---- */
.spark { width: 100%; height: 34px; margin-top: 10px; display: block; }
.stat-card .spark { margin-top: 12px; }

/* Overview row: Audit Overview donut + Performance by Category bars */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.overview-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.overview-card h2 { font-size: 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.overview-card h2 svg { width: 17px; height: 17px; color: var(--accent-2); }
.overview-card h2 .see-details { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent-2); }
.overview-body { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.overview-donut { position: relative; width: 128px; height: 128px; flex-shrink: 0; }
.overview-donut svg { width: 128px; height: 128px; transform: rotate(-90deg); }
.overview-donut .donut-num .num { font-size: 30px; }
.legend { display: flex; flex-direction: column; gap: 10px; min-width: 180px; flex: 1; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-row .legend-n { margin-left: auto; font-weight: 800; }
.legend-row .legend-pct { color: var(--faint); font-size: 13px; min-width: 48px; text-align: right; }
.cat-bars { display: flex; align-items: flex-end; gap: 12px; height: 170px; }
.cat-bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.cat-bar-pct { font-size: 13px; font-weight: 800; margin-bottom: 5px; }
.cat-bar-track { width: 100%; max-width: 46px; height: 108px; background: var(--surface-2); border-radius: 8px; overflow: hidden; display: flex; align-items: flex-end; }
.cat-bar-fill { width: 100%; border-radius: 8px; transform: scaleY(0); transform-origin: bottom; animation: bar-grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes bar-grow { to { transform: scaleY(1); } }
.cat-bar-name { font-size: 12px; color: var(--muted); margin-top: 7px; text-align: center; line-height: 1.25; word-break: break-word; }

/* Check search */
.search-wrap { position: relative; margin-left: auto; }
.search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); pointer-events: none; }
.search-input {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 13px 8px 34px;
  width: 210px;
  box-shadow: var(--shadow-sm);
}
.search-input::placeholder { color: var(--faint); }

/* Compact findings: one row per issue, See Fix opens the detail */
.finding-row { border-top: 1px solid var(--hairline); padding: 13px 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.finding-row:first-of-type { border-top: none; padding-top: 4px; }
.finding-ic { display: flex; align-items: center; justify-content: center; }
.finding-ic svg { width: 20px; height: 20px; }
.finding-ic.fail { color: var(--red); }
.finding-ic.warn { color: var(--amber); }
.finding-main { min-width: 0; }
.finding-title { font-size: 15px; font-weight: 700; }
.finding-one { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.see-fix-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  background: rgba(11, 110, 79, 0.12);
  border: 1px solid rgba(11, 110, 79, 0.3);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  white-space: nowrap;
}
.see-fix-btn:hover { background: rgba(11, 110, 79, 0.22); }
.finding-detail { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.finding-detail-inner { overflow: hidden; min-height: 0; }
.finding-row.open .finding-detail { grid-template-rows: 1fr; }
.finding-extra { display: none; }
.show-all-findings .finding-extra { display: grid; }
.cite-extra { display: none; }
.show-all-cites .cite-extra { display: block; }
.finding-detail .evidence {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 9px 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.finding-detail p { font-size: 14px; margin: 6px 0; color: var(--muted); }
.finding-detail .fix-label { font-weight: 700; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.finding-detail .copy-row { margin-top: 8px; }

/* Insights + opportunities */
.insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.insight-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.insight-card h2 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.insight-card h2 svg { width: 17px; height: 17px; color: var(--accent-2); }
.insight-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--muted); }
.insight-item:first-of-type { border-top: none; }
.insight-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.insight-item .ok { color: var(--green); display: inline-flex; }
.insight-item .warn { color: var(--amber); display: inline-flex; }
.opp-item { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--hairline); font-size: 14px; }
.opp-item:first-of-type { border-top: none; }
.opp-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.opp-item .opp-text { color: var(--muted); }
.opp-item .opp-text b { color: var(--text); }

/* CTA banner */
.cta-banner {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: 0 12px 32px rgba(11, 110, 79, 0.35);
}
.cta-banner .cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-banner .cta-icon svg { width: 26px; height: 26px; }
.cta-banner h2 { color: #fff; font-size: 20px; margin: 0 0 4px; letter-spacing: -0.3px; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); font-size: 14px; margin: 0; }
.cta-banner .cta-action { margin-left: auto; }
.cta-banner .cta-action .btn-ghost { background: #fff; color: #4f46e5; border-color: #fff; box-shadow: none; }
.cta-banner .cta-action .btn-ghost:hover { background: rgba(255, 255, 255, 0.9); }

@media (max-width: 900px) {
  .overview-grid, .insights-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .finding-row { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .finding-row .status-pill { display: none; }
  .search-wrap { margin-left: 0; width: 100%; }
  .search-input { width: 100%; }
  .cta-banner .cta-action { margin-left: 0; width: 100%; }
  .cta-banner .cta-action .btn-ghost { width: 100%; justify-content: center; }
}

/* ---- Fluid motion: smooth expands, staggered entrance, animated tooltips ---- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.stat-card { animation: rise 0.45s ease both; }
.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.18s; }
.stat-card:nth-child(5) { animation-delay: 0.24s; }
.overview-card:nth-child(1) { animation: rise 0.45s ease 0.1s both; }
.overview-card:nth-child(2) { animation: rise 0.45s ease 0.16s both; }
.strengths, .checks-banner, .insight-card, .cta-banner { animation: rise 0.45s ease 0.2s both; }
.cat-section.show-all .check-row.collapsed-extra { animation: fade-in 0.3s ease both; }
.show-all-findings .finding-extra { animation: fade-in 0.3s ease both; }
.show-all-cites .cite-extra { animation: fade-in 0.3s ease both; }

/* Tooltips: hover any stat card to see what the number means. */
[data-tip] { position: relative; cursor: help; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1e293b;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  padding: 7px 11px;
  border-radius: 8px;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
[data-tip]:hover::after, [data-tip]:focus-within::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.tip-ic { margin-left: auto; color: var(--faint); display: inline-flex; flex-shrink: 0; }
.tip-ic svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .stat-card, .overview-card, .strengths, .checks-banner, .insight-card, .cta-banner { animation: none !important; }
  .check-detail, .finding-detail, .cat-body { transition: none !important; }
  [data-tip]::after { transition: none !important; }
}

/* Score count-up: the number counts 0 to the score in the browser, but
   the base value is the final score, so print and PDF always show the
   right number even if the animation never runs. */
@property --num { syntax: "<integer>"; initial-value: 0; inherits: false; }
.score-card .donut-num .num { counter-reset: n var(--num, 0); animation: num-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.score-card .donut-num .num::after { content: counter(n); }
@keyframes num-in { from { --num: 0; } }
@media print {
  .score-card .donut-num .num { animation: none !important; }
}

/* ---- Navigation enhancements: Burger Button & Preferred Source Pill ---- */
.nav-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.preferred-source-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.preferred-source-pill-btn:hover {
  border-color: rgba(242, 81, 0, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 81, 0, 0.15);
}
.preferred-source-pill-btn .g-icon { width: 14px; height: 14px; flex-shrink: 0; }

.burger-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text);
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.18s ease, border-color 0.18s ease;
  box-shadow: var(--shadow-sm);
}
.burger-btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}
.burger-icon {
  width: 16px;
  height: 16px;
  color: var(--text);
  flex-shrink: 0;
}

/* ---- Burger Drawer / Navigation Flyout ---- */
.burger-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}
.burger-drawer.show {
  display: block;
}
.burger-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(6px);
  animation: modal-fade-in 0.2s ease;
}
.burger-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--hairline);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slide-in-right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
@keyframes slide-in-right {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.burger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-2);
}
.burger-close-btn {
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
}
.burger-close-btn:hover {
  background: var(--surface-2);
  color: var(--red);
}
.burger-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 36px;
  -webkit-overflow-scrolling: touch;
}
.burger-group {
  margin-bottom: 24px;
}
.burger-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--faint);
  margin-bottom: 10px;
}
.burger-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.burger-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.18s ease;
  font-size: 14px;
}
.burger-links li a:hover {
  background: var(--surface-2);
}
.burger-links li a .b-ic {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.burger-links li a div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.burger-links li a strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.burger-links li a span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.burger-cta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

/* ---- Preferred Source Modal (Matching Competitor Screenshot) ---- */
.preferred-source-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.preferred-source-modal.show {
  display: flex;
}
.preferred-source-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 32, 0.78);
  backdrop-filter: blur(6px);
  animation: modal-fade-in 0.2s ease;
}
.preferred-source-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  color: #111827;
  border-radius: 14px;
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 32px 30px 24px;
  box-sizing: border-box;
  animation: modal-scale-in 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="night"] .preferred-source-dialog {
  background: #141c2e;
  color: #f1f5f9;
  border: 1px solid #2d3c59;
}
.preferred-source-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 24px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.18s ease;
}
.preferred-source-close-btn:hover {
  color: #111827;
}
[data-theme="night"] .preferred-source-close-btn:hover {
  color: #ffffff;
}
.preferred-source-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}
[data-theme="night"] .preferred-source-body h2 {
  color: #ffffff;
}
.preferred-source-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 22px;
}
[data-theme="night"] .preferred-source-desc {
  color: #94a3b8;
}
.btn-preferred-google {
  width: 100%;
  background: #f25100;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  box-shadow: 0 4px 14px rgba(242, 81, 0, 0.35);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-preferred-google:hover {
  background: #d84500;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(242, 81, 0, 0.45);
}
.btn-preferred-google svg {
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 50%;
  padding: 2px;
  box-sizing: content-box;
}
.preferred-source-actions {
  text-align: center;
  margin-top: 14px;
}
.btn-pref-maybe-later {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.18s ease;
}
.btn-pref-maybe-later:hover {
  color: #111827;
  text-decoration: underline;
}
[data-theme="night"] .btn-pref-maybe-later:hover {
  color: #ffffff;
}
.preferred-source-note {
  font-size: 12px;
  color: #9ca3af;
  margin: 14px 0 0;
  text-align: center;
}

/* ---- Related Tools & Guides Sections ---- */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.related-section h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}
.related-sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: minmax(0, 1fr); }
}
.tool-card, .guide-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
}
.tool-card:hover, .guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 110, 79, 0.45);
  box-shadow: 0 8px 24px rgba(11, 110, 79, 0.18);
  text-decoration: none;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.card-icon {
  font-size: 22px;
  display: inline-flex;
}
.card-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(11, 110, 79, 0.1);
  border: 1px solid rgba(11, 110, 79, 0.22);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.tool-card h3, .guide-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.35;
}
.tool-card p, .guide-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 14px;
  flex: 1;
}
.card-action {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---- Upgraded Multi-Column Footer ---- */
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--hairline);
  padding: 42px 0 28px;
  font-size: 14px;
}
.footer-wrap {
  width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1.2fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
.footer-col h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}
.footer-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 12px 0 16px;
  max-width: 320px;
}
.footer-pref-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.18s ease;
}
.footer-pref-btn:hover {
  border-color: rgba(242, 81, 0, 0.45);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.18s ease;
}
.footer-links li a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer-links li a.bold-link {
  font-weight: 700;
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--faint);
}
.footer-bottom p {
  margin: 0;
}

/* ==========================================================================
   AnswerAudit Unified Design System (Matching Landing Page)
   ========================================================================== */

:root {
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --emerald: #0B6E4F;
  --emerald-dark: #085640;
  --mint: #10B981;
  --mint-light: #34D399;
  --dark-navy: #0B132B;
}

/* Base Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Site Navigation Bar */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 247, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 230, 235, 0.85);
  transition: all 0.2s ease;
}
[data-theme="night"] .site-nav {
  background: rgba(11, 19, 43, 0.95);
  border-bottom: 1px solid rgba(42, 59, 92, 0.85);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #101828;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
[data-theme="night"] .brand-lockup {
  color: #FFFFFF;
}

.brand-mark-svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-word-answer {
  color: #101828;
}
[data-theme="night"] .brand-word-answer {
  color: #EDF2FA;
}
.brand-word-audit {
  color: var(--emerald);
}

.nav-menu-wrap {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a, .nav-menu .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #344054;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
[data-theme="night"] .nav-menu a, [data-theme="night"] .nav-menu .nav-link {
  color: #BAC7D5;
}

.nav-menu a:hover, .nav-menu .nav-link:hover {
  color: #101828;
  background: rgba(11, 110, 79, 0.08);
}
[data-theme="night"] .nav-menu a:hover, [data-theme="night"] .nav-menu .nav-link:hover {
  color: #FFFFFF;
  background: rgba(16, 185, 129, 0.14);
}

.nav-menu a.active, .nav-menu .nav-link.active {
  background: #E4F3EC;
  color: var(--emerald);
  font-weight: 600;
}
[data-theme="night"] .nav-menu a.active, [data-theme="night"] .nav-menu .nav-link.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  color: #344054;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
[data-theme="night"] .theme-toggle-btn {
  background: #16223D;
  border-color: #2A3B5C;
  color: #BAC7D5;
}
.theme-toggle-btn:hover {
  background: #F0F4F2;
  color: var(--emerald);
  border-color: #CBD5E1;
}
[data-theme="night"] .theme-toggle-btn:hover {
  background: #1C2B4E;
  color: #34D399;
}

.btn-nav-audit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0B132B;
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(11, 19, 43, 0.15);
  white-space: nowrap;
}
.btn-nav-audit:hover {
  background: var(--emerald);
  color: #FFFFFF;
  transform: translateY(-1px);
}
[data-theme="night"] .btn-nav-audit {
  background: var(--emerald);
}
[data-theme="night"] .btn-nav-audit:hover {
  background: #0D825E;
}

.mobile-nav-toggle {
  display: none;
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  border-radius: 10px;
  padding: 7px;
  color: #101828;
  cursor: pointer;
}
[data-theme="night"] .mobile-nav-toggle {
  background: #16223D;
  border-color: #2A3B5C;
  color: #EDF2FA;
}

/* Mobile Drawer */
.mobile-drawer {
  background: #FFFFFF;
  border-top: 1px solid #E2E6EB;
  border-bottom: 1px solid #E2E6EB;
  padding: 16px 24px;
}
[data-theme="night"] .mobile-drawer {
  background: #121C33;
  border-color: #2A3B5C;
}
.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.mobile-link {
  display: block;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 500;
  color: #344054;
  text-decoration: none;
  border-radius: 10px;
}
[data-theme="night"] .mobile-link {
  color: #BAC7D5;
}
.mobile-link:hover, .mobile-link.active {
  background: #E4F3EC;
  color: var(--emerald);
  font-weight: 600;
}
[data-theme="night"] .mobile-link:hover, [data-theme="night"] .mobile-link.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}
.mobile-drawer-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #E2E6EB;
}
[data-theme="night"] .mobile-drawer-actions {
  border-color: #2A3B5C;
}
.btn-mobile-audit {
  display: block;
  text-align: center;
  background: var(--emerald);
  color: #FFFFFF;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* Modern Tool Page Layouts (SEO Audit, GEO Audit, Methodology, Report) */
.tool-page-wrapper {
  position: relative;
  overflow: hidden;
  padding: 48px 0 80px;
}

.tool-hero-center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E4F3EC;
  border: 1px solid #CDE9DC;
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 20px;
}
[data-theme="night"] .hero-badge-pill {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34D399;
}

.hero-title-modern {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #101828;
  margin: 0 0 16px;
}
[data-theme="night"] .hero-title-modern {
  color: #FFFFFF;
}

.hero-subhead-modern {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #475467;
  margin: 0 auto 28px;
  max-width: 700px;
}
[data-theme="night"] .hero-subhead-modern {
  color: #94A3B8;
}

.hero-chips-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-chip-modern {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #344054;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
[data-theme="night"] .hero-chip-modern {
  background: #121C33;
  border-color: #2A3B5C;
  color: #BAC7D5;
}

/* Modern Form Card */
.form-card-modern {
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 24px -2px rgba(16, 24, 40, 0.06);
  max-width: 880px;
  margin: 0 auto 48px;
  position: relative;
}
[data-theme="night"] .form-card-modern {
  background: #121C33;
  border-color: #2A3B5C;
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.3);
}

.form-label-modern {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #344054;
  margin-bottom: 12px;
}
[data-theme="night"] .form-label-modern {
  color: #EDF2FA;
}

.url-input-container {
  display: flex;
  gap: 12px;
  align-items: center;
}

.url-input-wrap-modern {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.url-input-icon {
  position: absolute;
  left: 18px;
  color: #94A3B8;
  pointer-events: none;
}

.url-input-modern {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 50px;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  font-size: 1.05rem;
  font-family: var(--body);
  color: #101828;
  background: #FFFFFF;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
[data-theme="night"] .url-input-modern {
  background: #16223D;
  border-color: #3E5274;
  color: #FFFFFF;
}
.url-input-modern:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(11, 110, 79, 0.15);
}

.btn-audit-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 32px;
  background: var(--emerald);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: var(--body);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(11, 110, 79, 0.28);
  white-space: nowrap;
}
.btn-audit-modern:hover {
  background: var(--emerald-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 110, 79, 0.35);
}

.mode-row-modern {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  font-size: 0.95rem;
  color: #475467;
  flex-wrap: wrap;
}
[data-theme="night"] .mode-row-modern {
  color: #BAC7D5;
}
.mode-row-modern label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.mode-row-modern input[type="radio"] {
  accent-color: var(--emerald);
  width: 17px;
  height: 17px;
}

.form-subtext-modern {
  margin-top: 20px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #64748B;
}
[data-theme="night"] .form-subtext-modern {
  color: #94A3B8;
}
.form-subtext-modern a {
  color: var(--emerald);
  font-weight: 500;
  text-decoration: underline;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid #E2E6EB;
  padding: 64px 0 36px;
  background: #FFFFFF;
  margin-top: 80px;
}
[data-theme="night"] .site-footer {
  background: #0D1629;
  border-color: #2A3B5C;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-info p {
  color: #5B6472;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 14px 0 20px;
  max-width: 28rem;
}
[data-theme="night"] .footer-brand-info p {
  color: #94A3B8;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mono-badge {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--emerald);
  background: #E4F3EC;
  border: 1px solid #CDE9DC;
  border-radius: 999px;
  padding: 4px 10px;
}
[data-theme="night"] .mono-badge {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34D399;
}

.footer-links-col h4 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5B6472;
  margin: 0 0 18px;
}
[data-theme="night"] .footer-links-col h4 {
  color: #BAC7D5;
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-links-list a {
  color: #344054;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
[data-theme="night"] .footer-links-list a {
  color: #BAC7D5;
}
.footer-links-list a:hover {
  color: var(--emerald);
  text-decoration: underline;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #E2E6EB;
  font-size: 0.88rem;
  color: #5B6472;
}
[data-theme="night"] .footer-bottom-bar {
  border-color: #2A3B5C;
  color: #94A3B8;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .nav-menu-wrap { display: none; }
  .mobile-nav-toggle { display: inline-flex; }
  .footer-main-grid { grid-template-columns: 1fr; gap: 36px; }
  .url-input-container { flex-direction: column; align-items: stretch; }
  .btn-audit-modern { width: 100%; }
}
