:root {
  --bg: #0b1020;
  --bg-soft: #121933;
  --card: #ffffff;
  --text: #111827;
  --muted: #5b6477;
  --line: #dde3ef;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --green: #0f9f6e;
  --amber: #d97706;
  --red: #dc2626;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(11, 16, 32, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 300px, #f8fafc 100%);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 84px 0; }
.muted { background: rgba(255,255,255,0.65); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid rgba(221, 227, 239, 0.7);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}
nav { display: flex; gap: 22px; color: var(--muted); font-weight: 600; }
nav a:hover { color: var(--accent); }

.hero {
  background: radial-gradient(circle at top left, rgba(79,70,229,0.15), transparent 35%),
              radial-gradient(circle at top right, rgba(124,58,237,0.18), transparent 30%),
              var(--bg);
  color: var(--white);
  padding: 88px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.eyebrow.small { color: inherit; opacity: 0.7; margin-bottom: 8px; }
.hero h1, .section-heading h2 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.hero h1 { font-size: clamp(3rem, 6vw, 5.25rem); max-width: 11ch; }
.hero-copy {
  color: rgba(255,255,255,0.82);
  font-size: 1.14rem;
  line-height: 1.65;
  max-width: 58ch;
  margin: 22px 0 28px;
}
.hero-cta, .input-actions, .secondary-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta { margin-bottom: 34px; row-gap: 18px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--white); }
.button-secondary { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.2); }
.button-ghost { background: #fff; color: var(--accent); border-color: rgba(79,70,229,0.18); }
.full-width { width: 100%; }
.hero-points {
  padding-left: 18px;
  margin: 0;
  color: rgba(255,255,255,0.8);
  display: grid;
  gap: 10px;
}
.hero-card {
  padding: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 26px;
}
.metric-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.metric-preview span { color: rgba(255,255,255,0.72); }
.metric-preview strong { font-size: 1.15rem; }
.metric-preview.highlight.success { background: rgba(15,159,110,0.18); }

.section-heading { margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.section-heading p { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }
.narrow { max-width: 720px; }

.calculator-grid {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.input-card {
  padding: 22px;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}
.input-card label { display: grid; gap: 8px; }
.input-card span { font-weight: 600; font-size: 0.96rem; }
.label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
 .help-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(79,70,229,0.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: help;
  vertical-align: middle;
  transform: translateY(-1px);
}
.help-icon::after {
  content: attr(data-help);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 260px;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: left;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 20;
}
.help-icon:hover::after,
.help-icon:focus::after {
  opacity: 1;
}
input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 1rem;
}
input:focus {
  outline: 2px solid rgba(79,70,229,0.18);
  border-color: var(--accent);
}
.results-panel { display: grid; gap: 18px; }
.score-card {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-left: 8px solid var(--green);
}
.score-card.warning { border-left-color: var(--amber); }
.score-card.danger { border-left-color: var(--red); }
.score-card h3 { margin: 0; font-size: 1.5rem; }
.score-card p:last-child { margin: 0; color: var(--muted); max-width: 28ch; text-align: right; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.result-card { padding: 20px; }
.result-card span { color: var(--muted); display: block; margin-bottom: 8px; }
.result-card strong { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.04em; }
.result-card.success { background: #ecfdf5; }
.result-card.warning { background: #fffbeb; }
.result-card.accent { background: #eef2ff; }
.result-card .label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-bottom: 0;
}
.result-label-row {
  display: block;
  margin-bottom: 8px;
}
.result-card .label-with-help .help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none;
  margin: 0;
}
.result-card strong {
  display: block;
}
.result-help-icon::after {
  width: 300px;
  max-width: 300px;
  white-space: normal;
  overflow-wrap: break-word;
}
.result-card.warning .result-help-icon::after {
  left: 0;
  right: auto;
  transform: none;
}
.result-card.accent .result-help-icon::after {
  left: 0;
  right: auto;
  transform: none;
}
.span-2 { grid-column: span 2; }
.formula-card { padding: 24px; }
.formula-card h3 { margin-top: 0; }
.formula-card ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); }
.inline-note { margin-top: 18px; }

.benefits-grid, .faq-list, .steps-grid, .trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.sample-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.sample-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.sample-card {
  padding: 26px;
}
.sample-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}
.sample-card h3 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.sample-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.65;
}
.sample-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.sample-metrics div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.sample-metrics span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.sample-metrics strong {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
.sample-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.founder-note {
  padding: 28px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8ff 100%);
}
.founder-note h3 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  letter-spacing: -0.04em;
}
.founder-note p:last-child { margin-bottom: 0; }
.benefits-grid .card, .faq-item, .step-card, .trust-card { padding: 24px; }
.benefits-grid h3, .faq-item h3, .step-card h3, .trust-card h3 { margin-top: 0; margin-bottom: 12px; }
.benefits-grid p, .faq-item p, .step-card p, .trust-card p, .founder-note p { margin: 0 0 14px; color: var(--muted); line-height: 1.75; }
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 800;
  margin-bottom: 16px;
}

.upsell-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: center;
}
.checklist { padding-left: 18px; display: grid; gap: 10px; color: var(--muted); }
.pricing-card { padding: 28px; }
.price {
  margin: 0 0 12px;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.cta-band {
  background: linear-gradient(180deg, #f5f7ff 0%, #eef2ff 100%);
}
.bottom-cta {
  padding: 32px;
  text-align: center;
  background: linear-gradient(135deg, #111827, #1f2a44);
  color: var(--white);
}
.bottom-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.bottom-cta p {
  margin: 0 auto;
  max-width: 62ch;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}
.bottom-cta-actions {
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 0;
}
.bottom-cta .eyebrow {
  color: #c7d2fe;
}
.price span { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.tiny { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.site-footer {
  background: var(--bg);
  color: rgba(255,255,255,0.75);
  padding: 24px 0 36px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.single-line-footer {
  justify-content: center;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-grid, .calculator-grid, .upsell-grid, .benefits-grid, .faq-list, .steps-grid, .trust-grid, .sample-grid {
    grid-template-columns: 1fr;
  }
  .input-card { position: static; }
  .score-card { flex-direction: column; align-items: start; }
  .score-card p:last-child { text-align: left; }
}

@media (max-width: 640px) {
  nav { display: none; }
  .section { padding: 68px 0; }
  .results-grid, .sample-metrics { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .hero { padding-top: 72px; }
  .hero-card, .sample-card, .bottom-cta { padding: 18px; }
}