/* ============================================================
   WWWWeb.net — dark industrial theme
   design language: #000 background, #ff3300 brand accent,
   Bebas Neue / Oswald / Roboto type system, circular score rings
   ============================================================ */

:root {
  --bg: #000000;
  --surface: #0c0c0d;
  --surface2: #141416;
  --surface3: #1c1c1f;
  --border: rgba(255, 255, 255, 0.16);
  --border2: rgba(255, 255, 255, 0.28);
  --text: #f2f2f4;
  --muted: #a9a9b1;
  --muted2: #888891;
  --brand: #ff3300;
  --brand-dark: #e63900;
  --gold: #d4a017;
  --good: #0cce6b;
  --ok: #ffa400;
  --bad: #ff4e42;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --font-head: 'Oswald', 'Segoe UI', sans-serif;
  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  --nav-h: 72px;
  --cover: var(--surface2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
button svg, a svg, .btn svg { max-width: none; flex-shrink: 0; }
a { color: var(--text); text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input { font: inherit; }
input::placeholder { color: var(--muted2); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

::selection { background: var(--brand); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted2); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--text); }
.display { font-family: var(--font-display); letter-spacing: 0.02em; }

.l-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.app-main { flex: 1 0 auto; padding-top: var(--nav-h); }

/* ---------- eyebrows / section titles ---------- */
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 13px;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow.centered { text-align: center; }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(30px, 4vw, 44px); letter-spacing: 0.01em; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(255, 51, 0, 0.35); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 30px rgba(255, 51, 0, 0.45); }

.btn-ghost { background: var(--surface2); color: var(--text); border-color: var(--border2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-sm { padding: 9px 16px; font-size: 12px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- top navigation ---------- */
.l-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.l-nav.scrolled {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  direction: ltr;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
}
.brand-bright { color: var(--brand); }
.brand-dot { color: var(--muted2); }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-menu .nav-link:hover { color: var(--text); background: var(--surface); }
.nav-menu .nav-link.active { color: var(--brand); }
.nav-menu .nav-link.cta { color: #fff; background: var(--brand); }
.nav-menu .nav-link.cta:hover { background: var(--brand-dark); }

.nav-side { display: flex; align-items: center; gap: 16px; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-auth-link { font-family: var(--font-head); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.nav-auth-link:hover { color: var(--brand); }
.nav-locale { margin-inline-start: 4px; }

.hamburger { display: none; width: 44px; height: 44px; border-radius: 8px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: var(--surface2); }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 12px;
  right: 12px;
  z-index: 59;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 18px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  max-height: calc(100dvh - var(--nav-h) - 24px);
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link {
  display: flex;
  padding: 12px 14px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
}
.nav-drawer .nav-link:hover { background: var(--surface2); }
.nav-drawer .nav-link.cta { color: #fff; background: var(--brand); margin-top: 8px; justify-content: center; }
.nav-drawer .nav-link.auth { color: var(--muted); }
.nav-drawer-locale { margin-bottom: 4px; }
.nav-drawer-locale + .nav-link { margin-top: 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 72px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-grad {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(255, 51, 0, 0.17), transparent 70%),
    radial-gradient(closest-side, rgba(255, 51, 0, 0.06), transparent 60%);
  filter: blur(6px);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 0%, #000 30%, transparent 75%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.hero-orb.a { width: 300px; height: 300px; background: rgba(255, 51, 0, 0.35); top: 10%; right: -60px; animation: float 9s ease-in-out infinite; }
.hero-orb.b { width: 260px; height: 260px; background: rgba(212, 160, 23, 0.22); bottom: -40px; left: -70px; animation: float 12s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

.hero-inner { text-align: center; max-width: 860px; margin: 0 auto; position: relative; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--text);
}
.hero-accent { color: var(--brand); }
.hero-accent.grad {
  background: linear-gradient(92deg, var(--brand), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--muted); font-size: 19px; max-width: 640px; margin: 22px auto 0; }

/* ---------- search ---------- */
.searchmega { margin-top: 44px; }
.searchwrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.searchwrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 51, 0, 0.14), 0 18px 50px rgba(0, 0, 0, 0.5);
}
.search-bar {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 17px;
  padding: 13px 18px;
  outline: none;
}
.search-btn {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 28px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.search-btn:hover { background: var(--brand-dark); box-shadow: 0 8px 24px rgba(255, 51, 0, 0.4); }
.search-hint { margin-top: 16px; color: var(--muted2); font-size: 14px; }

.ors-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; color: var(--muted); font-size: 14px; }
.ors-row .ors-lb { color: var(--muted2); }
.ors-row span:not(.ors-lb)::before { content: "·"; color: var(--muted2); margin-inline-end: 6px; }

.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.front-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.front-stat b { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--brand); }
.front-stat span { color: var(--muted); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; display: block; margin-top: 8px; }

/* ---------- tool switch ---------- */
.tool-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
}
.tool-switch a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.tool-switch a:hover { color: var(--text); border-color: var(--border2); }
.tool-switch a.active { color: #fff; background: var(--brand); border-color: var(--brand); }
.tool-switch a .ts-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted2); }
.tool-switch a.active .ts-dot { background: #fff; }

.tool-switch.start { justify-content: flex-start; margin-top: 0; }

/* ---------- surfaces / cards ---------- */
.surface { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.surface2 { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); }
.pane { padding: 28px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--border2); transform: translateY(-4px); }
.card-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- gauges / score rings ---------- */
.gauges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.gauge {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px 22px;
  text-align: center;
}
.gauge .gauge-label { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); margin-top: 16px; }
.gauge .gauge-sub { color: var(--muted2); font-size: 13px; margin-top: 4px; }

.ring {
  --val: 0;
  --gscore: var(--muted2);
  --ring-track: rgba(255, 255, 255, 0.07);
  --cover: var(--surface2);
  width: 116px;
  height: 116px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
  background: conic-gradient(var(--gscore) 0deg, var(--gscore) calc(var(--val) * 1deg), var(--ring-track) calc(var(--val) * 1deg), var(--ring-track) 360deg);
}
.ring.good { --gscore: var(--good); }
.ring.ok { --gscore: var(--ok); }
.ring.bad { --gscore: var(--bad); }
.ring-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--cover);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring-val { font-family: var(--font-display); font-size: 38px; line-height: 1; color: var(--text); }
.ring-label { font-family: var(--font-head); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted2); margin-top: 2px; }

.ring.lg { width: 158px; height: 158px; }
.ring.lg .ring-inner { inset: 14px; }
.ring.lg .ring-val { font-size: 54px; }
.ring.sm { width: 86px; height: 86px; }
.ring.sm .ring-inner { inset: 8px; }
.ring.sm .ring-val { font-size: 28px; }

.gscore { font-family: var(--font-display); font-size: 38px; line-height: 1; }
.gscore.good { color: var(--good); }
.gscore.ok { color: var(--ok); }
.gscore.bad { color: var(--bad); }

/* ---------- grade hero (category detail) ---------- */
.grade-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.grade-meta .eyebrow { margin-bottom: 8px; }
.grade-title { font-size: 38px; line-height: 1.1; }
.grade-url { color: var(--muted); margin: 8px 0 18px; font-size: 15px; overflow-wrap: anywhere; }
.grade-counts { display: flex; gap: 10px; flex-wrap: wrap; }
.grade-counts .badge { background: var(--surface2); }

.kv { margin-top: 26px; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--muted2); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; padding-top: 2px; }
.kv dd { color: var(--text); overflow-wrap: anywhere; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
}
.badge.passed, .badge.good-b { color: var(--good); border-color: rgba(12, 206, 107, 0.4); }
.badge.warn, .badge.ok-b { color: var(--ok); border-color: rgba(255, 164, 0, 0.4); }
.badge.fail, .badge.bad-b { color: var(--bad); border-color: rgba(255, 78, 66, 0.4); }
.badge.brand-b { color: var(--brand); border-color: rgba(255, 51, 0, 0.45); }
.badge.gold-b { color: var(--gold); border-color: rgba(212, 160, 23, 0.45); }

/* ---------- check list ---------- */
.check-list { display: grid; gap: 14px; }
.check-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.check-item.passed { border-left: 3px solid var(--good); }
.check-item.fail-c2 { border-left: 3px solid var(--bad); }
.check-item.fail-h { border-left: 3px solid var(--brand); }
.check-item.fail-m { border-left: 3px solid var(--ok); }
.check-item.fail-l { border-left: 3px solid var(--muted); }
.check-dot {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.check-item.passed .check-dot { border-color: var(--good); color: var(--good); }
.check-item.fail-c2 .check-dot { border-color: var(--bad); color: var(--bad); }
.check-item.fail-h .check-dot { border-color: var(--brand); color: var(--brand); }
.check-item.fail-m .check-dot { border-color: var(--ok); color: var(--ok); }
.check-item.fail-l .check-dot { border-color: var(--muted2); color: var(--muted2); }
.check-dot svg { width: 14px; height: 14px; }
.check-body { flex: 1; min-width: 0; }
.check-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.check-title { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: 0.02em; }
.check-desc { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.check-reco { color: var(--brand); font-size: 14.5px; margin-top: 10px; }
.check-reco b { font-weight: 600; }
.check-evidence {
  color: var(--muted2);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  margin-top: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  overflow-wrap: anywhere;
}
.check-meta { font-size: 12px; color: var(--muted2); margin-top: 8px; }
.check-meta b { color: var(--muted); font-weight: 500; }

/* ---------- opportunities strip ---------- */
.opps {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.opps .opp-item { flex: 1 1 220px; }
.opps b { font-family: var(--font-head); font-size: 26px; display: block; line-height: 1; }
.opps span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.plan-card.popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 24px 60px rgba(255, 51, 0, 0.18); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.plan-name { font-family: var(--font-display); font-size: 30px; letter-spacing: 0.05em; color: var(--text); }
.plan-desc { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 42px; }
.plan-eyebrow { font-family: var(--font-head); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted2); margin-top: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 0; }
.plan-price b { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--text); }
.plan-price span { color: var(--muted2); font-size: 13px; }
.plan-features { list-style: none; margin: 24px 0 28px; display: grid; gap: 11px; flex: 1; }
.plan-features li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--muted); }
.plan-features .pf-on { color: var(--text); }
.plan-features .pf-off { color: var(--muted2); }
.plan-features li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--muted2); transform: translateY(-2px); }
.plan-features .pf-on::before { background: var(--good); }
.plan-features .pf-off::before { background: var(--muted2); }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 72px 32px;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(255, 51, 0, 0.18), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(38px, 6vw, 64px); text-transform: uppercase; line-height: 1; }
.cta-band p { color: var(--muted); margin: 16px auto 34px; max-width: 520px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.l-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 40px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 260px; }
.footer-col h4 { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted2); font-size: 14px; padding: 6px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted2);
  font-size: 13px;
}

/* ---------- section headers on interior pages ---------- */
.page-head { padding: 48px 0 24px; }
.page-head .section-title { font-family: var(--font-display); font-size: clamp(38px, 6vw, 58px); text-transform: uppercase; }
.page-head .section-sub { margin-top: 12px; max-width: 640px; }

/* ---------- misc util ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.result-block { margin-top: 48px; display: grid; gap: 28px; }
.url-chip { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.url-chip b { color: var(--text); font-weight: 600; }

/* ---------- how it works / coverage ---------- */
.step-num { font-family: var(--font-display); font-size: 48px; line-height: 1; color: var(--brand); margin-bottom: 14px; }
.coverage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.coverage-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--text);
}
.coverage-chip .cc-ico { font-size: 20px; line-height: 1; }
.coverage-chip small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.06em; margin-top: 2px; }

/* ---------- RTL ---------- */
[dir="rtl"] .grade-hero { text-align: right; }

/* ---------- print / PDF ---------- */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #000; color: #000; }
  .l-nav, .hamburger, .nav-drawer, .no-print, .tool-switch, .l-footer { display: none !important; }
  .app-main { padding-top: 0; }
  .page-head { padding-top: 8px; }
  .section, .section-tight { padding: 24px 0; }
  .hero { padding: 24px 0; }
  .hero-bg, .hero-grid, .hero-orb { display: none; }
  .check-item, .check-dot { break-inside: avoid; }
  .check-item { background: #fff !important; color: #222 !important; border-color: #ddd !important; border-radius: 8px; }
  .check-title { color: #111; }
  .check-desc, .check-evidence { color: #444 !important; }
  .grade-hero, .surface, .surface2, .gauge { background: #fff !important; border-color: #ddd !important; color: #111; }
  .gauge .gauge-label, .grade-title { color: #111; }
  h1, h2, h3, h4, .ring-val, .section-title, .hero-title, .plan-price b, .front-stat b { color: #111; }
  .eyebrow, .brand-bright { color: var(--brand); }
}
@media print { @page { margin: 14mm; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-menu, .nav-side .nav-actions { display: none; }
  .hamburger { display: flex; }
  .card-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .gauges { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grade-hero { grid-template-columns: 160px 1fr; gap: 28px; }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .card-grid, .pricing-grid, .gauges { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .grade-hero { grid-template-columns: 1fr; text-align: center; }
  .grade-counts, .kv { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .searchwrap { border-radius: 18px; flex-direction: column; align-items: stretch; }
  .search-btn { border-radius: 12px; }
  .ring { width: 100px; height: 100px; }
  .ring.lg { width: 132px; height: 132px; }
  .coverage-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Scan loading overlay — "work is happening" feedback
   ============================================================ */
.scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.scan-overlay.on { opacity: 1; visibility: visible; }

.scan-spinner {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--brand);
  border-right-color: rgba(255, 51, 0, 0.35);
  animation: spinscan 0.85s linear infinite;
}
@keyframes spinscan { to { transform: rotate(360deg); } }

.scan-title {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}
.scan-subtle { color: var(--muted2); font-size: 14px; margin-top: -12px; }

.scan-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 620px;
  padding: 10px 20px;
  min-height: 88px;
}
.scan-step {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.scan-step.on { color: var(--brand); border-color: rgba(255, 51, 0, 0.5); background: rgba(255, 51, 0, 0.08); }
.scan-step.done { color: var(--good); border-color: rgba(12, 206, 107, 0.4); background: rgba(12, 206, 107, 0.07); }

.scan-bar {
  width: 260px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.scan-bar i {
  display: block;
  position: relative;
  left: -35%;
  width: 35%;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  animation: scanbar 1.1s ease-in-out infinite;
}
@keyframes scanbar { 0% { left: -35%; } 100% { left: 100%; } }

/* ============================================================
   Page motion — gentle enter animations
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-inner > *, .page-head > .l-container > * { animation: fadeUp 0.7s ease both; }
.result-block > * { animation: fadeUp 0.5s ease both; }
.card, .coverage-chip, .gauge, .plan-card { animation: fadeUp 0.55s ease both; }

/* ============================================================
   App-wide consistency — force the brand theme on legacy
   Tailwind CDN classes (Tools, Dashboard, Blog, Admin, Auth …)
   ============================================================ */
/* backgrounds */
.bg-white, .bg-white\/60, .bg-white\/70, .bg-white\/80 { background-color: var(--surface) !important; }
.bg-gray-50 { background-color: var(--bg) !important; }
.bg-gray-100, .bg-gray-200, .bg-gray-800 { background-color: var(--surface2) !important; }
.bg-gray-700, .bg-gray-900 { background-color: var(--bg) !important; }
.bg-gray-300 { background-color: var(--surface3) !important; }
.bg-indigo-600, .bg-indigo-700, .bg-indigo-500, .bg-indigo-800 { background-color: var(--brand) !important; }
.bg-indigo-50 { background-color: rgba(255, 51, 0, 0.1) !important; }
.bg-indigo-100 { background-color: rgba(255, 51, 0, 0.16) !important; }

/* text */
.text-gray-900, .text-gray-800, .text-gray-700, .text-gray-200 { color: var(--text) !important; }
.text-gray-600, .text-gray-500, .text-gray-300 { color: var(--muted) !important; }
.text-gray-400 { color: var(--muted2) !important; }
.text-indigo-600, .text-indigo-500, .text-indigo-400, .text-indigo-700, .text-indigo-800 { color: var(--brand) !important; }

/* borders + dividers */
.border-gray-200, .border-gray-300, .border-gray-600, .border-gray-700, .border-gray-800 { border-color: var(--border) !important; }
.border-indigo-500, .border-indigo-600 { border-color: var(--brand) !important; }
.divide-gray-200 > :not([hidden]) ~ :not([hidden]), .divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: var(--border) !important; }
.ring-indigo-500, .ring-indigo-400 { --tw-ring-color: var(--brand) !important; }

/* hover states */
.hover\:text-indigo-600:hover, .hover\:text-indigo-500:hover, .hover\:text-indigo-700:hover, .hover\:text-indigo-800:hover { color: var(--brand) !important; }
.hover\:bg-indigo-700:hover, .hover\:bg-indigo-600:hover, .hover\:bg-indigo-800:hover, .hover\:bg-indigo-500:hover { background-color: var(--brand-dark) !important; }
.hover\:bg-gray-100:hover, .hover\:bg-gray-200:hover { background-color: var(--surface3) !important; }
.bg-gray-100:hover, .hover\:bg-gray-50:hover { background-color: var(--surface2) !important; }
.focus\:ring-indigo-500:focus, .focus\:ring-indigo-400:focus, .focus\:ring-indigo-600:focus { --tw-ring-color: var(--brand) !important; }
.text-indigo-600:hover, .hover\:text-indigo-600:hover { color: var(--brand-dark) !important; }

/* form controls — always dark field + light text, regardless of browser theme */
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"],
input[type="number"], input[type="tel"], input[type="date"], input[type="datetime-local"],
textarea, select {
  background-color: var(--surface2) !important;
  color: var(--text) !important;
  border-color: var(--border2) !important;
}
textarea, select { border-radius: 9px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }
input::placeholder, textarea::placeholder { color: #9aa0aa !important; }
.searchwrap .search-bar { background-color: transparent !important; }
input[type="search"], .search-bar { background: transparent; }

/* small caption text inside boxes — keep clearly readable */
.check-evidence { color: #b9bac4; }
.check-meta { color: var(--muted); }
.gauge .gauge-sub { color: var(--muted); }
.ring .ring-label { color: var(--muted); }
.plan-eyebrow { color: var(--muted); }
.kv dt { color: var(--muted); }

/* status colors — brighten for dark backgrounds */
.text-red-600, .text-red-700, .text-red-800 { color: #f87171 !important; }
.text-green-600, .text-green-700, .text-green-800 { color: #4ade80 !important; }
.text-yellow-600, .text-yellow-700, .text-yellow-800 { color: #fbbf24 !important; }
.text-emerald-600 { color: #34d399 !important; }
.text-blue-600, .text-blue-800 { color: #60a5fa !important; }
.text-purple-600 { color: #c084fc !important; }
.text-pink-600 { color: #f472b6 !important; }
.text-orange-600 { color: #fb923c !important; }

/* status pill backgrounds — subtle dark tints so bright text remains legible */
.bg-red-50 { background-color: rgba(248, 113, 113, 0.08) !important; }
.bg-red-100 { background-color: rgba(248, 113, 113, 0.16) !important; }
.bg-green-50 { background-color: rgba(74, 222, 128, 0.08) !important; }
.bg-green-100 { background-color: rgba(74, 222, 128, 0.16) !important; }
.bg-yellow-50 { background-color: rgba(251, 191, 36, 0.08) !important; }
.bg-yellow-100 { background-color: rgba(251, 191, 36, 0.16) !important; }
.bg-amber-100 { background-color: rgba(251, 191, 36, 0.16) !important; }
.bg-emerald-100 { background-color: rgba(52, 211, 153, 0.16) !important; }
.bg-blue-50 { background-color: rgba(96, 165, 250, 0.09) !important; }
.bg-blue-100 { background-color: rgba(96, 165, 250, 0.16) !important; }
.bg-orange-100 { background-color: rgba(251, 146, 60, 0.16) !important; }
.bg-purple-100 { background-color: rgba(192, 132, 252, 0.15) !important; }
.bg-pink-100 { background-color: rgba(244, 114, 182, 0.15) !important; }
.bg-teal-100 { background-color: rgba(45, 212, 191, 0.15) !important; }

/* bordered status chips on dark — keep the tints consistent */
.border-red-200 { border-color: rgba(248, 113, 113, 0.35) !important; }
.border-green-200 { border-color: rgba(74, 222, 128, 0.35) !important; }
.border-yellow-200, .border-amber-200 { border-color: rgba(251, 191, 36, 0.35) !important; }
.border-blue-200 { border-color: rgba(96, 165, 250, 0.35) !important; }