/* ============================================
   MapRank Analyst — Share of Model Tool
   Aesthetic: Tech Editorial · Neon Accent · AI-Native
   Palette: Off-black + Lemon + Blue + Orange neon
   ============================================ */

:root {
  /* Base */
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1F1F1F;
  --surface-3: #292929;

  /* Neon accents */
  --lemon: #D4FF00;
  --lemon-dim: #B8DD00;
  --blue: #4D7FFF;
  --blue-dim: #3A66E0;
  --orange: #FF6B1A;
  --orange-dim: #E85A0E;

  /* Text */
  --text: #F5F5F5;
  --text-soft: #C4C4C4;
  --text-muted: #8A8A8A;
  --text-dim: #5A5A5A;

  /* Lines & states */
  --line: rgba(245, 245, 245, 0.08);
  --line-strong: rgba(245, 245, 245, 0.16);
  --line-bright: rgba(245, 245, 245, 0.28);
  --success: #5DD9A0;
  --warn: #FFB347;
  --danger: #FF5C5C;

  /* Type */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* CRITICAL: Make [hidden] attribute always work, even with display:flex */
[hidden] { display: none !important; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(245, 245, 245, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 245, 245, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.glow-blob {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.glow-blob.b1 { top: -200px; right: -200px; background: var(--lemon); }
.glow-blob.b2 { bottom: -200px; left: -200px; background: var(--orange); opacity: 0.08; }

.lang-switcher {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  transition: color 0.2s;
}
.lang-btn.active { color: var(--lemon); font-weight: 700; }
.lang-btn:hover { color: var(--text); }
.lang-divider { color: var(--text-dim); }

.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 96px 32px 56px;
  position: relative;
  z-index: 2;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 56px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--lemon); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lemon);
  background: rgba(212, 255, 0, 0.08);
  border: 1px solid rgba(212, 255, 0, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 32px;
  font-weight: 500;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lemon);
  box-shadow: 0 0 8px var(--lemon);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 36px;
  color: var(--text);
}
.hero-line-1, .hero-line-2 { display: block; }
.hero-line-2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--lemon);
  font-feature-settings: "ss01";
  text-shadow: 0 0 40px rgba(212, 255, 0, 0.4);
}

.hero-sub {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 620px;
  font-weight: 300;
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.hero-meta span::before {
  content: "→ ";
  color: var(--lemon);
  margin-right: 4px;
}

.form-wrap {
  max-width: 980px;
  margin: 0 auto 80px;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lemon), transparent);
  opacity: 0.4;
}

.form-row { margin-bottom: 36px; }
.form-row:last-of-type { margin-bottom: 40px; }

.form-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}
.label-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lemon);
  letter-spacing: 0.1em;
}
.label-text {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
}

input[type="text"], input[type="url"], input[type="email"], input[type="tel"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus, input[type="url"]:focus, input[type="email"]:focus, input[type="tel"]:focus {
  outline: none;
  border-color: var(--lemon);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.12);
}
input::placeholder { color: var(--text-dim); }

.hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

.competitor-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comp-input {
  display: grid;
  grid-template-columns: 32px 1fr 1.5fr;
  gap: 10px;
  align-items: center;
}
.comp-num {
  font-family: var(--mono);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.submit-btn {
  width: 100%;
  background: var(--lemon);
  color: var(--bg);
  border: none;
  padding: 22px 32px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--r-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.15s, box-shadow 0.25s, background 0.2s;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 255, 0, 0.25);
  background: var(--lemon-dim);
}
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-arrow {
  font-size: 26px;
  transition: transform 0.25s;
}
.submit-btn:hover .btn-arrow { transform: translateX(8px); }

/* Lead capture modal */
.lead-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lead-modal {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  max-width: 520px;
  width: 100%;
  padding: 48px 44px;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lead-modal::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.lead-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.lead-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}
.lead-title em { font-style: italic; color: var(--lemon); }

.lead-sub {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 32px;
  line-height: 1.55;
}

.lead-bullets {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lead-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}
.lead-bullets li::before {
  content: "→";
  color: var(--lemon);
  font-family: var(--mono);
  flex-shrink: 0;
}

.lead-form-row { margin-bottom: 16px; }
.lead-form-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.lead-form-label .req { color: var(--orange); margin-left: 3px; }

.lead-submit {
  width: 100%;
  background: var(--orange);
  color: var(--bg);
  border: none;
  padding: 18px 28px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  border-radius: var(--r-md);
  cursor: pointer;
  margin-top: 12px;
  transition: transform 0.15s, box-shadow 0.25s, background 0.2s;
}
.lead-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(255, 107, 26, 0.3);
  background: var(--orange-dim);
}
.lead-submit:disabled {
  opacity: 0.6;
  cursor: progress;
  background: var(--surface-3);
  color: var(--text-muted);
  transform: none;
  box-shadow: none;
}

.lead-privacy {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-top: 16px;
}

.lead-error {
  background: rgba(255, 92, 92, 0.1);
  border: 1px solid rgba(255, 92, 92, 0.3);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  margin-bottom: 14px;
}

/* Loading */
.loading-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
  position: relative;
  z-index: 2;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-inner { width: 100%; }

.loading-orb {
  width: 120px;
  height: 120px;
  margin: 0 auto 40px;
  position: relative;
}
.orb-ring {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--lemon);
  border-radius: 50%;
  animation: spin 1.6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(212, 255, 0, 0.4));
}
.orb-ring.r2 {
  inset: 14px;
  border-top-color: var(--blue);
  animation-duration: 2.2s;
  animation-direction: reverse;
  filter: drop-shadow(0 0 6px rgba(77, 127, 255, 0.4));
}
.orb-ring.r3 {
  inset: 28px;
  border-top-color: var(--orange);
  animation-duration: 1.2s;
  filter: drop-shadow(0 0 6px rgba(255, 107, 26, 0.4));
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-stage {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 32px;
  font-weight: 300;
}

.loading-progress {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--lemon), var(--orange));
  width: 0;
  transition: width 0.6s ease;
  box-shadow: 0 0 8px rgba(212, 255, 0, 0.5);
}

/* Results */
.results-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 32px 80px;
  position: relative;
  z-index: 2;
}

.results-header {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.result-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lemon);
  margin-bottom: 16px;
}
.results-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.results-meta-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 300;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 64px;
  border: 1px solid var(--line-strong);
}
.score-card {
  background: var(--surface);
  padding: 28px 20px;
  position: relative;
  transition: background 0.3s;
}
.score-card.is-client {
  background: var(--orange);
  color: var(--bg);
}
.score-card.is-client .score-name { color: rgba(10, 10, 10, 0.7); }
.score-card.is-client .score-label { color: rgba(10, 10, 10, 0.6); }
.score-card.is-client .score-value { color: var(--bg); }

.score-name {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-value {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  color: var(--lemon);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.score-label {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}
.score-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--orange);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.result-block {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.result-block:last-of-type { border-bottom: none; }

.block-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
}
.block-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lemon);
  letter-spacing: 0.15em;
}
.block-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.block-content {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-soft);
}
.block-content p { margin-bottom: 16px; }
.block-content strong { color: var(--text); font-weight: 600; }

.recognition-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}
.recognition-table th, .recognition-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.recognition-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.recognition-table td { color: var(--text-soft); }
.recognition-table td em { color: var(--blue); font-style: italic; }

.attribute-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.attr-card {
  background: var(--surface);
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-bright);
}
.attr-card.is-client {
  border: 1px solid rgba(255, 107, 26, 0.3);
  border-left: 3px solid var(--orange);
  background: rgba(255, 107, 26, 0.05);
}
.attr-card-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.attr-card.is-client .attr-card-name { color: var(--orange); }
.attr-card-tags {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.4;
}

.eeat-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.eeat-row {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  align-items: center;
}
.eeat-row.is-header {
  background: transparent;
  border: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 18px 4px;
}
.eeat-signal { color: var(--text); font-weight: 500; }
.eeat-cell {
  text-align: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}
.eeat-cell.yes { color: var(--success); }
.eeat-cell.partial { color: var(--warn); }
.eeat-cell.no { color: var(--danger); }

.citation-list { list-style: none; margin-top: 12px; }
.citation-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 14px;
}
.citation-source { color: var(--text); font-weight: 500; }
.citation-weight {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.citation-weight.high { background: rgba(255, 92, 92, 0.12); color: var(--danger); border: 1px solid rgba(255, 92, 92, 0.3); }
.citation-weight.med { background: rgba(255, 179, 71, 0.12); color: var(--warn); border: 1px solid rgba(255, 179, 71, 0.3); }
.citation-weight.low { background: rgba(93, 217, 160, 0.12); color: var(--success); border: 1px solid rgba(93, 217, 160, 0.3); }
.citation-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.quick-wins-block {
  background: var(--lemon);
  color: var(--bg);
  padding: 56px 48px;
  border-radius: var(--r-xl);
  margin: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.quick-wins-block::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.25) 0%, transparent 65%);
  pointer-events: none;
}
.qw-header { margin-bottom: 36px; position: relative; }
.qw-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: rgba(10, 10, 10, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-weight: 600;
}
.qw-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bg);
}
.qw-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.qw-card {
  padding: 28px 0;
  border-top: 1px solid rgba(10, 10, 10, 0.15);
}
.qw-card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  font-weight: 300;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
}
.qw-card-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--bg);
}
.qw-card-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.78);
  margin-bottom: 14px;
}
.qw-card-meta {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(10, 10, 10, 0.55);
  flex-wrap: wrap;
}
.qw-card-meta span { font-weight: 600; }
.qw-card-meta span::before { content: "→ "; color: var(--bg); }

.cta-block {
  text-align: center;
  padding: 56px 32px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(77, 127, 255, 0.15) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
  position: relative;
}
.cta-title em { font-style: italic; color: var(--blue); }
.cta-sub {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.25s;
}
.cta-btn.primary { background: var(--lemon); color: var(--bg); }
.cta-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(212, 255, 0, 0.3);
}
.cta-btn.whatsapp { background: #25D366; color: white; }
.cta-btn.whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
}
.cta-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.cta-btn.secondary:hover { border-color: var(--lemon); color: var(--lemon); }

.restart-btn {
  display: block;
  margin: 28px auto 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  position: relative;
}
.restart-btn:hover { color: var(--lemon); }

.error-section {
  max-width: 600px;
  margin: 80px auto;
  padding: 48px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(255, 92, 92, 0.3);
  border-radius: var(--r-lg);
  position: relative;
  z-index: 2;
}
.error-text {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--danger);
  margin-bottom: 24px;
  font-style: italic;
}

.site-footer {
  max-width: 980px;
  margin: 60px auto 0;
  padding: 28px 32px 60px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: center;
  position: relative;
  z-index: 2;
}
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--lemon); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.results-section > * { animation: fadeUp 0.6s ease both; }
.results-section > *:nth-child(2) { animation-delay: 0.1s; }
.results-section > *:nth-child(3) { animation-delay: 0.2s; }
.results-section > *:nth-child(4) { animation-delay: 0.3s; }
.results-section > *:nth-child(5) { animation-delay: 0.4s; }
.results-section > *:nth-child(6) { animation-delay: 0.5s; }
.results-section > *:nth-child(7) { animation-delay: 0.6s; }

@media (max-width: 720px) {
  .hero { padding: 60px 22px 40px; }
  .form-wrap { padding: 0 22px; }
  .form-card { padding: 32px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .comp-input { grid-template-columns: 24px 1fr; }
  .comp-input input[type="url"] { grid-column: 2; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .attribute-cards { grid-template-columns: 1fr; }
  .eeat-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .eeat-row.is-header { display: none; }
  .eeat-cell { text-align: left; display: flex; justify-content: space-between; }
  .eeat-cell::before { content: attr(data-label); color: var(--text-muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
  .quick-wins-block { padding: 40px 28px; }
  .qw-title { font-size: 28px; }
  .results-section { padding: 40px 22px 60px; }
  .lang-switcher { top: 16px; right: 16px; padding: 5px 10px; font-size: 11px; }
  .submit-btn { font-size: 18px; padding: 18px 24px; }
  .citation-item { grid-template-columns: 1fr; gap: 6px; }
  .lead-modal { padding: 32px 24px; }
  .lead-title { font-size: 28px; }
  .hero-meta { gap: 14px; font-size: 10px; }
  .cta-buttons { flex-direction: column; }
  .cta-btn { justify-content: center; }
}

/* ===== PRINT / PDF STYLES ===== */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .bg-grid, .glow-blob, .lang-switcher, .hero, .form-wrap,
  #leadModal, #loading, #errorSection, .site-footer,
  .cta-buttons, .restart-btn, .cta-block::before { display: none !important; }
  .results-section { padding: 20px !important; max-width: 100% !important; }
  .results-section > * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .results-title, .block-title, .qw-title, .qw-card-title { color: #000 !important; }
  .result-meta, .label-num, .block-num, .label-text { color: #555 !important; }
  .results-meta-sub, .block-content, .block-content p, .qw-card-body, .lead-bullets li {
    color: #222 !important;
  }
  .score-grid {
    border: 1px solid #ddd !important;
    background: #ddd !important;
  }
  .score-card { background: #fff !important; }
  .score-card.is-client { background: #FF6B1A !important; color: #000 !important; }
  .score-card.is-client .score-name,
  .score-card.is-client .score-label,
  .score-card.is-client .score-value { color: #000 !important; }
  .score-card.is-client .score-tag { background: #000 !important; color: #FF6B1A !important; }
  .score-name, .score-label { color: #555 !important; }
  .score-value { color: #1a1a1a !important; }
  .recognition-table th { color: #555 !important; }
  .recognition-table td, .recognition-table td em { color: #222 !important; }
  .attr-card {
    background: #f9f9f9 !important;
    border: 1px solid #e5e5e5 !important;
    page-break-inside: avoid;
  }
  .attr-card.is-client {
    background: #fff5f0 !important;
    border-color: #FF6B1A !important;
  }
  .attr-card-name { color: #555 !important; }
  .attr-card.is-client .attr-card-name { color: #FF6B1A !important; }
  .attr-card-tags { color: #1a1a1a !important; }
  .eeat-row {
    background: #fafafa !important;
    border: 1px solid #e5e5e5 !important;
    page-break-inside: avoid;
  }
  .eeat-signal { color: #1a1a1a !important; }
  .citation-item { border-bottom: 1px solid #e5e5e5 !important; page-break-inside: avoid; }
  .citation-source { color: #1a1a1a !important; }
  .quick-wins-block {
    background: #D4FF00 !important;
    color: #000 !important;
    page-break-before: always;
    page-break-inside: avoid;
  }
  .quick-wins-block::before { display: none !important; }
  .qw-card { page-break-inside: avoid; }
  .qw-card-num { color: #FF6B1A !important; }
  .result-block { page-break-inside: avoid; }
  a { color: #4D7FFF !important; text-decoration: none !important; }
  @page { margin: 1cm; }
}
