/* Cores copiadas de app-usuario/src/constants/theme.ts */
:root {
  --primary: #F58634; /* laranja da marca: só decoração, ícones e destaques sem texto por cima */
  --primary-action: #B85312; /* fundo de botão com texto branco (4,9:1) e links */
  --primary-soft: #FEF1E6; /* fundo de ícones e faixas suaves */
  --text: #222222;
  --text-secondary: #5F6E7D;
  --text-on-primary: #FFFFFF;
  --background: #FAFCFB;
  --surface: #FFFFFF;
  --surface-muted: #F2F2F2;
  --border: #E3E3E3;
  --open: #048F01;
  --open-soft: #E6F4E6;
  --whatsapp: #25D366;
  --shadow: 0 2px 12px rgba(34, 34, 34, 0.06);
  --gap-section: 72px;
  --header-h: 64px;
}

@media (min-width: 900px) {
  :root { --gap-section: 112px; }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 600px) {
  body { font-size: 1.0625rem; }
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: var(--primary-action); }

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--primary-action);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--primary-action);
  border-radius: 12px;
}
.skip:focus { top: 12px; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--primary-action);
  border-radius: 999px;
  background: var(--primary-action);
  color: var(--text-on-primary);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { filter: brightness(0.92); }
.btn-outline { background: transparent; color: var(--primary-action); }
.btn-outline:hover { background: var(--primary-action); color: var(--text-on-primary); filter: none; }

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.logo { display: block; flex: none; }
.logo img { height: 40px; width: auto; }
@media (min-width: 900px) { .logo img { height: 48px; } }
.nav { display: none; }
.nav a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover { color: var(--primary-action); }
.btn-head { min-height: 44px; padding: 0 18px; }
.btn-head .long { display: none; }

@media (min-width: 900px) {
  .nav { display: flex; gap: 32px; margin-left: auto; margin-right: 16px; }
  .btn-head .long { display: inline; }
  .btn-head .short { display: none; }
}

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section { margin-top: var(--gap-section); }

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.lead { margin-top: 16px; color: var(--text-secondary); font-size: 1.0625rem; }
@media (min-width: 600px) { .lead { font-size: 1.125rem; } }

/* Topo */
.hero { margin-top: 40px; display: grid; gap: 40px; align-items: center; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--primary-action);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero .lead { color: var(--text); margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; margin-top: 64px; gap: 64px; }
  .hero .phone { justify-self: center; }
}

/* Moldura de celular */
.phone {
  position: relative;
  width: 280px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 44px;
  background: #111;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
/* margem da tela (faixa de status no topo), para o print não encostar na curva da moldura */
.phone img {
  display: block;
  width: 100%;
  height: auto;
  padding: 28px 8px 16px;
  border-radius: 32px;
  background: var(--background);
}
/* câmera */
.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 72px;
  height: 18px;
  margin-left: -36px;
  border-radius: 999px;
  background: #111;
}
@media (min-width: 900px) { .phone { width: 320px; } }

/* Faixa de confiança */
.trust { margin-top: 48px; }
.trust ul {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.trust li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
@media (min-width: 900px) {
  .trust ul { grid-template-columns: repeat(3, 1fr); padding: 24px 32px; gap: 32px; }
}

/* Círculo dos ícones */
.badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

/* Para negócios */
.benefits { display: grid; gap: 16px; margin-top: 40px; }
.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.benefit .badge { margin-bottom: 16px; }
.benefit p { margin-top: 6px; color: var(--text-secondary); }
@media (min-width: 600px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .benefits { grid-template-columns: repeat(3, 1fr); } }

.how { display: grid; gap: 40px; margin-top: 56px; align-items: center; }
.how h3 { font-size: 1.5rem; }
.steps { display: grid; gap: 20px; margin-top: 24px; counter-reset: passo; }
.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  counter-increment: passo;
}
.steps li::before {
  content: counter(passo);
  color: var(--primary-action);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}
.steps strong { display: block; }
.steps span { color: var(--text-secondary); }
.cta-row { margin-top: 40px; }
@media (min-width: 900px) { .how { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Card de estatísticas (desenho do resumo do app) */
.stats { padding: 24px; border-radius: 20px; }
.stats-title { font-size: 1rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.stat {
  padding: 14px 10px;
  background: var(--surface-muted);
  border-radius: 12px;
  text-align: center;
}
.stat b { display: block; font-size: 1.75rem; line-height: 1.2; }
.stat span { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.3; }
.stats-note { margin-top: 12px; color: var(--text-secondary); font-size: 0.75rem; }
.stats-caption { margin-top: 16px; color: var(--text-secondary); }

/* Categorias */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .cats { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .cat { font-size: 1rem; padding: 24px 12px; }
}

/* Para quem procura */
.finder { display: grid; gap: 40px; margin-top: 40px; align-items: center; }
.finder .steps strong { font-size: 1.125rem; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* selos no formato das lojas (fundo preto, borda cinza, ícone e duas linhas de texto) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  height: 56px;
  padding: 0 16px 0 12px;
  background: #000;
  color: #fff;
  border: 1px solid #A6A6A6;
  border-radius: 10px;
}
.store-badge svg { flex: none; width: 30px; height: 30px; fill: #fff; }
.store-badge > span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.02em; }
.store-badge strong { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .finder { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .finder .phone { justify-self: center; }
}

/* Cidades */
.cities {
  padding: 40px 24px;
  background: var(--primary-soft);
  border-radius: 20px;
}
.cities p { margin-top: 12px; max-width: 560px; }
.cities .btn { margin-top: 24px; }
@media (min-width: 900px) { .cities { padding: 56px; } }

/* Dúvidas */
.faq { max-width: 760px; margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--primary-action);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--text-secondary); }

/* Chamada final */
.final { text-align: center; padding: 8px 0; }
.final p { margin-top: 12px; color: var(--text-secondary); }
.final .btn { margin-top: 28px; }

/* Rodapé */
.site-footer {
  margin-top: var(--gap-section);
  padding: 56px 0 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { height: 140px; width: auto; }
.footer-brand p { margin-top: 16px; max-width: 340px; color: var(--text-secondary); }
.footer-brand .footer-city { margin-top: 8px; color: var(--primary-action); font-weight: 600; font-size: 0.9375rem; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col h2 {
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.footer-col a { padding: 8px 0; line-height: 1.35; color: var(--text); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--primary-action); text-decoration: underline; }
.footer-bottom {
  margin-top: 40px;
  padding-block: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
  .footer-brand { grid-column: auto; }
}

/* 404 */
.notfound { margin-top: 72px; text-align: center; }
.notfound p { margin: 16px 0 28px; color: var(--text-secondary); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* sobre o fundo suave, o texto laranja ficaria com 4,4:1: usa o texto normal */
.cities .btn-outline { color: var(--text); }
.cities .btn-outline:hover { color: var(--text-on-primary); }
