/* Theme of the car detailing landing page (body.tema-estetica). The "heat" of the forge gives way to the cold
   light of a detailing bay: LED white and a mint that recalls a ceramic coating. Loaded only by that page. */
body.tema-estetica { --ember: #5EF2C0; --ember2: #D9FFF2; }
body.tema-estetica .pulse { box-shadow: 0 0 0 0 rgba(94, 242, 192, .7); animation-name: pulse-mint; }
@keyframes pulse-mint { 70% { box-shadow: 0 0 0 12px rgba(94, 242, 192, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 242, 192, 0); } }

/* ── hero: the bay ─────────────────────────────────────────────── */
.bay { background: #040506; }
.bay__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bay .hero__shade { background: radial-gradient(72% 58% at 20% 38%, rgba(4, 5, 6, .84), transparent 72%), linear-gradient(180deg, rgba(4, 5, 6, .45), transparent 24%, transparent 84%, var(--bg)); }
.bay .hero__in { padding-bottom: 6vh; }
.bay__hud { gap: 14px; color: var(--mute); }
.bay__hud span:last-child { margin-left: 0; min-width: 7.5em; text-align: right; font-variant-numeric: tabular-nums; }
.bay__meter { margin-left: auto; display: block; width: min(200px, 28vw); height: 2px; border-radius: 2px; background: var(--line2); overflow: hidden; }
.bay__meter b { display: block; height: 100%; width: calc(var(--p, 0) * 1%); background: linear-gradient(90deg, var(--ember), #fff); transition: width .25s linear; }
.bay__hud.is-done span:last-child, .bay__hud.is-done span:first-child { color: var(--ember); }
@media (max-width: 600px) { .bay__hud span:last-child { display: inline; min-width: 0; } .bay__meter { width: 22vw; } }
/* on a phone the hood runs behind the text: a darker veil on the left keeps the copy readable */
@media (max-width: 940px) { .bay .hero__shade { background: linear-gradient(90deg, rgba(4, 5, 6, .86), rgba(4, 5, 6, .62) 62%, rgba(4, 5, 6, .15)), linear-gradient(180deg, rgba(4, 5, 6, .45), transparent 24%, transparent 84%, var(--bg)); } }
/* on a computer the gauge sits on the right, in the empty air above the hood, where it is seen without scrolling */
@media (min-width: 941px) {
  .bay__hud { left: auto; right: var(--pad); bottom: auto; top: clamp(250px, 40vh, 380px); flex-direction: column; align-items: flex-end; gap: 12px; }
  .bay__hud .bay__meter { margin-left: 0; width: 220px; }
  .bay__hud span:last-child { font-size: 1.5rem; letter-spacing: .04em; color: var(--text); min-width: 0; }
}

/* ── the 50/50: half the panel dull, half polished, split by masking tape ── */
.ad { max-width: var(--max); margin: 0 auto; padding: clamp(100px, 14vw, 200px) var(--pad) clamp(60px, 8vw, 120px); display: grid; gap: clamp(34px, 5vw, 60px); }
.ad__head { display: grid; gap: 20px; }
.ad__head .sub { color: var(--mute); max-width: 34em; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.ad__stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); isolation: isolate; }
.ad__side { position: relative; padding: clamp(28px, 4.4vw, 64px); display: grid; gap: 8px; align-content: start; }
.ad__side small { font: 500 .76rem/1 var(--disp); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.ad__side li { position: relative; padding: 18px 0 18px 34px; border-top: 1px solid var(--line); font: 600 clamp(1.02rem, 1.55vw, 1.32rem)/1.3 var(--sans); letter-spacing: -.015em; }
.ad__side li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 16px; height: 16px; }
/* before: swirl marks, the fine circular scratches a bad wash leaves behind */
.ad__side--antes { color: var(--dim); background:
  repeating-radial-gradient(circle at 28% 34%, rgba(255, 255, 255, .045) 0 1px, transparent 1px 8px),
  repeating-radial-gradient(circle at 78% 72%, rgba(255, 255, 255, .035) 0 1px, transparent 1px 11px),
  repeating-radial-gradient(circle at 60% 12%, rgba(255, 255, 255, .03) 0 1px, transparent 1px 6px), #16191D; }
.ad__side--antes small { color: var(--dim); }
.ad__side--antes li::before { background: linear-gradient(45deg, transparent 44%, currentColor 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, currentColor 44% 56%, transparent 56%); opacity: .7; }
/* after: black paint with the tubes of the ceiling mirrored on it */
.ad__side--depois { color: var(--text); background:
  linear-gradient(112deg, transparent 36%, rgba(235, 248, 255, .16) 37%, rgba(235, 248, 255, .02) 40.5%, transparent 41%),
  linear-gradient(112deg, transparent 58%, rgba(235, 248, 255, .22) 59%, rgba(235, 248, 255, .02) 64%, transparent 65%),
  linear-gradient(112deg, transparent 80%, rgba(235, 248, 255, .12) 81%, rgba(235, 248, 255, 0) 85%),
  linear-gradient(180deg, #0B0F13, #020304); }
.ad__side--depois small { color: var(--ember); }
.ad__side--depois li { border-top-color: rgba(244, 247, 250, .14); }
.ad__side--depois li::before { border-radius: 50%; background: var(--ember); -webkit-mask: linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0); box-shadow: 0 0 14px rgba(94, 242, 192, .6); width: 10px; height: 10px; left: 5px; top: 1.6em; }
/* the tape */
.ad__side--depois::before { content: ""; position: absolute; z-index: 2; left: -17px; top: -12px; bottom: -12px; width: 34px; transform: rotate(.5deg);
  background: repeating-linear-gradient(0deg, rgba(120, 96, 40, .1) 0 2px, transparent 2px 5px), linear-gradient(90deg, #D9C98F, #EFE1AE 45%, #E3D39A); box-shadow: 0 0 22px rgba(0, 0, 0, .55); }
@media (max-width: 760px) {
  .ad__stage { grid-template-columns: 1fr; }
  .ad__side--depois::before { left: -12px; right: -12px; top: -15px; bottom: auto; width: auto; height: 30px; transform: rotate(-.6deg); }
  .ad__side--depois { padding-top: clamp(44px, 9vw, 64px); }
}
