/* ============================================================
   MARCAS COM ALMA — book page
   Reuses the site's tokens, type system and glass-card language.
   ============================================================ */

/* light hero → nav is solid/dark from the top */
/* logo white over the photo hero, inverts to dark once nav is solid */
.book-page .nav.scrolled .wordmark-img { filter: invert(1); }
/* translucent header, always visible over the whole photo */
.book-page .nav {
  background: color-mix(in oklab, var(--bg) 28%, transparent);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  transition: background .3s ease;
}
.book-page .nav.scrolled { background: color-mix(in oklab, var(--bg) 82%, transparent); }

/* ---------------- VIDEO — floating box ---------------- */
.book-video-wrap { padding: clamp(56px, 9vh, 120px) 6vw clamp(20px, 4vh, 60px); display: flex; justify-content: center; }
.book-video {
  position: relative; width: min(1040px, 100%); aspect-ratio: 16 / 9;
  border-radius: 22px; overflow: hidden;
  background: #0d0b0a;
  box-shadow: 0 40px 100px -30px rgba(21,18,15,0.5), 0 6px 20px rgba(21,18,15,0.12);
}
.book-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .book-video-wrap { padding-inline: 20px; } .book-video { border-radius: 16px; } }

/* generic page section rhythm */
.book-page .section { padding-block: clamp(70px, 11vh, 150px); }

/* ---------------- HERO — full-bleed photo + glass card ---------------- */
.book-hero {
  position: relative;
  margin-top: 0;
  aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: flex-end;
  padding: clamp(60px, 9vh, 110px) var(--gutter);
  overflow: hidden;
  background: #efe9e1;
}
.bh-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.book-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(255deg, rgba(21,18,15,0.16) 0%, rgba(21,18,15,0.04) 46%, rgba(21,18,15,0) 72%);
}
.bh-glass {
  position: relative; z-index: 2;
  width: min(540px, 100%);
  padding: clamp(36px, 4vw, 58px);
  border-radius: 30px;
  text-align: center;
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(34px) saturate(1.08); -webkit-backdrop-filter: blur(34px) saturate(1.08);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 24px 70px rgba(21,18,15,0.12), inset 0 1px 1px rgba(255,255,255,0.22);
}
.bh-title {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(34px, 4vw, 60px); line-height: 1.0; letter-spacing: -0.035em;
  color: #fff; text-wrap: balance; text-shadow: 0 2px 20px rgba(21,18,15,0.25);
}
.bh-title .serif { color: #fff; }
/* glass CTA — echoes the home press capsule */
.btn-glass {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 40px; border-radius: 999px; font-size: 16px; font-weight: 500;
  letter-spacing: 0.01em; color: #fff; text-decoration: none; cursor: pointer;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.85);
  box-shadow: 0 10px 30px rgba(21,18,15,0.2), 0 0 22px rgba(255,255,255,0.35), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-glass:hover { transform: translateY(-2px); background: rgba(255,255,255,0.34); box-shadow: 0 16px 40px rgba(21,18,15,0.26), 0 0 34px rgba(255,255,255,0.55), inset 0 1px 0 rgba(255,255,255,0.9); }
.bh-actions { margin-top: clamp(26px, 3.4vh, 40px); display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
/* publisher logos */
.bh-pubs { margin-top: clamp(28px, 3.6vh, 42px); padding-top: clamp(22px, 3vh, 32px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bh-pubs-logos { display: flex; align-items: center; justify-content: center; gap: clamp(26px, 3vw, 40px); }
.pub-logo { display: block; opacity: 0.95; transition: opacity .25s; }
.pub-logo:hover { opacity: 1; }
.pub-voo { height: 60px; width: auto; filter: brightness(0) invert(1); }
.pub-austin { height: 40px; width: auto; filter: brightness(0) invert(1); }

/* ---------------- ABOUT THE BOOK ---------------- */
.ba-inner { max-width: 780px; margin-inline: auto; text-align: center; }
.eyebrow-c {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 26px;
}
.ba-lead {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(24px, 3vw, 40px); line-height: 1.18; letter-spacing: -0.025em;
  color: var(--ink); text-wrap: balance;
}
.ba-lead .serif { color: var(--accent); }
.ba-body { margin-top: clamp(28px, 4vh, 44px); display: flex; flex-direction: column; gap: 1.2em; }
.ba-body p { font-size: clamp(22px, 1.85vw, 27px); line-height: 1.58; color: var(--ink-dim); }
.ba-body strong { color: var(--ink); font-weight: 600; }
.ba-anatomy {
  margin-top: clamp(38px, 5vh, 58px); display: inline-flex; flex-direction: column; gap: 6px;
  padding: 22px 30px; border-radius: 18px;
  background: color-mix(in oklab, var(--accent) 8%, #fff);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
}
.ba-anatomy .ba-fw { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.ba-anatomy .ba-fd { font-size: clamp(15px, 1.15vw, 17px); color: var(--ink-dim); }

/* ---------------- VOICES ---------------- */
.voices .wrap { max-width: var(--maxw); }
.vo-card {
  position: relative;
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(40px) saturate(1.5); -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border-radius: 34px; padding: clamp(34px, 4vw, 72px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 40px 100px rgba(21,18,15,0.14), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(255,255,255,0.25);
  text-align: center;
}
.vo-head { max-width: 820px; margin-inline: auto; }
.vo-title {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 64px); line-height: 1.0; letter-spacing: -0.035em; color: var(--ink);
}
.vo-title .serif { color: var(--ink); }
.vo-title { color: var(--ink); }
.vo-title .serif { color: var(--ink); font-style: normal; }
.vo-lead { margin-top: clamp(20px, 2.6vh, 30px); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.32; letter-spacing: -0.01em; color: var(--ink); max-width: 46ch; margin-inline: auto; text-wrap: balance; }
.vo-intro { margin-top: clamp(22px, 3.2vh, 40px); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.6; color: var(--ink-dim); max-width: 62ch; margin-inline: auto; }
.leaders {
  margin-top: clamp(44px, 6vh, 72px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 1.8vw, 26px);
}
.leader { display: flex; flex-direction: column; align-items: center; }
.leader-photo {
  width: 100%; aspect-ratio: 5/6; object-fit: cover; object-position: center 22%;
  border-radius: 16px; display: block; background: var(--bg-soft);
  box-shadow: 0 24px 54px rgba(21,18,15,0.16); transition: transform .4s ease, box-shadow .4s ease;
}
.leader:hover .leader-photo { transform: translateY(-4px); box-shadow: 0 34px 70px rgba(21,18,15,0.22); }
.leader-name { margin-top: 16px; font-family: var(--font-sans); font-weight: 600; font-size: clamp(17px, 1.3vw, 20px); letter-spacing: -0.01em; color: var(--ink); }
.leader-role { margin-top: 3px; font-family: var(--font-sans); font-weight: 400; font-size: 13px; letter-spacing: 0.01em; color: var(--ink-faint); }
.leader-role b { color: var(--accent); font-weight: 500; }
.leader-logoband { margin-top: auto; padding-top: 16px; width: 100%; height: clamp(74px, 7vw, 90px); display: flex; align-items: center; justify-content: center; }
.leader-logo { display: block; width: auto; object-fit: contain; opacity: 0.95; }
.leader-logo.ll-wide { height: clamp(28px, 2.7vw, 36px); max-width: 160px; }
.leader-logo.ll-tall { height: clamp(52px, 5.2vw, 66px); max-width: 132px; }
.leader-logo.ll-mid { height: clamp(42px, 4.2vw, 54px); max-width: 120px; }
.leader-logo.ll-ifood { height: clamp(40px, 3.8vw, 52px); max-width: 200px; }
.leader-logo.ll-dengo { height: clamp(58px, 5.8vw, 73px); max-width: 140px; }
.leader-logo.ll-magalu { height: clamp(36px, 3.5vw, 46px); max-width: 190px; }
.leader-logo.ll-sicredi { height: clamp(36px, 3.5vw, 46px); max-width: 190px; }
.leader-logo.ll-sabin { height: clamp(54px, 5.4vw, 68px); max-width: 150px; }

/* companies capsule */
.companies-label { margin-top: clamp(50px, 7vh, 84px); text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.companies {
  margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(24px, 3.4vw, 40px) clamp(28px, 4vw, 56px);
  background: #fff; border-radius: 30px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(21,18,15,0.08);
  max-width: 940px; margin-inline: auto;
}
.companies img { height: clamp(26px, 3vw, 38px); width: auto; object-fit: contain; opacity: 0.9; }
.companies img.tall { height: clamp(40px, 4.4vw, 56px); }

/* ---------------- ENDORSEMENT ---------------- */
.endorse .wrap { max-width: 1000px; }
.endorse-manifesto {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(22px, 2.6vw, 38px); line-height: 1.28; letter-spacing: -0.015em;
  color: var(--ink); text-align: center; text-wrap: balance;
  max-width: 22ch; margin: 0 auto clamp(40px, 6vh, 72px);
}
.endorse-card {
  background: var(--ink); color: #fff; border-radius: 30px;
  padding: clamp(44px, 6vw, 88px);
  box-shadow: 0 50px 120px rgba(21,18,15,0.30);
}
.endorse-mark { font-family: var(--font-serif); font-style: italic; font-size: clamp(60px, 8vw, 110px); line-height: 0.6; color: var(--accent-soft); display: block; height: 0.6em; }
.endorse-quote {
  font-family: var(--font-sans); font-weight: 400;
  font-size: clamp(21px, 2.4vw, 34px); line-height: 1.34; letter-spacing: -0.02em;
  color: #fff; text-wrap: pretty; margin-top: 10px;
}
.endorse-by { margin-top: clamp(28px, 4vh, 40px); display: flex; flex-direction: column; gap: 4px; }
.endorse-by .eb-name { font-family: var(--font-sans); font-weight: 600; font-size: clamp(16px, 1.3vw, 19px); color: #fff; }
.endorse-by .eb-role { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: rgba(255,255,255,0.55); max-width: 44ch; }

/* ---------------- DEPOIMENTOS / TESTIMONIALS ---------------- */
.testi .wrap { max-width: var(--maxw); }
.testi-title { font-family: var(--font-sans); font-weight: 700; font-size: clamp(30px, 4vw, 56px); line-height: 1.0; letter-spacing: -0.035em; color: var(--ink); text-align: center; }
.testi-grid { margin-top: clamp(28px, 4vh, 48px); display: grid; grid-template-columns: minmax(0, 560px) 360px; gap: clamp(20px, 2.2vw, 32px); align-items: start; justify-content: center; }
.testi-card {
  --cardpad: clamp(36px, 4vw, 60px);
  height: 640px;
  background: var(--ink); color: #fff; border-radius: 30px;
  padding: var(--cardpad); display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 50px 120px rgba(21,18,15,0.30);
}
.testi-quote {
  font-family: var(--font-sans); font-weight: 400;
  font-size: clamp(15px, 1.32vw, 19px); line-height: 1.36; letter-spacing: -0.015em;
  color: #fff; text-wrap: pretty; margin-top: 0;
}
.testi-img {
  flex: 1 1 auto; min-height: 0;
  width: calc(100% + 2 * var(--cardpad)); max-width: none;
  margin: clamp(18px, 2.4vh, 28px) calc(-1 * var(--cardpad)) calc(-1 * var(--cardpad));
  object-fit: cover; object-position: center 20%;
  border-radius: 0 0 30px 30px; display: block;
}
.testi-meta { margin-top: clamp(16px, 2.4vh, 24px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.testi-name { font-family: var(--font-sans); font-weight: 600; font-size: clamp(15px, 1.2vw, 18px); color: #fff; }
.testi-role { font-family: var(--font-sans); font-weight: 400; font-size: clamp(11px, 1vw, 12.5px); color: rgba(255,255,255,0.55); white-space: nowrap; }
.testi-video {
  height: 640px;
  position: relative; border-radius: 30px; overflow: hidden;
  background: #0d0b0a; box-shadow: 0 50px 120px rgba(21,18,15,0.30);
}
.testi-video::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(13,11,10,0.55), transparent); }
.testi-video video, .testi-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.tv-audio {
  position: absolute; right: 16px; bottom: 16px; z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #15120f;
  background: rgba(255,255,255,0.92); border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  transition: background .2s ease, transform .2s ease;
}
.tv-audio:hover { background: #fff; transform: translateY(-1px); }
.tv-audio svg { width: 21px; height: 21px; }
.tv-audio .ic-on { display: none; }
.tv-audio.is-on { color: #fff; background: var(--accent); border-color: transparent; }
.tv-audio.is-on .ic-on { display: block; }
.tv-audio.is-on .ic-muted { display: none; }
.vv-box { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.ph-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); line-height: 1.7; }
@media (max-width: 980px){
  .testi-grid { grid-template-columns: 1fr; }
  .testi-card { height: auto; min-height: 520px; }
  .testi-video { height: auto; aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; width: 100%; }
}

/* ---------------- ENGLISH EDITION — Soulful Brands ---------------- */
.english .eng-card {
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(40px) saturate(1.5); -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 34px;
  box-shadow: 0 40px 100px rgba(21,18,15,0.14), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(255,255,255,0.25);
  overflow: hidden;
}
.eng-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; align-items: stretch; }
.eng-copy { padding: clamp(38px, 4.6vw, 76px); align-self: center; text-align: center; }
.eng-eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); display: block; }
.eng-title { margin-top: 14px; font-family: var(--font-sans); font-weight: 700; font-size: clamp(42px, 5vw, 76px); line-height: 0.92; letter-spacing: -0.04em; color: var(--ink); }
.eng-title .serif { color: var(--ink); background: none; -webkit-text-fill-color: var(--ink); }
.eng-tag { margin-top: 16px; font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 1.9vw, 28px); color: var(--ink-dim); }
.eng-eyebrow { margin-inline: auto; }
.eng-body { max-width: 52ch; margin-inline: auto; }
.eng-body { margin-top: clamp(22px, 3vh, 32px); }
.eng-body p { font-size: clamp(16.5px, 1.3vw, 20px); line-height: 1.62; color: var(--ink-dim); }
.eng-body strong { color: var(--ink); font-weight: 600; }
.eng-actions { margin-top: clamp(28px, 3.6vh, 42px); display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 3vh, 34px); }
.btn-ink {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 40px; border-radius: 999px; font-size: 16px; font-weight: 500;
  letter-spacing: 0.01em; color: var(--ink); text-decoration: none; cursor: pointer;
  background: rgba(255,255,255,0.32);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 14px 34px rgba(21,18,15,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-ink:hover { transform: translateY(-2px); background: rgba(255,255,255,0.5); box-shadow: 0 20px 46px rgba(21,18,15,0.18), inset 0 1px 0 rgba(255,255,255,0.95); }
.eng-pub { height: clamp(42px, 4.4vw, 62px); width: auto; object-fit: contain; opacity: 0.72; display: block; margin-inline: auto; }
.eng-media { position: relative; min-height: clamp(420px, 52vw, 620px); }
.eng-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
@media (max-width: 820px){
  .eng-grid { grid-template-columns: 1fr; }
  .eng-media { min-height: clamp(360px, 92vw, 560px); order: -1; }
}

/* ---------------- AUTHOR ---------------- */
.author .author-card {
  background: color-mix(in oklab, #fff 62%, transparent);
  backdrop-filter: blur(30px) saturate(1.2); -webkit-backdrop-filter: blur(30px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.6); border-radius: 28px;
  padding: clamp(28px, 4vw, 60px);
  box-shadow: 0 40px 100px rgba(21,18,15,0.12);
}
.author-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.author-photo-wrap { width: 100%; aspect-ratio: 2/3; border-radius: 18px; overflow: hidden; box-shadow: 0 34px 80px rgba(21,18,15,0.22); }
.author-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; transform: translate(-7%, -8%) scale(1.42); transform-origin: center 24%; }
.author-eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.author-name { margin-top: 12px; font-family: var(--font-sans); font-weight: 700; font-size: clamp(34px, 4.2vw, 58px); line-height: 0.98; letter-spacing: -0.035em; color: var(--ink); }
.author-tag { margin-top: 14px; font-family: var(--font-serif); font-style: italic; font-size: clamp(19px, 1.7vw, 26px); color: var(--accent); }
.author-body { margin-top: clamp(20px, 3vh, 30px); display: flex; flex-direction: column; gap: 1em; }
.author-body p { font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.6; color: var(--ink-dim); }
.author-body a.inline { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.author-body a.inline:hover { border-bottom-color: var(--accent); }
.author-body strong { color: var(--ink); font-weight: 600; }

/* ---------------- MOBILE ---------------- */
@media (max-width: 900px){
  .leaders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  /* hero: photo on top, translucent glass card floating on the bg below */
  .book-hero { aspect-ratio: auto; display: block; padding: 0 0 clamp(40px, 9vw, 60px); overflow: visible; background: transparent; }
  .bh-bg { position: relative; width: 100%; height: auto; aspect-ratio: 4/5; object-position: left center; }
  .book-hero::after { display: none; }
  .bh-glass {
    position: relative; z-index: 3;
    width: calc(100% - 2 * var(--gutter));
    margin: clamp(-64px, -12vw, -40px) auto 0;
    border-radius: 30px;
    background: rgba(255,255,255,0.28);
    backdrop-filter: blur(40px) saturate(1.5); -webkit-backdrop-filter: blur(40px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 40px 100px rgba(21,18,15,0.16), inset 0 1px 0 rgba(255,255,255,0.9);
    padding: clamp(32px, 7vw, 46px) clamp(24px, 6vw, 40px);
  }
  .bh-title, .bh-title .serif { color: var(--ink); text-shadow: none; }
  .bh-actions { flex-direction: column; }
  .bh-actions .btn-glass {
    width: 100%; max-width: 340px; color: var(--ink);
    background: rgba(255,255,255,0.5);
    border-color: rgba(21,18,15,0.22);
    box-shadow: 0 10px 26px rgba(21,18,15,0.10), inset 0 1px 0 rgba(255,255,255,0.85);
  }
  .author-grid { grid-template-columns: 1fr; gap: 26px; }
  .author-photo-wrap { aspect-ratio: 3/4; }
  .leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  /* light glass on mobile → publisher logos must be dark, not white */
  .pub-voo, .pub-austin { filter: brightness(0); opacity: 0.78; }
}
@media (max-width: 420px){
  .leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .companies { gap: 24px 30px; }
}
