:root {
  --navy: #00345f;
  --navy-deep: #081f38;
  --gold: #c4a35a;
  --paper: #f7f5ef;
  --ink: #17202a;
  --muted: #5f6c7a;
  --line: #d7dde4;
  --white: #ffffff;
  --teal: #2a9d8f;
  --red: #b84a4a;
  --green: #2f855a;
  --blue-soft: #dbe9f6;
  --gold-soft: #f1e8ce;
  --shadow: 0 20px 55px rgba(12, 25, 42, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span span {
  color: var(--gold);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #27384b;
  font-size: 14px;
  font-weight: 800;
}

main {
  overflow: hidden;
}

section {
  padding: 54px clamp(20px, 5vw, 72px);
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1 {
  max-width: 860px;
  margin: 20px 0 18px;
  color: var(--navy-deep);
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  color: var(--navy-deep);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  color: var(--navy-deep);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

ul,
ol {
  margin: 0;
  padding-left: 21px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #72540f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
  font-size: 14px;
}

.button.secondary {
  background: #ffffff;
  color: var(--navy);
  border-color: #b8c5d4;
}

.lesson-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding-top: 64px;
}

.hero-copy > p {
  max-width: 720px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 26px;
}

.section-head p {
  max-width: 560px;
}

.module-grid,
.concept-grid,
.metric-grid,
.check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.concept-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-card,
.concept-card,
.metric-card,
.check-card,
.notice-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(12, 25, 42, 0.07);
}

.module-card,
.concept-card,
.metric-card,
.check-card {
  padding: 22px;
}

.module-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.module-card:hover {
  border-color: rgba(42, 157, 143, 0.55);
  transform: translateY(-2px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 950;
}

.module-card p,
.concept-card p,
.check-card p {
  margin-top: 10px;
  font-size: 15px;
}

.module-link {
  margin-top: 20px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.band {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(400px, 1.12fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.split-copy {
  display: grid;
  gap: 18px;
}

.timeline,
.flow-diagram,
.payment-diagram {
  display: grid;
  gap: 12px;
}

.timeline-step,
.flow-node,
.payment-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-node,
.payment-row {
  grid-template-columns: minmax(120px, 0.42fr) 1fr;
}

.node-label {
  color: var(--navy);
  font-weight: 950;
}

.node-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.dot {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-weight: 950;
}

.metric-card strong {
  display: block;
  color: var(--navy-deep);
  font-size: 28px;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.lesson-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.notice-card {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.22fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-left: 5px solid var(--gold);
}

.notice-card p {
  margin-top: 8px;
  font-size: 15px;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.48fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding-top: 64px;
}

.legal-panel,
.legal-card,
.error-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(12, 25, 42, 0.07);
}

.legal-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-top: 5px solid var(--gold);
}

.legal-panel img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.legal-panel strong,
.legal-panel span {
  display: block;
}

.legal-panel strong {
  color: var(--navy-deep);
  font-size: 13px;
  text-transform: uppercase;
}

.legal-panel span {
  margin-top: 4px;
  color: var(--navy);
  font-weight: 900;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.legal-card {
  min-height: 210px;
  padding: 22px;
}

.legal-card p {
  margin-top: 10px;
  font-size: 15px;
}

.error-hero {
  min-height: calc(100vh - 160px);
  display: grid;
  align-items: center;
}

.error-panel {
  max-width: 820px;
  padding: clamp(26px, 5vw, 48px);
}

.error-panel h1 {
  max-width: 760px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 750;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 980px) {
  header,
  .section-head,
  footer,
  .pager {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .lesson-hero,
  .split-band,
  .notice-card,
  .legal-hero {
    grid-template-columns: 1fr;
  }

  .module-grid,
  .concept-grid,
  .metric-grid,
  .check-grid,
  .legal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pill-row {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  section {
    padding: 42px 18px;
  }

  h1 {
    font-size: 40px;
  }

  .module-grid,
  .concept-grid,
  .metric-grid,
  .check-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .flow-node,
  .payment-row {
    grid-template-columns: 1fr;
  }
}
