@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=DM+Serif+Display&display=swap');

:root {
  --green-950: #102c20;
  --green-900: #163b2a;
  --green-800: #20513a;
  --green-100: #e8f0e9;
  --cream: #f7f1e3;
  --paper: #fffdf7;
  --terracotta: #b75f37;
  --terracotta-dark: #914426;
  --gold: #e2b85a;
  --ink: #281c14;
  --muted: #64564c;
  --line: #dfd3bd;
  --shadow: 0 18px 45px rgba(43, 28, 16, .11);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Atkinson Hyperlegible", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--green-950);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.62;
  overflow-x: hidden;
}
button, a { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.page-shell {
  width: min(100%, 820px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 70px rgba(0,0,0,.36);
}

.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .6rem 1rem;
  color: white;
  background: var(--green-950);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(226,184,90,.24), transparent 30%),
    linear-gradient(145deg, #fffaf0 0%, #f4ead3 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: radial-gradient(#916f3e 0.75px, transparent 0.75px);
  background-size: 14px 14px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.hero-copy, .hero-art { position: relative; z-index: 1; min-width: 0; }
.hero-copy { padding: clamp(2rem, 6vw, 3.8rem) clamp(1.25rem, 7vw, 4rem) clamp(2.5rem, 7vw, 4.5rem); }
.hero-copy p, .hero-copy li { overflow-wrap: anywhere; }
.eyebrow, .volume-tag {
  margin: 0 0 .75rem;
  color: var(--terracotta-dark);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h1 { max-width: 15ch; margin: 0; font-size: clamp(2.65rem, 7.2vw, 4.35rem); }
.hero-lead { max-width: 36rem; margin: 1.15rem 0; color: var(--muted); font-size: 1.16rem; }
.hero-list, .book-copy ul, .offer-card ul {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
}
.hero-list li { display: flex; gap: .7rem; margin: .55rem 0; font-weight: 700; }
.hero-list li span { color: var(--green-800); }
.hero-art { display: grid; overflow: hidden; background: #d9b27f; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center center; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(16,44,32,.72), transparent);
}
.hero-photo-note {
  position: absolute;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(.8rem, 3vw, 1.4rem);
  left: clamp(1rem, 4vw, 2rem);
  z-index: 2;
  margin: 0;
  color: white;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 3vw, 1.4rem);
  line-height: 1.2;
  text-shadow: 0 2px 9px rgba(0,0,0,.45);
}
.sun-seal {
  position: absolute;
  top: 4%;
  right: 2%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 82px;
  aspect-ratio: 1;
  color: var(--green-950);
  background: var(--gold);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
  line-height: 1;
  transform: rotate(5deg);
}
.sun-seal strong { font-family: var(--serif); font-size: 2rem; }
.sun-seal span { font-size: .8rem; font-weight: 700; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: .9rem 1.35rem;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .plan-card:focus-visible, summary:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
.button-primary { color: white; background: var(--green-900); box-shadow: 0 9px 22px rgba(22,59,42,.24); }
.button-secondary { color: white; background: var(--terracotta); box-shadow: 0 9px 22px rgba(183,95,55,.24); }
.button-purchase { width: 100%; color: white; background: linear-gradient(#33a85a, #238446); box-shadow: 0 10px 26px rgba(35,132,70,.3); font-size: 1.12rem; }

.section { padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 6vw, 3.5rem); }
.section-heading { max-width: 650px; margin: 0 auto 2rem; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading h2, .reading-card h2, .story-copy h2 { margin: .25rem 0 .8rem; font-size: clamp(2.15rem, 6vw, 3.5rem); }
.section-heading p:not(.hand-label) { margin: 0; color: var(--muted); }
.hand-label { margin: 0; color: var(--terracotta); font-family: var(--serif); font-size: 1.35rem; font-style: italic; }

.selection-section { background: var(--paper); }
.plan-picker { display: grid; gap: 1rem; }
.plan-card {
  position: relative;
  display: grid;
  grid-template-columns: 26px 126px minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  width: 100%;
  padding: 1rem;
  text-align: left;
  background: white;
  border: 2px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
}
.plan-card.selected { border-color: var(--terracotta); background: #fffaf5; box-shadow: var(--shadow); }
.radio { width: 24px; height: 24px; border: 2px solid #a99b8c; border-radius: 50%; }
.selected .radio { border: 7px solid var(--terracotta); }
.plan-card > img { width: 102px; height: auto; aspect-ratio: 1055 / 1491; object-fit: contain; filter: drop-shadow(0 7px 7px rgba(0,0,0,.2)); }
.mini-books { display: flex; align-items: end; justify-content: center; width: 126px; padding: .45rem .2rem; background: #f6eddd; border-radius: 12px; }
.mini-books img { width: 54px; height: auto; aspect-ratio: 1055 / 1491; margin-right: -13px; object-fit: contain; filter: drop-shadow(0 7px 6px rgba(0,0,0,.24)); }
.mini-books img:nth-child(2) { width: 62px; z-index: 2; }
.plan-copy { display: grid; gap: .2rem; }
.plan-title { font-size: 1.1rem; font-weight: 700; }
.plan-description { color: var(--muted); font-size: .98rem; line-height: 1.35; }
.plan-price { display: grid; text-align: right; }
.plan-price small, .old-price { color: #8c8177; text-decoration: line-through; }
.plan-price strong { color: var(--terracotta-dark); font-size: 1.45rem; }
.choice-badge, .featured-ribbon {
  position: absolute;
  top: -14px;
  right: 16px;
  padding: .35rem .8rem;
  color: white;
  background: var(--terracotta);
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 700;
}
.included-list { grid-column: 2 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); color: #31493b; font-size: .98rem; }
.action-panel { margin-top: 1.5rem; padding: 1.25rem; color: white; background: var(--green-950); border-radius: 18px; box-shadow: var(--shadow); }
.microcopy { margin: .75rem 0 1rem; color: #dbe7dd; text-align: center; font-size: .95rem; }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.16); color: #e9f1e9; font-size: .98rem; }

.number-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #3c5b49; }
.number-strip div { display: grid; place-items: center; min-height: 140px; padding: 1.2rem; color: white; background: var(--green-900); text-align: center; }
.number-strip strong { font-family: var(--serif); color: var(--gold); font-size: 2.4rem; line-height: 1; }
.number-strip span { font-size: .98rem; }

.books-section { background: var(--cream); }
.book-feature { display: grid; gap: 1.4rem; align-items: center; margin: 0 0 2rem; padding: 1.35rem; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.book-image { display: grid; place-items: center; padding: 1rem; background: linear-gradient(145deg, #f4ead9, #fffdf7); border-radius: 16px; overflow: hidden; }
.book-image img { max-height: 430px; width: auto; height: auto; object-fit: contain; }
.book-copy h3 { margin: 0 0 .8rem; font-size: clamp(2rem, 5vw, 2.8rem); }
.book-copy p:not(.volume-tag) { color: var(--muted); }
.book-copy li, .offer-card li { position: relative; margin: .5rem 0; padding-left: 1.5rem; }
.book-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--green-800); font-weight: 700; }

.reading-section { color: white; background: var(--green-900); }
.reading-card { display: grid; gap: 1.25rem; align-items: center; }
.reading-card p:not(.hand-label) { color: #dce8de; }
.reading-icon { display: grid; place-items: center; width: 110px; aspect-ratio: 1; color: var(--green-950); background: var(--gold); border-radius: 30% 70% 58% 42% / 42% 38% 62% 58%; font-family: var(--serif); font-size: 2.5rem; }
.reading-points { display: grid; gap: .85rem; margin-top: 1.6rem; }
.reading-points div { display: grid; gap: .15rem; padding: 1rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; }
.reading-points span { color: #dce8de; }

.story-section { display: grid; gap: 1.5rem; background: #efe2ca; }
.story-photo { position: relative; align-self: start; overflow: hidden; background: white; border: 8px solid white; border-radius: 180px 180px 22px 22px; box-shadow: var(--shadow); }
.story-photo img { width: 100%; height: 550px; object-fit: cover; object-position: top center; }
.story-photo span { position: absolute; right: 1rem; bottom: 1rem; padding: .45rem .9rem; color: white; background: var(--terracotta); border-radius: 99px; font-family: var(--serif); }
.story-copy p { color: var(--muted); }
blockquote { margin: 1.4rem 0 0; padding: 1.1rem 0 1.1rem 1.2rem; border-left: 5px solid var(--terracotta); font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }

.final-offer { background: var(--paper); }
.offer-grid { display: grid; gap: 1.2rem; }
.offer-card { position: relative; display: grid; justify-items: center; padding: 1.5rem; background: white; border: 2px solid var(--line); border-radius: 22px; text-align: center; box-shadow: var(--shadow); }
.offer-card.featured { padding-top: 2rem; border-color: var(--terracotta); background: #fffaf4; }
.offer-card img { width: min(100%, 310px); height: auto; max-height: 290px; object-fit: contain; }
.offer-card h3 { margin: .8rem 0 .35rem; font-size: 2rem; }
.offer-card p { color: var(--muted); }
.offer-card ul { width: 100%; text-align: left; }
.offer-card li { padding-left: 0; }
.big-price { color: var(--terracotta-dark); font-family: var(--serif); font-size: 2.8rem; line-height: 1.1; }
.offer-card .button { width: 100%; margin-top: 1rem; }

.faq-section { background: var(--cream); }
.faq-list { display: grid; gap: .75rem; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 20px rgba(43,28,16,.06); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem; font-size: 1.08rem; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--terracotta); font-size: 1.7rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 1.1rem 1.1rem; color: var(--muted); }

.closing-band { display: grid; gap: 1.4rem; padding: 3rem clamp(1.25rem, 6vw, 3.5rem); color: white; background: var(--green-900); }
.closing-band h2 { margin: .3rem 0 .8rem; font-size: clamp(2.2rem, 6vw, 3.4rem); }
.closing-band p:not(.hand-label) { color: #dce8de; }
footer { padding: 2.5rem 1.25rem 7rem; color: #b9c8bd; background: var(--green-950); text-align: center; font-size: .95rem; }
footer strong { color: white; font-family: var(--serif); font-size: 1.3rem; }

.sticky-bar { position: fixed; left: 50%; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(100%, 820px); min-height: 72px; padding: .7rem 1rem; color: white; background: rgba(16,44,32,.97); box-shadow: 0 -8px 25px rgba(0,0,0,.2); transform: translateX(-50%); backdrop-filter: blur(12px); }
.sticky-bar div { display: grid; }
.sticky-bar small { color: #b9c8bd; }
.sticky-bar strong { font-family: var(--serif); font-size: 1.45rem; }
.button-sticky { flex-shrink: 0; min-height: 48px; padding-inline: 1rem; color: white; background: var(--terracotta); }

.toast-region {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  gap: .65rem;
  width: min(calc(100% - 1.5rem), 440px);
  pointer-events: none;
  transform: translateX(-50%);
}
.purchase-toast {
  --toast-duration: 6200ms;
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 36px;
  align-items: center;
  gap: .75rem;
  overflow: hidden;
  padding: .8rem .7rem .85rem .85rem;
  color: var(--ink);
  background: rgba(255,253,247,.98);
  border: 1px solid rgba(32,81,58,.22);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(16,44,32,.24);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(18px) scale(.98);
  transition: opacity .28s ease, transform .28s ease;
  backdrop-filter: blur(12px);
}
.purchase-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.purchase-toast.is-leaving { opacity: 0; transform: translateY(10px) scale(.985); }
.purchase-toast::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
}
.purchase-toast.is-visible::after { animation: toast-progress var(--toast-duration) linear forwards; }
.toast-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  background: var(--green-800);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
}
.toast-copy { display: grid; gap: .05rem; min-width: 0; line-height: 1.25; }
.toast-copy strong { color: var(--green-950); font-size: .9rem; }
.toast-copy span { overflow-wrap: anywhere; font-size: 1rem; font-weight: 700; }
.toast-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}
.toast-close:hover { background: var(--green-100); }
.toast-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }

@keyframes toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

dialog { width: min(calc(100% - 2rem), 520px); padding: 2rem; border: 0; border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.35); text-align: center; }
dialog::backdrop { background: rgba(9,25,17,.7); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: .6rem; right: .8rem; border: 0; background: none; font-size: 2rem; cursor: pointer; }
.dialog-icon { display: block; font-size: 2.2rem; }
dialog h2 { margin: .5rem 0; font-size: 2rem; }
dialog p { color: var(--muted); }
.dialog-ok { width: 100%; }

@media (min-width: 680px) {
  .hero-copy { text-align: center; }
  .hero-copy h1, .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.6rem 0; text-align: left; }
  .hero-list li { align-items: flex-start; margin: 0; padding: 1rem; background: rgba(255,255,255,.62); border: 1px solid rgba(145,68,38,.14); border-radius: 14px; }
  .book-feature { grid-template-columns: .88fr 1.12fr; padding: 2rem; }
  .book-feature.reverse .book-image { order: 2; }
  .reading-card { grid-template-columns: auto 1fr; }
  .reading-points { grid-template-columns: repeat(3, 1fr); }
  .story-section { grid-template-columns: .82fr 1.18fr; align-items: center; }
  .offer-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .closing-band { grid-template-columns: 1fr auto; align-items: center; }
  .number-strip { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .plan-card { grid-template-columns: 24px 116px minmax(0, 1fr); padding: 1.1rem .9rem; }
  .plan-card > img { width: 94px; }
  .plan-price { grid-column: 3; justify-self: start; text-align: left; }
  .mini-books { width: 116px; }
  .mini-books img { width: 49px; height: auto; }
  .mini-books img:nth-child(2) { width: 56px; }
  .included-list { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .hero-art img { min-height: 360px; object-position: 58% center; }
  .hero-photo-note { max-width: 18rem; }
  .sticky-bar { gap: .6rem; }
  .button-sticky { padding-inline: .85rem; font-size: .95rem; }
  .toast-region { width: calc(100% - 1rem); }
  .purchase-toast { grid-template-columns: 40px minmax(0, 1fr) 34px; gap: .65rem; padding-left: .7rem; }
  .toast-icon { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .purchase-toast::after { animation: none; }
}
