/* LP Direito do Passageiro — layout. Cores/fontes/raios vêm de ../design-system/tokens.css */

/* ease usado nas animações */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 860px; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; overflow: hidden; }
.section--tint { background: #ebe7e0; }
.section__title { max-width: 18em; margin-bottom: var(--space-7); text-wrap: balance; }
.section__title--center, .section__lead--center, .section__eyebrow--center { text-align: center; }
.section__eyebrow--center { display: block; margin-bottom: var(--space-4); }
.section__lead { max-width: 40em; margin: 0 0 var(--space-7); }
.section__title.section__title--center, .section__lead.section__lead--center { margin-inline: auto; }
.section__cta { margin-top: var(--space-7); display: flex; justify-content: center; }
.btn { max-width: 100%; text-align: left; }

figure { margin: 0; }
/* ---------- Slots de imagem (reservados) ---------- */
.slot {
  position: relative; display: grid; place-items: center; text-align: center; overflow: hidden;
  border-radius: var(--radius-card); background: var(--brd-grad-fundo-v); color: rgba(255,255,255,.85);
  font-size: var(--fs-small); line-height: 1.3;
}
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot small { opacity: .7; }
.slot figcaption { position: relative; padding: 16px; }
.slot--card { aspect-ratio: 4 / 3; margin-bottom: var(--space-4); border-radius: 20px; }
.slot--tall { aspect-ratio: 4 / 5; border-radius: var(--radius-frame); }
.slot--on-dark { background: rgba(255,255,255,.08); border: var(--frame-border); }
.slot--dev { /* marcador de espaço do desenvolvedor — remover quando houver conteúdo */
  background: transparent; color: var(--brd-petroleo); border: 2px dashed var(--brd-salvia);
}

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: var(--brd-grad-capa); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,56,62,.55) 0%, rgba(0,56,62,.2) 55%, rgba(0,56,62,0) 100%),
              linear-gradient(0deg, rgba(0,40,45,.7) 0%, transparent 28%); }
.hero__content { flex: 1; display: flex; align-items: center; padding-block: clamp(20px, 3vw, 40px); }
.hero__panel { max-width: 640px; padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
  background: rgba(0, 56, 62, .38); -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1); }
.hero__panel .logo { width: clamp(150px, 13vw, 190px); min-width: 0; margin-bottom: var(--space-6); }
.hero__panel .t-display { font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem); }
.hero__panel .t-lead { font-weight: var(--fw-medium); color: #fff; margin: 0; }
.hero__sub { margin: 0; max-width: 34em; }

/* Marquee: faixa linear contínua, só texto, sem interação */
.marquee { position: relative; overflow: hidden; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.22);
  background: rgba(0, 40, 45, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; user-select: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee ul { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.marquee li { display: flex; align-items: center; white-space: nowrap; color: #fff; font-size: var(--fs-caps); font-weight: var(--fw-medium); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.marquee li::after { content: ""; width: 7px; height: 7px; margin-inline: clamp(24px, 3vw, 48px); border-radius: 50%; background: var(--brd-azul-destaque); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee ul + ul { display: none; }
  .marquee li:nth-child(n+4) { display: none; }
  .marquee li:nth-child(3)::after { display: none; }
}

/* ---------- Situações ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.sit { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.sit p { margin: 0; font-size: var(--fs-small); line-height: 1.45; }
.sit .t-eyebrow { color: var(--color-heading); font-weight: var(--fw-heavy); font-size: 1rem; }

/* ---------- Resultados (slot modular) ---------- */
.cases { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.case { min-height: 260px; }
.disclaimer { text-align: center; margin: var(--space-5) 0 0; font-size: var(--fs-small); color: var(--color-text-muted); }

/* ---------- Indenização ---------- */
.indeniz__grid { display: grid; gap: var(--space-7); grid-template-columns: 1.2fr .8fr; align-items: center; position: relative; z-index: 1; }
.indeniz__panel { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); background: rgba(255,255,255,.07); }
.indeniz__panel .t-h1 { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3rem); }
.indeniz__panel p { margin: 0; font-size: var(--fs-lead); line-height: 1.35; }
.indeniz__panel p b { color: #fff; font-weight: var(--fw-heavy); }
.indeniz__blob1 { width: 320px; height: 320px; left: -80px; top: 8%; opacity: .75; }
.indeniz__blob2 { width: 240px; height: 240px; right: 20%; bottom: -60px; opacity: .6; }

/* ---------- Ticket ---------- */
.ticket-wrap { filter: drop-shadow(0 12px 24px rgba(0,38,43,.14)); }
.ticket {
  --n: 18px; display: grid; grid-template-columns: 1fr auto; background: #fff; border-radius: var(--radius-card);
  color: var(--color-text);
  -webkit-mask: radial-gradient(circle var(--n) at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--n) at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--n) at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--n) at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.ticket__main { padding: clamp(24px, 3.5vw, 48px) clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: var(--space-2); }
.ticket__main h3, .ticket__main h2 { color: #0e1c2e; }
.ticket__main p { margin: 0; }
.ticket__stub { display: flex; align-items: center; gap: 14px; padding: 0 clamp(20px, 3vw, 40px) 0 0; position: relative; }
.perf { align-self: stretch; width: 6px; margin: 28px 8px 28px 0; background: radial-gradient(circle, #c9cfd0 2.5px, transparent 3px) center / 6px 16px repeat-y; }
.barcode { display: flex; align-items: center; gap: 10px; height: 150px; }
.barcode svg { fill: #0e1c2e; }
.barcode__v { width: 56px; height: 100%; }
.barcode__h { display: none; }
.barcode span { writing-mode: vertical-rl; font-size: .8rem; letter-spacing: .3em; color: #0e1c2e; }

/* ---------- Como funciona: linha do tempo ligada ao scroll ---------- */
.tl-section { isolation: isolate; overflow: clip; }
.tl-glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(70px); }
.tl-glow--a { width: 420px; height: 420px; left: -140px; top: 18%; background: rgba(91,201,206,.28); }
.tl-glow--b { width: 380px; height: 380px; right: -120px; bottom: 8%; background: rgba(0,75,83,.14); }
.tl-grid { display: grid; gap: clamp(40px, 6vw, 96px); grid-template-columns: .85fr 1.15fr; align-items: start; }
.tl-intro { position: sticky; top: 112px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
.tl-intro .t-h1 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.75rem); }
.tl-flow { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; font-size: .78rem; font-weight: var(--fw-medium); letter-spacing: .14em; text-transform: uppercase; color: var(--brd-petroleo); }
.tl-flow i { font-style: normal; color: var(--brd-verde-cta); margin-left: 8px; }

.tl { --node: 52px; position: relative; list-style: none; margin: 0; padding: 0; }
.tl__track, .tl__progress { position: absolute; left: calc(var(--node) / 2); width: 2px; margin-left: -1px; top: 0; height: 0; transform-origin: center top; border-radius: 2px; }
.tl__track { background: rgba(0, 75, 83, .14); }
.tl__progress { background: linear-gradient(to bottom, var(--brd-azul-destaque), var(--brd-petroleo-profundo)); box-shadow: 0 0 14px rgba(91,201,206,.55); transform: scaleY(0); will-change: transform; }
.tl__step { position: relative; display: grid; grid-template-columns: calc(var(--node) + 20px) 1fr; padding-bottom: clamp(40px, 5vw, 72px); transition: opacity .55s var(--ease-out), filter .55s var(--ease-out); }
.tl__step:last-child { padding-bottom: 0; }
.js .tl__step:not(.is-active) { opacity: .5; }
.tl__node { position: relative; z-index: 1; isolation: isolate; width: var(--node); height: var(--node); border-radius: 50%; display: grid; place-items: center;
  background: var(--brd-off-white); border: 1.5px solid rgba(0,75,83,.25); color: var(--brd-petroleo);
  box-shadow: 0 0 0 8px var(--color-bg);
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out), background .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.tl__node::before, .tl__node::after { content: ""; position: absolute; border-radius: inherit; opacity: 0; pointer-events: none; }
.tl__node::before { z-index: -2; inset: -.45rem; border: 1.5px solid rgba(91,201,206,.85); box-shadow: 0 0 24px rgba(91,201,206,.5); }
.tl__node::after { z-index: -1; inset: .28rem; background: radial-gradient(circle, rgba(255,255,255,.5), rgba(91,201,206,.3) 42%, transparent 72%); }
.tl__num { position: relative; z-index: 1; font-weight: var(--fw-heavy); font-size: .95rem; letter-spacing: .06em; }
.tl__step.is-active .tl__node { color: #fff; border-color: var(--brd-azul-destaque); background: var(--brd-petroleo-profundo);
  box-shadow: 0 0 0 8px var(--color-bg), 0 0 38px -6px rgba(91,201,206,.85); }
.tl__step.is-active .tl__node::before { animation: tl-arrival .9s var(--ease-out) both; }
.tl__step.is-active .tl__node::after { animation: tl-flash .72s var(--ease-out) both; }
.tl__step.is-active .tl__num { animation: tl-num .62s var(--ease-out) both; }
.tl__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: var(--node); border-bottom: 1px solid var(--brd-divisor); }
.tl__head h3 { margin: 0; color: var(--color-heading); font-weight: var(--fw-heavy); letter-spacing: var(--ls-title); line-height: 1; font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2.1rem); }
.tl__tag { font-size: .72rem; font-weight: var(--fw-medium); letter-spacing: .16em; text-transform: uppercase; color: var(--brd-petroleo); }
.tl__body p { margin: 16px 0 0; max-width: 34em; font-size: var(--fs-lead); line-height: 1.4; color: var(--color-text); }
/* entrada de cada elemento */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@keyframes tl-arrival { 0% { opacity: 0; transform: scale(.7); } 28% { opacity: .9; } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes tl-flash { 0% { opacity: 0; transform: scale(.55); } 32% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes tl-num { 0% { opacity: .55; transform: scale(.82); } 42% { opacity: 1; transform: scale(1.16); } 100% { opacity: 1; transform: scale(1); } }

/* ---------- FAQ: um item aberto por vez, com animação ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border-radius: 20px; box-shadow: var(--shadow-card); transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out); }
.faq__item.is-open { box-shadow: 0 14px 34px rgba(0,38,43,.14); }
.faq__item h3 { margin: 0; font-size: inherit; }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px; background: none; border: 0; text-align: left; cursor: pointer;
  font-weight: var(--fw-heavy); font-size: 1.125rem; line-height: 1.25; letter-spacing: var(--ls-title); color: var(--color-heading); border-radius: 20px; }
.faq__q:focus-visible { outline: 3px solid var(--brd-azul-destaque); outline-offset: -3px; }
.faq__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brd-off-white); transition: background .35s var(--ease-out), transform .5s var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--brd-petroleo-profundo); transition: transform .5s var(--ease-out), background .35s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--brd-verde-cta); transform: rotate(180deg); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__a { overflow: hidden; }
.faq__a-inner { min-height: 0; overflow: hidden; }
.faq__a p { margin: 0; padding: 0 28px 26px; max-width: 46em; opacity: 0; transform: translateY(-8px); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: .08s; }
.js .faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq:not(.js-ready) .faq__a p { opacity: 1; transform: none; } /* sem JS: tudo visível */

/* ---------- CTA final ---------- */
.final { padding-block: clamp(64px, 9vw, 120px); }
.ticket--xl .ticket__main { gap: var(--space-5); align-items: flex-start; padding: clamp(28px, 5vw, 72px); }
.ticket--xl .t-h1 { font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.5rem); }
.ticket--xl .t-lead { max-width: 34em; margin: 0; }
.ticket--xl .barcode { height: 220px; }

/* ---------- Rodapé ---------- */
.footer { padding-block: var(--space-8); font-size: var(--fs-small); }
.footer__grid { display: flex; justify-content: space-between; gap: var(--space-7); flex-wrap: wrap; }
.footer__info p { margin: 0 0 6px; color: rgba(255,255,255,.85); }
.footer__info a { color: inherit; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .tl-grid { grid-template-columns: 1fr; }
  .tl-intro { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .indeniz__grid { grid-template-columns: 1fr; }
  .slot--tall { aspect-ratio: 16 / 11; }
}
@media (max-width: 560px) {
  .hero__content.container { width: calc(100% - 56px); }
  .hero__panel { padding: 36px 28px 32px; border-radius: 32px; }
  .hero__panel .logo { width: 124px; margin-bottom: var(--space-6); }
  .cards { grid-template-columns: 1fr; }
  /* Ticket deitado: texto em cima; picote + código de barras embaixo; entalhes no topo e na base */
  .ticket { --n: 12px; grid-template-columns: 1fr; grid-template-rows: auto auto;
    -webkit-mask: radial-gradient(circle var(--n) at 50% 0, #0000 97%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle var(--n) at 50% 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle var(--n) at 50% 0, #0000 97%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle var(--n) at 50% 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; }
  .ticket__stub { flex-direction: column; align-items: stretch; gap: 14px; padding: 0 clamp(24px, 6vw, 32px) 26px; }
  .perf { align-self: auto; width: auto; height: 6px; margin: 0 0 4px; background: radial-gradient(circle, #c9cfd0 2.5px, transparent 3px) center / 16px 6px repeat-x; }
  .barcode, .ticket--xl .barcode { flex-direction: column; align-items: stretch; height: auto; gap: 8px; }
  .barcode__v { display: none; }
  .barcode__h { display: block; width: 100%; height: 56px; }
  .barcode span { display: block; writing-mode: horizontal-tb; text-align: center; font-size: .78rem; letter-spacing: .4em; }
  .btn { width: 100%; justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .tl { --node: 44px; }
  .tl__step { grid-template-columns: calc(var(--node) + 12px) 1fr; }
  .faq__q { padding: 18px 20px; font-size: 1.05rem; }
  .faq__a p { padding: 0 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .tl__step:not(.is-active) { opacity: 1; }
  .tl__progress { transform: scaleY(1) !important; }
  .faq__a, .faq__a p, .faq__icon, .faq__icon::before, .faq__icon::after { transition: none !important; }
}

/* Desktop: posição fixa da coluna da esquerda */
@media (min-width: 961px) {
  .tl-intro { top: calc(50vh - 190px); }
}
