/* ==================================================================
   MRZ — Global Consultancy variant
   Editorial / magazine layout in the spirit of PwC, Deloitte, KPMG
   Reuses tokens from styles.css. All custom selectors prefixed .g-
================================================================== */

.g-page {
  background: var(--paper);
  color: var(--ink);
}

/* Section labels — sans-serif kicker used across the page */
.g-section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.g-section-label::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.g-section-label.on-dark { color: var(--gold-soft); }
.g-section-label.on-dark::before { background: var(--gold-soft); }

/* ==================================================================
   HERO — editorial, two-column with spotlight
================================================================== */
.g-hero {
  background: var(--paper);
  padding: clamp(48px, 6vw, 88px) 0 0;
  position: relative;
}
.g-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 5vw, 88px);
  align-items: end;
  padding-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.g-hero-left h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin: 22px 0 24px;
  text-wrap: balance;
}
.g-hero-left h1 em {
  font-style: italic;
  color: var(--gold-deep);
  font-family: var(--serif);
}
.g-hero-left .lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--slate);
  max-width: 52ch;
  line-height: 1.55;
  margin: 0 0 36px;
}
.g-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.g-cta-row .btn-ghost {
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.g-cta-row .btn-ghost:hover {
  background: var(--navy-800);
  color: var(--white);
}

/* Spotlight card on the right — featured insight, PwC-style */
.g-spotlight {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 0;
  padding: clamp(28px, 3vw, 44px);
  overflow: hidden;
  isolation: isolate;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}
.g-spotlight::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(201,162,75,.22), transparent 55%),
    radial-gradient(500px 400px at 0% 100%, rgba(29,74,130,.5), transparent 60%);
  z-index: -1;
}
.g-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 80% 20%, #000 20%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.g-spot-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: auto;
}
.g-spot-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(227,200,132,.2);
}
.g-spot-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
  text-wrap: balance;
}
.g-spotlight p {
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 40ch;
}
.g-spot-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
}
.g-spot-meta span:not(.dot) { font-weight: 500; }
.g-spot-arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  display: grid; place-items: center;
  font-size: 18px;
  transition: transform .2s ease, background .2s ease;
}
.g-spotlight:hover .g-spot-arrow { transform: rotate(-45deg); background: var(--gold-soft); }

/* Hero rail — running info strip at the bottom */
.g-hero-rail {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  padding: 22px 0 32px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--slate);
  letter-spacing: 0.02em;
}
.g-hero-rail strong {
  color: var(--navy-800);
  font-weight: 600;
}
.g-hero-rail .sep { color: var(--mute); }
.g-hero-rail .g-rail-cta {
  margin-left: auto;
  color: var(--navy-800);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.g-hero-rail .g-rail-cta:hover { color: var(--gold-deep); }

@media (max-width: 900px) {
  .g-hero-inner { grid-template-columns: 1fr; align-items: stretch; }
  .g-spotlight { min-height: 320px; }
  .g-hero-rail .g-rail-cta { margin-left: 0; }
}

/* ==================================================================
   SECTION: WHAT WE DO — editorial 2-column
================================================================== */
.g-what {
  background: var(--white);
  padding: clamp(72px, 9vw, 130px) 0;
}
.g-what-inner {
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.g-what-head { position: sticky; top: 100px; }
.g-what-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 22px 0 24px;
  text-wrap: balance;
}
.g-what-head p {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.6;
  max-width: 38ch;
}
.g-services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.g-services-list li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .25s ease;
  cursor: pointer;
}
.g-services-list li:hover { background: var(--paper); }
.g-services-list li:hover .g-svc-arrow { transform: translateX(6px); color: var(--gold-deep); }
.g-services-list .g-svc-num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold-deep);
  line-height: 1;
  padding-top: 2px;
}
.g-services-list h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  margin: 0 0 8px;
  color: var(--navy-900);
  line-height: 1.2;
}
.g-services-list p {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
}
.g-svc-arrow {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--navy-800);
  font-size: 16px;
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
  margin-top: 4px;
  flex-shrink: 0;
}
.g-services-list li:hover .g-svc-arrow { border-color: var(--gold); }

@media (max-width: 900px) {
  .g-what-inner { grid-template-columns: 1fr; }
  .g-what-head { position: static; }
  .g-services-list li { grid-template-columns: 40px 1fr auto; gap: 14px; padding: 24px 0; }
}

/* ==================================================================
   SECTION: NUMBERS — by the numbers
================================================================== */
.g-numbers {
  background: var(--navy-900);
  color: var(--white);
  padding: clamp(72px, 9vw, 130px) 0;
  position: relative;
  overflow: hidden;
}
.g-numbers::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 80% 0%, rgba(201,162,75,.16), transparent 60%);
}
.g-numbers > .container { position: relative; }
.g-numbers-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  color: var(--white);
  margin: 22px 0 0;
  max-width: 28ch;
  letter-spacing: -0.01em;
}
.g-numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid rgba(255,255,255,.12);
}
.g-numbers-grid > div {
  padding: 36px 22px 0;
  border-right: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.g-numbers-grid > div:last-child { border-right: 0; }
.g-numbers-grid .n {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 80px);
  line-height: 1;
  color: var(--gold-soft);
  letter-spacing: -0.02em;
}
.g-numbers-grid .l {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  line-height: 1.4;
  max-width: 22ch;
}
.g-numbers-grid .n.tight { font-size: clamp(28px, 2.8vw, 42px); }
.g-numbers-grid .n-money { white-space: nowrap; font-size: clamp(40px, 4vw, 68px); }

@media (max-width: 900px) {
  .g-numbers-grid { grid-template-columns: 1fr 1fr; }
  .g-numbers-grid > div { padding: 28px 0 0; border-right: 0; }
  .g-numbers-grid > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); padding-right: 18px; }
  .g-numbers-grid > div:nth-child(even) { padding-left: 18px; }
}
@media (max-width: 540px) {
  .g-numbers-grid { grid-template-columns: 1fr; }
  .g-numbers-grid > div { border-right: 0; padding: 22px 0 0; }
  .g-numbers-grid > div:nth-child(odd) { border-right: 0; padding-right: 0; }
  .g-numbers-grid > div:nth-child(even) { padding-left: 0; }
}

/* ==================================================================
   SECTION: INSIGHTS / LATEST THINKING
================================================================== */
.g-insights {
  background: var(--paper);
  padding: clamp(72px, 9vw, 130px) 0;
}
.g-insights-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 48px;
}
.g-insights-head h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
  color: var(--navy-900);
  margin: 18px 0 0;
  max-width: 18ch;
  letter-spacing: -0.015em;
}
.g-insights-head .g-all-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: 0.02em;
}
.g-insights-head .g-all-link:hover { color: var(--gold-deep); }
.g-insights-head .g-all-link::after { content: " →"; }

.g-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.g-article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.g-article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.g-article .cat {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.g-article h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  color: var(--navy-900);
  margin: 0;
  letter-spacing: -0.005em;
  flex: 1;
}
.g-article .meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.04em;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.g-article .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--mute); }
.g-article::after {
  content: "→";
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy-800);
  display: grid; place-items: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.g-article:hover::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

.g-article-feature {
  grid-column: span 1;
  background: var(--navy-800);
  color: var(--white);
  border-color: transparent;
}
.g-article-feature h3 { color: var(--white); }
.g-article-feature .cat { color: var(--gold-soft); }
.g-article-feature .meta { color: rgba(255,255,255,.55); border-top-color: rgba(255,255,255,.1); }

@media (max-width: 900px) {
  .g-articles { grid-template-columns: 1fr; }
  .g-insights-head { grid-template-columns: 1fr; }
}

/* ==================================================================
   SECTION: INDUSTRIES — vertical stripes
================================================================== */
.g-industries {
  background: var(--white);
  padding: clamp(72px, 9vw, 130px) 0;
}
.g-industries-head {
  margin-bottom: 56px;
  max-width: 700px;
}
.g-industries-head h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 18px 0 14px;
}
.g-industries-head p {
  color: var(--slate);
  font-size: 16px;
  max-width: 56ch;
}

.g-ind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.g-ind {
  padding: 32px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: background .25s ease;
  min-height: 200px;
}
.g-ind:last-child { border-right: 0; }
.g-ind:hover { background: var(--paper); }
.g-ind .ic {
  width: 32px; height: 32px;
  color: var(--gold-deep);
  margin-bottom: auto;
}
.g-ind h4 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy-900);
  margin: 0;
  line-height: 1.2;
}
.g-ind p {
  font-size: 13px;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .g-ind-grid { grid-template-columns: 1fr 1fr; }
  .g-ind:nth-child(2n) { border-right: 0; }
  .g-ind:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .g-ind-grid { grid-template-columns: 1fr; }
  .g-ind { border-right: 0; border-bottom: 1px solid var(--line); }
  .g-ind:last-child { border-bottom: 0; }
}

/* ==================================================================
   SECTION: NEWSLETTER
================================================================== */
.g-newsletter {
  background: var(--navy-900);
  color: var(--white);
  padding: clamp(56px, 7vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.g-newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 0% 100%, rgba(201,162,75,.18), transparent 60%);
}
.g-newsletter-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.g-newsletter h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 18px 0 14px;
  max-width: 18ch;
}
.g-newsletter p {
  color: rgba(255,255,255,.72);
  font-size: 15px;
  max-width: 48ch;
  margin: 0;
}
.g-newsletter-form {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 6px;
  align-items: center;
}
.g-newsletter-form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--white);
  font: 500 14px var(--sans);
  padding: 12px 18px;
  letter-spacing: 0.01em;
}
.g-newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.g-newsletter-form button {
  background: var(--gold);
  color: var(--navy-900);
  border-radius: 999px;
  padding: 12px 22px;
  font: 600 13px var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.g-newsletter-form button:hover {
  background: var(--gold-soft);
  transform: translateX(2px);
}
.g-newsletter small {
  display: block;
  margin-top: 14px;
  color: rgba(255,255,255,.45);
  font-size: 12px;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .g-newsletter-inner { grid-template-columns: 1fr; }
}

/* ==================================================================
   Placeholder banner — letting the user know which content is mock
================================================================== */
.g-placeholder-banner {
  position: relative;
  background: rgba(201,162,75,.10);
  border-bottom: 1px solid rgba(201,162,75,.25);
  padding: 12px 0;
  font-size: 12px;
  color: var(--navy-800);
  text-align: center;
  letter-spacing: 0.02em;
}
.g-placeholder-banner strong { color: var(--gold-deep); }

/* ==================================================================
   E-book spotlight card
================================================================== */
.g-spotlight--ebook {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.g-spot-ebook-icon {
  width: 52px;
  height: 52px;
  color: var(--gold);
  margin-bottom: 4px;
}
.g-spotlight--diag{display:flex;flex-direction:column;gap:14px}
.g-spotlight--diag .g-spot-title{margin-top:8px}
.g-diag-list{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:10px}
.g-diag-list li{display:flex;align-items:flex-start;gap:10px;font-size:15px;color:rgba(255,255,255,.88);line-height:1.4}
.g-diag-list svg{width:16px;height:16px;flex-shrink:0;margin-top:2px;color:var(--gold-soft)}
.g-diag-note{font-size:12px;letter-spacing:.04em;color:rgba(255,255,255,.6)}
.g-spot-dl-btn .icn{width:18px;height:18px}
.g-spot-dl-btn {
  align-self: flex-start;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 12px 22px;
}

/* ==================================================================
   E-book lead capture modal
================================================================== */
.ebook-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  padding: 20px;
}
.ebook-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.ebook-modal {
  background: var(--paper);
  border-radius: 16px;
  max-width: 740px;
  width: 100%;
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.28s ease;
  box-shadow: 0 32px 80px rgba(0,0,0,0.28);
}
.ebook-overlay.active .ebook-modal {
  transform: translateY(0) scale(1);
}
.ebook-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  z-index: 2;
  transition: background 0.18s;
}
.ebook-close:hover { background: rgba(0,0,0,0.1); }
.ebook-close svg { width: 16px; height: 16px; }

/* Left cover panel */
.ebook-modal-left {
  background: var(--navy-900, #0d1424);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.ebook-cover {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
}
.ebook-cover-tag {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 8px;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
}
.ebook-cover-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  color: #fff;
  margin-top: 6px;
}
.ebook-cover-sub {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}
.ebook-cover-logo {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-top: auto;
  padding-top: 32px;
}

/* Right form panel */
.ebook-modal-right {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ebook-modal-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.ebook-modal-right h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.ebook-modal-right p {
  font-size: 14px;
  color: var(--ink-muted, #666);
  margin: 0;
}
.ebook-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.ebook-field label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.ebook-field input {
  border: 1.5px solid var(--border, #ddd);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.18s;
  outline: none;
}
.ebook-field input:focus { border-color: var(--gold); }
.ebook-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ebook-lgpd {
  display: block;
  font-size: 11px;
  color: var(--ink-muted, #999);
  margin-top: 4px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .ebook-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .ebook-modal {
    grid-template-columns: 1fr;
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 92dvh;
    overflow-y: auto;
  }
  .ebook-overlay.active .ebook-modal {
    transform: translateY(0);
  }
  .ebook-modal-left { display: none; }
  .ebook-modal-right {
    padding: 32px 24px 40px;
    gap: 14px;
  }
  .ebook-modal-right h3 { font-size: 20px; }
  .ebook-field input {
    padding: 14px 16px;
    font-size: 16px; /* evita zoom automático no iOS */
  }
  .ebook-submit {
    padding: 16px 20px;
    font-size: 16px;
  }
  /* Handle bar visual */
  .ebook-modal-right::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: var(--line, #ddd);
    border-radius: 2px;
    margin: -8px auto 12px;
  }
  .ebook-close {
    top: 18px;
    right: 18px;
    background: var(--surface, #f0efe9);
  }
}
