/* Landing da RitMEI (servidor público, raiz "/"). Identidade: clientes/ritmei/marca/identidade-visual.md
   — azul #002B5C, laranja #FF8B11, amarelo #FFD700, creme #FFF7EC, Nunito. Sem degradê, sem emoji.
   Texto sobre laranja é sempre azul (branco sobre laranja não tem contraste). */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("/fontes/nunito-latin.woff2") format("woff2"); }

:root {
  --azul: #002B5C; --azul-esc: #001A3A; --laranja: #FF8B11; --laranja-texto: #B35400; --amarelo: #FFD700;
  --creme: #FFF7EC; --branco: #FFFFFF; --cinza: #4A5468; --borda: #EBE1D2; --verde: #1FA463;
  --raio: 20px; --raio-p: 12px;
  --sombra: 0 1px 2px rgb(0 43 92 / .06), 0 8px 24px rgb(0 43 92 / .08);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--branco); color: var(--azul); font: 500 18px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 900; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.3rem; margin-bottom: .4rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: var(--azul); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, main:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.pular { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--azul); color: var(--branco); padding: 10px 16px; border-radius: var(--raio-p); font-weight: 800; }
.pular:focus { top: 12px; }

/* Layout */
.largura { width: min(1160px, 100% - 32px); margin-inline: auto; }
.estreita { width: min(760px, 100% - 32px); }
.secao { padding: clamp(56px, 8vw, 96px) 0; }
.secao-creme { background: var(--creme); }
.secao-escura { background: var(--azul); color: var(--branco); }
.secao-escura h2, .secao-escura h3 { color: var(--branco); }
.dupla { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.dupla-topo { align-items: start; }
.grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* Toldo de loja (grafismo de varejo) + topo */
.toldo { height: 12px; background: var(--creme) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='12'%3E%3Crect width='48' height='12' fill='%23FF8B11'/%3E%3C/svg%3E") repeat-x; }
.topo { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--borda); }
.topo-linha { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.5rem; text-decoration: none; letter-spacing: -.01em; }
.topo-nav { display: flex; gap: 24px; margin-left: auto; }
.topo-nav a { font-weight: 700; text-decoration: none; color: var(--cinza); }
.topo-nav a:hover { color: var(--azul); text-decoration: underline; }

/* Botões */
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 999px; background: var(--laranja); color: var(--azul); font-weight: 900; font-size: 1.05rem; text-decoration: none; border: 2px solid var(--laranja); transition: background-color .15s, border-color .15s, color .15s, transform .15s; touch-action: manipulation; }
.botao:hover { background: #F07C00; border-color: #F07C00; }
.botao:active { transform: translateY(1px); }
.botao-pequeno { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.botao-contorno { background: transparent; border-color: var(--azul); color: var(--azul); }
.botao-contorno:hover { background: var(--azul); border-color: var(--azul); color: var(--branco); }
.botao-amarelo { background: var(--amarelo); border-color: var(--amarelo); }
.botao-amarelo:hover { background: #F2CC00; border-color: #F2CC00; }
.botao-contorno-claro { background: transparent; border-color: var(--branco); color: var(--branco); }
.botao-contorno-claro:hover { background: var(--branco); color: var(--azul); }
.secao-escura .botao:focus-visible, .secao-escura a:focus-visible { outline-color: var(--amarelo); }

/* Etiqueta de preço (selo da seção) */
.etiqueta { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 6px 16px 6px 12px; border-radius: 999px; background: var(--laranja); color: var(--azul); font-size: .8rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.etiqueta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--branco); }
.etiqueta-amarela { background: var(--amarelo); }

/* Abertura */
.heroi { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); background: var(--creme); overflow: hidden; }
.heroi-grade { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.heroi h1 { margin-bottom: 1rem; }
.heroi h1 em { font-style: normal; color: var(--laranja-texto); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--cinza); max-width: 38rem; }
.secao-escura .lead { color: #C9D4E4; }
.lead strong { color: var(--azul); }
.lead-estreita { margin-bottom: 2rem; }
.selos { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-weight: 700; font-size: .95rem; }
.selos li { display: inline-flex; align-items: center; gap: 8px; }
.selos li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.heroi-visual { position: relative; justify-self: center; width: min(340px, 100%); }
.celular { margin: 0; padding: 10px; background: var(--azul); border-radius: 40px; box-shadow: var(--sombra); }
.celular img { border-radius: 30px; width: 100%; }
.heroi-visual .celular { aspect-ratio: 9 / 17; overflow: hidden; }
.heroi-visual .celular img { height: 100%; object-fit: cover; object-position: top; }
.heroi-arte { position: absolute; width: 52%; left: -30%; bottom: -6%; border-radius: var(--raio-p); border: 4px solid var(--branco); box-shadow: var(--sombra); }
.celular-direita { justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 17; overflow: hidden; }
.celular-direita img { height: 100%; object-fit: cover; object-position: top; }

/* Cartões */
.cartao { background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); padding: 28px; box-shadow: var(--sombra); }
.cartao p { color: var(--cinza); margin: 0; }
.cartao-creme { background: var(--creme); border-color: var(--creme); box-shadow: none; }
.numero { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; background: var(--laranja); color: var(--azul); font-weight: 900; font-size: 1.4rem; }
.frase-forte { margin: 32px 0 0; font-size: 1.35rem; font-weight: 900; color: var(--laranja-texto); }
.exemplos { font-size: 1rem; margin-bottom: 20px !important; }
.citacao { border-left: 5px solid var(--laranja); padding-left: 14px; color: var(--azul) !important; font-weight: 800; font-size: 1.1rem; }

/* Passos */
.passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: passo; }
.passos li { background: var(--azul-esc); border: 1px solid #1A3A66; border-radius: var(--raio); padding: 28px 24px; }
.passos p { color: #C9D4E4; margin: 0; }
.numero-grande { display: block; font-size: 3rem; font-weight: 900; line-height: 1; color: var(--laranja); margin-bottom: 16px; font-variant-numeric: tabular-nums; }

/* Listas */
.lista { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 14px; }
.lista li { position: relative; padding-left: 32px; font-size: 1.1rem; }
.lista li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 4px; background: var(--laranja); }
.nota { font-size: .95rem; color: var(--cinza); font-style: italic; }

/* Galeria do plano */
.galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .5625fr); gap: 16px; align-items: end; margin-bottom: 20px; }
.galeria img { border-radius: var(--raio-p); box-shadow: var(--sombra); width: 100%; }

/* Requisitos */
.requisitos { margin: 0; display: grid; gap: 14px; }
.requisitos div { background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio-p); padding: 18px 22px; }
.requisitos dt { font-weight: 900; font-size: 1.1rem; }
.requisitos dd { margin: 4px 0 0; color: var(--cinza); }

.ajuda-caixa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 28px; padding: 18px 22px; border-radius: var(--raio-p); background: var(--azul); color: var(--branco); }
.ajuda-caixa p { margin: 0; flex: 1 1 260px; }
.ajuda-caixa strong { color: var(--amarelo); }
.ajuda-caixa .botao:focus-visible { outline-color: var(--amarelo); }

/* Em vez de contratar um social media */
.custo { background: var(--branco); border: 1px solid var(--borda); border-left: 6px solid var(--laranja); border-radius: var(--raio-p); padding: 20px 22px; margin: 4px 0 20px; box-shadow: var(--sombra); }
.custo p { margin: 0 0 8px; }
.custo-valor { font-weight: 900; font-size: 1.1rem; }
.custo-valor span { font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; color: var(--laranja-texto); font-variant-numeric: tabular-nums; margin-right: 6px; }
.fonte { font-size: .85rem; color: var(--cinza); margin: 0 !important; }
.tabela-rolagem { overflow-x: auto; }
.comparativo { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio-p); overflow: hidden; font-size: 1rem; }
.comparativo caption { text-align: left; font-weight: 900; font-size: 1.1rem; padding: 0 0 10px; }
.comparativo th, .comparativo td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--borda); vertical-align: top; }
.comparativo tbody tr:last-child th, .comparativo tbody tr:last-child td { border-bottom: 0; }
.comparativo thead th { background: var(--azul); color: var(--branco); font-size: .9rem; }
.comparativo thead th:last-child { background: var(--laranja); color: var(--azul); }
.comparativo tbody th { font-weight: 800; }
.comparativo td.sim { font-weight: 900; color: var(--azul); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .comparativo th, .comparativo td { padding: 10px; font-size: .9rem; } }

/* Perguntas */
details { border-bottom: 1px solid var(--borda); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-weight: 800; font-size: 1.15rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 3px solid var(--laranja); border-bottom: 3px solid var(--laranja); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
details p { color: var(--cinza); padding: 0 4px 12px; }

/* Chamada final */
.chamada-grade { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.chamada h2 { margin-bottom: .5rem; }
.chamada .lead { margin: 0; }

/* Rodapé */
.rodape { background: var(--azul-esc); color: #C9D4E4; padding: 28px 0; font-size: .9rem; }
.rodape p { margin: 0; }
.rodape-linha { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Celular e tablet */
@media (max-width: 900px) {
  .heroi-grade, .dupla { grid-template-columns: minmax(0, 1fr); }
  .heroi-visual { width: min(280px, 72%); margin-left: 20%; }
  .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-3 { grid-template-columns: minmax(0, 1fr); }
  .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .galeria-story { display: none; }
  .topo-nav { display: none; }
  .topo-linha { justify-content: space-between; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .passos { grid-template-columns: minmax(0, 1fr); }
  .acoes .botao { width: 100%; }
  .heroi-arte { left: -24%; width: 48%; }
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galeria img:nth-child(3) { display: none; }
  .cartao, .passos li { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .botao, summary::after { transition: none; }
}
