/* ============================================================
   PedalWay — styles.css (compartilhado por todas as páginas)
   Direção: "Mapa como herói". Página é ink-sobre-bg.
   cycleway/road só no mapa e na legenda. primary só em CTA/links/foco.
   Fonte 100% do sistema — zero CDN, zero Google Fonts.
   ============================================================ */

/* -------- Tokens de cor -------- */
:root {
  --bg:          #F7F5EF; /* off-white cor de mapa/papel */
  --surface:     #FFFFFF; /* cards, painéis, device frame */
  --ink:         #1A2B22; /* texto/títulos — verde-quase-preto */
  --ink-muted:   #495549; /* subcopy, legendas, labels — escurecido p/ contraste AA em texto pequeno */
  --primary:     #0E8F5E; /* marca + CTA + links + foco */
  --primary-press:#0C7A4F;/* hover/press do primário */
  --cycleway:    #16A34A; /* traço protegido = ciclovia */
  --road:        #E4572E; /* traço de rua/avenida */
  --water:       #BFD9E0; /* massas d'água + faixas de seção */
  --land:        #ECE8DC; /* quarteirões no mapa ilustrativo */
  --line:        #DAD5C7; /* divisórias, contorno de card */
  --chip:        #E7F6EE; /* pills de recurso e selo "Em breve" */

  --water-band:  #EDF4F5; /* faixa de seção alternada (bem clara) */

  --radius:      16px;
  --radius-sm:   10px;
  --radius-pill: 999px;
  --maxw:        1200px;
  --gutter:      clamp(20px, 5vw, 48px);
  --shadow-card: 0 1px 2px rgba(26, 43, 34, 0.05);
  --shadow-lift: 0 8px 28px rgba(26, 43, 34, 0.10);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* -------- Reset leve -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* safe-area (notch / Android system buttons) */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-press); text-decoration: underline; }

h1, h2, h3 {
  margin: 0 0 .4em;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(1.8rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p  { margin: 0 0 1rem; }

/* -------- Foco acessível -------- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* -------- Layout -------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--band { background: var(--water-band); }
.section__head { max-width: 46ch; margin-bottom: 2rem; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .5rem;
}
.lead { font-size: 1.15rem; color: var(--ink-muted); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__mark { /* chevron desenhado, cor da marca */
  width: 22px; height: 22px; flex: none;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  list-style: none;
  padding: 0; margin-block: 0;
}
.nav__links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  padding: .6rem .5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav__links a:hover { color: var(--primary); text-decoration: none; }
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--chip);
  color: var(--primary-press);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
  padding: .3rem .6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
/* botão âncora que aparece só no mobile */
.nav__mobile-cta { display: none; }

/* transição gradual dos links antes de colapsar no mobile */
@media (max-width: 540px) {
  .nav__links { gap: .5rem; }
  .nav__links a { font-size: .9rem; padding: .6rem .35rem; }
}

@media (max-width: 480px) {
  .nav__links { display: none; }
  .nav__mobile-cta {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: .5rem .9rem;
    min-height: 44px;
  }
  .nav__mobile-cta:hover { text-decoration: none; color: var(--primary); }
}

/* ============================================================
   Botões
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-press); border-color: var(--primary-press); color:#fff; text-decoration:none; }

/* Botões de loja em estado "desabilitado-elegante" (NÃO badge oficial) */
.storebtns {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.4rem;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  padding: .6rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: default;
  text-align: left;
  opacity: .96;
}
.store-btn:hover { text-decoration: none; color: var(--ink); }

/* Mobile: empilhar os botões de loja pra não quebrarem desalinhados */
@media (max-width: 480px) {
  .storebtns { flex-direction: column; gap: .6rem; }
  .store-btn { width: 100%; justify-content: flex-start; }
}
.store-btn__icon { width: 24px; height: 24px; flex: none; color: var(--ink-muted); }
.store-btn__txt { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn__soon { font-size: .72rem; font-weight: 700; color: var(--ink-muted); letter-spacing: .02em; }
.store-btn__store { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(40px, 6vw, 72px); }
.hero__grid {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.hero__title { margin-bottom: .5rem; }
.hero__sub { font-size: clamp(1rem, 3vw, 1.2rem); color: var(--ink-muted); max-width: 40ch; }

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 5fr 7fr; /* texto esquerda / mapa direita */
  }
}

/* ============================================================
   Device frame + mapa
   ============================================================ */
.device {
  width: 100%;
  max-width: clamp(280px, 90vw, 380px);
  margin-inline: auto;
  background: #0f1512;
  border-radius: clamp(28px, 7vw, 40px);
  padding: clamp(6px, 2vw, 12px);
  box-shadow: var(--shadow-lift);
}
@media (max-width: 380px) {
  .device { max-width: 85vw; border-radius: 24px; padding: 6px; }
}
.device__screen {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: var(--land);
  aspect-ratio: 1206 / 2622; /* proporção da screenshot real */
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; }

/* Mock CSS de mapa (fallback / seções ilustrativas) — sem screenshot real */
.mapmock {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(0deg, var(--water-band), var(--water-band)),
    var(--bg);
  border: 1px solid var(--line);
}
.mapmock svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Legenda (aparece só nas seções com rota) */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1rem;
  font-size: .95rem;
  color: var(--ink-muted);
  justify-content: center;
}
.legend__item { display: inline-flex; align-items: center; gap: .45rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot--cycleway { background: var(--cycleway); }
.dot--road { background: var(--road); }

/* ============================================================
   Problema — comparativo lado a lado
   ============================================================ */
.compare {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.6rem;
}
@media (min-width: 760px) {
  .compare { grid-template-columns: 1fr 1fr; }
}
.compare__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.4rem);
  box-shadow: var(--shadow-card);
}
.compare__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .8rem;
}
.compare__name { font-weight: 700; }
.compare__desc { font-size: .9rem; color: var(--ink-muted); }

/* ============================================================
   Como funciona — 3 passos
   ============================================================ */
.steps {
  display: grid;
  gap: 1.4rem;
  counter-reset: step;
}
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}
.step__num {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--primary-press);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: .9rem;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--ink-muted); }

/* ============================================================
   Presets — 2 rotas com % de ciclovia
   ============================================================ */
.presets {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.6rem;
}
@media (min-width: 760px) {
  .presets { grid-template-columns: 1fr 1fr; }
}
.preset {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}
.preset__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.preset__name { font-weight: 700; font-size: 1.15rem; }
.preset__pct {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 1.8rem;
  color: var(--primary-press);
  letter-spacing: -0.02em;
}
.preset__pct small { font-size: .8rem; font-weight: 600; color: var(--ink-muted); display:block; letter-spacing: 0; }
.preset__desc { color: var(--ink-muted); margin: 0; }
/* barra de % ciclovia */
.pctbar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--road);
  overflow: hidden;
  margin: .9rem 0 .2rem;
}
.pctbar__fill { height: 100%; background: var(--cycleway); border-radius: var(--radius-pill); }
.preset__example-note { margin: 1.2rem 0 0; font-size: .85rem; color: var(--ink-muted); text-align: center; }

/* ============================================================
   Recursos — grid 3x2 / 2 / 1
   ============================================================ */
.features {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  margin-bottom: .9rem;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--ink-muted); font-size: .98rem; }

/* ============================================================
   Privacidade — bloco de destaque
   ============================================================ */
.privacy {
  background: var(--chip);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.privacy__nos {
  display: grid;
  gap: .7rem 1.4rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.4rem;
}
@media (min-width: 560px) { .privacy__nos { grid-template-columns: 1fr 1fr; } }
.privacy__nos li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.1rem;
}
.privacy__nos svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.privacy__detail { list-style: none; padding: 0; margin: 0; color: var(--ink-muted); }
.privacy__detail li { padding: .25rem 0; }

/* ============================================================
   CTA final + campo de e-mail
   ============================================================ */
.cta-final { text-align: center; }
.cta-final .storebtns { justify-content: center; }
.cta-note { color: var(--ink-muted); font-size: .95rem; margin-top: .4rem; }
.cta-city { font-weight: 600; margin-top: 1.2rem; }

.notify {
  margin: 2rem auto 0;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: left;
}
.notify label { display: block; font-weight: 700; margin-bottom: .6rem; }
.notify__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.notify input[type="email"] {
  flex: 1 1 200px;
  min-height: 48px;
  padding: .6rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--bg);
}
.notify input[type="email"]:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ============================================================
   Páginas de conteúdo (privacidade / suporte / termos)
   ============================================================ */
.doc { padding-block: clamp(40px, 6vw, 72px); }
.doc__inner { max-width: 72ch; }
.doc h2 { margin-top: 2rem; }
.doc h3 { margin-top: 1.6rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .4rem; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.doc blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  background: var(--chip);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}
.doc blockquote p:last-child { margin-bottom: 0; }
.doc__table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2rem 0;
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: .92rem;
}
.doc th, .doc td {
  border: 1px solid var(--line);
  padding: .6rem .7rem;
  text-align: left;
  vertical-align: top;
}
.doc th { background: var(--water-band); font-weight: 700; }
.doc td a { word-break: break-word; }
.meta { color: var(--ink-muted); font-size: .95rem; }

.faq { margin-top: 1rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: .2rem 1rem;
  margin-bottom: .8rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: .9rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--ink-muted); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--ink-muted); }

.contact-box {
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
}
.contact-box a { font-weight: 700; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: 2.4rem;
  padding-bottom: calc(2.4rem + env(safe-area-inset-bottom));
  margin-top: 2rem;
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.4rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; letter-spacing: -0.02em; }
.footer__brand .brand__mark { width: 20px; height: 20px; }
.footer__meta { color: var(--ink-muted); font-size: .92rem; line-height: 1.7; }
.footer__meta a { color: var(--ink); }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; margin: 0; }
.footer__links a { color: var(--ink); font-weight: 500; }

/* Utilitário: pular pro conteúdo (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color:#fff; text-decoration: none; }

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