:root {
  --navy: #011d40;
  --navy-2: #052a55;
  --navy-3: #010f24;
  --gold: #eaa820;
  --gold-dark: #a97515;
  --cream: #f9f4ee;
  --cream-2: #efe5d7;
  --paper: #fffdf8;
  --ink: #061f3e;
  --muted: #647084;
  --white: #ffffff;
  --green: #25d366;
  --shadow: 0 22px 58px rgba(1, 29, 64, 0.15);
  --serif: Georgia, "Times New Roman", serif;
  --sans: 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(--cream);
  color: var(--ink);
  font-family: var(--sans);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

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

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #01152f 0%, var(--navy) 54%, #03152d 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 14px 28px rgba(1, 29, 64, 0.2);
  color: var(--white);
}

.header-inner {
  width: min(1180px, calc(100% - 36px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-button,
.footer-brand {
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  text-align: left;
}

.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: var(--navy);
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
  white-space: nowrap;
}

.brand-copy em {
  color: var(--gold);
  font-style: normal;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  position: relative;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 2px;
  font-family: var(--serif);
  font-size: 18px;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.cart-button {
  border: 0;
  background: transparent;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
}

.cart-button svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.page {
  min-height: 68vh;
}

.home-hero,
.page-hero,
.section,
.depth-section {
  position: relative;
  overflow: hidden;
}

.home-hero {
  min-height: calc(100svh - 88px);
  padding: 68px 0 60px;
  background:
    radial-gradient(circle at 78% 18%, rgba(234, 168, 32, 0.13), transparent 30%),
    linear-gradient(180deg, #fffaf0 0%, var(--cream) 58%, #f4ebde 100%);
}

.home-hero::before,
.home-hero::after,
.page-hero::after,
.depth-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(169, 117, 21, 0.35);
}

.home-hero::before {
  top: 18px;
}

.home-hero::after {
  bottom: 18px;
}

.watermark {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
}

.watermark-hero {
  width: min(620px, 52vw);
  left: 38%;
  top: 38px;
}

.watermark-page {
  width: min(560px, 54vw);
  right: 5vw;
  top: 18px;
}

.hero-inner,
.page-hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.86fr);
  align-items: center;
  gap: 58px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--ink);
}

.home-hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 0.99;
}

.hero-lead {
  max-width: 610px;
  color: #273950;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
}

.hero-actions,
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-actions {
  margin: 34px 0 32px;
}

.primary-button,
.secondary-button,
.whatsapp-button,
.small-button {
  min-height: 46px;
  border-radius: 5px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.primary-button {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(1, 29, 64, 0.16);
}

.primary-button::before,
.primary-button::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(1, 29, 64, 0.24);
  color: var(--navy);
}

.whatsapp-button {
  background: var(--green);
  color: var(--white);
}

.journey-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
}

.journey-line i {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--gold);
}

.book-stage {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.book-cover {
  position: relative;
  width: min(390px, 100%);
  transform: perspective(900px) rotateY(-8deg) rotateX(1deg);
  filter: drop-shadow(28px 32px 28px rgba(1, 29, 64, 0.22));
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 18px -28px 18px auto;
  width: 42px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, #f4f4f4, #cfd6df 40%, #ffffff 72%, #abb5c0);
  transform: skewY(2deg);
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(234, 168, 32, 0.82);
  border-radius: 2px;
  pointer-events: none;
}

.book-cover img {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 2px;
  background: var(--navy);
}

.book-stage p {
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 16px;
  text-align: center;
}

.depth-section {
  padding: 44px 0 62px;
  background: var(--cream);
}

.depth-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.depth-tab {
  min-height: 54px;
  border: 1px solid rgba(169, 117, 21, 0.35);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--navy);
  font-weight: 900;
}

.depth-tab.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--gold);
}

.depth-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 52px;
  padding: 36px;
  border: 1px solid rgba(169, 117, 21, 0.28);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 10px 40px rgba(1, 29, 64, 0.08);
}

.depth-panel::before {
  top: 18px;
}

.depth-panel h2,
.section h2,
.page-hero h1,
.empty-state h2,
.cart-layout h2 {
  margin-bottom: 16px;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.05;
}

.depth-panel p,
.rich-text p,
.page-hero p,
.empty-state p,
.info-card p,
.module-card p,
.cart-item span,
.fine-print {
  color: #3f4b5e;
  font-size: 17px;
  line-height: 1.7;
}

.page-hero {
  padding: 58px 0 62px;
  background:
    radial-gradient(circle at 82% 24%, rgba(234, 168, 32, 0.13), transparent 27%),
    linear-gradient(180deg, #fffaf0 0%, var(--cream) 100%);
  border-bottom: 1px solid rgba(169, 117, 21, 0.25);
}

.page-hero::after {
  bottom: 18px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 48px;
  align-items: center;
}

.page-hero h1 {
  max-width: 760px;
}

.page-hero p {
  max-width: 660px;
}

.page-visual {
  justify-self: end;
}

.page-visual.logo img {
  width: 240px;
  height: 240px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.page-visual.book img {
  width: 250px;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.page-visual.mascote img {
  width: 300px;
  border-radius: 8px;
  border: 1px solid rgba(169, 117, 21, 0.25);
  box-shadow: var(--shadow);
}

.section {
  padding: 58px 0 72px;
}

.year-tabs {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 4px 0 34px;
}

.year-tab {
  min-width: 126px;
  border: 1px solid rgba(169, 117, 21, 0.45);
  border-radius: 5px;
  background: var(--paper);
  color: var(--navy);
  padding: 14px 18px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 900;
  white-space: nowrap;
}

.year-tab.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 8px 18px rgba(1, 29, 64, 0.12);
}

.modules-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.modules-layout aside h2 {
  margin-bottom: 4px;
}

.mini-cover {
  width: min(250px, 100%);
  margin-top: 18px;
  filter: drop-shadow(20px 24px 22px rgba(1, 29, 64, 0.18));
}

.mini-cover img {
  width: 100%;
  border-radius: 2px;
}

.modules-grid {
  display: grid;
  gap: 12px;
}

.module-card {
  display: grid;
  gap: 10px;
}

.module-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(169, 117, 21, 0.22);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--navy);
  padding: 14px 16px;
  text-align: left;
}

.module-row:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(1, 29, 64, 0.08);
}

.module-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-weight: 900;
}

.module-row strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
}

.module-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.arrow {
  color: var(--gold-dark);
  font-size: 27px;
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 50px;
}

.small-button {
  min-height: 40px;
  background: var(--navy);
  color: var(--gold);
  border-color: var(--gold);
}

.small-button.light {
  background: var(--gold);
  color: var(--navy);
}

.coming-soon,
.info-card span,
.badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
  padding: 42px;
  border: 1px solid rgba(169, 117, 21, 0.28);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 10px 40px rgba(1, 29, 64, 0.08);
}

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

.info-card {
  min-height: 240px;
  padding: 26px;
  border: 1px solid rgba(169, 117, 21, 0.26);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(1, 29, 64, 0.07);
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 27px;
}

.empty-state {
  text-align: center;
  padding: 56px 24px;
  border: 1px solid rgba(169, 117, 21, 0.24);
  border-radius: 8px;
  background: var(--paper);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: var(--paper);
  border: 1px solid rgba(169, 117, 21, 0.24);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.cart-item img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  border: 1px solid var(--cream-2);
}

.cart-item strong {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 18px;
}

.remove-button {
  border: 0;
  background: transparent;
  color: #a52a2a;
  font-weight: 900;
}

.form-card {
  background: var(--paper);
  border: 1px solid rgba(169, 117, 21, 0.24);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-card h3 {
  margin-bottom: 18px;
  font-size: 27px;
}

.form-card label {
  display: block;
  color: #344256;
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 6px;
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 1.5px solid var(--cream-2);
  background: var(--cream);
  border-radius: 6px;
  padding: 11px 12px;
  margin-bottom: 14px;
  color: var(--ink);
  outline: none;
}

.form-card input:focus,
.form-card textarea:focus {
  border-color: var(--gold);
}

.site-footer {
  background: var(--navy-3);
  color: var(--white);
  border-top: 3px solid var(--gold);
}

.testimonial-strip {
  padding: 30px 0 24px;
  overflow: hidden;
}

.strip-heading {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 14px;
}

.strip-heading h2 {
  margin: 0;
  color: var(--white);
  font-size: 28px;
}

.testimonial-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.testimonial-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: marquee 78s linear infinite;
}

.testimonial-card {
  width: 520px;
  flex: 0 0 auto;
  border: 1px solid rgba(234, 168, 32, 0.26);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 20px;
}

.stars {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.testimonial-card p {
  min-height: 210px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.testimonial-card strong {
  color: var(--gold);
  font-size: 14px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.footer-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(234, 168, 32, 0.2);
}

.footer-brand img {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.footer-brand span {
  display: grid;
  gap: 4px;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 21px;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 14px 20px 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.modal-backdrop,
.zoom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  background: rgba(1, 15, 36, 0.78);
  padding: 28px 18px;
}

.modal-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid rgba(234, 168, 32, 0.45);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--cream-2);
}

.modal-header h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
}

.close-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(169, 117, 21, 0.28);
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
}

.preview-image {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid var(--cream-2);
  border-radius: 6px;
  background: var(--cream);
  cursor: zoom-in;
}

.summary-list {
  columns: 2;
  padding-left: 20px;
  color: #3f4b5e;
  line-height: 1.65;
}

.zoom-backdrop {
  display: grid;
  place-items: center;
  cursor: zoom-out;
}

.zoom-backdrop img {
  max-width: min(96vw, 980px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

@media (max-width: 980px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    min-height: 82px;
    gap: 14px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .brand-copy strong {
    font-size: 21px;
  }

  .brand-copy small {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .main-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 16px;
  }

  .hero-inner,
  .page-hero-inner,
  .depth-panel,
  .modules-layout,
  .split-panel,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .page-visual {
    justify-self: start;
  }

  .depth-tabs,
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-actions {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0 12px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .cart-button svg {
    width: 27px;
    height: 27px;
  }

  .home-hero {
    min-height: auto;
    padding: 42px 0 48px;
  }

  .hero-inner,
  .page-hero-inner,
  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .home-hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-lead,
  .depth-panel p,
  .rich-text p,
  .page-hero p {
    font-size: 16px;
  }

  .journey-line {
    gap: 10px;
    font-size: 16px;
  }

  .book-cover {
    width: min(310px, 86vw);
  }

  .depth-tabs,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .depth-panel,
  .split-panel {
    padding: 24px;
  }

  .year-tab {
    min-width: 110px;
  }

  .module-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .module-row .arrow {
    display: none;
  }

  .cart-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .cart-item img {
    width: 58px;
    height: 76px;
  }

  .remove-button {
    grid-column: 2;
    justify-self: start;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .testimonial-card {
    width: 340px;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .summary-list {
    columns: 1;
  }
}

.page-hero-inner.no-visual {
  grid-template-columns: minmax(0, 820px);
}

.page-hero-inner.no-visual > div:first-child {
  max-width: 820px;
}


.coming-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  min-height: 56px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(1, 29, 64, 0.12);
}

.july-pill {
  min-width: 260px;
}

.module-card-soon .soon-row {
  cursor: default;
}

.module-card-soon .module-row {
  grid-template-columns: 72px 1fr;
}

.module-card-soon .module-number {
  font-size: 2rem;
}

.preview-gallery {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.preview-card {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(169, 117, 21, 0.24);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 18px 34px rgba(1, 29, 64, 0.07);
}

.preview-card figcaption {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--ink);
}

.real-note {
  margin-top: 10px;
  color: var(--muted);
}

.real-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(234, 168, 32, 0.16);
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-body-gallery {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
}

@media (max-width: 900px) {
  .modal-body-gallery {
    grid-template-columns: 1fr;
  }

  .preview-card figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .july-pill {
    min-width: 0;
    width: 100%;
    text-align: center;
  }
}


.page-visual.apostilas {
  width: min(100%, 420px);
}

.hero-cover-set,
.cover-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.hero-cover-set img,
.cover-set img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(169, 117, 21, 0.18);
  background: var(--navy);
}

.page-visual.livro img {
  width: 250px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(169, 117, 21, 0.18);
}

.mini-cover.duo {
  width: min(300px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-cover.duo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(169, 117, 21, 0.18);
  background: var(--navy);
}

.livro-panel {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.livro-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.livro-gallery .preview-card:first-child {
  grid-column: 1 / -1;
}

.livro-gallery .preview-card:first-child .preview-image {
  max-width: 420px;
  margin: 0 auto;
  display: block;
}

@media (max-width: 900px) {
  .hero-cover-set,
  .cover-set,
  .mini-cover.duo,
  .livro-gallery {
    grid-template-columns: 1fr;
  }

  .page-visual.apostilas,
  .page-visual.livro {
    width: 100%;
    justify-self: stretch;
  }

  .page-visual.livro img,
  .hero-cover-set img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: block;
  }

  .livro-gallery .preview-card:first-child {
    grid-column: auto;
  }
}


/* Lapidação mobile da aba Livro */
.gallery-hint {
  margin-top: 6px;
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 0.95rem;
}

.livro-actions {
  margin-top: 22px;
}

.livro-actions .primary-button,
.livro-actions .whatsapp-button {
  min-height: 52px;
}

@media (max-width: 640px) {
  .livro-page .page-hero {
    padding: 30px 0 34px;
  }

  .livro-page .page-hero-inner {
    gap: 22px;
  }

  .livro-page .page-hero h1 {
    font-size: clamp(32px, 9.8vw, 42px);
    line-height: 1.04;
    margin-bottom: 12px;
  }

  .livro-page .page-hero p {
    font-size: 15.5px;
    line-height: 1.6;
  }

  .livro-page .page-visual.livro {
    order: -1;
    justify-self: center;
  }

  .livro-page .page-visual.livro img {
    max-width: 238px;
    border-radius: 10px;
  }

  .livro-panel {
    padding: 22px 18px;
    border-radius: 18px;
    gap: 24px;
  }

  .livro-panel h2 {
    font-size: clamp(27px, 8.5vw, 38px);
    line-height: 1.08;
  }

  .livro-panel .rich-text p {
    font-size: 15.5px;
    line-height: 1.62;
  }

  .livro-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .livro-actions .primary-button,
  .livro-actions .whatsapp-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .livro-gallery {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    margin: 0 -18px;
    padding: 4px 18px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .livro-gallery::-webkit-scrollbar {
    display: none;
  }

  .livro-gallery .preview-card,
  .livro-gallery .preview-card:first-child {
    flex: 0 0 min(82vw, 340px);
    scroll-snap-align: start;
    grid-column: auto;
    padding: 10px;
    border-radius: 18px;
  }

  .livro-gallery .preview-image,
  .livro-gallery .preview-card:first-child .preview-image {
    width: 100%;
    max-width: 100%;
    max-height: 430px;
    object-fit: contain;
    border-radius: 12px;
    background: #fbf6ec;
  }

  .livro-gallery .preview-card figcaption {
    font-size: 14px;
    line-height: 1.35;
  }

  .livro-gallery .real-badge {
    font-size: 0.72rem;
    padding: 5px 10px;
  }
}


/* Correção definitiva: no celular as páginas reais do livro ficam abaixo do texto, visíveis e centralizadas */
@media (max-width: 700px) {
  .livro-page .section {
    padding: 34px 0 54px;
  }

  .livro-page .section-inner {
    width: min(100%, calc(100vw - 28px));
  }

  .livro-panel {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    overflow: hidden !important;
  }

  .livro-panel > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .livro-gallery {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    gap: 18px !important;
  }

  .livro-gallery .preview-card,
  .livro-gallery .preview-card:first-child {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    scroll-snap-align: none !important;
    grid-column: auto !important;
    padding: 10px !important;
    margin: 0 !important;
  }

  .livro-gallery .preview-image,
  .livro-gallery .preview-card:first-child .preview-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
  }

  .livro-gallery .preview-card figcaption {
    width: 100%;
  }

  .gallery-hint {
    margin-bottom: 4px;
  }
}


/* Ajustes apostilas: capas somente dentro do respectivo módulo */
.module-card-with-cover .module-row-with-cover {
  grid-template-columns: 82px auto minmax(0, 1fr) auto;
  align-items: center;
}

.module-card-cover {
  width: 76px;
  height: 106px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  border: 1px solid rgba(169, 117, 21, 0.28);
  background: var(--navy);
  box-shadow: 0 12px 24px rgba(1, 29, 64, 0.12);
}

.module-card-with-cover .module-actions {
  padding-left: 132px;
}

/* Checkout Pix */
.checkout-modal {
  width: min(860px, 100%);
}

.checkout-body {
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
}

.pix-card,
.receipt-card,
.checkout-summary-card {
  border: 1px solid rgba(169, 117, 21, 0.24);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.92);
  padding: 22px;
}

.pix-card {
  border-top: 4px solid var(--gold);
}

.pix-data {
  display: grid;
  gap: 14px;
  margin: 14px 0 20px;
}

.pix-data div {
  border-bottom: 1px solid rgba(169, 117, 21, 0.18);
  padding-bottom: 12px;
}

.pix-data dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pix-data dd {
  margin: 5px 0 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.receipt-card h3 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 26px;
}

.checkout-contact-actions {
  margin-bottom: 14px;
}

.checkout-contact-actions .whatsapp-button,
.checkout-contact-actions .secondary-button,
.copy-pix-button {
  min-height: 48px;
}

.checkout-summary-card {
  margin-top: 16px;
  background: var(--cream);
}

.checkout-summary-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 20px;
}

.checkout-summary-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 10px;
  color: #3f4b5e;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
}

.checkout-summary-card span {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .module-card-with-cover .module-row-with-cover {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
  }

  .module-card-with-cover .module-row-with-cover .module-number,
  .module-card-with-cover .module-row-with-cover .arrow {
    display: none;
  }

  .module-card-cover {
    width: 64px;
    height: 90px;
  }

  .module-card-with-cover .module-actions {
    padding-left: 0;
  }

  .checkout-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .module-card-with-cover .module-row-with-cover {
    padding: 12px;
  }

  .module-card-with-cover .module-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .module-card-with-cover .small-button {
    width: 100%;
  }

  .pix-card,
  .receipt-card,
  .checkout-summary-card {
    padding: 18px;
  }

  .pix-data dd {
    font-size: 21px;
  }

  .checkout-contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .checkout-contact-actions .whatsapp-button,
  .checkout-contact-actions .secondary-button,
  .copy-pix-button {
    width: 100%;
  }
}


.checkout-link-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
