@font-face { font-family: Manrope; src: url("assets/fonts/manrope-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

/* ---------- cores: troque aqui ---------- */
:root {
  --bg: #0f1012; --panel: #17191c; --ink: #f3f1ea; --muted: #a3a6a9;
  --accent: #f2b705; --accent-ink: #141414;
  --sky-a: #f6b26b; --sky-b: #f08a5d; --sky-c: #6b5b95;  /* pôr do sol */
  --line: rgba(243,241,234,.14);
  --font: Manrope, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
  --pad: clamp(18px, 4.5vw, 64px);
  --track-h: clamp(340px, 62svh, 660px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
em { font: italic 400 1em Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--pad); background: rgba(15,16,18,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid #ffffff40; border-radius: 999px; text-decoration: none; font-size: .8rem; font-weight: 800; }
.nav-cta svg { width: 18px; height: 18px; }
.label { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tick { display: inline-block; width: 7px; height: 7px; background: var(--accent); rotate: 45deg; }

.hero { padding: clamp(26px, 4vw, 48px) var(--pad) 0; max-width: 820px; }
.hero h1 { margin: 0; font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: .98; font-weight: 800; letter-spacing: -.065em; }
.hero h1 em { color: var(--accent); }
.hero .lead { margin: 12px 0 0; max-width: 500px; color: var(--muted); font-size: .95rem; }

/* ---------- pista ---------- */
.track { position: relative; height: var(--track-h); margin-top: clamp(14px, 3vw, 26px); overflow: hidden; user-select: none; -webkit-user-select: none; }
.sky { position: absolute; inset: 0 0 38% 0; background: linear-gradient(180deg, var(--sky-c) 0%, var(--sky-b) 55%, var(--sky-a) 100%); }
.sky::before { /* sol */ content: ""; position: absolute; left: 62%; bottom: 8%; width: clamp(70px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff3c4 0%, #ffd27a 55%, rgba(255,210,122,0) 72%); }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; color: rgba(40, 26, 60, .55); }
.sea { position: absolute; left: 0; right: 0; top: 62%; height: 6%; background: linear-gradient(180deg, #4a6fa5, #2b4a7a); box-shadow: inset 0 2px 0 rgba(255,255,255,.25); }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(180deg, #4a4c50 0%, #2a2c30 30%, #1c1d20 100%); border-top: 6px solid #9a9a96; }
.road .lane { position: absolute; left: 0; right: 0; top: 46%; height: 5px; background: repeating-linear-gradient(90deg, var(--accent) 0 70px, transparent 70px 140px); opacity: .85; }

.rig { position: absolute; left: 0; bottom: calc(var(--track-h) * .085); width: var(--bike-w, 560px); aspect-ratio: var(--bike-ar, 1.4638); will-change: transform; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; }
.rig:focus-visible .bike { filter: drop-shadow(0 0 0 2px var(--accent)); }
.rig-shadow { position: absolute; left: 8%; right: 8%; bottom: 1.5%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent); }
.bike { position: absolute; inset: 0; transform-origin: 50% 92%; will-change: transform; }
.bike .body { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; filter: drop-shadow(0 10px 12px rgba(0,0,0,.35)); }
.bike .wheel { position: absolute; z-index: 1; pointer-events: none; will-change: transform, filter; }
.bubble {
  position: absolute; left: 50%; bottom: 102%; translate: -50% 0; z-index: 3; white-space: nowrap;
  display: grid; justify-items: center; gap: 2px; padding: 10px 16px 11px; border-radius: 14px;
  background: rgba(15,16,18,.88); border: 1px solid var(--line); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .35s var(--ease), transform .45s var(--ease); pointer-events: none;
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; translate: -50% 0; rotate: 45deg; background: inherit; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bubble strong { font-size: .92rem; letter-spacing: -.02em; }
.bubble span { font-size: .78rem; color: var(--accent); font-weight: 800; }
.bubble em { font: 800 .62rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rig.stopped .bubble { opacity: 1; transform: none; }
.speedlines { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.speedlines i { position: absolute; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55)); }
.speedlines i:nth-child(1) { top: 58%; width: 18%; } .speedlines i:nth-child(2) { top: 66%; width: 12%; } .speedlines i:nth-child(3) { top: 72%; width: 22%; } .speedlines i:nth-child(4) { top: 80%; width: 9%; }
.track-hint { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; color: #d6d7d4; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,183,5,.55); } 100% { box-shadow: 0 0 0 12px transparent; } }
.track.dim .sky, .track.dim .sea, .track.dim .road { filter: brightness(.5) blur(2px); transition: filter .5s var(--ease); }

/* ---------- palco ---------- */
.stage { position: relative; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); background: var(--panel); border-top: 1px solid var(--line); }
.stage.open { grid-template-rows: 1fr; }
.stage-inner { position: relative; overflow: hidden; display: grid; gap: 18px; padding: 0 var(--pad); }
.stage.open .stage-inner { padding: 22px var(--pad) 30px; }
.stage-inner > * { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease) .15s, transform .6s var(--ease) .15s; }
.stage.open .stage-inner > * { opacity: 1; transform: none; }
.stage-close { position: absolute; top: 18px; right: var(--pad); z-index: 5; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(25,27,30,.85); cursor: pointer; }
.stage-close svg { width: 20px; height: 20px; }
.tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: #ffffff12; margin-bottom: 10px; }
.tab { min-height: 36px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: .8rem; font-weight: 800; transition: background .25s, color .25s; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.viewer { position: relative; min-width: 0; }
.mv-wrap { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 70svh; border-radius: 18px; overflow: hidden; background: radial-gradient(80% 70% at 50% 45%, #3a3d42 0%, #1b1d20 80%); }
.mv-wrap model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; --poster-color: transparent; --progress-bar-color: transparent; }
.mv-poster { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; opacity: .35; filter: blur(2px); transition: opacity .5s; }
.mv-wrap.ready .mv-poster, .mv-wrap.ready .mv-loading { opacity: 0; pointer-events: none; }
.mv-loading { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: grid; justify-items: center; gap: 8px; font-size: .74rem; font-weight: 700; color: var(--muted); transition: opacity .4s; }
.mv-loading .bar { width: 180px; height: 4px; border-radius: 4px; background: #ffffff1a; overflow: hidden; }
.mv-loading .bar i { display: block; height: 100%; width: 0%; background: var(--accent); transition: width .2s; }
.ar-btn { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .8rem; cursor: pointer; }
.mv-hint, .photo-note { margin: 8px 0 0; font-size: .7rem; color: var(--muted); font-weight: 700; }
.photo { position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: #d9d9d9; }
.photo img { width: 100%; height: 100%; object-fit: contain; }
.photo.loupe-on { cursor: none; touch-action: none; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { width: 74px; aspect-ratio: 3/2; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #ddd; }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.zoom-hint { position: absolute; right: 10px; top: 56px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid #0002; background: rgba(255,255,255,.9); color: #111; font-size: .72rem; font-weight: 800; cursor: pointer; }
.zoom-hint svg { width: 16px; height: 16px; }
.zoom-hint[aria-pressed="true"] { background: #111; color: #fff; }
.loupe { position: fixed; z-index: 80; left: 0; top: 0; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%; pointer-events: none; background: #ddd no-repeat; border: 3px solid #fff; box-shadow: 0 18px 40px rgba(0,0,0,.4); opacity: 0; transform: scale(.6); transition: opacity .18s, transform .25s var(--ease); }
.loupe.show { opacity: 1; transform: scale(1); }

.info { align-self: center; }
.meta { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.badge { padding: 3px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); }
.info h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; letter-spacing: -.04em; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: .84rem; font-weight: 600; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.specs li { padding: 4px 9px; border-radius: 6px; background: #ffffff10; font-size: .74rem; font-weight: 700; }
.desc { margin: 10px 0 0; font-size: .88rem; color: #cfd0cc; max-width: 460px; }
.opt-label { margin: 14px 0 6px; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #ffffff08; cursor: pointer; font-size: .78rem; font-weight: 800; transition: background .2s, color .2s, transform .2s var(--ease); }
.chip:active { transform: scale(.94); }
.chip[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.price-main { margin: 0; font-weight: 700; }
.price-main strong { font-size: 1.45rem; color: var(--accent); letter-spacing: -.03em; }
.price-cash { margin: 0; font-size: .76rem; color: var(--muted); font-weight: 700; }
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-size: .86rem; font-weight: 800; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(112deg, transparent 36%, #fff9 49%, transparent 62%); transform: translateX(-102%); animation: sheen 3.2s var(--ease) 1s infinite; }
@keyframes sheen { 0% { transform: translateX(-102%); } 45%, 100% { transform: translateX(102%); } }
.note { margin: 10px 0 0; font-size: .68rem; color: var(--muted); font-weight: 700; }

@media (min-width: 900px) {
  .stage.open .stage-inner { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr); align-items: start; gap: 34px; }
}
@media (max-width: 759px) {
  :root { --track-h: clamp(290px, 46svh, 400px); }
  .nav-cta span { display: none; }
  .road .lane { background: repeating-linear-gradient(90deg, var(--accent) 0 40px, transparent 40px 80px); }
  .buy .btn { flex: 1 1 100%; }
  .bubble { padding: 8px 12px 9px; }
}

/* ---------- cenário em camadas (orla de Salvador) ----------
   .cam é posicionada pelo app.js como "cover" da foto (2172 x 724) e anda junto com a moto (paralaxe). */
.scene { position: absolute; inset: 0; overflow: hidden; background: #1c1d20; transition: filter .5s var(--ease); }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(15,16,18,.35) 0%, transparent 22%, transparent 80%, rgba(15,16,18,.45) 100%); }
.cam { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.layer { position: absolute; left: 0; width: 100%; will-change: transform; }
.layer.far { top: 0; height: 62.431%; }
.layer.near { top: 60.221%; height: 39.779%; }
.layer .plate { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.palm { position: absolute; height: auto; transform-origin: var(--ox) 100%; animation: sway var(--d) ease-in-out var(--dl) infinite alternate; pointer-events: none; user-select: none; }
@keyframes sway { 0% { transform: rotate(-.9deg) skewX(.4deg); } 100% { transform: rotate(1.1deg) skewX(-.5deg); } }
.track.dim .scene { filter: brightness(.5) blur(2px); }

/* cenário vivo */
.clouds { position: absolute; inset: 0 0 55% 0; overflow: hidden; mix-blend-mode: soft-light; }
.clouds i { position: absolute; width: 34%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,190,210,.9), rgba(255,190,210,0)); filter: blur(6px); animation: drift linear infinite; }
.clouds .c1 { top: 8%; animation-duration: 90s; animation-delay: -20s; }
.clouds .c2 { top: 30%; width: 26%; animation-duration: 120s; animation-delay: -70s; }
.clouds .c3 { top: 52%; width: 40%; height: 20%; animation-duration: 150s; animation-delay: -40s; }
@keyframes drift { from { left: -45%; } to { left: 110%; } }
.sun-glow { position: absolute; left: 17.03%; top: 65.3%; width: 16%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255,244,200,.85) 0%, rgba(255,200,110,.35) 35%, rgba(255,170,80,0) 70%); mix-blend-mode: screen; animation: glow 4.5s ease-in-out infinite alternate; }
@keyframes glow { from { transform: scale(.94); opacity: .7; } to { transform: scale(1.08); opacity: 1; } }
.shimmer { position: absolute; left: 13.6%; top: 77.5%; width: 7%; height: 21%; mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, rgba(255,226,150,.0) 0 5px, rgba(255,226,150,.55) 5px 7px, rgba(255,226,150,0) 7px 12px);
  -webkit-mask: radial-gradient(50% 60% at 50% 30%, #000 30%, transparent 75%); mask: radial-gradient(50% 60% at 50% 30%, #000 30%, transparent 75%);
  animation: shimmer 2.2s linear infinite; }
@keyframes shimmer { 0% { background-position: 0 0; opacity: .7; } 50% { opacity: 1; } 100% { background-position: 0 24px; opacity: .7; } }
.sea-spark { position: absolute; left: 0; right: 30%; top: 77%; height: 21%; mix-blend-mode: screen; }
.sea-spark i, .city-lights i { position: absolute; width: 3px; height: 2px; border-radius: 2px; background: #fff3cf; opacity: 0; animation: twinkle var(--t) ease-in-out var(--dl) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; } 50% { opacity: .95; } }
.city-lights { position: absolute; left: 58%; width: 41%; top: 33%; height: 42%; }
.city-lights i { width: 2px; height: 2px; background: #ffe9a8; box-shadow: 0 0 4px 1px rgba(255,220,140,.7); }
.farol { position: absolute; left: 52.12%; top: 56.8%; width: 0; height: 0; }
.farol .lamp { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fffbe8; box-shadow: 0 0 10px 4px rgba(255,246,200,.9), 0 0 30px 10px rgba(255,220,140,.45); animation: lamp 4s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { opacity: .35; transform: scale(.8); } 12% { opacity: 1; transform: scale(1.35); } 30% { opacity: .5; transform: scale(1); } }
.farol .beam { position: absolute; top: -3px; height: 6px; width: 260px; border-radius: 6px; opacity: 0; filter: blur(2px);
  background: linear-gradient(90deg, rgba(255,246,210,.75), rgba(255,246,210,0)); transform-origin: 0 50%; }
.farol .beam.r { left: 0; animation: beamR 8s ease-in-out infinite; }
.farol .beam.l { left: 0; transform: rotate(180deg); animation: beamL 8s ease-in-out infinite; }
@keyframes beamR { 0%, 40%, 100% { opacity: 0; transform: scaleX(.2) rotate(-2deg); } 50% { opacity: .9; transform: scaleX(1) rotate(0deg); } 60% { opacity: 0; transform: scaleX(.3) rotate(2deg); } }
@keyframes beamL { 0%, 14%, 100% { opacity: 0; transform: rotate(180deg) scaleX(.25); } 3% { opacity: .9; transform: rotate(180deg) scaleX(1); } }

.smoke { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.rig { z-index: 2; }
.track-hint { text-shadow: 0 1px 4px rgba(0,0,0,.7); z-index: 3; }

/* ---------- seletor de motos ---------- */
.track { touch-action: pan-y; }
.arrow { position: absolute; top: 46%; z-index: 4; display: grid; place-items: center; width: 46px; height: 46px; translate: 0 -50%; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28); background: rgba(15,16,18,.55); backdrop-filter: blur(6px); color: #fff; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.arrow:hover { background: rgba(15,16,18,.8); }
.arrow:active { transform: scale(.92); }
.arrow svg { width: 22px; height: 22px; }
.arrow.prev { left: max(10px, calc(var(--pad) - 20px)); }
.arrow.next { right: max(10px, calc(var(--pad) - 20px)); }
.picker-wrap { padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.picker-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 0 var(--pad); }
.picker-head .label { margin: 0; }
.filtros .chip { min-height: 34px; }
.picker { display: flex; gap: 10px; padding: 14px var(--pad) 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scroll-padding: 0 var(--pad); }
.pick { position: relative; flex: 0 0 auto; width: 172px; scroll-snap-align: start; display: grid; gap: 6px; padding: 10px 10px 11px; border-radius: 12px;
  border: 1px solid var(--line); background: #ffffff07; text-align: left; cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.pick:hover { background: #ffffff10; transform: translateY(-2px); }
.pick[hidden] { display: none; }
.pick-img { display: grid; place-items: center; height: 84px; border-radius: 8px; background: radial-gradient(70% 60% at 50% 70%, #ffffff14, transparent); }
.pick-img img { max-height: 80px; width: auto; transition: transform .45s var(--ease); }
.pick:hover .pick-img img { transform: translateX(4px); }
.pick-txt { display: grid; line-height: 1.25; }
.pick-txt strong { font-size: .84rem; letter-spacing: -.02em; }
.pick-txt span { font-size: .74rem; color: var(--accent); font-weight: 800; }
.pick-live { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-size: .56rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease); }
.pick[aria-current="true"] { border-color: var(--accent); background: #f2b70512; }
.pick[aria-current="true"] .pick-live { opacity: 1; transform: none; }
.tabs.solo { display: none; }
.thumbs button { position: relative; }
.thumbs button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 4px; background: rgba(0,0,0,.55); color: #fff; font-size: .56rem; font-weight: 800; text-align: center; }
.thumbs[hidden] { display: none; }
.badge[hidden] { display: none; }
@media (max-width: 759px) {
  .arrow { width: 38px; height: 38px; top: 40%; }
  .pick { width: 148px; }
  .pick-img { height: 70px; }
  .pick-img img { max-height: 66px; }
}
.tabs.solo ~ #paneFotos .zoom-hint { top: 10px; right: auto; left: 10px; }
