:root {
  --cream: #F7F1E6;
  --paper: #EDE1CB;
  --jade: #10483B;
  --jade-deep: #0B352B;
  --red: #A72822;
  --red-deep: #861F1A;
  --gold: #B69757; /* lines only, never text */
  --ink: #302D28;
  --ink-soft: #4C463E;
  --white: #FFFCF6;

  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(48, 45, 40, .10);
  --wrap: 1080px;
  --narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 125%; -webkit-text-size-adjust: 100%; }   /* 20px base: easier to read */
body {
  margin: 0;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--jade); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; color: var(--jade-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 5.6vw, 2.2rem); font-weight: 900; letter-spacing: 0; }
h2 { font-size: clamp(1.4rem, 4.6vw, 1.9rem); font-weight: 900; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
section { padding: 72px 0; }
.section--paper { background: var(--paper); }
.section--jade { background: var(--jade); color: var(--cream); }
.section--jade h2, .section--jade h3 { color: var(--cream); }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.lead { font-size: 1.05rem; color: var(--ink-soft); }
.subhead { font-family: var(--sans); font-size: 1.1rem; font-style: normal; line-height: 1.5; color: var(--ink); margin: -4px 0 18px; }

/* Red thread: the stitched binding of the book */
.thread {
  height: 0; border: 0; border-top: 2px dashed var(--red);
  width: 120px; margin: 22px auto; opacity: .85;
}
.sprig { width: 140px; height: 28px; color: var(--gold); margin: 0 auto 18px; display: block; }

/* Seal stamp */
.seal {
  display: inline-grid; place-items: center;
  background: var(--red); color: var(--cream);
  font-family: var(--serif); font-weight: 700;
  border-radius: 4px;
  box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px rgba(247, 241, 230, .55);
}
.seal--hero { position: absolute; top: 6%; right: 4%; width: 92px; height: 92px; font-size: 2.6rem; transform: rotate(-6deg); }
.seal--sm { width: 54px; height: 54px; font-size: 1.5rem; flex: none; transform: rotate(-3deg); }

/* Buttons */
.btn {
  display: inline-block; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--red); color: var(--cream);
  font-family: var(--sans); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em;
  padding: 18px 34px; border-radius: 8px; border: 0;
  box-shadow: 0 6px 0 var(--red-deep), 0 12px 24px rgba(167, 40, 34, .25);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: #B42E27; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-deep), 0 6px 12px rgba(167, 40, 34, .2); }
.btn--block { display: block; width: 100%; }
.btn small { display: block; font-weight: 400; font-size: .85rem; opacity: .9; margin-top: 2px; }

/* Top bar */
.topbar {
  background: var(--jade-deep); color: var(--cream);
  text-align: center; font-size: .95rem; padding: 10px 16px;
  position: sticky; top: 0; z-index: 50;
}
.topbar strong { color: #fff; }
.topbar s { opacity: .65; }
.timer {
  display: inline-block; font-variant-numeric: tabular-nums; font-weight: 700;
  background: var(--red); color: var(--cream); padding: 1px 8px; border-radius: 4px; margin-left: 4px;
}
.only-ended { display: none; }
.offer-ended .only-discount { display: none !important; }
.offer-ended .only-ended { display: inline; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero__media { position: relative; }
.hero__media img, .hero__media .ph { border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; padding: 0; list-style: none; }
.chips li {
  font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--gold); color: var(--jade); padding: 5px 12px; border-radius: 999px;
}
.assurances { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 22px 0 0; font-size: .95rem; color: var(--ink-soft); }
.assurances li::before { content: "✓"; color: var(--jade); font-weight: 700; margin-right: 6px; }
@media (max-width: 899px) {
  .hero__media { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

/* Price card */
.price-card {
  background: var(--white); border: 1px solid var(--gold); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px 24px; max-width: 520px; margin: 0 auto; text-align: center;
  position: relative;
}
.price-card::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(182, 151, 87, .45); border-radius: 10px; pointer-events: none;
}
.price-card .format { font-size: .95rem; color: var(--ink-soft); }
.price { font-family: var(--serif); font-weight: 700; color: var(--red); font-size: 4rem; line-height: 1; margin: 6px 0; }
.price s { font-size: 1.8rem; color: var(--ink-soft); font-weight: 500; margin-right: 10px; }
.price-note { font-size: .95rem; margin-bottom: 20px; }
.device { max-width: 280px; margin: 0 auto 18px; }
.disclaimer-mini { font-size: .88rem; color: var(--ink-soft); margin: 16px 0 0; line-height: 1.45; }
.paylogos { font-size: .92rem; color: var(--ink-soft); margin-top: 12px; }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; text-align: center; }
.numbers div { padding: 18px 8px; border-top: 1px solid var(--gold); }
.numbers b { display: block; font-family: var(--serif); font-size: 2.8rem; color: var(--red); line-height: 1; }
.numbers span { font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
@media (min-width: 720px) { .numbers { grid-template-columns: repeat(4, 1fr); } }

/* Without / With */
.compare { display: grid; gap: 20px; margin-top: 36px; }
.compare__col { border-radius: var(--radius); padding: 28px 24px; }
.compare__col h3 { font-size: 1.6rem; }
.compare__col ul { list-style: none; padding: 0; margin: 0; }
.compare__col li { padding: 10px 0 10px 34px; position: relative; border-top: 1px solid rgba(48, 45, 40, .1); }
.compare__col li::before { position: absolute; left: 0; top: 9px; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }
.compare__without { background: rgba(48, 45, 40, .05); }
.compare__without h3 { color: var(--ink-soft); }
.compare__without li::before { content: "✕"; background: rgba(48, 45, 40, .12); color: var(--ink-soft); }
.compare__with { background: var(--white); border: 1px solid var(--gold); box-shadow: var(--shadow); }
.compare__with li::before { content: "✓"; background: var(--jade); color: var(--cream); }
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; } }

/* Testimonials */
.reviews { display: grid; gap: 20px; margin-top: 36px; }
.review { background: var(--white); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.review__stars { color: var(--red); letter-spacing: 2px; margin-bottom: 10px; }
.review__text { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; font-style: italic; }
.review__who { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold); flex: none; }
.review__who small { display: block; color: var(--ink-soft); }
@media (min-width: 820px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

/* Categories */
.cats { display: grid; gap: 16px; margin-top: 36px; }
.cat { display: flex; gap: 16px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 18px; border: 1px solid rgba(182, 151, 87, .5); }
.cat h3 { font-size: 1.35rem; margin: 0 0 2px; }
.cat p { margin: 0; font-size: 1.02rem; color: var(--ink-soft); line-height: 1.45; }
@media (min-width: 720px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(3, 1fr); } }

/* Tradition */
.tradition p { font-size: 1.1rem; }
.tradition .quote { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.3; font-style: italic; text-align: center; margin: 34px 0; }
.ritual { display: grid; gap: 14px; margin-top: 30px; counter-reset: step; }
.ritual li { list-style: none; background: rgba(247, 241, 230, .08); border: 1px solid rgba(182, 151, 87, .6); border-radius: var(--radius); padding: 18px 18px 18px 68px; position: relative; }
.ritual li::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--red); color: var(--cream); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; border-radius: 4px; }
.ritual { padding: 0; }
@media (min-width: 820px) { .ritual { grid-template-columns: repeat(3, 1fr); } }

/* Look inside */
.pages { display: grid; gap: 18px; margin-top: 36px; }
.pages img, .pages .ph { border-radius: 8px; box-shadow: var(--shadow); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
@media (min-width: 720px) { .pages { grid-template-columns: repeat(3, 1fr); } }
.sample { margin-top: 40px; background: var(--white); border: 1px solid var(--gold); border-radius: var(--radius); padding: 28px 24px; }
.sample__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sample__head h3 { margin: 0; }

/* Offer stack */
.stack { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gold); overflow: hidden; margin-top: 36px; }
.stack__row { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid rgba(182, 151, 87, .4); }
.stack__row img, .stack__row .ph { width: 72px; flex: none; border-radius: 6px; aspect-ratio: 3 / 4; }
.stack__row .ph { font-size: .6rem; padding: 4px; }
.stack__body { flex: 1; }
.stack__body b { display: block; font-size: 1.05rem; }
.stack__body span { font-size: 1rem; color: var(--ink-soft); }
.stack__value { font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--jade); color: var(--cream); padding: 2px 8px; border-radius: 4px; margin-bottom: 4px; }
.stack__total { padding: 26px 22px 30px; text-align: center; background: var(--cream); }
.stack__total .was { color: var(--ink-soft); }
.bump-note { font-size: .92rem; color: var(--ink-soft); margin-top: 14px; }

.guarantee { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; margin-top: 44px; padding: 30px 24px; border: 2px dashed var(--red); border-radius: var(--radius); }
.guarantee .seal { width: 96px; height: 96px; font-size: 1rem; line-height: 1.05; text-align: center; padding: 8px; transform: rotate(-4deg); }
@media (min-width: 720px) { .guarantee { flex-direction: row; text-align: left; } }

/* FAQ */
.faq details { border-bottom: 1px solid rgba(182, 151, 87, .6); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Footer */
.footer { background: var(--jade-deep); color: rgba(247, 241, 230, .8); font-size: .88rem; padding: 48px 0 110px; }
.footer a { color: var(--cream); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0; }
.footer .disclaimer { border-top: 1px solid rgba(182, 151, 87, .5); padding-top: 18px; line-height: 1.55; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(247, 241, 230, .96); backdrop-filter: blur(6px);
  border-top: 1px solid var(--gold); padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__price { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--red); line-height: 1; }
.sticky-cta__price small { display: block; font-family: var(--sans); font-size: .72rem; color: var(--ink-soft); font-weight: 400; }
.sticky-cta .btn { flex: 1; padding: 13px 16px; font-size: 1rem; box-shadow: 0 4px 0 var(--red-deep); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Sale popup */
.sale-pop {
  position: fixed; left: 16px; bottom: 84px; z-index: 55; max-width: 320px;
  display: flex; gap: 12px; align-items: center;
  background: var(--white); border: 1px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow);
  padding: 12px 14px; font-size: .9rem; line-height: 1.35;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
.sale-pop.is-visible { opacity: 1; transform: none; }
.sale-pop .seal { width: 40px; height: 40px; font-size: 1rem; flex: none; }
.sale-pop small { display: block; color: var(--ink-soft); margin-top: 2px; }
@media (min-width: 900px) { .sale-pop { bottom: 24px; } }

/* Image placeholders (until real images are in /img) */
.ph {
  display: grid; place-items: center; text-align: center; min-height: 180px; padding: 16px;
  background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 12px, #E6D8BE 12px, #E6D8BE 24px);
  border: 1px dashed var(--gold); color: var(--ink-soft); font-size: .85rem; font-family: var(--sans);
}
.ph--hero { aspect-ratio: 4 / 5; }
.ph--device { aspect-ratio: 4 / 3; min-height: 0; width: 100%; }

/* Placeholder copy that must be replaced before going live */
.todo { background: #FFF3C4; outline: 1px dashed #C9A227; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: 2.6rem; }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal .back { display: inline-block; margin-bottom: 24px; }

/* How it works (for readers less used to buying digital products) */
.steps { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; text-align: left; counter-reset: st; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { counter-increment: st; content: counter(st); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--jade); color: var(--cream); font-weight: 700; }
.steps b { display: block; }
.help { font-size: .98rem; margin-top: 18px; }

/* ---------- Product hero: gallery + buy box ---------- */
.product { padding: 24px 0 56px; }
.product__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) {
  .product { padding: 40px 0 72px; }
  .product__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
}

.gallery { min-width: 0; }
.gallery__stage { position: relative; }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow); outline-offset: 3px;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; display: grid; place-items: center; cursor: zoom-in; overflow: hidden; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery__slide--photo img { object-fit: cover; }
.gallery__slide--card { cursor: default; padding: 18px; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold);
  background: rgba(255, 252, 246, .92); color: var(--jade); font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0 0 4px; box-shadow: var(--shadow);
}
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__hint { text-align: center; font-size: .92rem; color: var(--ink-soft); margin: 10px 0 8px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.gallery__thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer;
  aspect-ratio: 3 / 4; background: var(--paper);
}
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs .thumb-card { font-family: var(--serif); font-weight: 700; font-size: .85rem; line-height: 1.1; color: var(--jade); padding: 4px; border-color: rgba(182, 151, 87, .6); }
.gallery__thumbs button.is-active { border-color: var(--red); }

.slide-card {
  width: 100%; height: 100%; background: var(--white); border-radius: 10px; padding: 26px 22px;
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 7px var(--white), inset 0 0 0 8px rgba(182, 151, 87, .5);
  display: flex; flex-direction: column; justify-content: center;
}
.slide-card__title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.2rem); color: var(--jade-deep); text-align: center; margin: 0 0 18px; line-height: 1.1; }
.slide-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.slide-card__list li { position: relative; padding: 10px 12px 10px 44px; background: var(--cream); border-radius: 8px; font-size: clamp(.95rem, 2.6vw, 1.1rem); line-height: 1.35; }
.slide-card__list li::before { content: "\2713"; position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--jade); color: var(--cream); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.slide-card__cats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slide-card__cats li { background: var(--cream); border-radius: 8px; padding: 12px 6px; text-align: center; font-size: clamp(.8rem, 2.3vw, .98rem); line-height: 1.2; font-weight: 600; }
.slide-card__cats b { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 8px; background: var(--red); color: var(--cream); font-family: var(--serif); font-size: 1.25rem; border-radius: 4px; transform: rotate(-3deg); }

.buybox h1 { font-size: clamp(2.3rem, 5vw, 3.3rem); margin-bottom: .25em; }
.buybox .subhead { font-size: clamp(1.25rem, 3vw, 1.5rem); }
.buybox__badge {
  background: var(--jade); color: var(--cream); text-align: center; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; padding: 7px 10px; border-radius: 4px; margin: 0 0 16px;
}
.buybox__points { list-style: none; padding: 0; margin: 0 0 18px; }
.buybox__points li { display: flex; gap: 12px; padding: 5px 0; font-size: 1.05rem; line-height: 1.4; }
.buybox__offer { border: 2px solid var(--jade); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; background: var(--white); }
.buybox__line { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.buybox__line b { font-size: 1.08rem; }
.buybox__line small { display: block; color: var(--ink-soft); font-size: .92rem; line-height: 1.35; margin-top: 2px; }
.buybox__price { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; color: var(--red); line-height: 1; white-space: nowrap; text-align: right; }
.buybox__price s { display: block; font-size: 1.1rem; color: var(--ink-soft); font-weight: 500; }
.buybox .paylogos { text-align: center; }
.buybox .assurances { justify-content: center; margin: 10px 0 8px; }
.buybox__more { border-bottom: 1px solid rgba(182, 151, 87, .6); padding: 12px 0; }
.buybox__more summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.buybox__more summary::-webkit-details-marker { display: none; }
.buybox__more summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; }
.buybox__more[open] summary::after { content: "\2013"; }
.buybox__more p { margin: 10px 0 0; }
.buybox__more .steps { margin-top: 14px; }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 18, 15, .88); }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 6px; }
.lightbox__close {
  position: absolute; top: -6px; right: -6px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--cream); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
@media (max-width: 520px) {
  .gallery__thumbs { gap: 6px; }
  .gallery__thumbs .thumb-card { font-size: .68rem; }
}

/* ---------- Elements from the finished book ---------- */
.cat { background: var(--tint, var(--white)); border-color: rgba(182, 151, 87, .7); }
.cat p { color: var(--ink); }
.slide-card__cats li { background: var(--tint, var(--cream)); }
.pages img { cursor: zoom-in; aspect-ratio: 2 / 3; object-fit: contain; background: var(--cream); }
.pages { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .pages { grid-template-columns: repeat(3, 1fr); } }

/* --- design v2 (sessão do ebook): mapa do corpo, ícones de categoria, foto do pacote --- */
.bodymap { margin: 36px auto 8px; max-width: 760px; }
.bodymap img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(182, 151, 87, .5); display: block; }
.cat__icon { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 2px solid var(--jade);
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--gold); background: var(--cream); }
.cat__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat__count { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--red); margin-bottom: 2px; }
.bundle { margin: 28px 0 0; }
.bundle img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.stack__row img { width: 72px; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 3px 8px rgba(0,0,0,.18); }

/* --- página de obrigado (servida pelo Worker) --- */
.ty-hero { background: var(--jade); color: var(--cream); padding: 56px 0 44px; }
.ty-hero h1 { color: var(--cream); margin: 6px 0 8px; }
.ty-hero .lead { color: var(--cream); opacity: .92; }
.ty-check { display: inline-flex; width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: var(--cream);
  align-items: center; justify-content: center; font-size: 30px; font-weight: 700; margin-bottom: 10px; box-shadow: 0 0 0 4px rgba(247,241,230,.25); }
.ty-main { margin-top: 22px; }
.ty-main small { display: block; font-weight: 400; font-size: .85rem; opacity: .9; }
.ty-bookmark { padding: 20px 0; background: var(--paper); border-bottom: 1px solid rgba(182,151,87,.5); }
.ty-bookmark p { margin: 0; text-align: center; }
.ty-files { display: grid; gap: 14px; margin-top: 24px; }
.ty-file { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid rgba(182,151,87,.6); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.ty-file:hover { transform: translateY(-2px); }
.ty-file img { width: 64px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; flex: none; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.ty-file b { display: block; font-size: 1.1rem; }
.ty-file small { display: block; color: var(--ink-soft); font-size: .95rem; }
.ty-file em { display: inline-block; margin-top: 6px; font-style: normal; font-weight: 700; color: var(--red); }
.ty-file em::after { content: " ↓"; }
.ty-steps { counter-reset: t; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ty-steps li { counter-increment: t; position: relative; padding: 16px 18px 16px 64px; background: var(--white); border-radius: var(--radius); border: 1px solid rgba(182,151,87,.5); }
.ty-steps li::before { content: counter(t); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--jade);
  color: var(--cream); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ty-steps b { display: block; }
.ty-help { display: grid; gap: 14px; margin-top: 24px; }
.ty-help div { background: var(--white); border-radius: var(--radius); padding: 16px 18px; border: 1px solid rgba(182,151,87,.5); }
.ty-help p { margin: 4px 0 0; color: var(--ink-soft); }
@media (min-width: 820px) { .ty-help { grid-template-columns: repeat(3, 1fr); } }
/* correções: etiqueta legível dentro da pilha e selo da garantia sem corte */
.stack__body .tag, .ty-file .tag { color: var(--cream); font-size: .7rem; }
.guarantee .seal { width: 108px; height: 108px; font-size: .9rem; padding: 10px 6px; }
.bodymap img { cursor: zoom-in; }
.bodymap figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
@media (min-width: 720px) { .bodymap figcaption { display: none; } }

/* --- design v3: galeria da coleção, caixa de compra com a coleção, mapa no celular, 4 páginas --- */
.gallery__slide--fill img { object-fit: cover; }
.gallery__slide--cover { position: relative; background: radial-gradient(circle at 50% 40%, #F7F1E6, #EDE1CB 80%); padding: 18px 18px 54px; }
.gallery__slide--cover img { object-fit: contain; filter: drop-shadow(0 14px 18px rgba(48,45,40,.28)); }
.gallery__slide--cover figcaption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--jade); }
.gallery__slide--cover .tag { color: var(--cream); vertical-align: middle; margin-right: 6px; }
.gallery__thumbs { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; padding-bottom: 2px; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs button { flex: 0 0 64px; }
.slide-card__cats li { padding: 8px 4px; }
.slide-card__cats img { display: block; width: 52px; height: 52px; margin: 0 auto 4px; border-radius: 50%; border: 2px solid var(--jade); object-fit: cover; }
.slide-card__cats b { display: block; width: auto; height: auto; margin: 0; background: none; color: var(--red); font-size: 1.15rem; transform: none; }

.buybox__kicker { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; color: var(--red); }
.buybox h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); }
.buybox__stack { border: 2px solid var(--jade); border-radius: 12px; background: var(--white); margin: 6px 0 16px; overflow: hidden; }
.buybox__stack-title { margin: 0; background: var(--jade); color: var(--cream); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 6px; }
.bb-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(182,151,87,.4); }
.bb-row img { width: 44px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.2); flex: none; }
.bb-row div { flex: 1; min-width: 0; line-height: 1.2; }
.bb-row b { display: block; font-size: 1.02rem; }
.bb-row small { color: var(--ink-soft); font-size: .88rem; }
.bb-row .tag { color: var(--cream); font-size: .62rem; padding: 1px 6px; margin: 0 0 2px; }
.bb-val { font-weight: 700; color: var(--ink-soft); }
.bb-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; background: var(--cream); font-weight: 700; }
.bb-total s { font-family: var(--serif); font-size: 1.6rem; color: var(--ink-soft); }
.buybox .btn small { display: block; font-weight: 400; font-size: .82rem; opacity: .9; }

.pages.pages--four { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .pages.pages--four { grid-template-columns: repeat(4, 1fr); } }
.pages figure { margin: 0; }
.pages figcaption { margin-top: 8px; font-family: var(--serif); font-weight: 700; color: var(--jade); font-size: 1.05rem; }
.bodymap picture, .bodymap img { display: block; width: 100%; height: auto; }
.bodymap figcaption { display: none; }
@media (max-width: 719px) {
  .bodymap { margin-left: -12px; margin-right: -12px; }
  .bodymap img { border-radius: 8px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { flex-direction: column; text-align: center; gap: 6px; padding: 14px 10px; }
  .cat h3 { font-size: 1.1rem; }
  .cat p { font-size: .9rem; }
  .cat__icon { width: 64px; height: 64px; }
}
.bb-val, .stack__value { text-align: right; line-height: 1.1; }
.bb-val small, .stack__value small { display: block; font-weight: 400; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.bb-val s, .stack__value s { color: var(--ink-soft); font-weight: 600; }
.bb-total { border-bottom: 1px dashed rgba(182,151,87,.6); }
.bb-today { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 12px; background: var(--cream); }
.bb-today span { font-weight: 700; color: var(--jade); }
.bb-today b { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--red); }

/* ajustes finais: sem a faixa de números, a buybox encosta direto no "What's inside" */
.product { padding-bottom: 8px; }
#inside { padding-top: 48px; }
@media (min-width: 720px) {
  .product { padding-bottom: 24px; }
  #inside { padding-top: 64px; }
}


/* ---------- Easy-reading pass (from the v2 demo) ---------- */
.chapters { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 28px auto 8px; max-width: 720px; }
.chap { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid rgba(182,151,87,.6); border-radius: var(--radius); padding: 12px; }
.chap img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; }
.chap h3 { margin: 0; }
.chap span { font-size: .8rem; font-weight: 700; color: var(--red); }
.chap p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }
#inside .bodymap { margin-top: 40px; }

.rating { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; margin: 14px 0 0; font-size: .95rem; }
.rating[hidden] { display: none; }
.rating .stars { color: #D68A00; letter-spacing: 2px; font-size: 1.25rem; }


/* ---------- Buy box top: centered title, bullets, icon list ---------- */
.buybox h1 { text-align: center; margin: 14px 0 16px; }
.subpoints { list-style: none; margin: 0 0 20px; padding: 0; }
.subpoints li { position: relative; padding: 4px 0 4px 26px; font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.subpoints li::before { content: ""; position: absolute; left: 4px; top: .8em; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(167,40,34,.15); }
.buybox__points { background: var(--white); border: 1px solid rgba(182,151,87,.55); border-radius: var(--radius); padding: 8px 14px; margin-bottom: 22px; }
.buybox__points li { align-items: center; gap: 14px; padding: 10px 0; font-size: 1rem; }
.buybox__points li + li { border-top: 1px solid rgba(182,151,87,.35); }
.buybox__points .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--jade); color: var(--cream); }
.buybox__points .ico svg { width: 24px; height: 24px; }

.ticks { list-style: none; margin: 0 0 22px; padding: 0; }
.ticks li { position: relative; padding-left: 36px; margin-bottom: 8px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--jade); color: #fff; font-size: 1rem; line-height: 26px; text-align: center; }

/* "Tap to get 3 bonuses": a one-line button, opens the bonus rows */
.bb-bonus { border-bottom: 1px solid rgba(182,151,87,.4); padding: 12px 14px; }
.bb-bonus summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 10px 16px; border-radius: 10px; background: #2E9A5A; color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 0 #1F7243; }
.bb-bonus summary::-webkit-details-marker { display: none; }
.bb-bonus summary:hover { background: #34A863; }
.bb-bonus summary:active { transform: translateY(3px); box-shadow: 0 1px 0 #1F7243; }
.bb-bonus summary i { width: 9px; height: 9px; flex: none; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); transition: transform .2s; }
.bb-bonus[open] summary i { transform: rotate(-135deg); }
.bb-bonus[open] { padding-bottom: 0; }
.bb-bonus[open] summary { margin-bottom: 8px; }
.bb-bonus .bb-row { margin: 0 -14px; }
.bb-bonus .bb-row:last-child { border-bottom: 0; }
.gallery__slide picture { display: block; width: 100%; height: 100%; }
.buybox .ticks { width: fit-content; max-width: 100%; margin: 0 auto 22px; }
.buybox .ticks li { font-size: .95rem; line-height: 1.35; margin-bottom: 10px; padding-top: 3px; }
@media (max-width: 480px) {
  .buybox .ticks li { font-size: .82rem; padding-left: 32px; padding-top: 2px; margin-bottom: 9px; }
  .buybox .ticks li::before { width: 23px; height: 23px; line-height: 23px; font-size: .85rem; }
}
