/* fx/scenes: the four pinned scenes of #diferente, dressed as stages like the dive.
   Final (reduced-motion) state is the default here; app.js SCENES writes the animated states inline. */
.sc-wrap { max-width: 1160px; width: 100%; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; }
@media (min-width: 840px) { .sc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }

/* text column: huge light display type with a bold keyword, like the new sections */
.sc-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sc-eb { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--focus); }
.sc-h { margin: 0; font-size: clamp(30px, 4.3vw, 58px); line-height: 1.04; letter-spacing: -.04em; font-weight: 300; text-wrap: balance; color: var(--ink); }
.sc-h b { font-weight: 700; }
.sc-p { margin: 0; max-width: 420px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55; color: var(--ink2); text-wrap: pretty; }

/* the stage */
.sc-col { min-width: 0; }
.sc-stage {
  --s: 1; --c-ink: #171717; --c-ink2: #525866; --c-ink3: #6b7280; --c-line: #e3e5ea; --c-focus: #315ea8; --c-focusbg: rgba(49, 94, 168, .12);
  --c-ok: #176945; --c-okbg: #e8f5ec;
  position: relative; width: 100%; height: min(600px, 74vh); isolation: isolate; container-type: inline-size; color: #fff;
}
@media (max-width: 839px) { .sc-stage { height: clamp(300px, 52svh, 640px); } }
@media (max-width: 520px) { .sc-stage { --s: .84; } }
.sc-plate { position: absolute; inset: 0; z-index: -1; border-radius: 36px; background: var(--plate, #f5c26b); transform: rotate(var(--pr, -3deg)) translate(-6px, 8px); box-shadow: 0 18px 40px rgba(31, 63, 120, .18); }
.sc-clip {
  position: absolute; inset: 0; border-radius: 36px; 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"] .sc-clip { 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"]) .sc-clip { box-shadow: 0 34px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07); } }
.sc-bg { position: absolute; inset: -6%; background: url(/assets/mergulho/00-fundo.webp) center / cover no-repeat; transform: scale(1.04); }
.sc-ui { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; box-sizing: border-box; pointer-events: none; }
.sc-ui > * { pointer-events: auto; }
.sc-pop { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.sc-o { position: absolute; }
.sc-o img { display: block; width: 100%; height: auto; clip-path: inset(3.5% 4%); }
.sc-pp, .sc-bub { filter: drop-shadow(0 16px 20px rgba(6, 16, 44, .42)); }
.sc-pp { transform-origin: 50% 60%; }
.sc-spr { position: absolute; display: block; background: url(/assets/mergulho/10-enfeites.webp) no-repeat; background-size: 200% 200%; filter: drop-shadow(0 8px 10px rgba(6, 16, 44, .35)); }
.sc-spr.s1 { background-position: 0 0; } .sc-spr.s2 { background-position: 100% 0; }
.sc-spr.s3 { background-position: 0 100%; } .sc-spr.s4 { background-position: 100% 100%; }
.sc-bob { animation: sc-bob 3.6s ease-in-out infinite; }
@keyframes sc-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(4deg); } }

/* white product card (scenes 01 and 02) */
.sc-c {
  zoom: var(--s); box-sizing: border-box; padding: 22px; border-radius: 26px; color: var(--c-ink);
  background: rgba(255, 255, 255, .93); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 60px rgba(6, 16, 44, .4);
  display: flex; flex-direction: column; gap: 14px;
}
.sc-t { font-size: 14px; font-weight: 700; color: var(--c-ink3); }
.sc-fl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sc-l { font-size: 13px; font-weight: 600; color: var(--c-ink2); }
.sc-field { min-height: 54px; box-sizing: border-box; border-radius: 14px; border: 1.5px solid var(--c-focus); box-shadow: 0 0 0 4px var(--c-focusbg); padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sc-chip { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--c-focusbg); color: var(--c-focus); font-size: 14px; font-weight: 700; white-space: nowrap; }
.sc-typing { font-size: 16px; padding: 0 4px; display: flex; align-items: center; color: var(--c-ink); }
.sc-caret { width: 2px; height: 20px; background: var(--c-focus); margin-left: 1px; animation: sc-blink 1s steps(2, start) infinite; }
@keyframes sc-blink { to { visibility: hidden; } }
.sc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-in { height: 48px; border-radius: 12px; border: 1px solid var(--c-line); display: flex; align-items: center; padding: 0 14px; font-size: 16px; font-weight: 700; background: #fff; }
.sc-okt { color: var(--c-ok); }
.sc-chart { position: relative; width: 100%; }
.sc-chart svg, .sc-cb svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.sc-gridl line { stroke: rgba(23, 23, 23, .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sc-ln { fill: none; stroke: #315ea8; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sc-tl { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--c-ok); transform-origin: left center; }
.sc-hit { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 5px rgba(23, 105, 69, .18), 0 0 16px rgba(23, 105, 69, .5); }
.sc-lbl { position: absolute; right: 0; }
.sc-tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; box-sizing: border-box; }
.sc-tag.ok { background: var(--c-okbg); color: var(--c-ok); }
.sc-tag.fo { background: var(--c-focusbg); color: var(--c-focus); }

/* glass panel on the blue stage (scenes 03 and 04) */
.sc-g {
  zoom: var(--s); box-sizing: border-box; padding: 24px 24px 20px; border-radius: 28px; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(6, 16, 44, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.sc-w { width: min(82%, 500px); } .sc-w-d { width: min(76%, 440px); } .sc-w-g { width: min(92%, 580px); }
@media (max-width: 520px) { .sc-w { width: 90%; } .sc-w-d { width: 86%; } .sc-w-g { width: 94%; } }
.sc-gh { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.sc-gl { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .74); }
.sc-gp { margin-top: 2px; }
.sc-price { font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.sc-gs { display: grid; margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .62); }
.sc-gs > span { grid-area: 1 / 1; }
.sc-g .sc-tag.ok { background: rgba(94, 224, 143, .18); color: #9bf2bc; box-shadow: inset 0 0 0 1px rgba(94, 224, 143, .45); }
.sc-g .sc-tag.er { background: rgba(255, 112, 100, .2); color: #ffc2bb; box-shadow: inset 0 0 0 1px rgba(255, 140, 128, .5); }
.sc-cb { position: relative; width: 100%; margin-bottom: 30px; }
.sc-g4 .sc-cb { margin-bottom: 8px; }
.sc-g .sc-gridl line { stroke: rgba(255, 255, 255, .13); }
.sc-g .sc-ln { stroke-width: 3.8; }
.sc-g .sc-ln-w { stroke: #fff; }
.sc-g .sc-ln-g { stroke: rgba(138, 180, 248, .5); stroke-width: 12; filter: blur(3px); }
.sc-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.sc-dot i { position: absolute; inset: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .22), 0 0 18px 4px rgba(138, 180, 248, .7); }
.sc-dot4 i.g { background: #5ee08f; box-shadow: 0 0 0 6px rgba(94, 224, 143, .26), 0 0 26px 8px rgba(94, 224, 143, .65); }
.sc-dot4 i.g::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(94, 224, 143, .7); animation: sc-ping 1.9s ease-out infinite; }
@keyframes sc-ping { from { transform: scale(.7); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.sc-tl-w { border-top: 2px dashed rgba(94, 224, 143, .85); }
.sc-xl { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .62); padding: 0 2px; }

/* scene 02: the bubbles that become one card */
.sc-ui2 { padding-bottom: 17%; }
.sc-dup { gap: 10px; padding: 24px; }
.sc-src { font-size: 13px; font-weight: 600; color: var(--c-ink3); }
.sc-pn { font-size: 20px; font-weight: 700; }
.sc-pr { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.sc-dup .sc-price { font-size: 36px; }
.sc-av { display: flex; padding-top: 2px; }
.sc-av span { width: 30px; height: 30px; margin-right: -8px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; color: #fff; border: 2px solid #fff; background: #315ea8; }
.sc-av span:nth-child(2) { background: #5a86c9; } .sc-av span:nth-child(3) { background: #1f3f78; } .sc-av span:nth-child(4) { background: #f5c26b; color: #5a3a05; }
.sc-slot { position: absolute; left: 50%; top: calc(50% - 8.5%); width: 38cqw; height: 26cqw; margin: -13cqw 0 0 -19cqw; border-radius: 26px; border: 2px dashed rgba(255, 255, 255, .5); opacity: 0; pointer-events: none; }
.sc-cap { position: absolute; left: 0; right: 0; bottom: 6%; margin: 0; padding: 0 16px; display: grid; justify-items: center; text-align: center; font-size: clamp(22px, 5.4cqw, 36px); font-weight: 300; letter-spacing: -.035em; line-height: 1.1; color: #fff; text-shadow: 0 2px 24px rgba(8, 20, 60, .6); }
.sc-cap > span { grid-area: 1 / 1; }
.sc-cap b { font-weight: 300; color: #f5c26b; }
.sc-bub { left: 50%; top: 44%; width: 25cqw; margin: -11.5cqw 0 0 -12.5cqw; opacity: 0; }
.sc-pill { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* scene 03: the bait tag */
.sc-bait { position: absolute; width: 112px; height: 44px; margin: -22px 0 0 -56px; filter: drop-shadow(0 10px 12px rgba(90, 8, 8, .5)); }
.sc-bait-t {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 14px; box-sizing: border-box; font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: #fff;
  background: linear-gradient(180deg, #f4685b, #c9322a); clip-path: polygon(0 50%, 16px 0, 100% 0, 100% 100%, 16px 100%); transform: rotate(-5deg); border-radius: 6px; white-space: nowrap;
}
.sc-bait-t::before { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #7d1812; box-shadow: 0 1px 0 rgba(255, 255, 255, .4); }
.sc-ring { position: absolute; inset: -10px -8px; border-radius: 16px; border: 2px solid #ff9b91; animation: sc-pulse 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes sc-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.fx-bait-handle { left: calc(var(--bx, 55.3%) - 64px); top: calc(var(--by, 87.7%) - 30px); width: 128px; height: 60px; border-radius: 16px; z-index: 5; }
.fx-bait-hint { left: 0; right: 0; top: calc(100% + 8px); text-align: center; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .82); }
.fx-bait-hint::before { content: "\261D\FE0E  "; }

@media (max-width: 520px) { .sc-price { font-size: 28px; } .sc-pill { font-size: 11px; padding: 4px 9px; } }
@media (prefers-reduced-motion: reduce) {
  .sc-bob, .sc-caret, .sc-ring, .sc-dot4 i.g::after { animation: none; }
  .sc-bait, .sc-ring { display: none; }
  .sc-slot, .sc-caret { display: none; }
}
