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

:root {
  --navy: #0f2a40;
  --blue: #1565c0;
  --blue-mid: #1976d2;
  --blue-dark: #0d47a1;
  --blue-light: #e3f0ff;
  --gold: #f5a623;
  --gold-light: #fff8ec;
  --ink: #0f1e2d;
  --muted: #5a6f82;
  --line: #dde6ef;
  --surface: #ffffff;
  --soft: #f0f4f9;
  --success: #1a7a50;
  --warning: #a16000;
  --danger: #b03030;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(15,42,64,.07);
  --shadow-md: 0 6px 24px rgba(15,42,64,.1);
  --shadow-lg: 0 12px 40px rgba(15,42,64,.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.topbar {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue-mid) 100%);
  color: #fff;
  padding: 1.1rem clamp(1.2rem, 5vw, 4rem);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(15,42,64,.22);
  position: relative;
  overflow: hidden;
}
.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,.06) 0%, transparent 60%);
  pointer-events: none;
}
.brand-wrap { display: flex; align-items: center; gap: .9rem; }
.brand-mark {
  width: 52px; height: 52px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.35));
}
h1 {
  font-size: clamp(1.15rem, 2.8vw, 1.75rem);
  margin: 0;
  letter-spacing: -.03em;
  font-weight: 800;
  line-height: 1.2;
}
.subtitle { margin: .2rem 0 0; color: rgba(231,243,255,.85); font-size: .87rem; font-weight: 500; }
.top-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.control-label { font-size: .75rem; color: rgba(231,243,255,.8); margin-left: .5rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
select, input { font: inherit; }
.top-controls select {
  background: rgba(255,255,255,.95);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius-sm);
  padding: .42rem .6rem;
  font-weight: 600;
  font-size: .87rem;
  cursor: pointer;
  transition: background .15s;
}
.top-controls select:hover { background: #fff; }

/* ── Main layout ── */
main { width: min(100% - 2rem, 980px); margin: 2.2rem auto 4rem; }

/* ── Section cards ── */
.section {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.section.active { display: block; animation: fadeUp .28s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Hero ── */
.hero-card {
  max-width: 720px;
  margin: .4rem auto;
  padding: .2rem 0;
  text-align: center;
}
.hero-card h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  margin: .5rem 0 .4rem;
  letter-spacing: -.04em;
  color: var(--navy);
  font-weight: 900;
  line-height: 1.2;
}
.intro { font-size: 1.06rem; max-width: 640px; margin: 0 auto .1rem; color: var(--muted); }
#startButton {
  display: block;
  margin: 1.6rem auto 0;
  padding: 1rem 2.2rem;
  font-size: 1.08rem;
  min-width: 220px;
  min-height: 52px;
  border-radius: 12px;
}
.notice {
  border-left: 4px solid var(--gold);
  background: var(--gold-light);
  padding: .85rem 1.1rem;
  border-radius: 10px;
  margin: 1.3rem auto;
  max-width: 640px;
  color: #7a4d00;
  font-size: .92rem;
  font-weight: 500;
  text-align: left;
}

/* ── Section headers ── */
.section-header { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.5rem; }
.section-header h2 { margin: -.15rem 0 .15rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.section-header p { margin: 0; color: var(--muted); font-size: .93rem; }
.step {
  display: grid; place-items: center;
  min-width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 800;
  font-size: .95rem;
  flex-shrink: 0;
}
h2 { margin: .5rem 0 .2rem; font-size: clamp(1.4rem, 3.8vw, 2.1rem); letter-spacing: -.03em; color: var(--navy); font-weight: 800; }
h3 { color: var(--navy); font-size: .97rem; font-weight: 700; margin: 1.7rem 0 .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); letter-spacing: .01em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }
p { margin-top: .3rem; }

/* ── Forms ── */
.form-grid { display: grid; gap: 1.1rem; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; color: #2e4459; }
label span { display: block; }
input, main select {
  width: 100%;
  border: 1.5px solid #cdd9e5;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: .75rem .85rem;
  color: var(--ink);
  outline: none;
  font-size: .95rem;
  transition: border-color .18s, box-shadow .18s;
}
input:hover, main select:hover { border-color: #a8bece; }
input:focus, main select:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3.5px rgba(21,101,192,.14);
}

/* ── Buttons ── */
.buttons { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-top: 1.9rem; }
button {
  appearance: none; border: 0;
  border-radius: var(--radius-sm);
  padding: .8rem 1.4rem;
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  letter-spacing: -.01em;
}
button:hover { transform: translateY(-2px); }
button:active { transform: translateY(0); }
.primary {
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(21,101,192,.35);
}
.primary:hover { box-shadow: 0 6px 20px rgba(21,101,192,.45); }
.secondary {
  background: var(--blue-light);
  color: var(--navy);
  box-shadow: none;
}
.secondary:hover { background: #d0e4f7; box-shadow: var(--shadow-sm); }

/* ── Results ── */
.score-card {
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
  color: #fff;
  padding: 1.6rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 1.3rem;
  box-shadow: 0 8px 30px rgba(15,42,64,.22);
  position: relative;
  overflow: hidden;
}
.score-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.score-number {
  width: 108px; height: 108px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.5);
  display: grid; place-items: center;
  text-align: center;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}
.score-number span { display: block; font-size: .67rem; font-weight: 600; margin-top: .25rem; opacity: .85; }
.score-card h3 { color: #fff; border: 0; margin: 0 0 .3rem; padding: 0; font-size: 1.35rem; font-weight: 800; text-transform: none; letter-spacing: -.02em; }
.score-card p { color: rgba(231,243,255,.8); margin: 0; font-size: .9rem; }
.status {
  display: inline-block; margin-top: .6rem;
  padding: .3rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: .82rem; font-weight: 700;
  backdrop-filter: blur(4px);
}
.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .9rem; margin: 1.1rem 0 1.3rem; }
.metric {
  background: #f4f8fc;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .9rem 1rem;
  transition: box-shadow .15s;
}
.metric:hover { box-shadow: var(--shadow-sm); }
.metric .metric-label { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.metric strong { display: block; margin-top: .35rem; color: var(--navy); font-size: 1.1rem; font-weight: 800; }
.results-table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1.5px solid var(--line); }
.results-table th, .results-table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }
.results-table tr:last-child th, .results-table tr:last-child td { border-bottom: 0; }
.results-table tr:hover th, .results-table tr:hover td { background: #f7fafd; }
.results-table th { width: 58%; background: #f2f7fb; color: #3a4e61; font-size: .87rem; font-weight: 600; }
.results-table td { font-weight: 700; color: var(--navy); font-size: .92rem; }
.insight-box {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-top: 1.1rem;
  background: #f8fbff;
}
.insight-box h3 { margin: 0 0 .4rem; font-size: .8rem; border: 0; padding: 0; }
.insight-box p { margin: 0; font-size: .93rem; }
.insight-box ul { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .91rem; }
.insight-box ul li { margin-bottom: .25rem; }
.disclaimer { margin: 1.4rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }

/* ── Teaser report ── */
.teaser-report { margin-bottom: 2rem; }
.teaser-header { text-align: center; margin-bottom: 1.2rem; }
.teaser-header h3 { font-size: 1.4rem; color: var(--blue-dark); margin: 0 0 .3rem; }
.teaser-header p { color: var(--slate); font-size: .95rem; margin: 0; }
.teaser-locked {
  position: relative; border-radius: 14px; margin-top: .6rem;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
  border: 2px dashed #90b4e8; padding: 1.8rem 1.5rem; text-align: center;
}
.teaser-locked-inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.lock-icon { font-size: 2rem; line-height: 1; }
.teaser-locked p { margin: 0; font-size: .95rem; color: var(--blue-dark); font-weight: 600; max-width: 480px; }

/* ── Pricing ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.pricing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.2rem;
  align-items: stretch;
  margin-bottom: 1rem;
}
.pricing-description {
  background: var(--soft);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pricing-desc-heading {
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
  margin: 0 0 .65rem;
  line-height: 1.35;
}
.pricing-desc-body {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.pricing-card {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card.popular {
  border-color: var(--blue-mid);
  border-width: 2.5px;
  box-shadow: 0 6px 22px rgba(21,101,192,.13);
}
.pricing-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .3rem;
}
.pricing-card.popular .pricing-price { color: var(--blue-mid); }
.pricing-name {
  font-size: .92rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .6rem;
}
.pricing-card.popular .pricing-name { color: var(--blue-dark); }
.pricing-desc {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 auto;
  padding-bottom: 1.1rem;
}
.pricing-btn {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 10px;
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  background: var(--blue-mid);
  color: #fff;
  box-shadow: 0 4px 12px rgba(21,101,192,.28);
  transition: transform .15s, box-shadow .15s, background .15s;
  margin-top: auto;
}
.pricing-btn:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(21,101,192,.38); }
.paid-startover { font-size: .82rem; opacity: .8; }
.pay-verify-panel {
  margin-bottom: 1rem;
  background: #eef5ff;
  border: 1.5px solid #90b8e8;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.pay-verify-header { display: flex; align-items: flex-start; gap: .9rem; }
.pay-verify-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; margin-top: .1rem; }
.pay-verify-title { margin: 0; font-weight: 700; color: #1a3a6e; font-size: .96rem; }
.pay-verify-sub { margin: .25rem 0 0; font-size: .84rem; color: #3a5a8a; line-height: 1.45; }
.pay-verify-form { display: flex; flex-direction: column; gap: .35rem; }
.pay-verify-form label { font-size: .84rem; font-weight: 600; color: #1a3a6e; }
.pay-verify-form input {
  padding: .55rem .8rem;
  border: 1.5px solid #90b8e8;
  border-radius: 8px;
  font-size: .95rem;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #fff;
  max-width: 280px;
}
.pay-verify-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.12); }
.tx-error { color: #c0392b; font-size: .82rem; margin: 0; }
.pay-verify-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.pricing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: .5rem;
}
.pricing-cta-btn {
  background: var(--blue-dark);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: .85rem 1.4rem;
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
  max-width: 480px;
  text-align: center;
  line-height: 1.35;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(13,71,161,.3);
}
.pricing-cta-btn:hover { background: #0b3d8e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,71,161,.4); }
.pricing-disclaimer {
  margin: 1rem 0 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 820px) {
  .pricing-layout { grid-template-columns: 1fr; }
  .pricing-description { padding: 1rem; }
}
@media (max-width: 680px) {
  .pricing-cards { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
  .pricing-footer { flex-direction: column; align-items: stretch; }
  .pricing-cta-btn { max-width: 100%; }
  .pay-verify-form input { max-width: 100%; }
  .pay-verify-actions { flex-direction: column; align-items: stretch; }
}

/* ── Contact Modal ── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,42,64,.55);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 20px 60px rgba(15,42,64,.22);
  animation: slideUp .22s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--soft); border: 0;
  border-radius: 50%; width: 32px; height: 32px;
  font-size: .95rem; cursor: pointer; color: var(--muted);
  display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-title { margin: 0 0 .25rem; font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.modal-subtitle { margin: 0 0 1.4rem; color: var(--muted); font-size: .9rem; }
.modal-field { display: grid; gap: .4rem; margin-bottom: 1rem; font-size: .88rem; font-weight: 600; color: #2e4459; }
.modal-field textarea {
  width: 100%; border: 1.5px solid #cdd9e5; border-radius: var(--radius-sm);
  background: #fff; padding: .75rem .85rem; color: var(--ink); outline: none;
  font: inherit; resize: vertical; min-height: 110px;
  transition: border-color .18s, box-shadow .18s;
}
.modal-field textarea:hover { border-color: #a8bece; }
.modal-field textarea:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3.5px rgba(21,101,192,.14); }
.modal-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.4rem; }
.modal-success {
  text-align: center; padding: 1.5rem 0 .5rem;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.modal-success-icon { font-size: 2.5rem; }
.modal-success h3 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.modal-success p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 1.5rem;
  color: var(--muted);
  text-align: center;
  font-size: .85rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
footer p { margin: 0; }
.contact-btn {
  display: inline-block;
  padding: .55rem 1.4rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 3px 10px rgba(21,101,192,.28);
  letter-spacing: .01em;
}
.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(21,101,192,.38); }

/* ── Responsive ── */
@media (max-width: 680px) {
  .topbar { align-items: flex-start; }
  .top-controls { width: 100%; }
  .top-controls select { flex: 1; min-width: 100px; }
  .two-col, .metrics-grid { grid-template-columns: 1fr; }
  main { width: min(100% - 1.2rem, 980px); margin-top: 1.2rem; }
  .section { padding: 1.2rem; border-radius: 16px; }
  .buttons { flex-direction: column; }
  .buttons button { width: 100%; }
  .score-card { grid-template-columns: 1fr; text-align: center; }
  .score-number { margin: 0 auto; }
  .hero-card { text-align: center; }
  .hero-card h2 { font-size: 1.65rem; }
  #startButton { width: 100%; min-width: unset; font-size: 1.1rem; padding: 1rem; }
}
