/* Petamicus — site. Mesmo sistema de design do app (www/index.html). */
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F5F7F6; --bg-2: #EDF2EF; --surface: #FFFFFF; --ink: #141C18; --ink-soft: #5D6A63; --ink-faint: #8B978F;
  --primary: #128A56; --primary-2: #0D6E44; --primary-soft: #E4F4EA; --primary-mid: #BFE6CF; --on-primary: #FFFFFF;
  --accent: #FF6B4A; --accent-soft: #FFECE6; --line: #E3E8E5; --shadow: 0 24px 50px -26px rgba(20, 28, 24, .35);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0E1411; --bg-2: #131B17; --surface: #161E1A; --ink: #EAF0EC; --ink-soft: #A3B0A8; --ink-faint: #76847C; --primary: #3CCB85;
    --primary-2: #5BD99A; --primary-soft: #14301F; --primary-mid: #1E4A31; --on-primary: #06200F; --accent-soft: #3A2019; --line: #25302A; --shadow: 0 24px 50px -26px rgba(0, 0, 0, .8); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--primary); }
h1, h2, h3 { font-family: inherit; font-weight: 750; line-height: 1.12; margin: 0; letter-spacing: -0.025em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }

/* Cabeçalho */
.topo { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.topo .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -0.035em; }
.marca b { color: var(--primary); font-weight: 800; }
.marca img { width: 36px; height: 36px; border-radius: 10px; }
.topo nav { display: flex; gap: 24px; margin-left: auto; }
.topo nav a { color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: 15px; }
.topo nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .topo nav { display: none; } .topo .btn { margin-left: auto; } }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 700; border-radius: 14px; padding: 12px 20px; font-size: 15px; border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--primary-2); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-grande { font-size: 17px; padding: 16px 26px; border-radius: 16px; box-shadow: 0 14px 30px -14px rgba(13, 110, 68, .6); }
.btn-grande svg { width: 22px; height: 22px; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn-claro { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-claro:hover { background: var(--bg-2); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 64px 0 72px; }
.selo { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 13.5px; padding: 7px 14px 7px 10px; border-radius: 99px; }
.selo .ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(38px, 6.6vw, 66px); margin: 18px 0 16px; letter-spacing: -0.04em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--primary); }
.sub { color: var(--ink-soft); font-size: 19px; margin: 0 0 30px; max-width: 32em; }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.meta { color: var(--ink-soft); font-size: 14px; margin: 16px 0 0; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.checks li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.checks li::before { content: ''; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--primary) 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-img { display: flex; justify-content: center; position: relative; }
.hero-img::before { content: ''; position: absolute; inset: 8% -6% 8% -6%; border-radius: 40px; background: radial-gradient(120% 90% at 80% 0%, #2BB673 0%, #128A56 45%, #0D5E3B 100%); opacity: .14; z-index: -1; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 32px 0 44px; gap: 36px; }
  .hero-img .celular { width: min(280px, 76vw); }
  .acoes .btn { flex: 1 1 100%; }
}

/* Moldura de celular */
.celular { width: 300px; padding: 9px; border-radius: 42px; background: #141C18; box-shadow: 0 34px 60px -24px rgba(20, 28, 24, .55), 0 0 0 1px rgba(255,255,255,.06) inset; }
.celular img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 34px; object-fit: cover; }

/* Seções */
section.bloco { padding: 76px 0; }
section.bloco.alt { background: var(--bg-2); }
.titulo { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.titulo h2 { font-size: clamp(28px, 4.6vw, 42px); }
.titulo p { color: var(--ink-soft); font-size: 17px; margin: 12px 0 0; }

.pilares { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .pilares { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pilares { grid-template-columns: 1fr; } }
.pilar { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px 24px; transition: transform .2s, box-shadow .2s; }
.pilar:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pilar .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.pilar .ico svg { width: 24px; height: 24px; }
.pilar h3 { font-size: 20px; margin-bottom: 8px; }
.pilar p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.recursos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 960px) { .recursos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .recursos { grid-template-columns: 1fr; } }
.recurso { background: transparent; border: 1px dashed var(--line); border-radius: 20px; padding: 18px 20px; }
.recurso h3 { font-size: 16px; margin-bottom: 4px; letter-spacing: -0.01em; }
.recurso p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.especies { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 34px 0 0; padding: 0; list-style: none; }
.especies li { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: 15px; }

/* Faixa da comunidade */
.faixa { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.faixa h2 { font-size: clamp(28px, 4.6vw, 42px); margin-bottom: 12px; }
.faixa > div > p { color: var(--ink-soft); font-size: 17px; margin: 0; }
.faixa .checks { flex-direction: column; gap: 12px; }
.numeros { display: grid; gap: 12px; }
.numeros div { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; }
.numeros strong { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--primary); min-width: 44px; line-height: 1; }
.numeros span { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 860px) { .faixa { grid-template-columns: 1fr; } }

.galeria { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 18px; margin: 0 -20px; scrollbar-width: none; }
.galeria::-webkit-scrollbar { display: none; }
.galeria figure { flex: 0 0 190px; margin: 0; scroll-snap-align: center; text-align: center; }
.galeria .celular { width: 100%; padding: 7px; border-radius: 30px; }
.galeria .celular img { border-radius: 24px; }
.galeria figcaption { margin-top: 12px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
@media (min-width: 1100px) { .galeria { justify-content: center; overflow: visible; } .galeria figure { flex-basis: 164px; } }
@media (max-width: 560px) { .galeria figure { flex-basis: 64vw; } }

.privacidade { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: radial-gradient(120% 120% at 100% 0%, #1BA566 0%, #128A56 40%, #0D5E3B 100%); color: #EAF7EF; border-radius: 30px; padding: 40px 44px; margin: 76px 0 0; }
.privacidade h2 { color: #fff; font-size: clamp(26px, 4vw, 34px); margin-bottom: 10px; }
.privacidade p { margin: 0 0 8px; opacity: .94; }
.privacidade a { color: #FFFFFF; font-weight: 700; }
.privacidade .escudo { width: 84px; height: 84px; border-radius: 24px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.privacidade .escudo svg { width: 44px; height: 44px; }
@media (max-width: 640px) { .privacidade { grid-template-columns: 1fr; padding: 30px 24px; } }

.sub-bloco { margin-top: 64px; scroll-margin-top: 96px; }
.passos { counter-reset: passo; list-style: none; padding: 0; margin: 0 auto; max-width: 720px; display: grid; gap: 12px; }
.passos li { counter-increment: passo; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 18px 70px; }
.passos li::before { content: counter(passo); position: absolute; left: 20px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 16px; display: grid; place-items: center; }
.passos strong { color: var(--ink); }
.nota { max-width: 720px; margin: 18px auto 0; color: var(--ink-soft); font-size: 14.5px; text-align: center; }
.centro { text-align: center; margin-top: 30px; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; padding: 14px 28px 14px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 10px; font-size: 22px; font-weight: 400; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }
.faq code { font-size: 12px; word-break: break-all; background: var(--bg); padding: 2px 6px; border-radius: 6px; }

.final { text-align: center; }
.final img { width: 80px; height: 80px; border-radius: 22px; box-shadow: var(--shadow); }
.final h2 { font-size: clamp(28px, 4.6vw, 42px); margin: 20px 0 10px; }
.final p { color: var(--ink-soft); margin: 0 0 26px; }

/* Páginas de texto (política de privacidade, termos) */
main.texto { max-width: 760px; margin: 0 auto; padding: 8px 20px 60px; }
main.texto h1 { font-size: clamp(30px, 6vw, 44px); margin: 22px 0 10px; }
main.texto h2 { font-size: 21px; margin: 34px 0 8px; letter-spacing: -0.015em; }
main.texto ul { padding-left: 22px; }
main.texto li { margin-bottom: 6px; }
.destaque { background: var(--primary-soft); border-left: 4px solid var(--primary); border-radius: 0 16px 16px 0; padding: 16px 20px; margin: 18px 0; }

/* Rodapé */
footer.rodape { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
footer.rodape .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; padding-bottom: 36px; }
footer.rodape a { color: var(--ink-soft); }

/* Versão web: botão "Usar no navegador" com o mesmo destaque do download */
.topo-botoes { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.btn-web { background: var(--surface); color: var(--primary); border: 2px solid var(--primary); box-shadow: none; }
.btn-web:hover { background: var(--primary-soft); color: var(--primary-2); }
.btn-web small { display: block; font-size: 12px; font-weight: 600; opacity: .8; margin-top: 1px; }
.btn-grande.btn-web { box-shadow: 0 14px 30px -18px rgba(13, 110, 68, .45); line-height: 1.2; }
.btn-grande.btn-web span { text-align: left; }
.btn-web .curto { display: none; }
.topo nav .nav-web { color: var(--primary); font-weight: 700; }
@media (max-width: 760px) { .topo-botoes { margin-left: auto; } .topo .btn { margin-left: 0; } }
@media (max-width: 480px) { .btn-web .longo { display: none; } .btn-web .curto { display: inline; } .topo-botoes .btn { padding: 8px 12px; } }

section.bloco.web { background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 100%); }
.web-cartoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin: 0 auto; }
.web-cartao { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.web-cartao h3 { margin: 12px 0 8px; font-size: 19px; }
.web-cartao p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.web-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.web-ico svg { width: 26px; height: 26px; }
.passos-mini { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 15px; display: grid; gap: 6px; }
.passos-mini strong { color: var(--ink); }
.web-nota { margin-top: 10px !important; font-weight: 600; color: var(--primary) !important; }
.web-privacidade { margin-top: 22px; }
.centro-acoes { justify-content: center; margin-top: 8px; }
@media (max-width: 860px) { .web-cartoes { grid-template-columns: 1fr; } }

/* No iPhone o arquivo de Android não serve: some, e a versão web vira o botão principal (site.js marca a classe) */
.ios [data-android] { display: none !important; }
.ios .btn-grande.btn-web { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.topo-botoes .btn { white-space: nowrap; }
@media (max-width: 440px) { .topo .marca span { display: none; } .topo-botoes { gap: 6px; } }
