/* ============================================================================
   DRIVE7 · TOKENS + PRIMITIVOS (espelha o sistema canônico de
   EntregaXP/paginadrive7: brand-tokens.css + site.css). Sistema FLAT, escuro,
   editorial: #000, superfícies #0A0A0A, hairlines #1F1F1F, vermelho cirúrgico.
   SEM glow, SEM sombra em card, SEM raio grande, SEM gradiente decorativo.
   ============================================================================ */

@font-face {
  font-family: 'Archivo Black';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/archivo-black.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/instrument-sans.woff2') format('woff2');
}

:root {
  /* cor — única fonte literal (canônico) */
  --d7-black: #000000;
  --d7-red: #ED3237;          /* decoração/ícones/eyebrow/<em>/hover */
  --d7-white: #FEFEFE;
  --d7-surface: #0A0A0A;      /* superfície sobre o preto */
  --d7-line: #1F1F1F;         /* toda borda/divisor (1px) */
  --d7-muted: #9A9A9A;        /* texto secundário */
  --d7-red-dark: #C4262A;     /* preenchimento sólido com texto branco (AA) */
  --d7-red-soft: rgba(237, 50, 55, .12);

  --accent: var(--d7-red);
  --bg: var(--d7-black);
  --fg: var(--d7-white);

  --d7-font-display: 'Archivo Black', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --d7-font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* espaço (canônico --s1..--s10) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* raio (canônico; teto 20px, exceto pill) */
  --radius: 14px; --radius-sm: 10px; --radius-lg: 20px; --radius-pill: 999px;

  /* motion (canônico) */
  --ease-out: cubic-bezier(.22,1,.36,1);
  --dur-tap: .10s; --dur-fast: .16s; --dur-base: .22s; --dur-slow: .36s;

  --wrap: 1120px; --wrap-narrow: 760px;
  --d7-logo-ratio: 4.8029;
}

html { background: var(--d7-black); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--d7-black); color: var(--d7-white);
  font-family: var(--d7-font-body); line-height: 1.55; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); }

/* ---- layout primitives (canônico) ---- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap--narrow { max-width: var(--wrap-narrow); }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
.section { padding-block: 48px; }
@media (min-width: 768px) { .section { padding-block: 64px; } }
.section--tight { padding-block: 32px; }
.section-head { max-width: 64ch; margin-bottom: 32px; }
.flow > * + * { margin-top: 16px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---- typography (canônico) ---- */
h1, h2, h3, h4 { font-family: var(--d7-font-display); line-height: 1.06; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.h-xl { font-size: clamp(34px, 8.6vw, 68px); line-height: 1.01; letter-spacing: -.035em; }
.h-lg { font-size: clamp(28px, 6.2vw, 48px); line-height: 1.04; letter-spacing: -.028em; }
.h-md { font-size: clamp(23px, 4.6vw, 34px); line-height: 1.1; letter-spacing: -.02em; }
.h-sm { font-size: clamp(19px, 3.2vw, 24px); line-height: 1.2; letter-spacing: -.012em; }
.lead { font-size: clamp(16px, 3.6vw, 21px); line-height: 1.5; letter-spacing: -.006em; max-width: 64ch; text-wrap: pretty; color: var(--d7-white); }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
.muted { color: var(--d7-muted); }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
p { margin: 0 0 16px; }

/* ---- brand (logo oficial: branco+vermelho, só sobre fundo escuro) ---- */
.d7-logo { display: block; width: auto; max-width: 100%; object-fit: contain; aspect-ratio: var(--d7-logo-ratio); }
.d7-logo--header { height: 38px; }
@media (max-width: 380px) { .d7-logo--header { height: 31px; } }
.d7-logo--footer { height: 26px; }

/* ---- buttons (canônico) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 26px; border: 0; border-radius: var(--radius-sm);
  font-family: var(--d7-font-body); font-weight: 700; font-size: 16px; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-tap) var(--ease-out);
}
.btn--primary { background: var(--d7-red-dark); color: var(--fg); }
.btn--primary:hover { background: color-mix(in srgb, var(--d7-red-dark) 85%, var(--d7-black)); }
.btn--secondary { background: var(--fg); color: var(--d7-black); }
.btn--secondary:hover { background: color-mix(in srgb, var(--fg) 88%, var(--d7-black)); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--d7-line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.btn--lg { min-height: 58px; padding: 16px 32px; font-size: 17px; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover, .btn--secondary:hover { transform: translateY(-1px); } }
.btn:not([disabled]):active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--d7-red-dark); color: var(--fg); padding: 12px 16px; z-index: 100; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }

/* ============================================================================
   DRIVE7 STATIC — componentes/layout (sistema canônico FLAT). Consome tokens.css.
   Sem glow, sem sombra em card, sem gradiente decorativo. Profundidade vem de
   tipografia + espaço + hairlines (#1F1F1F). Hover = borda vira accent.
   ============================================================================ */

/* ---- Header (barra translúcida canônica) ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--d7-line);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }
.site-header-in { display: flex; align-items: center; gap: 16px; min-height: 62px; padding: 8px 20px; max-width: var(--wrap); margin-inline: auto; }
@media (min-width: 768px) { .site-header-in { padding-inline: 32px; } }
.brand { display: inline-flex; align-items: center; }
.site-header__nav { margin-left: auto; display: flex; gap: 20px; }
.site-header__nav a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-header__nav a:hover { color: var(--accent); }

/* EIXO DE CONTEÚDO ÚNICO (V5.1) — a seção é dona da coluna; o padding lateral
   centraliza o eixo e serve de goteira. TODO filho compartilha a MESMA borda
   esquerda, independentemente da margem que o componente defina. Sem
   text-align:center global; texto permanece à esquerda (editorial). */
main { display: block; --axis: var(--wrap-narrow); --gutter: 20px; }
@media (min-width: 768px) { main { --gutter: 32px; } }
main > section { padding-block: 48px; padding-inline: max(var(--gutter), calc((100% - var(--axis)) / 2)); }
@media (min-width: 768px) { main > section { padding-block: 64px; } }
/* seções que respiram mais largo (grades, ranking) podem optar pelo eixo amplo */
main > section.section--wide { --axis: var(--wrap); }

/* títulos de seção = h-lg canônico */
.section-head h2 { font-size: clamp(28px, 6.2vw, 48px); line-height: 1.04; letter-spacing: -.028em; }

/* ---- city pill (header) ---- */
.city-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; min-height: 44px; border: 1px solid var(--d7-line); border-radius: var(--radius-pill); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; }
.city-pill:hover { border-color: var(--accent); }
.city-pill__ico { width: 16px; height: 16px; color: var(--accent); }

/* ---- breadcrumb ---- */
.breadcrumb { border-bottom: 1px solid var(--d7-line); }
.breadcrumb__in { max-width: var(--wrap-narrow); margin-inline: auto; padding: 10px 20px; font-size: 13px; color: var(--d7-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (min-width: 768px) { .breadcrumb__in { padding-inline: 32px; } }
.breadcrumb a { color: var(--d7-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--fg); font-weight: 600; }
.breadcrumb__sep { color: var(--d7-line); }

/* ---- eyebrow invited pill dot ---- */
.pill-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); margin-right: 2px; vertical-align: middle; }

/* ---- hub: door cards ---- */
.chooser__label { margin-top: 40px; }
.chooser__more { margin-top: 16px; }
.doors { display: grid; gap: 12px; }
.doors--partner { grid-template-columns: 1fr; }
@media (min-width: 560px) { .doors--partner { grid-template-columns: 1fr 1fr; } }
.door { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--d7-surface); border: 1px solid var(--d7-line); border-radius: var(--radius); text-decoration: none; color: var(--fg); transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .door:hover { border-color: var(--accent); transform: translateY(-3px); } }
.door:focus-visible { border-color: var(--accent); }
.door__ico { flex: 0 0 auto; width: 44px; height: 32px; color: var(--accent); }
.door--primary .door__ico { width: 56px; height: 40px; }
.door__body { display: grid; gap: 2px; flex: 1; }
.door__title { font-family: var(--d7-font-display); font-size: 18px; }
.door--primary .door__title { font-size: 22px; }
.door__tag { color: var(--d7-muted); font-size: 14px; }
.door__arrow { flex: 0 0 auto; width: 22px; height: 22px; color: var(--accent); transition: transform var(--dur-base) var(--ease-out); }
.door:hover .door__arrow { transform: translateX(4px); }

/* ---- why / prose ---- */
.prose { max-width: 64ch; }
.prose p { color: var(--d7-muted); }

/* ---- role hero + cena de assinatura ---- */
.role-hero { padding-block: 40px 24px; }
@media (min-width: 768px) { .role-hero { padding-block: 64px 40px; } }
.role-hero .lead { color: var(--d7-muted); }
.role-hero .btn { margin-top: 28px; }
.role-exit { padding-top: 8px; }

/* ---- CTA + fallback do código de convite (CTA primário; código como suporte) ----
   mobile: empilhado (código abaixo do CTA). >=768px: linha com flex-wrap — fica lado a
   lado quando a coluna comporta; nas páginas de persona a coluna do herói (--hero-text-max
   ~512px) é estreita, então o card (max 340px) quebra para baixo do CTA. Ambos atendem
   "ao lado / abaixo", com o CTA sempre primário. */
.role-hero .cta-cluster { margin-top: 28px; }
.cta-cluster { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.cta-cluster .btn { margin-top: 0; }
@media (min-width: 768px) {
  .cta-cluster { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 20px; }
}
.invite-code { background: var(--d7-surface); border: 1px solid var(--d7-line); border-radius: var(--radius-sm); padding: 12px 16px; display: grid; gap: 6px; width: 100%; max-width: 340px; }
.invite-code__label { font-size: 12px; color: var(--d7-muted); text-transform: uppercase; letter-spacing: .08em; }
.invite-code__row { display: flex; align-items: center; gap: 12px; }
.invite-code__value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .04em; color: var(--fg); white-space: nowrap; user-select: all; -webkit-user-select: all; }
.invite-code__copy { min-height: 40px; padding: 8px 16px; font-size: 14px; margin-left: auto; flex: none; }
.invite-code__hint { margin: 0; font-size: 12px; color: var(--d7-muted); }
.invite-code__live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* linha de valor — mensagem criativa forte (ex.: "Trabalhe com valorização!") */
.hero-value { margin: 16px 0 0; font-family: var(--d7-font-display); font-size: clamp(18px, 3.2vw, 24px); line-height: 1.12; letter-spacing: -.01em; color: var(--fg); }
.hero-value::before { content: ""; display: inline-block; width: 22px; height: 3px; margin-right: 12px; vertical-align: middle; background: var(--accent); border-radius: 2px; }

/* cena: em fluxo no mobile (abaixo do texto); ancorada no vazio à direita no
   desktop — o texto permanece no eixo de 760px, preservando o alinhamento. */
.role-hero__scene { margin-top: 36px; }
.scene { display: block; width: 100%; max-width: 440px; height: auto; }
@media (min-width: 1024px) {
  /* A cena vive NO VAZIO à direita da coluna de texto — nunca a sobrepõe. O
     início (left) é ancorado APÓS a coluna de texto (mesmo eixo estreito do
     corpo) + folga; o fim (right) alinha à borda ampla (masthead). Como texto e
     cena são trilhas que não se cruzam, o comprimento do H1/lead não causa
     colisão em nenhuma largura ≥1024px. */
  .role-hero--scene { position: relative; --hero-text-max: 32rem; }
  .role-hero--scene .role-hero__text { position: relative; z-index: 1; max-width: var(--hero-text-max); }
  .role-hero__scene { position: absolute; z-index: 0; margin: 0; inset-block: 0;
    display: flex; align-items: center; justify-content: flex-end;
    left: calc(max(var(--gutter), (100% - var(--wrap-narrow)) / 2) + var(--hero-text-max) + var(--s6));
    right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
    pointer-events: none; }
}

/* cena — cores FLAT (sem gradiente): skyline em superfície, pista hairline,
   rota em accent, veículo em branco. */
.scene__city rect { fill: color-mix(in srgb, var(--d7-surface) 88%, var(--fg) 12%); }
.scene__horizon { stroke: var(--d7-line); stroke-width: 1.5; }
.scene__track { stroke: var(--d7-line); stroke-width: 3; stroke-linecap: round; }
.scene__route { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.scene__origin { fill: var(--fg); }
.scene__pin { fill: var(--accent); }
.scene__pin-dot { fill: var(--bg); }
.scene__veh { fill: var(--fg); color: var(--fg);
  offset-path: path('M28 236 C120 236 128 120 214 120 S332 172 372 84'); offset-rotate: 0deg; offset-distance: 100%; }

/* ---- reward cards ---- */
.reward-grid { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
@media (min-width: 560px) { .reward-grid { grid-template-columns: 1fr 1fr; } }
.reward-card { background: var(--d7-surface); border: 1px solid var(--d7-line); border-top: 2px solid var(--accent); border-radius: var(--radius); padding: 15px 18px 16px; display: grid; gap: 4px; }
.reward-card__k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--d7-muted); }
.reward-card__v { font-family: var(--d7-font-display); font-size: 28px; color: var(--accent); }
.reward-card__req { font-size: 13px; color: var(--d7-muted); }
.reward-note { font-size: 13px; color: var(--d7-muted); }

/* ---- ticks (benefit list) ---- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--fg); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 999px; background: var(--d7-red-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---- steps (numbered) ---- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li { position: relative; padding-left: 48px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 999px; background: var(--d7-red-soft); color: var(--accent); font-family: var(--d7-font-display); display: inline-flex; align-items: center; justify-content: center; }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--d7-muted); }

/* ---- contextual lead-form (starts closed) ---- */
.lead-form-wrap > summary { display: inline-flex; list-style: none; width: auto; }
.lead-form-wrap > summary::-webkit-details-marker { display: none; }
.lead-form-wrap[open] > summary { margin-bottom: 8px; }

/* ---- Hero (texto sobre preto; SEM glow, SEM motion) ---- */
.hero { padding-block: 64px 48px; }
@media (min-width: 768px) { .hero { padding-block: 96px 64px; } }
.hero__lead, .coming__lead, .gateway__lead { color: var(--d7-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---- fare chips (superfície flat) ---- */
.fare-chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; }
.fare-chip { background: var(--d7-surface); border: 1px solid var(--d7-line); border-radius: var(--radius); padding: 12px 16px; display: grid; gap: 2px; min-width: 150px; }
.fare-chip__k { font-size: 12px; color: var(--d7-muted); text-transform: uppercase; letter-spacing: .08em; }
.fare-chip__v { font-family: var(--d7-font-display); font-size: 24px; color: var(--fg); }

/* ---- how it works (feature/steps editorial, sem box) ---- */
.how__grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 720px) { .how__grid { grid-template-columns: repeat(3, 1fr); } }
.how__step { border-top: 2px solid var(--accent); padding-top: 16px; }
.how__step h3 { font-family: var(--d7-font-display); font-size: 20px; margin: 8px 0; }
.how__step p { color: var(--d7-muted); margin: 0; }
.how__ico, .journey__ico { width: 44px; height: 32px; color: var(--accent); display: block; }
.how__n { font-family: var(--d7-font-display); color: var(--d7-muted); font-size: 14px; }

/* ---- journeys (superfície flat, hover borda->accent) ---- */
.journey { background: var(--d7-surface); border: 1px solid var(--d7-line); border-radius: var(--radius); padding: 24px; scroll-margin-top: 72px; }
.journey + .journey, .campaign + .journey { margin-top: 16px; }
.journey h2 { font-size: clamp(23px, 4.6vw, 34px); margin-bottom: 8px; }
.journey p { color: var(--d7-muted); }
.journey .btn { margin-top: 8px; }
.journey__wa { margin-top: 16px; color: var(--d7-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---- campaign ---- */
.campaign { }
.campaign__dates { color: var(--d7-muted); font-variant-numeric: tabular-nums; }
.campaign .hero__ctas { margin-top: 24px; }

/* ---- partners (acordeão flat) ---- */
.partners { display: grid; gap: 12px; margin-top: 16px; }
.partner, .secondary-form { background: var(--d7-surface); border: 1px solid var(--d7-line); border-radius: var(--radius); overflow: hidden; }
.partner > summary, .secondary-form > summary { cursor: pointer; font-weight: 700; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 16px; list-style: none; }
.partner > summary::-webkit-details-marker, .secondary-form > summary::-webkit-details-marker { display: none; }
.partner > summary::after, .secondary-form > summary::after { content: "+"; margin-left: auto; color: var(--accent); font-family: var(--d7-font-display); font-size: 20px; }
.partner[open] > summary::after, .secondary-form[open] > summary::after { content: "\2013"; }
.partner__name { font-family: var(--d7-font-display); }
.partner__body { padding: 0 16px 16px; }
.partner__benefits { padding-left: 20px; color: var(--fg); }
.partner__benefits li { margin-bottom: 4px; }
.partner__disclaimer { color: var(--d7-muted); font-size: 14px; }

/* ---- forms (canônico) ---- */
.lead-form { max-width: 640px; margin-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; letter-spacing: .01em; color: var(--fg); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--fg); background: var(--d7-surface); border: 1.5px solid var(--d7-line); border-radius: var(--radius-sm); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.field input::placeholder, .field textarea::placeholder { color: var(--d7-muted); opacity: .7; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--d7-red-soft); }
.field textarea { min-height: 96px; resize: vertical; }
.field--checkbox { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--checkbox input { width: 22px; height: 22px; min-height: 22px; margin-top: 2px; accent-color: var(--accent); }
.field__error { font-size: 13px; font-weight: 700; color: var(--accent); min-height: 1em; }
.field [aria-invalid="true"] { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.lead-form__status { min-height: 1em; margin: 0; font-weight: 600; color: var(--d7-muted); }
.lead-form__status[data-tone="ok"] { color: var(--fg); }
.lead-form__fallback { display: flex; flex-wrap: wrap; gap: 12px; }
.lead-form__fallback .btn { width: auto; }

/* ---- Cadastro completo de parceiro (wizard multietapas, Fluxo B) ---- */
.reg { max-width: 780px; margin: 0 auto; padding-bottom: 48px; }
.reg__head { margin-bottom: 16px; }
.reg__lead { color: var(--d7-muted); margin-top: 8px; max-width: 56ch; }
.partner__cad { display: grid; gap: 16px; }
.partner__cad-lead { color: var(--d7-muted); margin: 0 0 12px; }

.reg-stepper { margin: 4px 0 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.reg-stepper__list { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; min-width: max-content; }
.reg-stepper__item { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--d7-line); border-radius: var(--radius-pill); color: var(--d7-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.reg-stepper__num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--d7-line); color: var(--fg); font-size: 12px; font-weight: 700; flex: none; }
.reg-stepper__item.is-current { border-color: var(--accent); color: var(--fg); }
.reg-stepper__item.is-current .reg-stepper__num { background: var(--accent); }
.reg-stepper__item.is-done .reg-stepper__num { background: var(--d7-red-dark); }

.reg-step { background: var(--d7-surface); border: 1px solid var(--d7-line); border-radius: var(--radius); padding: 24px; scroll-margin-top: 80px; }
.reg-step[hidden] { display: none; }
.reg-step:focus { outline: none; }
.reg-step__count { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--d7-muted); margin: 0 0 4px; }
.reg-step__title { margin: 0 0 6px; }
.reg-step__hint { color: var(--d7-muted); margin: 0 0 20px; }

.reg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reg-field { display: flex; flex-direction: column; gap: 8px; }
.reg-field[hidden] { display: none; }
.reg-field.field--checkbox { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 12px; }
.reg-field label { font-size: 14px; font-weight: 700; color: var(--fg); }
.reg-field .req { color: var(--accent); }
.reg-field__note { font-size: 12px; color: var(--d7-muted); }
.reg-field input, .reg-field select, .reg-field textarea { width: 100%; min-height: 52px; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1.5px solid var(--d7-line); border-radius: var(--radius-sm); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.reg-field input::placeholder, .reg-field textarea::placeholder { color: var(--d7-muted); opacity: .7; }
.reg-field input:focus-visible, .reg-field select:focus-visible, .reg-field textarea:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--d7-red-soft); }
.reg-field [aria-invalid="true"] { border-color: var(--accent); }
.reg-field.field--checkbox input { width: 22px; height: 22px; min-height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.reg-field[data-field-wrap="logradouro"], .reg-field[data-field-wrap="links"], .reg-field[data-field-wrap="tiposEventos"],
.reg-field[data-field-wrap="instituicao"], .reg-field[data-field-wrap="razaoSocial"], .reg-field[data-field-wrap="nomeCompleto"],
.reg-field[data-field-wrap="representanteNome"], .reg-field[data-field-wrap="indicadoPorNome"], .reg-field[data-field-wrap="nomePublico"],
.reg-field[data-field-wrap="nomeFantasia"], .reg-field[data-field-wrap="curso"], .reg-field[data-field-wrap="diasHorarios"] { grid-column: 1 / -1; }

.reg-persona { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; }
.reg-persona__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reg-persona-card { position: relative; display: block; cursor: pointer; }
.reg-persona-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.reg-persona-card__box { display: grid; gap: 4px; padding: 20px; border: 1.5px solid var(--d7-line); border-radius: var(--radius); background: var(--bg); transition: border-color var(--dur-fast); }
.reg-persona-card:hover .reg-persona-card__box { border-color: color-mix(in srgb, var(--accent) 50%, var(--d7-line)); }
.reg-persona-card input:checked + .reg-persona-card__box { border-color: var(--accent); box-shadow: 0 0 0 3px var(--d7-red-soft); }
.reg-persona-card input:focus-visible + .reg-persona-card__box { outline: 3px solid var(--accent); outline-offset: 2px; }
.reg-persona-card__title { font-weight: 700; font-size: 16px; }
.reg-persona-card__desc { font-size: 13px; color: var(--d7-muted); }

.reg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.reg-actions .btn { width: auto; }
.reg-actions [data-reg-next], .reg-actions [data-reg-submit] { margin-left: auto; }
.reg-form__status { min-height: 1em; margin: 12px 0 0; font-weight: 600; color: var(--d7-muted); }
.reg-form__status[data-tone="ok"] { color: var(--fg); }
.reg-form__fallback { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.reg-form__fallback .btn { width: auto; }
.reg-noscript { margin-top: 16px; color: var(--d7-muted); }

.reg-terms { border: 1px solid var(--d7-line); border-radius: var(--radius-sm); margin-top: 12px; }
.reg-terms > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; }
.reg-terms__body { padding: 0 16px 16px; color: var(--d7-muted); font-size: 14px; display: grid; gap: 10px; }
.reg-terms__body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.reg-terms__body strong { color: var(--fg); }
.reg-terms__pending { font-size: 13px; }

.reg-review { display: grid; gap: 14px; }
.reg-review__group { border: 1px solid var(--d7-line); border-radius: var(--radius-sm); padding: 16px; background: var(--bg); }
.reg-review__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.reg-review__head h3 { font-size: 15px; }
.reg-review__edit { width: auto; padding: 6px 14px; min-height: 36px; font-size: 13px; }
.reg-review__list { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 6px 14px; margin: 0; }
.reg-review__list dt { color: var(--d7-muted); font-size: 13px; }
.reg-review__list dd { margin: 0; font-size: 14px; word-break: break-word; }
.reg-review__origin { color: var(--d7-muted); font-size: 13px; margin: 4px 0 0; }
.reg-share-notice { margin: 16px 0 0; padding: 14px 16px; background: var(--d7-surface); border: 1px solid var(--d7-line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); font-size: 13px; color: var(--d7-muted); }
.reg-share-notice strong { color: var(--fg); }

@media (max-width: 640px) {
  .reg-fields { grid-template-columns: 1fr; }
  .reg-persona__grid { grid-template-columns: 1fr; }
  .reg-review__list { grid-template-columns: 1fr; gap: 2px 0; }
  .reg-review__list dd { margin-bottom: 6px; }
  .reg-actions { flex-direction: column-reverse; }
  .reg-actions [data-reg-next], .reg-actions [data-reg-submit] { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reg-step, .reg-persona-card__box, .reg-field input, .reg-field select { transition: none; }
}

/* ---- ranking (tabela semântica canônica) ---- */
.ranking { }
.ranking + .ranking { margin-top: 32px; }
.ranking__subtitle { color: var(--d7-muted); }
.ranking__total { font-size: 16px; }
.ranking__total strong { font-family: var(--d7-font-display); color: var(--accent); }
.rank-table-wrap { background: var(--d7-surface); border: 1px solid var(--d7-line); border-radius: var(--radius); padding: 16px; overflow-x: auto; margin-top: 16px; }
.prize-table, .rank-table { width: 100%; border-collapse: collapse; }
.prize-table caption, .rank-table caption { text-align: left; margin-bottom: 12px; color: var(--d7-muted); }
.prize-table th, .prize-table td, .rank-table th, .rank-table td { text-align: left; padding: 10px 12px; }
.prize-table thead th, .rank-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--d7-muted); font-weight: 700; }
.prize-table tbody th, .rank-table th[scope="row"] { font-family: var(--d7-font-display); color: var(--fg); }
.prize-table td, .rank-table td { color: var(--fg); border-top: 1px solid var(--d7-line); }
.prize-table thead th { border: 0; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; padding: 4px 8px; border-radius: var(--radius-pill); background: var(--d7-red-soft); color: var(--accent); font-family: var(--d7-font-display); font-size: 14px; }
.leaderboard { margin-top: 16px; }
.leaderboard__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.leaderboard__item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--d7-line); border-radius: var(--radius-sm); }
.leaderboard__pos { font-family: var(--d7-font-display); color: var(--fg); }
.leaderboard__name { font-weight: 600; color: var(--fg); }
.leaderboard__cat { font-size: 12px; color: var(--d7-muted); display: block; }
.leaderboard__metric { font-variant-numeric: tabular-nums; color: var(--d7-muted); }
.leaderboard__state { color: var(--d7-muted); padding: 8px 0; }
.ranking__updated { color: var(--d7-muted); font-size: 13px; margin-top: 12px; }
.leaderboard__skel { height: 52px; border-radius: var(--radius-sm); background: linear-gradient(90deg, #0d0d0f, #151517, #0d0d0f); background-size: 200% 100%; animation: d7-shimmer 1.2s linear infinite; margin-bottom: 8px; }

/* ---- FAQ ---- */
.faq__item { border-bottom: 1px solid var(--d7-line); }
.faq__item > summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 16px 0; font-weight: 700; list-style: none; }
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after { content: "+"; margin-left: auto; color: var(--accent); font-family: var(--d7-font-display); }
.faq__item[open] > summary::after { content: "\2013"; }
.faq__item p { color: var(--d7-muted); padding-bottom: 16px; margin: 0; }

/* ---- coming soon ---- */
.coming { text-align: center; }
.coming__badge { display: inline-block; background: var(--d7-red-dark); color: var(--fg); font-family: var(--d7-font-display); letter-spacing: .1em; text-transform: uppercase; padding: 8px 16px; border-radius: var(--radius-pill); margin: 16px 0 24px; }

/* ---- gateway ---- */
.selector { display: grid; gap: 16px; margin-top: 24px; background: var(--d7-surface); border: 1px solid var(--d7-line); border-radius: var(--radius); padding: 24px; }
.selector .field label { font-size: 14px; }
.selector__hint { color: var(--d7-muted); font-size: 14px; min-height: 1em; margin: 0; }
.gateway__noscript { margin-top: 24px; }
.gateway__noscript section { margin-bottom: 16px; }

/* ---- ranking page nav / back ---- */
.rank-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---- cta band / footer ---- */
.cta-band { border-top: 1px solid var(--d7-line); text-align: center; }
.site-footer { border-top: 1px solid var(--d7-line); color: var(--d7-muted); font-size: 14px; padding-block: 48px; }
.site-footer > * { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: 20px; }
.site-footer__brand { margin-bottom: 12px; }
.site-footer__legal { max-width: 52ch; }
.site-footer__links { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ---- redirect / thin page (sem style inline; CSP-safe) ---- */
.redirect { max-width: 640px; margin: 0 auto; padding: 48px 16px; text-align: center; }

/* logo: área de toque confortável sem aumentar o logo visualmente */
.brand { padding-block: 8px; padding-inline-end: 10px; }

/* ============================================================================
   DRIVE7 — motion canônico (V5.1). CSS-only, CSP-safe (sem JS inline), gated por
   reduced-motion. Movimento com FUNÇÃO: a cena de assinatura sugere deslocamento;
   o reveal guia a leitura. Sem glow, sem gradiente decorativo, sem loop pesado.
   Propriedades só de compositor (transform/opacity) + stroke/offset da assinatura.
   ============================================================================ */

/* --- ASSINATURA: a rota se desenha e o veículo a percorre (uma vez, na entrada).
   Acima da dobra → animação CSS que se completa sozinha (both), nunca depende de
   JS. Estado final = rota inteira + veículo no destino (idêntico ao reduced). --- */
@media (prefers-reduced-motion: no-preference) {
  .scene__route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: d7-draw 900ms var(--ease-out) 150ms both; }
  .scene__veh { animation: d7-ride 1150ms var(--ease-out) 250ms both; }
  .scene__origin { opacity: 0; animation: d7-fade 360ms var(--ease-out) 120ms both; }
  .scene__dest { opacity: 0; animation: d7-fade 420ms var(--ease-out) 1000ms both; }
}
@keyframes d7-draw { to { stroke-dashoffset: 0; } }
@keyframes d7-ride { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes d7-fade { to { opacity: 1; } }

/* Celular de entrada (alvo motoboy): a rota ainda desenha, mas o percurso do
   veículo (offset-distance, não acelerado por compositor) fica no destino —
   economiza bateria/frames sem perder a leitura (drive7-motion-ui §7). */
@media (max-width: 479px) {
  .scene__veh { animation: none; offset-distance: 100%; }
}

/* --- REVEAL de seção (progressivo/seguro): só com scroll-timeline E motion
   permitido. Sem suporte (ex.: Firefox) → conteúdo já visível (nunca essencial em
   animação). CLS 0: opacity/transform apenas. Nunca no hero/LCP. --- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    main > section:not(.role-hero) {
      animation: d7-reveal both linear;
      animation-timeline: view();
      animation-range: entry 2% cover 15%;
    }
    @keyframes d7-reveal {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: none; }
    }
  }
}

/* Skeleton shimmer (usado enquanto uma classificação futura carrega). */
@keyframes d7-shimmer { to { background-position: -200% 0; } }

/* --- REDUCED MOTION: estado final completo, nenhuma informação some. --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .leaderboard__skel { animation: none; }
  .scene__route { stroke-dashoffset: 0; }
  .scene__veh { offset-distance: 100%; }
  .scene__origin, .scene__dest { opacity: 1; }
  main > section { opacity: 1; transform: none; }
}
