/* ===== Tokens ===== */
:root {
  --brand: #002250;
  --brand-fill: #002250;     /* navy for filled areas; stays navy in dark mode (--brand turns light there for text) */
  --brand-deep: #001A42;
  --brand-soft: #DDE5F1;
  --gold: #FCB917;
  --gold-hover: #FFC94A;
  --bg: #F3F5F9;
  --card: #FFFFFF;
  --ink: #0F1B33;
  --muted: #4B5770;
  --line: #D6DCE6;
  --focus: #002250;          /* navy ring on light backgrounds */
  --focus-dark: #FCB917;     /* gold ring on navy backgrounds */
  --radius: 10px;
  --sans: "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Noto Serif Ethiopic", Georgia, "Times New Roman", serif;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible, .top :focus-visible, .foot :focus-visible, .buybar :focus-visible { outline-color: var(--focus-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.prose { max-width: 38rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 6px; z-index: 50; font-weight: 600; }
.skip:focus { top: 8px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.25em;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-buy { background: var(--gold); color: var(--ink); }
.btn-buy:hover { background: var(--gold-hover); color: var(--ink); }
.btn-line { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-line:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-deep); }
.btn-block { width: 100%; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ===== Header / footer ===== */
.top { background: var(--brand-deep); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.logo { color: #fff; text-decoration: none; font: 700 1.1rem/1.2 var(--serif); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo:hover { color: #fff; }
.logo-mark { width: 26px; height: 26px; flex: none; }
.top-link { color: #fff; font-size: .95rem; padding: 10px 4px; }
.top-link:hover { color: var(--gold); }

.foot { background: var(--brand-deep); color: #D3DCEC; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); margin-top: 56px; font-size: .95rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; gap: 20px; }
.foot-brand { font: 700 1.15rem/1.3 var(--serif); color: #fff; margin-bottom: 4px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 6px; }
.foot li a { display: inline-block; padding: 6px 0; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ===== Hero with fanned stack ===== */
.hero { background: radial-gradient(120% 90% at 75% 20%, #0A3C85 0%, var(--brand-fill) 55%, #001F4A 100%); color: #fff; overflow: hidden; position: relative; }
.hero::after { /* thin gold rule under the hero */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold) 0 30%, transparent 30%);
}
.hero .wrap { display: grid; gap: 8px; padding-top: 36px; padding-bottom: 28px; }
.hero-kicker { font-size: .95rem; letter-spacing: .02em; color: var(--gold); margin: 0 0 6px; }
.hero h1 { font-size: clamp(2.1rem, 9vw, 3.6rem); margin: 0 0 .3em; letter-spacing: -.01em; }
.hero-tag { font-size: 1.1rem; color: #D5DFF0; max-width: 30rem; margin-bottom: 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.fan {
  position: relative; height: 240px; margin: 18px auto 0; width: 100%; max-width: 360px;
}
.fan-item {
  position: absolute; left: 50%; bottom: 10px; width: 120px;
  margin-left: -60px; transform-origin: 50% 115%;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  border-radius: 4px 7px 7px 4px;
}
.fan-item .cover { box-shadow: 0 14px 30px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25); }
.fan-item:nth-child(1) { transform: translateX(-54px) rotate(-12deg); z-index: 1; }
.fan-item:nth-child(2) { transform: translateY(-14px); z-index: 3; }
.fan-item:nth-child(3) { transform: translateX(54px) rotate(12deg); z-index: 2; }
.fan-item:only-child { transform: none; }
.fan-item:hover, .fan-item:focus-visible { z-index: 4; }
.fan-item:nth-child(1):hover, .fan-item:nth-child(1):focus-visible { transform: translateX(-60px) translateY(-14px) rotate(-14deg); }
.fan-item:nth-child(2):hover, .fan-item:nth-child(2):focus-visible { transform: translateY(-28px); }
.fan-item:nth-child(3):hover, .fan-item:nth-child(3):focus-visible { transform: translateX(60px) translateY(-14px) rotate(14deg); }

@media (prefers-reduced-motion: no-preference) {
  .fan.is-ready .fan-item { animation: fan-in .8s cubic-bezier(.2,.7,.2,1) both; }
  .fan.is-ready .fan-item:nth-child(2) { animation-name: fan-in-mid; }
  @keyframes fan-in { from { transform: translateY(-14px) rotate(0); } }
  @keyframes fan-in-mid { from { transform: translateY(0); } }
}

@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: 1.1fr 1fr; align-items: center; padding-top: 64px; padding-bottom: 64px; }
  .fan { height: 360px; max-width: 440px; margin-top: 0; }
  .fan-item { width: 180px; margin-left: -90px; }
  .fan-item:nth-child(1) { transform: translateX(-88px) rotate(-14deg); }
  .fan-item:nth-child(3) { transform: translateX(88px) rotate(14deg); }
  .fan-item:nth-child(1):hover, .fan-item:nth-child(1):focus-visible { transform: translateX(-98px) translateY(-16px) rotate(-16deg); }
  .fan-item:nth-child(3):hover, .fan-item:nth-child(3):focus-visible { transform: translateX(98px) translateY(-16px) rotate(16deg); }
}

/* ===== Covers ===== */
.cover { aspect-ratio: 2 / 3; width: 100%; border-radius: 3px 6px 6px 3px; overflow: hidden; background: var(--brand-soft); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.ccover {
  --c: #002250;
  position: relative; container-type: inline-size;
  background: var(--c);
  background-image: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18));
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  padding: 14% 11% 10% 17%;
}
.ccover::before { /* spine */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 7%;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.08) 70%, rgba(255,255,255,.12));
}
.ccover::after { /* gold rule */
  content: ""; position: absolute; left: 17%; top: 9%; width: 28%; height: 2px; background: var(--gold);
}
.ccover-title { font: 700 1rem/1.2 var(--serif); font-size: clamp(.7rem, 12cqw, 2.4rem); overflow-wrap: anywhere; margin-top: 6%; }
.ccover-type { font-size: .6rem; font-size: clamp(.5rem, 6.5cqw, 1rem); opacity: .82; margin-top: 6%; }
.ccover-brand { font-size: .55rem; font-size: clamp(.45rem, 6cqw, .9rem); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }

/* ===== Sections ===== */
.section { padding: 48px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }

.books { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.book-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px;
}
.book-card > * { min-width: 0; }
/* A discounted price (was · now · badge) may wrap between its parts, never inside one. */
.book-foot .price { white-space: normal; }
.book-foot .price > * { white-space: nowrap; }
.book-card .cover { box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.book-card h3 { margin: 0 0 2px; font-size: 1.2rem; }
.book-card h3 a { color: var(--ink); text-decoration: none; }
.book-card h3 a:hover { text-decoration: underline; }
.book-type { font-size: .9rem; color: var(--muted); margin: 0 0 6px; }
.book-pitch { font-size: .98rem; margin: 0 0 10px; }
.book-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.price { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.book-card .btn { min-height: 44px; padding: .45em 1em; font-size: .95rem; }
@media (min-width: 720px) {
  .books { grid-template-columns: 1fr 1fr; }
  .book-card { grid-template-columns: 120px minmax(0, 1fr); }
}
@media (min-width: 1040px) { .books { grid-template-columns: 1fr 1fr 1fr; } }

.loading { color: var(--muted); padding: 20px 0; }

.soon { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.soon li { border-left: 4px solid var(--gold); background: var(--card); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.soon strong { font-family: var(--serif); display: block; }
.soon span { color: var(--muted); font-size: .95rem; }
@media (min-width: 720px) { .soon { grid-template-columns: 1fr 1fr; } }

.tg {
  background: var(--brand-fill); color: #fff; border-radius: 14px; padding: 28px 22px;
  display: grid; gap: 14px; align-items: center;
}
.tg h2 { margin: 0; }
.tg p { margin: 0; color: #D5DFF0; }
@media (min-width: 720px) { .tg { grid-template-columns: 1fr auto; padding: 32px; } }

/* ===== Book page ===== */
.crumbs { font-size: .95rem; padding: 14px 0 0; }
.crumbs a { display: inline-block; padding: 8px 0; }
.book-top { display: grid; gap: 22px; padding: 10px 0 8px; }
.book-top .cover { max-width: 170px; box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.book-top h1 { font-size: clamp(1.9rem, 7vw, 2.7rem); margin-bottom: .15em; }
.meta { color: var(--muted); margin-bottom: 14px; }
.meta span + span::before { content: "·"; margin: 0 .5em; }
.big-price { font: 700 1.6rem/1.2 var(--sans); margin-bottom: 14px; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--muted); margin-top: 14px; max-width: 30rem; }
.pay-note svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 2px; }
@media (min-width: 720px) {
  .book-top { grid-template-columns: 240px 1fr; gap: 40px; padding-top: 24px; align-items: start; }
  .book-top .cover { max-width: none; }
}

.sample { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.sample > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; min-height: 56px; font: 700 1.15rem/1.3 var(--serif);
}
.sample > summary::-webkit-details-marker { display: none; }
.sample > summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--brand); }
.sample[open] > summary::after { content: "−"; }
.sample-body { padding: 4px 18px 22px; border-top: 1px solid var(--line); }
.sample-body p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.8; }
.sample-end { border-top: 1px dashed var(--line); padding-top: 18px; margin-top: 8px; }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--brand-deep); color: #fff;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -6px 18px rgba(0,0,0,.2);
}
.buybar-info { min-width: 0; }
.buybar-title { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #D5DFF0; }
.buybar-price { font-weight: 700; }
.buybar .btn { flex: none; }
.has-buybar { padding-bottom: 80px; }
@media (min-width: 900px) { .buybar { display: none; } .has-buybar { padding-bottom: 0; } }

/* ===== Thank-you ===== */
.thanks { padding-top: 32px; }
.tick { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-fill); color: var(--gold); display: grid; place-items: center; margin-bottom: 14px; }
.tick svg { width: 30px; height: 30px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 20px; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 14px 46px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; font-weight: 700;
}
.help { background: #FFF7DD; border: 1px solid #EBCB6B; border-radius: var(--radius); padding: 18px; margin: 8px 0 0; }
.help h2 { font-size: 1.2rem; margin-bottom: .4em; }
.help-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.notfound { padding-top: 56px; }
.notfound .big { font: 700 4rem/1 var(--serif); color: var(--brand); margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Rating and copies sold */
.stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .92rem; margin: 0 0 10px; color: var(--ink); }
.stars > span[aria-hidden] { color: #876106; }
.book-top .stats { font-size: 1rem; margin-bottom: 12px; }

/* Logo */
.logo-img { width: 40px; height: auto; flex: none; }
.hero-emblem { width: 112px; height: auto; margin: 0 0 14px; }
.foot-logo { display: flex; align-items: center; gap: 10px; }
.foot-logo img { width: 44px; height: auto; }
@media (min-width: 820px) { .hero-emblem { width: 140px; } }

/* Covers are links: no underline on cover text */
a .cover, a .cover * { text-decoration: none; }

/* Image covers (flat or 3D mockups with a transparent background) */
.cover.has-img { background: none; overflow: visible; border-radius: 0; box-shadow: none !important; }
.cover.has-img img { object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 8px 12px rgba(0,0,0,.28)); }
.hero .cover.has-img img { filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); }

.desc-head { font-family: var(--serif); font-size: 1.05rem; color: var(--brand); }

/* Header: language switch */
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  min-height: 44px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55);
  font: 600 .9rem/1 var(--sans);
}
.lang-btn:hover { background: rgba(255,255,255,.12); }
@media (max-width: 400px) { .top .top-link { display: none; } }

/* How buying works */
.how { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.how-title { font-size: 1.25rem; margin-bottom: 14px; }
.how-steps { counter-reset: h; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how-steps li { counter-increment: h; position: relative; padding-left: 44px; min-height: 32px; }
.how-steps li::before {
  content: counter(h); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-fill); color: var(--gold); display: grid; place-items: center; font-weight: 700;
}
.how-note { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }
.how-book { margin-top: 32px; max-width: 38rem; }
@media (min-width: 820px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }
.how-book .how-steps { grid-template-columns: 1fr; }

/* Payment methods under the Buy button */
.pay-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: .92rem; color: var(--muted); }
.pay-chip { background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: .85rem; }

/* Reader reviews */
.quotes { margin-top: 32px; max-width: 38rem; }
.quotes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.quotes li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.quotes blockquote { margin: 6px 0 8px; font-size: 1rem; }
.q-stars { color: #876106; letter-spacing: 2px; }
.q-stars-off { color: #CBD2DD; }
.q-who { margin: 0; font-size: .9rem; color: var(--muted); }
.q-verified { color: #1D7A46; font-weight: 600; }

/* Inside Facebook's / TikTok's browser */
.iab-note { margin: 12px 0 0; font-size: .92rem; max-width: 30rem; background: #FFF7DD; border: 1px solid #EBCB6B; border-radius: 8px; padding: 10px 12px; }
.iab-link { font-weight: 600; color: var(--brand-deep); }

/* ===== Ad landing page (/offer) ===== */
.offer-hero {
  background: radial-gradient(120% 90% at 80% 10%, #0A3C85 0%, var(--brand-fill) 55%, #001F4A 100%);
  color: #fff; padding: 22px 0 28px; position: relative;
}
.offer-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold) 0 30%, transparent 30%); }
.offer-hero-grid { display: grid; gap: 16px; }
.offer-kicker { color: var(--gold); font-size: .95rem; font-weight: 600; margin: 0 0 6px; }
.offer-hero h1 { font-size: clamp(1.55rem, 6.4vw, 2.6rem); line-height: 1.3; margin: 0 0 12px; }
.offer-proof { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0; color: #E3EAF6; font-size: .95rem; }
.offer-proof .muted { color: #C2CEE3; }
.offer-stars .q-stars { color: var(--gold); }
.offer-stars .q-stars-off { color: rgba(255,255,255,.3); }
.offer-cover { justify-self: center; width: 190px; }
.offer-cover .cover.has-img img { filter: drop-shadow(0 16px 24px rgba(0,0,0,.5)); }
.offer-price { font: 700 1.9rem/1.1 var(--sans); margin: 0 0 10px; }
.offer-format { font-size: 1rem; font-weight: 400; color: #C2CEE3; }
.btn-xl { width: 100%; min-height: 58px; font-size: 1.15rem; box-shadow: 0 8px 20px rgba(252, 185, 23,.25); }
.offer-hero .pay-methods { color: #C2CEE3; }
.offer-hero .pay-chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.offer-trust { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; color: #E3EAF6; }
.offer-trust li { display: flex; gap: 8px; align-items: center; }
.offer-trust svg, .offer-list svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.offer-hero .iab-note { color: var(--ink); }

.offer-sec { padding-top: 36px; }
.offer-sec h2 { margin-bottom: 14px; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 40rem; }
.offer-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.offer-list li svg { margin-top: 3px; color: var(--brand); background: #FFF1CC; border-radius: 50%; padding: 3px; width: 26px; height: 26px; }
.offer-who li { background: transparent; border-style: dashed; }
.offer .quotes { margin-top: 36px; }
.offer .sample { margin-top: 28px; }

.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; max-width: 40rem; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 16px; min-height: 52px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

.offer-final { background: var(--brand-fill); color: #fff; margin-top: 40px; padding: 32px 0; text-align: center; }
.offer-final h2 { margin-bottom: 4px; }
.offer-final-title { color: #C2CEE3; margin-bottom: 16px; }
.offer-final .btn-xl { max-width: 26rem; }
.offer-final .offer-trust { justify-content: center; max-width: 26rem; margin-left: auto; margin-right: auto; text-align: left; }
.offer-others { text-align: center; padding: 18px 16px 0; }
.foot-slim { margin-top: 24px; }

@media (min-width: 820px) {
  .offer-hero { padding: 48px 0 52px; }
  .offer-hero-grid { grid-template-columns: 1.2fr 1fr; grid-template-areas: "copy cover" "cta cover"; column-gap: 48px; align-items: start; }
  .offer-copy { grid-area: copy; }
  .offer-cta { grid-area: cta; max-width: 28rem; }
  .offer-cover { grid-area: cover; width: 300px; align-self: center; }
  .offer-trust { grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 18px; }
}
.offer-others a { display: inline-block; padding: 12px 8px; }
.faq p a { display: inline-block; padding: 10px 0; font-weight: 600; }

/* Discounts */
.was { color: var(--muted); font-weight: 400; font-size: .85em; margin-right: 2px; }
.on-dark .was, .offer-hero .was, .buybar .was { color: #C2CEE3; }
.sale-badge { display: inline-block; vertical-align: middle; background: #B42318; color: #fff; font: 700 .75rem/1 var(--sans); padding: 4px 8px; border-radius: 999px; letter-spacing: .02em; }
.sale-note { display: block; font: 600 .95rem/1.4 var(--sans); color: #B42318; margin-top: 6px; }
.offer-hero .sale-note { color: #FFD27A; }
.buybar-price .sale-badge { display: none; }

/* Landing page: editable parts */
.offer-badge { display: inline-block; background: var(--gold); color: var(--ink); font: 700 .8rem/1 var(--sans); padding: 6px 12px; border-radius: 999px; margin: 0 0 10px; }
.offer-sub { color: #D5DFF0; font-size: 1.05rem; margin: -4px 0 12px; max-width: 34rem; }
.btn-cta { background: var(--cta, var(--gold)); color: var(--cta-ink, var(--ink)); }
.btn-cta:hover { background: var(--cta, var(--gold-hover)); color: var(--cta-ink, var(--ink)); filter: brightness(1.06); }
.offer-bar .btn-buy { background: var(--cta, var(--gold)); color: var(--cta-ink, var(--ink)); }
.countdown { margin: 0 0 10px; font-weight: 600; color: #FFD27A; }
.countdown .cd { font-variant-numeric: tabular-nums; background: rgba(255,255,255,.1); border-radius: 6px; padding: 2px 8px; margin-left: 4px; }
.video { position: relative; display: block; width: 100%; max-width: 40rem; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .play svg { width: 68px; height: 48px; }
.video-frame { width: 100%; max-width: 40rem; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }
.guarantee { display: flex; gap: 14px; align-items: flex-start; background: #EEF6F0; border: 1px solid #BFDCC9; border-radius: var(--radius); padding: 16px; max-width: 40rem; }
.guarantee h2 { font-size: 1.15rem; margin: 0 0 4px; }
.guarantee p { margin: 0; color: var(--muted); }
.shield { font-size: 1.6rem; line-height: 1; }
@media (max-width: 480px) {
  .offer-cover { width: 150px; }
  .offer-hero { padding-top: 16px; }
  .offer-hero h1 { margin-bottom: 8px; }
}
@media (max-width: 400px) and (max-height: 820px) { .offer-cover { width: 124px; } }

/* ===== Landing page v2 (light, Bright-Ideas style, navy + gold) ===== */
.page-offer { --sky: #EAF2FF; --bright: #0B5ED7; background: #F7FAFF; }
.page-offer header.top { position: sticky; top: 0; z-index: 25; }
.page-offer .top-link { display: none; }
.lp-head-buy { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none;
  background: linear-gradient(180deg, #FFD15C, #F5A524); color: var(--ink); box-shadow: 0 4px 14px rgba(245,165,36,.35); }
.lp-head-buy:hover { color: var(--ink); filter: brightness(1.05); }
.lp-topbar { background: var(--gold); color: var(--ink); }
.lp-topbar-in { display: flex; align-items: center; justify-content: center; gap: 8px 14px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; text-align: center; font-weight: 700; font-size: .92rem; }
.lp-topbar-cd { font-variant-numeric: tabular-nums; }
.lp-topbar-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 999px; background: var(--brand-deep); color: #fff; text-decoration: none; font-size: .85rem; }
.lp-topbar-btn:hover { color: var(--gold); }

.lp-hero { background: radial-gradient(90% 60% at 85% 0%, #D6E6FF 0%, transparent 60%), linear-gradient(180deg, var(--sky), #F7FAFF 85%); padding: 26px 0 30px; }
.lp-hero-grid { display: grid; gap: 18px; }
.lp-pill { display: inline-block; background: var(--bright); color: #fff; font: 700 .85rem/1 var(--sans); padding: 8px 14px; border-radius: 999px; margin: 0 0 12px; box-shadow: 0 6px 16px rgba(11,94,215,.25); }
.lp-kicker { color: var(--bright); font: 700 .8rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.lp-hero h1 { color: var(--brand); font-size: clamp(1.9rem, 8vw, 3.1rem); line-height: 1.2; margin: 0 0 12px; font-weight: 700; }
.lp-accent { display: block; color: var(--bright); }
.lp-sub { color: #33425E; font-size: 1.08rem; max-width: 36rem; margin: 0 0 14px; }
.lp-hero .offer-proof { color: #8A5A00; font-weight: 600; margin-bottom: 14px; }
.lp-hero .offer-proof .muted { color: #8A5A00; }
.lp-hero .offer-stars .q-stars { color: #E39A00; }
.lp-hero .offer-stars .q-stars-off { color: #E7D4A6; }
.lp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chips li { border: 1.5px solid #9DBAF0; color: var(--brand); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; }
.lp-price { font: 800 3rem/1 var(--sans); color: var(--brand); margin: 6px 0 14px; letter-spacing: -.01em; }
.lp-price .was { font-size: .45em; }
.lp-price .now { color: var(--brand); }
.lp-price .sale-note { font-size: .32em; }
.page-offer .btn-cta { background: var(--cta, linear-gradient(180deg, #FFD15C, #F5A524)); color: var(--cta-ink, var(--ink)); box-shadow: 0 10px 26px rgba(245,165,36,.4); gap: 10px; }
.page-offer .btn-cta .arr { width: 22px; height: 22px; transition: transform .2s; }
.page-offer .btn-cta:hover .arr { transform: translateX(3px); }
.lp-cta .pay-methods { color: var(--muted); }
.lp-cta .offer-trust { color: #33425E; }
.lp-cta .offer-trust svg { color: var(--bright); }
.lp-cta .iab-note { color: var(--ink); }
.lp-cover { justify-self: center; width: 240px; }
.lp-cover .cover.has-img img { filter: drop-shadow(0 24px 30px rgba(0, 34, 80,.35)); }

.cd-wrap { margin: 0 0 14px; }
.cd-label { margin: 0 0 6px; font-weight: 700; color: #B42318; font-size: .9rem; }
.cd-boxes { display: inline-flex; gap: 8px; }
.cd-box { display: grid; place-items: center; min-width: 58px; padding: 8px 6px; border-radius: 12px; background: var(--brand-deep); color: #fff; }
.cd-box b { font: 800 1.45rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.cd-box small { font-size: .8rem; color: #C2CEE3; margin-top: 3px; }

.lp-marquee { background: var(--brand-fill); color: #fff; overflow: hidden; white-space: nowrap; border-top: 3px solid var(--gold); }
.lp-marquee-track { display: inline-flex; align-items: center; gap: 18px; padding: 12px 0; animation: lp-scroll 40s linear infinite; font-weight: 600; }
.lp-marquee i { color: var(--gold); font-style: normal; font-size: .7rem; }
@keyframes lp-scroll { to { transform: translateX(-50%); } }

.lp-stats { padding: 22px 0 0; }
.lp-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .lp-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.lp-stat { background: #fff; border: 1px solid #DCE6F5; border-radius: 16px; padding: 16px; text-align: center; box-shadow: 0 4px 14px rgba(0, 34, 80,.06); }
.lp-stat b { display: block; font: 800 2rem/1.1 var(--sans); color: var(--bright); }
.lp-stat span { font-size: .9rem; color: #33425E; font-weight: 600; }

.lp-center { text-align: center; }
.page-offer .offer-sec h2 { color: var(--brand); font-size: clamp(1.45rem, 5.6vw, 2rem); }
.lp-lead { color: #33425E; max-width: 38rem; margin: 0 auto 18px; }
.lp-qgrid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 46rem; text-align: center; }
.lp-qgrid li { background: #fff; border: 1px solid #DCE6F5; border-radius: 16px; padding: 18px 12px; font-weight: 700; color: var(--brand); display: grid; gap: 8px; place-items: center; box-shadow: 0 4px 14px rgba(0, 34, 80,.05); }
.lp-qgrid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lp-ico { font-size: 1.7rem; line-height: 1; }
.lp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .lp-cards { grid-template-columns: 1fr 1fr; } }
.lp-card { position: relative; background: #fff; border: 1px solid #DCE6F5; border-radius: 16px; padding: 18px 18px 16px; box-shadow: 0 4px 14px rgba(0, 34, 80,.05); overflow: hidden; }
.lp-card h3 { color: var(--brand); font-size: 1.1rem; margin: 0 0 6px; padding-right: 48px; }
.lp-card p { margin: 0; color: #33425E; }
.lp-n { position: absolute; top: 8px; right: 12px; font: 800 2.4rem/1 var(--sans); color: #E3ECFA; }
.lp-card-solo { display: flex; gap: 10px; align-items: flex-start; padding-right: 40px; }
.lp-card-solo svg { width: 22px; height: 22px; flex: none; color: var(--bright); margin-top: 2px; }
.lp-who { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .lp-who { grid-template-columns: repeat(3, 1fr); } }
.lp-who li { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #DCE6F5; border-radius: 14px; padding: 14px 16px; font-weight: 600; color: var(--brand); }
.page-offer .how { border-color: #DCE6F5; border-radius: 16px; }
.page-offer .faq { border-color: #DCE6F5; border-radius: 14px; }
.lp-final { background: radial-gradient(80% 80% at 50% 0%, #0A3C85, var(--brand-deep)); color: #fff; border-radius: 22px; padding: 30px 20px; text-align: center; }
.lp-final h2 { color: #fff !important; margin-bottom: 4px; }
.lp-final-title { color: #C2CEE3; margin-bottom: 8px; }
.lp-price-final { color: #fff; font-size: 2.4rem; }
.lp-price-final .now { color: #fff; }
.lp-final .cd-label { color: #FFD27A; }
.lp-final .cd-box { background: rgba(255,255,255,.1); }
.lp-final .btn-xl { max-width: 26rem; }
.lp-final .offer-trust { justify-content: center; max-width: 26rem; margin: 14px auto 0; text-align: left; color: #E3EAF6; }
.lp-final .offer-trust svg { color: var(--gold); }
.lp-note { font-size: .85rem; color: var(--muted); margin-top: 18px; }

/* reveal on scroll (only with JS + no "reduce motion") */
.js-reveal .rv { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js-reveal .rv.rv-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .lp-marquee-track { animation: none; } }

@media (min-width: 860px) {
  .lp-hero { padding: 54px 0 60px; }
  .lp-hero-grid { grid-template-columns: 1.25fr .9fr; grid-template-areas: "copy cover" "cta cover"; column-gap: 56px; align-items: start; }
  .lp-copy { grid-area: copy; } .lp-cta { grid-area: cta; max-width: 30rem; } .lp-cover { grid-area: cover; width: 330px; align-self: center; }
  .lp-cta .offer-trust { grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 18px; }
}
@media (max-width: 400px) { .lp-price { font-size: 2.6rem; } .cd-box { min-width: 52px; } }
/* landing v2: phone fit */
.lp-head-buy { white-space: nowrap; }
.lp-cta .cd-wrap { margin: 14px 0 4px; }
@media (max-width: 520px) {
  .page-offer .logo span { display: none; }
  .lp-topbar-btn { display: none; }
  .lp-topbar-in { font-size: .85rem; padding-top: 7px; padding-bottom: 7px; }
  .lp-chips li { font-size: .82rem; padding: 5px 11px; }
  .lp-hero { padding-top: 18px; }
  .lp-pill { margin-bottom: 10px; }
  .lp-hero .offer-proof { margin-bottom: 10px; }
}
.lp-n::before { content: attr(data-n); }

/* ===== Landing page v3: Ye-Buna product-page style (mobile first) ===== */
.page-offer { background: #FFFFFF; }
.yb-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; pointer-events: none; }
.yb-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .1s linear; }
.yb-hero { background: linear-gradient(180deg, #FBF7EE 0%, #FFFFFF 70%); padding: 14px 0 26px; }
.yb-hero-grid { display: grid; gap: 16px; }
.yb-seller { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.yb-share { flex: none; min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 .85rem var(--sans); color: var(--ink); cursor: pointer; }
.yb-tag { display: inline-block; background: #fff; border: 1px solid #E7D6B0; color: #7A4E00; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .85rem; margin: 0 0 12px; }
.yb-hero h1 { color: var(--ink); font-size: clamp(1.75rem, 7.4vw, 2.8rem); line-height: 1.25; margin: 0 0 10px; }
.yb-hero .lp-accent { color: var(--bright, #0B5ED7); }
.yb-sub { color: #3B475E; font-size: 1.02rem; margin: 0 0 12px; max-width: 36rem; }
.yb-hero .offer-proof { color: var(--ink); font-size: .95rem; margin: 0 0 12px; }
.yb-hero .offer-proof .muted { color: var(--muted); }
.yb-hero .offer-stars .q-stars { color: #D98E04; }
.yb-hero .offer-stars .q-stars-off { color: #E7DCC3; }
.yb-gets { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.yb-gets li, .yb-list li { display: flex; gap: 10px; align-items: flex-start; }
.yb-gets svg, .yb-list svg { width: 20px; height: 20px; flex: none; color: #1D7A46; margin-top: 3px; }
.yb-coverbox { position: relative; background: #fff; border: 1px solid #EFE6D2; border-radius: 18px; padding: 34px 16px 18px; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(15,27,51,.06); }
.yb-coverbox .lp-cover { width: 210px; }
.yb-chip-l, .yb-chip-r { position: absolute; top: 10px; font: 700 .75rem/1 var(--sans); padding: 6px 10px; border-radius: 999px; }
.yb-chip-l { left: 10px; background: #F3F5F9; color: var(--muted); }
.yb-chip-r { right: 10px; background: #B42318; color: #fff; }
.yb-buy { background: #fff; border: 1px solid #EFE6D2; border-radius: 18px; padding: 16px; box-shadow: 0 10px 30px rgba(15,27,51,.06); }
.yb-receipt { display: grid; gap: 0; margin-bottom: 14px; font-size: .95rem; }
.yb-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #E8E2D3; }
.yb-row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3B475E; }
.yb-row span:last-child { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.yb-minus span:last-child { color: #B42318; }
.yb-free { color: #1D7A46; }
.yb-total { border-bottom: 0; padding-top: 10px; font-size: 1.15rem; }
.yb-total span { color: var(--ink) !important; font-weight: 800 !important; }
.yb-under { text-align: center; font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.yb-buy .cd-wrap { text-align: center; margin: 14px 0 0; background: #FFF4F2; border-radius: 12px; padding: 10px; }
.yb-buy .cd-box { min-width: 54px; }
.yb-trust { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yb-trust li { display: flex; gap: 8px; align-items: center; background: #FAFAF7; border: 1px solid #EFE9DA; border-radius: 12px; padding: 10px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.yb-trust b { font-size: 1.05rem; }
.yb-buy .pay-methods { justify-content: center; }
.yb-eyebrow { display: flex; align-items: center; gap: 10px; color: #8A5A00; font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.yb-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); }
.page-offer .offer-sec h2 { color: var(--ink); }
.yb-card { background: #fff; border: 1px solid #EFE6D2; border-radius: 18px; overflow: hidden; max-width: 40rem; }
.yb-list { list-style: none; margin: 0; padding: 16px; display: grid; gap: 12px; }
.yb-list strong { color: var(--brand); }
.yb-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #FBF7EE; padding: 14px 16px; color: #5B4A26; font-size: .92rem; }
.yb-card-foot b { font-size: 1.2rem; color: var(--ink); white-space: nowrap; }
.page-offer .lp-who li, .page-offer .how, .page-offer .faq, .page-offer .quotes li { border-color: #EFE6D2; }
.yb-rating { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid #EFE6D2; border-radius: 18px; padding: 16px; max-width: 40rem; margin-bottom: 12px; }
.yb-rating-big { display: grid; justify-items: center; gap: 2px; min-width: 96px; }
.yb-rating-big b { font: 800 2.6rem/1 var(--sans); color: var(--ink); }
.yb-rating-big .q-stars { color: #D98E04; font-size: 1rem; }
.yb-rating-big small { color: var(--muted); font-size: .8rem; text-align: center; }
.yb-split { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .85rem; }
.yb-split li { display: grid; grid-template-columns: 14px 1fr 34px; gap: 8px; align-items: center; }
.yb-split li span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.yb-bar { height: 8px; background: #F1ECE0; border-radius: 999px; overflow: hidden; }
.yb-bar span { display: block; height: 100%; background: #D98E04; border-radius: 999px; }
.page-offer .quotes { margin-top: 0; }
.yb-faq .faq { counter-increment: faq; }
.yb-faq { counter-reset: faq; }
.yb-faq .faq summary::before { content: counter(faq) "."; color: #8A5A00; font-weight: 800; margin-right: 6px; }
.yb-faq .faq summary { justify-content: flex-start; }
.yb-faq .faq summary::after { margin-left: auto; }
.yb-final { background: #FBF7EE; border: 1px solid #EFE6D2; border-radius: 22px; padding: 26px 18px; text-align: center; }
.yb-final h2 { margin: 0 0 4px; }
.yb-final-sub { color: #5B4A26; margin: 0 0 14px; }
.yb-final .cd-wrap { margin: 0 0 14px; }
.yb-final-price { font: 800 2.2rem/1.1 var(--sans); color: var(--ink); margin: 4px 0 2px; }
.yb-final-price .was { font-size: .5em; }
.yb-final-title { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.yb-final .btn-xl { max-width: 26rem; }
.yb-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 720px) { .yb-more { grid-template-columns: repeat(3, 1fr); max-width: 46rem; } }
.yb-more a { position: relative; display: grid; gap: 8px; background: #fff; border: 1px solid #EFE6D2; border-radius: 16px; padding: 30px 12px 12px; text-decoration: none; color: var(--ink); height: 100%; }
.yb-more-cover { display: block; width: 70%; margin: 0 auto; }
.yb-more-title { font-weight: 700; font-size: .92rem; line-height: 1.35; }
.yb-more-price { font-weight: 800; color: var(--ink); }
.yb-more-price .sale-badge { display: none; }
.yb-h2-small { font-size: 1.2rem; margin-top: 18px; }
.offer-bar { gap: 10px; }
.yb-thumb { flex: none; width: 34px; }
.yb-thumb .cover { box-shadow: none; }
.offer-bar .buybar-info { flex: 1; }
@media (min-width: 860px) {
  .yb-hero { padding: 30px 0 50px; }
  .yb-hero-grid { grid-template-columns: 1.15fr .85fr; grid-template-areas: "copy cover" "copy buy"; column-gap: 40px; row-gap: 18px; align-items: start; }
  .yb-copy { grid-area: copy; } .yb-coverbox { grid-area: cover; } .yb-buy { grid-area: buy; }
  .yb-coverbox .lp-cover { width: 240px; }
}
@media (max-width: 400px) { .yb-trust li { font-size: .8rem; padding: 9px 8px; } .yb-buy { padding: 14px 12px; } }

/* bug fix: big faded numbers no longer cover card text */
.lp-card-solo { padding-right: 58px; }
/* bug fix: hero grid never wider than the screen; darker stars for contrast */
.yb-hero-grid { grid-template-columns: minmax(0, 1fr); }
.yb-hero-grid > * { min-width: 0; }
@media (min-width: 860px) { .yb-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.yb-hero .offer-stars .q-stars, .yb-rating-big .q-stars, .page-offer .q-stars { color: #8F5A00; }
.yb-bar span { background: #B47A00; }
.yb-receipt { display: block; } .yb-row > span:first-child { flex: 1 1 auto; }
/* Phones: the bottom bar is the one sticky Buy button, so the header copy is hidden
   (two identical buttons on the first screen compete with each other). */
@media (max-width: 899px) { .lp-head-buy { display: none; } }


/* Landing page: one font family only (like the Ye-Buna product page). The serif
   Amharic font is about 210 KB; ad visitors on mobile data no longer download it. */
.page-offer { --serif: var(--sans); }
.page-offer h1, .page-offer h2, .page-offer h3 { font-weight: 600; letter-spacing: -.005em; }
/* Computers: text and price card on the left, cover on the right staying in view
   (the text column used to sit beside both, leaving a big empty gap under it). */
@media (min-width: 860px) {
  .yb-hero-grid { grid-template-areas: "copy cover" "buy cover"; grid-template-rows: auto 1fr; }
  .yb-buy { max-width: 36rem; }
  .yb-coverbox { position: sticky; top: 84px; }
  .yb-coverbox .lp-cover { width: 280px; }
}

/* Layout shift fix (CLS): the server's plain version of a book / ad page fills the
   first screen, so the footer and "How buying works" start below it and do not jump
   when the full page replaces it. Measured CLS was 0.39 (book) and 0.47–0.96 (ad). */
.plain-book { min-height: 100vh; min-height: 100svh; }
/* Thank-you page: the main area fills the first screen so the footer does not show
   first and then jump down when "You may also like" appears (CLS was 0.23 on computers). */
main.thanks { min-height: 100vh; min-height: 100svh; }

/* ===== Landing page: frosted glass on the floating layers only =====
   Header, bottom Buy bar and the Share button. Content cards stay solid so
   prices and Amharic text keep full contrast. 75% solid navy keeps the text
   readable even where the blur is not supported or is turned off. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .page-offer header.top,
  .page-offer .buybar {
    background: rgba(0, 26, 66, .78);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
  }
  .page-offer header.top { border-bottom: 1px solid rgba(255, 255, 255, .10); box-shadow: 0 6px 24px rgba(0, 26, 66, .18); }
  .page-offer .buybar {
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    border-radius: 20px; padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 10px 30px rgba(0, 26, 66, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  }
  .page-offer .lang-btn {
    background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
  }
  .page-offer .yb-share {
    background: rgba(255, 255, 255, .55); border-color: rgba(0, 34, 80, .14);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 8px rgba(0, 34, 80, .08);
  }
  @media (max-width: 899px) { .page-offer.has-buybar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
}
/* People who turned on "reduce transparency" get the solid bars. */
@media (prefers-reduced-transparency: reduce) {
  .page-offer header.top, .page-offer .buybar { background: var(--brand-deep); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Thank-you page: the PDF download for books we deliver ourselves */
.dl-box { margin: 18px 0 22px; padding: 18px; border-radius: 16px; background: #FFF8E6; border: 1px solid #F3D99A; text-align: center; }
.dl-title { margin: 0 0 12px; font-size: 1.25rem; }
.dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 26rem; min-height: 56px; font-size: 1.1rem; }
.dl-meta { margin: 10px 0 0; font-size: .92rem; }
.dl-box .iab-note { margin: 10px 0 0; }

/* =====================================================================
   Shop pages (home + book): the Arif store layout in BussinesWorld's
   navy and gold. Cream paper, light header, search, chips, featured
   slider, list cards, bottom tab bar on phones, and a dark mode.
   ===================================================================== */
.page-shop {
  --bg: #FBF8F2; --card: #FFFFFF; --sunken: #F3EEE4; --chip: #EFE9DD;
  --ink: #0F1B33; --muted: #4A5468; --line: #E6DFD1; --title: #002250;
  --star: #FCB917; --star-edge: #B47A00; --star-off: #DCD4C4; --ok: #1D7A46;
  --tint: #FFF6DE; --tint-line: #F1D9A0; --avatar: #FFEFC7; --avatar-ink: #7A4B00;
  --serif: var(--sans);
  background: var(--bg); color: var(--ink);
}
:root[data-theme="dark"] .page-shop {
  --bg: #0B1426; --card: #121F37; --sunken: #0F1A30; --chip: #1B2A47;
  --ink: #EEF2F8; --muted: #B4BFD3; --line: #263858; --title: #FCB917;
  --brand: #A9C7F7; --brand-soft: #1B2A47; --star-off: #3A4A68; --ok: #5ED39A;
  --tint: #16233D; --tint-line: #2C3F63; --avatar: #26375A; --avatar-ink: #FCB917;
  --focus: #FCB917;
  color-scheme: dark;
}
.page-shop h1, .page-shop h2, .page-shop h3 { font-weight: 700; letter-spacing: -.01em; }
.page-shop .muted { color: var(--muted); }

/* header */
.page-shop .top.shop-top { position: sticky; top: 0; z-index: 30; color: var(--ink); background: rgba(251, 248, 242, .9); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .page-shop .top.shop-top { background: rgba(11, 20, 38, .88); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .page-shop .top.shop-top { -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); background: rgba(251, 248, 242, .78); }
  :root[data-theme="dark"] .page-shop .top.shop-top { background: rgba(11, 20, 38, .76); }
}
.page-shop .shop-top .wrap { min-height: 64px; }
.page-shop .shop-top .logo { color: var(--ink); font: 700 1.02rem/1.2 var(--sans); }
.page-shop .shop-top .logo-img { width: 44px; }
.page-shop .shop-top .top-actions { display: flex; align-items: center; gap: 8px; }
.page-shop .top :focus-visible { outline-color: var(--focus); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--muted); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.page-shop .shop-top .lang-btn { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 .9rem var(--sans); }
.page-shop .shop-top .lang-btn:hover { background: var(--sunken); }
.shop-menu { border-top: 1px solid var(--line); background: var(--card); box-shadow: 0 16px 30px rgba(15, 27, 51, .12); }
.shop-menu .wrap { display: grid; padding-top: 6px; padding-bottom: 10px; }
.shop-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.shop-menu a:last-child { border-bottom: 0; }
.page-shop .shop-top .lang-btn { min-width: 44px; padding: 0 10px; }
@media (max-width: 400px) { .page-shop .top .logo span { display: inline; } .page-shop .shop-top .logo { font-size: .95rem; gap: 8px; } }
@media (max-width: 339px) { .page-shop .shop-top .logo span { display: none; } }

/* home: title, search, chips */
.shop-hero { padding: 26px 0 6px; }
.shop-hero h1 { color: var(--title); font-size: clamp(2rem, 8.5vw, 2.9rem); margin: 0 0 6px; line-height: 1.2; }
.shop-sub { color: var(--muted); margin: 0 0 18px; font-size: 1rem; max-width: 40rem; }
.shop-search { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 6px 6px 6px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); box-shadow: 0 2px 10px rgba(15, 27, 51, .04); }
.shop-search:focus-within { border-color: var(--title); box-shadow: 0 0 0 3px rgba(0, 34, 80, .15); }
.shop-search svg { flex: none; }
.shop-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 1.02rem var(--sans); padding: 8px 0; }
.shop-search input:focus { outline: none; }
.shop-search input::placeholder { color: var(--muted); opacity: 1; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 .95rem var(--sans); cursor: pointer; flex: none; }
.chips, .sort-panel { display: flex; gap: 8px; margin-top: 14px; }
.chips { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.sort-panel { flex-wrap: wrap; align-items: center; }
.sort-label { color: var(--muted); font-size: .92rem; margin-right: 4px; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--chip); color: var(--ink); font: 600 .95rem var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .page-shop .chip[aria-pressed="true"] { background: var(--gold); color: #0F1B33; }

/* section heads + featured slider */
.page-shop .section { padding: 22px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-head h2, .count-title { font-size: 1.3rem; margin: 0; }
.count-title { margin-bottom: 14px; }
.slider-nav { display: flex; gap: 8px; }
.slider { list-style: none; margin: 0 -16px; padding: 4px 16px 16px; display: grid; grid-auto-flow: column; grid-auto-columns: min(76vw, 290px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.sc-slide, .sc-row { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 18px rgba(15, 27, 51, .06); }
.sc-slide { scroll-snap-align: start; display: flex; flex-direction: column; }
.sc-cover { display: flex; align-items: flex-end; justify-content: center; background: var(--sunken); text-decoration: none; }
.sc-slide .sc-cover { padding: 18px 22px 14px; }
.sc-slide .cover { max-width: 180px; }
.sc-info { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sc-info h3 { font-size: 1.06rem; line-height: 1.35; margin: 0 0 4px; }
.sc-info h3 a { color: var(--ink); text-decoration: none; }
.sc-info h3 a:hover { text-decoration: underline; }
.sc-desc { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-rate { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-size: .88rem; }
.sc-stars { display: inline-flex; gap: 1px; }
.sc-stars .on svg { fill: var(--star); stroke: var(--star-edge); stroke-width: .8; }
.sc-stars .off svg { fill: var(--star-off); }
.sc-n { color: var(--muted); }
.sc-buyers { color: var(--muted); font-size: .86rem; margin: 0 0 10px; }
.sc-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sc-price { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.3rem; min-width: 0; }
.sc-price .was { font-size: .85rem; font-weight: 400; color: var(--muted); }
.sc-price .sale-badge { display: none; }
.btn.sc-buy { min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: .95rem; flex: none; }

/* home: list of books */
.shop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sc-row { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
.sc-row .sc-cover { padding: 14px 10px 10px; }
.sc-row .cover { max-width: 128px; }
.sc-empty { background: var(--card); border: 1px dashed var(--line); border-radius: 18px; padding: 22px; text-align: center; color: var(--muted); }
@media (min-width: 760px) { .shop-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .shop-list { grid-template-columns: 1fr 1fr 1fr; } }

/* bottom tab bar (phones) */
.tabbar { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); min-height: 66px; padding: 6px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 10px 30px rgba(15, 27, 51, .14); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tabbar { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); }
  :root[data-theme="dark"] .tabbar { background: rgba(18, 31, 55, .86); }
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 16px; color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 600; }
.tabbar a[aria-current="page"] { color: var(--title); background: var(--sunken); }
.page-shop.has-tabbar { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.page-shop.has-tabbar .foot { margin-bottom: 0; }
@media (min-width: 900px) { .tabbar { display: none; } .page-shop.has-tabbar { padding-bottom: 0; } }

/* book page */
.bk-main { padding-top: 14px; }
.page-shop .crumbs { margin: 0 0 14px; }
.back-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.bk-top { display: grid; gap: 18px; text-align: center; }
.bk-coverbox { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px 24px 18px; box-shadow: 0 10px 30px rgba(15, 27, 51, .08); }
.bk-coverbox .cover { max-width: 230px; margin: 0 auto; }
.bk-head h1 { font-size: clamp(1.6rem, 6.5vw, 2.3rem); margin: 0 0 4px; }
.bk-by { color: var(--muted); margin: 0 0 6px; }
.bk-top .meta { justify-content: center; }
.bk-proof { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0 0 10px; }
.bk-sold { display: inline-flex; align-items: center; gap: 6px; }
.bk-proof .dot { color: var(--muted); }
.bk-pitch { color: var(--muted); max-width: 34rem; margin: 0 auto 10px; }
.bk-top .big-price { justify-content: center; }
.btn.bk-buy { width: 100%; max-width: 28rem; }
.bk-top .pay-methods, .bk-top .pay-note { justify-content: center; }
.bk-top .pay-note { text-align: left; max-width: 28rem; margin-left: auto; margin-right: auto; }
@media (min-width: 860px) {
  .bk-top { grid-template-columns: 340px minmax(0, 1fr); gap: 36px; text-align: left; align-items: start; }
  .bk-coverbox { position: sticky; top: 84px; }
  .bk-top .meta, .bk-proof, .bk-top .big-price, .bk-top .pay-methods { justify-content: flex-start; }
  .bk-pitch, .bk-top .pay-note { margin-left: 0; }
}
.bk-sec { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-top: 18px; max-width: 46rem; }
.bk-eyebrow { color: var(--muted); font-size: .92rem !important; font-weight: 600; margin: 18px 0 8px; letter-spacing: .02em; }
.bk-about .bk-eyebrow:first-child { margin-top: 0; }
.bk-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bk-checks li { display: flex; gap: 10px; align-items: flex-start; }
.bk-checks svg { flex: none; color: var(--ok); margin-top: 3px; }
.bk-rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bk-rv-head h2 { margin: 0; font-size: 1.3rem; }
.bk-rv-score { display: grid; justify-items: end; line-height: 1.2; }
.bk-rv-score b { font-size: 1.6rem; }
.bk-rv-score small { color: var(--muted); }
.bk-buyers-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--tint); border: 1px solid var(--tint-line); font-weight: 600; font-size: .92rem; margin: 0 0 14px; }
.bk-rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bk-rv { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--bg); }
.bk-rv-who { display: flex; align-items: center; gap: 12px; }
.bk-avatar { width: 44px; height: 44px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--avatar); color: var(--avatar-ink); font-weight: 700; }
.bk-rv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; }
.bk-rv blockquote { margin: 10px 0 0; }
.bk-final { text-align: center; background: var(--tint); border-color: var(--tint-line); }
.bk-final h2 { font-size: 1.35rem; margin: 0 0 6px; }
.bk-final p { color: var(--muted); }
.bk-final .btn { width: 100%; max-width: 28rem; }
.bk-ask { display: block; width: fit-content; margin: 22px auto 0; padding: 10px 4px; color: var(--muted); }
.page-shop .how-book { max-width: 46rem; }
.page-shop .how { border-radius: 20px; }

/* dark mode: things that were drawn for a light page */
:root[data-theme="dark"] .page-shop .btn-line:hover { color: var(--bg); }
:root[data-theme="dark"] .page-shop .btn-buy { color: #0F1B33; }
:root[data-theme="dark"] .page-shop .was { color: var(--muted); }
/* shop pages: tap targets at least 44 px (Apple HIG) and dark-mode text contrast */
.page-shop .chip { min-height: 44px; }
.shop-search input { min-height: 44px; }
.page-shop .foot li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
:root[data-theme="dark"] .page-shop .skip { background: var(--gold); color: #0F1B33; }
:root[data-theme="dark"] .page-shop .sale-note { color: #FFB4A8; }
:root[data-theme="dark"] .page-shop .q-verified { color: #5ED39A; }
/* home: the featured slider keeps its space while the books load (no jump) */
.slider:empty { min-height: 500px; }
.slider:empty::before { content: ""; width: min(76vw, 290px); border-radius: 18px; background: var(--sunken); }
.sc-info h3 a { display: block; padding: 3px 0; }
.page-shop .crumbs .back-pill { padding: 0 18px; }

/* =====================================================================
   Ad page v4: the monetise.com look in BussinesWorld's colours —
   a black page, gold highlights, glowing pill buttons, numbered parts,
   real-number milestones. (Countdown only for a real discount end date.)
   ===================================================================== */
.page-offer.mz {
  /* theme (gold by default; offer.js sets them from the book's theme colour) */
  --mz-rgb: 252, 185, 23; --mz-on: #0B0D12; --mz-accent-dark: #FCB917; --mz-accent-text: var(--mz-accent-dark); --mz-amber: #8F5A00; --mz-tint: #FFF6DE; --mz-tint-line: #E9C46A; --mz-pill: #0B0D12; --mz-pill-ink: #FFFFFF;
  --mz-bg: #07090E; --mz-card: #0F131B; --mz-card2: #151A24; --mz-line: rgba(255,255,255,.09);
  --mz-text: #F3F5F8; --mz-muted: #A9B2C2; --mz-gold: #FCB917;
  background: var(--mz-bg); color: var(--mz-text);
}
.mz a { color: var(--mz-accent-text); }
.mz .muted { color: var(--mz-muted); }
.mz h2 { color: #fff; font-size: clamp(1.55rem, 6vw, 2.1rem); line-height: 1.25; margin: 0 0 18px; }
.mz :focus-visible { outline-color: var(--mz-accent-text); }
.page-offer.mz header.top { background: rgba(7, 9, 14, .82); border-bottom: 1px solid var(--mz-line); box-shadow: none; }

/* gold top bar with a dark pill */
.mz .lp-topbar, .page-offer.mz .lp-topbar { background: var(--mz-gold); color: var(--mz-on); }
.page-offer.mz .lp-topbar-in { flex-direction: column; gap: 8px; padding-top: 10px; padding-bottom: 12px; font-size: .95rem; line-height: 1.4; }
.page-offer.mz .lp-topbar-btn { width: 100%; max-width: 30rem; justify-content: center; min-height: 44px; background: var(--mz-pill); color: var(--mz-pill-ink); border-radius: 999px; font-size: .95rem; }
.page-offer.mz .lp-topbar-btn:hover { filter: brightness(1.15); }
@media (min-width: 700px) { .page-offer.mz .lp-topbar-in { flex-direction: row; } .page-offer.mz .lp-topbar-btn { width: auto; padding: 4px 22px; } }

/* hero */
.mz-hero { text-align: center; padding: 26px 0 34px; background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(var(--mz-rgb), .20), transparent 70%); }
.mz-hero-in { display: flex; flex-direction: column; align-items: center; }
.mz-cover .cover { width: 200px; margin: 0 auto 6px; }
.mz-cover .cover.has-img img { filter: drop-shadow(0 18px 30px rgba(var(--mz-rgb), .25)) drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.mz-live { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 4px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid rgba(var(--mz-rgb), .7); background: rgba(var(--mz-rgb), .08); color: var(--mz-accent-text); font-weight: 600; font-size: .95rem; box-shadow: 0 0 22px rgba(var(--mz-rgb), .22); }
.mz-dot { width: 11px; height: 11px; border-radius: 50%; background: #FF4D4F; box-shadow: 0 0 0 0 rgba(255,77,79,.6); animation: mzPulse 1.8s infinite; flex: none; }
@keyframes mzPulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,79,.55); } 70% { box-shadow: 0 0 0 10px rgba(255,77,79,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,79,0); } }
.mz-hero h1 { color: #fff; font-size: clamp(1.95rem, 8.4vw, 3.1rem); line-height: 1.2; margin: 14px auto 10px; max-width: 22ch; }
.mz-gold { color: var(--mz-accent-text); }
.mz-sub { color: var(--mz-muted); max-width: 34rem; margin: 0 auto 10px; font-size: 1.05rem; }
.mz .offer-proof { justify-content: center; color: var(--mz-text); margin: 4px 0 6px; }
.mz .q-stars, .mz .offer-stars .q-stars { color: var(--mz-accent-text); }
.mz-price { margin: 6px 0 14px; display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; }
.mz-price .now, .mz-price { font-size: 2rem; font-weight: 700; color: #fff; }
.mz-price .was { font-size: 1.05rem; font-weight: 400; color: var(--mz-muted); }
.mz-price .sale-badge { font-size: .8rem; }
.mz .btn-cta, .mz .btn-cta:hover { width: 100%; max-width: 30rem; min-height: 64px; border-radius: 999px; background: var(--mz-gold); color: #0B0D12; font-size: 1.12rem; font-weight: 700;
  box-shadow: 0 0 0 4px rgba(252, 185, 23,.16), 0 12px 44px rgba(252, 185, 23,.45); }
.mz .btn-cta:hover { filter: brightness(1.06); }
.mz .cd-wrap { margin-top: 18px; }
.mz .cd-label { color: var(--mz-text); letter-spacing: .08em; font-weight: 700; font-size: .85rem; }
.mz .cd-box { background: var(--mz-card2); border: 1px solid rgba(var(--mz-rgb), .35); }
.mz .cd-box b { color: #fff; }
.mz .cd-box small { color: var(--mz-muted); }
.mz-lines { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.mz-lines li { display: inline-flex; align-items: center; gap: 8px; color: var(--mz-text); font-weight: 600; font-size: .95rem; }
.mz-ico { width: 24px; height: 24px; flex: none; color: var(--mz-accent-text); }

/* white fact strip */
.mz-strip { background: #fff; color: #0B0D12; overflow: hidden; padding: 14px 0; font-weight: 600; }
.mz-strip-track { display: flex; gap: 22px; width: max-content; animation: mzMarquee 28s linear infinite; }
.mz-strip-track i { color: var(--mz-amber); font-style: normal; }
@keyframes mzMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mz-strip-track { animation: none; } .mz-dot { animation: none; } }

/* sections */
.mz .offer-sec { padding-top: 34px; padding-bottom: 6px; }
.mz-eyebrow { color: var(--mz-accent-text); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }
.mz-panel { background: var(--mz-card); border: 1px solid var(--mz-line); border-radius: 24px; padding: 24px 20px; margin-top: 30px; }
.mz-panel h2 { color: #fff; }
.mz .lp-lead { color: var(--mz-muted); }
.mz .lp-qgrid li, .mz .lp-who li { background: var(--mz-card2); border: 1px solid var(--mz-line); color: var(--mz-text); }

/* numbered parts (the "episode" cards) */
.mz-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.mz-part { background: linear-gradient(180deg, var(--mz-card), #0B0E14); border: 1px solid var(--mz-line); border-radius: 24px; padding: 20px; }
.mz-part-head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.mz-part-label { grid-column: 1; color: var(--mz-text); font-size: 1rem; }
.mz-part-n { grid-column: 1; font-size: 5rem; line-height: .9; font-weight: 700; color: var(--mz-accent-text); text-shadow: 0 0 30px rgba(var(--mz-rgb), .35); text-align: center; }
.mz-part h3 { grid-column: 2; grid-row: 1 / span 2; color: #fff; font-size: 1.3rem; line-height: 1.3; margin: 0; }
.mz-row { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; padding: 14px; border-radius: 16px; background: var(--mz-card2); border: 1px solid var(--mz-line); color: var(--mz-text); }
.mz-row .mz-ico { width: 28px; height: 28px; }
@media (min-width: 860px) { .mz-parts { grid-template-columns: 1fr 1fr; } }

/* milestones */
.mz-miles { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid rgba(var(--mz-rgb), .4); display: grid; gap: 22px; }
.mz-miles li { position: relative; display: grid; }
.mz-miles li::before { content: ""; position: absolute; left: -30px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--mz-gold); box-shadow: 0 0 14px rgba(var(--mz-rgb), .6); }
.mz-miles b { font-size: 2.4rem; line-height: 1.1; color: var(--mz-accent-text); }
.mz-miles span { color: var(--mz-muted); }

/* all the details */
.mz-details { margin: 0; display: grid; gap: 12px; }
.mz-details > div { background: var(--mz-card); border: 1px solid var(--mz-line); border-radius: 18px; padding: 16px 18px; }
.mz-details dt { color: var(--mz-accent-text); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.mz-details dd { margin: 6px 0 0; color: var(--mz-text); }
.mz .yb-receipt .yb-row { border-color: var(--mz-line); color: var(--mz-text); }
.mz .yb-receipt .yb-row > span:first-child { color: var(--mz-muted); }
.mz .yb-receipt .yb-total > span, .mz .yb-receipt .yb-total > span:first-child { color: #fff; }
.mz .yb-minus span:last-child { color: #FF8A80; }
.mz .yb-free { color: #5ED39A; }
@media (min-width: 860px) { .mz-details { grid-template-columns: 1fr 1fr; } }

/* how, ratings, reviews, questions, final, related — dark */
.mz .how { background: var(--mz-card); border-color: var(--mz-line); color: var(--mz-text); }
.mz .how-steps li::before { background: var(--mz-gold); color: var(--mz-on); }
.mz .how-note { color: var(--mz-muted); }
.mz .yb-rating { background: var(--mz-card); border-color: var(--mz-line); }
.mz .yb-rating-big b { color: #fff; }
.mz .yb-rating-big small, .mz .yb-split li { color: var(--mz-muted); }
.mz .yb-bar { background: rgba(255,255,255,.1); }
.mz .yb-bar span { background: var(--mz-gold); }
.mz .quotes li { background: var(--mz-card); border-color: var(--mz-line); color: var(--mz-text); }
.mz .q-who, .mz .q-who strong { color: var(--mz-text); }
.mz .q-verified { color: #5ED39A; }
.mz .faq { background: var(--mz-card); border-color: var(--mz-line); color: var(--mz-text); }
.mz .faq summary { color: #fff; }
.mz .faq p { color: var(--mz-muted); }
.mz .yb-faq .faq summary::before { color: var(--mz-accent-text); }
.mz .guarantee { background: var(--mz-card); border-color: rgba(var(--mz-rgb), .4); color: var(--mz-text); }
.mz .guarantee h2 { color: #fff; }
.mz .sample { background: var(--mz-card); border-color: var(--mz-line); color: var(--mz-text); }
.mz-final { text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(var(--mz-rgb), .18), transparent 70%), var(--mz-card); border: 1.5px solid rgba(var(--mz-rgb), .55); border-radius: 26px; padding: 28px 20px; box-shadow: 0 0 40px rgba(var(--mz-rgb), .12); display: flex; flex-direction: column; align-items: center; }
.mz-final h2 { margin-bottom: 4px; }
.mz-final-title { color: var(--mz-muted); }
.mz .yb-under { color: var(--mz-muted); }
.mz .yb-more a { background: var(--mz-card); border-color: var(--mz-line); color: var(--mz-text); }
.mz .yb-more-title { color: #fff; }
.mz .yb-more-price .now, .mz .yb-more-price { color: #fff; }
.mz .yb-chip-l { background: var(--mz-card2); color: var(--mz-text); }
.mz .lp-note, .mz .offer-others { color: var(--mz-muted); }
.mz .yb-progress span { background: var(--mz-gold); }
.mz .iab-note { color: var(--mz-muted); }
/* v4 fixes: older light-page rules must not win on the black page */
body.page-offer.mz h1, body.page-offer.mz h2, body.page-offer.mz h3 { color: #fff; }
body.page-offer.mz .mz-gold { color: var(--mz-accent-text); }
body.page-offer.mz .lp-topbar-btn { display: inline-flex; align-items: center; }
body.page-offer.mz .yb-receipt .yb-total > span { color: #fff; }
body.page-offer.mz .skip { background: var(--mz-gold); color: var(--mz-on); }
body.page-offer.mz .yb-receipt .yb-total { background: rgba(var(--mz-rgb), .10); border-color: rgba(var(--mz-rgb), .35); }
body.page-offer.mz .yb-split li, body.page-offer.mz .yb-split li span { color: var(--mz-muted); }
body.page-offer.mz .yb-eyebrow span { color: var(--mz-accent-text); background: none; }
body.page-offer.mz .yb-more .was, body.page-offer.mz .yb-more .was span { color: var(--mz-muted); }
body.page-offer.mz .yb-receipt .yb-row.yb-total > span, body.page-offer.mz .yb-receipt .yb-row.yb-total > span:first-child, body.page-offer.mz .yb-receipt .yb-row.yb-total > span:last-child { color: #fff; }
body.page-offer.mz .yb-receipt .yb-total { --ink: #FFFFFF; }
/* v4: computers — cover on the left, the words and Buy on the right (Buy on the first screen) */
@media (min-width: 900px) {
  .mz-hero-in { display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 48px; align-items: start; justify-items: start; text-align: left; }
  .mz-hero-in > * { grid-column: 2; }
  .mz-hero-in > .mz-cover { grid-column: 1; grid-row: 1 / span 12; align-self: start; position: sticky; top: 100px; }
  .mz-cover .cover { width: 300px; }
  .mz-hero h1 { margin-left: 0; margin-right: 0; }
  .mz-sub { margin-left: 0; }
  .mz .offer-proof, .mz-price, .mz-lines { justify-content: flex-start; }
  .mz-live { margin-top: 0; }
}
body.page-offer.mz a.btn-buy, body.page-offer.mz a.btn-buy:hover { background: var(--mz-gold); color: var(--mz-on); }
body.page-offer.mz .lp-head-buy, body.page-offer.mz .lp-head-buy:hover { background: var(--mz-gold); color: var(--mz-on); box-shadow: 0 4px 14px rgba(var(--mz-rgb), .35); }
/* v4: the "book not found" view on the black page — light book cards with dark text */
body.page-offer.mz .books .book-card { background: #fff; color: #0F1B33; border-color: #E6DFD1; }
body.page-offer.mz .books .book-card a:not(.btn) { color: #002250; }
body.page-offer.mz .books .book-card .btn-line { color: #002250; border-color: #002250; }
body.page-offer.mz .books .book-card .book-type, body.page-offer.mz .books .book-card .muted { color: #4A5468; }
body.page-offer.mz .books .book-card .was { color: #4A5468; }
/* v4: the button colour chosen in the Landing pages editor still wins (gold is only the default) */
body.page-offer.mz .btn-cta, body.page-offer.mz .btn-cta:hover { background: var(--mz-gold); color: var(--mz-on); }
body.page-offer.mz a.btn-buy.btn-cta, body.page-offer.mz a.btn-buy.btn-cta:hover { color: var(--mz-on); }

/* =====================================================================
   Home: the navy hero is back on top (emblem, name, tagline, gold
   button, book fan), with the shop below it. The fan rotates: books
   glide one place every few seconds (home.js), by data-pos.
   ===================================================================== */
.page-shop.has-hero .shop-top .logo { color: #fff; }
.page-shop.has-hero .shop-top .icon-btn, .page-shop.has-hero .shop-top .lang-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.page-shop.has-hero .shop-top .icon-btn:hover, .page-shop.has-hero .shop-top .lang-btn:hover { background: rgba(255, 255, 255, .12); }
.page-shop.has-hero .top :focus-visible { outline-color: var(--gold); }
.page-shop .hero h1 { color: #fff; font-size: clamp(2.2rem, 9.5vw, 3.7rem); font-weight: 700; }
.page-shop .hero-tag { color: #D5DFF0; }
.page-shop .shop-hero { padding-top: 30px; }
.page-shop .shop-hero h2 { color: var(--title); font-size: clamp(1.7rem, 7vw, 2.4rem); margin: 0 0 6px; line-height: 1.2; }

/* rotating fan: positions come from data-pos (l, c, r, out) */
.fan.rot .fan-item { transition: transform .9s cubic-bezier(.3, .7, .2, 1), opacity .6s ease; }
.fan.rot .fan-item[data-pos="l"] { transform: translateX(-54px) rotate(-12deg); z-index: 1; opacity: 1; }
.fan.rot .fan-item[data-pos="c"] { transform: translateY(-14px); z-index: 3; opacity: 1; }
.fan.rot .fan-item[data-pos="r"] { transform: translateX(54px) rotate(12deg); z-index: 2; opacity: 1; }
.fan.rot .fan-item[data-pos="out"] { transform: translateY(6px) scale(.82); z-index: 0; opacity: 0; pointer-events: none; }
.fan.rot .fan-item[data-pos="l"]:hover, .fan.rot .fan-item[data-pos="l"]:focus-visible { transform: translateX(-60px) translateY(-14px) rotate(-14deg); z-index: 4; }
.fan.rot .fan-item[data-pos="c"]:hover, .fan.rot .fan-item[data-pos="c"]:focus-visible { transform: translateY(-28px); z-index: 4; }
.fan.rot .fan-item[data-pos="r"]:hover, .fan.rot .fan-item[data-pos="r"]:focus-visible { transform: translateX(60px) translateY(-14px) rotate(14deg); z-index: 4; }
.fan.rot.is-ready .fan-item { animation: none; }
@media (min-width: 820px) {
  .fan.rot .fan-item[data-pos="l"] { transform: translateX(-88px) rotate(-14deg); }
  .fan.rot .fan-item[data-pos="r"] { transform: translateX(88px) rotate(14deg); }
  .fan.rot .fan-item[data-pos="l"]:hover, .fan.rot .fan-item[data-pos="l"]:focus-visible { transform: translateX(-98px) translateY(-16px) rotate(-16deg); }
  .fan.rot .fan-item[data-pos="r"]:hover, .fan.rot .fan-item[data-pos="r"]:focus-visible { transform: translateX(98px) translateY(-16px) rotate(16deg); }
}
@media (prefers-reduced-motion: reduce) { .fan.rot .fan-item { transition: none; } }


/* =====================================================================
   Ad page light mode (Arif paper look): the round sun/moon button in the
   header switches it. Black stays the default. Gold text becomes a deep
   amber so it stays readable on paper; buttons keep the bright gold.
   ===================================================================== */
.page-offer .icon-btn.lp-theme { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; cursor: pointer; flex: none; }
.page-offer .icon-btn.lp-theme:hover { background: rgba(255, 255, 255, .12); }
.page-offer .top-actions { display: flex; align-items: center; gap: 8px; }
:root[data-otheme="light"] body.page-offer.mz {
  --mz-bg: #FBF8F2; --mz-card: #FFFFFF; --mz-card2: #F6F1E7; --mz-line: #E6DFD1;
  --mz-text: #0F1B33; --mz-muted: #4A5468; --mz-accent-text: var(--mz-amber);
  color-scheme: light;
}
:root[data-otheme="light"] body.page-offer.mz header.top { background: rgba(251, 248, 242, .9); border-bottom-color: #E6DFD1; }
:root[data-otheme="light"] body.page-offer.mz header.top .logo { color: #0F1B33; }
:root[data-otheme="light"] body.page-offer.mz header.top .lang-btn,
:root[data-otheme="light"] body.page-offer.mz header.top .icon-btn.lp-theme { color: #0F1B33; border-color: #E6DFD1; background: #fff; }
:root[data-otheme="light"] body.page-offer.mz .top :focus-visible, :root[data-otheme="light"] body.page-offer.mz :focus-visible { outline-color: #002250; }
:root[data-otheme="light"] body.page-offer.mz h1, :root[data-otheme="light"] body.page-offer.mz h2, :root[data-otheme="light"] body.page-offer.mz h3 { color: #0F1B33; }
:root[data-otheme="light"] body.page-offer.mz main a:not(.btn) { color: #002250; }
:root[data-otheme="light"] .mz-hero { background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(var(--mz-rgb), .28), transparent 70%), #FBF8F2; }
:root[data-otheme="light"] .mz-cover .cover.has-img img { filter: drop-shadow(0 18px 30px rgba(180, 122, 0, .25)) drop-shadow(0 8px 14px rgba(15, 27, 51, .25)); }
:root[data-otheme="light"] .mz-live { color: var(--mz-amber); background: var(--mz-tint); border-color: var(--mz-tint-line); box-shadow: none; }
:root[data-otheme="light"] body.page-offer.mz .mz-gold, :root[data-otheme="light"] .mz-eyebrow, :root[data-otheme="light"] .mz-details dt,
:root[data-otheme="light"] .mz-part-n, :root[data-otheme="light"] .mz-miles b, :root[data-otheme="light"] .mz-ico,
:root[data-otheme="light"] body.page-offer.mz .yb-eyebrow span, :root[data-otheme="light"] .mz .q-stars, :root[data-otheme="light"] .mz .offer-stars .q-stars { color: var(--mz-amber); }
:root[data-otheme="light"] .mz-part-n { text-shadow: none; }
:root[data-otheme="light"] .mz-price .now, :root[data-otheme="light"] .mz-price, :root[data-otheme="light"] .mz .yb-rating-big b, :root[data-otheme="light"] .mz .cd-box b,
:root[data-otheme="light"] .mz .faq summary, :root[data-otheme="light"] .mz-final-title { color: #0F1B33; }
:root[data-otheme="light"] body.page-offer.mz .yb-receipt .yb-total { --ink: #0F1B33; background: var(--mz-tint); border-color: var(--mz-tint-line); }
:root[data-otheme="light"] body.page-offer.mz .yb-receipt .yb-row.yb-total > span { color: #0F1B33; }
:root[data-otheme="light"] .mz .yb-minus span:last-child { color: #B42318; }
:root[data-otheme="light"] .mz .yb-free, :root[data-otheme="light"] .mz .q-verified { color: #1D7A46; }
:root[data-otheme="light"] .mz .cd-box { background: #fff; border-color: var(--mz-tint-line); }
:root[data-otheme="light"] .mz .cd-label { color: #0F1B33; }
:root[data-otheme="light"] .mz-strip { background: #0F1B33; color: #fff; }
:root[data-otheme="light"] .mz-strip-track i { color: var(--gold); }
:root[data-otheme="light"] .mz-part { background: #fff; box-shadow: 0 6px 18px rgba(15, 27, 51, .06); }
:root[data-otheme="light"] .mz-miles { border-left-color: var(--mz-tint-line); }
:root[data-otheme="light"] .mz-miles li::before { background: var(--gold); box-shadow: 0 0 0 4px var(--mz-tint); }
:root[data-otheme="light"] .mz-final { background: radial-gradient(ellipse at 50% 0%, rgba(var(--mz-rgb), .2), transparent 70%), #fff; border-color: var(--mz-tint-line); box-shadow: 0 10px 30px rgba(15, 27, 51, .08); }
:root[data-otheme="light"] .mz .btn-cta { box-shadow: 0 10px 30px rgba(var(--mz-rgb), .4); }
:root[data-otheme="light"] .mz .yb-bar { background: #EEE8DC; }
:root[data-otheme="light"] .mz .yb-bar span { background: var(--mz-amber); }
:root[data-otheme="light"] body.page-offer.mz .yb-split li, :root[data-otheme="light"] body.page-offer.mz .yb-split li span { color: var(--mz-muted); }
:root[data-otheme="light"] .mz .how-steps li::before { background: #002250; color: #fff; }
:root[data-otheme="light"] .mz .yb-progress span { background: var(--mz-amber); }
:root[data-otheme="light"] body.page-offer.mz .skip { background: #002250; color: #fff; }
:root[data-otheme="light"] .mz .yb-more-title, :root[data-otheme="light"] .mz .yb-more-price, :root[data-otheme="light"] .mz .yb-more-price .now { color: #0F1B33; }
:root[data-otheme="light"] .mz .yb-more a { box-shadow: 0 4px 14px rgba(15, 27, 51, .06); }
:root[data-otheme="light"] body.page-offer.mz .foot a:not(.btn), :root[data-otheme="light"] body.page-offer.mz .foot a:not(.btn) span { color: #fff; }

/* =====================================================================
   Shop header: frosted glass + a full-width mega menu (home and book).
   The glass lives on ::before so the mega menu (a child) can blur the
   page behind it too — a blurred parent would hide the page from it.
   ===================================================================== */
.page-shop .top.shop-top.glass-nav { position: sticky; top: 0; z-index: 50; background: transparent; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.glass-nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 31, 74, .95); box-shadow: 0 8px 24px rgba(0, 16, 40, .16); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-nav::before { background: rgba(0, 31, 74, .66); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); }
}
.glass-nav .nav-row { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.page-shop .glass-nav .logo { color: #fff; flex: none; }
.page-shop .glass-nav .top-actions { margin-left: auto; }
.page-shop .glass-nav .icon-btn, .page-shop .glass-nav .lang-btn { background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid rgba(255, 255, 255, .38); }
.page-shop .glass-nav .icon-btn:hover, .page-shop .glass-nav .lang-btn:hover { background: rgba(255, 255, 255, .16); }
.page-shop .glass-nav :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nav-links { display: none; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: rgba(255, 255, 255, .92); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-link[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .16); }
.nav-link .chev { transition: transform .2s ease; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-burger .i-close { display: none; }
.nav-burger[aria-expanded="true"] .i-open { display: none; }
.nav-burger[aria-expanded="true"] .i-close { display: block; }
@media (min-width: 900px) {
  .nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
  .page-shop .glass-nav .top-actions { margin-left: 0; }
  .nav-burger { display: none !important; }
}

/* the mega menu: flush with the full width of the header */
.mega { position: absolute; left: 0; right: 0; top: 100%; color: #fff; background: rgba(0, 24, 58, .97); border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px rgba(0, 10, 30, .35); max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .22s cubic-bezier(.2, .7, .2, 1); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mega { background: rgba(0, 26, 62, .8); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
}
.mega.is-open { opacity: 1; transform: none; }
.mega-grid { display: grid; gap: 22px; padding-top: 20px; padding-bottom: 26px; }
@media (min-width: 900px) { .mega-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: 26px; padding-top: 28px; padding-bottom: 32px; } }
.mega-h { margin: 0 0 10px; padding: 0 12px; color: var(--gold); font: 700 .78rem/1.2 var(--sans) !important; letter-spacing: .1em; text-transform: uppercase; }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; color: #fff; text-decoration: none; transition: background .15s ease; }
.mega-item:hover, .mega-item:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }
.mega-thumb { width: 38px; flex: none; }
.mega-thumb .cover.has-img img { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.mega-txt { display: grid; min-width: 0; }
.mega-t { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.mega-s { color: #C9D5EA; font-size: .82rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(252, 185, 23, .14); color: var(--gold); }
.mega-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 10, 30, .32); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .mega-scrim { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); } }
@media (max-width: 899px) { body.mega-open { overflow: hidden; } }

/* fourth column: the preview of whatever is pointed at */
.mega-visual { border-radius: 20px; padding: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .14); min-height: 250px; }
.mv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; }
.mega-visual.mv-in .mv { animation: mvIn .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes mvIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .mega, .mega-visual.mv-in .mv { transition: none; animation: none; } }
.mv-cover .cover.has-img img { filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); }
.mv-body { min-width: 0; }
.mv-wide { grid-column: 1 / -1; }
.mv h3 { color: #fff; font-size: 1.12rem; line-height: 1.3; margin: 6px 0 4px; }
.mv-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: #0F1B33; font-size: .75rem; font-weight: 700; }
.mv-meta, .mv-note { color: #C9D5EA; font-size: .88rem; margin: 0 0 6px; }
.mv-stars { color: var(--gold); }
.mv-price { margin: 4px 0 10px; color: #fff; font-weight: 700; font-size: 1.3rem; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mv-price .was { color: #C9D5EA; font-size: .9rem; font-weight: 400; }
.mv-price .sale-badge { font-size: .7rem; }
.btn.mv-cta { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.page-shop .mega .btn-line.mv-cta { color: #fff; border-color: rgba(255, 255, 255, .5); background: transparent; }
.mv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mv-steps { list-style: none; counter-reset: s; margin: 8px 0 14px; padding: 0; display: grid; gap: 10px; }
.mv-steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; }
.mv-steps li::before { content: counter(s); width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #0F1B33; font-weight: 700; font-size: .85rem; }
.mv-chips { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mv-chips li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 600; font-size: .88rem; }
.mv-emblem { width: 56px; height: auto; }
/* "see all books": the covers get their own row above the text, inside the panel */
.mv-fan { grid-column: 1 / -1; position: relative; height: 138px; }
.mv-fan-i { position: absolute; bottom: 0; left: 50%; width: 80px; margin-left: -40px; }
.mv-fan-i:nth-child(1) { transform: translateX(-52px) rotate(-9deg); }
.mv-fan-i:nth-child(2) { transform: translateY(-10px); z-index: 2; }
.mv-fan-i:nth-child(3) { transform: translateX(52px) rotate(9deg); }
.mv-fan + .mv-body { grid-column: 1 / -1; text-align: center; }
@media (max-width: 899px) { .mega-visual { min-height: 0; } }
.page-shop .top.shop-top.glass-nav, :root[data-theme="dark"] .page-shop .top.shop-top.glass-nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* the header's own row rule (.top .wrap) must not apply to the mega menu inside it */
.top .wrap.mega-grid { display: grid; align-items: start; justify-content: stretch; min-height: 0; gap: 22px; }
@media (min-width: 900px) { .top .wrap.mega-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: 26px; } }
.mv { grid-template-columns: 96px minmax(0, 1fr); }
.mv-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.mv-foot .mv-price { margin: 0; }
.btn.mv-cta { white-space: nowrap; max-width: 100%; }
/* a button inside the text column wraps instead of sticking out of the panel */
.mv-body .btn.mv-cta { white-space: normal; text-align: center; line-height: 1.3; padding-top: 8px; padding-bottom: 8px; }
.mv h3 { font-size: 1.02rem; }
body.page-offer.mz .foot a:not(.btn), body.page-offer.mz .foot a:not(.btn) span { color: #fff; }

/* =====================================================================
   Thank-you page (also the secret /t/ pages) in the shop style: glass
   header + mega menu, cream paper, success header with the book's
   cover, download card, numbered steps card, help card, book cards.
   ===================================================================== */
.thanks-page .ty { max-width: 46rem; padding-top: 22px; padding-bottom: 20px; }
.ty-hero { text-align: center; padding: 14px 0 6px; }
.ty-check { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 25%, #2FA866, #1D7A46 70%); box-shadow: 0 10px 30px rgba(29, 122, 70, .35), 0 0 0 8px rgba(29, 122, 70, .12); }
.ty-check svg { width: 40px; height: 40px; }
@media (prefers-reduced-motion: no-preference) {
  .ty-check { animation: tyPop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
  .ty-check svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tyDraw .45s .35s ease-out forwards; }
  @keyframes tyPop { from { transform: scale(.4); opacity: 0; } }
  @keyframes tyDraw { to { stroke-dashoffset: 0; } }
}
.thanks-page .ty-hero h1 { color: var(--title); font-size: clamp(1.7rem, 6.5vw, 2.4rem); margin: 0 0 12px; line-height: 1.25; }
.ty-cover { width: 120px; margin: 4px auto 8px; }
.ty-cover:empty { display: none; }
.ty-cover .cover.has-img img { filter: drop-shadow(0 14px 22px rgba(15, 27, 51, .3)); }
.ty-book { text-align: center; margin: 0 auto 6px; max-width: 32rem; color: var(--muted); }
.ty-book strong { color: var(--ink); }
.ty-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin: 18px 0 0; box-shadow: 0 6px 18px rgba(15, 27, 51, .05); }
.ty-h { font-size: 1.2rem; margin: 0 0 14px; }
.thanks-page .dl-box { text-align: center; background: var(--card); border: 2px solid var(--gold); box-shadow: 0 12px 36px rgba(252, 185, 23, .22); }
.thanks-page .dl-box .dl-title { color: var(--title); }
.thanks-page .dl-meta { color: var(--muted); }
.thanks-page .steps { margin: 0; }
.thanks-page .steps li { padding: 6px 0 14px 50px; min-height: 36px; }
.thanks-page .steps li:last-child { padding-bottom: 4px; }
.thanks-page .steps li::before { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; top: 2px; }
.thanks-page .help { background: var(--tint); border-color: var(--tint-line); }
.thanks-page .help h2 { font-size: 1.15rem; }
.thanks-page .help-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ty-more { margin-top: 30px; }
.thanks-page .ty-more .shop-list { grid-template-columns: 1fr; }
:root[data-theme="dark"] .thanks-page .steps li::before { background: var(--gold); color: #0F1B33; }

/* ===== 404 page (shop style) ===== */
.nf-page .nf { max-width: 46rem; padding-top: 40px; padding-bottom: 56px; }
.nf-hero { text-align: center; }
.nf-art { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 18px; color: var(--title); font: 800 clamp(4.5rem, 20vw, 7rem)/1 var(--sans); letter-spacing: -.02em; }
.nf-book { width: clamp(76px, 18vw, 104px); height: clamp(76px, 18vw, 104px); border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #0F1B33; box-shadow: 0 0 0 8px rgba(252, 185, 23, .18); animation: nfTilt 4s ease-in-out infinite; }
.nf-book svg { width: 52%; height: 52%; }
@keyframes nfTilt { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .nf-book { animation: none; } }
.nf-page .nf-hero h1 { color: var(--title); font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 0 0 10px; }
.nf-body { max-width: 32rem; margin: 0 auto 10px; }
/* the line keeps its space from the start (no jump when the script fills it), one line only */
.nf-path { display: flex; justify-content: center; align-items: baseline; gap: 6px; max-width: 34rem; min-height: 1.6em; margin: 0 auto 18px; font-size: .9rem; color: var(--muted); visibility: hidden; white-space: nowrap; }
.nf-path.is-on { visibility: visible; }
.nf-path span { flex: none; }
.nf-path code { min-width: 0; overflow: hidden; text-overflow: ellipsis; background: var(--sunken); color: var(--ink); padding: 2px 8px; border-radius: 6px; font-size: .95em; }
/* at least one screen tall, so the footer starts below the fold and nothing on screen moves when the books arrive */
.nf-page main.nf { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); }
.nf-search { max-width: 34rem; margin: 6px auto 16px; padding-right: 6px; text-align: left; }
.nf-search .nf-go { min-height: 44px; padding: 0 18px; flex: none; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nf-more { margin-top: 44px; }
.nf-more .shop-list { grid-template-columns: 1fr; }
.nf-help { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.nf-help p { margin: 0; }
.nf-help[hidden] { display: none; }
.nf-help { margin: 32px 0 0; }
/* stars in book cards: the darker gold reads on white (3.7:1); gold on dark */
.page-shop .sc-rate .mv-stars { color: var(--star-edge, #B47A00); }
:root[data-theme="dark"] .page-shop .sc-rate .mv-stars { color: var(--gold); }

/* ===== Book page: text layout =====
   Computers: the cover stays on the left while everything else (title, price,
   About, reviews…) runs down one column on the right, lined up with the title.
   Real headings, comfortable Amharic line height, and readable line lengths. */
.bk-head h1 { text-wrap: balance; }
.bk-sec { padding: 22px 20px; }
.bk-h2 { font-size: 1.3rem; color: var(--title); margin: 0 0 14px; line-height: 1.3; }
.bk-desc p { font-size: 1.02rem; line-height: 1.85; margin: 0 0 14px; max-width: 68ch; color: var(--ink); }
.bk-desc p:last-child { margin-bottom: 0; }
.bk-desc .desc-head { color: var(--title); }
.bk-sub { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.bk-h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; color: var(--title); margin: 0 0 12px; }
.bk-h3::before { content: ""; width: 4px; height: 1.1em; border-radius: 2px; background: var(--gold); flex: none; }
.bk-sub .bk-checks { gap: 8px; }
.bk-sub .bk-checks li { padding: 11px 14px; border-radius: 12px; background: var(--sunken); line-height: 1.6; }
.bk-sub .bk-checks svg { margin-top: 4px; }
@media (min-width: 760px) { .bk-sub .bk-checks { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
/* Computers: cover and price side by side at the top, then every section runs the
   full width of the page. Inside "About this book" the description and the two
   checklists sit side by side, so the lines stay a readable length. */
@media (min-width: 860px) {
  .bk-layout .bk-sec { max-width: none; margin-top: 24px; padding: 28px 32px; }
  .bk-layout .bk-coverbox { position: static; }
  .bk-desc p { max-width: none; }
}
@media (min-width: 1000px) {
  .bk-layout .bk-about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .bk-about .bk-h2 { grid-column: 1 / -1; }
  .bk-about .bk-desc { grid-column: 1; grid-row: 2 / span 2; }
  .bk-about .bk-sub { grid-column: 2; margin-top: 0; padding: 0 0 0 28px; border-top: 0; border-left: 1px solid var(--line); }
  .bk-about .bk-sub + .bk-sub { margin-top: 0; padding-top: 22px; }
}

/* one column for the checklists (Amharic sentences read better full width) */
@media (min-width: 760px) { .bk-sub .bk-checks { grid-template-columns: 1fr; } }
/* "How buying works" also full width on computers, its three steps side by side */
@media (min-width: 860px) {
  .bk-main:has(.bk-layout) .how-book { max-width: none; }
  .bk-main:has(.bk-layout) .how-book > * { max-width: none; }
  .bk-main:has(.bk-layout) .how-book .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* the header matches the footer: the same deep navy, nearly solid (a hint of blur stays) */
.glass-nav::before { background: rgba(0, 26, 66, .98); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-nav::before { background: rgba(0, 26, 66, .96); }
}

/* ---------- Help, Refund and Privacy pages (both languages in the page) ---------- */
html:not([lang="en"]) .l-en, html[lang="en"] .l-am { display: none !important; }
.info-page .info { max-width: 46rem; padding-top: 32px; padding-bottom: 56px; }
.info-hero h1 { color: var(--title); font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 0 0 8px; }
.info-lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 8px; }
.info-kicker { color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin: 18px 0 0; box-shadow: 0 6px 18px rgba(15, 27, 51, .05); }
.info-card h2, .info-h2 { color: var(--title); font-size: 1.2rem; margin: 0 0 12px; }
.info-h2 { margin-top: 32px; }
.info-card p:last-child, .faq-body > div > :last-child { margin-bottom: 0; }
.info-note { background: var(--tint); border: 1px solid var(--tint-line); border-left: 5px solid var(--gold); border-radius: 14px; padding: 16px 18px; font-size: 1.05rem; line-height: 1.75; }
.info-note p { margin: 0; }
.info-contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.info-contact[hidden] { display: none; }
.info-contact .btn { min-height: 48px; }
.info-send { background: var(--sunken); border-radius: 12px; padding: 12px 14px; font-size: .95rem; margin: 12px 0 0; }
.info-list, .info-steps { margin: 0; padding-left: 0; list-style: none; }
.info-list li, .info-steps li { position: relative; padding: 10px 0 10px 36px; border-top: 1px solid var(--line); line-height: 1.7; }
.info-list li:first-child, .info-steps li:first-child { border-top: 0; }
.info-list li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: #DDF3E6; color: #14633A; }
.info-list.no li::before { content: "✕"; background: #FBE3E1; color: #A3271D; }
.info-steps { counter-reset: st; margin-bottom: 14px; }
.info-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--brand-fill); color: #fff; }
:root[data-theme="dark"] .info-list li::before { background: #173A2A; color: #7FE0AA; }
:root[data-theme="dark"] .info-list.no li::before { background: #43201F; color: #FFB4AC; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: 0 0 10px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; font-weight: 700; color: var(--ink); border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span { flex: 1; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq[open] summary { border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; }
.faq-body { padding: 14px 16px 16px; line-height: 1.8; }
.faq-body ol { padding-left: 1.3em; margin: 0 0 10px; }
.faq-body li { margin: 0 0 6px; }
.faq-body a, .info-card a:not(.btn) { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.info-date { color: var(--muted); font-size: .9rem; margin: 18px 0 0; }
.info-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.info-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; text-decoration: none; }
.info-link:hover { border-color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
:root[data-theme="dark"] .info-steps li::before { background: var(--gold); color: #0F1B33; }

/* ---------- File facts strip and delivery promise (book and ad pages) ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; margin: 4px 0 14px; padding: 0; font-size: .92rem; font-weight: 600; color: var(--ink); }
.facts li { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; background: var(--sunken); border: 1px solid var(--line); border-left-width: 0; }
.facts li:first-child { border-left-width: 1px; border-radius: 999px 0 0 999px; padding-left: 12px; }
.facts li:last-child { border-radius: 0 999px 999px 0; }
.facts li:only-child { border-radius: 999px; }
.facts svg { color: var(--brand); flex: none; }
.bk-top .facts { justify-content: center; }
@media (min-width: 720px) { .bk-top .facts { justify-content: flex-start; } }
.promise { display: flex; gap: 10px; align-items: flex-start; max-width: 30rem; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--tint); border: 1px solid var(--tint-line); font-size: .93rem; line-height: 1.6; color: var(--ink); text-align: left; }
.promise svg { flex: none; color: var(--ok); margin-top: 1px; }
.promise a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; display: inline-block; padding: 2px 0; }
.bk-top .promise { margin-left: auto; margin-right: auto; }
@media (min-width: 720px) { .bk-top .promise { margin-left: 0; } }
.mz-hero .facts { justify-content: center; }
.mz .facts li { background: var(--mz-card2); border-color: var(--mz-line); color: var(--mz-text); }
.mz .facts svg { color: var(--mz-accent-text); }
.mz .promise { margin: 16px auto 0; background: var(--mz-card); border-color: var(--mz-line); color: var(--mz-text); }
.mz .promise svg { color: #5ED39A; }
:root[data-otheme="light"] .mz .promise svg { color: #1D7A46; }
.mz .promise a { color: var(--mz-accent-text); }
.mz .look-sub { color: var(--mz-muted); }
.mz .look-item { color: #0F1B33; border-color: var(--mz-line); }
.mz .look-cap { background: #fff; color: #0F1B33; border-top-color: #E6DFD1; }
.mz .look-cap svg { color: #002250; }
.mz .look-dlg { --card: var(--mz-card); --line: var(--mz-line); --ink: var(--mz-text); --title: var(--mz-text); --muted: var(--mz-muted); }

/* ---------- "Look inside": sample pages and the large view ---------- */
.look-sub { color: var(--muted); margin: -4px 0 14px; }
.look-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 42%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 4px 2px 10px; overscroll-behavior-x: contain; }
.look-row li { scroll-snap-align: start; }
.look-item { display: block; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(15, 27, 51, .08); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.look-item:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15, 27, 51, .14); }
.look-item img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 679; background: #F6F6F4; }
.look-cap { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; padding: 0 12px; font-weight: 700; font-size: .9rem; background: var(--card); border-top: 1px solid var(--line); }
.look-cap svg { color: var(--brand); }
@media (min-width: 860px) { .look-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(170px, 220px)); overflow: visible; } }
@media (prefers-reduced-motion: reduce) { .look-item { transition: none; } .look-item:hover { transform: none; } }
html.look-open { overflow: hidden; }
.look-dlg { padding: 0; border: 0; background: transparent; width: 100%; max-width: 760px; max-height: 100dvh; height: 100%; margin: auto; color: var(--ink); }
.look-dlg::backdrop { background: rgba(6, 12, 26, .82); }
.look-box { display: flex; flex-direction: column; height: 100%; background: var(--card); }
@media (min-width: 720px) { .look-dlg { height: calc(100dvh - 48px); } .look-box { border-radius: 18px; overflow: hidden; } }
.look-top { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.look-top h2 { flex: 1; min-width: 0; margin: 0; font-size: 1rem; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-x, .look-arrow { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.look-x:hover, .look-arrow:hover { border-color: var(--brand); }
.look-body { flex: 1; overflow: auto; background: #E9ECF1; padding: 12px; -webkit-overflow-scrolling: touch; }
.look-body img { display: block; width: 100%; height: auto; max-width: 900px; margin: 0 auto; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .15); }
.look-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.look-count { flex: 1; text-align: center; font-weight: 700; color: var(--muted); }
.look-buy { padding: 0 12px calc(12px + env(safe-area-inset-bottom)); }
.look-buy .btn { width: 100%; }
:root[data-theme="dark"] .look-body { background: #0A1222; }
.page-offer .look, .offer-sec.look { padding-top: 8px; }
.look-body img { cursor: zoom-in; }
.look-body.zoom img { width: 200%; max-width: none; cursor: zoom-out; }
@media (min-width: 720px) { .look-body.zoom img { width: 150%; } }

/* ---------- Buyer review card (thank-you and book pages) ---------- */
.rv-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; margin: 18px 0 0; padding: 0; overflow: hidden; }
.rv-card details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 20px; font-weight: 700; color: var(--title); }
.rv-card details > summary::-webkit-details-marker { display: none; }
.rv-card details > summary::after { content: ""; margin-left: auto; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); }
.rv-card details[open] > summary::after { transform: rotate(225deg); }
.rv-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rv-sum-stars { color: var(--star-edge); letter-spacing: 2px; }
:root[data-theme="dark"] .rv-sum-stars { color: var(--star); }
.rv-form { padding: 0 20px 20px; }
.rv-intro { color: var(--muted); margin: 0 0 12px; }
.rv-stars { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.rv-stars legend { font-weight: 700; margin: 0 0 4px; padding: 0; }
.rv-star-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rv-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-stars label { display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer; color: var(--star-off); border-radius: 10px; }
.rv-stars svg { fill: transparent; stroke: var(--muted); stroke-width: 1.4; stroke-linejoin: round; }
.rv-stars input:checked ~ label svg, .rv-stars label:hover svg, .rv-stars label:hover ~ label svg { fill: var(--star); stroke: var(--star-edge); }
:root[data-theme="dark"] .rv-stars input:checked ~ label svg, :root[data-theme="dark"] .rv-stars label:hover svg, :root[data-theme="dark"] .rv-stars label:hover ~ label svg { stroke: var(--star); }
.rv-stars input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 1px; }
.rv-field { display: block; margin: 0 0 12px; }
.rv-field span { display: block; font-weight: 700; margin: 0 0 6px; }
.rv-field input, .rv-field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; }
.rv-field input:focus, .rv-field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
.rv-ok { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; min-height: 44px; cursor: pointer; }
.rv-ok input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--brand-fill); }
.rv-err { color: #B42318; font-weight: 700; margin: 0 0 10px; }
:root[data-theme="dark"] .rv-err { color: #FFB4AC; }
.rv-err[hidden] { display: none; }
.rv-note { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
.rv-done { padding: 16px 20px; background: var(--tint); border-color: var(--tint-line); }
.rv-done p { margin: 0; }
.rv-card.bk-sec { padding: 0; }
.rv-card.bk-sec.rv-done { padding: 16px 20px; }

/* ---------- Tap targets of at least 44 px ---------- */
/* The whole book card opens the book (the title link stretches over it); the Buy button stays on top. */
.sc-row, .sc-slide { position: relative; }
.sc-info h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sc-row .btn, .sc-slide .btn, .sc-row .sc-buy, .sc-slide .sc-buy { position: relative; z-index: 2; }
.promise a { padding: 11px 0; margin: -11px 0; }
.page-offer .logo { min-width: 44px; min-height: 44px; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.foot li { margin: 0 0 2px; }

/* =====================================================================
   Home hero, reimagined: brand lockup, a headline that says what the
   shop sells, two buttons, the book fan on a gold-ringed stage, and the
   Learn / Grow / Build steps along the bottom. Navy in both themes.
   ===================================================================== */
.page-shop .hero-v2 {
  background:
    radial-gradient(60% 55% at 88% 30%, rgba(58, 110, 190, .50), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(252, 185, 23, .10), transparent 70%),
    linear-gradient(160deg, #001A42 0%, #002250 55%, #00163A 100%);
  isolation: isolate;
}
.hero-v2::before { /* faint blueprint grid, fading out toward the edges */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(90% 80% at 70% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(90% 80% at 70% 30%, #000 0%, transparent 78%);
}
.hero-v2::after { display: none; }
.hero-v2 .wrap { gap: 0; padding-top: 26px; padding-bottom: 0; }
.hero-v2 .wrap > * { min-width: 0; }

.hero-brand { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.hero-v2 .hero-emblem { width: 46px; margin: 0; flex: none; }
.hero-brand-text { display: grid; line-height: 1.25; }
.hero-brand-text strong { color: #fff; font-size: 1.08rem; letter-spacing: .01em; }
.page-shop .hero-v2 .hero-tag { color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0; max-width: none; }

.page-shop .hero-v2 h1 { color: #fff; font-size: clamp(2rem, 8.6vw, 3.5rem); line-height: 1.22; margin: 0 0 14px; letter-spacing: 0; }
.hero-hl { display: block; color: var(--gold); }
.hero-sub { color: #D5DFF0; font-size: 1.06rem; line-height: 1.65; max-width: 31rem; margin: 0 0 22px; }
.hero-v2 .hero-actions { gap: 12px; }
.hero-btn-line { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.hero-btn-line:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

/* the stage: a gold ring and a soft glow behind the books */
.hero-stage { position: relative; display: grid; place-items: center; padding: 64px 0 44px; }
.hero-stage::before, .hero-stage::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; }
.hero-stage::before {
  width: min(74vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 2px solid rgba(252, 185, 23, .7);
  background: radial-gradient(circle, rgba(252, 185, 23, .22) 0%, rgba(252, 185, 23, .05) 55%, transparent 70%);
}
.hero-stage::after {
  width: min(90vw, 372px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(255, 255, 255, .28);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-stage::after { animation: hero-ring 60s linear infinite; }
  @keyframes hero-ring { to { transform: translate(-50%, -50%) rotate(360deg); } }
}
.hero-v2 .fan { margin-top: 0; z-index: 1; }

/* Learn / Grow / Build */
.hero-steps { list-style: none; margin: 14px 0 0; padding: 16px 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero-steps li { display: grid; gap: 2px; padding-left: 12px; border-left: 2px solid var(--gold); }
.hero-step-n { color: var(--gold); font-size: .74rem; font-weight: 700; letter-spacing: .12em; }
.hero-steps strong { color: #fff; font-size: 1.08rem; }
.hero-step-d { display: none; color: #B9C7E0; font-size: .88rem; line-height: 1.5; }
@media (min-width: 600px) { .hero-step-d { display: block; } }

@media (min-width: 820px) {
  .hero-v2 .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 32px; padding-top: 56px; }
  .hero-brand { margin-bottom: 26px; }
  .hero-v2 .hero-emblem { width: 54px; }
  .hero-stage { padding: 0; }
  .hero-stage::before { width: 380px; }
  .hero-stage::after { width: 468px; }
  .hero-steps { grid-column: 1 / -1; margin-top: 48px; padding: 22px 0 28px; gap: 28px; }
  .hero-steps li { padding-left: 16px; }
  .hero-steps strong { font-size: 1.2rem; }
}
