/* Landing page WhatsKB. Identidade: manual v1.0 + decisões aprovadas (skill whatskb-identidade-visual).
   Cores da marca (manual p. 2), Outfit 800/700/600/400 (p. 3), logo só pelos SVG mestres (p. 3–5),
   ícones de interface Material Design. A seção Recursos tem o próprio CSS (recursos/recursos.css). */

@font-face {
  font-family: "Outfit";
  src: url("../assets/fontes/Outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Marca */
  --brand-light: #B0D8BF; --brand-medium: #579879; --brand-dark: #245B43; --brand-sage: #7EAD94;
  --brand-bg: #F5F9F6; --brand-text: #20382D;
  /* Interface (tokens-e-cores.md) */
  --primary: #245B43; --on-primary: #FFFFFF;
  --primary-container: #B0D8BF; --on-primary-container: #20382D;
  --surface: #F5F9F6; --surface-lowest: #FFFFFF; --surface-low: #EDF4EF; --surface-container: #E7EFE9;
  --on-surface: #20382D; --on-surface-variant: #4D6256;
  --outline: #6D8174; --outline-variant: #C6D7CC;
  --caution-fg: #B45309; --caution-bg: #FEF3C7; --caution-line: #F59E0B;
  --shadow-tint: #18251F;
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--shadow-tint) 8%, transparent);
  --shadow-md: 0 4px 16px color-mix(in srgb, var(--shadow-tint) 12%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, var(--shadow-tint) 16%, transparent);
  --radius-md: 8px; --radius-card: 12px; --radius-xl: 20px; --radius-lg: 28px; --radius-pill: 999px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --topo: 72px; /* altura do cabeçalho fixo */
  --larg: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.reduzido { scroll-behavior: auto; }
body {
  margin: 0; font-family: "Outfit", system-ui, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.55;
  color: var(--on-surface); background: var(--surface-lowest); overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; box-shadow: 0 0 0 5px #FFFFFF; border-radius: 4px; }
section[id] { scroll-margin-top: var(--topo); }
section[tabindex="-1"]:focus { outline: none; box-shadow: none; } /* foco levado pelo menu: sem moldura na seção */
.ctn { max-width: var(--larg); margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-md); background: var(--primary); color: #fff; font-weight: 600; text-decoration: none; }
.pular:focus { top: 12px; }
.ico { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px;
  border-radius: var(--radius-pill); font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: background-color .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
}
.btn .ico { width: 20px; height: 20px; }
.btn-pri { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-pri:hover { background: #1C4A36; box-shadow: var(--shadow-md); }
.btn-sec { background: var(--surface-lowest); color: var(--primary); border-color: var(--outline); }
.btn-sec:hover { background: var(--primary-container); border-color: var(--primary); }
.btn-claro { background: #FFFFFF; color: var(--primary); }
.btn-claro:hover { background: var(--primary-container); }
.btn-p { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Cabeçalho fixo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topo);
  background: color-mix(in srgb, #FFFFFF 94%, transparent); backdrop-filter: saturate(1.2);
  border-bottom: 1px solid transparent; transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.topo.rolou { border-color: var(--outline-variant); box-shadow: var(--shadow-sm); }
.topo .ctn { height: 100%; display: flex; align-items: center; gap: 24px; }
/* Logo colorida oficial: 32 px de altura, área de proteção x ≈ 11,6 px (padding) — manual p. 5. */
.topo-logo { flex: none; padding: 12px 12px 12px 0; display: block; }
.topo-logo img { height: 32px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu a {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: var(--radius-pill);
  color: var(--on-surface-variant); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.menu a:hover { background: var(--surface-low); color: var(--on-surface); }
.menu a[aria-current="true"] { color: var(--primary); background: var(--surface-low); }
.topo-acao { flex: none; }
/* Selo "Beta": fora da área de proteção da logo (o padding do link já reserva x). */
.beta {
  flex: none; margin-left: -12px; padding: 2px 9px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 16px;
  color: var(--brand-text); background: var(--primary-container);
}

/* ---------- Celular e tablet: barra de atalhos embaixo + gaveta lateral ----------
   Mesma construção do app (barra de navegação do Material 3 + gaveta), na identidade WhatsKB. */
.barra, .gaveta, .veu { display: none; }
@media (max-width: 959px) {
  :root { --barra: 72px; }
  body { padding-bottom: calc(var(--barra) + env(safe-area-inset-bottom)); }
  .menu { display: none; }
  .topo-acao { margin-left: auto; }

  .barra {
    position: fixed; inset: auto 0 0 0; z-index: 60; display: flex; justify-content: space-around; align-items: stretch;
    height: calc(var(--barra) + env(safe-area-inset-bottom)); padding: 8px 4px env(safe-area-inset-bottom);
    background: #FFFFFF; border-top: 1px solid var(--outline-variant); box-shadow: 0 -2px 12px color-mix(in srgb, var(--shadow-tint) 8%, transparent);
  }
  .barra a, .barra-menu {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none;
    font: inherit; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--on-surface-variant);
  }
  .barra-ic {
    width: 56px; height: 32px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center;
    transition: background-color .2s var(--ease);
  }
  .barra .ico { width: 24px; height: 24px; }
  .barra a[aria-current="true"], .barra-menu[aria-expanded="true"] { color: var(--on-surface); font-weight: 700; }
  .barra a[aria-current="true"] .barra-ic, .barra-menu[aria-expanded="true"] .barra-ic { background: var(--primary-container); color: var(--brand-text); }

  .veu {
    position: fixed; inset: 0; z-index: 70; display: block; background: color-mix(in srgb, var(--shadow-tint) 45%, transparent);
    opacity: 0; transition: opacity .25s var(--ease);
  }
  .veu[hidden] { display: none; }
  .veu.on { opacity: 1; }
  .gaveta {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 80; width: min(320px, 86vw); display: flex; flex-direction: column;
    background: var(--brand-dark); color: #FFFFFF; border-radius: 0 16px 16px 0; box-shadow: var(--shadow-lg);
    transform: translateX(-105%); transition: transform .28s var(--ease);
    padding: 0 12px env(safe-area-inset-bottom);
  }
  .gaveta.aberta { transform: none; }
  /* Logo branca oficial sobre o verde-escuro (manual p. 4), com área de proteção. */
  .gaveta-logo { display: flex; justify-content: center; padding: 22px 12px 18px; }
  .gaveta-logo img { height: 30px; width: auto; }
  .gaveta-lista { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; overflow-y: auto; }
  .gaveta-lista a {
    display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 16px; border-radius: var(--radius-pill);
    color: color-mix(in srgb, #FFFFFF 92%, transparent); font-size: 16px; font-weight: 600; text-decoration: none;
    transition: background-color .15s var(--ease);
  }
  .gaveta-lista a:hover { background: color-mix(in srgb, #FFFFFF 8%, transparent); }
  .gaveta-lista a[aria-current="true"] { background: color-mix(in srgb, #FFFFFF 16%, transparent); color: #FFFFFF; }
  .gaveta-lista .ico { width: 22px; height: 22px; }
  .gaveta-pe { margin-top: auto; padding: 16px 4px 20px; border-top: 1px solid color-mix(in srgb, #FFFFFF 18%, transparent); display: grid; gap: 14px; }
  .gaveta-pe .btn { width: 100%; }
  .gaveta-mail { display: flex; align-items: center; gap: 8px; justify-content: center; color: #FFFFFF; font-size: 14px; text-decoration: none; }
  .gaveta-mail .ico { width: 18px; height: 18px; }
  .gaveta :focus-visible { outline-color: #FFFFFF; box-shadow: 0 0 0 5px var(--brand-dark); }
  body.gaveta-aberta { overflow: hidden; }
}
@media (max-width: 380px) { .topo-acao-mais { display: none; } }

/* ---------- Seções ---------- */
.sec { padding: 96px 0; }
.sec-clara { background: var(--surface); }
.sec-cab { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.olho {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: var(--surface-lowest); border: 1px solid var(--outline-variant);
}
.sec-tit { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 700; color: var(--brand-text); }
.sec-sub { margin: 0; font-size: 18px; color: var(--on-surface-variant); }

/* ---------- Início ---------- */
.hero { padding: calc(var(--topo) + 56px) 0 40px; background: var(--surface-lowest); }
.hero .ctn { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero h1 {
  margin: 0 0 12px; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; font-weight: 800; color: var(--brand-text);
}
.hero-sub { margin: 0 0 16px; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.3; font-weight: 600; color: var(--primary); }
.hero-txt { margin: 0 0 28px; font-size: 18px; color: var(--on-surface-variant); max-width: 520px; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-nota { margin: 14px 0 0; font-size: 14px; color: var(--on-surface-variant); display: flex; align-items: center; gap: 6px; }
.hero-nota .ico { width: 18px; height: 18px; color: var(--primary); }
.hero-quadro { position: relative; padding: 16px; border-radius: var(--radius-xl); background: var(--surface-low); box-shadow: var(--shadow-lg); }
.hero-quadro-fit { position: relative; }

.destaques { padding: 40px 0 80px; background: var(--surface-lowest); }
.destaques ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.destaques li {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-card);
  background: var(--surface); border: 1px solid var(--outline-variant);
}
.destaques .ic { width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary-container); color: var(--brand-text); }
.destaques b { display: block; font-weight: 600; color: var(--on-surface); line-height: 1.3; }
.destaques span { display: block; font-size: 14px; color: var(--on-surface-variant); line-height: 1.35; }

/* A seção animada fica com a mesma largura útil da página */
.wkr { padding-top: 96px; padding-bottom: 96px; }

/* ---------- Como funciona ---------- */
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: passo; }
.passo {
  position: relative; padding: 32px 28px 28px; border-radius: var(--radius-xl); background: var(--surface-lowest);
  border: 1px solid var(--outline-variant); box-shadow: var(--shadow-sm);
}
.passo-num {
  width: 48px; height: 48px; margin-bottom: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--on-primary); font-size: 20px; font-weight: 700;
}
.passo h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--brand-text); }
.passo p { margin: 0; color: var(--on-surface-variant); }
.passo .ico-canto { position: absolute; right: 24px; top: 32px; width: 32px; height: 32px; fill: var(--brand-sage); }

/* ---------- Privacidade ---------- */
.priv { background: var(--primary); color: #FFFFFF; }
.priv .ctn { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.priv .olho { color: var(--brand-text); background: var(--brand-light); border-color: var(--brand-light); }
.priv .sec-tit { color: #FFFFFF; }
.priv-txt { margin: 0 0 24px; font-size: 18px; color: color-mix(in srgb, #FFFFFF 86%, transparent); }
.priv-simbolo { width: 120px; height: auto; margin: 0 0 28px; padding: 22px; box-sizing: content-box; } /* área de proteção ≥ x */
.priv ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.priv li { padding: 22px; border-radius: var(--radius-card); background: color-mix(in srgb, #FFFFFF 8%, transparent); border: 1px solid color-mix(in srgb, #FFFFFF 18%, transparent); }
.priv li .ico { width: 28px; height: 28px; margin-bottom: 10px; color: var(--brand-light); }
.priv li b { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 600; }
.priv li span { display: block; font-size: 15px; color: color-mix(in srgb, #FFFFFF 86%, transparent); }
.priv a.link-claro { color: #FFFFFF; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.priv a.link-claro .ico { width: 18px; height: 18px; }

/* ---------- Planos ---------- */
/* Grátis à esquerda; os dois "Em breve" empilhados à direita (sem espaço vazio). */
.planos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; max-width: 1000px; margin: 0 auto; }
.planos-breve { display: grid; gap: 24px; grid-template-rows: 1fr 1fr; }
.plano {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: var(--radius-xl);
  background: var(--surface-lowest); border: 1px solid var(--outline-variant); box-shadow: var(--shadow-sm);
}
.plano.destaque { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plano-selo {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  background: var(--primary); color: var(--on-primary);
}
.plano-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.plano h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--brand-text); }
.etq { padding: 2px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.etq-breve { color: var(--caution-fg); background: var(--caution-bg); box-shadow: inset 0 0 0 1px var(--caution-line); }
.plano-para { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 14px; color: var(--on-surface-variant); }
.plano-para .ico { width: 18px; height: 18px; }
.plano-desc { margin: 0 0 20px; color: var(--on-surface-variant); }
.preco { display: flex; align-items: baseline; gap: 6px; margin: 0 0 4px; }
.preco b { font-size: 44px; line-height: 1; font-weight: 700; color: var(--brand-text); }
.preco span { color: var(--on-surface-variant); }
.preco-nota { margin: 0 0 20px; font-size: 14px; color: var(--on-surface-variant); }
.plano ul { list-style: none; margin: 0 0 28px; padding: 20px 0 0; border-top: 1px solid var(--outline-variant); display: grid; gap: 10px; }
.plano li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; }
.plano li .ico { width: 20px; height: 20px; color: var(--primary); margin-top: 1px; }
.plano .btn { margin-top: auto; width: 100%; }
.plano.breve .plano-vazio { margin: 0 0 28px; padding: 20px 0 0; border-top: 1px solid var(--outline-variant); color: var(--on-surface-variant); display: flex; gap: 10px; }
.plano.breve .plano-vazio .ico { width: 22px; height: 22px; color: var(--brand-sage); }
.planos-nota { margin: 28px auto 0; max-width: 680px; text-align: center; font-size: 15px; color: var(--on-surface-variant); }

/* ---------- Dúvidas ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-card); background: var(--surface-lowest); border: 1px solid var(--outline-variant); }
.faq details[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-size: 17px; font-weight: 600; color: var(--on-surface); border-radius: var(--radius-card);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--primary); transition: transform .2s var(--ease); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--on-surface-variant); }

/* ---------- Chamada final ---------- */
.cta-final { text-align: center; }
.cta-box { padding: 64px 24px; border-radius: var(--radius-lg); background: var(--surface-low); border: 1px solid var(--outline-variant); }
.cta-simbolo { width: 96px; height: auto; margin: 0 auto 20px; padding: 18px; box-sizing: content-box; } /* área de proteção ≥ x */
.cta-box h2 { margin: 0 0 10px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; font-weight: 800; color: var(--brand-text); }
.cta-box p { margin: 0 0 28px; font-size: 18px; color: var(--on-surface-variant); }

/* ---------- Rodapé ---------- */
.rodape { background: var(--brand-text); color: color-mix(in srgb, #FFFFFF 86%, transparent); padding: 56px 0 32px; }
.rodape-grade { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
/* Logo branca oficial sobre #20382D (manual p. 4), 32 px, área de proteção pelo padding. */
.rodape-logo { display: inline-block; padding: 12px 12px 12px 0; }
.rodape-logo img { height: 32px; width: auto; }
.rodape p { margin: 12px 0 0; font-size: 15px; max-width: 380px; }
.rodape h3 { margin: 12px 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-light); }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rodape a { color: #FFFFFF; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.rodape a:hover { text-decoration: underline; }
.rodape a .ico { width: 18px; height: 18px; }
.rodape :focus-visible { outline-color: #FFFFFF; box-shadow: 0 0 0 5px var(--brand-text); }
.rodape-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, #FFFFFF 16%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* ---------- Tablet ---------- */
@media (max-width: 1099px) {
  .hero .ctn { grid-template-columns: 1fr; gap: 40px; }
  .hero-txt { max-width: none; }
  .destaques ul { grid-template-columns: repeat(2, 1fr); }
  .passos { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .priv .ctn { grid-template-columns: 1fr; gap: 32px; }
  .planos { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .planos-breve { grid-template-rows: none; }
  .rodape-grade { grid-template-columns: 1fr 1fr; }
  .rodape-grade > :first-child { grid-column: 1 / -1; }
}
/* ---------- Celular ---------- */
@media (max-width: 599px) {
  :root { --topo: 64px; }
  .sec, .wkr { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: calc(var(--topo) + 32px); }
  .hero-acoes .btn { width: 100%; }
  .hero-quadro { padding: 8px; border-radius: 14px; }
  .destaques { padding-bottom: 56px; }
  .destaques ul { grid-template-columns: 1fr; }
  .priv ul { grid-template-columns: 1fr; }
  .plano, .passo { padding: 28px 20px 22px; }
  .cta-box { padding: 48px 18px; }
  .rodape-grade { grid-template-columns: 1fr; }
  .topo-logo img { height: 28px; }
}
