/* ─── Site Velen — estilos ──────────────────────────────────────
   Usa os tokens da marca (tokens.css). Tema claro padrão, escuro via
   [data-theme="dark"]. Mobile-first. */

body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 14px;
}

/* ─── Botões ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 12px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(13,71,161,.6);
}
.btn-primary:hover { background: var(--primary-strong); box-shadow: 0 10px 26px -8px rgba(13,71,161,.7); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.wa-ico { font-size: 1.05em; }

/* ─── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-icon { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; flex: none; display: grid; place-items: center; }
.brand-icon img { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.12rem; font-weight: 800; }
.brand-text small { font-size: .68rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; gap: 26px; }
.nav a { font-weight: 500; color: var(--muted); font-size: .95rem; transition: color .15s; }
.nav a:hover { color: var(--text); }
/* CTAs que só aparecem no menu mobile (no desktop ficam como botões) */
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.1rem;
  display: grid; place-items: center; transition: border-color .15s, color .15s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ─── Hero ────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 76px 0 84px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(55% 60% at 0% 30%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 20px; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 36ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-note { font-size: .9rem; color: var(--muted); }

/* Mockup de celular */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 320px; max-width: 100%; border-radius: 30px; padding: 14px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(13,71,161,.45), 0 8px 24px -12px rgba(0,0,0,.2);
}
.phone-top { display: flex; align-items: center; gap: 11px; padding: 6px 8px 14px; border-bottom: 1px solid var(--border); }
.phone-avatar { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; flex: none; }
.phone-avatar img { width: 100%; height: 100%; }
.phone-id strong { display: block; font-size: .98rem; }
.phone-id small { color: var(--green); font-size: .78rem; }
.phone-chat { display: flex; flex-direction: column; gap: 12px; padding: 18px 6px 8px; min-height: 230px; }
.bubble {
  max-width: 80%; padding: 11px 14px; border-radius: 16px; font-size: .92rem; position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.bubble i { display: block; font-style: normal; font-size: .68rem; opacity: .6; margin-top: 5px; text-align: right; }
.bubble.in { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.bubble.out i { opacity: .8; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite both; }
.bubble.typing span:nth-child(2) { animation-delay: .2s; }
.bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ─── Seções genéricas ───────────────────────────────────────── */
.section { padding: 78px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Dor */
.pain { text-align: center; padding: 8px; }
.pain-ico { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.pain h3 { font-size: 1.15rem; margin-bottom: 8px; }
.pain p { color: var(--muted); }

/* Cards de feature */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; transition: transform .15s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(13,71,161,.4); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.feature-ico { font-size: 1.8rem; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 12%, transparent); margin-bottom: 16px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* Passos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; box-shadow: 0 8px 20px -8px rgba(124,58,237,.6); }
.step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.step p { color: var(--muted); }
.steps-cta { text-align: center; margin-top: 38px; }

/* Resultados */
.result { text-align: center; padding: 14px; }
.result-big { display: block; font-size: 1.35rem; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.result p { color: var(--muted); }

/* Pilares */
.pillar { padding: 24px 22px; border-left: 3px solid transparent; border-image: var(--gradient) 1; background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pillar h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--primary); }
.pillar p { color: var(--muted); font-size: .96rem; }

/* ─── CTA final ──────────────────────────────────────────────── */
.cta-final { padding: 84px 0; background: var(--gradient); color: #fff; text-align: center; }
.cta-inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.cta-inner p { font-size: 1.12rem; opacity: .92; margin-bottom: 30px; max-width: 46ch; margin-left: auto; margin-right: auto; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 44px 0 26px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-weight: 800; }
.footer-brand small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--muted); font-size: .94rem; transition: color .15s; }
.footer-nav a:hover { color: var(--primary); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 20px; color: var(--muted); font-size: .86rem; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--primary); }

/* ─── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }   /* esconde o mockup de chat no mobile/tablet */
  .lead { max-width: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav, .header-actions .btn-wa, .header-actions .btn-area { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--border); padding: 8px 22px 18px;
  }
  .nav.open a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  /* No menu mobile, os CTAs aparecem e ganham destaque */
  .nav.open .nav-cta { display: block; font-weight: 600; color: var(--primary); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
