:root {
  --ink: #17202b;
  --muted: #606873;
  --line: rgba(24, 59, 102, .14);
  --paper: #f7f4ee;
  --card: rgba(255, 255, 255, .88);
  --clay: #183b66;
  --brand-light: #2d6cdf;
  --nova: #e32932;
  --leaf: #7fd0b2;
  --shadow-soft: 0 18px 50px rgba(24, 59, 102, .08);
  --shadow-premium: 0 24px 80px rgba(24, 59, 102, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(45, 108, 223, .13), transparent 27rem),
    radial-gradient(circle at 92% 24%, rgba(227, 41, 50, .075), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.page-shell {
  width: min(100%, 1216px);
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--nova);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(227, 41, 50, .2);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 850;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.topnav, .profile-switcher, .rate-controls, .final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-pill, .profile-switcher button, .rate-controls button, .secondary-action {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  color: var(--muted);
  padding: 10px 16px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.nav-pill:hover, .profile-switcher button:hover, .rate-controls button:hover, .secondary-action:hover {
  border-color: rgba(45, 108, 223, .55);
  transform: translateY(-1px);
}

.profile-switcher button.is-active, .rate-controls button.is-active {
  border-color: var(--clay);
  background: var(--clay);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  min-height: 82vh;
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  border: 1px solid rgba(24, 59, 102, .2);
  border-radius: 999px;
  background: rgba(232, 238, 245, .82);
  color: var(--clay);
  padding: 10px 16px;
  box-shadow: var(--shadow-soft);
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 24px 0 26px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid var(--clay);
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  padding: 14px 26px;
  font-weight: 650;
  box-shadow: var(--shadow-premium);
  transition: transform .16s ease, opacity .16s ease;
}

.primary-action:hover { background: #244f83; transform: translateY(-1px); }
.primary-action:disabled { cursor: not-allowed; opacity: .42; transform: none; }
.primary-action.compact { min-height: 46px; padding: 11px 20px; box-shadow: none; }
.hero-start-action { margin-top: 10px; }
.section-action { margin-top: 26px; }

.potential-panel {
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 8px;
  background: linear-gradient(145deg, #183b66, #244f83);
  color: #fff;
  padding: 28px;
  box-shadow: var(--shadow-premium);
}

.potential-panel strong {
  display: block;
  margin: 8px 0 2px;
  font-size: clamp(42px, 7vw, 60px);
  line-height: 1;
}

.muted-on-dark { color: rgba(255, 255, 255, .56); }

.signal-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.signal-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  padding: 14px 16px;
}

.signal-list p::after {
  content: "✓";
  color: var(--leaf);
  font-weight: 800;
}

.content-panel, .services-panel {
  max-width: 920px;
  margin: 42px auto;
}

.section-heading { margin-bottom: 28px; }
.section-heading .clay { margin: 0 0 8px; }
.clay { color: var(--clay); font-weight: 650; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 22px;
  box-shadow: var(--shadow-premium);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

label.full { grid-column: 1 / -1; }

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

input:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid rgba(45, 108, 223, .62);
  outline-offset: 2px;
}

textarea { min-height: 116px; resize: vertical; }

.scan-panel {
  max-width: 900px;
  margin: 42px auto;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 59, 102, .1);
  margin-bottom: 24px;
}

#progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--clay);
  transition: width .2s ease;
}

.question-card, .service-card, .recommendation-card, .client-forecast {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 24px;
  box-shadow: var(--shadow-premium);
}

.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.question-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.question-meta p:first-child { color: var(--clay); font-weight: 650; }
.question-card h2 { margin-top: 22px; font-size: clamp(28px, 4vw, 38px); }

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.answer-grid button {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  padding: 18px;
  text-align: left;
  font-size: 18px;
  font-weight: 650;
}

.answer-grid button.is-active {
  border-color: var(--clay);
  background: var(--clay);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.question-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.result-panel {
  padding: 44px 0;
}

.result-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.metric-card span {
  color: var(--muted);
  font-size: 14px;
}

.metric-card strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 34px;
}

.result-method {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.recommendation-card { padding: 20px; box-shadow: var(--shadow-soft); }
.recommendation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  border-radius: 999px;
  background: rgba(24, 59, 102, .08);
  padding: 5px 10px;
  font-size: 12px;
}

.recommendation-card .problem {
  margin: 16px 0 12px;
  font-weight: 650;
}

.recommendation-card .description, .recommendation-card .deliverable, .service-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.rec-detail {
  margin-top: 16px;
  border-radius: 8px;
  background: rgba(24, 59, 102, .055);
  padding: 12px;
  font-size: 13px;
}

.notice {
  margin-top: 20px;
  border: 1px solid rgba(45, 108, 223, .24);
  border-radius: 8px;
  background: rgba(45, 108, 223, .09);
  color: var(--clay);
  padding: 13px 15px;
  font-size: 14px;
}

.client-forecast {
  margin-top: 34px;
}

.subscription-section {
  margin-top: 46px;
}

.compact-heading {
  margin-bottom: 22px;
}

.compact-heading h2,
.catalog-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.catalog-heading {
  margin-top: 52px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.offer-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.offer-card.is-featured {
  border-color: rgba(45, 108, 223, .55);
  box-shadow: 0 22px 60px rgba(24, 59, 102, .16);
}

.offer-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 750;
}

.offer-card h3 {
  margin: 8px 0 18px;
  font-size: 25px;
}

.offer-card p,
.offer-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.offer-card ul {
  margin: 20px 0 0;
  padding-left: 18px;
}

.offer-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 49px;
}

.offer-price strong {
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

.offer-price span {
  color: var(--muted);
  font-size: 13px;
}

.service-pricing {
  color: var(--clay) !important;
  font-weight: 700;
}

.forecast-grid, .services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.service-card { box-shadow: var(--shadow-soft); }
.service-card h3 { margin: 10px 0; }
.service-card ul { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.is-hidden { display: none !important; }

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 24px 4px 8px;
  border-top: 1px solid rgba(24, 59, 102, .14);
  color: var(--muted);
  font-size: 13px;
}

.legal-footer a {
  color: var(--clay);
  font-weight: 750;
  text-underline-offset: 3px;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}

.form-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.form-privacy a {
  color: var(--clay);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1020px) {
  .hero, .metric-grid, .recommendation-grid, .forecast-grid, .services-grid, .offer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .recommendation-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .page-shell { padding: 16px; }
  .topbar, .result-heading, .question-actions { align-items: stretch; flex-direction: column; }
  .hero, .contact-grid, .answer-grid, .metric-grid, .recommendation-grid, .forecast-grid, .services-grid, .offer-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding: 42px 0; }
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
  .primary-action, .secondary-action { width: 100%; }
  .legal-footer { flex-direction: column; }
  .legal-footer nav { justify-content: flex-start; }
}
