/* ============================================================
   HEUS Schema / JSON-LD Generator
   ============================================================ */

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

:root {
  --primary: #2dd4bf;
  --secondary: #a78bfa;
  --bg: #0a0f1e;
  --surface: #111827;
  --input-bg: #1a2235;
  --border: #1e2d45;
  --text: #dee1f7;
  --text-bright: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --danger: #ef4444;
  --gold: #fde047;
  --code-bg: #0d1424;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Serif', serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

/* ---------- Background ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  pointer-events: none;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.2;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.6; }
}
.top-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 60vh;
  background: radial-gradient(circle at center,
    rgba(45, 212, 191, 0.15),
    rgba(167, 139, 250, 0.05) 40%,
    transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Nav ---------- */
.top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(20px, 4vw, 60px);
  max-width: 1400px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(135deg, #f5f0e8, #2dd4bf, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-divider { color: var(--text-muted); font-weight: 300; }
.brand-section {
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}
.nav-back {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.nav-back:hover { color: var(--primary); }

/* ---------- Layout ---------- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 60px) 80px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 40px 0 50px;
  max-width: 880px;
  margin: 0 auto;
}
.section-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 20px;
}
.section-label.teal { color: var(--primary); }
.section-label.center { text-align: center; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.1;
  color: white;
  margin-bottom: 24px;
}
.hero-title .accent {
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}
.hero-sub {
  font-family: 'Noto Serif', serif;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text);
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- Before / After comparison ---------- */
.before-after {
  margin-bottom: 60px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin: 0 auto 18px;
  max-width: 1000px;
}
@media (max-width: 880px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .comp-arrow { transform: rotate(90deg); }
}

.comp-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px 24px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
.comp-card.after {
  border: 2px solid var(--primary);
  box-shadow: 0 18px 50px rgba(45,212,191,0.22);
}
.comp-card.after::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(45,212,191,0.3), rgba(167,139,250,0.25));
  z-index: -1;
  filter: blur(14px);
}

.comp-tag {
  position: absolute;
  top: -10px;
  left: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  border-radius: 999px;
}
.comp-tag.after-tag {
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  color: var(--bg);
  border-color: transparent;
}

.comp-arrow {
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
}
.comp-arrow svg { width: 36px; height: 36px; }

/* Mock Google search result (light theme like real Google) */
.google-result {
  font-family: arial, 'Helvetica Neue', Helvetica, sans-serif;
  color: #1a1a1a;
  line-height: 1.4;
}
.g-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.g-favicon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #fbbf24);
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
}
.g-meta-text { line-height: 1.2; }
.g-domain {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
}
.g-breadcrumb {
  font-size: 12px;
  color: #4d5156;
}
.g-title {
  font-size: 20px;
  font-weight: 400;
  color: #1a0dab;
  line-height: 1.3;
  margin: 4px 0 6px;
  font-family: arial, 'Helvetica Neue', Helvetica, sans-serif;
}
.comp-card.after .g-title { color: #1558d6; }
.g-snippet {
  font-size: 13.5px;
  color: #4d5156;
  line-height: 1.5;
  margin-bottom: 6px;
}
.g-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 14px;
  color: #4d5156;
  margin: 4px 0 8px;
}
.g-stars {
  color: #fbbc04;
  letter-spacing: 1px;
  font-size: 14px;
}
.g-rating-num { color: #1a1a1a; font-weight: 600; }
.g-rating-count { color: #70757a; }
.g-dot { color: #70757a; }
.g-type, .g-price { color: #4d5156; }
.g-extra {
  font-size: 13.5px;
  color: #4d5156;
  margin-top: 4px;
}
.g-open { color: #137333; font-weight: 600; }

.comparison-note {
  text-align: center;
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.comparison-note strong {
  color: white;
  font-family: 'Manrope', sans-serif;
}

/* ---------- Type selector ---------- */
.type-selector {
  margin-bottom: 50px;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 920px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .type-grid { grid-template-columns: 1fr; }
}
.type-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Noto Serif', serif;
}
.type-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,212,191,0.1);
}
.type-card.is-active {
  border-color: var(--primary);
  background: linear-gradient(160deg, rgba(45,212,191,0.12), rgba(167,139,250,0.06));
  box-shadow: 0 0 0 1px var(--primary), 0 12px 36px rgba(45,212,191,0.18);
}
.type-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(45,212,191,0.18), rgba(167,139,250,0.12));
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.type-icon svg { width: 20px; height: 20px; }
.type-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: white;
  margin-bottom: 4px;
}
.type-desc {
  font-family: 'Noto Serif', serif;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- Build section ---------- */
.build-section {
  margin-bottom: 70px;
}
.build-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 940px) {
  .build-grid { grid-template-columns: 1fr; }
}

.form-panel,
.preview-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.panel-header { margin-bottom: 22px; }
.panel-header h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 26px;
  color: white;
  line-height: 1.3;
  margin-top: 8px;
}
.panel-sub {
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 6px;
}
.panel-sub code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--primary);
}

/* ---------- Form fields ---------- */
.schema-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
}
.field label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.field label .required {
  color: var(--primary);
  margin-left: 4px;
}
.field input,
.field textarea,
.field select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 80px; font-family: 'Noto Serif', serif; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); font-style: italic; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.12);
}
.field .hint {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  font-family: 'Noto Serif', serif;
}

.field-group {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(10,15,30,0.4);
}
.field-group-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 4px;
}

/* Repeater (FAQ Q&A list) */
.repeater-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.repeater-item {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  position: relative;
}
.repeater-item .remove-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s;
}
.repeater-item .remove-btn:hover {
  background: rgba(239,68,68,0.1);
  border-color: var(--danger);
  color: var(--danger);
}
.add-row-btn {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--primary);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.add-row-btn:hover {
  border-color: var(--primary);
  background: rgba(45,212,191,0.05);
}

/* ---------- Preview panel ---------- */
.preview-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.action-btn {
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  color: var(--bg);
  border: none;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(45,212,191,0.2);
  text-decoration: none;
}
.action-btn svg { width: 16px; height: 16px; }
.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,212,191,0.35);
  color: var(--bg);
}
.action-btn.ghost-btn {
  background: transparent;
  color: var(--text-bright);
  border: 1px solid var(--border);
  box-shadow: none;
}
.action-btn.ghost-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.action-btn.is-copied {
  background: linear-gradient(135deg, #1f2937, #111827);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.code-preview {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  max-height: 520px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}
.code-preview .tk-key { color: #f0abfc; }
.code-preview .tk-str { color: #5eead4; }
.code-preview .tk-num { color: #fbbf24; }
.code-preview .tk-brk { color: #94a3b8; }
.code-preview .tk-tag { color: #60a5fa; }

.install-hint {
  margin-top: 14px;
  font-family: 'Noto Serif', serif;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}
.install-hint strong { color: var(--text-bright); }
.install-hint code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--primary);
}

/* ---------- Why + stats ---------- */
.why-section,
.install-section,
.faq,
.final-cta {
  margin-bottom: 70px;
}
.learn-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}
.learn-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  color: white;
  margin: 8px 0 14px;
}
.learn-title .accent {
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}
.learn-sub {
  font-family: 'Noto Serif', serif;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-tile {
  background: linear-gradient(135deg, #0d1f3c, #0a1628);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
}
.stat-big {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  padding-bottom: 0.1em;
  display: inline-block;
}
.stat-text {
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- Install how-grid ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  transition: all 0.3s;
}
.how-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(45,212,191,0.12);
}
.how-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(45,212,191,0.2), rgba(167,139,250,0.15));
  border: 1px solid var(--border);
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.how-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: white;
  line-height: 1.3;
  margin-bottom: 10px;
}
.how-card p {
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.how-card code,
.how-card strong { color: var(--primary); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.how-card strong { color: white; font-family: 'Manrope', sans-serif; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: rgba(45,212,191,0.4);
  box-shadow: 0 8px 30px rgba(45,212,191,0.08);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: white;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: rgba(45,212,191,0.04); }
.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 1px;
  transition: transform 0.3s;
}
.faq-icon::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.faq-item[open] .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer {
  padding: 0 24px 22px;
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.faq-answer code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--primary);
}

/* ---------- Final CTA ---------- */
.final-cta-inner {
  background: linear-gradient(135deg, #0d1f3c, #0a1628);
  border: 1px solid rgba(45,212,191,0.3);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 12px 40px rgba(45,212,191,0.08);
}
@media (max-width: 720px) {
  .final-cta-inner { flex-direction: column; text-align: center; padding: 30px 24px; }
}
.final-cta-text { flex: 1; }
.final-cta h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  color: white;
  margin: 6px 0 12px;
  line-height: 1.2;
}
.final-cta p {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}
.cta-btn {
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  color: var(--bg);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s;
  box-shadow: 0 4px 22px rgba(45,212,191,0.25);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45,212,191,0.4);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #111827, #0a0f1e);
  border: 1px solid var(--primary);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(45,212,191,0.25);
  z-index: 100;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast[hidden] { display: none; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: linear-gradient(160deg, #111827, #0a0f1e);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(45,212,191,0.1);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.is-open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close:hover {
  background: rgba(239,68,68,0.08);
  border-color: var(--danger);
  color: var(--danger);
}
.modal-card h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 26px;
  color: white;
  line-height: 1.25;
  margin: 8px 0 10px;
}
.modal-sub {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.lead-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s;
  margin-bottom: 18px;
}
.lead-option:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}
.lead-option .option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.lead-option .option-icon svg { width: 24px; height: 24px; }
.lead-option .option-body { flex: 1; }
.lead-option .option-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: white;
  margin-bottom: 3px;
}
.lead-option .option-sub {
  font-family: 'Noto Serif', serif;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}
.lead-option .option-arrow {
  color: #25d366;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.lead-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
  color: var(--text-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.lead-divider::before, .lead-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.form-row input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s;
}
.form-row input::placeholder { color: var(--text-muted); }
.form-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.12);
}
.form-row input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.form-submit {
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  color: var(--bg);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(45,212,191,0.25);
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,212,191,0.4);
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-hint {
  font-family: 'Noto Serif', serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
  font-style: italic;
}
.modal-success, .modal-error { text-align: center; padding: 20px 0 10px; }
.success-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 30px rgba(45,212,191,0.45);
}
.success-circle svg { width: 32px; height: 32px; }
.modal-success p, .modal-error p {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text-dim);
  margin: 8px 0 22px;
  line-height: 1.55;
}
.modal-error h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: white;
  margin-bottom: 8px;
}
.modal-error a { color: var(--primary); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-brand {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--primary); }
