:root {
  --navy: #082f5b;
  --navy-2: #0b426b;
  --coral: #ef5c63;
  --coral-dark: #d74453;
  --pink: #f68a87;
  --sun: #f7bd45;
  --cream: #fff7e9;
  --sand: #f4e5cb;
  --white: #fffdf8;
  --teal: #3e99a4;
  --ink: #102f45;
  --muted: #647787;
  --line: rgba(8, 47, 91, .13);
  --shadow: 0 18px 50px rgba(8, 47, 91, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(247, 189, 69, .17), transparent 28rem),
    linear-gradient(180deg, #fffaf1 0%, #fffdf8 45%, #fff7e9 100%);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(62, 153, 164, .45); outline-offset: 3px; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .9);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand-logo { width: 54px; height: 54px; overflow: hidden; border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 4px 16px rgba(8,47,91,.18); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Fraunces", Georgia, serif; font-size: 1.1rem; line-height: 1.1; }
.brand small { margin-top: 2px; color: var(--coral-dark); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.text-button, .kit-button, .primary-button, .secondary-button, .lesson-action, .check-answer {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}
.text-button { padding: 10px 2px; background: transparent; color: var(--navy); }
.kit-button, .primary-button { padding: 12px 18px; background: var(--coral); color: white; box-shadow: 0 8px 24px rgba(215,68,83,.22); }
.kit-button:hover, .primary-button:hover { background: var(--coral-dark); transform: translateY(-1px); }

.course-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.course-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  height: calc(100vh - 76px);
  overflow-y: auto;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 247, 233, .62);
}
.progress-card { padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.65); }
.progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress-head strong { display: block; margin-top: 3px; font-size: .92rem; }
.eyebrow { color: var(--coral-dark); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.progress-number { color: var(--teal); font-weight: 800; }
.progress-track { height: 7px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: var(--sand); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--sun)); transition: width .35s ease; }

.lesson-nav { display: grid; gap: 6px; margin: 22px 0; }
.nav-lesson { display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 13px; background: transparent; text-align: left; cursor: pointer; }
.nav-lesson:hover, .nav-lesson.active { background: white; box-shadow: 0 5px 20px rgba(8,47,91,.07); }
.nav-lesson-number { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); font-size: .77rem; font-weight: 800; }
.nav-lesson.done .nav-lesson-number { border-color: var(--teal); background: var(--teal); color: white; }
.nav-lesson strong { display: block; font-size: .85rem; line-height: 1.25; }
.nav-lesson small { color: var(--muted); font-size: .72rem; }
.nav-arrow { color: #9aabb5; }
.welcome-card { display: grid; grid-template-columns: 38px 1fr 18px; align-items: center; gap: 10px; width: 100%; padding: 13px; border: 1px solid rgba(239,92,99,.24); border-radius: 16px; background: linear-gradient(135deg, rgba(247,189,69,.2), rgba(246,138,135,.15)); text-align: left; cursor: pointer; }
.welcome-card:hover { border-color: var(--coral); }
.welcome-card strong, .welcome-card small { display: block; }
.welcome-card strong { font-size: .83rem; }
.welcome-card small { margin-top: 2px; color: var(--muted); font-size: .69rem; line-height: 1.3; }
.welcome-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--sun); color: var(--navy); }

.lesson-stage { min-width: 0; padding: clamp(24px, 5vw, 68px); }
.overview, .lesson-page, .checklist-page, .kit-page { max-width: 1080px; margin: 0 auto; }
.course-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); align-items: center; min-height: 470px; overflow: hidden; padding: clamp(30px, 5vw, 68px); border-radius: 34px; background: var(--navy); color: white; box-shadow: var(--shadow); }
.course-hero::before { content: ""; position: absolute; inset: auto -8% -40% 42%; height: 95%; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.hero-copy { position: relative; z-index: 2; }
.pill { display: inline-block; padding: 7px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #ffe29e; font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Fraunces", Georgia, serif; }
.course-hero h1 { max-width: 630px; margin: 22px 0 18px; font-size: clamp(2.7rem, 5.6vw, 5.4rem); line-height: .98; letter-spacing: -.04em; }
.course-hero p { max-width: 590px; color: rgba(255,255,255,.76); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.primary-button, .secondary-button { min-height: 48px; padding: 12px 20px; }
.secondary-button { border: 1px solid rgba(255,255,255,.25); background: transparent; color: white; }
.secondary-button:hover { background: rgba(255,255,255,.08); }
.sunset-orbit { position: relative; z-index: 1; width: min(31vw, 330px); aspect-ratio: 1; justify-self: end; overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: linear-gradient(180deg, #ef5c63 0 40%, #f7bd45 40% 58%, #0b426b 58%); box-shadow: 0 0 0 18px rgba(255,255,255,.05); }
.sun { position: absolute; top: 24%; left: 50%; width: 38%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #ffe47c; box-shadow: 0 0 44px rgba(255,228,124,.48); }
.wave { position: absolute; left: -10%; width: 120%; height: 28%; border-radius: 50%; background: var(--teal); transform: rotate(-5deg); }
.wave-one { bottom: 21%; }
.wave-two { bottom: -1%; background: #0b5a79; transform: rotate(7deg); }
.orbit-copy { position: absolute; inset: 0; display: grid; place-content: center; padding-top: 38%; color: white; font-size: 2.3rem; font-weight: 800; line-height: .72; letter-spacing: .05em; text-align: center; text-shadow: 0 2px 14px rgba(8,47,91,.4); }
.orbit-copy small { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }

.course-map { padding: 60px 4px 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.section-heading h2 { margin: 3px 0 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.25rem); }
.section-heading p { max-width: 430px; margin-bottom: 5px; color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.module-card { display: grid; grid-template-columns: 48px 1fr 24px; align-items: center; gap: 14px; min-height: 110px; padding: 19px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.7); text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.module-card:hover { transform: translateY(-2px); border-color: rgba(239,92,99,.35); box-shadow: 0 12px 34px rgba(8,47,91,.09); }
.module-card.done { background: linear-gradient(135deg, rgba(62,153,164,.1), white); }
.module-number { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 14px; background: var(--cream); color: var(--coral-dark); font-weight: 800; }
.module-card.done .module-number { background: var(--teal); color: white; }
.module-card h3 { margin: 0 0 3px; color: var(--navy); font-size: 1rem; }
.module-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.field-note { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 28px; align-items: start; margin-top: 36px; padding: 34px 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note-number { font-family: "Fraunces", serif; color: var(--sun); font-size: 3.4rem; line-height: 1; }
.field-note h2 { margin: 4px 0 0; font-size: 1.8rem; line-height: 1.08; }
.field-note p { color: var(--muted); }

.lesson-breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.lesson-breadcrumb button { padding: 0; border: 0; background: transparent; color: var(--coral-dark); cursor: pointer; }
.lesson-header { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.lesson-kicker { color: var(--teal); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lesson-header h1 { max-width: 740px; margin: 9px 0 10px; color: var(--navy); font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: .98; }
.lesson-header p { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.lesson-index { display: grid; width: 92px; height: 92px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--coral), var(--sun)); color: white; font-family: "Fraunces", serif; font-size: 2.2rem; box-shadow: 0 14px 35px rgba(239,92,99,.2); }
.lesson-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; padding-top: 36px; }
.content-block { margin-bottom: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.7); }
.content-block h2 { margin-bottom: 12px; color: var(--navy); font-size: 1.45rem; }
.content-block p:last-child, .content-block ul:last-child { margin-bottom: 0; }
.content-block ul { padding-left: 21px; }
.content-block li { margin: 8px 0; }
.content-block.accent { border-color: rgba(239,92,99,.25); background: linear-gradient(135deg, rgba(246,138,135,.13), rgba(247,189,69,.12)); }
.script-card { padding: 22px; border-left: 5px solid var(--coral); border-radius: 4px 18px 18px 4px; background: var(--navy); color: white; }
.script-card span { color: #ffe29e; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.script-card p { margin: 9px 0 0; font-size: 1.06rem; }
.lesson-aside { align-self: start; position: sticky; top: 106px; }
.aside-card { margin-bottom: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 10px 32px rgba(8,47,91,.07); }
.aside-card h3 { margin: 0 0 9px; font-size: .93rem; }
.aside-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.aside-card.warning { border-color: rgba(247,189,69,.45); background: #fff8e5; }
.lesson-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.lesson-action { min-height: 48px; padding: 12px 18px; background: var(--teal); color: white; }
.lesson-action.completed { background: var(--navy); }
.next-button { padding: 12px 4px; border: 0; background: transparent; color: var(--coral-dark); font-weight: 800; cursor: pointer; }

.quiz-card { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.quiz-card h2 { margin-bottom: 8px; font-size: 1.35rem; }
.quiz-options { display: grid; gap: 8px; margin: 16px 0; }
.quiz-option { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.quiz-option:hover { border-color: var(--teal); }
.quiz-option input { accent-color: var(--teal); }
.check-answer { padding: 10px 16px; background: var(--navy); color: white; }
.quiz-result { margin: 12px 0 0; font-weight: 700; }
.quiz-result.correct { color: #227864; }
.quiz-result.incorrect { color: var(--coral-dark); }

.checklist-hero, .kit-hero { padding: clamp(30px, 5vw, 58px); border-radius: 30px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: white; }
.checklist-hero h1, .kit-hero h1 { margin: 10px 0 12px; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .98; }
.checklist-hero p, .kit-hero p { max-width: 680px; margin-bottom: 0; color: rgba(255,255,255,.78); }
.daily-list { display: grid; gap: 12px; margin-top: 26px; }
.daily-item { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; cursor: pointer; }
.daily-item input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal); }
.daily-item strong { display: block; color: var(--navy); }
.daily-item small { display: block; margin-top: 3px; color: var(--muted); font-size: .86rem; }
.reset-checklist { margin-top: 18px; padding: 10px 0; border: 0; background: transparent; color: var(--coral-dark); font-weight: 800; cursor: pointer; }

.kit-hero { position: relative; overflow: hidden; background: linear-gradient(130deg, var(--coral-dark), var(--coral) 48%, var(--sun)); }
.kit-hero::after { content: ""; position: absolute; z-index: 0; right: 5%; bottom: -42%; width: 15rem; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.16); pointer-events: none; }
.kit-hero > * { position: relative; z-index: 1; }
.kit-content { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; margin-top: 22px; }
.kit-panel { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.kit-panel h2 { color: var(--navy); font-size: 1.55rem; }
.kit-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.kit-option { padding: 14px; border-radius: 15px; background: var(--cream); }
.kit-option strong, .kit-option span { display: block; }
.kit-option strong { color: var(--navy); }
.kit-option span { color: var(--muted); font-size: .8rem; }
.form-link-box { display: grid; min-height: 100%; align-content: center; text-align: center; background: var(--navy); color: white; }
.form-link-box .form-icon { display: grid; width: 64px; height: 64px; margin: 0 auto 14px; place-items: center; border-radius: 50%; background: var(--sun); color: var(--navy); font-size: 1.8rem; }
.form-link-box h2 { color: white; }
.form-link-box p { color: rgba(255,255,255,.72); }
.form-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 8px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--coral); color: white; text-decoration: none; font-weight: 800; cursor: pointer; }
.form-cta.disabled { background: rgba(255,255,255,.16); cursor: default; }
.form-note { display: block; margin-top: 10px; color: #ffe29e; font-size: .75rem; }
.policy-note { margin-top: 20px; padding: 18px 20px; border: 1px solid rgba(247,189,69,.5); border-radius: 16px; background: #fff9e9; color: #685728; font-size: .88rem; }

.mobile-dock { display: none; }

@media (max-width: 980px) {
  .course-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .course-sidebar { padding: 22px 14px; }
  .lesson-stage { padding: 34px 26px; }
  .course-hero { grid-template-columns: 1fr; min-height: auto; }
  .sunset-orbit { display: none; }
  .lesson-body { grid-template-columns: 1fr; }
  .lesson-aside { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kit-content { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { padding-bottom: 72px; }
  .site-header { min-height: 66px; padding: 8px 14px; }
  .brand-logo { width: 46px; height: 46px; }
  .brand strong { font-size: .95rem; }
  .brand small { font-size: .61rem; }
  .header-actions { display: none; }
  .course-shell { display: block; min-height: auto; }
  .course-sidebar { position: static; width: auto; height: auto; padding: 12px 14px 0; border: 0; background: transparent; }
  .progress-card { padding: 13px 15px; }
  .lesson-nav, .welcome-card { display: none; }
  .kit-hero::after { right: -3rem; bottom: -5rem; width: 11rem; }
  .lesson-stage { padding: 16px 14px 34px; }
  .course-hero { min-height: 480px; padding: 31px 24px; border-radius: 26px; align-content: center; }
  .course-hero h1 { font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .hero-actions { display: grid; }
  .primary-button, .secondary-button { width: 100%; }
  .section-heading { display: block; }
  .module-grid { grid-template-columns: 1fr; }
  .field-note { grid-template-columns: 58px 1fr; gap: 15px; }
  .field-note p { grid-column: 1 / -1; }
  .lesson-header { grid-template-columns: 1fr; }
  .lesson-index { grid-row: 1; width: 64px; height: 64px; font-size: 1.6rem; }
  .lesson-header h1 { font-size: 3rem; }
  .lesson-body { padding-top: 22px; }
  .content-block, .quiz-card { padding: 20px; }
  .lesson-aside { grid-template-columns: 1fr; }
  .lesson-footer { align-items: stretch; flex-direction: column; }
  .lesson-action, .next-button { width: 100%; min-height: 48px; }
  .checklist-hero, .kit-hero { padding: 30px 23px; border-radius: 24px; }
  .kit-options { grid-template-columns: 1fr; }
  .mobile-dock { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(3, 1fr); min-height: 66px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,253,248,.96); backdrop-filter: blur(14px); }
  .mobile-dock button { display: grid; place-items: center; align-content: center; gap: 1px; border: 0; background: transparent; color: var(--navy); font-size: .67rem; font-weight: 800; }
  .mobile-dock span { color: var(--coral); font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
