/* ============================================================
   aiready.tools — Design System v3.0
   Central CSS — governs ALL pages, EN + DE
   Dark Intelligence · Amber × Teal · DM Serif + IBM Plex Mono
   ============================================================ */

/* Fonts loaded via <link> in <head> for performance — no @import */
/* ── Skip Navigation (Accessibility) ────────────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--amber);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  text-decoration: none;
  transition: top 0.15s;
}
.skip-nav:focus { top: 0; }



/* ── CSS CUSTOM PROPERTIES ───────────────────────────────────── */
:root {
  /* Backgrounds — dark hierarchy */
  --bg-void:       #050608;
  --bg-base:       #090A12;
  --bg-surface:    #0E1020;
  --bg-card:       #13162A;
  --bg-raised:     #191D34;
  --bg-hover:      #1E233E;
  --bg-glass:      rgba(9, 10, 18, 0.85);
  --bg-border:     rgba(255,255,255,0.065);
  --bg-border-md:  rgba(255,255,255,0.11);
  --bg-border-str: rgba(255,255,255,0.18);

  /* Accent — amber primary */
  --amber:         #F0A500;
  --amber-light:   #FFB800;
  --amber-dim:     rgba(240,165,0,0.15);
  --amber-glow:    rgba(240,165,0,0.07);
  --amber-text:    #FFC733;

  /* Accent — teal secondary */
  --teal:          #00C4CC;
  --teal-dim:      rgba(0,196,204,0.12);

  /* Accent — violet tertiary */
  --violet:        #8B7CF6;
  --violet-dim:    rgba(139,124,246,0.12);

  /* Score colours — consistent across all result pages */
  --score-excellent: #00E5A0;
  --score-good:      #4DBBFF;
  --score-fair:      #F0A500;
  --score-poor:      #FF7A45;
  --score-critical:  #FF4040;

  /* Text hierarchy */
  --text-primary:   #ECEEF8;
  --text-secondary: #8591B4;
  --text-muted:     #4D5470;
  --text-ghost:     rgba(236,238,248,0.3);

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Spacing scale */
  --sp-2:   2px;
  --sp-4:   4px;
  --sp-8:   8px;
  --sp-12:  12px;
  --sp-16:  16px;
  --sp-24:  24px;
  --sp-32:  32px;
  --sp-40:  40px;
  --sp-48:  48px;
  --sp-64:  64px;
  --sp-80:  80px;
  --sp-96:  96px;

  /* Legacy spacing aliases (backwards compat) */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-2xl: 64px;

  /* Border radius */
  --r-xs:  3px;
  --r-sm:  5px;
  --r-md:  9px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* Nav height — single source of truth */
  --nav-h: 66px;

  /* Transitions */
  --t-fast: 0.14s ease;
  --t-med:  0.24s ease;
  --t-slow: 0.4s ease;

  /* Shadows */
  --shadow-card:  0 1px 3px rgba(0,0,0,0.5), 0 0 0 1px var(--bg-border);
  --shadow-amber: 0 0 20px rgba(240,165,0,0.15);
  --shadow-up:    0 -1px 0 var(--bg-border);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }
ul, ol { list-style: none; }

/* ── NOISE TEXTURE (subtle depth) ────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── NAVIGATION ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--bg-border);
  transition: border-color var(--t-med), background var(--t-med);
}
.nav.nav--scrolled {
  background: rgba(9,10,18,0.96);
  border-bottom-color: var(--bg-border-md);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center;
  padding: 0 var(--sp-32);
  gap: var(--sp-16);
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-primary);
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { transition: transform var(--t-med); }
.nav-logo:hover .logo-mark svg { transform: rotate(22.5deg); }
.nav-brand {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.nav-brand-dot { color: var(--amber); }

/* Desktop nav links */
.nav-links {
  display: flex; align-items: center; gap: var(--sp-4);
  margin-left: auto;
}
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  text-decoration: none;
}
.nav-link-external {
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-link-external svg { opacity: 0.5; }

/* Right side actions */
.nav-actions {
  display: flex; align-items: center; gap: var(--sp-8);
  flex-shrink: 0;
}
.nav-lang {
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  padding: 5px 9px;
  border: 1px solid var(--bg-border);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}
.nav-lang:hover {
  color: var(--text-primary);
  border-color: var(--bg-border-md);
  text-decoration: none;
}
.nav-login {
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--r-md);
  transition: color var(--t-fast);
}
.nav-login:hover { color: var(--text-primary); text-decoration: none; }
.nav-cta { font-size: 13px; padding: 8px 18px; }

/* User menu (logged-in state) */
.nav-user-menu {
  position: relative;
}
.nav-user-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border-md);
  border-radius: var(--r-md);
  padding: 5px 10px 5px 6px;
  cursor: pointer; color: var(--text-secondary);
  font-size: 12px; font-family: var(--font-mono);
  transition: all var(--t-fast);
}
.nav-user-btn:hover { border-color: rgba(240,165,0,0.35); color: var(--text-primary); }
.nav-user-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); color: #000;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-user-email { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border-md);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  padding: 6px;
  display: none; flex-direction: column; gap: 2px;
  z-index: 200;
}
.nav-user-dropdown.open { display: flex; }
.nav-user-dropdown a {
  display: block; padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 13px; color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--t-fast);
}
.nav-user-dropdown a:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-logout-link { color: var(--text-muted) !important; }
.nav-logout-link:hover { color: #ff6b6b !important; }

/* Burger button (mobile) */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--bg-border);
  border-radius: var(--r-md);
  background: transparent; gap: 5px;
  transition: border-color var(--t-fast);
}
.nav-burger:hover { border-color: var(--bg-border-md); }
.nav-burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all var(--t-fast);
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-border);
  padding: var(--sp-16) var(--sp-24) var(--sp-24);
  transform: translateY(-4px);
  opacity: 0;
  transition: opacity var(--t-med), transform var(--t-med);
  pointer-events: none;
}
.nav-drawer.is-open {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.nav-drawer-link {
  display: block;
  padding: 13px 0;
  font-size: 15px; font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-border);
  transition: color var(--t-fast);
}
.nav-drawer-link:hover { color: var(--text-primary); text-decoration: none; }
.nav-drawer-lang {
  color: var(--text-muted);
  font-size: 13px;
}

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--sp-40);
  position: relative; z-index: 1;
}
.container-sm {
  max-width: 800px; margin: 0 auto;
  padding: 0 var(--sp-40);
  position: relative; z-index: 1;
}
.container-xs {
  max-width: 600px; margin: 0 auto;
  padding: 0 var(--sp-40);
  position: relative; z-index: 1;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(240,165,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,165,0,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 10%, transparent 100%);
}
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,0.055) 0%, transparent 65%);
  top: -300px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.hero-content {
  text-align: center;
  padding: var(--sp-80) 0 var(--sp-64);
  max-width: 920px; margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber);
  padding: 6px 16px;
  border: 1px solid rgba(240,165,0,0.22);
  border-radius: var(--r-full);
  background: var(--amber-glow);
  margin-bottom: var(--sp-24);
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--sp-24);
}
.hero-headline em {
  font-style: italic;
  background: linear-gradient(130deg, var(--amber) 0%, #FFD060 60%, var(--amber-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px; font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 600px; margin: 0 auto var(--sp-40);
}
.hero-input-wrap {
  display: flex; align-items: center;
  max-width: 620px; margin: 0 auto var(--sp-32);
  background: var(--bg-card);
  border: 1px solid var(--bg-border-md);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 22px;
  transition: border-color var(--t-med), box-shadow var(--t-med);
}
.hero-input-wrap:focus-within {
  border-color: rgba(240,165,0,0.45);
  box-shadow: 0 0 0 3px rgba(240,165,0,0.07), var(--shadow-amber);
}
.hero-input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-primary); min-width: 0;
}
.hero-input-wrap input::placeholder { color: var(--text-muted); }
.btn-audit {
  padding: 11px 26px;
  background: var(--amber);
  color: #07080C;
  font-family: var(--font-body);
  font-weight: 600; font-size: 14px;
  border: none; border-radius: var(--r-full);
  white-space: nowrap;
  transition: background var(--t-fast), transform var(--t-fast);
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.btn-audit:hover { background: var(--amber-light); transform: translateY(-1px); }
.btn-audit:active { transform: translateY(0); }
.hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-32); font-size: 12px; color: var(--text-muted);
  flex-wrap: wrap;
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-trust span::before { content: '✓'; color: var(--score-excellent); font-weight: 600; }

/* ── STAT BAR ────────────────────────────────────────────────── */
.stat-bar {
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  background: var(--bg-surface);
  padding: var(--sp-40) 0;
}
.stat-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bg-border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.stat-item {
  background: var(--bg-surface);
  padding: var(--sp-24) var(--sp-32);
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 42px; line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(130deg, var(--amber) 0%, #FFD060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em; }

/* ── SECTIONS ────────────────────────────────────────────────── */
.section    { padding: var(--sp-96) 0; }
.section-sm { padding: var(--sp-64) 0; }
.section-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: var(--sp-12);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12; letter-spacing: -0.022em;
  color: var(--text-primary);
  margin-bottom: var(--sp-16);
}
.section-sub {
  font-size: 16px; color: var(--text-secondary);
  max-width: 540px; line-height: 1.75;
}

/* ── HOW IT WORKS ────────────────────────────────────────────── */
.how-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--sp-16); margin-top: var(--sp-48);
}
.how-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-xl);
  padding: var(--sp-32);
  position: relative;
  transition: border-color var(--t-med), transform var(--t-med);
}
.how-card:hover { border-color: rgba(240,165,0,0.2); transform: translateY(-2px); }
.how-num {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: var(--amber); letter-spacing: 0.1em;
  margin-bottom: var(--sp-16);
}
.how-title { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.how-desc  { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── MODULES GRID ────────────────────────────────────────────── */
.modules-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-16); margin-top: var(--sp-48);
}
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-xl);
  padding: var(--sp-32);
  display: flex; gap: var(--sp-16);
  transition: border-color var(--t-med), transform var(--t-med);
}
.module-card:hover { border-color: rgba(240,165,0,0.18); transform: translateY(-2px); }
.module-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.module-body { flex: 1; min-width: 0; }
.module-title  { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.module-desc   { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 10px; }
.module-weight {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--amber); margin-bottom: 8px;
}
.module-tags   { display: flex; gap: 6px; flex-wrap: wrap; }
.mtag {
  font-size: 10px; padding: 2px 8px; border-radius: var(--r-full);
  font-weight: 500;
}
.mtag-free   { background: rgba(0,229,160,0.11); color: #00E5A0; border: 1px solid rgba(0,229,160,0.2); }
.mtag-pro    { background: rgba(0,196,204,0.11); color: var(--teal); border: 1px solid rgba(0,196,204,0.2); }
.mtag-agency { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(240,165,0,0.2); }

/* ── REPORT PREVIEW ──────────────────────────────────────────── */
.report-preview {
  background: var(--bg-card);
  border: 1px solid var(--bg-border-md);
  border-radius: var(--r-xl);
  overflow: hidden; margin-top: var(--sp-48);
}
.report-header {
  background: var(--bg-surface);
  padding: var(--sp-16) var(--sp-24);
  border-bottom: 1px solid var(--bg-border);
  display: flex; align-items: center; gap: var(--sp-16); flex-wrap: wrap;
}
.report-url {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); flex: 1;
}
.report-score-badge {
  font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--score-fair);
}
.report-body { padding: var(--sp-24); }
.report-dims { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-24); }
.rdim { display: flex; align-items: center; gap: 12px; }
.rdim-name { font-size: 12px; color: var(--text-secondary); width: 170px; flex-shrink: 0; }
.rdim-bar  { flex: 1; height: 4px; background: var(--bg-border-md); border-radius: 2px; overflow: hidden; }
.rdim-fill { height: 100%; border-radius: 2px; transition: width 1.2s ease; }
.rdim-val  { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); width: 32px; text-align: right; }
.report-findings { display: flex; flex-direction: column; gap: 8px; }
.finding {
  display: flex; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-md); font-size: 13px;
}
.finding-crit { background: rgba(255,64,64,0.07);  border: 1px solid rgba(255,64,64,0.15);  color: #FF8888; }
.finding-warn { background: rgba(240,165,0,0.07);  border: 1px solid rgba(240,165,0,0.15);  color: var(--amber); }
.finding-ok   { background: rgba(0,229,160,0.07);  border: 1px solid rgba(0,229,160,0.15);  color: var(--score-excellent); }
.report-gate {
  text-align: center; padding: var(--sp-32);
  background: linear-gradient(180deg, transparent 0%, var(--bg-surface) 60%);
  border-top: 1px solid var(--bg-border);
  position: relative;
}
.gate-blur-mask {
  position: absolute; top: -80px; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg-surface));
  pointer-events: none;
}

/* ── SYNERGY SECTION ─────────────────────────────────────────── */
.synergy-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--bg-border);
  border-radius: var(--r-xl); overflow: hidden;
  margin-top: var(--sp-48);
}
.synergy-pane { background: var(--bg-card); padding: var(--sp-40); }
.synergy-tool {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--sp-16);
}
.synergy-arrow {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg-surface);
  border-radius: var(--r-md); font-size: 13px; color: var(--text-secondary);
  margin-top: var(--sp-16);
}
.synergy-arrow::before { content: '→'; color: var(--amber); font-size: 16px; }

/* ── PRICING GRID ────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: var(--sp-16); margin-top: var(--sp-48); align-items: start;
}
.plan-card {
  background: var(--bg-card); border: 1px solid var(--bg-border);
  border-radius: var(--r-xl); padding: var(--sp-32);
  transition: border-color var(--t-med);
}
.plan-card:hover { border-color: var(--bg-border-md); }
.plan-card.featured {
  background: linear-gradient(160deg, rgba(240,165,0,0.055), var(--bg-card));
  border-color: rgba(240,165,0,0.32);
  position: relative;
}
.plan-card.featured::before {
  content: attr(data-badge);
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--amber); color: #07080C;
  padding: 4px 14px; border-radius: var(--r-full); white-space: nowrap;
}
.plan-name  {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: var(--sp-16);
}
.plan-price {
  font-family: var(--font-display); font-size: 38px; line-height: 1;
  color: var(--text-primary); margin-bottom: 4px;
}
.plan-price sup { font-size: 18px; vertical-align: top; margin-top: 7px; }
.plan-cycle { font-size: 12px; color: var(--text-muted); margin-bottom: var(--sp-24); }
.plan-desc  { font-size: 13px; color: var(--text-secondary); margin-bottom: var(--sp-24); line-height: 1.65; }
.plan-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: var(--sp-32); }
.plan-features li {
  font-size: 13px; color: var(--text-secondary);
  display: flex; gap: 8px; align-items: flex-start;
}
.plan-features li::before {
  content: '✓'; color: var(--score-excellent); flex-shrink: 0;
  font-size: 12px; margin-top: 2px; font-weight: 600;
}
.plan-features li.locked { color: var(--text-muted); }
.plan-features li.locked::before { content: '—'; color: var(--text-muted); }
.btn-plan {
  width: 100%; padding: 11px;
  border: 1px solid var(--bg-border-md); border-radius: var(--r-md);
  background: transparent; color: var(--text-primary);
  font-size: 14px; font-weight: 500;
  transition: all var(--t-fast);
}
.btn-plan:hover { background: var(--bg-raised); }
.btn-plan-primary { background: var(--amber); border-color: transparent; color: #07080C; }
.btn-plan-primary:hover { background: var(--amber-light); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--t-fast);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--amber); color: #07080C; }
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--bg-border-md);
}
.btn-outline:hover { background: var(--bg-raised); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ── BADGES / TAGS ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; font-family: var(--font-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-full);
}
.badge-free       { background: rgba(0,229,160,0.11); color: #00E5A0; }
.badge-pro        { background: var(--teal-dim); color: var(--teal); }
.badge-agency     { background: var(--amber-dim); color: var(--amber); }
.badge-enterprise { background: var(--violet-dim); color: var(--violet); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--bg-border);
  padding: var(--sp-64) 0 var(--sp-48);
  margin-top: var(--sp-80);
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-48); margin-bottom: var(--sp-48);
}
.footer-logo { margin-bottom: var(--sp-16); display: inline-flex; }
.footer-brand p {
  font-size: 13px; color: var(--text-muted); max-width: 280px;
  line-height: 1.7; margin-bottom: var(--sp-16);
}
.footer-sister {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--teal); letter-spacing: 0.02em;
}
.footer-sister:hover { color: var(--teal); text-decoration: underline; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--sp-16);
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 13px; color: var(--text-secondary); }
.footer-col a:hover { color: var(--text-primary); text-decoration: none; }
.footer-lang-switch { font-size: 12px; color: var(--text-muted); }
.footer-bottom {
  padding-top: var(--sp-24);
  border-top: 1px solid var(--bg-border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--sp-8); font-size: 12px; color: var(--text-muted);
}
.footer-tagline { font-style: italic; }

/* ── RESULTS PAGE COMPONENTS ─────────────────────────────────── */
.results-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-border);
  padding: var(--sp-40) 0;
  margin-top: var(--nav-h);
}
.results-url {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-muted); margin-bottom: var(--sp-8);
}
.results-score-main {
  display: flex; align-items: center; gap: var(--sp-40); flex-wrap: wrap;
}
.score-circle {
  width: 100px; height: 100px; border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 3px solid var(--score-fair);
  box-shadow: 0 0 24px rgba(240,165,0,0.14);
}
.score-number { font-family: var(--font-mono); font-size: 32px; font-weight: 600; color: var(--score-fair); line-height: 1; }
.score-label-sm { font-size: 10px; color: var(--text-muted); letter-spacing: 0.05em; }
.score-meta { flex: 1; }
.score-verdict { font-family: var(--font-display); font-size: 28px; margin-bottom: 6px; }
.score-summary { font-size: 14px; color: var(--text-secondary); max-width: 520px; line-height: 1.65; }

/* ── TABS ────────────────────────────────────────────────────── */
.tabs-nav {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--bg-border);
  background: var(--bg-surface);
  padding: 0 var(--sp-40);
  overflow-x: auto;
  position: sticky; top: var(--nav-h); z-index: 100;
}
.tab-btn {
  padding: 14px var(--sp-16); font-size: 13px; font-weight: 500;
  color: var(--text-muted); background: none; border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: all var(--t-fast);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--amber); border-bottom-color: var(--amber); }
.tab-panel { display: none; padding: var(--sp-40) 0; }
.tab-panel.active { display: block; }

/* ── MODULE RESULT CARDS ─────────────────────────────────────── */
.result-card {
  background: var(--bg-card); border: 1px solid var(--bg-border);
  border-radius: var(--r-xl); padding: var(--sp-32); margin-bottom: var(--sp-16);
}
.result-card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: var(--sp-16); margin-bottom: var(--sp-24);
}
.result-card-title { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.result-card-sub   { font-size: 13px; color: var(--text-secondary); }
.score-pill { font-family: var(--font-mono); font-size: 22px; font-weight: 600; flex-shrink: 0; }
.dim-list { display: flex; flex-direction: column; gap: 10px; }
.dim-row  { display: flex; align-items: center; gap: 12px; }
.dim-name { font-size: 13px; color: var(--text-secondary); width: 200px; flex-shrink: 0; }
.dim-bar  { flex: 1; height: 5px; background: var(--bg-border-md); border-radius: 3px; overflow: hidden; }
.dim-fill { height: 100%; border-radius: 3px; }
.dim-val  { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); width: 32px; text-align: right; }

/* Score fill colours */
.fill-excellent { background: var(--score-excellent); }
.fill-good      { background: var(--score-good); }
.fill-fair      { background: var(--score-fair); }
.fill-poor      { background: var(--score-poor); }
.fill-critical  { background: var(--score-critical); }

/* ── CRAWLER TABLE ───────────────────────────────────────────── */
.crawler-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.crawler-table th {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  padding: 8px 12px; text-align: left;
  border-bottom: 1px solid var(--bg-border);
}
.crawler-table td {
  padding: 10px 12px; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.crawler-table tr:last-child td { border-bottom: none; }
.crawler-table tr:hover td { background: var(--bg-hover); }
.status-allowed { color: var(--score-excellent); font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.status-blocked { color: var(--score-critical); font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.status-partial { color: var(--score-fair); font-family: var(--font-mono); font-size: 11px; font-weight: 600; }

/* ── FINDINGS ────────────────────────────────────────────────── */
.finding-list { display: flex; flex-direction: column; gap: 8px; }
.finding-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md);
  font-size: 13px; line-height: 1.6;
}
.finding-critical { background: rgba(255,64,64,0.07); border: 1px solid rgba(255,64,64,0.15); }
.finding-warning  { background: rgba(240,165,0,0.07); border: 1px solid rgba(240,165,0,0.15); }
.finding-success  { background: rgba(0,229,160,0.07); border: 1px solid rgba(0,229,160,0.15); }
.finding-icon  { flex-shrink: 0; font-size: 14px; margin-top: 1px; }
.finding-body  { flex: 1; }
.finding-title { font-weight: 500; margin-bottom: 2px; }
.finding-desc  { font-size: 12px; color: var(--text-secondary); }
.finding-action {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--amber); cursor: pointer;
}
.finding-action:hover { text-decoration: underline; }

/* ── UPGRADE GATE ────────────────────────────────────────────── */
.upgrade-gate {
  background: linear-gradient(135deg, var(--bg-raised), var(--bg-card));
  border: 1px solid rgba(240,165,0,0.18);
  border-radius: var(--r-xl); padding: var(--sp-40);
  text-align: center; position: relative; overflow: hidden;
}
.upgrade-gate::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.upgrade-gate h3 { font-family: var(--font-display); font-size: 26px; margin-bottom: var(--sp-8); }
.upgrade-gate p  { font-size: 14px; color: var(--text-secondary); margin-bottom: var(--sp-24); }

/* ── AUDIT / LOADING PAGE ────────────────────────────────────── */
.audit-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: var(--sp-40);
  text-align: center;
}
.audit-domain {
  font-family: var(--font-mono); font-size: 13px; color: var(--amber);
  margin-bottom: var(--sp-40);
}
.progress-modules {
  display: flex; flex-direction: column; gap: 8px;
  width: 100%; max-width: 560px; margin: var(--sp-32) 0;
}
.prog-module {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--bg-card);
  border: 1px solid var(--bg-border); border-radius: var(--r-md);
  font-size: 13px; transition: border-color var(--t-med);
}
.prog-module.running { border-color: rgba(240,165,0,0.25); }
.prog-module.done    { border-color: rgba(0,229,160,0.2); }
.prog-status  { width: 16px; height: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.prog-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(240,165,0,0.2); border-top-color: var(--amber);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.prog-check { color: var(--score-excellent); font-size: 14px; }
.prog-wait  { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-border-md); }
.prog-name  { flex: 1; }
.prog-time  { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.overall-progress {
  width: 100%; max-width: 560px; height: 4px;
  background: var(--bg-border-md); border-radius: 2px; overflow: hidden;
}
.overall-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  transition: width 0.5s ease;
}

/* ── DASHBOARD ───────────────────────────────────────────────── */
.dash-layout {
  display: grid; grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
}
.dash-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--bg-border);
  padding: var(--sp-32) var(--sp-16);
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.dash-main { padding: var(--sp-40); max-width: 940px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-md);
  font-size: 13px; color: var(--text-secondary); transition: all var(--t-fast);
  text-decoration: none;
}
.sidebar-nav a:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-nav a.active { background: var(--amber-glow); color: var(--amber); border: 1px solid rgba(240,165,0,0.15); }
.dash-card {
  background: var(--bg-card); border: 1px solid var(--bg-border);
  border-radius: var(--r-xl); padding: var(--sp-32); margin-bottom: var(--sp-16);
}
.dash-card-title {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: var(--sp-16);
}

/* ── CHECKOUT ────────────────────────────────────────────────── */
.checkout-wrap {
  display: grid; grid-template-columns: 1fr 420px;
  padding-top: var(--nav-h); min-height: 100vh;
}
.checkout-left  { padding: var(--sp-64); border-right: 1px solid var(--bg-border); }
.checkout-right {
  padding: var(--sp-48) var(--sp-40); background: var(--bg-surface);
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

/* ── AUTH ────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: var(--sp-80) var(--sp-24) var(--sp-24);
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-card); border: 1px solid var(--bg-border-md);
  border-radius: var(--r-xl); padding: var(--sp-40);
}

/* ── FORM ELEMENTS ───────────────────────────────────────────── */
.form-group   { margin-bottom: var(--sp-16); }
.form-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); display: block; margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 11px 14px;
  background: var(--bg-surface); border: 1px solid var(--bg-border-md);
  border-radius: var(--r-md); color: var(--text-primary);
  font-family: var(--font-body); font-size: 14px; outline: none;
  transition: border-color var(--t-fast);
}
.form-input:focus { border-color: rgba(240,165,0,0.4); }
.form-input::placeholder { color: var(--text-muted); }

/* ── AUDIT TABLE IN DASHBOARD ────────────────────────────────── */
.audit-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.audit-table th {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--bg-border);
}
.audit-table td {
  padding: 12px; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle;
}
.audit-table tr:last-child td { border-bottom: none; }
.audit-table tr:hover td { background: var(--bg-hover); cursor: pointer; }
.score-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 25px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}

/* ── USAGE BAR (dashboard) ───────────────────────────────────── */
.usage-bar     { margin-top: 8px; }
.usage-label   { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.usage-track   { height: 3px; background: var(--bg-border-md); border-radius: 2px; overflow: hidden; }
.usage-fill    { height: 100%; border-radius: 2px; background: var(--amber); transition: width 0.5s; }

/* ── UTILITIES ───────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-amber   { color: var(--amber); }
.text-teal    { color: var(--teal); }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mono         { font-family: var(--font-mono); }
.display      { font-family: var(--font-display); }
.fw-600       { font-weight: 600; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm  { gap: var(--sp-8); }
.gap-md  { gap: var(--sp-16); }
.gap-lg  { gap: var(--sp-24); }
.gap-xl  { gap: var(--sp-40); }
.mt-sm   { margin-top: var(--sp-8); }
.mt-md   { margin-top: var(--sp-16); }
.mt-lg   { margin-top: var(--sp-24); }
.mt-xl   { margin-top: var(--sp-40); }
.mt-2xl  { margin-top: var(--sp-64); }
.mb-sm   { margin-bottom: var(--sp-8); }
.mb-md   { margin-bottom: var(--sp-16); }
.mb-lg   { margin-bottom: var(--sp-24); }
.mb-xl   { margin-bottom: var(--sp-40); }
.hidden  { display: none; }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.55; transform: scale(0.75); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.fade-up   { opacity: 0; transform: translateY(18px); animation: fadeUp 0.65s ease forwards; }
.delay-1   { animation-delay: 0.10s; }
.delay-2   { animation-delay: 0.20s; }
.delay-3   { animation-delay: 0.30s; }
.delay-4   { animation-delay: 0.45s; }
.delay-5   { animation-delay: 0.60s; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-links         { display: none; }
  .nav-login         { display: none; }
  .nav-user-menu     { display: none; }
  .nav-cta           { display: none; }
  .nav-lang          { display: none; }
  .nav-burger        { display: flex; }
  .nav-drawer        { display: block; }
  .container,
  .container-sm,
  .container-xs      { padding: 0 var(--sp-24); }
  .nav-inner         { padding: 0 var(--sp-24); }
  .how-grid          { grid-template-columns: 1fr; }
  .modules-grid      { grid-template-columns: 1fr; }
  .stat-bar-inner    { grid-template-columns: 1fr 1fr; }
  .footer-inner      { grid-template-columns: 1fr 1fr; gap: var(--sp-32); }
  .synergy-split     { grid-template-columns: 1fr; }
  .results-score-main { gap: var(--sp-24); }
  .dash-layout       { grid-template-columns: 1fr; }
  .dash-sidebar      { display: none; }
  .checkout-wrap     { grid-template-columns: 1fr; }
  .checkout-right    { position: static; height: auto; }
}

@media (max-width: 640px) {
  .pricing-grid   { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; }
  .hero-trust     { flex-direction: column; gap: var(--sp-8); }
  .section        { padding: var(--sp-64) 0; }
  .how-card       { padding: var(--sp-24); }
  .hero-headline  { font-size: clamp(36px, 10vw, 56px); }
  .checkout-left  { padding: var(--sp-32) var(--sp-24); }
  .tabs-nav       { padding: 0 var(--sp-16); }
}
