/* ---------- tokens ---------- */
:root {
  --bg: #14110e;
  --bg-2: #1b1713;
  --bg-3: #241f19;
  --bg-4: #2e2720;
  --line: rgba(243, 233, 220, 0.09);
  --line-2: rgba(243, 233, 220, 0.16);
  --text: #f4eee5;
  --muted: #a99f92;
  --accent: #e6ae2a;
  --accent-2: #f3c650;
  --accent-ink: #1a140c;
  --accent-soft: rgba(230, 174, 42, 0.12);
  --danger: #ff8a6b;
  --ok: #86d69a;

  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-text: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step-hero: clamp(3.4rem, 1.2rem + 11vw, 9.5rem);
  --step-h2: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem);
  --step-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);

  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
html { scrollbar-color: var(--bg-4) var(--bg); scrollbar-width: thin; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
body.lock { overflow: hidden; }

/* grão */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.micro { font: 600 12px/1.3 var(--f-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.h2 { font: 700 var(--step-h2)/0.98 var(--f-display); letter-spacing: -0.01em; text-transform: uppercase; margin: 14px 0 20px; }
.h2 em, .step__title em, .final__title em, .statement em { font-style: italic; font-weight: 800; color: var(--accent); }
.lead { font-size: var(--step-lead); color: #d8cfc3; max-width: 34em; }
p { margin: 0 0 1em; }
.link { color: var(--accent); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.link:hover { background-size: 100% 1px; }
.label { display: flex; gap: 12px; align-items: center; }
.label span { color: var(--accent); }
.label::after { content: ''; flex: 0 0 48px; height: 1px; background: var(--line-2); }
.note { color: var(--muted); font-size: 14px; margin-top: 24px; }
.opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---------- botões ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 700 17px/1 var(--f-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(230, 174, 42, 0);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.btn:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(230, 174, 42, 0.55); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn--lg { --h: 60px; padding: 0 30px; font-size: 18px; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--accent); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 999px; cursor: pointer; color: var(--text); }
.icon-btn:hover { background: var(--bg-3); }
.icon-btn svg { width: 22px; height: 22px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 20px; padding: 0 var(--gutter);
  background: rgba(20, 17, 14, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(20, 17, 14, 0.82); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; font-size: 15px; }
.nav__brand img { width: 40px; height: auto; }
.nav__brand b { font-weight: 600; }
.nav__links { display: none; gap: 26px; font-size: 15px; }
.nav__links a { text-decoration: none; color: #d6cdc1; }
.nav__links a:hover { color: var(--accent); }
@media (min-width: 980px) { .nav__links { display: flex; } }
@media (max-width: 420px) { .nav__brand span { display: none; } }

/* ---------- hero: o cartaz ---------- */
.hero { position: relative; padding-top: var(--nav-h); isolation: isolate; }
.hero__media { position: relative; max-width: 640px; margin: 0 auto; overflow: hidden; }
.hero__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; animation: reveal 1.8s var(--ease) both; }
.hero__media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 94%, var(--bg) 100%); }
@keyframes reveal { from { opacity: 0; transform: scale(1.08); filter: brightness(.4) saturate(.6); } }
.hero__labels { display: none; }
.hero__content { max-width: 640px; margin: 0 auto; padding: 8px var(--gutter) 44px; }
.hero__kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 12px/1.3 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .2em; text-transform: uppercase; color: #e6dccf; }
@media (max-width: 640px) { .hide-sm { display: none; } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(134,214,154,.6); animation: pulse 2s infinite; flex: none; }
.dot.is-off { background: var(--muted); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(134,214,154,0); } 100% { box-shadow: 0 0 0 0 rgba(134,214,154,0); } }
.hero__title { margin: 0; display: flex; align-items: flex-end; gap: 12px; font-family: var(--f-display); text-transform: uppercase; line-height: .84; }
.hero__num {
  font-size: clamp(5.4rem, 3rem + 10vw, 7.5rem); font-weight: 800; font-style: italic; letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fae08c 0%, #e6ae2a 55%, #a8730f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.45));
  padding: .14em .06em 0 0; margin-top: -.14em; /* área do gradiente cobre o º */
}
.hero__num sup { font-size: .42em; vertical-align: .95em; line-height: 0; margin-left: .03em; }
.hero__name { font-size: clamp(2.5rem, 1.4rem + 5vw, 3.6rem); font-weight: 800; font-style: italic; letter-spacing: -0.01em; padding-bottom: .08em; text-shadow: 0 6px 30px rgba(0,0,0,.5); }
.nobr { white-space: nowrap; }
.hero__facts { list-style: none; padding: 0; margin: 20px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(20,17,14,.55); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 600; font-size: 15px; }
.hero__facts b { color: var(--accent); font-weight: 600; }
.hero__facts svg { width: 18px; height: 18px; color: var(--accent); }
.hero__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.price { display: flex; align-items: center; gap: 14px; }
.price__value { font: 800 italic clamp(3rem, 2rem + 4vw, 4.2rem)/1 var(--f-display); color: var(--accent); white-space: nowrap; }
.price__meta { font-size: 14px; line-height: 1.35; color: #ddd3c6; }
.price__meta s { color: var(--muted); }
.price__meta b { color: var(--text); font-weight: 600; }
.hero__spots { width: 100%; margin: 0; font-weight: 600; color: var(--accent); }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: #cfc5b8; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 699px) { .hero__buy .btn { width: 100%; } }

/* ecrãs largos: o cartaz em ecrã cheio, informação numa coluna à direita (sobre as árvores) */
@media (orientation: landscape) and (min-width: 700px) {
  .hero { height: 100svh; min-height: 620px; padding: 0; }
  .hero__media { position: absolute; inset: 0; max-width: none; }
  .hero__media img { height: 100%; aspect-ratio: auto; object-position: 50% 100%; }
  .hero__media::after {
    background:
      linear-gradient(270deg, rgba(14,11,8,.9) 0%, rgba(14,11,8,.62) 22%, rgba(14,11,8,0) 44%),
      linear-gradient(180deg, rgba(14,11,8,.55) 0%, rgba(14,11,8,0) 20%),
      linear-gradient(0deg, var(--bg) 0%, rgba(20,17,14,0) 7%);
  }
  .hero__labels {
    display: flex; justify-content: space-between; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + 16px); margin: 0;
    font: 500 13px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .24em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 0 18px rgba(0,0,0,.55);
    animation: fadeIn 1.2s .5s var(--ease) both;
  }
  .hero__content { position: absolute; right: var(--gutter); top: 54%; transform: translateY(-50%); width: clamp(300px, 27vw, 360px); padding: 0; margin: 0; }
  .hero__kicker { letter-spacing: .16em; }
  .hero__content .hide-sm { display: none; }
  .hero__title { flex-direction: column; align-items: flex-start; gap: 0; }
  .hero__num { font-size: clamp(5rem, 8.5vw, 9rem); }
  .hero__name { font-size: clamp(2.4rem, 3.9vw, 4.2rem); }
  .hero__buy { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero__buy .btn { width: 100%; }
  .trust { gap: 8px 18px; font-size: 13px; }
}
@media (orientation: landscape) and (min-width: 700px) and (max-height: 700px) {
  .hero__facts, .trust { display: none; }
  .hero__num { font-size: clamp(4rem, 7vw, 6rem); }
}
@keyframes fadeIn { from { opacity: 0; } }

/* intro do hero */
.hero__content > * { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
.hero__content > :nth-child(1) { animation-delay: .35s; }
.hero__content > :nth-child(2) { animation-delay: .45s; }
.hero__content > :nth-child(3) { animation-delay: .55s; }
.hero__content > :nth-child(4) { animation-delay: .62s; }
.hero__content > :nth-child(5) { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- percurso (substitui a faixa) ---------- */
.route { padding: 36px 0 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.route__inner { display: grid; gap: 8px; }
.route__odo { display: flex; align-items: baseline; gap: 14px; }
.route__odo b { font: 800 italic clamp(3rem, 2rem + 4vw, 4.6rem)/1 var(--f-display); font-variant-numeric: tabular-nums; min-width: 2.2em; }
.route__odo small { font-size: .38em; color: var(--muted); margin-left: 4px; font-style: normal; }
.route__track { position: relative; height: 150px; }
.route__track svg { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 100px; overflow: visible; }
.route__base, .route__done { fill: none; stroke-linecap: round; }
.route__base { stroke: var(--line-2); stroke-width: 3; stroke-dasharray: 1 9; }
.route__done { stroke: var(--accent); stroke-width: 3; }
.route__pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.route__pin.is-on { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.route__lbl { position: absolute; top: 112px; transform: translateX(-50%); font-size: 13px; color: var(--muted); text-align: center; white-space: nowrap; line-height: 1.3; }
.route__lbl b { display: block; color: var(--text); font-weight: 600; font-size: 14px; }
.route__lbl[data-t="0"] { transform: none; text-align: left; }
.route__lbl[data-t="1"] { transform: translateX(-100%); text-align: right; }
.route__rider { position: absolute; left: 0; top: 0; width: 46px; height: 31px; color: var(--accent); transform-origin: 50% 100%; will-change: transform; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.route__rider svg { width: 100%; height: 100%; }
@media (min-width: 900px) {
  .route { padding: 56px 0 32px; }
  .route__inner { grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
  .route__odo { flex-direction: column; gap: 6px; }
}

/* ---------- secções ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.grid-2 { display: grid; gap: 48px; align-items: center; }
.grid-2--top { align-items: start; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* bilhete */
.ticket { display: grid; grid-template-columns: auto 1fr; margin-top: 28px; border-radius: var(--r-lg); background: var(--bg-3); border: 1px solid var(--line); position: relative; max-width: 460px; }
.ticket__left { padding: 22px 26px; border-right: 2px dashed var(--line-2); display: flex; flex-direction: column; }
.ticket__price { font: 800 italic 3.6rem/1 var(--f-display); color: var(--accent); margin: 6px 0 2px; }
.ticket__sub { color: var(--muted); font-size: 14px; }
.ticket__right { padding: 22px 24px; font-size: 15px; color: #d6cdc1; }
.ticket__right p { margin: 0 0 6px; }
.ticket__right .btn { margin-top: 10px; }

.includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.includes li { display: flex; gap: 16px; padding: 20px 22px; background: var(--bg-2); transition: background .3s var(--ease); }
.includes li:hover { background: var(--bg-3); }
.includes svg { width: 28px; height: 28px; color: var(--accent); flex: none; margin-top: 2px; }
.includes b { display: block; font-weight: 600; }
.includes span { color: var(--muted); font-size: 15px; }

/* o dia */
.day { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; counter-reset: d; }
.day li { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 22px; border-radius: var(--r); background: var(--bg-3); border: 1px solid var(--line); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.day li:hover { border-color: rgba(230,174,42,.5); transform: translateY(-3px); }
.day__n { grid-row: span 2; font: 800 italic 2.4rem/1 var(--f-display); color: var(--accent); }
.day b { font-weight: 600; font-size: 18px; }
.day li > span:last-child { color: var(--muted); font-size: 15px; }
@media (min-width: 900px) {
  .day { grid-template-columns: repeat(5, 1fr); }
  .day li { grid-template-columns: 1fr; row-gap: 10px; }
  .day__n { grid-row: auto; }
}

/* frase de respiro */
.statement { padding: clamp(80px, 12vw, 170px) 0; }
.statement p { font: 700 clamp(2rem, 1.2rem + 3.8vw, 4.4rem)/1.04 var(--f-display); text-transform: uppercase; letter-spacing: -0.01em; margin: 0 auto; max-width: 18em; text-align: center; }

/* falcões */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 0; }
.stats div { border-top: 1px solid var(--line-2); padding-top: 12px; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 4px 0 0; font: 800 italic clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--f-display); color: var(--text); }
.stats small { font-size: .45em; margin-left: 3px; color: var(--muted); font-style: normal; }
.editions { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-2); }
.editions li { position: relative; padding: 0 0 22px 26px; color: var(--muted); font-size: 15px; }
.editions li::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-4); border: 1px solid var(--line-2); }
.editions span { display: block; font: 700 1rem/1 var(--f-display); letter-spacing: .08em; color: var(--accent); margin-bottom: 4px; }
.editions b { display: block; color: var(--text); font-weight: 600; }
.editions .is-next::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.editions .is-next a { color: var(--accent); font-weight: 600; text-decoration: none; }
.village { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.village__text { margin-top: 12px; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); color: #cfc5b8; max-width: 60em; }

/* foto da partida */
.photo { margin: 56px 0 0; position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; object-position: 50% 62%; filter: saturate(.92) contrast(1.04); }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; background: linear-gradient(transparent, rgba(20,17,14,.85)); font-size: 14px; color: #e6dccf; }

/* galeria */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; border-radius: 10px; overflow: hidden; background: var(--bg-3); aspect-ratio: 1; }
.gallery button:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s var(--ease), filter .6s var(--ease); filter: saturate(.9) contrast(1.05); }
.gallery button:hover img { transform: scale(1.05); filter: none; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
  .gallery button { aspect-ratio: auto; }
  .gallery button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
.gallery__empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { color: #cfc5b8; padding-bottom: 20px; margin: 0; }

/* final */
.final { padding: clamp(80px, 12vw, 160px) 0; text-align: center; background: radial-gradient(60% 70% at 50% 100%, rgba(230,174,42,.16), transparent 70%); }
.final__title { font: 800 italic clamp(3.6rem, 2rem + 8vw, 8rem)/.9 var(--f-display); text-transform: uppercase; margin: 16px 0 36px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden; padding-bottom: 96px; }
.footer__grid { display: grid; gap: 32px; font-size: 15px; color: #cfc5b8; }
.footer__grid .micro { margin-bottom: 10px; }
.footer__legal p:last-child { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr 1.4fr; } .footer { padding-bottom: 0; } }
.footer__copy { font-size: 13px; color: var(--muted); margin-top: 40px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--line); position: relative; }

/* barra fixa móvel */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(20,17,14,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease);
}
.mbar.is-on { transform: none; }
.mbar div { display: flex; flex-direction: column; line-height: 1.15; }
.mbar b { font: 800 italic 1.8rem/1 var(--f-display); color: var(--accent); }
.mbar div span { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .mbar { display: none; } }

/* aviso retomar */
.resume {
  position: fixed; z-index: 45; left: 50%; bottom: 92px; transform: translateX(-50%); width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-3); border: 1px solid rgba(230,174,42,.45);
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.7); animation: rise .6s var(--ease);
}
.resume p { margin: 0; font-size: 15px; flex: 1; }
.resume b { color: var(--accent); }
.resume .btn { flex: none; }
.resume .icon-btn { flex: none; width: 36px; height: 36px; }
@media (min-width: 900px) { .resume { bottom: 24px; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- assistente ---------- */
.wiz { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-end; }
.wiz[hidden] { display: none; }
.wiz__backdrop { position: absolute; inset: 0; background: rgba(8,6,4,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.wiz__panel {
  position: relative; width: 100%; height: 100%; max-height: 100dvh; display: flex; flex-direction: column; background: var(--bg);
  animation: sheet .45s var(--ease);
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 760px) {
  .wiz { align-items: center; padding: 24px; }
  .wiz__panel { max-width: 640px; height: auto; max-height: min(880px, calc(100dvh - 48px)); border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -20px rgba(0,0,0,.8); }
}
.wiz__head { display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 10px 10px; border-bottom: 1px solid var(--line); }
.wiz__headtext { flex: 1; min-width: 0; text-align: center; }
.wiz__headtext .micro { font-size: 11px; }
.js-back[disabled] { visibility: hidden; }
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 8px auto 0; max-width: 360px; }
.steps li { flex: 1; font-size: 12px; color: var(--muted); }
.steps li::before { content: ''; display: block; height: 4px; border-radius: 4px; background: var(--bg-4); margin-bottom: 6px; transition: background .4s var(--ease); }
.steps li.is-done::before, .steps li.is-on::before { background: var(--accent); }
.steps li.is-on { color: var(--text); font-weight: 600; }
@media (max-width: 480px) { .steps li span { visibility: hidden; } .steps li.is-on span { visibility: visible; white-space: nowrap; } }

.wiz__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px clamp(16px, 4vw, 32px) 32px; }
.step { display: none; }
.step.is-on { display: block; animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } }
.step.is-back { animation-name: stepBack; }
@keyframes stepBack { from { opacity: 0; transform: translateX(-18px); } }
.step__title { font: 700 clamp(2rem, 1.6rem + 2vw, 2.6rem)/1 var(--f-display); text-transform: uppercase; margin: 0 0 10px; }
.step__sub { color: var(--muted); margin-bottom: 24px; }

.wiz__foot { display: flex; align-items: center; gap: 16px; padding: 14px clamp(16px, 4vw, 32px) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }
.wiz__foot .btn { margin-left: auto; min-width: 170px; }
.wiz__sum { display: flex; flex-direction: column; line-height: 1.15; }
.wiz__sum span { font-size: 13px; color: var(--muted); }
.wiz__sum b { font: 800 italic 1.9rem/1 var(--f-display); color: var(--accent); }
.wiz__foot.is-hidden { display: none; }

/* campos */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #e3dacd; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-3);
  font-size: 17px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #6f665b; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-err input, .field.has-err select { border-color: var(--danger); }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input[type="date"] { color-scheme: dark; }
.err { display: block; color: var(--danger); font-size: 13px; margin-top: 4px; min-height: 0; }
.err:empty { display: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-2 .field:first-child { min-width: 0; }
.row-2 > * { min-width: 0; }
@media (max-width: 420px) { .row-2--stack { grid-template-columns: 1fr; gap: 0; } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; color: #d6cdc1; margin: 8px 0 4px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.group { border: 0; padding: 0; margin: 24px 0 8px; }
.group legend { font: 700 1.2rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 14px; padding: 0; }
.terms-text { margin-top: 10px; padding: 14px; border-radius: 12px; background: var(--bg-3); color: var(--muted); font-size: 14px; }

/* pilotos */
.rider { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px; background: var(--bg-2); }
.rider__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rider__head b { font: 700 1.25rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.rider__head button { background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; padding: 8px; }
.rider__head button:hover { color: var(--danger); }
.vehicles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.vehicle { position: relative; cursor: pointer; }
.vehicle input { position: absolute; opacity: 0; pointer-events: none; }
.vehicle span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-3); text-align: center; transition: all .2s var(--ease); }
.vehicle svg { width: 52px; height: 34px; color: #bdb2a3; transition: color .2s; }
.vehicle b { font-weight: 600; font-size: 15px; }
.vehicle small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.vehicle input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.vehicle input:checked + span svg { color: var(--accent); }
.vehicle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.vehicle:hover span { border-color: rgba(230,174,42,.5); }
.vehicles.has-err .vehicle span { border-color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-3); font-weight: 600; font-size: 15px; cursor: pointer; transition: all .2s var(--ease); }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips.has-err .chip span { border-color: var(--danger); }
.add-rider { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; border-radius: var(--r-lg); border: 1px dashed rgba(230,174,42,.5); background: transparent; color: var(--accent); font-weight: 600; cursor: pointer; transition: background .2s; }
.add-rider:hover { background: var(--accent-soft); }
.add-rider svg { width: 20px; height: 20px; }
.add-rider > span { margin-left: auto; color: var(--muted); font-weight: 400; }
.add-rider[hidden] { display: none; }
.more { margin-top: 4px; }
.more summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }

/* resumo */
.summary { border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); padding: 6px 18px; margin: 18px 0 6px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary__row:last-child { border-bottom: 0; }
.summary__row small { display: block; color: var(--muted); }
.summary__row svg { width: 34px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.summary__row .who { display: flex; gap: 12px; }
.summary__total { font-weight: 600; }
.summary__total b { font: 800 italic 1.6rem/1 var(--f-display); color: var(--accent); }
.summary .linkbtn { font-size: 14px; }

/* pagamento */
.pay-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); margin: 18px 0; }
.pay-total b { font: 800 italic 2rem/1 var(--f-display); color: var(--accent); }
.mock-banner { padding: 12px 14px; border-radius: 12px; background: rgba(134,214,154,.08); border: 1px solid rgba(134,214,154,.3); font-size: 14px; color: #cfe9d5; margin-bottom: 16px; }
.methods { display: grid; gap: 10px; margin-bottom: 14px; }
.method { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 50px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-3); cursor: pointer; transition: all .2s var(--ease); }
.method input { position: absolute; left: 18px; width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.method__body { display: flex; flex-direction: column; }
.method__body small { color: var(--muted); font-size: 13px; }
.method:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.badge { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
.mbway-phone[hidden] { display: none; }
.mb-warning { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(230,174,42,.1); border: 1px solid rgba(230,174,42,.4); font-size: 14px; margin: 14px 0; }
.mb-warning svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 1px; }
.mb-warning p { margin: 0; color: #e8dccb; }
.mb-warning b { color: var(--text); }
.pay-error { color: var(--danger); font-weight: 600; margin: 12px 0; }
.secure { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 18px; }
.secure svg { width: 18px; height: 18px; flex: none; }

/* resultado */
.done { text-align: center; padding-top: 8px; }
.done__icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); animation: pop .6s var(--ease); }
.done__icon svg { width: 40px; height: 40px; }
.done__icon--wait { background: var(--bg-3); color: var(--accent); border: 1px solid rgba(230,174,42,.5); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done h3 { font: 800 italic clamp(2.2rem, 1.8rem + 2vw, 3rem)/1 var(--f-display); text-transform: uppercase; margin: 0 0 10px; }
.done > p { color: #d6cdc1; }
.code { display: inline-block; font: 700 1.5rem/1 var(--f-display); letter-spacing: .12em; padding: 12px 18px; border-radius: 12px; border: 1px dashed rgba(230,174,42,.6); color: var(--accent); margin: 8px 0 20px; }
.done__actions { display: grid; gap: 10px; margin: 22px 0 8px; }
.done__actions .btn { width: 100%; }
.done__actions svg { width: 20px; height: 20px; }

.voucher { text-align: left; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line-2); overflow: hidden; margin: 18px 0; }
.voucher__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.voucher__row:last-child { border-bottom: 0; }
.voucher__row span { color: var(--muted); font-size: 14px; }
.voucher__row b { font: 700 1.6rem/1 var(--f-display); letter-spacing: .06em; }
.voucher__row .copy { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 6px; border-radius: 8px; }
.voucher__row .copy svg { width: 18px; height: 18px; color: var(--muted); }
.voucher__row .copy:hover svg { color: var(--accent); }
.voucher__row .copy.is-copied svg { color: var(--ok); }
.timer { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(230,174,42,.16), rgba(230,174,42,.05)); border: 1px solid rgba(230,174,42,.45); }
.timer__clock { font: 800 italic 3.2rem/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--accent); }
.timer p { margin: 0; font-size: 14px; color: #e8dccb; }
.timer.is-urgent .timer__clock { color: var(--danger); }
.howto { text-align: left; font-size: 14px; color: var(--muted); margin-top: 16px; }
.howto b { color: var(--text); }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--muted); margin-top: 14px; text-align: left; }
.waiting .spinner { flex: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bg-4); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mbway-wait { text-align: center; padding: 20px 0; }
.mbway-wait .spinner { width: 46px; height: 46px; border-width: 3px; margin: 0 auto 18px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(8,6,4,.94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; border-radius: 10px; }
.lightbox .icon-btn { position: absolute; top: 12px; right: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 95; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; animation: rise .3s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero__content > * { opacity: 1; transform: none; }
}

/* ---------- páginas legais (privacidade, termos) ---------- */
.legal-page::after { display: none; }
.legal-top { position: sticky; top: 0; z-index: 10; background: rgba(20, 17, 14, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.legal-top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.05rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.legal-brand img { width: 40px; height: auto; }
.legal { max-width: 820px; padding-top: 40px; padding-bottom: 72px; }
.legal h1 { font: 800 italic clamp(2.4rem, 7vw, 3.6rem)/0.95 var(--f-display); text-transform: uppercase; margin: 10px 0 18px; }
.legal__lead { font-size: 1.15rem; color: var(--text); max-width: 62ch; margin: 0 0 8px; }
.legal__meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font: 700 1.55rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 12px; }
.legal h3 { font: 700 1.05rem/1.3 var(--f-text); margin: 20px 0 8px; }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.legal p, .legal li { color: #ddd5c9; max-width: 70ch; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--accent); }
.legal b { color: var(--text); }
.legal code { font-size: .9em; background: var(--bg-3, #241f19); padding: 1px 6px; border-radius: 6px; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.legal__toc a { font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
.legal__toc a:hover { color: var(--text); border-color: var(--accent); }
.legal__summary { background: rgba(230, 174, 42, 0.08); border: 1px solid rgba(230, 174, 42, 0.35); border-radius: 18px; padding: 20px 22px; margin: 0 0 24px; }
.legal__summary h2 { font-size: 1.2rem; margin-bottom: 6px; }
.legal__table { display: grid; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; margin: 14px 0; }
.legal__table [role="row"] { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.legal__table [role="row"]:first-child { border-top: 0; background: rgba(255, 255, 255, 0.03); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal__table [role="cell"] { color: #ddd5c9; font-size: 15px; }
@media (max-width: 600px) { .legal__table [role="row"] { grid-template-columns: 1fr; gap: 4px; } .legal__table [role="row"]:first-child { display: none; } }
.legal-foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.legal-foot p { margin: 4px 0; }
.fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.footer__links { margin-top: 12px; font-size: 14px; }

/* ---------- «A minha inscrição» ---------- */
.conta { max-width: 860px; padding-top: 40px; padding-bottom: 72px; }
.conta h1 { font: 800 italic clamp(2.4rem, 7vw, 3.6rem)/0.95 var(--f-display); text-transform: uppercase; margin: 10px 0 18px; }
.conta h2 { font: 700 1.35rem/1.1 var(--f-display); text-transform: uppercase; margin: 0 0 8px; }
.conta__lead { font-size: 1.15rem; margin: 0 0 22px; }
.conta__muted { color: var(--muted); font-size: 14px; }
.conta__err { color: #ff8a6b; font-size: 14px; min-height: 1em; margin: 4px 0 0; }
.conta__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 18px; }
.conta-card { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: 18px; background: var(--bg-2, #1b1713); border: 1px solid var(--line-2); }
.conta-card .btn { justify-self: start; }
.conta-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #d6cdc1; }
.conta-field input { min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-3, #241f19); color: var(--text); font: 400 16px var(--f-text); }
.conta-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.conta-list { display: grid; gap: 14px; }
.conta-reg { padding: 20px 22px; border-radius: 18px; background: var(--bg-2, #1b1713); border: 1px solid var(--line-2); }
.conta-reg--child { margin-left: 22px; border-style: dashed; }
.conta-reg__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.conta-reg__code { font: 700 1.5rem/1 var(--f-display); letter-spacing: .04em; }
.conta-reg__amount { margin-left: auto; font: 800 italic 1.7rem/1 var(--f-display); color: var(--accent); }
.conta-reg__sub { margin: 10px 0 0; color: #ddd5c9; }
.conta-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid currentColor; }
.conta-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.conta-pill.s-paid { color: #86d69a; } .conta-pill.s-awaiting_multibanco { color: #f0b44c; }
.conta-pill.s-expired, .conta-pill.s-failed { color: #ff8a6b; } .conta-pill.s-cancelled { color: #8f877c; }
.conta-pill.s-draft, .conta-pill.s-pending_payment { color: #8ab4f8; }
.conta-riders { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.conta-riders li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.conta-riders li span { color: var(--muted); font-size: 14px; }
.conta-mb { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 28px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(240, 180, 76, 0.1); border: 1px solid rgba(240, 180, 76, 0.45); }
.conta-mb span { display: block; font-size: 12px; color: var(--muted); }
.conta-mb b { font: 700 1.35rem/1.1 var(--f-display); letter-spacing: .04em; }
.conta-mb p { grid-column: 1 / -1; margin: 8px 0 0; font-size: 14px; }
.conta-reg__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.conta__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.conta__foot p { flex: 1; min-width: 240px; margin: 0; }
@media (max-width: 560px) { .conta-reg--child { margin-left: 10px; } .conta-mb { grid-template-columns: 1fr 1fr; } .conta-reg__amount { margin-left: 0; } }
.child-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(230, 174, 42, 0.1); border: 1px solid rgba(230, 174, 42, 0.4); font-size: 14px; }
