:root {
  --navy: #17324d;
  --navy-dark: #10263a;
  --green: #315f51;
  --gold: #d6a843;
  --cream: #fbf7ec;
  --paper: #fffdf7;
  --ink: #263238;
  --muted: #64717a;
  --line: #e6dfce;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(18, 43, 60, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(214,168,67,0.08), transparent 32rem),
    var(--cream);
  line-height: 1.6;
}

a { color: inherit; }

.hero {
  background:
    linear-gradient(rgba(15, 38, 58, .90), rgba(20, 55, 67, .94)),
    radial-gradient(circle at 80% 20%, rgba(214,168,67,.35), transparent 30rem);
  color: var(--white);
  padding: 28px 20px 76px;
}

.hero__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}

.brand-mark__icon { font-size: 26px; }
.brand-mark__name {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  letter-spacing: .16em;
  font-size: 13px;
}
.brand-mark__series {
  font-size: 11px;
  opacity: .76;
  letter-spacing: .06em;
}

.hero__content {
  max-width: 820px;
  padding-top: 70px;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.15;
  color: var(--navy-dark);
}

.hero h1 {
  margin: 14px 0 20px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 78px);
  letter-spacing: -.04em;
}

.hero h1 span { color: #f0cb72; }

.hero__lede {
  max-width: 760px;
  font-size: 18px;
  color: rgba(255,255,255,.86);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero__badges span {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 70px;
}

.notice {
  margin-top: -32px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.notice__icon { font-size: 28px; }
.notice p { margin: 4px 0 0; color: var(--muted); }

.how-it-works,
.activities {
  padding-top: 78px;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-heading h2 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading p { color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}

.step__number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
  font-weight: 800;
}

.step h3 { margin: 18px 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); }

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.book-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(16,38,58,.06);
}

.book-card--featured {
  grid-column: 1 / -1;
  border: 2px solid rgba(214,168,67,.7);
  background: linear-gradient(135deg, #fffdf7, #fff9e8);
}

.book-card__tag {
  display: inline-block;
  background: var(--gold);
  color: #2e2b22;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .13em;
  padding: 6px 9px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.book-card__number {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}

.book-card h3 {
  margin: 8px 0 10px;
  font-size: 25px;
}

.book-card__desc {
  color: var(--muted);
  margin: 0 0 20px;
}

.email-form label:first-child {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.email-form__row {
  display: flex;
  gap: 10px;
}

input {
  width: 100%;
  border: 1px solid #cfc8b8;
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
  background: #fff;
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214,168,67,.15);
}

button,
.download-button {
  border: none;
  border-radius: 10px;
  padding: 13px 18px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, opacity .12s ease;
}

button:hover,
.download-button:hover {
  transform: translateY(-1px);
  opacity: .94;
}

.consent {
  display: flex !important;
  gap: 9px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--muted);
}

.consent input {
  width: 16px;
  margin-top: 3px;
}

.privacy-note {
  font-size: 11px;
  color: #879198;
  margin: 8px 0 0;
}

.unlock-button {
  width: 100%;
  background: var(--green);
}

.unlocked-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.unlocked-label {
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .09em;
}

.unlock-success {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #bfd4c9;
  background: #f1f8f4;
  border-radius: 14px;
}

.success-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.unlock-success p { margin: 3px 0 10px; color: var(--muted); }

.coming-soon {
  margin-top: 70px;
  border-radius: 24px;
  padding: 38px;
  background: var(--navy-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.coming-soon h2 {
  color: white;
  font-size: 32px;
  margin: 8px 0 12px;
}

.coming-soon p { color: rgba(255,255,255,.78); max-width: 700px; }

.coming-soon__badge {
  min-width: 150px;
  aspect-ratio: 1;
  border: 2px dashed rgba(240,203,114,.7);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #f0cb72;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  line-height: 1.05;
}

.coming-soon__badge span {
  display: block;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 8px;
  letter-spacing: .12em;
  margin-top: 8px;
}

footer {
  background: #0d2234;
  color: rgba(255,255,255,.70);
  text-align: center;
  padding: 40px 20px;
}

.footer__brand {
  color: white;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  letter-spacing: .08em;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 16px 0;
}

.footer__links a { text-decoration: none; }
.footer__small { font-size: 12px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,21,31,.72);
  backdrop-filter: blur(3px);
}

.modal__dialog {
  position: relative;
  width: min(460px, 100%);
  background: var(--paper);
  border-radius: 22px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  padding: 4px 10px;
}

.modal__icon { font-size: 34px; margin-bottom: 8px; }
.modal h2 { margin: 7px 0 8px; }
.modal p { color: var(--muted); }

#codeForm {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.code-message {
  min-height: 22px;
  font-size: 13px;
  font-weight: 700;
}

.hidden { display: none !important; }

@media (max-width: 760px) {
  .hero { padding-bottom: 60px; }
  .hero__content { padding-top: 48px; }
  .hero__lede { font-size: 16px; }
  .steps, .book-grid { grid-template-columns: 1fr; }
  .book-card--featured { grid-column: auto; }
  .email-form__row { flex-direction: column; }
  .coming-soon { flex-direction: column; align-items: flex-start; }
  .coming-soon__badge { min-width: 120px; }
}
