/* ============================================================
   Componentes
   ============================================================ */

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em;
  padding: 0.35rem 0.75rem; border-radius: var(--r-pill);
  background: var(--gold-50); color: var(--accent-ink);
  border: 1px solid var(--gold-100);
}
.badge--soft { background: var(--red-50); color: var(--brand-ink); border-color: var(--red-100); }
.badge--live { background: var(--red-50); color: var(--brand-ink); border-color: var(--red-100); }
.badge--live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red-600);
  box-shadow: 0 0 0 0 rgba(187,45,43,0.5); animation: pulse 2.4s var(--ease) infinite;
}
.badge--unofficial {
  background: rgba(255,255,255,0.55); color: var(--ink-2); border-color: var(--line);
  font-weight: 600; text-transform: none; letter-spacing: 0;
  max-width: 100%;
}
.badge--unofficial .badge-tx { min-width: 0; }
.badge--unofficial .badge-ic { flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-weight: 700; font-size: var(--fs-sm); line-height: 1;
  padding: 0.95rem 1.5rem; border-radius: var(--r-pill);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--sh-red); }
.btn--primary:hover { background: var(--brand-ink); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(164,22,26,0.28); }

.btn--gold { background: var(--accent); color: var(--ink); box-shadow: var(--sh-gold); }
.btn--gold:hover { background: var(--gold-600); color: #fff; transform: translateY(-2px); }

.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.btn--ghost:hover { border-color: var(--red-500); color: var(--brand-ink); transform: translateY(-2px); box-shadow: var(--sh-2); }

.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: var(--fs-body); }
.btn--sm { padding: 0.6rem 1rem; font-size: var(--fs-xs); }

/* ---------- Navbar (glass) ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.nav.is-stuck { border-color: var(--line); box-shadow: 0 1px 0 rgba(43,36,32,0.02), var(--sh-1); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(150deg, var(--red-600), var(--red-800));
  display: grid; place-items: center; color: var(--gold-300); font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), var(--sh-1);
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  color: var(--text-soft); font-size: var(--fs-sm); font-weight: 600;
  padding: 0.5rem 0.85rem; border-radius: var(--r-pill);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--brand-ink); background: var(--red-50); }
.nav-cta {
  margin-left: 0.6rem;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  min-height: 42px;
  font-size: var(--fs-sm);
  border-radius: var(--r-pill);
}
/* texto sempre branco (a regra .nav-links a estava deixando marrom) */
.nav-links a.nav-cta { color: #fff; background: var(--brand); }
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.is-active { color: #fff; background: var(--brand-ink); }
.nav-cta .nav-cta-ic { display: inline-flex; margin-left: -2px; }
.nav-cta .nav-cta-ic svg { width: 16px; height: 16px; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); margin-inline: auto; position: relative; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--surface); padding: 1rem clamp(1.25rem,4vw,2.5rem) 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
    box-shadow: var(--sh-2);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 0.85rem 1rem; }
  .nav-cta { margin: 0.5rem 0 0; }
}

/* ---------- Frase automática ---------- */
.phrase {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 500;
  color: var(--text-soft);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.phrase.is-swapping { opacity: 0; transform: translateY(6px); }
.phrase-inline { font-size: var(--fs-lead); }
.phrase-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--surface); border: 1px solid var(--line);
  padding: 0.6rem 1.1rem; border-radius: var(--r-pill); box-shadow: var(--sh-1);
  font-size: var(--fs-sm); font-style: italic; font-weight: 500; color: var(--text-soft);
}
.phrase-chip .spark { font-style: normal; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 620px; z-index: -1;
  background:
    radial-gradient(520px 340px at 78% 8%, rgba(221,166,58,0.18), transparent 70%),
    radial-gradient(560px 420px at 12% -10%, rgba(164,22,26,0.10), transparent 65%);
  pointer-events: none;
}
.hero-inner { max-width: 820px; }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.045em; margin: var(--s-5) 0 var(--s-5); }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.28em;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-100)); z-index: -1; border-radius: 3px;
  transform: scaleX(0); transform-origin: left; animation: underline 0.9s var(--ease) 0.5s forwards;
}
.hero-lead { font-size: var(--fs-lead); color: var(--text-soft); max-width: 560px; margin-bottom: var(--s-4); }
.hero-sub { color: var(--ink-3); max-width: 540px; margin-bottom: var(--s-6); font-size: var(--fs-body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-bottom: var(--s-6); }
.hero-phrase { margin-top: var(--s-2); }

/* Cartão "está chamando" no hero */
.hero-callcard {
  margin-top: var(--s-6);
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-5);
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6); box-shadow: var(--sh-2);
}
.hero-callcard .cc-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 700; }
.hero-callcard .cc-date { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--brand); line-height: 1; margin-top: 4px; }
.hero-callcard .cc-sep { width: 1px; align-self: stretch; background: var(--line-2); }
.hero-callcard .cc-meta { font-size: var(--fs-sm); color: var(--text-soft); max-width: 220px; }

/* ---------- Cartão genérico ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: clamp(1.25rem, 2.4vw, 1.9rem);
  box-shadow: var(--sh-1); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }

/* ---------- Cartões de estatística (comunidade informa) ---------- */
.stat-card { position: relative; overflow: hidden; }
.stat-card .stat-ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: var(--s-4); color: var(--brand);
  background: var(--red-50); box-shadow: inset 0 0 0 1px var(--red-100);
}
.stat-card.is-gold .stat-ico { background: var(--gold-50); box-shadow: inset 0 0 0 1px var(--gold-100); color: var(--gold-700); }
.stat-value { font-family: var(--font-display); font-size: var(--fs-stat); line-height: 1.02; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.stat-value.is-date { font-size: clamp(1.7rem, 4.2vw, 2.35rem); }
.stat-value.is-brand { color: var(--brand); }
.stat-label { font-size: var(--fs-sm); color: var(--text-soft); margin-top: var(--s-3); }
.stat-foot { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s-2); }

/* ---------- Consulta / formulário ---------- */
.consulta-card { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-lg); box-shadow: var(--sh-2); border-color: var(--line-2); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; }
.control {
  width: 100%; padding: 0.85rem 1rem; font-size: var(--fs-body);
  background: var(--bg); border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  color: var(--text); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  appearance: none;
}
.control:focus { outline: none; border-color: var(--red-500); box-shadow: 0 0 0 4px var(--red-50); background: var(--surface); }
select.control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e655d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.6rem;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.form-grid .col-span { grid-column: 1 / -1; }
@media (max-width: 620px){ .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-2); }
.form-note { font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------- Consulta: formulário estreito, resultado largo ---------- */
.consulta-shell { max-width: var(--maxw-narrow); margin-inline: auto; }

/* ---------- Resultado ---------- */
.result { margin-top: var(--s-6); max-width: 960px; margin-inline: auto; }
.result[hidden] { display: none; }
.result-hero {
  background: linear-gradient(135deg, var(--red-800), var(--red-700) 60%, #8f1518);
  color: #fff; border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--sh-red); position: relative; overflow: hidden;
}
.result-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(221,166,58,0.35), transparent 68%); pointer-events: none;
}
.result-hero .rh-eyebrow { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-300); font-weight: 700; }
.result-hero .rh-stage { font-family: var(--font-display); font-size: clamp(1.7rem,4vw,2.5rem); margin: 0.4rem 0 0.6rem; display: flex; align-items: center; gap: 0.6rem; }
.result-hero .rh-desc { color: rgba(255,255,255,0.9); max-width: 560px; font-size: var(--fs-body); }
.result-hero .rh-phrase { margin-top: var(--s-5); color: var(--gold-100); font-family: var(--font-display); font-style: italic; }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-5); }
@media (max-width: 780px){ .result-grid { grid-template-columns: 1fr; } }
.mini-stat .ms-k { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 700; }
.mini-stat .ms-v { font-family: var(--font-display); font-size: clamp(1.4rem, 1.6vw, 1.7rem); color: var(--ink); margin-top: 4px; line-height: 1.15; }
.mini-stat .ms-v.brand { color: var(--brand); }
.mini-stat .ms-note { font-size: var(--fs-sm); color: var(--text-soft); margin-top: 4px; }

/* Barra "onde estou na fila" - com bandeira da Espanha no marcador */
.queue-bar { margin-top: var(--s-4); }
.queue-track { position: relative; height: 16px; border-radius: var(--r-pill); background: var(--cream-2); box-shadow: inset 0 0 0 1px var(--line); }
.queue-fill { position: absolute; inset: 0 auto 0 0; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--flag-red), var(--gold-500) 85%, var(--flag-gold)); width: 0; transition: width 1.2s var(--ease-out); box-shadow: 0 2px 8px rgba(198, 11, 30, 0.28); }
/* A pequena bandeira da Espanha que marca a sua posicao */
.queue-you {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 40px; height: 27px; border-radius: 6px; z-index: 2; overflow: hidden;
  border: 2.5px solid #fff;
  box-shadow: var(--sh-2), 0 0 0 1px rgba(0,0,0,0.04);
  transition: left 1.2s var(--ease-out);
}
.queue-you svg { width: 100%; height: 100%; display: block; }
.queue-legend { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s-5); font-weight: 600; }
.queue-legend b { color: var(--brand); }

/* Lista de protocolos próximos */
.near-list { display: flex; flex-direction: column; gap: 0; }
.near-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-4);
  padding: 0.85rem 0; border-top: 1px solid var(--line);
}
.near-row:first-child { border-top: 0; }
.near-row.is-you { background: var(--gold-50); margin-inline: -0.75rem; padding-inline: 0.75rem; border-radius: var(--r-sm); border-top-color: transparent; }
.near-row .nr-date { font-family: var(--font-display); font-size: var(--fs-body); color: var(--ink); min-width: 92px; }
.near-row .nr-name { font-weight: 600; font-size: var(--fs-sm); }
.near-row .nr-meta { font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------- Timeline / jornada ---------- */
.timeline { position: relative; margin-top: var(--s-6); }
.tl-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: var(--s-5); padding-bottom: var(--s-6); }
.tl-item:last-child { padding-bottom: 0; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before { content: ""; position: absolute; top: 52px; bottom: -8px; width: 2px; background: var(--line-2); }
.tl-item:last-child .tl-rail::before { display: none; }
.tl-node {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--ink-2);
  background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: var(--sh-1); z-index: 1;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.tl-content { padding-top: 4px; }
.tl-content h3 { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.tl-tag { font-size: var(--fs-xs); font-weight: 700; padding: 0.2rem 0.6rem; border-radius: var(--r-pill); background: var(--cream-2); color: var(--ink-2); letter-spacing: 0.02em; }
.tl-short { color: var(--text-soft); font-size: var(--fs-sm); margin-top: 2px; }
.tl-desc { margin-top: var(--s-3); color: var(--text-soft); font-size: var(--fs-body); max-width: 620px; }

.tl-item.is-done .tl-node { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.tl-item.is-done .tl-rail::before { background: linear-gradient(var(--ok), var(--line-2)); }
.tl-item.is-current .tl-node {
  border-color: var(--brand); background: linear-gradient(150deg, var(--red-600), var(--red-800)); color: #fff;
  transform: scale(1.12); box-shadow: var(--sh-red); animation: node-glow 3s var(--ease) infinite;
}
.tl-item.is-current .tl-tag { background: var(--red-700); color: #fff; }
.tl-item.is-current .tl-content h3 { color: var(--brand); }
.tl-item.is-upcoming .tl-node { opacity: 0.7; }
.tl-item.is-upcoming .tl-content { opacity: 0.72; }

/* seletor de etapa da jornada */
.stage-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--s-5); }
.stage-chip {
  font-size: var(--fs-sm); font-weight: 600; padding: 0.5rem 0.95rem; border-radius: var(--r-pill);
  background: var(--surface); border: 1.5px solid var(--line-2); color: var(--text-soft);
  transition: all var(--t-fast) var(--ease);
}
.stage-chip:hover { border-color: var(--red-500); color: var(--brand-ink); }
.stage-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--sh-1); }

/* ---------- Fluxos ---------- */
.flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 720px){ .flow-grid { grid-template-columns: 1fr; } }
.flow-card { position: relative; overflow: hidden; }
.flow-card .flow-tag { display: inline-flex; align-items: center; gap: 0.4rem; }
.flow-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: var(--s-4) 0; }
.flow-step { font-size: var(--fs-xs); font-weight: 700; padding: 0.35rem 0.7rem; border-radius: var(--r-pill); background: var(--cream-2); color: var(--ink-2); }
.flow-arrow { color: var(--ink-3); }
.flow-card p { color: var(--text-soft); font-size: var(--fs-sm); }
.flow-card.is-current-flow { border-color: var(--red-500); box-shadow: var(--sh-2); }
.flow-card.is-current-flow .flow-tag { color: var(--brand-ink); }

/* ---------- Comunidade: feed + charts ---------- */
.community-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s-5); align-items: start; }
@media (max-width: 860px){ .community-grid { grid-template-columns: 1fr; } }

.feed { display: flex; flex-direction: column; }
.feed-item { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.feed-item:first-child { border-top: 0; }
.feed-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--ok); background: var(--ok-bg); }
.feed-main .fm-title { font-weight: 600; font-size: var(--fs-sm); }
.feed-main .fm-sub { font-size: var(--fs-xs); color: var(--ink-3); }
.feed-when { font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap; }

.bars { display: flex; flex-direction: column; gap: var(--s-4); }
.bar-row { display: grid; grid-template-columns: 122px 1fr auto; gap: var(--s-3); align-items: center; }
.bar-row .bar-k { font-size: var(--fs-xs); color: var(--text-soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 12px; border-radius: var(--r-pill); background: var(--cream-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bar-fill { height: 100%; border-radius: var(--r-pill); width: 0; transition: width 1s var(--ease-out); background: linear-gradient(90deg, var(--red-600), var(--red-500)); }
.bar-fill.g { background: linear-gradient(90deg, var(--gold-600), var(--gold-500)); }
.bar-row .bar-v { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.info-list { display: grid; gap: var(--s-3); }
.info-list li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); font-size: var(--fs-sm); color: var(--text-soft); }
.info-list li b { color: var(--text); font-weight: 700; }
.info-list .ico { color: var(--accent-ink); }

/* ---------- Café / Pix ---------- */
.cafe { text-align: center; }
.cafe-card {
  max-width: 620px; margin-inline: auto; border-radius: var(--r-lg);
  background: linear-gradient(160deg, #fff, var(--gold-50));
  border: 1px solid var(--gold-100); box-shadow: var(--sh-2); padding: clamp(2rem, 4vw, 3rem);
}
.cafe-emoji { font-size: 2.6rem; }
.cafe h2 { margin: var(--s-3) 0 var(--s-3); }
.cafe p { color: var(--text-soft); max-width: 460px; margin-inline: auto; }
.cafe .btn { margin-top: var(--s-5); }
.pix-panel { margin-top: var(--s-5); overflow: hidden; max-height: 0; opacity: 0; transition: max-height var(--t-slow) var(--ease), opacity var(--t) var(--ease); }
.pix-panel.is-open { max-height: 520px; opacity: 1; }
.pix-inner { display: flex; flex-wrap: wrap; gap: var(--s-6); align-items: center; justify-content: center; padding-top: var(--s-4); }
.pix-qr { width: 150px; height: 150px; border-radius: var(--r-sm); background: #fff; padding: 10px; box-shadow: var(--sh-1); border: 1px solid var(--line); }
.pix-qr img, .pix-qr svg { width: 100%; height: 100%; }
.pix-key-wrap { text-align: left; }
.pix-key-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 700; }
.pix-key {
  display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2);
  background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); padding: 0.7rem 0.9rem;
}
.pix-key code { font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-body); color: var(--ink); }
.pix-thanks { font-family: var(--font-display); font-style: italic; color: var(--accent-ink); margin-top: var(--s-4); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 0.8rem 1.3rem; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--sh-3); z-index: 200;
  opacity: 0; pointer-events: none; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Disclaimer band ---------- */
.disclaimer {
  display: flex; gap: var(--s-4); align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--r-md); padding: var(--s-5); box-shadow: var(--sh-1);
}
.disclaimer .ico { font-size: 1.3rem; line-height: 1.4; }
.disclaimer p { font-size: var(--fs-sm); color: var(--text-soft); }
.disclaimer b { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }
.reveal.d4 { transition-delay: 0.24s; }

/* ============================================================
   Ícones (Lucide) e bandeira da Espanha
   ============================================================ */
.ic { display: block; }
.badge-ic, .flow-arrow, .chip-ic, .rh-ico { display: inline-flex; }
.badge { align-items: center; }
.flow-tag { display: inline-flex; align-items: center; gap: 0.4rem; }
.stage-chip { display: inline-flex; align-items: center; gap: 0.45rem; }
.info-list .ico, .disclaimer .ico { display: inline-flex; align-items: center; color: var(--accent-ink); }
.nr-you { color: var(--brand); display: inline-flex; justify-content: flex-end; }
.cafe-emoji { display: inline-flex; justify-content: center; color: var(--gold-600); }
.card-title { font-size: 1.2rem; }
.queue-title { font-weight: 700; font-size: 1.15rem; }
.queue-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.3rem; }
.queue-zone {
  font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand); background: var(--red-50); border: 1px solid var(--red-100);
  padding: 0.32rem 0.75rem; border-radius: var(--r-pill); white-space: nowrap;
}
.queue-sub { font-size: var(--fs-sm); color: var(--text-soft); margin-bottom: 0.5rem; max-width: 640px; }
.queue-legend .ql-right { color: var(--brand); font-weight: 700; }

/* Barra de progresso da cidadania (jornada) */
.jbar { margin-top: 1.4rem; }
.jbar-tick {
  position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #fff; border: 2px solid var(--line-2); z-index: 1;
}
.jbar-tick.done { background: var(--gold-500); border-color: var(--gold-500); }
.jbar-tick.current { background: var(--brand); border-color: #fff; box-shadow: 0 0 0 2px var(--brand); }
.jbar-zones {
  display: flex; justify-content: space-between; margin-top: 1rem;
  font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.jbar-zones .on { color: var(--brand); }
.jbar-quip {
  margin-top: 0.9rem; font-style: italic; font-weight: 500;
  color: var(--accent-ink); font-size: var(--fs-sm);
  border-left: 3px solid var(--gold-300); padding-left: 0.8rem;
}
.match-note {
  font-size: var(--fs-sm); color: var(--text-soft);
  background: var(--gold-50); border: 1px solid var(--gold-100);
  padding: 0.7rem 1rem; border-radius: var(--r-sm); margin-top: var(--s-5);
}
.match-note b { color: var(--ink); font-weight: 700; }
.near-title { font-size: 1.2rem; margin-bottom: 0.25rem; }

.es-flag {
  display: inline-block; border-radius: 5px; overflow: hidden; flex: none; vertical-align: middle;
  box-shadow: var(--sh-1), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.es-flag svg { display: block; width: 100%; height: 100%; }
.es-flag--wave { animation: flagwave 4.5s var(--ease) infinite; transform-origin: left center; }
.pix-flag, .footer-flag { vertical-align: -0.3em; }

/* ---------- Quebras de linha: rótulos curtos não quebram ---------- */
.tl-tag, .flow-step, .flow-tag, .badge, .cc-label, .cc-date,
.queue-legend span, .nr-date, .feed-when,
.bar-v, .stage-chip { white-space: nowrap; }
/* "e-mail", "Bisneto(a)" etc. não quebram no hífen/parêntese */
.tl-content h3 span:first-child, .flow-card h3, .fm-title { overflow-wrap: normal; }

/* Hero call card com bandeira em destaque */
.hero-callcard { align-items: center; gap: var(--s-5); }
.cc-flag { flex: none; box-shadow: var(--sh-2); border-radius: 7px; }
.cc-main { display: block; }
.cc-main .cc-meta { max-width: 360px; margin-top: 0.4rem; }

/* ============================================================
   Mobile - caprichado (a maioria acessa pelo celular)
   ============================================================ */
@media (max-width: 620px) {
  .btn { padding: 1.05rem 1.6rem; min-height: 52px; }        /* alvos de toque generosos */
  .btn--sm { min-height: 44px; padding: 0.7rem 1.1rem; }
  .stage-chip { min-height: 44px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 1.25rem; }
  .hero h1 { margin: 1.1rem 0; }
  .hero-actions { gap: 0.75rem; }
  .hero-actions .btn { width: 100%; }                         /* CTAs de largura total */

  .hero-callcard { width: 100%; gap: 0.35rem 1.25rem; padding: 1.35rem 1.4rem; border-radius: var(--r-md); }
  .hero-callcard .cc-sep { display: none; }
  .hero-callcard .cc-meta { max-width: none; width: 100%; margin-top: 0.35rem; }
  .hero-callcard .cc-date { font-size: 2.4rem; }

  .brand { font-size: 1.08rem; gap: 0.5rem; }
  .brand-mark { width: 32px; height: 32px; }

  .section-head p { font-size: 1.15rem; }
  .result-hero .rh-stage { font-size: 1.75rem; }
  .result-grid { gap: 1rem; }

  .queue-you { width: 34px; height: 24px; }
  .near-row { grid-template-columns: auto 1fr; gap: 0.35rem 0.9rem; }
  .near-row .nr-date { min-width: 0; grid-row: 1 / 3; align-self: center; font-size: 1.05rem; }
  .near-row > div:last-child { display: none; }

  .feed-item { grid-template-columns: auto 1fr; row-gap: 0.15rem; }
  .feed-when { grid-column: 2; grid-row: 2; }
  .bar-row { grid-template-columns: 116px 1fr auto; }

  .cafe-card { padding: 1.75rem 1.35rem; }
  .pix-inner { gap: 1.5rem; }
}

/* Telas bem estreitas: nada de vazamento horizontal */
@media (max-width: 360px) {
  .brand span:last-child { font-size: 1rem; }
  .nav-cta { display: none; }
  .bar-row { grid-template-columns: 104px 1fr auto; }
}
