/* fx/dive: "o mergulho". A sticky stage inside a tall section; dive.js drives it with one scrubbed timeline. */
#mergulho { position: relative; height: 360svh; height: calc(100svh * 3.6); font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }
@media (max-width: 700px) { :root { --dv-hp: 40svh; } #mergulho { height: calc(100svh * 3.4); } }
#mergulho .dv-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 1; }
#mergulho .dv-plate, #mergulho .dv-card {
  position: absolute; left: 50%; top: 50%; width: min(1160px, calc(100% - 48px)); aspect-ratio: 16 / 9; margin: 0;
  translate: -50% -50%; border-radius: 36px; transform-origin: 50% 50%;
}
@media (max-width: 700px) { #mergulho .dv-plate, #mergulho .dv-card { aspect-ratio: 5 / 8; } }
#mergulho .dv-plate-a { background: #f5c26b; box-shadow: 0 18px 40px rgba(31, 63, 120, .18); }
#mergulho .dv-plate-b { background: #8ab4f8; box-shadow: 0 18px 40px rgba(31, 63, 120, .18); }
#mergulho .dv-card {
  overflow: hidden; isolation: isolate; background: radial-gradient(120% 95% at 50% 38%, #2f5fb0 0%, #1f3f78 58%, #142c5c 100%);
  box-shadow: 0 34px 80px rgba(20, 44, 92, .34), 0 2px 0 rgba(255, 255, 255, .08) inset;
}
:root[data-theme="dark"] #mergulho .dv-card { box-shadow: 0 34px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #mergulho .dv-card { box-shadow: 0 34px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07); } }
#mergulho .dv-bg, #mergulho .dv-world, #mergulho .dv-scrim { position: absolute; inset: 0; pointer-events: none; }
#mergulho .dv-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
#mergulho .dv-scrim { opacity: 0; background: linear-gradient(0deg, rgba(10, 24, 60, .62) 0%, rgba(10, 24, 60, .22) 34%, rgba(10, 24, 60, 0) 58%); }
#mergulho .dv-o { position: absolute; left: 50%; top: 50%; display: block; max-width: none; user-select: none; -webkit-user-drag: none; transform-origin: 50% 50%; visibility: hidden; }
#mergulho.dv-live .dv-o, #mergulho.dv-live .dv-card, #mergulho.dv-live .dv-plate, #mergulho.dv-live .dv-bg img { will-change: transform; }
#mergulho .dv-overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#mergulho .dv-cap {
  position: absolute; left: 0; right: 0; bottom: 9%; margin: 0 auto; padding: 0 24px; max-width: 920px; box-sizing: border-box; text-align: center;
  color: #fff; font-weight: 300; font-size: clamp(32px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance;
  text-shadow: 0 1px 2px rgba(8, 20, 60, .45), 0 2px 34px rgba(8, 20, 60, .7); opacity: 0;
}
#mergulho .dv-cap b { font-weight: 300; color: #f5c26b; }
#mergulho .dv-cat { position: absolute; left: 50%; top: 46%; width: 270px; margin: -300px 0 0 -135px; opacity: 0; z-index: 1; }
#mergulho .dv-cat { filter: drop-shadow(0 18px 24px rgba(6, 16, 44, .4)); }
#mergulho .dv-cat img { width: 100%; height: auto; display: block; clip-path: inset(3.8% 4.26%); }
#mergulho .dv-notif {
  position: absolute; left: 50%; top: 46%; width: min(640px, calc(100% - 40px)); margin: -58px 0 0 0; z-index: 2; opacity: 0; box-sizing: border-box;
  border-radius: 24px; padding: 15px 18px; display: flex; gap: 12px; align-items: center; color: #171717;
  background: rgba(255, 255, 255, .84); border: 1px solid rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px rgba(6, 16, 44, .38);
}
#mergulho .dv-n-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; background: #fff; border: 1px solid #e3e5ea; display: flex; align-items: center; justify-content: center; }
#mergulho .dv-n-ico img { width: 34px; height: 34px; display: block; }
#mergulho .dv-n-body { min-width: 0; flex: 1; }
#mergulho .dv-n-top { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; }
#mergulho .dv-n-top span + span { color: #6b7280; font-weight: 500; }
#mergulho .dv-n-txt { font-size: 19px; line-height: 1.4; margin-top: 2px; }
#mergulho .dv-bell { position: absolute; left: 50%; top: 46%; width: 130px; height: auto; margin: -196px 0 0 250px; opacity: 0; z-index: 3; filter: drop-shadow(0 14px 18px rgba(6, 16, 44, .35)); }
/* phone: payoff stacked bottom-up from the top edge of the rising panel (--dv-hp), so the caption is never covered */
@media (max-width: 700px) {
  #mergulho .dv-cat, #mergulho .dv-notif, #mergulho .dv-bell { top: auto; }
  #mergulho .dv-cap { font-size: clamp(32px, 9.4vw, 42px); bottom: 12%; padding: 0 18px; }
  #mergulho .dv-cap[data-dv="c3"] { bottom: calc(var(--dv-hp) + 22px); }
  /* the payoff group starts lower (centered in the open blue) and rides up as the panel rises; `translate` composes with the JS transforms */
  #mergulho .dv-cap[data-dv="c3"], #mergulho .dv-cat, #mergulho .dv-notif, #mergulho .dv-bell { translate: 0 calc(var(--dv-lift, 0) * 1px); }
  #mergulho .dv-notif { bottom: calc(var(--dv-hp) + 118px); margin: 0; width: calc(100% - 28px); padding: 13px 15px; border-radius: 22px; }
  #mergulho .dv-cat { width: 150px; margin: 0 0 0 -75px; bottom: calc(var(--dv-hp) + 178px); }
  #mergulho .dv-bell { width: 66px; margin: 0 0 0 68px; bottom: calc(var(--dv-hp) + 258px); }
  #mergulho .dv-n-txt { font-size: 14.5px; line-height: 1.38; }
  #mergulho .dv-n-ico { width: 40px; height: 40px; }
  #mergulho .dv-n-ico img { width: 30px; height: 30px; }
  #mergulho .dv-n-top { font-size: 13px; }
  #mergulho .dv-scrim { background: linear-gradient(0deg, rgba(10, 24, 60, .7) 0%, rgba(10, 24, 60, .3) 36%, rgba(10, 24, 60, 0) 62%); }
}
@media (max-width: 700px) and (max-height: 700px) {
  #mergulho .dv-cat { width: 118px; margin-left: -59px; }
  #mergulho .dv-bell { width: 54px; margin-left: 54px; bottom: calc(var(--dv-hp) + 236px); }
}
@media (max-width: 700px) and (max-height: 600px) {
  #mergulho .dv-cat { width: 96px; margin-left: -48px; bottom: calc(var(--dv-hp) + 170px); }
  #mergulho .dv-bell { width: 46px; margin-left: 44px; bottom: calc(var(--dv-hp) + 218px); }
}
#mergulho .dv-bell-in { clip-path: inset(3.83% 4.06%); display: block; width: 100%; height: auto; animation: dv-bob 3.2s ease-in-out infinite; }
@keyframes dv-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(5deg); } }
#mergulho .dv-panel {
  position: absolute; left: 0; right: 0; bottom: 0; height: 50svh; height: 50vh; height: 50svh; z-index: 3; background: var(--canvas);
  border-radius: 40px 40px 0 0; box-shadow: 0 -24px 60px rgba(8, 20, 60, .28);
}
@media (max-width: 700px) { #mergulho .dv-panel { border-radius: 30px 30px 0 0; height: var(--dv-hp); } }
#mergulho .dv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
#mergulho .dv-capline { display: none; }

/* Reduced motion / no JS-driven pin: a static, composed card. */
#mergulho.dv-static { height: auto; padding: clamp(28px, 5vw, 64px) 0; }
#mergulho.dv-static .dv-stage { position: relative; height: auto; overflow: visible; display: grid; place-items: center; }
#mergulho.dv-static .dv-plate, #mergulho.dv-static .dv-card { position: relative; left: auto; top: auto; translate: none; grid-area: 1 / 1; }
#mergulho.dv-static .dv-plate { transform: rotate(-4deg) translate(-8px, -14px); }
#mergulho.dv-static .dv-plate-b { transform: rotate(-2deg) translate(6px, -8px); }
#mergulho.dv-static .dv-overlay { position: relative; inset: auto; grid-area: 1 / 1; width: min(1160px, calc(100% - 48px)); aspect-ratio: 16 / 9; }
@media (max-width: 700px) { #mergulho.dv-static { --dv-hp: 14px; } #mergulho.dv-static .dv-overlay { aspect-ratio: 5 / 8; } }
#mergulho.dv-static .dv-panel, #mergulho.dv-static .dv-cap { display: none; }
#mergulho.dv-static .dv-scrim { opacity: 1; }
#mergulho.dv-static .dv-cat, #mergulho.dv-static .dv-notif, #mergulho.dv-static .dv-bell { opacity: 1; }
#mergulho.dv-static .dv-capline {
  display: block; position: absolute; left: 0; right: 0; bottom: 7%; margin: 0 auto; padding: 0 24px; max-width: 760px; box-sizing: border-box; text-align: center;
  color: #fff; font-weight: 300; font-size: clamp(24px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; text-shadow: 0 2px 24px rgba(8, 20, 60, .55);
}
#mergulho.dv-static .dv-capline b { font-weight: 300; color: #f5c26b; }
@media (max-width: 700px) { #mergulho.dv-static .dv-capline { font-size: 24px; bottom: 6%; } }
