/* Koala Play — tema light "Koala/Eucalipto". Cream quente + verde-sálvia + mel. */

:root {
  --bg: #FBF6EC;
  --bg-soft: #F2E9D6;
  --bg-card: #FFFFFF;
  --sage: #6F9C7D;
  --sage-deep: #4C7458;
  --honey: #E8A23A;
  --honey-soft: #F7CD86;
  --ink: #3C332A;
  --ink-soft: #7C7062;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --footer-bg: #2E2920;
  --footer-text: #C8BFAE;
  --shadow-lg: 0 20px 50px rgba(60, 51, 42, 0.14);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 700; letter-spacing: 0; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.icon { width: 46px; height: 46px; color: var(--sage-deep); }
.icon svg { width: 100%; height: 100%; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  header.site-header {
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.25rem; }
.brand-logo { border-radius: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.nav-toggle-icon { width: 22px; height: 22px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-weight: 600; color: var(--ink-soft); transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--sage-deep); }
.main-nav a.btn-primary, .main-nav a.btn-primary:hover { color: #2E2010; }
.btn-nav { padding: 10px 20px !important; }

/* ---------- Botões ---------- */
.btn-primary, .btn-secondary {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-family: "Baloo 2", sans-serif;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--honey); color: #2E2010; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px color-mix(in srgb, var(--honey) 40%, transparent); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-secondary:hover { border-color: var(--sage-deep); color: var(--sage-deep); }

/* patinha no hover — mecanismo inédito nesta linha de projetos: uma
   pegadinha de coala surge ao lado do botão e dá um pequeno "pulo" */
.btn-primary::after, .btn-secondary::after {
  content: "";
  position: absolute;
  right: 10px; top: 50%;
  width: 14px; height: 14px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16' rx='5.2' ry='4.2'/%3E%3Cellipse cx='6.3' cy='9.3' rx='1.6' ry='2.1'/%3E%3Cellipse cx='10.6' cy='6.4' rx='1.6' ry='2.1'/%3E%3Cellipse cx='13.8' cy='6.4' rx='1.6' ry='2.1'/%3E%3Cellipse cx='17.9' cy='9.3' rx='1.6' ry='2.1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16' rx='5.2' ry='4.2'/%3E%3Cellipse cx='6.3' cy='9.3' rx='1.6' ry='2.1'/%3E%3Cellipse cx='10.6' cy='6.4' rx='1.6' ry='2.1'/%3E%3Cellipse cx='13.8' cy='6.4' rx='1.6' ry='2.1'/%3E%3Cellipse cx='17.9' cy='9.3' rx='1.6' ry='2.1'/%3E%3C/svg%3E");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  opacity: 0;
  transform: translateY(-40%) scale(0.6);
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover::after, .btn-secondary:hover::after {
  opacity: 1;
  animation: pawBounce 0.7s ease-in-out infinite;
}
@keyframes pawBounce {
  0%, 100% { transform: translateY(-55%) scale(0.9); }
  50% { transform: translateY(-30%) scale(1); }
}

/* ---------- Hero ---------- */
.hero { padding: 80px 0 60px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 760px; }
.hero .lead { max-width: 620px; font-size: 1.1rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 760px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sage) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--sage) 32%, transparent);
  font-size: 0.85rem; color: var(--ink-soft);
}
.trust-chip svg { width: 15px; height: 15px; color: var(--sage-deep); }

/* Decoração do coala + galho de eucalipto no hero */
.koala-deco-wrap { width: min(400px, 90vw); margin: 0 auto; }
.koala-deco { width: 100%; height: auto; overflow: visible; }
.koala-branch { fill: none; stroke: var(--sage-deep); stroke-width: 5; stroke-linecap: round; opacity: .55; }
.koala-leaves .leaf { fill: var(--sage); transform-origin: center; animation: leafSway 4.5s ease-in-out infinite; }
.koala-leaves .leaf-2 { animation-delay: .4s; fill: color-mix(in srgb, var(--sage) 75%, var(--honey)); }
.koala-leaves .leaf-3 { animation-delay: .8s; }
.koala-leaves .leaf-4 { animation-delay: 1.2s; fill: color-mix(in srgb, var(--sage) 75%, var(--honey)); }
@keyframes leafSway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.koala-ear { fill: var(--ink-soft); opacity: .9; }
.koala-ear-inner { fill: var(--honey-soft); }
.koala-head { fill: #D9D2C4; }
.koala-snout { fill: #EFEADD; }
.koala-eye { fill: var(--ink); }
.koala-nose { fill: var(--ink); }

/* ---------- Painel "sinal tranquilo" + lista staggered ---------- */
.painel-koala { background: var(--bg-card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); }
.koala-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.koala-list li {
  display: flex; align-items: flex-start; gap: 12px;
  opacity: 0; transform: translateY(10px);
  animation: cochiloIn .6s ease forwards;
}
.koala-list li:nth-child(1) { animation-delay: .05s; }
.koala-list li:nth-child(2) { animation-delay: .2s; }
.koala-list li:nth-child(3) { animation-delay: .35s; }
.koala-list li:nth-child(4) { animation-delay: .5s; }
.koala-list li:nth-child(5) { animation-delay: .65s; }
@keyframes cochiloIn { to { opacity: 1; transform: translateY(0); } }
.koala-list .icon { width: 28px; height: 28px; flex-shrink: 0; }

/* ---------- Cards "blob orgânico" — border-radius assimétrico em px
   (inédito nesta linha de projetos). Valores em px (não %) de propósito:
   % do próprio box vira elipse e corta o conteúdo com overflow:hidden —
   em px o canto fica só suavemente desigual, sem comer o texto. ---------- */
.koala-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 38px 46px 30px 50px / 46px 32px 48px 28px;
  padding: 34px 28px;
  box-shadow: var(--shadow-lg);
}
/* flex (não grid) de propósito: grid auto-row-sizing mediu a altura de
   texto antes do wrap final na coluna 1fr e deixava o parágrafo vazar pra
   fora do card, coberto pelo card da linha de baixo — bug real encontrado
   nesta build; flex-wrap sempre mede a altura final já com o texto
   quebrado, então a linha cresce o quanto o card mais alto precisar. */
.why-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.why-grid .koala-card { flex: 1 1 calc(33.333% - 16px); display: flex; flex-direction: column; }
@media (max-width: 860px) { .why-grid .koala-card { flex-basis: calc(50% - 12px); } }
@media (max-width: 560px) { .why-grid .koala-card { flex-basis: 100%; } }
.why-grid .koala-card .icon { margin-bottom: 14px; }
.why-grid .koala-card h3 { font-size: 1.1rem; }
.why-grid .koala-card p { margin: 0; font-size: 0.95rem; }
.why-grid .koala-card:nth-child(2) { border-radius: 48px 34px 44px 32px / 32px 46px 30px 44px; }
.why-grid .koala-card:nth-child(3) { border-radius: 32px 48px 36px 44px / 44px 30px 46px 32px; }
.why-grid .koala-card:nth-child(5) { border-radius: 44px 32px 48px 34px / 36px 44px 32px 46px; }

/* ---------- Planos ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan-card {
  position: relative; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 30px 42px 26px 46px / 40px 26px 42px 24px;
  padding: 32px 26px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.plan-card.featured { border-color: var(--honey); border-width: 2px; }
.plan-card.featured:hover { transform: translateY(-6px); transition: transform .25s; }
.plan-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan-price { font-size: 2.1rem; font-weight: 700; font-family: "Baloo 2", sans-serif; color: var(--sage-deep); }
.plan-price span { font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; }
.plan-note { font-size: 0.82rem; color: var(--honey); margin: -6px 0 14px; font-weight: 700; }
.plan-bullets { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; flex-grow: 1; }
.plan-bullets li { display: flex; gap: 8px; font-size: 0.92rem; color: var(--ink-soft); }
.plan-bullets .icon { width: 18px; height: 18px; color: var(--sage-deep); flex-shrink: 0; margin-top: 2px; }
.plan-badge {
  position: absolute; top: 18px; right: -34px;
  align-self: flex-start;
  background: var(--honey); color: #2E2010;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 5px 40px;
  transform: rotate(38deg);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--honey) 40%, transparent);
}

/* ---------- Blocos genéricos ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.faq-item { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; background: var(--bg-card); }
.faq-item summary { cursor: pointer; font-weight: 700; font-family: "Baloo 2", sans-serif; font-size: 1.05rem; }
.faq-item p { margin-top: 12px; }
.device-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .device-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .device-grid { grid-template-columns: repeat(2, 1fr); } }
.device-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--line); text-align: center; font-size: 0.88rem; }
.device-icon { width: 30px; height: 30px; color: var(--sage-deep); }
.page-icon-badge { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--honey) 16%, transparent); color: var(--honey); margin-bottom: 14px; }
.page-icon-badge svg { width: 22px; height: 22px; }

/* ---------- Mobile nav — position:absolute, nunca fixed ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    z-index: 65;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .btn-nav { align-self: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); padding: 60px 0 24px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 12px; }
.site-footer h3 { font-size: 0.95rem; color: var(--footer-text); margin-bottom: 14px; }
.site-footer p, .site-footer a { color: var(--footer-text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.9rem; }
.site-footer a:hover { color: var(--honey-soft); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; }
.footer-bottom p { color: var(--footer-text); margin: 0; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage-deep); color: #F3ECDC;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.whatsapp-icon { width: 26px; height: 26px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { border-radius: var(--radius); overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.blog-card img { aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 22px; }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2 { margin-top: 1.6em; }
.post-cover { border-radius: var(--radius); margin-bottom: 30px; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { font-size: clamp(3rem, 8vw, 5.5rem); color: var(--sage-deep); }
