/* A readable chapter on the left, one stable example on the right. */
.story-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.story-nav a {
  padding-block: 10px;
  font-size: 13px;
  color: #526176;
  text-underline-offset: 6px;
}
.story-nav a[aria-current="step"] {
  color: var(--blue-dark);
  text-decoration: underline;
}
.story-chapter {
  padding-block: 36px;
  scroll-margin-top: calc(var(--header-height, 88px) + 24px);
}
.story-copy {
  margin-bottom: 28px;
  max-width: 470px;
}
.story-number {
  display: block;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #536987;
  margin-bottom: 18px;
}
.story-copy h3 {
  font-size: clamp(29px, 3vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 520;
  text-wrap: balance;
  scroll-margin-top: calc(var(--header-height, 88px) + 32px);
}
.story-copy > p,
.growth-copy > p {
  font-size: 15px;
  color: #526176;
  line-height: 1.85;
  margin-top: 20px;
}
.story-plan {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--blue-dark);
  margin-top: 20px;
}
.story-plan .icon {
  width: 16px;
  height: 16px;
}
.story-mobile-slot,
.story-stage {
  background: #152b50;
  color: #fff;
  border-radius: 16px;
  padding: 26px;
}
.story-stage {
  display: none;
}
.story-demo-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.4;
}
.story-demo-top .icon {
  color: #bad2ff;
}
.story-demo-tag {
  display: block;
  color: #bfd0ec;
  font-size: 12px;
  margin: 8px 0 22px 34px;
}
.story-rows {
  border-top: 1px solid #3b5071;
}
.story-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-block: 12px;
  border-bottom: 1px solid #3b5071;
  font-size: 14px;
  line-height: 1.5;
}
.story-row > span {
  color: #c5d5ef;
}
.story-row > strong {
  font-weight: 550;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.story-result {
  padding-block: 24px;
}
.story-result > span {
  display: block;
  color: #c5d5ef;
  font-size: 13px;
  margin-bottom: 8px;
}
.story-result > strong {
  display: block;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.story-action,
.story-reset {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}
.story-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #e4edff;
  color: #163969;
}
.story-action .icon {
  width: 18px;
  height: 18px;
}
.story-reset {
  background: #294267;
  color: #fff;
  border-color: #60799d;
}
.story-feedback {
  font-size: 12px;
  line-height: 1.7;
  color: #c5d5ef;
  margin-top: 20px;
}
.story-mobile-slot :focus-visible,
.story-stage :focus-visible {
  outline-color: #fff;
}
.story-stage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #c5d5ef;
  padding-bottom: 22px;
}
.story-counter {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.story-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: #c5d5ef;
  padding-top: 20px;
  border-top: 1px solid #3b5071;
  margin-top: 22px;
}
.story-desktop .story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: start;
}
.story-desktop .story-stage {
  display: block;
  position: sticky;
  top: calc(var(--header-height, 88px) + 24px);
}
.story-desktop .story-stage-body {
  min-height: 470px;
}
.story-desktop .story-chapter {
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding-block: 64px;
}
.story-desktop .story-chapter:first-child {
  padding-top: 24px;
}
.story-desktop .story-copy {
  margin-bottom: 0;
  padding-left: 24px;
  border-left: 1px solid #dce4ef;
}
.story-desktop .story-chapter[data-active] .story-copy {
  border-color: var(--blue);
}
.story-desktop .story-chapter[data-active] .story-number {
  color: var(--blue-dark);
}
.story-desktop .story-mobile-slot {
  display: none;
}
.growth-modules {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.growth-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 20px;
}
.growth-heading h3 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.growth-heading > p {
  max-width: 340px;
  font-size: 14px;
  color: #526176;
  line-height: 1.8;
}
.growth-module {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}
.growth-copy > .icon {
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.growth-copy h4 {
  font-size: 23px;
  letter-spacing: -0.025em;
  font-weight: 550;
}
.growth-example {
  padding: 24px;
  background: #f2f6fd;
  border-radius: 12px;
}
.growth-example .story-row {
  border-color: #d6dfed;
  font-size: 13px;
}
.growth-example .story-row > span,
.growth-example > p {
  color: #526176;
}
.growth-example > p {
  margin-top: 16px;
  font-size: 11px;
}
@media (min-width: 961px) and (max-height: 820px) {
  .story-desktop .story-stage { padding: 20px; }
  .story-desktop .story-stage-body { min-height: 420px; }
  .story-desktop .story-stage-heading { padding-bottom: 16px; }
  .story-desktop .story-demo-tag { margin-bottom: 16px; }
  .story-desktop .story-row { padding-block: 10px; }
  .story-desktop .story-result { padding-block: 18px; }
  .story-desktop .story-feedback { margin-top: 16px; }
  .story-desktop .story-disclaimer { margin-top: 16px; padding-top: 16px; }
}
.story-inline-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: #c5d5ef;
  border-top: 1px solid #3b5071;
  margin-top: 20px;
  padding-top: 16px;
}
.story-desktop .story-inline-disclaimer { display: none; }
@media (max-width: 680px) {
  .story-nav {
    gap: 0 18px;
    margin-bottom: 8px;
  }
  .story-copy {
    margin-bottom: 24px;
  }
  .story-mobile-slot {
    padding: 22px;
  }
  .story-row {
    font-size: 13px;
    gap: 12px;
  }
  .story-demo-top {
    font-size: 15px;
  }
  .growth-modules {
    margin-top: 48px;
    padding-top: 40px;
  }
  .growth-heading {
    display: block;
  }
  .growth-heading > p {
    margin-top: 20px;
  }
  .growth-module {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .growth-example {
    padding: 20px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .story-action:hover { background: #fff; }
  .story-reset:hover { background: #36547d; }
}
@media print {
  .story-nav, .story-action, .story-reset { display: none; }
  .story-mobile-slot { break-inside: avoid; }
}
