/* =============================================
   EASC Market Navigator™ — Design System
   Light Professional Theme · Dual-AI Edition
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ── */
:root {
  /* Brand */
  --brand: #1d4ed8;
  --brand-light: #dbeafe;
  --brand-dark: #1e3a8a;

  /* AI Engines */
  --gpt: #059669;
  --gpt-light: #d1fae5;
  --gpt-dark: #064e3b;
  --cla: #b45309;
  --cla-light: #fef3c7;
  --cla-dark: #78350f;

  /* Tool Colors */
  --tool-assess: #7c3aed;
  --tool-assess-light: #ede9fe;
  --tool-audit: #1d4ed8;
  --tool-audit-light: #dbeafe;

  /* SEO / GEO */
  --seo: #0891b2;
  --seo-light: #cffafe;
  --geo: #7c3aed;
  --geo-light: #ede9fe;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Status */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Navigation ── */
.nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-separator { color: var(--gray-300); margin: 0 4px; }

.nav-tool {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-link:hover { background: var(--gray-100); color: var(--gray-900); }

.nav-link.active {
  background: var(--brand-light);
  color: var(--brand);
}

/* ── Utility ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.badge-brand { background: var(--brand-light); color: var(--brand); }
.badge-gpt   { background: var(--gpt-light);   color: var(--gpt-dark); }
.badge-cla   { background: var(--cla-light);   color: var(--cla-dark); }
.badge-seo   { background: var(--seo-light);   color: var(--seo); }
.badge-geo   { background: var(--geo-light);   color: var(--geo); }
.badge-assess{ background: var(--tool-assess-light); color: var(--tool-assess); }
.badge-soon  { background: var(--gray-100);    color: var(--gray-500); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(29,78,216,0.3);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29,78,216,0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
}

.btn-secondary:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

.btn-lg {
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 14px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Form Elements ── */
.input-field {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field::placeholder { color: var(--gray-400); }

.input-field:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}

.form-row {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.card-hover {
  transition: all 0.25s;
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

/* ── Score Display ── */
.score-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.score-number {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.score-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Grade Tag ── */
.grade-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
}

/* ── Progress Bar ── */
.progress-bar {
  height: 8px;
  background: var(--gray-100);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.8s ease;
}

/* ── Check List ── */
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
}

.check-pass { background: #d1fae5; color: #065f46; }
.check-fail { background: #fee2e2; color: #991b1b; }
.check-warn { background: #fef3c7; color: #92400e; }

/* ── Loading State ── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.loading-overlay.active { display: flex; }

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 320px;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-400);
  padding: 6px 0;
  transition: color 0.3s;
}

.loading-step.active {
  color: var(--gray-900);
  font-weight: 500;
}

.loading-step.done { color: var(--success); }

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  flex-shrink: 0;
  transition: background 0.3s;
}

.loading-step.active .step-dot { background: var(--brand); animation: pulse 1s ease infinite; }
.loading-step.done  .step-dot { background: var(--success); }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── AI Engine Blocks ── */
.ai-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1.5px solid var(--gray-200);
}

.ai-block-gpt {
  border-top: 4px solid var(--gpt);
}

.ai-block-claude {
  border-top: 4px solid var(--cla);
}

.ai-engine-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ai-engine-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ai-engine-icon-gpt { background: var(--gpt-light); }
.ai-engine-icon-claude { background: var(--cla-light); }

.ai-engine-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

.ai-engine-sub {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ── Index Score ── */
.index-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--gray-50);
}

.index-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

/* ── Hero ── */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(160deg, var(--gray-50) 0%, var(--white) 60%);
  border-bottom: 1px solid var(--gray-200);
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 680px;
}

.hero-title em {
  font-style: normal;
  color: var(--brand);
}

.hero-desc {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 36px;
}

/* ── Tool Cards (Homepage) ── */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.tool-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tool-card-banner {
  height: 8px;
}

.tool-card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tool-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.tool-card-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tool-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.tool-card-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.tool-card-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 24px;
}

.tool-card-features {
  list-style: none;
  margin-bottom: 28px;
}

.tool-card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
  padding: 5px 0;
}

.tool-card-features .feat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tool-card-cta {
  margin-top: auto;
}

/* Coming Soon Block */
.coming-soon-card {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1.5px solid #c4b5fd;
}

.coming-soon-card .tool-card-banner {
  background: linear-gradient(90deg, var(--tool-assess), #9333ea);
}

/* Audit Card */
.audit-card .tool-card-banner {
  background: linear-gradient(90deg, var(--brand), #3b82f6);
}

/* ── Footer ── */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
}

.footer-text { font-size: 13px; }

/* ── Audit Page ── */
.audit-hero {
  background: linear-gradient(160deg, #eff6ff 0%, var(--white) 70%);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--gray-200);
}

.ai-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.ai-plus {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-400);
}

.audit-form-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  margin-top: -24px;
  position: relative;
}

.url-input-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.url-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}

.url-input {
  padding-left: 46px;
  font-size: 16px;
}

.form-disclaimer {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 12px;
}

.testcode-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--gray-200);
}

.testcode-toggle {
  font-size: 13px;
  color: var(--gray-400);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 6px;
}

.testcode-toggle:hover { color: var(--gray-600); }

.testcode-input {
  display: none;
  margin-top: 10px;
}

.testcode-input.open { display: block; }

/* ── Feature Section ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── Score Category ── */
.category-row {
  margin-bottom: 14px;
}

.category-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.category-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.category-score {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-500);
}

/* ── SEO / GEO Index Section ── */
.index-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.index-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.index-card-seo { border-top: 3px solid var(--seo); }
.index-card-geo { border-top: 3px solid var(--geo); }

.index-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 4px;
}

.index-grade-badge {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  margin-bottom: 8px;
}

.index-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ── Probability Bar ── */
.prob-bar-wrap {
  background: var(--gray-100);
  border-radius: 100px;
  height: 12px;
  overflow: hidden;
  margin: 12px 0;
}

.prob-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--seo), var(--geo));
  transition: width 1s ease;
}

/* ── Report Layout ── */
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

/* ── Assessment Page ── */
.assess-hero {
  background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 60%, var(--white) 100%);
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--gray-200);
}

.assess-banner {
  background: linear-gradient(135deg, var(--tool-assess), #9333ea);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
}

.assess-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.assess-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.assess-banner-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.assess-banner-sub {
  font-size: 16px;
  opacity: 0.85;
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.assess-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  position: relative;
  z-index: 1;
}

.assess-dims {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.assess-dim {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  position: relative;
}

.assess-dim-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--tool-assess);
  margin-bottom: 8px;
}

.assess-dim-icon { font-size: 28px; margin-bottom: 8px; }

.assess-dim-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.assess-dim-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

.assess-notify {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

/* ── Why Two AIs Section ── */
.two-ai-section {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.ai-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ai-compare-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}

.ai-compare-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}

.ai-compare-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ai-dot-gpt { background: var(--gpt); }
.ai-dot-cla { background: var(--cla); }

.ai-compare-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

.ai-compare-model {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 3px 8px;
  border-radius: 4px;
}

.ai-trait {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-50);
}

.ai-trait:last-child { border-bottom: none; }

.ai-trait-icon { flex-shrink: 0; font-size: 16px; }
.ai-trait-text { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* ── Error Message ── */
.error-box {
  background: #fff5f5;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: none;
  margin-bottom: 16px;
}

.error-box.show { display: block; }

.error-title {
  font-size: 14px;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 6px;
}

.error-desc { font-size: 13px; color: #7f1d1d; }

/* ── Recommendation Section ── */
.recommend-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.recommend-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #166534;
  margin-bottom: 12px;
}

.recommend-text {
  font-size: 15px;
  color: #14532d;
  line-height: 1.7;
}

/* ── Tabs ── */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--white);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .tools-grid,
  .report-grid,
  .ai-compare-grid,
  .index-section { grid-template-columns: 1fr; }

  .feature-grid { grid-template-columns: 1fr 1fr; }

  .assess-dims { grid-template-columns: 1fr 1fr; }

  .form-row.cols-3 { grid-template-columns: 1fr; }

  .nav-links { display: none; }

  .hero-title { font-size: 28px; }

  .hero { padding: 48px 0 36px; }
}

@media (max-width: 480px) {
  .feature-grid,
  .assess-dims { grid-template-columns: 1fr; }

  .container { padding: 0 16px; }

  .section { padding: 56px 0; }

  .audit-form-card { padding: 24px; }
}

/* ── Print / PDF ── */
@media print {
  .nav, .footer, .loading-overlay { display: none; }
  .section { padding: 24px 0; }
}

/* ══════════════════════════════════════════
   Assessment page additions
   ══════════════════════════════════════════ */

/* showSec helper used by assessment.js */
.assess-sec { display: none; }

/* Question block styles */
.q-block {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  transition: border-color .2s, background .2s;
}
.q-block.answered {
  border-color: #86efac;
  background: #f0fdf4;
}
.q-block.missing {
  border-color: #f87171;
  animation: shake .3s ease;
}
@keyframes shake {
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-6px)}
  75%{transform:translateX(6px)}
}
.q-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.q-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--brand-light);
  color: var(--brand);
  padding: 2px 8px;
  border-radius: 4px;
}
.q-type { font-size: 11px; color: var(--gray-400); }
.q-max-note { font-size: 11px; color: var(--warning); font-weight: 600; }
.q-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  line-height: 1.4;
}
.q-hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 10px;
  line-height: 1.4;
}
.q-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.q-opt {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .15s;
  white-space: normal;
  text-align: left;
  line-height: 1.3;
}
.q-opt:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
}
.q-opt.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  font-weight: 600;
}

/* Progress */
.prog-bar-wrap { margin-bottom: 20px; }
.prog-bar {
  height: 8px;
  background: var(--gray-100);
  border-radius: 100px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #3b82f6);
  border-radius: 100px;
  transition: width .4s ease;
}
.prog-text {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 6px;
  text-align: right;
}

/* Loading animation for assessment */
.loading-anim {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 20px;
  padding: 48px 24px;
}
.loading-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  margin: 0 4px;
  animation: bounce 1.2s ease infinite;
}
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
  0%,60%,100%{transform:translateY(0)}
  30%{transform:translateY(-12px)}
}

/* Form error for assessment */
.form-err {
  display: none;
  background: #fff5f5;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #991b1b;
  margin-bottom: 12px;
}

/* EGI display */
.egi-main {
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  margin-bottom: 24px;
}
.egi-num {
  font-family: var(--font-mono);
  font-size: 80px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 8px;
}
.egi-grade {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* Entry cards */
.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}
.entry-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
}
.entry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.entry-card.entry-a { border-top: 4px solid var(--brand); }
.entry-card.entry-b { border-top: 4px solid var(--tool-assess); }
.entry-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 12px;
}
.entry-features { list-style: none; padding: 0; }
.entry-features li {
  font-size: 13px;
  color: var(--gray-600);
  padding: 3px 0;
}
.entry-features li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* Result card */
.result-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.result-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

/* Skip notice */
.skip-notice {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .entry-grid { grid-template-columns: 1fr; }
  .egi-num { font-size: 60px; }
  .q-opt { font-size: 12px; padding: 7px 12px; }
}
