@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
:root {
  --ink: #142039;
  --muted: #58657b;
  --blue: #134bff;
  --line: #e0e6f0;
  --paper: #f6f8fc;
  --green: #08756a;
  --purple: #7556c6;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.65 Inter,
    system-ui,
    sans-serif;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
:focus-visible {
  outline: 3px solid #91adff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.site-head {
  height: 76px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  gap: 20px;
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.brand small {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 14px;
  margin-left: 10px;
}
.crest {
  font-size: 30px;
  color: var(--blue);
}
.site-head nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.site-head nav a {
  color: var(--muted);
  padding: 23px 0;
}
.site-head nav a[aria-current] {
  color: var(--blue);
  border-bottom: 3px solid var(--blue);
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  padding: 64px 0 44px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 600;
  margin: 0 0 24px;
}
h1 em {
  font-style: normal;
  color: var(--blue);
}
.lead {
  font-size: 18px;
  max-width: 580px;
  line-height: 1.65;
  color: var(--muted);
}
.hero-note {
  font-size: 13px;
  color: var(--muted);
}
.hero-aside {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  min-width: 280px;
}
.hero-aside strong {
  color: var(--ink);
  font-weight: 500;
}
.orbit {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #e9efff;
  border: 1px solid #cad8ff;
  font-size: 45px;
  color: var(--blue);
}
.example-notice {
  border: 1px solid #cddafa;
  background: #eef3ff;
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.example-notice > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--blue);
}
.example-notice p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
.chapter-nav {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 23px 0;
  font-size: 12px;
  white-space: nowrap;
}
.chapter-nav a {
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.controls-panel {
  position: sticky;
  top: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  scrollbar-width: thin;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-heading h2 {
  font-size: 18px;
  margin: 0;
}
.text-button {
  background: none;
  border: 0;
  font-size: 12px;
  color: var(--blue);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 16px 0 5px;
}
select,
input[type="number"],
input[type="password"] {
  width: 100%;
  border: 1px solid #d3dbe9;
  border-radius: 8px;
  padding: 9px 10px;
  background: white;
  color: var(--ink);
  min-height: 40px;
}
select {
  font-size: 13px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}
.field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.field-label output {
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}
.field-unit {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0;
}
.small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
}
.primary,
button[type="submit"] {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: white;
  border-radius: 9px;
  padding: 11px 15px;
  font-size: 13px;
  display: inline-block;
  text-align: center;
}
.secondary {
  display: inline-block;
  background: white;
  color: var(--blue);
  border: 1px solid #c6d5fd;
  border-radius: 9px;
  padding: 11px 15px;
  font-size: 13px;
  text-align: center;
}
.wide {
  width: 100%;
  margin-top: 9px;
}
.chapters {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.chapter {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  min-width: 0;
}
.chapter h2 {
  font-size: 26px;
  letter-spacing: -0.035em;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 16px;
}
.chapter h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.chapter > p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}
.profile {
  padding: 16px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.profile .initial {
  width: 28px;
  height: 28px;
  background: #dfe8ff;
  color: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  margin-bottom: 12px;
}
.profile h3 {
  font-size: 13px;
}
.profile p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 6px 0;
}
.profile strong {
  font-size: 12px;
  font-weight: 500;
}
.mini-note {
  font-size: 12px;
  padding: 12px 15px;
  border-left: 3px solid var(--blue);
  background: #f3f6ff;
}
.offer-summary {
  display: flex;
  gap: 24px;
  margin: 24px 0;
}
.offer-summary strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.03em;
}
.offer-summary span {
  font-size: 11px;
  color: var(--muted);
}
.ask-link {
  color: var(--blue);
  font-size: 12px;
  padding: 0;
  border: 0;
  background: none;
  display: inline-block;
  margin-top: 18px;
  text-align: left;
}
.funnel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 20px 0;
}
.funnel div {
  background: var(--paper);
  border-radius: 9px;
  padding: 12px 8px;
  text-align: center;
}
.funnel strong {
  display: block;
  font-size: 18px;
}
.funnel span {
  font-size: 10px;
  color: var(--muted);
}
.bar-row {
  margin: 16px 0;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 10px;
}
.bar-track {
  background: #edf1f7;
  border-radius: 5px;
  height: 14px;
  margin-top: 7px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 5px;
  transition: width 0.3s;
}
.bar-fill.baseline {
  background: #adb9cd;
}
.callout {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.callout strong {
  font-size: 28px;
  color: var(--blue);
  font-weight: 600;
  margin-right: 8px;
}
.value-hero {
  padding: 24px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  margin: 24px 0;
}
.value-hero .amount {
  display: block;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.value-hero p {
  margin: 0;
  font-size: 12px;
  color: #b9c9e5;
}
.value-hero .substats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 20px;
  border-top: 1px solid #35445e;
  padding-top: 14px;
}
.substats strong {
  display: block;
  font-size: 18px;
  color: white;
  font-weight: 500;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.module {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 10px;
  padding: 16px 12px;
}
.module.life {
  border-top-color: var(--green);
}
.module.retention {
  border-top-color: var(--purple);
}
.module h3 {
  font-size: 12px;
}
.module strong {
  display: block;
  font-size: 20px;
  line-height: 1.4;
  margin: 12px 0;
}
.module p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0;
}
.equation {
  font-size: 13px;
  line-height: 1.9;
  padding: 20px 0;
  color: var(--muted);
}
.equation b {
  color: var(--ink);
}
.timeline-chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.timeline-caption {
  font-size: 11px;
  color: var(--muted);
}
details {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 14px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 0;
}
.scroll-table {
  overflow: auto;
  margin: 16px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 500;
  color: var(--muted);
  background: var(--paper);
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.selected-row {
  background: #f1f5ff;
}
.table-choice {
  font-size: 11px;
  color: var(--blue);
  border: 1px solid #c6d5fd;
  background: white;
  border-radius: 6px;
  padding: 5px 9px;
  white-space: nowrap;
}
.quiz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quiz-grid button {
  padding: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
}
.quiz-grid button:hover,
.quiz-grid button[aria-pressed="true"] {
  border-color: var(--blue);
  background: #eef3ff;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0;
}
legend {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
}
#quizFeedback {
  font-size: 13px;
  color: var(--green);
}
.driver {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.driver h3 {
  font-size: 13px;
}
.driver p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.driver strong {
  display: block;
  color: var(--green);
  font-size: 17px;
  white-space: nowrap;
}
.assumptions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-label input {
  width: 18px;
  height: 18px;
}
.research-card {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.research-card .tag {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--blue);
}
.research-card h3 {
  margin-top: 8px;
}
.research-card p {
  font-size: 13px;
  color: var(--muted);
}
.research-card b {
  color: var(--ink);
  font-weight: 500;
}
.next-step {
  background: #eaf0ff;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.notice,
.access {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  margin-bottom: 32px;
}
.access {
  max-width: 540px;
}
.access form > div {
  display: flex;
  gap: 10px;
}
.access form input {
  min-width: 0;
}
.access form label {
  margin-top: 8px;
}
#unlockError {
  color: #b42335;
}
.error {
  color: #b42335 !important;
}
footer {
  max-width: 1200px;
  margin: 40px auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
#methods p {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 950px) {
  .hero-aside {
    display: none;
  }
  .layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .chapter {
    padding: 24px;
  }
  .profile-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }
  .profile {
    display: block;
  }
  .module strong {
    margin: 6px 0;
  }
  .brand small {
    display: none;
  }
  .profile-grid {
    gap: 8px;
  }
}
@media (max-width: 700px) {
  .site-head {
    height: auto;
    min-height: 68px;
    padding: 12px 16px;
    gap: 10px;
  }
  .site-head nav {
    gap: 12px;
    font-size: 11px;
  }
  .site-head nav a {
    padding: 10px 0;
  }
  .brand {
    font-size: 16px;
  }
  .crest {
    font-size: 25px;
  }
  main {
    padding: 0 16px;
  }
  .hero {
    padding: 38px 0 24px;
  }
  .lead {
    font-size: 16px;
  }
  .example-notice {
    display: block;
    padding: 14px;
  }
  .example-notice p {
    margin-top: 8px;
  }
  .chapter-nav {
    gap: 18px;
  }
  .layout {
    display: block;
  }
  .controls-panel {
    position: static;
    max-height: none;
    margin-bottom: 20px;
  }
  .chapters {
    gap: 18px;
  }
  .chapter {
    padding: 22px 18px;
  }
  .chapter h2 {
    font-size: 24px;
  }
  .module-grid {
    grid-template-columns: 1fr;
  }
  .offer-summary {
    gap: 16px;
  }
  .offer-summary strong {
    font-size: 20px;
  }
  .quiz-grid {
    grid-template-columns: 1fr;
  }
  .driver {
    flex-wrap: wrap;
  }
  .assumptions-grid {
    grid-template-columns: 1fr;
  }
  .funnel {
    grid-template-columns: 1fr 1fr;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .hero-note {
    font-size: 12px;
  }
  .value-hero {
    padding: 20px;
  }
  .value-hero .amount {
    font-size: 34px;
  }
  .scroll-table table {
    min-width: 560px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bar-fill {
    transition: none;
  }
}
