:root {
  --display: 'Outfit', 'Instrument Sans', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --shadow-blue: 0 24px 80px rgba(3, 14, 26, .24);
  --spring: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-padding-top: 86px; }
body { min-width: 280px; }
.shell { overflow: clip; }
.skip-link { position: fixed; z-index: 120; top: 8px; left: 8px; padding: 12px 16px; background: var(--yellow); color: var(--ink); transform: translateY(-160%); transition: transform .3s var(--spring); }
.skip-link:focus { transform: translateY(0); }
.nav-sentinel { position: absolute; inset: 0 0 auto; height: 32px; pointer-events: none; }

/* A navegação começa integrada à fotografia e se torna uma ilha após a primeira rolagem. */
.nav {
  left: 50%; right: auto; width: 100%; transform: translateX(-50%); border: 1px solid transparent;
  transition: top .7s var(--ease), width .7s var(--ease), height .7s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease), border-radius .7s var(--ease);
}
.nav.nav-compact {
  top: 14px; width: min(920px, calc(100% - 32px)); height: 60px; border-radius: 18px;
  border-color: rgba(255,255,255,.13); background: rgba(11,14,19,.82); box-shadow: 0 18px 54px rgba(2,10,20,.24), inset 0 1px 0 rgba(255,255,255,.09); backdrop-filter: blur(18px) saturate(135%);
}
.nav.nav-compact .nav-inner { width: 100%; padding-inline: 14px; }
.nav.nav-compact .mark { width: 27px; height: 30px; }
.nav.nav-compact .brand small { display: none; }
.nav.nav-compact .nav-links { gap: 18px; }
.nav-links a, .motion-toggle { position: relative; }
.nav-links > a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--yellow); transition: right .45s var(--ease); }
.nav-links > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; background: rgba(255,255,255,.04); transition: background .35s var(--ease), transform .35s var(--ease); }
.nav-cta:hover { background: var(--yellow); color: var(--ink) !important; transform: translateY(-2px); }
.arrow { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(11,14,19,.1); transition: transform .45s var(--ease); }
.button:hover .arrow, .nav-cta:hover .arrow, .text-link:hover .arrow { transform: translate(3px,-3px) rotate(4deg); }

.menu { position: relative; width: 44px; height: 44px; padding: 0; }
.menu i { position: absolute; left: 10px; width: 24px; height: 1px; background: currentColor; transition: transform .55s var(--ease), top .55s var(--ease); }
.menu i:first-child { top: 17px; }
.menu i:last-child { top: 26px; }
.menu.open i:first-child { top: 22px; transform: rotate(45deg); }
.menu.open i:last-child { top: 22px; transform: rotate(-45deg); }

.button { border-radius: 999px; padding-left: 24px; padding-right: 12px; transition: transform .45s var(--ease), background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease); }
.button:active { transform: translateY(0) scale(.975); }
.button-yellow { box-shadow: 0 14px 42px rgba(232,184,63,.15), inset 0 1px 0 rgba(255,255,255,.34); }
.button-yellow:hover { box-shadow: 0 20px 50px rgba(232,184,63,.24), inset 0 1px 0 rgba(255,255,255,.34); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 5px; border-bottom: 1px solid rgba(255,255,255,.38); font-size: .82rem; font-weight: 650; }
.text-link i { color: var(--yellow); font-style: normal; transition: transform .45s var(--ease); }
.text-link:hover i { transform: translateY(4px); }
.text-link.dark { margin-top: 30px; border-color: rgba(11,14,19,.35); }

.hero-copy { bottom: max(8vh, 62px); }
.hero-copy h1 { max-width: 1120px; text-wrap: balance; }
.hero-copy h1 span { position: relative; width: max-content; max-width: 100%; }
.hero-copy h1 span::after { content: ''; position: absolute; left: 0; bottom: .04em; width: 100%; height: .055em; background: currentColor; transform-origin: left; transform: scaleX(calc(.15 + var(--cinema-progress, 0) * .85)); opacity: .45; }
.hero-copy p { text-wrap: pretty; }
.hero-actions { align-items: center; gap: 22px; }
.scene-title h2 { text-wrap: balance; }
.car-cue { transition: none; }

.reveal { opacity: 0; transform: translate3d(0,54px,0); filter: blur(6px); transition: opacity .9s var(--ease) var(--reveal-delay,0ms), transform .9s var(--ease) var(--reveal-delay,0ms), filter .9s var(--ease) var(--reveal-delay,0ms); }
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
.editorial { padding: 160px 0 190px; }
.editorial-intro { position: sticky; top: 130px; align-self: start; }
.editorial-lead { max-width: 390px; margin: 28px 0 0; color: #656660; font-size: 1rem; line-height: 1.65; }
.step { min-height: 150px; align-items: start; transition: transform .5s var(--ease), padding-left .5s var(--ease); }
.step:hover { transform: translateX(8px); padding-left: 8px; }
.step h3, .step p { text-wrap: pretty; }

.simulator { position: relative; padding: 160px 0 180px; background: radial-gradient(circle at 12% 12%, #1d3a58 0, var(--blue) 35%, #0c1c2c 100%); }
.simulator::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); }
.sim-head { position: relative; }
.sim-head h2 { max-width: 850px; text-wrap: balance; }
.sim-head p { max-width: 38ch; font-size: .95rem; }
.sim-shell { position: relative; padding: 7px; border-radius: 34px; background: rgba(255,255,255,.055); box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255,255,255,.1); overflow-anchor: none; }
.sim-grid { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 27px; background: var(--ink); grid-template-columns: minmax(0,1.08fr) minmax(390px,.92fr); }
.category-wall { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; align-items: stretch; background: rgba(255,255,255,.12); }
.category { min-height: 100%; display: flex; flex-direction: column; border: 0; padding: 30px 24px 28px; overflow: hidden; isolation: isolate; }
.category::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 30% 15%, rgba(232,184,63,.2), transparent 46%); opacity: 0; transform: scale(.8); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.category:hover::before, .category.active::before { opacity: 1; transform: scale(1.1); }
.category:hover { transform: none; }
.category.active { background: var(--yellow); }
.category-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.category-top em { margin-top: 5px; color: #9b9d99; font: 500 .54rem var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .09em; }
.category.active .category-top em { color: rgba(11,14,19,.66); }
.category b { max-width: 12ch; font-size: .74rem; line-height: 1.3; }
.category small { position: static; margin-top: auto; padding-top: 90px; color: #aeb0ac; line-height: 1.4; }
.category.active small { color: rgba(11,14,19,.72); }

.quote { position: relative; min-height: 840px; padding: 0; background: #f5f1e9; overflow-anchor: none; }
.quote-inner { min-height: 100%; padding: 34px; }
.quote.quote-updated .quote-inner { animation: quoteIn .55s var(--ease) both; }
@keyframes quoteIn { from { opacity: .25; transform: translate3d(0,12px,0); } to { opacity: 1; transform: none; } }
.quote-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.quote-heading h3 { font-size: clamp(1.7rem,3vw,2.35rem); }
.selection-mark { color: rgba(11,14,19,.08); font: 850 5rem/.75 var(--display); letter-spacing: -.08em; }
.choice-group { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 9px; color: #696b66; font: 500 .57rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.package-picks { grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); }
.package-picks button, .payments button { border-radius: 10px; transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.package-picks button:hover, .payments button:hover { transform: translateY(-2px); border-color: var(--ink); }
.quote-summary { margin: 24px 0 0; padding: 17px 0; border-block: 1px solid #d5cfc4; }
.quote-row { margin: 7px 0; }
.quote-row strong { font-variant-numeric: tabular-nums; }
.extras { grid-template-columns: 1fr 1fr; gap: 7px; }
.extras label { position: relative; align-items: center; min-height: 52px; padding: 10px; border: 1px solid #d1cbc0; border-radius: 11px; background: rgba(255,255,255,.43); cursor: pointer; transition: border-color .35s var(--ease), transform .35s var(--ease), background-color .35s var(--ease); }
.extras label:hover { transform: translateY(-2px); border-color: #979189; }
.extras label:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: inset 3px 0 0 var(--yellow); }
.extras input { width: 17px; height: 17px; flex: 0 0 auto; }
.extras span { display: grid; gap: 3px; }
.extras b { font-size: .74rem; }
.extras small { color: #777971; font: .58rem var(--mono); }
.total-box { margin: 25px 0 14px; padding: 18px; border-radius: 16px; background: var(--ink); color: var(--paper); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.total-box > small { color: var(--yellow); font: .57rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.total-box > span { display: block; color: #989b97; font-size: .66rem; }
.quote-value { margin: 8px 0 5px; color: #fff; font-variant-numeric: tabular-nums; }
.quote-action { justify-content: space-between; }
.quote-note { margin-bottom: 0; }

.proof { padding: 160px 0 180px; }
.proof-intro { position: sticky; top: 130px; align-self: start; }
.review { transition: transform .5s var(--ease); }
.review:hover { transform: translateX(8px); }
.review blockquote { text-wrap: pretty; }
.finale { min-height: 190vh; }
.finale-stage { height: 100dvh; }
.final-content h2 { text-wrap: balance; }
.footer-inner div { display: flex; gap: 20px; }
.footer-inner a { transition: color .3s var(--ease); }
.footer-inner a:hover { color: var(--yellow); }

@media (min-width: 1500px) {
  :root { --page: min(1380px, calc(100vw - 96px)); }
  .hero-copy { left: max(48px,calc((100vw - 1380px)/2)); }
  .scene-title { left: max(48px,calc((100vw - 1380px)/2)); }
}

@media (max-width: 1050px) {
  .nav-links { gap: 15px; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .sim-grid { grid-template-columns: 1fr; }
  .category { min-height: 280px; }
  .quote { min-height: auto; }
}

@media (max-width: 900px) {
  .nav { width: calc(100% - 24px); top: 10px; height: 60px; border-radius: 18px; background: rgba(11,14,19,.76); border-color: rgba(255,255,255,.12); backdrop-filter: blur(16px); }
  .nav.nav-compact { top: 8px; width: calc(100% - 18px); height: 56px; }
  .nav-inner, .nav.nav-compact .nav-inner { width: 100%; padding-inline: 12px; }
  .menu { display: block; z-index: 3; }
  .nav-links, .nav-links.open { display: flex; position: fixed; inset: -10px -12px auto; top: -10px; height: 100dvh; padding: 112px 28px 40px; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 7px; background: rgba(8,12,18,.96); opacity: 0; visibility: hidden; transform: translateY(-24px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility .5s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > a:not(.nav-cta) { display: block; width: 100%; padding: 12px 0; font: 700 clamp(2rem,7vw,3.4rem)/1 var(--display); letter-spacing: -.05em; opacity: 0; transform: translateY(22px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .nav-links.open > a:nth-child(1) { transition-delay: .08s; }
  .nav-links.open > a:nth-child(2) { transition-delay: .13s; }
  .nav-links.open > a:nth-child(3) { transition-delay: .18s; }
  .nav-links.open > a:nth-child(4) { transition-delay: .23s; }
  .nav-links.open > a { opacity: 1; transform: none; }
  .motion-toggle { margin-top: 16px; }
  .nav-cta { margin-top: auto; }
  .editorial-intro, .proof-intro { position: static; }
  .editorial-grid, .proof-grid { gap: 70px; }
}

@media (max-width: 680px) {
  :root { --page: calc(100vw - 32px); }
  .brand > span:last-child { font-size: .66rem; }
  .brand small { display: none; }
  .hero-copy { bottom: 9dvh; }
  .hero-copy h1 { margin-top: 15px; font-size: clamp(3rem,15vw,4.7rem); line-height: .87; }
  .hero-copy p { max-width: 34ch; margin-bottom: 20px; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { min-height: 48px; }
  .scene-two { clip-path: inset(13% 46% 15% 46% round 110px 110px 0 0); }
  .scene-beat { right: 18px; left: 18px; bottom: 11vh; width: auto; }
  .editorial, .simulator, .proof { padding: 100px 0 120px; }
  .editorial h2, .simulator h2, .proof h2 { font-size: clamp(2.8rem,14vw,4rem); }
  .category-wall { grid-template-columns: 1fr; }
  .category { min-height: 132px; padding: 20px; }
  .category strong { font-size: 3.5rem; }
  .category b { position: absolute; left: 93px; top: 31px; margin: 0; }
  .category small { padding: 10px 0 0 73px; }
  .category-top em { margin-top: 3px; }
  .sim-shell { margin-inline: -5px; padding: 5px; border-radius: 25px; }
  .sim-grid { border-radius: 20px; }
  .quote-inner { padding: 25px 18px; }
  .selection-mark { font-size: 4rem; }
  .extras { grid-template-columns: 1fr; }
  .quote-action { min-height: 54px; }
  .finale { min-height: 165vh; }
  .final-content { padding-bottom: max(35px, env(safe-area-inset-bottom)); }
  .contact-grid { gap: 22px 14px; }
  .footer-inner { gap: 13px; }
  .footer-inner div { flex-wrap: wrap; gap: 13px; }
}

@media (max-width: 380px) {
  :root { --page: calc(100vw - 24px); }
  .hero-copy h1 { font-size: 2.85rem; }
  .hero-copy p { font-size: .82rem; }
  .hero-actions .text-link { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .category b { font-size: .67rem; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .hero-copy { bottom: 38px; }
  .hero-copy h1 { margin: 10px 0 12px; font-size: clamp(2.6rem,10vh,4.6rem); }
  .hero-copy p { display: none; }
  .scene-label { display: none; }
  .hero-actions .button { min-height: 44px; }
}

body.motion-paused .reveal { opacity: 1; transform: none; filter: none; transition: none; }
body.motion-paused .nav { transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .arrow, .nav, .reveal, .menu i, .nav-links, .nav-links > a, .film-grain { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
