﻿:root {
  --bg: #07111f;
  --bg-elevated: #0f172a;
  --bg-soft: #132238;
  --panel: rgba(15, 23, 42, 0.84);
  --panel-border: rgba(148, 163, 184, 0.18);
  --text: #eff6ff;
  --muted: #9fb1c9;
  --muted-strong: #c9d7eb;
  --brand: #0ea5e9;
  --brand-strong: #38bdf8;
  --accent: #14b8a6;
  --success: #22c55e;
  --warn: #f59e0b;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.14), transparent 28%),
    linear-gradient(180deg, #08111f 0%, #0b1425 45%, #07111f 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.skip-link{position:absolute;top:-100%;left:16px;background:var(--brand);color:#03101e;padding:8px 16px;border-radius:0 0 8px 8px;z-index:999;font-weight:700}.skip-link:focus{top:0}:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.6);
  outline-offset: 2px;
}

.hidden { display: none !important; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark { width: 34px; height: 34px; }
.nav-links, .footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted-strong);
}

.nav-links a:hover, .footer-links a:hover, .back-link:hover { color: white; }

.btn {
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #03101e;
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.25);
}

.btn-secondary {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.btn-ghost {
  color: var(--muted-strong);
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.btn-large { min-height: 56px; padding: 0 24px; font-size: 1rem; }

.hero-section { padding: 64px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.hero-text, .section-head p, .split-card p, .paid-grid p, .site-footer p, .results-subtitle {
  color: var(--muted-strong);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.77rem;
  font-weight: 700;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75);
  animation: pulse 1.9s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-actions, .cta-actions, .split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
}

.hero-trust span, .quick-chip, .fc, .tt {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  padding: 10px 14px;
}

.card, .hero-panel, .stat-card, .modal-panel, .tc {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-glow {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 17, 31, 0.92)),
    linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(20, 184, 166, 0.1));
}

.hero-panel { padding: 24px; }
.panel-topline { color: var(--muted); margin-bottom: 18px; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-chip {
  color: var(--text);
  text-align: left;
  min-height: 52px;
}

.mini-result {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.mini-result-title, .tc-title { font-weight: 700; font-size: 1.05rem; }

.feature-list {
  padding-left: 18px;
  margin: 14px 0 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.compact { margin-top: 10px; }

.stats-section { padding: 10px 0 18px; }
.stats-grid, .info-grid, .condition-grid, .footer-grid, .paid-grid {
  display: grid;
  gap: 18px;
}

.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card {
  padding: 20px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.stat-card span { color: var(--muted); }

.section { padding: 54px 0; }
.section-alt { background: rgba(7, 17, 31, 0.55); }
.section-head { margin-bottom: 24px; }
.section-head h2, .cta-card h2, .split-card h2, .paid-grid h2, .results-head h2 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.tab-bar {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  margin-bottom: 20px;
}

.tab-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.tab-button.is-active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(20, 184, 166, 0.22));
  color: var(--text);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-card { padding: 24px; }
.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-bottom: 14px;
  background: rgba(14, 165, 233, 0.14);
  color: var(--brand-strong);
  font-weight: 800;
}

.condition-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.condition-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.condition-card h3, .faq-card h3, .modal-head h2 { margin: 0; }
.subtype-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subtype-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--muted-strong);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.9rem;
}

.card-link {
  margin-top: auto;
  width: fit-content;
  color: var(--brand-strong);
  font-weight: 700;
}

.paid-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); align-items: center; }
.faq-card, .split-card, .cta-card { padding: 28px; }
.split-card, .cta-card, .results-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cta-section { padding-top: 24px; }

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 28px 0 36px;
}

.footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.brand-footer { margin-bottom: 8px; }

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.modal.is-open { display: grid; place-items: center; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.76);
}

.modal-panel {
  position: relative;
  width: min(calc(100% - 24px), 920px);
  max-height: min(92vh, 980px);
  overflow: auto;
  padding: 22px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.86);
  color: var(--text);
  font-size: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label, .form-grid > div {
  display: grid;
  gap: 8px;
}

.form-grid span {
  color: var(--muted-strong);
  font-weight: 600;
}

input, select, textarea {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(7, 17, 31, 0.95);
  color: var(--text);
  padding: 12px 14px;
}

textarea { min-height: 120px; resize: vertical; }
.full-span { grid-column: 1 / -1; }

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.8);
  color: var(--muted-strong);
  padding: 0 12px;
}

.chip.is-active {
  color: white;
  border-color: rgba(14, 165, 233, 0.55);
  background: rgba(14, 165, 233, 0.18);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.results-page { padding: 24px 0 72px; }
.results-head { margin-bottom: 16px; }
.back-link {
  border: 0;
  background: transparent;
  color: var(--brand-strong);
  font-weight: 700;
  padding: 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.fc {
  color: var(--muted-strong);
  padding: 8px 12px;
}

.results-shell { display: grid; gap: 18px; }
.results-body { display: grid; gap: 16px; }

.tc {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.tc-top, .tc-bot, .loading, .empty-state, .error-state, .pagination {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tc-top { flex-wrap: wrap; }

.tc-nct {
  color: var(--brand-strong);
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.26);
  padding: 8px 12px;
}

.tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tt { color: var(--muted-strong); padding: 8px 12px; }
.tt.rec { color: #d1fae5; border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.12); }
.tt.ph { color: #e0f2fe; border-color: rgba(14, 165, 233, 0.32); }

.tc-desc, .tc-clin, .tc-loc { color: var(--muted-strong); line-height: 1.7; }
.tc-bot { flex-wrap: wrap; }
.tc-acts { display: flex; flex-wrap: wrap; gap: 10px; }

.loading, .empty-state, .error-state {
  justify-content: center;
  flex-direction: column;
  padding: 64px 24px;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid rgba(148, 163, 184, 0.2);
  border-top-color: var(--brand-strong);
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.pagination {
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.pagination button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 0 16px;
}

.pagination button:disabled { opacity: 0.45; cursor: not-allowed; }
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 380px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(7, 17, 31, 0.95);
  box-shadow: var(--shadow);
  z-index: 90;
}

.legal-main { padding: 48px 0 72px; }
.legal-wrap {
  width: min(calc(100% - 32px), 860px);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.legal-wrap h1 {
  margin-top: 10px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.05em;
}

.legal-wrap h2 { margin-top: 28px; }
.legal-wrap p, .legal-wrap li { color: var(--muted-strong); line-height: 1.75; }
.contact-card { display: grid; gap: 16px; }

@media (max-width: 960px) {
  .hero-grid,
  .paid-grid,
  .footer-grid,
  .split-card,
  .cta-card,
  .results-head,
  .info-grid,
  .stats-grid,
  .condition-grid {
    grid-template-columns: 1fr;
  }

  .form-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav { min-height: 72px; }
}

@media (max-width: 640px) {
  .hero-section { padding-top: 40px; }
  .hero-copy h1 { max-width: none; }
  .quick-grid { grid-template-columns: 1fr; }
  .modal-panel { padding: 18px; }
  .nav-cta { display: none; }
}
