/* =========================================================
   Viação Cometa — Comprovante de viagem
   Tokens extraídos de viacaocometa.com.br (jca-v2 / wemobi)
   ========================================================= */

:root {
  --cometa-blue: #3a508e;
  --cometa-blue-dark: #2e4974;
  --cometa-navy: #0e1f3b;
  --cometa-blue-mid: #223b82;
  --cometa-gold: #f3b229;
  --cometa-gold-hot: #ffb800;
  --cometa-magenta: #ff0096;
  --cometa-text: #4a4a4a;
  --cometa-text-muted: #707070;
  --cometa-footer-muted: #919dc0;
  --cometa-bg: #f7f8fc;
  --cometa-border: #e0e3ea;
  --cometa-white: #ffffff;
  --cometa-error: #e30613;
  --cometa-success: #01717a;
  --shadow-header: 0 4px 18px rgba(14, 31, 59, 0.08);
  --shadow-card: 0 12px 40px rgba(14, 31, 59, 0.12);
  --radius: 12px;
  --radius-btn: 25px;
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  color: var(--cometa-text);
  background: #f5f6fa;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cometa-blue-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cometa-navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header app-like ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #eef0f5;
}

.app-header__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 0.5rem;
}

.app-header__menu,
.app-header__bell {
  font-size: 1.15rem;
  color: #1a2744;
  line-height: 1;
  text-align: center;
  user-select: none;
  opacity: 0.85;
}

.app-header__logo {
  display: flex;
  justify-content: center;
}

.app-header__logo img {
  width: 118px;
  height: auto;
}

.page-title-bar {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.85rem 1rem 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.page-title-bar__back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ff2d8f;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  flex-shrink: 0;
  user-select: none;
}

.page-title-bar__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f1b3d;
  letter-spacing: -0.02em;
}

/* legacy site-header kept if needed */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cometa-white);
  box-shadow: var(--shadow-header);
  min-height: var(--header-h);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__logo img {
  width: 140px;
  height: auto;
}

.logo-fallback {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--cometa-blue);
  text-transform: uppercase;
}

.logo-fallback--footer {
  color: var(--cometa-blue-dark);
  font-size: 1.5rem;
}

.site-header__nav {
  display: none;
  gap: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #3d3d3c;
}

.site-header__nav a,
.site-header__nav .nav-faux {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.site-header__nav a:hover {
  color: var(--cometa-blue);
  text-decoration: none;
}

/* Itens de navegação só visuais (sem sair do funil) */
.nav-faux {
  display: inline-block;
  color: inherit;
  font: inherit;
  cursor: default;
  user-select: none;
}

@media (min-width: 768px) {
  .site-header__logo img {
    width: 160px;
  }

  .site-header__nav {
    display: flex;
  }
}

/* ---------- Main ---------- */
.main {
  flex: 1;
  padding: 0.5rem 1rem 2.5rem;
}

.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
}

/* =========================================================
   Ticket / recibo — visual app Cometa
   ========================================================= */

.recibo.recibo--ticket,
article.recibo {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 1.15rem;
}

.ticket {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(15, 27, 61, 0.1);
  overflow: hidden;
  border: 1px solid #e8ebf2;
}

.ticket__banner {
  background: linear-gradient(180deg, #152447 0%, #0e1f3b 100%);
  color: #fff;
  text-align: center;
  padding: 1rem 1.25rem 1.15rem;
  border-radius: 0 0 22px 22px;
  position: relative;
}

.ticket__banner-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ticket__body {
  padding: 1.15rem 1.1rem 1.25rem;
}

.ticket-route {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ticket-route__col--end {
  text-align: right;
}

.ticket-route__pin {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.ticket-route__pin--end {
  justify-content: flex-end;
}

.ticket-route__pin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f3b229;
  box-shadow: 0 0 0 4px rgba(243, 178, 41, 0.2);
  flex-shrink: 0;
}

.ticket-route__pin-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f1b3d;
}

.ticket-route__city {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f1b3d;
  line-height: 1.25;
  word-break: break-word;
}

.ticket-route__station {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: #8b93a7;
  line-height: 1.3;
  word-break: break-word;
}

.ticket-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1rem 0.15rem 1.05rem;
}

.ticket-timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #c5cad6;
  background: #fff;
  flex-shrink: 0;
}

.ticket-timeline__line {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, #d7dbe5, #e8ebf2, #d7dbe5);
  border-radius: 99px;
  position: relative;
}

.ticket-timeline__line::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 5px;
  transform: translateY(-50%);
  background: #cfd4e0;
  border-radius: 99px;
  opacity: 0.9;
}

.ticket-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.ticket-times__col--end {
  text-align: right;
}

.ticket-times__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f1b3d;
  margin-bottom: 0.15rem;
}

.ticket-times__hour {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f1b3d;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ticket-times__hour--muted {
  color: #a0a7b8;
}

.ticket-times__date {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8b93a7;
}

.ticket-divider {
  border: 0;
  border-top: 1px dashed #d8dde8;
  margin: 1rem 0 0.85rem;
}

.ticket-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ticket-row {
  display: grid;
  grid-template-columns: 22px auto 1fr;
  gap: 0.35rem 0.45rem;
  align-items: baseline;
}

.ticket-row__icon {
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
}

.ticket-row__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f1b3d;
  white-space: nowrap;
}

.ticket-row__value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #3d4663;
  text-align: right;
  word-break: break-word;
}

.ticket-locator {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.8rem;
  background: #f4f6fb;
  border-radius: 12px;
  border: 1px solid #e4e8f1;
}

.ticket-locator__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b738c;
}

.ticket-locator__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f1b3d;
  background: #fff;
  border: 1px solid #d5dae6;
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
}

/* themes: don't gray-out the ticket */
body.theme-multa .recibo.recibo--ticket,
body.theme-estorno .recibo.recibo--ticket {
  opacity: 1;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--cometa-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(58, 80, 142, 0.35);
}

.btn--primary:hover {
  background: var(--cometa-blue-dark);
  color: #fff;
}

.btn--ghost {
  margin-top: 0.75rem;
  background: transparent;
  color: var(--cometa-blue-dark);
  border: 1px solid var(--cometa-border);
  box-shadow: none;
}

.btn--ghost:hover {
  background: #f0f2f8;
  color: var(--cometa-navy);
}

/* Login CPF */
.state-card--login {
  text-align: left;
}

.login-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cometa-navy), var(--cometa-blue));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.state-card--login .state-card__title,
.state-card--login .state-card__text {
  text-align: center;
}

.login-form {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.login-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cometa-text-muted);
}

.login-input {
  width: 100%;
  border: 1px solid var(--cometa-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cometa-navy);
  letter-spacing: 0.04em;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input:focus {
  border-color: var(--cometa-blue);
  box-shadow: 0 0 0 3px rgba(58, 80, 142, 0.15);
}

.login-error {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cometa-error);
  line-height: 1.35;
}

.login-submit {
  margin-top: 0.55rem;
  width: 100%;
}

.login-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn--gold {
  background: var(--cometa-gold);
  color: var(--cometa-navy);
  box-shadow: 0 6px 16px rgba(243, 178, 41, 0.4);
}

.btn--gold:hover {
  background: var(--cometa-gold-hot);
  color: var(--cometa-navy);
}

/* ---------- State cards ---------- */
.state-card {
  background: var(--cometa-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.25rem;
  text-align: center;
}

.state-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(227, 6, 19, 0.08);
  color: var(--cometa-error);
  font-weight: 900;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.state-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cometa-navy);
}

.state-card__text {
  margin: 0 0 1.5rem;
  color: var(--cometa-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--cometa-border);
  border-top-color: var(--cometa-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

[hidden] {
  display: none !important;
}

/* ---------- Alerta ---------- */
.alerta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fff8e8 0%, #fff 100%);
  border: 1px solid rgba(243, 178, 41, 0.55);
  border-left: 4px solid var(--cometa-gold);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(243, 178, 41, 0.12);
}

.alerta__badge {
  align-self: flex-start;
  background: var(--cometa-gold);
  color: var(--cometa-navy);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.alerta__text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cometa-navy);
  line-height: 1.45;
}

/* ---------- Recibo / bilhete ---------- */
.recibo {
  position: relative;
  background: var(--cometa-white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.recibo__band {
  background: linear-gradient(120deg, var(--cometa-navy) 0%, var(--cometa-blue) 55%, var(--cometa-blue-mid) 100%);
  color: #fff;
  padding: 1.1rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.recibo__brand {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recibo__stamp {
  background: var(--cometa-gold);
  color: var(--cometa-navy);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.recibo__body {
  padding: 1.25rem 1.15rem 1.5rem;
}

/* Rota em destaque */
.recibo__route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: start;
  padding: 0.25rem 0 1.15rem;
  border-bottom: 1px dashed var(--cometa-border);
  margin-bottom: 1.15rem;
}

.route-point {
  min-width: 0;
}

.route-point--dest {
  text-align: right;
}

.route-point__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cometa-gold);
  margin-bottom: 0.25rem;
}

.route-point__city {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cometa-navy);
  line-height: 1.25;
  word-break: break-word;
}

.route-point__state {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cometa-blue);
}

.route-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 1.1rem;
  color: var(--cometa-blue);
  min-width: 48px;
}

.route-arrow__line {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--cometa-blue), var(--cometa-gold));
  position: relative;
  border-radius: 2px;
}

.route-arrow__line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--cometa-gold);
}

.route-arrow__icon {
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 0.35rem;
  color: var(--cometa-text-muted);
  letter-spacing: 0.04em;
}

/* Meta grid */
.recibo__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.75rem;
  margin-bottom: 1.15rem;
}

.meta-item {
  min-width: 0;
}

.meta-item--full {
  grid-column: 1 / -1;
}

.meta-item__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cometa-text-muted);
  margin-bottom: 0.15rem;
}

.meta-item__value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cometa-navy);
  word-break: break-word;
}

.meta-item__value--lg {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--cometa-blue);
}

/* Seções */
.recibo__section {
  background: var(--cometa-bg);
  border-radius: 10px;
  padding: 0.95rem 1rem;
  margin-bottom: 0.85rem;
}

.recibo__section:last-of-type {
  margin-bottom: 0;
}

.recibo__section-title {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cometa-blue);
}

.recibo__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .recibo__fields {
    grid-template-columns: 1fr 1fr;
  }

  .route-point__city {
    font-size: 1.05rem;
  }
}

.field__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cometa-text-muted);
  margin-bottom: 0.1rem;
}

.field__value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cometa-navy);
  word-break: break-word;
}

.field__value--money {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--cometa-blue-dark);
}

/* Perfuração + rodapé do bilhete */
.recibo__tear {
  position: relative;
  height: 16px;
  background:
    radial-gradient(circle at 8px 0, transparent 7px, var(--cometa-bg) 8px) left center / 16px 16px repeat-x;
  margin-top: 0.25rem;
}

.recibo__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem 1.1rem;
  background: var(--cometa-bg);
}

.recibo__code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cometa-blue-dark);
}

.recibo__barcode {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 28px;
  opacity: 0.85;
}

.recibo__barcode span {
  display: block;
  width: 2px;
  background: var(--cometa-navy);
  border-radius: 1px;
}

/* ---------- Oferta / CTA ---------- */
.oferta {
  background: var(--cometa-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.15rem 1.4rem;
  border-top: 3px solid var(--cometa-gold);
}

.oferta__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cometa-gold);
}

.oferta__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--cometa-navy);
}

.oferta__text {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cometa-text-muted);
  line-height: 1.45;
}

.oferta .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .oferta .btn {
    width: auto;
    min-width: 220px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cometa-bg);
  border-top: 1px solid var(--cometa-border);
  margin-top: auto;
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1rem 1.5rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--cometa-blue-dark);
}

.site-footer__logo {
  width: 100px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.site-footer__social {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.site-footer__social a,
.site-footer__social .nav-faux {
  color: var(--cometa-text);
}

.site-footer__mid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 0;
}

@media (min-width: 640px) {
  .site-footer__mid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.site-footer__label {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cometa-blue-dark);
}

.site-footer__pay-list {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cometa-text);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.site-footer__links a,
.site-footer__links .nav-faux {
  color: var(--cometa-text);
}

.site-footer__bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--cometa-border);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--cometa-footer-muted);
}

.site-footer__bottom p {
  margin: 0 0 0.25rem;
}

.site-footer__note {
  font-weight: 600;
}

/* Desktop polish */
@media (min-width: 768px) {
  .main {
    padding: 2rem 1.5rem 3rem;
  }

  .recibo__body {
    padding: 1.5rem 1.5rem 1.75rem;
  }

  .alerta {
    padding: 1.15rem 1.35rem;
  }

  .oferta {
    padding: 1.5rem 1.5rem 1.6rem;
  }
}

/* =========================================================
   iOS toast — canto inferior, amarelo, animação leve
   Some quando o aviso do pedágio entra na viewport
   ========================================================= */

.ios-toast {
  position: fixed;
  right: 0.85rem;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  left: auto;
  z-index: 200;
  max-width: min(280px, calc(100vw - 1.7rem));
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ios-toast--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: ios-toast-float 2.4s ease-in-out 0.35s infinite;
}

.ios-toast__card {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: linear-gradient(160deg, #fff9db 0%, #ffe566 100%);
  border: 1px solid #e6c200;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  box-shadow: 0 8px 22px rgba(160, 120, 0, 0.28);
  color: #5c4a00;
}

.ios-toast__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3b229;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
  box-shadow: 0 2px 6px rgba(180, 140, 0, 0.35);
}

.ios-toast__icon svg {
  display: block;
}

.ios-toast__body {
  flex: 1;
  min-width: 0;
}

.ios-toast__title {
  margin: 0 0 0.15rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #3d3200;
  line-height: 1.2;
}

.ios-toast__text {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #5c4a00;
  line-height: 1.3;
}

@keyframes ios-toast-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1);
  }
}

/* =========================================================
   Android toast — canto inferior, verde, vibe positiva
   Some quando o card de estorno entra na viewport
   ========================================================= */

.android-toast {
  position: fixed;
  right: 0.85rem;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  left: auto;
  z-index: 200;
  max-width: min(290px, calc(100vw - 1.7rem));
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.android-toast--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: android-toast-float 2.6s ease-in-out 0.35s infinite;
}

.android-toast__card {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: linear-gradient(160deg, #ecfdf5 0%, #bbf7d0 100%);
  border: 1px solid #6ee7b7;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  box-shadow: 0 8px 22px rgba(5, 120, 80, 0.22);
  color: #065f46;
}

.android-toast__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.android-toast__icon svg {
  display: block;
}

.android-toast__body {
  flex: 1;
  min-width: 0;
}

.android-toast__title {
  margin: 0 0 0.15rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #064e3b;
  line-height: 1.2;
}

.android-toast__text {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #047857;
  line-height: 1.35;
}

@keyframes android-toast-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1);
  }
}

/* =========================================================
   Tema iOS — Pedágio Free Flow
   Hierarquia: 1) dados do passageiro (real / é com ele)
               2) aviso do pedágio (secundário)
               3) CTA
   ========================================================= */

body.theme-multa {
  --multa-red: #b42318;
  --multa-red-deep: #8b1520;
  --multa-red-soft: #fef3f2;
  --multa-border: #fecdca;
  --multa-ink: #7a271a;
  background: var(--cometa-bg);
}

body.theme-multa .site-header {
  border-bottom: 1px solid var(--cometa-border);
}

/* ---- Recibo em evidência (identidade primeiro) ---- */
body.theme-multa .recibo--identity-first,
body.theme-multa .recibo {
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(58, 80, 142, 0.12);
  border-radius: 16px;
  background: #fff;
  opacity: 1;
}

body.theme-multa .recibo__band {
  background: linear-gradient(120deg, var(--cometa-navy) 0%, var(--cometa-blue) 55%, var(--cometa-blue-mid) 100%);
  padding: 1.1rem 1.25rem 1rem;
}

body.theme-multa .recibo__stamp {
  background: var(--cometa-gold);
  color: var(--cometa-navy);
}

.recibo__identity {
  margin: 0 0 1.1rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7f8fc 0%, #eef2fb 100%);
  border: 1px solid rgba(58, 80, 142, 0.15);
}

.recibo__identity-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cometa-blue);
}

.recibo__identity-name {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--cometa-navy);
  word-break: break-word;
}

.recibo__identity-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cometa-text);
}

.recibo__identity-meta span {
  word-break: break-word;
}

/* ---- Aviso do pedágio (depois dos dados, menos “hero”) ---- */
body.theme-multa .alerta {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0.85rem;
}

.multa-hero {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--multa-border);
  border-left: 4px solid var(--multa-red);
  border-radius: 10px;
  padding: 0.95rem 1rem 1.05rem;
  box-shadow: 0 4px 14px rgba(180, 35, 24, 0.08);
}

.multa-hero__top {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.multa-hero__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--multa-red);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.multa-hero__protocol {
  margin: 0 0 0.2rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--multa-red);
}

.multa-hero__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--multa-red-deep);
}

.multa-hero__text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--multa-ink);
  line-height: 1.45;
}

.multa-valor {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label label"
    "amount status";
  gap: 0.1rem 0.65rem;
  align-items: baseline;
  background: var(--multa-red-soft);
  border: 1px solid var(--multa-border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}

.multa-valor__label {
  grid-area: label;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a5b55;
}

.multa-valor__amount {
  grid-area: amount;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--multa-red-deep);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.multa-valor__status {
  grid-area: status;
  justify-self: end;
  align-self: center;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--multa-red);
  background: #fff;
  border: 1px solid var(--multa-border);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.multa-bullets {
  margin: 0;
  padding: 0 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.multa-bullets li {
  font-size: 0.75rem;
  font-weight: 500;
  color: #5c3a36;
  line-height: 1.4;
}

.multa-bullets li::marker {
  color: var(--multa-red);
}

.multa-hero__prazo {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--multa-red-deep);
  line-height: 1.4;
  padding: 0.55rem 0.65rem;
  background: rgba(180, 35, 24, 0.06);
  border-radius: 6px;
}

body.theme-multa .oferta__detran {
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--multa-ink);
  background: var(--multa-red-soft);
  border: 1px solid var(--multa-border);
  border-radius: 8px;
}

body.theme-multa .oferta__detran strong {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 800;
  color: var(--multa-red-deep);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.theme-multa .oferta__fineprint {
  margin: 0.65rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #8a6a6a;
  line-height: 1.35;
}

body.theme-multa .oferta--multa,
body.theme-multa .oferta {
  border-top: 0;
  border: 1px solid var(--multa-border);
  background: #fff;
  box-shadow: 0 6px 18px rgba(180, 35, 24, 0.08);
  margin-bottom: 0.5rem;
}

body.theme-multa .oferta__eyebrow {
  color: var(--multa-red);
}

body.theme-multa .oferta__title {
  color: var(--multa-red-deep);
  font-size: 1.05rem;
}

.btn--danger {
  background: var(--multa-red, #b42318);
  color: #fff;
  box-shadow: 0 6px 16px rgba(180, 35, 24, 0.3);
}

.btn--danger:hover {
  background: var(--multa-red-deep, #8b1520);
  color: #fff;
}

@media (min-width: 480px) {
  .recibo__identity-name {
    font-size: 1.5rem;
  }

  .multa-hero__title {
    font-size: 1.05rem;
  }

  .multa-valor__amount {
    font-size: 1.5rem;
  }
}

/* =========================================================
   Tema Android — estorno / cobrança a maior (oposto ao iOS)
   Hierarquia: 1) dados do passageiro
               2) comparativo de valores + crédito
               3) CTA Google Play
   ========================================================= */

body.theme-estorno {
  --estorno-teal: #01717a;
  --estorno-teal-deep: #0e4f56;
  --estorno-soft: #e6f6f7;
  --estorno-border: #9fd4d8;
  --estorno-credit: #0a7a3e;
  --estorno-credit-bg: #e9f9ef;
  --estorno-wrong: #9a3412;
  background:
    linear-gradient(180deg, #eef9fa 0%, var(--cometa-bg) 40%);
}

body.theme-estorno .site-header {
  border-bottom: 1px solid var(--estorno-border);
}

body.theme-estorno .recibo--identity-first,
body.theme-estorno .recibo {
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(1, 113, 122, 0.12);
}

body.theme-estorno .alerta {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0.85rem;
}

.estorno-hero {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--estorno-border);
  border-left: 4px solid var(--estorno-teal);
  border-radius: 10px;
  padding: 0.95rem 1rem 1.1rem;
  box-shadow: 0 6px 18px rgba(1, 113, 122, 0.1);
}

.estorno-hero__top {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.estorno-hero__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--estorno-teal);
  color: #fff;
  font-weight: 900;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.estorno-hero__protocol {
  margin: 0 0 0.2rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--estorno-teal);
}

.estorno-hero__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--estorno-teal-deep);
}

.estorno-hero__text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2d4a4d;
  line-height: 1.45;
}

.estorno-values {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--estorno-soft);
  border: 1px solid var(--estorno-border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.estorno-values__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.estorno-values__label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4a6669;
  line-height: 1.3;
}

.estorno-values__amount {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cometa-navy);
  white-space: nowrap;
}

.estorno-values__row--wrong .estorno-values__amount {
  color: var(--estorno-wrong);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.estorno-values__row--credit {
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--estorno-border);
}

.estorno-values__row--credit .estorno-values__label {
  font-weight: 800;
  color: var(--estorno-credit);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.65rem;
}

.estorno-values__amount--lg {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--estorno-credit) !important;
}

.estorno-bullets {
  margin: 0;
  padding: 0 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.estorno-bullets li {
  font-size: 0.75rem;
  font-weight: 500;
  color: #2d4a4d;
  line-height: 1.4;
}

.estorno-bullets li::marker {
  color: var(--estorno-teal);
}

.estorno-hero__prazo {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--estorno-teal-deep);
  line-height: 1.4;
  padding: 0.55rem 0.65rem;
  background: rgba(1, 113, 122, 0.08);
  border-radius: 6px;
}

body.theme-estorno .oferta--estorno,
body.theme-estorno .oferta {
  border-top: 0;
  border: 1px solid var(--estorno-border);
  background: #fff;
  box-shadow: 0 6px 18px rgba(1, 113, 122, 0.1);
  margin-bottom: 0.5rem;
}

body.theme-estorno .oferta__eyebrow {
  color: var(--estorno-teal);
}

body.theme-estorno .oferta__title {
  color: var(--estorno-teal-deep);
  font-size: 1.05rem;
}

.oferta__credit {
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem;
  background: var(--estorno-credit-bg);
  border: 1px solid #a7e3bc;
  border-radius: 10px;
  text-align: center;
}

.oferta__credit strong {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--estorno-credit);
  margin-bottom: 0.2rem;
}

.oferta__credit-amount {
  display: block;
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--estorno-credit);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.oferta__credit-note {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #3d6b4a;
}

.btn--play {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  background: #111214;
  color: #fff;
  border: 1px solid #2a2b2e;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  min-height: 58px;
  padding: 0.55rem 0.85rem 0.55rem 0.65rem;
  text-align: left;
}

.btn--play:hover {
  background: #1a1b1e;
  color: #fff;
  text-decoration: none;
  border-color: #3a3b40;
}

.btn-play__icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.btn-play__logo {
  width: 26px;
  height: 26px;
  display: block;
}

.btn-play__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  flex: 1;
  min-width: 0;
  line-height: 1.15;
}

.btn-play__eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.btn-play__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.btn-play__arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
}

body.theme-estorno .oferta__fineprint {
  margin: 0.65rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6a8083;
  line-height: 1.35;
  text-align: center;
}

@media (min-width: 480px) {
  .estorno-hero__title {
    font-size: 1.15rem;
  }

  .estorno-values__amount--lg {
    font-size: 1.5rem;
  }

  .oferta__credit-amount {
    font-size: 1.85rem;
  }

  .btn--play {
    width: auto;
    min-width: 280px;
  }
}
