*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --page-pad: 24px;
}

html {
  scroll-behavior: smooth;
  background: #023B6C;
}

body {
  margin: 0;
  background: #023B6C;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a {
  color: #F6F3EC;
  text-decoration: none;
}

a:hover {
  color: #C9A96E;
}

.page {
  background: #023B6C;
  color: #F6F3EC;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

/* Motion — unchanged from the draft */
@keyframes wsp-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes wsp-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes wsp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes wsp-pulse {
  0% { r: 6; opacity: 0.9; }
  100% { r: 22; opacity: 0; }
}

@keyframes wsp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes wsp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wsp-in {
  opacity: 0;
  animation: wsp-up 1s cubic-bezier(.2, .7, .2, 1) forwards;
}

.wsp-d1 { animation-delay: .1s; }
.wsp-d2 { animation-delay: .35s; }
.wsp-d3 { animation-delay: .6s; }
.wsp-d4 { animation-delay: .85s; }
.wsp-d5 { animation-delay: 1.3s; }

.wsp-heroline {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: wsp-draw 2.4s cubic-bezier(.6, 0, .2, 1) .5s forwards;
}

.wsp-heroarea {
  opacity: 0;
  animation: wsp-fade 1.4s ease 1.8s forwards;
}

.wsp-float { animation: wsp-float 6s ease-in-out infinite; }
.wsp-float2 { animation: wsp-float 7s ease-in-out 1s infinite; }
.wsp-pulse { animation: wsp-pulse 2s ease-out 2.8s infinite; }
.wsp-marquee { animation: wsp-marquee 53.33s linear infinite; will-change: transform; }

@supports (animation-timeline: view()) {
  .wsp-rv {
    animation: wsp-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }

  .wsp-lit {
    color: #3A74A5;
    animation: wsp-light linear both;
    animation-timeline: view();
    animation-range: cover 20% cover 45%;
  }

  @keyframes wsp-light {
    to { color: #1D2B27; }
  }

  .wsp-sdraw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: wsp-draw linear both;
    animation-timeline: view();
    animation-range: entry 30% cover 60%;
  }

  .wsp-zoom {
    animation: wsp-zoom linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  @keyframes wsp-zoom {
    from { transform: scale(.92); border-radius: 48px; }
    to { transform: scale(1); border-radius: 28px; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .wsp-in,
  .wsp-rv,
  .wsp-heroline,
  .wsp-heroarea,
  .wsp-sdraw,
  .wsp-zoom {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }

  .wsp-float,
  .wsp-float2,
  .wsp-pulse,
  .wsp-marquee {
    animation: none !important;
  }

  .wsp-lit {
    animation: none !important;
    color: #1D2B27 !important;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    transition: none !important;
  }
}

#top,
#chapters,
#plan,
#about,
#fees,
#book {
  scroll-margin-top: 88px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 59, 108, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(246, 243, 236, 0.08);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px var(--page-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 38px;
  width: auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #F6F3EC;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.nav-toggle:focus-visible {
  outline: 2px solid #C9A96E;
  outline-offset: 3px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 0.2s ease;
}

.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
  color: #C6D1CC;
}

.nav a {
  color: #C6D1CC;
  text-decoration: none;
}

.nav a:hover {
  color: #C6D1CC;
}

.nav a.nav-cta {
  background: #F6F3EC;
  color: #023B6C;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a.nav-cta:hover {
  color: #023B6C;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px var(--page-pad) 120px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-photo {
  flex: 1.4 1 520px;
  min-width: 0;
  max-width: 640px;
  align-self: flex-end;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 100%),
    linear-gradient(to top, transparent 0%, #000 22%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 100%),
    linear-gradient(to top, transparent 0%, #000 22%, #000 100%);
  mask-composite: intersect;
}

@media (min-width: 1000px) {
  .hero-photo img {
    transform: translateX(48px);
  }
}

.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9A96E;
}

.eyebrow-text {
  min-width: 0;
  flex: 1 1 0;
}

.eyebrow-rule {
  width: 28px;
  height: 1px;
  background: #C9A96E;
  flex: 0 0 auto;
}

.hero-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(3rem, 5.5vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: #9CC5B4;
}

.hero-lead {
  margin: 0;
  max-width: 33rem;
  font-size: 1.2rem;
  color: #C6D1CC;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-gold {
  background: #C9A96E;
  color: #023B6C;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  text-align: center;
}

.btn-gold:hover {
  color: #023B6C;
}

.text-link {
  color: #F6F3EC;
  text-decoration: none;
  padding: 16px 8px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.text-link:hover {
  color: #F6F3EC;
}

.hero-visual {
  flex: 1 1 440px;
  min-width: 0;
  position: relative;
}

.chart-card {
  position: relative;
  border-radius: 28px;
  background: #074674;
  border: 1px solid rgba(246, 243, 236, 0.1);
  padding: 28px 28px 20px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  min-width: 0;
}

.chart-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 8px;
}

.chart-kicker {
  font-size: 0.85rem;
  color: #9FB2AB;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-meta {
  font-size: 0.8rem;
  color: #9FB2AB;
}

.chart {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #7F958E;
  padding-top: 8px;
}

.chip {
  background: #F6F3EC;
  color: #023B6C;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 100%;
}

.chip-pay {
  position: absolute;
  left: -28px;
  top: 46%;
}

.chip-exit {
  position: absolute;
  right: -16px;
  bottom: -28px;
}

.chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.chip-icon-green { background: #DDE9E3; }
.chip-icon-gold { background: #F1E6CF; }

.chip-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.chip-label {
  font-size: 0.78rem;
  color: #55665F;
}

.chip-value {
  font-weight: 600;
}

/* Marquee */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  padding: 22px 0;
  background: #F6F3EC;
}

.marquee-wrap::before,
.marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  z-index: 1;
  pointer-events: none;
}

.marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, #F6F3EC, transparent);
}

.marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, #F6F3EC, transparent);
}

.marquee {
  display: flex;
  align-items: center;
  width: max-content;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}

.marquee-group {
  flex: 0 0 auto;
}

.marquee img {
  display: block;
  height: 42px;
  width: auto;
  flex: 0 0 auto;
}

/* Statement */
.statement {
  max-width: none;
  margin: 0;
  padding: 120px max(var(--page-pad), calc((100% - 1240px) / 2)) 140px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  align-items: center;
  background: #F6F3EC;
  color: #1D2B27;
}

.statement .chip {
  background: #FAF7F1;
}

.statement-text {
  flex: 1 1 420px;
  min-width: 0;
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1.15;
}

.is-italic {
  font-style: italic;
}

/* Chapters */
.chapters {
  background: #F6F3EC;
  color: #1D2B27;
}

.chapters-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px var(--page-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
}

.chapters-intro {
  flex: 1 1 340px;
  min-width: 0;
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kicker {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A6A2E;
}

.chapters-title,
.about-title,
.fees-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.chapters-title em {
  font-style: italic;
}

.chapters-lead {
  margin: 0;
  color: #4B5A55;
  max-width: 26rem;
}

.chapter-list {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.chapter {
  background: #FAF7F1;
  border-radius: 28px;
  padding: 48px;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.chapter-first {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.chapter-dark {
  background: #023B6C;
  color: #F6F3EC;
}

.chapter-num {
  font-family: "Instrument Serif", serif;
  font-size: 4.5rem;
  line-height: 1;
  color: #C9A96E;
}

.chapter-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1.1;
}

.chapter-text {
  margin: 0;
  color: #4B5A55;
  font-size: 1.1rem;
  max-width: 32rem;
}

.chapter-dark .chapter-text {
  color: #C6D1CC;
}

/* Plan */
.plan {
  background: #F6F3EC;
  color: #1D2B27;
}

.plan-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--page-pad) 140px;
}

.plan-card {
  background: #FAF7F1;
  border-radius: 28px;
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  min-width: 0;
}

.plan-copy {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1.05;
}

.plan-lead {
  margin: 0;
  color: #4B5A55;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  font-size: 0.95rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swatch {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  flex: 0 0 auto;
}

.swatch-plan { background: #1E5A48; }
.swatch-hope { background: #A8B3AF; }

.plan-chart {
  flex: 999 1 520px;
  min-width: 0;
}

.chart-caption {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: #6C7A75;
}

/* About */
.about {
  max-width: 1240px;
  margin: 0 auto;
  padding: 140px var(--page-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
  align-items: center;
}

.portrait {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px 28px 28px;
  background: #074674;
  border: 1px solid rgba(246, 243, 236, 0.12);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: #9FB2AB;
  font-size: 0.9rem;
}

.about-copy {
  flex: 999 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-kicker {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9A96E;
}

.about-lead {
  margin: 0;
  font-size: 1.15rem;
  color: #C6D1CC;
  max-width: 36rem;
}

.about-sign {
  margin: 0;
  color: #9FB2AB;
}

/* Fees */
.fees {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--page-pad) 140px;
}

.fees-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.fees-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-end;
}

.fees-title em {
  font-style: italic;
  color: #9CC5B4;
}

.fees-lead {
  margin: 0;
  color: #C6D1CC;
  max-width: 26rem;
}

.fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.fee-card {
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fee-card-outline {
  border: 1px solid rgba(246, 243, 236, 0.14);
}

.fee-name {
  color: #9FB2AB;
}

.fee-price {
  font-family: "Instrument Serif", serif;
  font-size: 3.4rem;
  line-height: 1.1;
}

.fee-period {
  font-size: 1.4rem;
}

.fee-note {
  color: #C6D1CC;
}

.fee-card-featured {
  background: #F6F3EC;
  color: #1D2B27;
}

.fee-card-featured .fee-name,
.fee-card-featured .fee-note {
  color: #4B5A55;
}

/* Close */
.cta {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--page-pad) 120px;
}

.cta-panel {
  background: #C9A96E;
  color: #023B6C;
  border-radius: 28px;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  min-width: 0;
}

.cta-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.02;
  max-width: 46rem;
}

.cta-lead {
  margin: 0;
  font-size: 1.1rem;
  max-width: 32rem;
  color: #2E3A2F;
}

.btn-dark {
  background: #023B6C;
  color: #F6F3EC;
  text-decoration: none;
  padding: 17px 32px;
  border-radius: 999px;
  font-weight: 600;
  min-height: 44px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.btn-dark:hover {
  color: #F6F3EC;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(246, 243, 236, 0.08);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px var(--page-pad) 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.92rem;
  color: #9FB2AB;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  justify-content: space-between;
}

.footer-brand {
  font-family: "Instrument Serif", serif;
  font-size: 1.25rem;
  color: #F6F3EC;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a {
  color: #C6D1CC;
}

.footer-nav a:hover {
  color: #C6D1CC;
}

.footer-disclosure {
  margin: 0;
  font-size: 0.82rem;
}

/* Tablet: keep the floating notes inside the chart once the columns stack */
@media (max-width: 1060px) {
  .chapters-intro {
    position: static;
  }

  .chip-pay {
    left: 16px;
  }

  .chip-exit {
    right: 16px;
    bottom: 16px;
  }
}

/* Small screens: menu */
@media (max-width: 999px) {
  .nav-toggle {
    display: inline-flex;
  }

  .logo img {
    height: 32px;
  }

  .nav {
    display: none;
    position: static;
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 0 10px;
    background: transparent;
    border-top: 1px solid rgba(246, 243, 236, 0.08);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
  }

  .nav a.nav-cta {
    margin-top: 8px;
    justify-content: center;
    padding: 11px 22px;
  }
}

/* Phones */
@media (max-width: 720px) {
  :root {
    --page-pad: 20px;
  }

  .header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hero-inner {
    padding-top: 56px;
    padding-bottom: 72px;
    gap: 40px;
  }

  .statement {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .chapters-inner {
    padding-top: 72px;
    padding-bottom: 72px;
    gap: 36px;
  }

  .chapter {
    padding: 28px 22px;
    min-height: 0;
  }

  .plan-inner {
    padding-bottom: 80px;
  }

  .plan-card {
    padding: 32px 22px;
    gap: 28px;
  }

  .about {
    padding-top: 80px;
    padding-bottom: 80px;
    gap: 36px;
  }

  .fees {
    padding-bottom: 80px;
  }

  .fee-card {
    padding: 28px 22px;
  }

  .cta {
    padding-bottom: 72px;
  }

  .cta-panel {
    padding: 48px 22px;
  }

  .footer-inner {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .hero-actions .btn-gold,
  .cta-panel .btn-dark {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .chip-pay,
  .chip-exit {
    position: static;
  }

  .chip-pay {
    align-self: flex-start;
  }

  .chip-exit {
    align-self: flex-end;
  }
}

@media (max-width: 380px) {
  :root {
    --page-pad: 16px;
  }

  .chapter,
  .plan-card,
  .cta-panel,
  .fee-card,
  .chart-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .fee-price {
    font-size: 2.7rem;
  }
}
