:root {
  --navy-950: #061323;
  --navy-900: #071a31;
  --navy-800: #0a2848;
  --sapphire: #0d4f93;
  --sapphire-soft: #e7f1fb;
  --gold: #d5a642;
  --gold-soft: #f5df9b;
  --paper: #fbf8ef;
  --white: #ffffff;
  --ink: #0b1624;
  --muted: #617081;
  --line: rgba(11, 22, 36, 0.12);
  --shadow: 0 24px 70px rgba(5, 17, 32, 0.22);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  align-items: center;
  background: rgba(6, 19, 35, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  padding: 16px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--gold), #fff3bd);
  border-radius: 6px;
  color: var(--navy-950);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2vw, 32px);
  justify-content: center;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--white);
}

.hero-section {
  background: var(--navy-950);
  color: var(--white);
  min-height: 94vh;
  overflow: hidden;
  position: relative;
}

.hero-section::after {
  background:
    linear-gradient(90deg, rgba(6, 19, 35, 0.95) 0%, rgba(6, 19, 35, 0.72) 47%, rgba(6, 19, 35, 0.14) 100%),
    linear-gradient(0deg, rgba(6, 19, 35, 0.94), rgba(6, 19, 35, 0) 42%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-media,
.hero-media img {
  inset: 0;
  position: absolute;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-content {
  align-items: center;
  display: grid;
  gap: clamp(36px, 5vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 94vh;
  padding: 112px clamp(20px, 4vw, 52px) 58px;
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1,
.auth-copy h2,
.purchase-copy h2,
.section-copy h2,
.benefit-heading h2,
.editorial-band h2,
.faq-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: clamp(46px, 7.4vw, 92px);
  line-height: 0.93;
  margin: 0;
  max-width: 780px;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  margin: 26px 0 0;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button,
.ghost-button,
.mode-button,
.text-button {
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--gold), #ffe79c);
  box-shadow: 0 15px 35px rgba(213, 166, 66, 0.28);
  color: var(--navy-950);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  min-height: 40px;
}

.price-line {
  color: var(--gold-soft) !important;
  font-size: 15px !important;
  font-weight: 800;
  margin-top: 18px !important;
}

.book-card {
  align-self: end;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(14px);
}

.book-card img {
  border-radius: 6px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.34);
  margin: 0 auto;
  max-height: 520px;
  object-fit: contain;
}

.book-card-copy {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
}

.book-card-copy strong {
  color: var(--white);
  font-size: 17px;
}

.book-card-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-align: right;
}

.auth-band,
.purchase-section,
.split-section,
.benefits-section,
.editorial-band,
.faq-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(58px, 8vw, 110px) clamp(20px, 4vw, 52px);
}

.auth-band,
.purchase-section {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: 0.92fr minmax(310px, 430px);
}

.auth-copy h2,
.purchase-copy h2,
.section-copy h2,
.benefit-heading h2,
.editorial-band h2,
.faq-section h2 {
  color: var(--navy-950);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1;
  margin: 0;
}

.auth-copy p,
.purchase-copy p,
.section-copy p,
.benefit-heading p,
.editorial-band p,
.faq-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 18px 0 0;
}

.auth-panel,
.checkout-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(12, 34, 62, 0.13);
  padding: 24px;
}

.form-mode {
  background: var(--sapphire-soft);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
  padding: 4px;
}

.mode-button {
  background: transparent;
  color: var(--navy-800);
  min-height: 40px;
}

.mode-button.is-active {
  background: var(--white);
  box-shadow: 0 6px 18px rgba(8, 34, 63, 0.12);
}

label {
  color: var(--navy-900);
  display: grid;
  font-size: 13px;
  font-weight: 850;
  gap: 8px;
  margin-top: 16px;
}

input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 48px;
  padding: 0 14px;
}

input:focus {
  border-color: var(--sapphire);
  box-shadow: 0 0 0 4px rgba(13, 79, 147, 0.12);
  outline: 0;
}

.checkbox-line {
  align-items: start;
  display: grid;
  font-weight: 650;
  gap: 10px;
  grid-template-columns: 18px 1fr;
}

.checkbox-line input {
  min-height: 18px;
}

.full-width {
  margin-top: 20px;
  width: 100%;
}

.text-button {
  background: transparent;
  color: var(--sapphire);
  margin-top: 10px;
  min-height: 34px;
  padding: 0;
}

.form-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  min-height: 20px;
}

.purchase-section {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  margin-top: 28px;
  max-width: none;
  padding-left: max(clamp(20px, 4vw, 52px), calc((100vw - 1180px) / 2 + 52px));
  padding-right: max(clamp(20px, 4vw, 52px), calc((100vw - 1180px) / 2 + 52px));
}

.purchase-copy h2,
.purchase-copy p {
  color: var(--white);
}

.purchase-copy p {
  color: rgba(255, 255, 255, 0.75);
}

.checkout-panel {
  align-items: center;
  display: grid;
  gap: 18px;
}

.checkout-label {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 4px;
}

.checkout-panel strong {
  color: var(--navy-950);
  font-size: 38px;
}

.checkout-panel .secondary-button {
  background: var(--sapphire);
  border-color: var(--sapphire);
}

.checkout-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.download-button {
  width: 100%;
}

.success-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(12, 34, 62, 0.13);
  margin: 42px auto 0;
  max-width: 820px;
  padding: clamp(28px, 5vw, 48px);
}

.success-panel h2 {
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  margin: 0;
}

.success-panel p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 16px 0 0;
}

.split-section {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 68px);
  grid-template-columns: 0.84fr 1fr;
}

.chapter-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.chapter-list li {
  align-items: start;
  color: var(--navy-900);
  display: grid;
  font-weight: 800;
  gap: 12px;
  grid-template-columns: 22px 1fr;
}

.chapter-list li::before {
  background: var(--gold);
  border-radius: 99px;
  content: "";
  height: 8px;
  margin-top: 8px;
  width: 8px;
}

.image-rail img,
.editorial-band img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.benefits-section {
  border-top: 1px solid var(--line);
}

.benefit-heading {
  display: flex;
  gap: 28px;
  justify-content: space-between;
}

.benefit-heading p {
  max-width: 360px;
}

.benefit-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 42px;
}

.benefit-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 220px;
  padding: 24px;
}

.benefit-grid span {
  color: var(--gold);
  font-weight: 950;
}

.benefit-grid h3 {
  color: var(--navy-900);
  font-size: 21px;
  margin: 42px 0 10px;
}

.benefit-grid p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.editorial-band {
  align-items: end;
  display: grid;
  gap: clamp(26px, 5vw, 62px);
  grid-template-columns: 1.2fr 0.8fr;
}

.faq-section {
  max-width: 880px;
  padding-top: 34px;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 12px;
  padding: 18px 20px;
}

summary {
  color: var(--navy-900);
  cursor: pointer;
  font-weight: 850;
}

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 10px;
  line-height: 1.6;
  padding: 32px clamp(20px, 4vw, 52px);
}

.site-footer strong {
  color: var(--white);
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero-content,
  .auth-band,
  .purchase-section,
  .split-section,
  .editorial-band {
    grid-template-columns: 1fr;
  }

  .book-card {
    max-width: 340px;
  }

  .benefit-heading {
    display: block;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand span:last-child {
    font-size: 14px;
  }

  .ghost-button {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero-content {
    padding-top: 94px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .book-card-copy {
    align-items: start;
    flex-direction: column;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }
}
