:root {
  --bg: #f3f7ff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --blue-700: #123d86;
  --blue-600: #1d4ed8;
  --blue-500: #2f6bf6;
  --line: #d7e4ff;
  --shadow: 0 20px 50px rgba(20, 61, 134, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 48%, #fdfefe 100%);
}

.bg-orb {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
}
.orb-1 { background: rgba(37, 99, 235, .15); top: -80px; right: -100px; }
.orb-2 { background: rgba(59, 130, 246, .12); bottom: 8%; left: -120px; }

.container { width: min(1120px, 92vw); margin: 0 auto 2rem; }

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(248, 251, 255, .82);
  border-bottom: 1px solid rgba(215, 228, 255, .7);
  z-index: 10;
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; gap: 1rem; }
.brand-block { display: flex; align-items: center; gap: .8rem; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(140deg, var(--blue-700), var(--blue-500));
}
.brand-name { margin: 0; font-weight: 700; }
.brand-role { margin: 0; font-size: .85rem; color: var(--muted); }
.header-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.header-actions a { color: var(--blue-700); text-decoration: none; font-weight: 600; font-size: .92rem; }

.card-glass, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 1rem;
  padding: 1.5rem;
}
.hero-aside {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid #cfddff;
  background: linear-gradient(180deg, #f5f9ff 0%, #fff 100%);
}
.hero-aside ul { margin: .6rem 0 0; padding-left: 1rem; color: #334968; line-height: 1.6; }
.hero-aside-links { display: grid; gap: .35rem; margin-top: .7rem; }
.hero-aside-links a { color: var(--blue-700); text-decoration: none; font-weight: 600; font-size: .9rem; }
.trust-line {
  margin-top: .7rem;
  padding: .5rem .6rem;
  border-radius: 10px;
  background: #eef5ff;
  color: #1f3d7a;
  font-weight: 600;
}
.hero-cta { margin-top: .9rem; }
.hero-cta-links { display: grid; gap: .25rem; margin-top: .45rem; }
.hero-cta-links a { color: var(--blue-700); text-decoration: none; font-weight: 600; }
.hero-compact-line, .hero-compact-trust { display: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-700);
  font-weight: 700;
  font-size: .73rem;
}
.muted-label { margin: 0; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: .45rem 0 .7rem; line-height: 1.1; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: .3rem 0 .5rem; }
h3 { margin: .2rem 0 .6rem; }
p { color: #27364d; line-height: 1.55; }

.funnel { padding: 1.2rem; margin-top: 1.2rem; }
.progress-wrap { margin-bottom: .8rem; }
.progress-shell { height: 10px; border-radius: 999px; background: #dbe7ff; overflow: hidden; }
.progress-bar { height: 100%; width: 16%; background: linear-gradient(90deg, var(--blue-600), #63a5ff); transition: width .3s ease; }
#progressText { color: var(--muted); font-size: .9rem; margin: .45rem 0 0; }
.concierge-line { margin: .1rem 0 .55rem; color: #1c3f83; font-weight: 600; }

.question-host {
  min-height: 190px;
  border-radius: 16px;
  border: 1px solid #dde8ff;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
  padding: 1rem;
}

.question { display: none; animation: fade .22s ease; }
.question.active { display: block; }
.question h3 { margin-top: 0; }

input, select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: .72rem;
  font: inherit;
  width: 100%;
}
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
.option-pill {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: .75rem;
  text-align: left;
  cursor: pointer;
}
.option-pill.selected { border-color: var(--blue-600); background: #edf4ff; }

.funnel-actions { display: flex; justify-content: space-between; margin-top: .9rem; gap: .6rem; }

.btn {
  border: 0;
  border-radius: 12px;
  padding: .72rem 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: linear-gradient(130deg, var(--blue-700), var(--blue-500)); color: #fff; }
.btn-neutral { background: #eef4ff; color: var(--blue-700); }

.hidden { display: none !important; }
.results-shell { margin-top: 1.4rem; }
.section-head { margin-bottom: .8rem; }
.results-confidence {
  margin: .2rem 0 .45rem;
  color: #1e3f7d;
  font-weight: 600;
}
.participation-note {
  border-left: 3px solid #9ab8f2;
  background: #eef4ff;
  padding: .5rem .65rem;
  border-radius: 8px;
  font-size: .9rem;
}

.contribution {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.contribution-controls { min-width: 360px; max-width: 520px; }
.contrib-instructions {
  background: #f6f9ff;
  border: 1px solid #d9e6ff;
  border-radius: 12px;
  padding: .75rem .9rem;
  margin-top: .5rem;
}
.contrib-instructions h4 {
  margin: 0 0 .45rem;
  color: var(--blue-700);
  font-size: .95rem;
}
.contrib-instructions ol {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: .25rem;
  font-size: .84rem;
  color: #274777;
}
.contrib-model { display: flex; gap: .4rem; margin-bottom: .65rem; }
.model-btn {
  border: 1px solid var(--line);
  background: #f8fbff;
  color: var(--blue-700);
  border-radius: 10px;
  padding: .5rem .7rem;
  cursor: pointer;
  font-weight: 600;
}
.model-btn.active { background: #e7f0ff; border-color: #b8cdf7; }
.flat-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: .5rem; }
.contrib-note { margin-top: .65rem; font-size: .82rem; color: var(--muted); }
.slider-group {
  border: 1px solid #d8e3fb;
  border-radius: 10px;
  background: #fbfdff;
  padding: .6rem .7rem;
  margin-bottom: .55rem;
}
.slider-group p {
  margin: .4rem 0 0;
  font-size: .82rem;
  color: #2d4f84;
}
#percentControl input[type="range"] {
  width: 100%;
  accent-color: #2e66c8;
}

.tier-mix-card { padding: 1rem; margin-top: .8rem; }
.mix-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.mix-note { margin-top: .6rem; font-size: .84rem; color: var(--muted); }

.results-actions { display: flex; gap: .6rem; margin-top: .8rem; }
.section-title { margin: 1.1rem 0 .5rem; }
.sort-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .9rem;
}
.sort-wrap label { font-weight: 600; color: #1f3d7a; }
.sort-wrap select { max-width: 280px; }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.plan-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 25px rgba(23, 65, 139, .08);
  padding: 1rem;
}
.plan-head { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.plan-head-side {
  display: grid;
  justify-items: end;
  gap: .4rem;
}
.plan-meta { color: var(--muted); font-size: .85rem; margin-top: .1rem; }
.badge {
  font-size: .72rem;
  border-radius: 999px;
  padding: .25rem .55rem;
  border: 1px solid #b6cdfa;
  color: var(--blue-700);
  background: #ecf3ff;
  font-weight: 700;
  white-space: nowrap;
}
.metric-row {
  border-radius: 10px;
  padding: .5rem .6rem;
  background: #f5f9ff;
  margin-top: .45rem;
  font-size: .9rem;
}
.metric-row.employer {
  background: linear-gradient(130deg, #eaf2ff, #f4f8ff);
  border: 1px solid #cbdcff;
}
.metric-row.employer strong {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.metric-row.employer .big-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--blue-700);
  line-height: 1.2;
}
.card-section {
  margin-top: .65rem;
  border-top: 1px solid #e8efff;
  padding-top: .55rem;
}
.card-section h4 {
  margin: 0 0 .4rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #60779c;
}
.benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.benefit-list li {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  border-bottom: 1px dashed #e5eeff;
  padding: .3rem 0;
  font-size: .84rem;
}
.limit-note {
  margin-top: .35rem;
  border-left: 3px solid #9bb9f6;
  background: #f5f9ff;
  padding: .45rem .55rem;
  font-size: .82rem;
}
.card-note {
  margin-top: .45rem;
  font-size: .78rem;
  color: var(--muted);
}
.interest-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .65rem;
  padding: .55rem .6rem;
  border: 1px solid #dce8ff;
  border-radius: 10px;
  background: #f7fbff;
  font-size: .86rem;
  color: #1f3d7a;
  font-weight: 600;
}
.interest-toggle.top {
  margin-top: 0;
  min-width: 118px;
  min-height: 28px;
  justify-content: center;
  padding: .28rem .45rem;
  font-size: .76rem;
  white-space: nowrap;
}
.interest-toggle input {
  width: auto;
  margin: 0;
  accent-color: #1d4ed8;
}

.mec-section { margin-top: .9rem; }

.disclosure { font-size: .84rem; color: var(--muted); margin-top: .65rem; }
.lead-capture, .cta-daniel { padding: 1.1rem; margin-top: .95rem; }
.lead-form { display: grid; gap: .6rem; }
.success { color: #0f766e; font-weight: 600; }
.error { color: #b91c1c; font-weight: 600; }
.ownership-license { font-size: .8rem; color: #5c6f8f; margin-top: .4rem; }
.footer-contact { font-size: .88rem; color: #243754; }
.footer-contact a { color: var(--blue-700); text-decoration: none; }
.site-footer {
  border-top: 1px solid #d9e5ff;
  background: #f9fbff;
  padding: 1rem 0;
}
.footer-inner { margin-bottom: 0; }

.hero.hero-compact {
  grid-template-columns: 1fr .85fr;
  padding: .58rem .82rem;
  align-items: start;
  gap: .55rem;
}
.hero.hero-compact h1 {
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  margin: .08rem 0 .2rem;
}
.hero.hero-compact .hero-detail,
.hero.hero-compact .hero-cta,
.hero.hero-compact .hero-cta-links,
.hero.hero-compact .eyebrow,
.hero.hero-compact .hero-compact-line,
.hero.hero-compact .hero-compact-trust {
  display: none;
}
.hero.hero-compact .trust-line {
  margin-top: .2rem;
  padding: .24rem .4rem;
  font-size: .73rem;
  display: inline-block;
}
.hero.hero-compact .hero-aside {
  padding: .42rem .52rem;
}
.hero.hero-compact .hero-aside ul li:nth-child(n+3) {
  display: none;
}
.hero.hero-compact .hero-aside-links {
  margin-top: .18rem;
}

@keyframes fade { from { opacity: .2; transform: translateY(4px);} to { opacity: 1; transform: none;} }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero.hero-compact { grid-template-columns: 1fr; }
  .contribution { flex-direction: column; }
  .contribution-controls { min-width: 0; max-width: 100%; }
  .mix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav-wrap, .header-actions { flex-direction: column; align-items: flex-start; }
  .option-grid, .flat-row, .mix-grid { grid-template-columns: 1fr; }
  .results-actions { flex-direction: column; }
}
