/* ===================================================================
   IMPULSE CERTIFICADORA — Design System
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* Cor — extraída da marca */
  --ink:            #17242A;   /* texto principal, quase-preto com tom petróleo */
  --teal-900:       #1D3940;
  --teal-800:       #2B535D;   /* petróleo da marca */
  --teal-700:       #35636E;
  --teal-100:       #E4EEEC;
  --green-500:      #15E384;   /* verde da marca */
  --green-600:      #0FC271;
  --green-100:      #DFFBEC;
  --paper:          #FBFCFB;   /* fundo base — quase branco, tom verde-frio */
  --paper-alt:      #F2F6F4;
  --line:           #DCE6E3;
  --muted:          #5B6E70;
  --white:          #FFFFFF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(23,36,42,.06);
  --shadow-md: 0 12px 32px rgba(23,36,42,.10);
  --shadow-lg: 0 24px 64px rgba(23,36,42,.16);

  --maxw: 1240px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

:focus-visible{ outline:3px solid var(--green-500); outline-offset:2px; border-radius:4px; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }

h1,h2,h3,h4{ font-family:var(--font-display); color:var(--teal-900); line-height:1.12; letter-spacing:-0.01em; }
h1{ font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight:600; }
h2{ font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight:600; }
h3{ font-size: 1.3rem; font-weight:600; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.75rem; letter-spacing:.08em; text-transform:uppercase;
  color: var(--teal-700); background:var(--teal-100); border:1px solid var(--line);
  padding:6px 12px; border-radius:999px; margin-bottom:16px;
}
.eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--green-500); }
.lede{ font-size:1.1rem; color:var(--muted); max-width:56ch; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:600; font-size:.95rem; padding:14px 26px; border-radius:999px;
  border:1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background:var(--green-500); color:var(--teal-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background:var(--green-600); box-shadow: var(--shadow-md); }
.btn-dark{ background:var(--teal-800); color:var(--white); }
.btn-dark:hover{ background:var(--teal-900); }
.btn-ghost{ background:transparent; border-color: var(--line); color:var(--teal-800); }
.btn-ghost:hover{ border-color: var(--teal-800); }
.btn-sm{ padding:10px 18px; font-size:.85rem; }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background: rgba(251,252,251,.86); backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; gap:24px; }
.brand img{ height:30px; }
.nav-main{ display:flex; align-items:center; gap:28px; }
.nav-main > li{ position:relative; }
.nav-main a.nav-link{ font-size:.92rem; font-weight:500; color:var(--teal-900); padding:8px 0; display:flex; align-items:center; gap:4px; }
.nav-main a.nav-link:hover{ color:var(--green-600); }
.dropdown{
  position:absolute; top:100%; left:50%; transform:translateX(-50%);
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
  box-shadow:var(--shadow-md); min-width:220px; padding:8px; opacity:0; visibility:hidden;
  transform:translateX(-50%) translateY(6px); transition:.16s ease;
}
.has-dropdown:hover .dropdown{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.dropdown a{ display:block; padding:10px 12px; border-radius:8px; font-size:.9rem; color:var(--ink); }
.dropdown a:hover{ background:var(--paper-alt); color:var(--green-600); }
.header-actions{ display:flex; align-items:center; gap:10px; }
.header-actions .divider{ width:1px; height:22px; background:var(--line); margin:0 4px; }
.icon-link{ display:flex; align-items:center; gap:6px; font-size:.85rem; font-weight:600; color:var(--teal-800); }
.burger{ display:none; }

@media (max-width: 980px){
  .nav-main, .header-actions .icon-link span, .header-actions .divider{ display:none; }
  .burger{ display:block; background:none; border:none; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background: radial-gradient(1100px 500px at 78% -10%, var(--teal-100), transparent 60%), var(--paper);
  padding: 64px 0 40px;
}
.hero-grid{ display:grid; grid-template-columns: 1.05fr .95fr; gap:48px; align-items:center; }
.hero-badges{ display:flex; gap:18px; margin-top:28px; flex-wrap:wrap; }
.hero-badges .badge{ display:flex; align-items:center; gap:8px; font-size:.82rem; color:var(--muted); }
.hero-badges .badge svg{ flex-shrink:0; }
.hero-ctas{ display:flex; gap:12px; margin-top:32px; flex-wrap:wrap; }

/* Signature element: sealed-signature card */
.seal-card{
  position:relative; background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow: var(--shadow-lg); padding:28px; max-width:420px; margin-left:auto;
}
.seal-card-top{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:22px; }
.seal-card-top .id{ font-family:var(--font-mono); font-size:.72rem; color:var(--muted); letter-spacing:.03em; }
.seal-chip{ width:38px; height:30px; border-radius:6px; background:linear-gradient(135deg, var(--green-500), var(--teal-700)); }
.seal-card h4{ font-family:var(--font-display); font-size:1.05rem; color:var(--teal-900); margin-bottom:4px; }
.seal-card .sub{ font-size:.82rem; color:var(--muted); margin-bottom:20px; }
.hash-line{ font-family:var(--font-mono); font-size:.7rem; color:var(--teal-700); background:var(--paper-alt); border-radius:6px; padding:8px 10px; overflow:hidden; white-space:nowrap; margin-bottom:8px; }
.hash-line span{ display:inline-block; animation: scrollhash 14s linear infinite; }
@keyframes scrollhash{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
.seal-stamp{
  position:absolute; right:-18px; bottom:-18px; width:96px; height:96px; border-radius:50%;
  background:var(--white); border:2px solid var(--green-500); display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-md); animation: stampin .6s cubic-bezier(.2,1.4,.4,1) .4s both;
}
@keyframes stampin{ from{ transform:scale(0) rotate(-25deg); opacity:0;} to{ transform:scale(1) rotate(-12deg); opacity:1;} }
.seal-stamp svg{ width:44px; height:44px; }

/* ---------- Trust strip ---------- */
.trust-strip{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--white); }
.trust-strip .wrap{ display:flex; justify-content:space-between; padding:28px 24px; flex-wrap:wrap; gap:24px; }
.trust-item{ text-align:left; }
.trust-item .num{ font-family:var(--font-display); font-size:1.7rem; color:var(--teal-800); font-weight:600; }
.trust-item .lbl{ font-size:.8rem; color:var(--muted); }

/* ---------- Section shell ---------- */
.section{ padding: 88px 0; }
.section-alt{ background:var(--paper-alt); }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Product cards (Central de compras) ---------- */
.product-tabs{ display:flex; gap:10px; margin-bottom:32px; }
.tab-btn{
  padding:12px 22px; border-radius:999px; border:1px solid var(--line); background:var(--white);
  font-weight:600; font-size:.9rem; color:var(--muted);
}
.tab-btn.is-active{ background:var(--teal-900); border-color:var(--teal-900); color:var(--white); }

.product-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.product-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:28px; display:flex; flex-direction:column; gap:16px; transition:.18s ease;
}
.product-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); border-color:var(--teal-700); }
.product-card .kind{ font-family:var(--font-mono); font-size:.72rem; color:var(--green-600); letter-spacing:.06em; text-transform:uppercase; }
.product-card ul{ display:flex; flex-direction:column; gap:8px; font-size:.88rem; color:var(--muted); }
.product-card ul li{ display:flex; gap:8px; align-items:flex-start; }
.product-card ul li svg{ flex-shrink:0; margin-top:3px; }
.product-card .foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; padding-top:8px; border-top:1px dashed var(--line); flex-wrap:wrap; gap:10px; }
.product-card .price-note{ font-size:.78rem; color:var(--muted); }

/* ---------- Steps (how it works) ---------- */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; counter-reset:step; }
.step{ position:relative; padding-top:8px; }
.step::before{
  counter-increment:step; content: counter(step, decimal-leading-zero);
  font-family:var(--font-mono); font-size:.78rem; color:var(--green-600); display:block; margin-bottom:14px;
}
.step h4{ font-size:1.05rem; margin-bottom:8px; }
.step p{ font-size:.9rem; color:var(--muted); }
.steps-line{ grid-column:1/-1; height:1px; background:var(--line); margin-top:-12px; margin-bottom:24px; }

/* ---------- Split feature (Sou Contador / Área Parceiro) ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.split.reverse .split-media{ order:2; }
.feature-list{ display:flex; flex-direction:column; gap:18px; margin:28px 0 32px; }
.feature-list li{ display:flex; gap:14px; align-items:flex-start; }
.feature-icon{ flex-shrink:0; width:38px; height:38px; border-radius:10px; background:var(--teal-100); display:flex; align-items:center; justify-content:center; }
.feature-list h5{ font-size:.98rem; font-weight:600; color:var(--teal-900); margin-bottom:2px; }
.feature-list p{ font-size:.86rem; color:var(--muted); }

.portal-mock{
  background:var(--teal-900); border-radius:var(--radius-lg); padding:22px; box-shadow:var(--shadow-lg);
  color:var(--white); position:relative; overflow:hidden;
}
.portal-mock::before{ content:''; position:absolute; inset:0; background:radial-gradient(400px 200px at 90% 0%, rgba(21,227,132,.18), transparent 70%); }
.portal-topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; position:relative; }
.portal-topbar .dots{ display:flex; gap:6px; }
.portal-topbar .dots span{ width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.25); }
.portal-row{
  display:flex; justify-content:space-between; align-items:center; background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1); border-radius:10px; padding:14px 16px; margin-bottom:10px; position:relative;
  font-size:.85rem;
}
.portal-row .status{ font-family:var(--font-mono); font-size:.7rem; padding:4px 10px; border-radius:999px; background:rgba(21,227,132,.16); color:var(--green-500); }

/* ---------- Solutions grid ---------- */
.solutions-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.solution-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md); padding:24px; transition:.18s ease; }
.solution-card:hover{ border-color:var(--green-500); transform:translateY(-3px); box-shadow:var(--shadow-sm); }
.solution-card .ic{ width:42px; height:42px; border-radius:10px; background:var(--green-100); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.solution-card h4{ font-size:1rem; margin-bottom:6px; }
.solution-card p{ font-size:.84rem; color:var(--muted); margin-bottom:14px; }
.solution-card a{ font-size:.82rem; font-weight:600; color:var(--teal-800); display:inline-flex; align-items:center; gap:4px; }

/* ---------- Testimonials ---------- */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.testi-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); padding:26px; display:flex; flex-direction:column; gap:16px; }
.testi-card .quote{ font-size:.92rem; color:var(--ink); }
.testi-who{ display:flex; align-items:center; gap:12px; margin-top:auto; }
.avatar{ width:38px; height:38px; border-radius:50%; background:var(--teal-100); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:600; color:var(--teal-800); font-size:.85rem; }
.testi-who .name{ font-size:.86rem; font-weight:600; }
.testi-who .role{ font-size:.76rem; color:var(--muted); }

/* ---------- FAQ ---------- */
.faq-list{ display:flex; flex-direction:column; gap:12px; max-width:820px; }
.faq-item{ border:1px solid var(--line); border-radius:var(--radius-md); background:var(--white); overflow:hidden; }
.faq-q{ width:100%; display:flex; justify-content:space-between; align-items:center; padding:18px 22px; background:none; border:none; text-align:left; font-family:var(--font-display); font-size:.98rem; color:var(--teal-900); }
.faq-q svg{ transition:.2s ease; flex-shrink:0; }
.faq-item.open .faq-q svg{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-a-inner{ padding:0 22px 20px; font-size:.9rem; color:var(--muted); }
.faq-item.open .faq-a{ max-height:300px; }

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(120deg, var(--teal-900), var(--teal-800));
  border-radius:var(--radius-lg); padding:56px; display:flex; justify-content:space-between; align-items:center; gap:32px;
  color:var(--white); position:relative; overflow:hidden;
}
.cta-band::after{ content:''; position:absolute; inset:0; background:radial-gradient(500px 260px at 90% 0%, rgba(21,227,132,.25), transparent 70%); }
.cta-band h3{ color:var(--white); font-size:1.7rem; position:relative; }
.cta-band p{ color:rgba(255,255,255,.72); margin-top:8px; position:relative; }
.cta-band .actions{ position:relative; display:flex; gap:12px; flex-shrink:0; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--teal-900); color:rgba(255,255,255,.78); padding:64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap:32px; margin-bottom:48px; }
.footer-grid img{ height:26px; margin-bottom:16px; }
.footer-grid p{ font-size:.85rem; color:rgba(255,255,255,.55); max-width:32ch; }
.footer-col h5{ font-family:var(--font-display); color:var(--white); font-size:.85rem; margin-bottom:16px; letter-spacing:.02em; }
.footer-col li{ margin-bottom:10px; }
.footer-col a{ font-size:.86rem; color:rgba(255,255,255,.62); }
.footer-col a:hover{ color:var(--green-500); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding-top:24px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; font-size:.78rem; color:rgba(255,255,255,.5); }
.socials{ display:flex; gap:12px; }
.socials a{ width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; transition:.15s ease; }
.socials a:hover{ background:var(--brand-color, var(--green-500)); transform:translateY(-2px); }
.socials a svg{ width:17px; height:17px; }

/* ---------- Página interna: hero secundário ---------- */
.page-hero{ background: radial-gradient(900px 420px at 85% -10%, var(--teal-100), transparent 60%), var(--paper); padding:52px 0 40px; border-bottom:1px solid var(--line); }
.breadcrumb{ font-size:.8rem; color:var(--muted); margin-bottom:14px; }
.breadcrumb a{ color:var(--teal-800); font-weight:600; }
.page-hero h1{ max-width:20ch; }
.page-hero .lede{ margin-top:14px; }

/* ---------- WhatsApp float ---------- */
.wa-float{
  position:fixed; right:22px; bottom:22px; z-index:200; width:58px; height:58px; border-radius:50%;
  background:var(--green-500); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-lg);
  transition:.15s ease;
}
.wa-float:hover{ transform:scale(1.06); }

/* ---------- Assistente Impulse (chat widget) ---------- */
.bot-launcher{
  position:fixed; right:22px; bottom:92px; z-index:200; width:58px; height:58px; border-radius:50%;
  background:var(--teal-900); border:none; display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-lg); transition:.15s ease;
}
.bot-launcher:hover{ transform:scale(1.06); }
.bot-launcher .dot{ position:absolute; top:6px; right:6px; width:10px; height:10px; border-radius:50%; background:var(--green-500); border:2px solid var(--teal-900); }

.bot-panel{
  position:fixed; right:22px; bottom:162px; z-index:201; width:360px; max-width:calc(100vw - 32px);
  height:480px; max-height:calc(100vh - 200px); background:var(--white); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg); border:1px solid var(--line); display:flex; flex-direction:column; overflow:hidden;
  opacity:0; transform:translateY(16px) scale(.98); pointer-events:none; transition:.18s ease;
}
.bot-panel.is-open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }

.bot-head{ background:linear-gradient(120deg, var(--teal-900), var(--teal-800)); color:#fff; padding:16px 18px; display:flex; align-items:center; gap:10px; }
.bot-head .av{ width:34px; height:34px; border-radius:50%; background:var(--green-500); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.bot-head .info h5{ font-family:var(--font-display); font-size:.92rem; color:#fff; }
.bot-head .info span{ font-size:.72rem; color:rgba(255,255,255,.65); display:flex; align-items:center; gap:5px; }
.bot-head .info span::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--green-500); }
.bot-close{ margin-left:auto; background:none; border:none; color:rgba(255,255,255,.7); }

.bot-body{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; background:var(--paper-alt); }
.bot-msg{ max-width:84%; font-size:.85rem; padding:10px 13px; border-radius:14px; line-height:1.45; }
.bot-msg.bot{ background:#fff; border:1px solid var(--line); color:var(--ink); border-bottom-left-radius:4px; align-self:flex-start; }
.bot-msg.user{ background:var(--teal-800); color:#fff; border-bottom-right-radius:4px; align-self:flex-end; }
.bot-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.bot-chip{ font-size:.76rem; padding:7px 12px; border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--teal-800); font-weight:600; }
.bot-chip:hover{ border-color:var(--green-500); }

.bot-input{ display:flex; align-items:center; gap:8px; padding:12px; border-top:1px solid var(--line); background:#fff; }
.bot-input input{ flex:1; border:1px solid var(--line); border-radius:999px; padding:10px 16px; font-size:.85rem; font-family:inherit; }
.bot-input input:focus{ outline:none; border-color:var(--green-500); }
.bot-input button{ width:38px; height:38px; border-radius:50%; background:var(--green-500); border:none; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

@media (max-width: 480px){
  .bot-panel{ right:16px; bottom:150px; }
  .bot-launcher{ right:16px; bottom:86px; }
  .wa-float{ right:16px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid, .split{ grid-template-columns:1fr; }
  .split .split-media{ order:-1 !important; }
  .product-grid{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr 1fr; }
  .solutions-grid{ grid-template-columns:1fr 1fr; }
  .testi-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .cta-band{ flex-direction:column; text-align:center; }
  .trust-strip .wrap{ justify-content:center; text-align:center; }
}
@media (max-width: 620px){
  .steps, .solutions-grid, .footer-grid{ grid-template-columns:1fr; }
  .section{ padding:64px 0; }
  .cta-band{ padding:36px 24px; }
}

/* Utility */
.reveal{ opacity:0; transform:translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- Value / Mission grid (Sobre nós) ---------- */
.value-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.value-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); padding:28px; }
.value-card .ic{ width:42px; height:42px; border-radius:10px; background:var(--green-100); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.value-card h4{ margin-bottom:8px; }
.value-card p{ font-size:.88rem; color:var(--muted); }
.values-tags{ display:flex; flex-wrap:wrap; gap:10px; }
.values-tags span{ font-size:.82rem; background:var(--teal-100); color:var(--teal-800); padding:8px 16px; border-radius:999px; font-weight:600; }

/* ---------- Simple form ---------- */
.simple-form{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.simple-form .full{ grid-column:1/-1; }
.simple-form label{ display:block; font-size:.82rem; font-weight:600; color:var(--teal-900); margin-bottom:6px; }
.simple-form input, .simple-form select{ width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:10px; font-size:.9rem; font-family:inherit; background:#fff; }
.simple-form input:focus, .simple-form select:focus{ outline:none; border-color:var(--green-500); box-shadow:0 0 0 3px rgba(21,227,132,.16); }

@media (max-width: 620px){
  .value-grid, .simple-form{ grid-template-columns:1fr; }
}
