:root {
  --ink: #16201d;
  --muted: #63736d;
  --paper: #fffaf1;
  --surface: #ffffff;
  --line: #d9dfd8;
  --green: #157a6e;
  --green-dark: #0b4f48;
  --coral: #ef6f5e;
  --gold: #e5b94e;
  --blue: #365f91;
  --shadow: 0 24px 70px rgba(22, 32, 29, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(22, 32, 29, .1);
  background: rgba(255, 250, 241, .88);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.stats,
.format-strip,
.price-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.header-cta {
  text-decoration: none;
}

.header-cta {
  padding: 10px 15px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .7fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px) 72px;
  overflow: hidden;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1,
.reader h2,
.section-heading h2,
.buy-section h2 {
  font-family: "Source Serif 4", Georgia, serif;
}

h1 {
  max-width: 860px;
  font-size: clamp(52px, 8vw, 116px);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: #41504b;
  font-size: clamp(18px, 2.3vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--green-dark);
  box-shadow: 0 14px 28px rgba(11, 79, 72, .22);
}

.button.secondary {
  color: var(--green-dark);
  border-color: var(--line);
  background: rgba(255, 255, 255, .62);
}

.button.full {
  width: 100%;
}

.stats {
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 34px;
  color: var(--muted);
}

.stats strong {
  color: var(--ink);
}

.book-showcase {
  position: relative;
}

.book-showcase::before {
  position: absolute;
  inset: 9% -18% 2% 14%;
  z-index: -1;
  background: linear-gradient(135deg, rgba(239, 111, 94, .2), rgba(54, 95, 145, .18));
  border: 1px solid rgba(22, 32, 29, .12);
  border-radius: 8px;
  content: "";
  transform: rotate(-4deg);
}

.book-cover {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 38px;
  color: #f8fbf5;
  background:
    radial-gradient(circle at 80% 18%, rgba(229, 185, 78, .55), transparent 20%),
    linear-gradient(145deg, #0b4f48, #152421 58%, #365f91);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cover-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 52px;
}

.cover-map span {
  height: 82px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, .28) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, .22) 49% 51%, transparent 52%);
}

.cover-kicker,
.cover-footer {
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.book-cover h2 {
  max-width: 360px;
  margin-top: 20px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(42px, 5vw, 66px);
}

.cover-subtitle {
  margin-top: 20px;
  color: rgba(248, 251, 245, .82);
  font-size: 18px;
}

.cover-footer {
  margin-top: auto;
  color: rgba(248, 251, 245, .72);
}

.format-strip {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.format-strip span {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.section,
.reader-section,
.buy-section {
  padding: 80px clamp(18px, 5vw, 72px);
}

.intro-band {
  background: #eaf3ee;
  border-block: 1px solid rgba(22, 32, 29, .1);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.buy-section h2 {
  max-width: 760px;
  font-size: clamp(36px, 5vw, 68px);
}

.feature-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-grid article,
.review-grid figure,
.checkout-card,
.modal-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid article {
  padding: 26px;
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  color: var(--green-dark);
  background: #d9ede5;
  border-radius: 8px;
  font-size: 22px;
}

.feature-grid h3 {
  font-size: 22px;
}

.feature-grid p,
.buy-section p,
.faq p,
.secure-note {
  color: var(--muted);
}

.reader-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  justify-content: center;
  background: #f8f2e6;
}

.reader-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
}

.reader-sidebar a {
  padding: 9px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(22, 32, 29, .12);
  text-decoration: none;
}

.reader {
  color: #23211d;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(20px, 2vw, 26px);
}

.chapter-number {
  color: var(--coral);
  font-family: Inter, sans-serif;
  font-weight: 800;
}

.reader h2 {
  font-size: clamp(42px, 6vw, 86px);
}

.reader h3 {
  margin-top: 44px;
  font-size: clamp(30px, 4vw, 48px);
}

.reader blockquote {
  margin: 34px 0;
  padding-left: 24px;
  border-left: 5px solid var(--coral);
  color: var(--green-dark);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.locked-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  padding: 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-family: Inter, sans-serif;
  font-size: 16px;
}

.locked-preview a {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
}

.proof {
  background: #fffaf1;
}

.review-grid figure {
  margin: 0;
  padding: 26px;
}

.review-grid blockquote {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
}

.review-grid figcaption {
  color: var(--muted);
}

.buy-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: #dfe9f3;
}

.checkout-card {
  padding: 24px;
  box-shadow: var(--shadow);
}

.price-row {
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 22px;
}

.price-row strong {
  font-size: 42px;
}

.addon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.addon input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.addon span {
  display: grid;
}

.addon small {
  color: var(--muted);
}

.secure-note {
  margin: 14px 0 0;
  font-size: 13px;
}

.faq {
  max-width: 980px;
  margin: 0 auto;
}

.faq .section-heading {
  grid-template-columns: 1fr;
}

details {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

summary {
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(22, 32, 29, .58);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(100%, 500px);
  padding: 30px;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin-bottom: 12px;
  font-size: 34px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #eef3ef;
  font-size: 24px;
  cursor: pointer;
}

.thank-you-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(38px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.thank-you-panel {
  width: min(100%, 1050px);
}

.thank-you-panel h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 92px);
}

.thank-you-panel > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
}

.delivery-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 34px 0;
}

.delivery-steps article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.delivery-steps span {
  color: var(--coral);
  font-weight: 800;
}

.delivery-steps h2 {
  margin-top: 18px;
  font-size: 24px;
}

.delivery-steps p {
  color: var(--muted);
}

code {
  padding: 2px 5px;
  background: #eef3ef;
  border-radius: 5px;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    padding-block: 14px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero,
  .section-heading,
  .reader-section,
  .buy-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .book-cover {
    min-height: 480px;
  }

  .feature-grid,
  .review-grid,
  .delivery-steps {
    grid-template-columns: 1fr;
  }

  .reader-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: 140px;
  }

  .header-cta {
    padding-inline: 12px;
  }

  .hero,
  .section,
  .reader-section,
  .buy-section {
    padding-inline: 16px;
  }

  h1 {
    font-size: 48px;
  }

  .book-cover {
    min-height: 420px;
    padding: 24px;
  }

  .cover-map span {
    height: 58px;
  }

  .reader-sidebar {
    grid-template-columns: 1fr;
  }

  .locked-preview,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
