/* =============================================================================
   Topical Map Generator — SEOWebChecker.com
   Design tokens: dark navy base, cyan + violet accents, Outfit/Inter type
   ============================================================================= */

:root {
  /* --- Color: dark theme (default) --- */
  --bg: #0a0e1a;
  --bg-elevated: #0f1424;
  --bg-card: #131a2e;
  --bg-card-hover: #161f38;
  --border: #232c47;
  --border-strong: #2e3a5c;
  --text: #e8ecf8;
  --text-muted: #9aa4c0;
  --text-faint: #6b7494;
  --accent-cyan: #22d3ee;
  --accent-cyan-soft: rgba(34, 211, 238, 0.14);
  --accent-violet: #a78bfa;
  --accent-violet-soft: rgba(167, 139, 250, 0.14);
  --accent-amber: #fbbf6f;
  --danger: #f87272;
  --danger-soft: rgba(248, 114, 114, 0.12);
  --success: #4ade80;

  --gradient-brand: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);

  --font-display: "Outfit", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.15), 0 12px 40px -8px rgba(34, 211, 238, 0.18);

  --header-h: 72px;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f2fa;
  --border: #e1e4ef;
  --border-strong: #cbd0e4;
  --text: #161a2c;
  --text-muted: #565f80;
  --text-faint: #8089a8;
  --accent-cyan: #0891a8;
  --accent-cyan-soft: rgba(8, 145, 168, 0.1);
  --accent-violet: #7c5cd6;
  --accent-violet-soft: rgba(124, 92, 214, 0.1);
  --danger: #d8413f;
  --danger-soft: rgba(216, 65, 63, 0.08);
  --success: #1e9e5a;
  --shadow-card: 0 10px 30px -12px rgba(20, 24, 50, 0.18);
  --shadow-glow: 0 0 0 1px rgba(8, 145, 168, 0.18), 0 12px 36px -10px rgba(8, 145, 168, 0.16);
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--text); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-inner--narrow { max-width: 820px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 12px;
}
.eyebrow--center { text-align: center; }

.section-heading {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  max-width: 720px;
}
.features .section-heading, .how-it-works .section-heading, .faq .section-heading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gradient-brand); color: #061018; box-shadow: var(--shadow-glow); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.3), 0 16px 44px -8px rgba(34, 211, 238, 0.3); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.btn-ghost { background: var(--bg-card); border-color: var(--border); color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-large { padding: 15px 30px; font-size: 1rem; width: 100%; }
.btn-small { padding: 8px 14px; font-size: 0.84rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ===================== Cookie banner ===================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 640px; margin: 0 auto;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: 16px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  transform: translateY(20px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner p { font-size: 0.86rem; color: var(--text-muted); flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--accent-cyan); text-decoration: underline; }

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { color: var(--accent-cyan); display: flex; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand-dot { color: var(--text-faint); font-weight: 500; }

.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  background: none; border: none; color: var(--text-muted); font-size: 0.92rem; font-weight: 500;
  font-family: var(--font-body); cursor: pointer; padding: 10px 14px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 6px; transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }
.chev { transition: transform 0.2s ease; }
.has-dropdown[data-open="true"] .chev { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 8px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  max-height: 70vh; overflow-y: auto; z-index: 50;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown[data-open="true"] .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-panel a {
  font-size: 0.88rem; color: var(--text-muted); padding: 9px 12px; border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown-panel a:hover { background: var(--accent-cyan-soft); color: var(--accent-cyan); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; padding: 0; align-items: center;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Breadcrumb ===================== */
.breadcrumb { border-bottom: 1px solid var(--border); background: var(--bg); }
.breadcrumb-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 24px; font-size: 0.82rem;
  color: var(--text-faint); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  overflow-x: auto; white-space: nowrap;
}
.breadcrumb-inner a:hover { color: var(--accent-cyan); }
.breadcrumb-inner .sep { color: var(--border-strong); }
.breadcrumb-inner [aria-current] { color: var(--text-muted); }

/* ===================== Hero ===================== */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-cyan-soft), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center;
  position: relative;
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.08;
  margin-bottom: 18px;
}
.hero-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin-bottom: 32px; }

.hero-form {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; display: grid; gap: 18px; box-shadow: var(--shadow-card);
}
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.req { color: var(--danger); }
.optional { color: var(--text-faint); font-weight: 400; }
input[type="text"], select {
  width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-body); font-size: 0.94rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:focus, select:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px var(--accent-cyan-soft); }
input.is-invalid { border-color: var(--danger); }
input.is-invalid:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa4c0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 32px; }
.field-help { font-size: 0.78rem; color: var(--text-faint); }
.field-error { font-size: 0.78rem; color: var(--danger); min-height: 1em; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; font-weight: 500; color: var(--text-muted); cursor: pointer; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--accent-cyan); }

.btn-spinner { display: none; animation: spin 0.8s linear infinite; }
.btn-primary.is-loading .btn-spinner { display: block; }
.btn-primary.is-loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-meta { text-align: center; font-size: 0.78rem; color: var(--text-faint); margin: 0; }

/* --- Hero signature visual: animated topical map --- */
.hero-visual { display: flex; justify-content: center; }
.hero-map-svg { width: 100%; max-width: 440px; }
.hm-link { stroke: var(--border-strong); stroke-width: 1.4; opacity: 0.7; }
.hm-link--sm { stroke-width: 1; opacity: 0.45; }
.hm-node { fill: var(--bg-card); stroke-width: 2; }
.hm-node--pillar { stroke: var(--accent-cyan); filter: drop-shadow(0 0 14px var(--accent-cyan-soft)); }
.hm-node--cluster { stroke: var(--accent-violet); }
.hm-node--leaf { stroke: var(--text-faint); fill: var(--bg-elevated); }
.hm-nodes circle { animation: hmPulse 3.2s ease-in-out infinite; }
.hm-nodes circle:nth-of-type(1) { animation-delay: 0s; }
.hm-nodes circle:nth-of-type(2) { animation-delay: 0.3s; }
.hm-nodes circle:nth-of-type(3) { animation-delay: 0.45s; }
.hm-nodes circle:nth-of-type(4) { animation-delay: 0.6s; }
.hm-nodes circle:nth-of-type(5) { animation-delay: 0.9s; }
.hm-nodes circle:nth-of-type(6) { animation-delay: 1s; }
.hm-nodes circle:nth-of-type(7) { animation-delay: 1.1s; }
.hm-nodes circle:nth-of-type(8) { animation-delay: 1.2s; }
.hm-nodes circle:nth-of-type(9) { animation-delay: 1.3s; }
.hm-nodes circle:nth-of-type(10) { animation-delay: 1.4s; }
@keyframes hmPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ===================== Results ===================== */
.results-section { padding: 8px 0 64px; }
.results-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.results-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap;
  margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.results-head h2 { font-size: 1.5rem; margin-bottom: 6px; }
.results-summary { color: var(--text-muted); font-size: 0.92rem; max-width: 560px; }
.results-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.provider-badge {
  font-size: 0.74rem; font-weight: 600; color: var(--accent-cyan); background: var(--accent-cyan-soft);
  padding: 5px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em;
}
.view-toggle { display: flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.view-btn { background: none; border: none; padding: 7px 14px; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); border-radius: 6px; cursor: pointer; }
.view-btn.is-active { background: var(--bg-elevated); color: var(--text); }

.map-view { display: grid; gap: 18px; }
.map-view[hidden], .list-view[hidden] { display: none; }
.pillar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.pillar-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.pillar-num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--gradient-brand);
  color: #061018; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.pillar-title { font-size: 1.12rem; font-weight: 700; margin-bottom: 4px; }
.pillar-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.76rem; }
.tag {
  padding: 3px 9px; border-radius: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.tag-intent { background: var(--accent-violet-soft); color: var(--accent-violet); }
.tag-type { background: var(--bg-elevated); color: var(--text-faint); border: 1px solid var(--border); text-transform: none; letter-spacing: 0; }
.pillar-desc { color: var(--text-muted); font-size: 0.9rem; margin: 8px 0 16px; }
.cluster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cluster-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 14px; }
.cluster-title { font-size: 0.91rem; font-weight: 600; margin-bottom: 6px; }
.cluster-serp { font-size: 0.78rem; color: var(--text-faint); line-height: 1.45; }

.list-view table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.list-view th, .list-view td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.list-view th { color: var(--text-faint); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; }
.list-view-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }

.linking-notes { margin-top: 28px; background: var(--accent-cyan-soft); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; }
.linking-notes h3 { font-size: 0.95rem; margin-bottom: 8px; }
.linking-notes p { font-size: 0.88rem; color: var(--text-muted); }

/* ===================== Error state ===================== */
.error-section { padding: 8px 0 56px; }
.error-inner {
  max-width: 720px; margin: 0 auto; padding: 22px 24px; background: var(--danger-soft);
  border: 1px solid var(--danger); border-radius: var(--radius-md); display: flex; gap: 16px; align-items: flex-start;
  color: var(--danger);
}
.error-inner h2 { font-size: 1.05rem; color: var(--text); margin-bottom: 6px; }
.error-inner p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }

/* ===================== Features ===================== */
.features { padding: 80px 0; background: var(--bg-elevated); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; transition: border-color 0.2s ease, transform 0.2s ease; }
.feature-card:hover { border-color: var(--accent-cyan); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-cyan-soft); color: var(--accent-cyan); margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ===================== How it works ===================== */
.how-it-works { padding: 80px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 22px; position: relative; }
.step-num { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; color: var(--accent-cyan); letter-spacing: 0.06em; display: block; margin-bottom: 14px; }
.step h3 { font-size: 0.98rem; margin-bottom: 8px; }
.step p { font-size: 0.86rem; color: var(--text-muted); }

/* ===================== About / SEO copy ===================== */
.about-copy { padding: 72px 0; background: var(--bg-elevated); }
.about-copy p { color: var(--text-muted); margin-bottom: 18px; font-size: 0.97rem; }
.about-copy p:last-child { margin-bottom: 0; }

/* ===================== FAQ ===================== */
.faq { padding: 72px 0; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 20px; }
.faq-item summary { padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 0.96rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent-cyan); font-weight: 400; flex-shrink: 0; margin-left: 12px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 18px; color: var(--text-muted); font-size: 0.9rem; }

/* ===================== CTA ===================== */
.cta { padding: 64px 0 88px; }
.cta-inner { text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 52px 32px; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.cta p { color: var(--text-muted); max-width: 480px; margin: 0 auto 28px; }
.cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-buttons .btn { width: auto; }

/* ===================== Footer ===================== */
.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-faint); font-size: 0.85rem; margin-top: 10px; max-width: 220px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--text-muted); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent-cyan); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: grid; gap: 8px; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-faint); }
.trademark-disclaimer { max-width: 760px; line-height: 1.55; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-elevated); border-bottom: 1px solid var(--border); padding: 12px 20px 20px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav.is-open .nav-link { width: 100%; justify-content: space-between; }
  .main-nav.is-open .dropdown-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; margin: 4px 0 8px 8px; }
  .main-nav.is-open .has-dropdown[data-open="true"] .dropdown-panel { display: grid; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .header-inner { padding: 0 16px; }
  .section-inner { padding: 0 16px; }
  .hero { padding: 36px 0 48px; }
  .hero-form { padding: 18px; }
  .field-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .results-head { flex-direction: column; }
  .results-actions { width: 100%; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cta-inner { padding: 36px 20px; }
  .pillar-head { flex-direction: column; }
}

@media (max-width: 420px) {
  .btn-large { font-size: 0.92rem; padding: 13px 20px; }
  .hero h1 { font-size: 1.7rem; }
}
