/*
 * Straza — folha única do site público.
 * Os tokens espelham dsm/.../StrazaPalette.kt. Se a cor mudar lá, muda aqui.
 */

:root {
  --surface: #FFFFFF;
  --background: #EFF0F3;
  --surface-variant: #E2E8EB;
  --primary-container: #DEEEF7;
  --primary: #134169;
  --on-surface: #1A2127;
  --on-surface-variant: #506274;
  --outline-variant: #D0D7DD;
  --accent: #00AAFF;
  --hero-a: #1B5A8C;
  --hero-b: #134169;
  --hero-c: #0D2E4C;
  --hairline: 0.5px solid var(--outline-variant);
  --radius-card: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--background);
  font-family: var(--font);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  /* Uma palavra longa (e-mail, CNPJ) não pode alargar a página no celular. */
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }
img { max-width: 100%; height: auto; }

.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;
}

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

/* "check-in" não pode quebrar no hífen e virar "check-" / "in". */
.nowrap { white-space: nowrap; }

/* O padding lateral vive só aqui. Nenhuma outra regra usa o shorthand `padding`
   sobre .wrap — foi assim que o padding lateral sumiu no celular uma vez. */
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.block { padding-top: 64px; padding-bottom: 8px; }

/* ---------- nav ---------- */
.nav {
  background: var(--surface);
  border-bottom: var(--hairline);
  position: sticky; top: 0; z-index: 10;
}
.nav .wrap { min-height: 64px; display: flex; align-items: center; gap: 12px; }
.mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none; overflow: hidden;
  box-shadow: 0 0 0 0.5px var(--outline-variant);
}
.mark img { width: 100%; height: 100%; display: block; }
.word { font-size: 18px; font-weight: 600; letter-spacing: -0.4px; }
.navlinks {
  margin-left: auto; display: flex; align-items: center; gap: 26px;
  font-size: 14px; color: var(--on-surface-variant);
}
.navlinks a.current { color: var(--on-surface); font-weight: 500; }
.navcta {
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 500;
  padding: 9px 18px; border-radius: 12px; white-space: nowrap;
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--hero-a) 0%, var(--hero-b) 46%, var(--hero-c) 100%);
  position: relative; overflow: hidden; color: #fff;
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-a { top: -220px; right: -140px; width: 620px; height: 620px; background: rgba(0, 170, 255, .11); }
.glow-b { bottom: -280px; left: -160px; width: 520px; height: 520px; background: rgba(255, 255, 255, .05); }
.hero .wrap {
  position: relative; display: flex; align-items: center; gap: 56px;
  padding-top: 76px; padding-bottom: 76px;
}
.hero-copy { flex: 1; min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px;
  color: rgba(255, 255, 255, .72); background: rgba(255, 255, 255, .09);
  border: 0.5px solid rgba(255, 255, 255, .16); padding: 6px 13px;
  border-radius: 20px; margin-bottom: 22px;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: 50px; line-height: 1.1; letter-spacing: -1.6px; font-weight: 700;
  max-width: 16ch; text-wrap: balance;
}
.hero-sub {
  font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .72);
  margin-top: 20px; max-width: 46ch;
}
.ctas { display: flex; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  flex: none; white-space: nowrap; font-size: 15px; font-weight: 500;
  padding: 13px 22px; border-radius: 14px; display: inline-flex;
  align-items: center; gap: 9px;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: #fff; color: var(--primary); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .28); color: #fff; }

/* ---------- mock do aparelho ---------- */
.device {
  width: 264px; flex: none; border-radius: 36px; background: #0B1620; padding: 8px;
  box-shadow: 0 30px 70px rgba(4, 18, 34, .42);
}
/* Reseta a cor herdada do hero: sem isto os títulos brancos somem no fundo branco. */
.screen { border-radius: 29px; overflow: hidden; background: var(--background); color: var(--on-surface); }
.screen-bar { background: #fff; padding: 14px 14px 12px; display: flex; align-items: center; gap: 10px; }
.screen-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary-container);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 3px; flex: none;
}
.screen-avatar i { width: 13px; height: 2px; border-radius: 1px; background: var(--primary); display: block; }
.screen-gym-code { font-size: 9px; color: var(--on-surface-variant); }
.screen-gym-name { font-size: 13px; font-weight: 600; letter-spacing: -0.2px; }
.screen-body { padding: 10px 12px 16px; display: flex; flex-direction: column; gap: 9px; }
.screen-card { background: #fff; border: var(--hairline); border-radius: 14px; padding: 12px; }
.screen-title { font-size: 13px; font-weight: 600; letter-spacing: -0.2px; }
.screen-caption { font-size: 9px; color: var(--on-surface-variant); margin-top: 2px; }
.screen-kpi { background: var(--primary-container); border-radius: 11px; padding: 10px 12px; margin-top: 10px; }
.screen-kpi .label { display: block; font-size: 9px; color: var(--on-surface-variant); }
.screen-kpi .value { display: block; font-size: 21px; font-weight: 700; color: var(--primary); letter-spacing: -0.6px; margin-top: 1px; }
.screen-duo { display: flex; gap: 7px; margin-top: 7px; }
.screen-duo > div { flex: 1; min-width: 0; background: #F1F3F6; border-radius: 11px; padding: 9px 10px; }
.screen-duo .label { display: block; font-size: 8.5px; color: var(--on-surface-variant); white-space: nowrap; }
.screen-duo .value { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.4px; margin-top: 1px; }
.screen-row {
  display: flex; align-items: center; gap: 9px; padding: 7px 0;
  border-bottom: 0.5px solid #F1F4F6; font-size: 11px;
}
.screen-row:last-child { border-bottom: 0; }
.screen-row b { color: var(--primary); font-weight: 600; width: 34px; flex: none; }
.screen-row span { color: var(--on-surface-variant); margin-left: auto; font-size: 10px; }

/* ---------- bento ---------- */
.section-head { margin-bottom: 26px; }
.overline {
  font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--on-surface-variant); font-weight: 500;
}
.section-head h2 { font-size: 30px; letter-spacing: -0.9px; font-weight: 600; margin-top: 8px; }
.section-head p {
  font-size: 16px; color: var(--on-surface-variant); margin-top: 8px;
  max-width: 56ch; line-height: 1.55;
}
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  background: var(--surface); border: var(--hairline); border-radius: var(--radius-card);
  padding: 20px; display: flex; flex-direction: column; min-width: 0;
}
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
.tile-icon {
  width: 42px; height: 42px; border-radius: 13px; background: var(--primary-container);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  flex: none; margin-bottom: 14px;
}
.tile-icon svg { width: 21px; height: 21px; }
.tile h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.tile p { font-size: 14px; line-height: 1.55; color: var(--on-surface-variant); margin-top: 6px; }
/* Coluna estreita justificada abre rios entre as palavras. A hifenização é o que
   fecha o buraco — e só funciona porque o <html> declara lang="pt-BR". */
.justify, .tile p { text-align: justify; hyphens: auto; }
.tile-stats { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; }
.tile-stats > div { flex: 1; min-width: 0; background: var(--surface-variant); border-radius: 11px; padding: 10px 12px; }
.tile-stats .label { display: block; font-size: 11px; color: var(--on-surface-variant); }
.tile-stats .value { display: block; font-size: 17px; font-weight: 600; color: var(--primary); letter-spacing: -0.4px; margin-top: 2px; }
.tile-rows { margin-top: 16px; border-top: 0.5px solid #EEF1F3; }
.tile-rows .row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 0.5px solid #F4F6F8; font-size: 13px; min-width: 0;
}
.tile-rows .row:last-child { border-bottom: 0; }
.tile-rows .row b { color: var(--primary); font-weight: 600; width: 42px; flex: none; }
.tile-rows .row .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-rows .row em { font-style: normal; color: var(--on-surface-variant); margin-left: auto; font-size: 12px; flex: none; }
.pill {
  font-size: 11px; font-weight: 500; background: var(--surface-variant);
  color: var(--on-surface-variant); padding: 2px 9px; border-radius: 20px;
  flex: none; white-space: nowrap;
}

/* ---------- página de planos ---------- */
/* O cartão do hero substitui o aparelho: a página comercial não repete a tela do
   app, ela lista o que já está fechado e deixa uma linha só como variável. */
.receipt {
  width: 308px; flex: none; background: var(--surface); color: var(--on-surface);
  border-radius: 20px; padding: 22px; box-shadow: 0 30px 70px rgba(4, 18, 34, .42);
}
.receipt-head { font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-surface-variant); font-weight: 600; }
.receipt-gym { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; margin-top: 6px; }
.receipt-lines { margin-top: 16px; border-top: var(--hairline); }
.receipt-lines .lines-head, .receipt-lines .lines-head span {
  font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase;
  font-weight: 600; color: var(--on-surface-variant);
}
.receipt-lines p {
  display: flex; align-items: baseline; gap: 12px; padding: 9px 0;
  border-bottom: 0.5px solid #F1F4F6; font-size: 13px; color: var(--on-surface-variant);
}
.receipt-lines span { margin-left: auto; font-weight: 600; color: var(--on-surface); text-align: right; }
.receipt-total {
  background: var(--primary-container); border-radius: 12px; padding: 12px 14px;
  margin-top: 14px; display: flex; align-items: baseline; justify-content: center; gap: 12px;
}
.receipt-total .label { font-size: 12px; color: var(--on-surface-variant); }
.receipt-foot { font-size: 12px; line-height: 1.5; color: var(--on-surface-variant); margin-top: 10px; }

.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Passos numerados sem número no HTML: a ordem é a do documento. */
.flow { counter-reset: step; }
.flow .tile::before {
  counter-increment: step; content: counter(step);
  width: 26px; height: 26px; border-radius: 9px; background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

.plan { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: start; }
.plan-main { background: var(--surface); border: var(--hairline); border-radius: var(--radius-card); padding: 24px; }
.plan-price { background: #F7F9FB; border: var(--hairline); border-radius: 14px; padding: 20px; }
.plan-price-label { font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--on-surface-variant); font-weight: 600; }
.plan-price-value { font-size: 19px; font-weight: 600; letter-spacing: -0.4px; color: var(--primary); margin-top: 4px; }
.plan-price p:not(.plan-price-label):not(.plan-price-value) {
  font-size: 13.5px; line-height: 1.55; color: var(--on-surface-variant); margin-top: 8px;
}
.plan-price .btn { margin-top: 14px; }
.plan-included-head { font-size: 13.5px; font-weight: 500; margin-top: 20px; }
.included { margin-top: 10px; padding-top: 14px; border-top: var(--hairline); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.included p { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.5; color: var(--on-surface-variant); padding: 4px 0; }
.included svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--primary); }
.plan-cta { margin-top: 20px; }
.btn-solid { background: var(--primary); color: #fff; }
.btn-outline { border: 1px solid var(--outline-variant); color: var(--on-surface); }
.btn-sm { padding: 11px 18px; font-size: 14px; }

.plan-side { display: flex; flex-direction: column; gap: 14px; }
.side-card { background: var(--surface); border: var(--hairline); border-radius: var(--radius-card); padding: 20px; }
.side-card h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
.side-card p { font-size: 13.5px; line-height: 1.55; color: var(--on-surface-variant); margin-top: 10px; }
.side-card strong { color: var(--on-surface); font-weight: 600; }
.side-card .side-note { font-size: 12.5px; line-height: 1.5; margin-top: 12px; }
.side-list { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.side-list p { display: flex; align-items: flex-start; gap: 9px; margin-top: 0; }
.side-list svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--on-surface-variant); }

.faq { background: var(--surface); border: var(--hairline); border-radius: var(--radius-card); overflow: hidden; }
.faq details { border-bottom: var(--hairline); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 17px 22px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; flex: none;
  border-right: 1.6px solid var(--on-surface-variant); border-bottom: 1.6px solid var(--on-surface-variant);
  transform: rotate(45deg) translateY(-2px); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .answer { padding: 0 22px 18px; font-size: 14px; line-height: 1.6; color: var(--on-surface-variant); max-width: 74ch; }

/* ---------- faixa de download ---------- */
.download-card {
  background: var(--primary); border-radius: 20px; padding: 38px 40px; color: #fff;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.download-card h2 { font-size: 26px; letter-spacing: -0.7px; font-weight: 600; }
.download-card p { font-size: 15px; color: rgba(255, 255, 255, .72); margin-top: 7px; max-width: 44ch; line-height: 1.5; }
.download-link { margin-top: 14px; }
.download-link a { font-size: 14px; font-weight: 500; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.stores { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .1);
  border: 0.5px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 11px 18px;
}
.store svg { width: 20px; height: 20px; flex: none; }
.store .kicker { display: block; font-size: 9px; color: rgba(255, 255, 255, .6); line-height: 1.2; }
.store .name { font-size: 14px; font-weight: 500; line-height: 1.2; }
.screen-gym-code { display: block; }
.screen-gym-name { display: block; }
.store-soon { opacity: .62; }
.store-soon .name { display: flex; align-items: center; gap: 7px; }
.badge-soon {
  font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
  background: rgba(255, 255, 255, .18); padding: 2px 7px; border-radius: 20px;
}

/* ---------- páginas legais ---------- */
.legal-page { padding-top: 44px; padding-bottom: 8px; }

/* O índice vem antes do corpo no HTML — no celular é onde ele serve. No desktop
   `order` o joga para a direita, sem inverter a ordem de leitura. */
.legal { display: flex; gap: 40px; align-items: flex-start; margin-top: 14px; }
.legal-body { order: 1; flex: 1; min-width: 0; }
.legal-toc { order: 2; }

.legal-head { background: var(--surface); border: var(--hairline); border-radius: var(--radius-card); padding: 28px; }
.legal-head h1 { font-size: 30px; letter-spacing: -0.9px; font-weight: 600; }
.legal-head .meta { font-size: 13px; color: var(--on-surface-variant); margin-top: 10px; }
.legal-body {
  background: var(--surface); border: var(--hairline); border-radius: var(--radius-card);
  padding: 28px;
}

.legal-toc {
  width: 250px; flex: none; position: sticky; top: 88px;
  max-height: calc(100vh - 110px); overflow-y: auto;
  background: var(--surface); border: var(--hairline); border-radius: var(--radius-card); padding: 18px 20px;
}
.legal-toc strong {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--on-surface-variant); font-weight: 600; margin-bottom: 10px;
}
.legal-toc a { display: block; font-size: 13px; line-height: 1.4; color: var(--on-surface-variant); padding: 5px 0; }
.legal-toc a:hover { color: var(--primary); }

/* Tipografia do documento renderizado a partir do markdown. */
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.4px; margin: 30px 0 10px; scroll-margin-top: 88px; }
.prose h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; scroll-margin-top: 88px; }
.prose p { font-size: 15px; line-height: 1.7; color: var(--on-surface-variant); margin: 10px 0; }
.prose strong { color: var(--on-surface); font-weight: 600; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { margin: 10px 0 10px 20px; }
.prose li { font-size: 15px; line-height: 1.7; color: var(--on-surface-variant); margin: 5px 0; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  background: var(--surface-variant); color: var(--on-surface); padding: 1px 6px; border-radius: 6px;
}
.prose blockquote {
  border-left: 3px solid var(--primary-container); background: #F7FAFC;
  border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 16px 0;
}
.prose blockquote p { margin: 4px 0; }
.prose hr { border: 0; border-top: var(--hairline); margin: 28px 0; }

/* Uma tabela larga rola dentro da própria caixa; a página nunca rola na horizontal.
   A borda existe para o dedo entender que aquela caixa rola sozinha. */
.table-scroll {
  overflow-x: auto; margin: 16px 0; -webkit-overflow-scrolling: touch;
  border: var(--hairline); border-radius: 12px;
}
.prose table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.prose th, .prose td {
  text-align: left; padding: 10px 14px; border-bottom: var(--hairline);
  color: var(--on-surface-variant); line-height: 1.5; vertical-align: top;
}
.prose th { color: var(--on-surface); font-weight: 600; background: #F7F9FA; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- rodapé ---------- */
footer { margin-top: 72px; background: var(--surface); border-top: var(--hairline); }
footer .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links { margin-left: auto; display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links div { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--on-surface-variant); }
.footer-links strong {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--on-surface); font-weight: 600; margin-bottom: 2px;
}
.footer-links a:hover { color: var(--primary); }
.copy { border-top: 0.5px solid #EEF1F3; }
.copy .wrap {
  padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: var(--on-surface-variant);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- 404 ---------- */
.notfound { padding-top: 96px; padding-bottom: 96px; text-align: center; }
.notfound h1 { font-size: 34px; letter-spacing: -1px; font-weight: 600; }
.notfound p { font-size: 16px; color: var(--on-surface-variant); margin: 12px 0 26px; }
.notfound .btn-primary { background: var(--primary); color: #fff; }

/* ---------- responsivo ---------- */
/* Abaixo disto os links de texto não cabem ao lado do CTA sem espremer a marca.
   `nav-keep` é a exceção: sem ele a página de planos ficaria sem nenhum caminho
   pelo menu justamente no aparelho em que o dono de academia navega. */
@media (max-width: 760px) {
  .navlinks a:not(.navcta):not(.nav-keep) { display: none; }
  .navlinks { gap: 16px; }
}

@media (max-width: 1000px) {
  /* `stretch` é obrigatório: em column, o `flex-start` herdado encolhe o corpo
     para max-content e a página inteira passa a rolar na horizontal. */
  .legal { flex-direction: column; align-items: stretch; gap: 14px; }
  .legal-toc { order: 0; width: 100%; position: static; max-height: none; }
  .legal-toc a { display: inline-block; margin-right: 16px; }
}

@media (max-width: 900px) {
  .hero .wrap {
    flex-direction: column; align-items: flex-start; gap: 44px;
    padding-top: 56px; padding-bottom: 56px;
  }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: 38px; letter-spacing: -1.1px; max-width: none; }
  .hero-sub { max-width: none; }
  .device { align-self: center; }
  .receipt { width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  /* Três tiles em duas colunas deixam um órfão; empilhados leem melhor. */
  .grid-3 { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; }
  .tile-tall { grid-row: span 1; }
  .stores { margin-left: 0; }
}

@media (max-width: 600px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .block { padding-top: 48px; }
  .grid { grid-template-columns: 1fr; }
  .tile-wide { grid-column: span 1; }
  .section-head h2 { font-size: 24px; letter-spacing: -0.6px; }
  .legal-head, .legal-body { padding: 22px 18px; }
  .legal-head h1 { font-size: 25px; letter-spacing: -0.6px; }
  .plan-main { padding: 20px 18px; }
  .included { grid-template-columns: 1fr; }
  .faq summary { padding: 15px 18px; font-size: 14.5px; }
  .faq .answer { padding: 0 18px 16px; }
  .download-card { padding: 28px 22px; gap: 22px; }
  .download-card h2 { font-size: 22px; }
  .footer-links { margin-left: 0; width: 100%; gap: 22px; }
  footer { margin-top: 52px; }
}

@media (max-width: 480px) {
  /* Três tiles lado a lado espremem "R$ 8.240" em duas linhas. Empilhados com o
     valor à direita, é a mesma leitura que o app usa nas linhas de indicador. */
  .tile-stats { flex-direction: column; gap: 6px; }
  .tile-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .tile-stats .value { margin-top: 0; }

  /* Melhor a linha quebrar do que o nome virar "Marin…". */
  .tile-rows .row { flex-wrap: wrap; }
  .tile-rows .row .name { white-space: normal; overflow: visible; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 31px; letter-spacing: -0.8px; }
  .hero-sub { font-size: 16px; }
  /* Com "Planos" sobrevivendo ao breakpoint, a linha do menu fica no limite a
     360px: o respiro vem de encurtar o botão, não de zerar o gap. */
  .navlinks { gap: 12px; }
  .navcta { padding: 8px 13px; font-size: 13px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  /* Os dois CTAs passam a ocupar a linha inteira em vez de espremer. */
  .ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .stores { width: 100%; }
  .store { flex: 1; justify-content: center; }
}

/* Os enfeites do hero custam repaint e não dizem nada. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- página de senha ---------- */
.auth-page { max-width: 520px; padding-top: 44px; padding-bottom: 40px; }
.auth-page h1 { font-size: 27px; letter-spacing: -0.8px; font-weight: 600; }
.auth-lead { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--on-surface-variant); }
.auth-note { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--on-surface-variant); }
.auth-form { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.auth-field { display: block; }
.auth-field span {
  display: block; font-size: 13px; font-weight: 500; color: var(--on-surface-variant); margin-bottom: 6px;
}
.auth-field input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--on-surface);
  background: var(--surface); border: 1px solid var(--outline-variant); border-radius: 12px;
  padding: 13px 14px;
}
.auth-field input:focus { outline: none; border-color: var(--primary); }
.auth-reveal {
  align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-size: 14px;
  font-weight: 500; color: var(--primary); cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-rules {
  margin: 4px 0 6px; padding-left: 0; list-style: none; font-size: 13px; line-height: 1.8;
  color: var(--on-surface-variant);
}
.auth-rules li { position: relative; padding-left: 22px; transition: color 0.15s; }
.auth-rules li::before {
  content: "\25CB"; position: absolute; left: 3px; color: var(--outline-variant);
}
.auth-rules li[data-met] { color: var(--on-surface); }
.auth-rules li[data-met]::before { content: "\2713"; color: var(--primary); font-weight: 600; }
.auth-problems {
  margin-top: 20px; background: var(--primary-container); border-radius: 12px; padding: 14px 16px;
  font-size: 14px; line-height: 1.6;
}
.auth-problems p { margin: 0; }
.auth-problems p + p { margin-top: 4px; }
.auth-form .btn { justify-content: center; }
