/* ==========================================================================
   Keepet — Site institucional
   Tokens espelhados de src/theme/tokens.js (fonte única do app).
   ========================================================================== */

:root {
  /* Marca */
  --teal-50:  #ECFDF7;
  --teal-100: #D1FAEC;
  --teal-200: #A6F2DC;
  --teal-400: #36D1AE;
  --teal-500: #14B89A;
  --teal-600: #0E9A82;
  --teal-700: #0F7B69;
  --teal-800: #116155;

  --coral-100: #FFE3DA;
  --coral-400: #FF8460;
  --coral-500: #FF6B43;
  --coral-600: #ED4F26;

  --amber-100: #FFF1C6;
  --amber-400: #FFB81F;
  --amber-500: #F59E0B;

  --sky-100:   #DAEEFF;
  --sky-500:   #3BA7F5;
  --violet-100:#EBE7FE;
  --violet-500:#8257F0;
  --pink-100:  #FFE0EE;
  --pink-500:  #F4498F;
  --green-100: #DCF6DC;
  --green-500: #2FB344;
  --indigo-100:#E0E6FF;
  --indigo-500:#5B63F5;

  /* Neutros (sand) */
  --sand-0:   #FFFFFF;
  --sand-50:  #FAF8F6;
  --sand-100: #F3EFEB;
  --sand-200: #E7E1DB;
  --sand-300: #D5CDC4;
  --sand-400: #B3A99E;
  --sand-500: #8C8178;
  --sand-600: #6B625A;
  --sand-700: #4F4842;
  --sand-900: #211E1B;

  /* Semânticos */
  --bg: var(--sand-50);
  --surface: var(--sand-0);
  --surface-alt: var(--sand-100);
  --border: var(--sand-200);
  --text: var(--sand-900);
  --text-muted: var(--sand-600);
  --text-subtle: var(--sand-500);
  --primary: var(--teal-500);
  --primary-strong: var(--teal-600);

  /* Tipografia */
  --font-display: 'Quicksand', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Raios */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 30px;
  --r-full: 9999px;

  /* Sombras */
  --shadow-soft: 0 2px 8px rgba(33, 30, 27, 0.06);
  --shadow-card: 0 8px 20px rgba(33, 30, 27, 0.08);
  --shadow-floating: 0 14px 32px rgba(33, 30, 27, 0.14);
  --shadow-primary: 0 10px 24px rgba(20, 184, 154, 0.30);

  --maxw: 1120px;
  --maxw-readable: 760px;
}

/* --- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); }
ul { padding-left: 1.2em; }

/* --- Layout helpers ------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-strong);
}
.center { text-align: center; }
.muted { color: var(--text-muted); }

/* --- Botões --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: var(--r-full); border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--sand-300); background: var(--surface); }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 10px 14px; }
.btn-ghost:hover { color: var(--text); }

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 246, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.navlink { padding: 10px 14px; border-radius: var(--r-full); color: var(--text-muted); font-weight: 600; font-size: 15px; transition: color .15s, background .15s; }
.nav-links a.navlink:hover { color: var(--text); background: var(--surface); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--sand-50) 72%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-block: 80px 96px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); }
.hero p.lead { font-size: 20px; color: var(--text-muted); margin-top: 20px; max-width: 30ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .store-row { margin-top: 28px; }
.trust { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--text-subtle); font-size: 14px; font-weight: 600; }
.trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sand-300); }

/* Hero art (mockup + floating bubbles) */
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 380px; aspect-ratio: 1; }
.hero-art .glow {
  position: absolute; inset: 0; margin: auto; width: 64%; aspect-ratio: 1;
  border-radius: 48px; box-shadow: var(--shadow-floating);
}
.hero-art .mark {
  position: absolute; inset: 0; margin: auto; width: 46%; aspect-ratio: 1;
  border-radius: 30px; box-shadow: var(--shadow-primary);
}
.bubble {
  position: absolute; width: 64px; height: 64px; border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--shadow-card);
  display: grid; place-items: center;
}
.bubble svg { width: 30px; height: 30px; }
.bubble.b1 { top: 6%;  left: 6%; }
.bubble.b2 { top: 14%; right: 2%; }
.bubble.b3 { bottom: 14%; left: 0%; }
.bubble.b4 { bottom: 4%; right: 8%; }

/* --- Store badges --------------------------------------------------------- */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  background: var(--sand-900); color: #fff; padding: 12px 20px; border-radius: var(--r-md);
  min-width: 200px; transition: transform .12s ease, opacity .2s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge .sb-top { font-size: 11px; opacity: .85; font-weight: 600; }
.store-badge .sb-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.store-badge .soon {
  position: absolute; top: -9px; right: -9px;
  background: var(--amber-500); color: var(--sand-900);
  font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: var(--r-full);
  box-shadow: var(--shadow-soft);
}

/* --- Features ------------------------------------------------------------- */
.features-head { max-width: 620px; margin-inline: auto; margin-bottom: 56px; }
.features-head h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 12px; }
.features-head p { margin-top: 16px; font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 28px; box-shadow: var(--shadow-soft); transition: transform .15s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-ic { width: 56px; height: 56px; border-radius: var(--r-lg); display: grid; place-items: center; margin-bottom: 18px; }
.feature-ic svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 20px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 16px; }

/* tints para ícones */
.t-teal   { background: var(--teal-100); color: var(--teal-600); }
.t-coral  { background: var(--coral-100); color: var(--coral-600); }
.t-amber  { background: var(--amber-100); color: var(--amber-500); }
.t-sky    { background: var(--sky-100); color: var(--sky-500); }
.t-violet { background: var(--violet-100); color: var(--violet-500); }
.t-pink   { background: var(--pink-100); color: var(--pink-500); }
.t-green  { background: var(--green-100); color: var(--green-500); }
.t-indigo { background: var(--indigo-100); color: var(--indigo-500); }

/* --- Steps (como funciona) ----------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; position: relative; }
.step .num {
  counter-increment: step; font-family: var(--font-display); font-weight: 700;
  width: 40px; height: 40px; border-radius: var(--r-full); display: grid; place-items: center;
  background: var(--teal-500); color: #fff; font-size: 18px; margin-bottom: 16px;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 16px; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--teal-600), var(--teal-800)); border-radius: var(--r-2xl); padding: 56px 40px; text-align: center; color: #fff; box-shadow: var(--shadow-card); }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); }
.cta-band p { color: rgba(255,255,255,.85); font-size: 18px; margin-top: 14px; max-width: 48ch; margin-inline: auto; }
.cta-band .store-row { justify-content: center; margin-top: 30px; }
.cta-band .store-badge { background: #fff; color: var(--sand-900); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--sand-900); color: var(--sand-300); padding-block: 56px 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer p.about { margin-top: 14px; color: var(--sand-400); max-width: 34ch; font-size: 15px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; font-family: var(--font-body); font-weight: 800; }
.footer-col a { display: block; color: var(--sand-300); padding: 5px 0; font-size: 15px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--sand-700); margin-top: 40px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--sand-400); font-size: 14px; }
.footer-bottom a { color: var(--sand-300); }
.footer-bottom a:hover { color: #fff; }
.heart { color: var(--coral-400); }

/* --- Páginas internas (legal / suporte) ----------------------------------- */
.page-hero { background: linear-gradient(180deg, var(--teal-50), var(--sand-50)); border-bottom: 1px solid var(--border); }
.page-hero .container { padding-block: 56px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 10px; }
.page-hero p { margin-top: 14px; color: var(--text-muted); font-size: 18px; max-width: 60ch; }

.article { max-width: var(--maxw-readable); margin-inline: auto; padding-block: 56px; }
.article h2 { font-size: 26px; margin-top: 44px; margin-bottom: 14px; scroll-margin-top: 90px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 20px; margin-top: 28px; margin-bottom: 10px; }
.article p, .article li { color: var(--text); font-size: 16.5px; }
.article p { margin-bottom: 14px; }
.article ul, .article ol { margin-bottom: 16px; }
.article li { margin-bottom: 7px; }
.article a { color: var(--primary-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.article strong { font-weight: 800; }
.updated { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-full); padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.callout { background: var(--teal-50); border: 1px solid var(--teal-200); border-left: 4px solid var(--teal-500); border-radius: var(--r-md); padding: 16px 18px; margin: 22px 0; }
.callout.warn { background: var(--amber-100); border-color: var(--amber-400); border-left-color: var(--amber-500); }
.callout p:last-child { margin-bottom: 0; }

/* TOC */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 36px; }
.toc h4 { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-subtle); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 5px; }
.toc a { color: var(--primary-strong); text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }

/* --- FAQ ------------------------------------------------------------------ */
.faq-cat { margin-bottom: 40px; }
.faq-cat > h2 { font-size: 24px; margin-bottom: 16px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-body); font-weight: 700; font-size: 17px; color: var(--text); }
.faq-q:hover { background: var(--surface-alt); }
.faq-q .chev { flex: none; width: 22px; height: 22px; transition: transform .2s ease; color: var(--text-subtle); }
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding: 0 20px 20px; color: var(--text-muted); font-size: 16px; }
.faq-a p { margin-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }
/* details/summary native */
details.faq-item summary { list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }

/* Contato card */
.help-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 48px; }
.help-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-soft); }
.help-card .feature-ic { margin-bottom: 16px; }
.help-card h3 { font-size: 20px; margin-bottom: 8px; }
.help-card p { color: var(--text-muted); margin-bottom: 16px; }

/* --- Responsivo ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 56px 64px; }
  .hero-art { order: -1; max-width: 300px; }
  .hero p.lead { max-width: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .help-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 60px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; gap: 4px; box-shadow: var(--shadow-card);
  }
  .nav-links.open a.navlink { padding: 12px 8px; font-size: 17px; }
  .nav-links.open .btn { margin-top: 8px; }
  .nav-toggle { display: inline-flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .store-badge { min-width: 0; flex: 1; }
  .cta-band { padding: 40px 24px; }
}
