/* Hero B · Pergunte — Dra. Izabella Cunha */
:root {
  /* cor */
  --b-vinho: #84444f;
  --b-vinho-esc: #6c3640;
  --b-vinho-tinta: #5a2a35;
  --b-rose: #b88088;
  --b-rose-txt: #95596a;
  --b-po: #ecdfe2;
  --b-po-2: #f5ecee;
  --b-pink: #a62c4b;
  --b-pink-2: #bb4d59;
  --b-ouro: #b08a5c;
  --b-ouro-txt: #7a5b38;
  --b-pele-clara: #f0dcd5;
  --b-tinta: #3a2226;
  --b-tinta-2: #573a40;
  --b-parede: #ece2e7;
  --b-parede-2: #ebe4ec;
  --b-base: #eee5e9;
  --b-papel: #fffdfd;

  /* fonte */
  --b-f-tit: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", system-ui, sans-serif;
  --b-f-txt: "Cabin", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* espaço */
  --b-hh: 76px;
  --b-padx: clamp(20px, 5.5vw, 96px);
  --b-split: 48vw;
  --b-deckw: clamp(390px, 33vw, 480px);
  --b-over: clamp(60px, 9vw, 150px);
  --b-peek: 28px;
  --b-raio: 26px;

  /* movimento */
  --b-ease: cubic-bezier(.22, .7, .2, 1);
  --b-ease-suave: cubic-bezier(.33, .1, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--b-base);
  color: var(--b-tinta);
  font-family: var(--b-f-txt);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--b-pink); outline-offset: 3px; border-radius: 8px; }

/* ---------- cabeçalho ---------- */
.b-top {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  height: var(--b-hh);
  display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px);
  padding: 0 var(--b-padx);
  animation: b-surge .9s var(--b-ease) both;
}
.b-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.b-logo__mono {
  width: 46px; height: auto; flex: none;
  fill: none; stroke: var(--b-ouro); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round;
}
.b-logo__txt { display: flex; flex-direction: column; line-height: 1.1; }
.b-logo__nome { font-family: var(--b-f-tit); font-weight: 700; font-size: 17px; color: var(--b-tinta); letter-spacing: .005em; }
.b-logo__area { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--b-tinta-2); margin-top: 3px; }
.b-nav { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.b-nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--b-tinta);
  padding: 6px 2px; background: linear-gradient(var(--b-pink), var(--b-pink)) 0 100% / 0 1.5px no-repeat;
  transition: background-size .35s var(--b-ease);
}
.b-nav a:hover { background-size: 100% 1.5px; }
.b-top__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--b-vinho-esc);
  background: rgb(255 255 255 / .72);
  border: 1px solid rgb(132 68 79 / .32);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .3s, color .3s;
}
.b-top__cta:hover { background: var(--b-vinho); color: #fff; }
.b-top__cta svg { width: 18px; height: 18px; }
.b-top__cta-s { display: none; }

/* ---------- hero ---------- */
.b-hero {
  position: relative;
  min-height: max(100svh, 620px);
  overflow: clip;
  isolation: isolate;
  background: var(--b-base);
}

/* malha: manchas radiais em oklab, cores da parede e do rosa-pó */
.b-mesh { position: absolute; inset: 0; z-index: 0; overflow: clip; pointer-events: none; }
.b-mesh i {
  position: absolute; display: block; border-radius: 50%;
  width: 95%; aspect-ratio: 1;
  will-change: transform;
}
.b-mesh i:nth-child(1) { left: -30%; top: -40%; background: radial-gradient(closest-side in oklab, #ebe4ec, rgb(235 228 236 / 0)); animation: b-deriva-1 31s var(--b-ease-suave) infinite alternate; }
.b-mesh i:nth-child(2) { left: -10%; top: 5%;  width: 80%; background: radial-gradient(closest-side in oklab, #f6eef0, rgb(246 238 240 / 0)); animation: b-deriva-2 27s var(--b-ease-suave) infinite alternate; }
.b-mesh i:nth-child(3) { left: -35%; top: 45%; background: radial-gradient(closest-side in oklab, #ead9de, rgb(234 217 222 / 0)); animation: b-deriva-3 36s var(--b-ease-suave) infinite alternate; }
.b-mesh i:nth-child(4) { left: 15%; top: 40%; width: 75%; background: radial-gradient(closest-side in oklab, #f1e0da, rgb(241 224 218 / 0)); animation: b-deriva-2 33s var(--b-ease-suave) -9s infinite alternate-reverse; }
.b-mesh i:nth-child(5) { left: 22%; top: -25%; width: 60%; background: radial-gradient(closest-side in oklab, #e9dbe4, rgb(233 219 228 / 0)); animation: b-deriva-1 24s var(--b-ease-suave) -6s infinite alternate-reverse; }

@keyframes b-deriva-1 { to { transform: translate3d(12%, 9%, 0) scale(1.08); } }
@keyframes b-deriva-2 { to { transform: translate3d(-9%, 7%, 0) scale(.93); } }
@keyframes b-deriva-3 { to { transform: translate3d(10%, -8%, 0) scale(1.06); } }

.b-grao {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.12 0 0 0 0 0.15 0 0 0 1.4 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* o "?" grande e translúcido das lâminas dela */
.b-interroga {
  position: absolute; z-index: 1; pointer-events: none;
  left: calc(var(--b-padx) - .09em); bottom: -.2em;
  font-family: var(--b-f-tit); font-weight: 900; line-height: 1;
  font-size: min(64vh, 40vw);
  color: rgb(184 128 136 / .12);
  animation: b-interroga 1.8s var(--b-ease) .5s both;
}
@keyframes b-interroga { from { opacity: 0; transform: translateY(4%); } to { opacity: 1; transform: none; } }

/* foto */
.b-foto {
  position: absolute; z-index: 1; margin: 0;
  top: 0; right: 0; bottom: 0; width: calc(100vw - var(--b-split));
  animation: b-foto-entra 1.6s var(--b-ease) .1s both;
}
.b-foto img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 16%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%), linear-gradient(to top, transparent 0, #000 12%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 24%), linear-gradient(to top, transparent 0, #000 12%);
  mask-composite: intersect;
}
@keyframes b-foto-entra { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }

/* conteúdo */
.b-inner {
  position: relative; z-index: 3;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, calc(var(--b-split) - var(--b-padx))) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  row-gap: clamp(18px, 3vh, 40px);
  padding: calc(var(--b-hh) + clamp(10px, 4vh, 56px)) 0 clamp(18px, 3.4vh, 40px) var(--b-padx);
}
.b-copy { grid-column: 1; grid-row: 1; padding-right: clamp(12px, 2vw, 28px); }

.b-eyebrow {
  margin: 0 0 clamp(10px, 2vh, 20px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--b-vinho);
  animation: b-surge .9s var(--b-ease) .05s both;
}
.b-eyebrow__reg { color: var(--b-ouro-txt); display: inline-flex; align-items: center; gap: 12px; }
.b-eyebrow__reg::before { content: ""; width: 26px; height: 1.5px; border-radius: 2px; background: var(--b-ouro); }

.b-titulo { margin: 0; font-family: var(--b-f-tit); font-weight: 500; }
.b-titulo__a {
  display: block;
  font-weight: 900;
  font-size: clamp(64px, min(8.6vw, 13.6vh), 136px);
  line-height: .98; letter-spacing: -.025em;
  color: var(--b-vinho);
  animation: b-surge 1s var(--b-ease) .12s both;
}
.b-ponto { color: var(--b-pink); }
.b-titulo__b {
  display: block;
  margin-top: .3em;
  font-size: clamp(26px, min(2.85vw, 5.1vh), 46px);
  line-height: 1.15; letter-spacing: -.01em;
  color: var(--b-tinta);
  text-wrap: balance;
  animation: b-surge 1s var(--b-ease) .26s both;
}
.b-apoio {
  margin: clamp(12px, 2.2vh, 22px) 0 0;
  max-width: 35ch;
  font-size: clamp(17px, 1.25vw, 19px); line-height: 1.5;
  color: var(--b-tinta-2);
  animation: b-surge 1s var(--b-ease) .38s both;
}
.b-acoes {
  margin-top: clamp(16px, 3vh, 30px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  animation: b-surge 1s var(--b-ease) .5s both;
}
.b-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px 15px 22px; border-radius: 999px;
  background: var(--b-vinho); color: #fff;
  font-size: 17px; font-weight: 600; text-decoration: none; letter-spacing: .005em;
  box-shadow: 0 14px 30px -14px rgb(108 54 64 / .7), inset 0 1px 0 rgb(255 255 255 / .18);
  transition: background-color .3s, transform .3s var(--b-ease), box-shadow .3s;
}
.b-btn svg { width: 21px; height: 21px; }
.b-btn:hover { background: var(--b-vinho-esc); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgb(108 54 64 / .75); }
.b-link {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--b-vinho-esc); font-weight: 600; font-size: 16px; line-height: 1.2;
}
.b-link svg { width: 22px; height: 22px; flex: none; }
.b-link span { display: flex; flex-direction: column; }
.b-link small { font-size: 13px; font-weight: 400; color: var(--b-tinta-2); margin-top: 2px; }
.b-link:hover span { text-decoration: underline; text-underline-offset: 3px; }

@keyframes b-surge { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- pilha de cartões ---------- */
.b-deck {
  grid-column: 1 / -1; grid-row: 2;
  align-self: end; justify-self: start;
  position: relative;
  width: var(--b-deckw);
  margin-left: calc(var(--b-split) - var(--b-padx) - var(--b-deckw) + var(--b-over));
  touch-action: pan-y;
}
.b-deck__pilha { display: grid; padding-top: var(--b-peek); }
.b-card {
  grid-area: 1 / 1;
  position: relative;
  display: flex; flex-direction: column;
  padding: 20px 26px 20px;
  border-radius: var(--b-raio);
  background: var(--b-papel);
  box-shadow:
    0 1px 0 rgb(255 255 255 / .9) inset,
    0 30px 50px -30px rgb(90 42 53 / .45),
    0 8px 18px -10px rgb(90 42 53 / .22);
  transform-origin: 50% 0;
  transition: transform .95s var(--b-ease), opacity .6s var(--b-ease), background-color .6s;
}
.b-card[data-depth="0"] { z-index: 3; }
.b-card[data-depth="1"] { z-index: 2; transform: translateY(-14px) scale(.955); background: #fbf2f4; }
.b-card[data-depth="2"] { z-index: 1; transform: translateY(-27px) scale(.91); background: #f5e7eb; }
.b-card[data-depth="1"] > *, .b-card[data-depth="2"] > * { opacity: 0; transition: opacity .3s; }
.b-card[data-depth="espera"] { z-index: 0; opacity: 0; transform: translateY(26px); pointer-events: none; }
.b-card[data-depth="sai"] { opacity: 0; transition: opacity .28s; }
.b-card[data-depth="entra"] { z-index: 4; opacity: 0; transform: translateY(46px) rotate(-1.4deg) scale(.985); transition: none; }

.b-tag {
  margin: 0; align-self: flex-start;
  display: inline-flex; flex-wrap: wrap; align-items: flex-start;
  font-family: var(--b-f-tit); font-weight: 700; font-size: 13.5px; line-height: 1;
  transform: rotate(-2.2deg); transform-origin: 0 50%;
}
.b-tag span { padding: 6px 10px 6px; }
.b-tag span:first-child { background: #f8e2e9; color: var(--b-pink); }
.b-tag span:last-child { background: var(--b-pink); color: #fff; margin-left: -3px; transform: translateY(7px); }

.b-q {
  margin: 20px 0 0;
  font-family: var(--b-f-tit); font-weight: 700;
  font-size: clamp(18px, 1.32vw, 21px); line-height: 1.32;
  color: var(--b-vinho-tinta);
  letter-spacing: -.008em;
  text-wrap: pretty;
}
.b-a { margin-top: 12px; display: flex; flex-direction: column; flex: 1; }
.b-a::before {
  content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--b-ouro); opacity: .8;
  margin-bottom: 11px;
}
.b-a__txt {
  margin: 0;
  font-size: clamp(16px, 1.12vw, 17px); line-height: 1.5; font-weight: 500;
  color: var(--b-vinho);
}
.b-assina {
  margin: auto 0 0; padding-top: 10px; min-height: 46px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-style: italic; color: var(--b-rose-txt);
}
.b-assina svg {
  width: 36px; height: auto; flex: none;
  fill: none; stroke: var(--b-ouro); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round;
}

.b-deck__ctrl {
  position: absolute; z-index: 10;
  bottom: 13px; right: 14px;
  display: flex; align-items: center; gap: 4px;
}
.b-deck__btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--b-po-2); color: var(--b-vinho);
  transition: background-color .25s, color .25s;
}
.b-deck__btn:hover { background: var(--b-vinho); color: #fff; }
.b-deck__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b-deck__n { font-size: 13px; color: var(--b-tinta-2); min-width: 3.6em; text-align: center; font-variant-numeric: tabular-nums; }
.b-deck__n b { color: var(--b-vinho); font-weight: 700; }

/* escrita da resposta (só com JS e movimento) */
.b-deck--vivo .b-a__txt .w {
  display: inline-block;
  opacity: 0; transform: translateY(.3em); filter: blur(3px);
  transition: opacity .55s var(--b-ease), transform .55s var(--b-ease), filter .55s var(--b-ease);
  transition-delay: calc(var(--k) * 48ms);
}
.b-deck--vivo .b-assina { opacity: 0; transform: translateY(6px); transition: opacity .6s var(--b-ease), transform .6s var(--b-ease); transition-delay: var(--b-sd, 0ms); }
.b-deck--vivo .b-assina path { transition: stroke-dashoffset 1.6s var(--b-ease-suave); transition-delay: calc(var(--b-sd, 0ms) + 150ms); }
.b-deck--vivo .b-a::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--b-ease); }
.b-deck--vivo .is-escrita .b-a::before { transform: none; }
.b-deck--vivo .is-escrita .b-a__txt .w { opacity: 1; transform: none; filter: none; }
.b-deck--vivo .is-escrita .b-assina { opacity: 1; transform: none; }
.b-deck--vivo .is-escrita .b-assina path { stroke-dashoffset: 0 !important; }

.b-card.sem-trans, .b-card.sem-trans *, .b-card.sem-trans *::before { transition: none !important; }
.b-deck__ctrl { transition: opacity .6s var(--b-ease) .9s; }
.b-deck--vivo:not(.b-deck--on) .b-deck__ctrl { opacity: 0; visibility: hidden; }

/* ---------- computador estreito ---------- */
@media (min-width: 900px) and (max-width: 1180px) {
  .b-acoes { gap: 12px 18px; }
  .b-btn { font-size: 16px; padding: 14px 20px 14px 18px; }
  .b-link { font-size: 15px; gap: 7px; }
  .b-link small { font-size: 12.5px; }
  .b-copy { padding-right: 0; }
}

/* ---------- computador baixo ---------- */
@media (min-width: 900px) and (max-height: 800px) {
  :root { --b-peek: 22px; }
  .b-inner { padding-top: calc(var(--b-hh) + 1.5vh); row-gap: 2.2vh; }
  .b-titulo__a { font-size: clamp(60px, min(8.6vw, 12.4vh), 136px); }
  .b-eyebrow { margin-bottom: 1.4vh; }
  .b-apoio { margin-top: 1.6vh; }
  .b-acoes { margin-top: 2.6vh; }
  .b-card { padding: 16px 22px 16px; }
  .b-q { margin-top: 16px; font-size: 18px; }
  .b-a { margin-top: 9px; }
  .b-a::before { margin-bottom: 8px; }
  .b-a__txt { font-size: 15.5px; line-height: 1.45; }
  .b-assina { padding-top: 6px; min-height: 42px; }
  .b-btn { padding: 13px 22px 13px 19px; }
}

/* ---------- celular e tablet em pé ---------- */
@media (max-width: 899.98px) {
  :root { --b-hh: 64px; --b-peek: 24px; }
  .b-top { gap: 12px; }
  .b-nav { display: none; }
  .b-logo__mono { width: 40px; }
  .b-logo__nome { font-size: 16px; }
  .b-logo__area { font-size: 9.5px; letter-spacing: .14em; }

  .b-hero { display: flex; flex-direction: column; min-height: 0; }
  .b-foto {
    position: relative; inset: auto; width: 100%;
    height: clamp(340px, 57svh, 660px);
  }
  .b-interroga { display: none; }
  .b-foto img {
    object-position: 50% 8%;
    -webkit-mask-image: linear-gradient(to bottom, #000 64%, rgb(0 0 0 / .55) 82%, transparent 99%);
    mask-image: linear-gradient(to bottom, #000 64%, rgb(0 0 0 / .55) 82%, transparent 99%);
  }
  .b-inner {
    display: flex; flex-direction: column;
    min-height: 0;
    margin-top: calc(-1 * clamp(60px, 10svh, 120px));
    padding: 0 var(--b-padx) clamp(36px, 6vh, 64px);
    row-gap: 0;
  }
  .b-copy { padding-right: 0; }
  .b-eyebrow { font-size: 11.5px; letter-spacing: .13em; gap: 4px 12px; margin-bottom: 10px; }
  .b-titulo__a { font-size: clamp(54px, 16.5vw, 104px); }
  .b-titulo__b { font-size: clamp(22px, 6.3vw, 36px); margin-top: .22em; }
  .b-apoio { font-size: 17px; max-width: 40ch; }
  .b-acoes { gap: 14px 22px; }
  .b-deck {
    width: 100%; max-width: 600px; margin: clamp(18px, 3vh, 34px) 0 0;
    align-self: flex-start;
  }
  .b-card { padding: 18px 20px 18px; border-radius: 22px; }
  .b-q { font-size: 18.5px; margin-top: 18px; }
  .b-a__txt { font-size: 16.5px; }
  .b-assina { min-height: 0; }
  .b-deck__ctrl { position: static; justify-content: center; gap: 10px; margin-top: 14px; }
  .b-deck__btn { width: 44px; height: 44px; background: rgb(255 255 255 / .75); box-shadow: 0 6px 16px -10px rgb(90 42 53 / .4); }
}
@media (max-width: 600px) {
  .b-foto img { width: 124%; max-width: none; margin-left: -12%; object-position: 50% 6%; }
}
@media (max-width: 420px) {
  .b-top__cta { padding: 9px 14px; font-size: 14px; }
  .b-top__cta-l { display: none; }
  .b-top__cta-s { display: inline; }
  .b-btn { width: 100%; justify-content: center; }
  .b-tag { font-size: 12.5px; }
  .b-tag span { padding: 5px 8px; }
}
@media (max-width: 370px) {
  .b-logo__area { display: none; }
  .b-deck__btn { width: 32px; height: 32px; }
  .b-deck__n { min-width: 3.2em; font-size: 12px; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  .b-mesh i { animation: none !important; }
}
