/* ─────────────────────────────────────────────────────────────
   CONVEXA — design system
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #10131b;
  --bg-2: #141824;
  --surface: #171b27;
  --surface-2: #1c2130;
  --line: rgba(165, 169, 188, 0.14);
  --line-strong: rgba(165, 169, 188, 0.26);
  --purple: #8b7cff;
  --purple-strong: #a497ff;
  --purple-deep: #5b4fd6;
  --purple-soft: rgba(139, 124, 255, 0.12);
  --white: #ffffff;
  --muted: #a5a9bc;
  --muted-2: #7d8196;
  --success: #4ade80;
  --danger: #ff7a8a;

  --font-display: var(--font-sora), "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: var(--font-inter), "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--purple); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--purple-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--purple); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ── Layout ─────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.section { padding-block: 88px; position: relative; }
@media (min-width: 1024px) { .section { padding-block: 128px; } }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
@media (min-width: 1024px) { .section-head { margin-bottom: 64px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--purple-strong);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 10px;
  border: 1.5px solid currentColor; border-bottom: 0;
  border-radius: 22px 22px 0 0; /* o arco convexo da marca */
}

.h2 { font-size: clamp(30px, 4.6vw, 48px); }
.h2 em { font-style: normal; color: var(--purple); }
.lead { margin-top: 18px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); max-width: 620px; }
.center .lead { margin-inline: auto; }

/* Divisória em arco entre secções */
.arc-divider {
  height: 1px; max-width: var(--container); margin-inline: auto;
  background: radial-gradient(50% 100% at 50% 0%, var(--line-strong), transparent);
}

/* ── Botões ─────────────────────────────────────────────── */

.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1;
  background: var(--btn-bg);
  cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); flex-shrink: 0; }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  --btn-bg: var(--purple);
  color: #0d0f16;
  box-shadow: 0 0 0 0 rgba(139, 124, 255, 0), 0 10px 30px -10px rgba(139, 124, 255, 0.55);
}
.btn-primary:hover {
  --btn-bg: var(--purple-strong);
  box-shadow: 0 0 0 6px rgba(139, 124, 255, 0.14), 0 14px 36px -10px rgba(139, 124, 255, 0.7);
}
.btn-ghost { border-color: var(--line-strong); color: var(--white); }
.btn-ghost:hover { border-color: var(--purple); background: var(--purple-soft); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Header ─────────────────────────────────────────────── */

.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(16, 19, 27, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 30px; width: auto; }

.nav { display: none; }
.nav a { font-size: 15px; color: var(--muted); transition: color 0.2s; padding: 8px 2px; }
.nav a:hover { color: var(--white); }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid var(--line-strong); cursor: pointer;
}
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 12px 20px 24px;
  display: grid; gap: 4px;
}
.mobile-menu a:not(.btn) { padding: 14px 4px; font-size: 18px; font-family: var(--font-display); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; }

@media (min-width: 960px) {
  .nav { display: flex; gap: 28px; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ── Hero ───────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding-block: 56px 88px; }
@media (min-width: 1024px) { .hero { padding-block: 96px 136px; } }

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg .glow {
  position: absolute; left: 50%; top: -40%;
  width: 1400px; height: 1000px; transform: translateX(-30%);
  background: radial-gradient(closest-side, rgba(139, 124, 255, 0.22), rgba(139, 124, 255, 0.05) 55%, transparent 75%);
}
.hero-bg .arcs { position: absolute; right: -320px; top: -180px; width: 1100px; height: 1100px; opacity: 0.55; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 10%, transparent 70%);
  opacity: 0.35;
}

.hero-inner { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.12fr 0.88fr; gap: 40px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(23, 27, 39, 0.7);
  font-size: 13px; color: var(--muted); margin-bottom: 28px;
}
.hero-badge .dot {
  display: inline-flex; align-items: center; justify-content: center;
  height: 22px; padding: 0 9px; border-radius: 999px;
  background: var(--purple-soft); color: var(--purple-strong); font-weight: 600; font-size: 12px;
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero h1 .accent {
  background: linear-gradient(100deg, #ffffff 0%, var(--purple-strong) 45%, var(--purple) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.8vw, 19px); color: var(--muted); max-width: 560px; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .hero-ctas .btn { width: 100%; } }

.hero-trust { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hero-trust svg { width: 16px; height: 16px; color: var(--purple); }

/* Mockup */
.mockup { position: relative; padding: 0 0 40px 0; }
@media (min-width: 640px) { .mockup { padding: 0 40px 40px 0; } }

.browser {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #0c0f16; border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 90px -20px rgba(139, 124, 255, 0.35);
  transform: perspective(1600px) rotateY(-6deg) rotateX(3deg);
  transform-origin: left center;
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #131724; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2b3042; }
.browser-bar .url { margin-left: 10px; flex: 1; height: 22px; border-radius: 6px; background: #0c0f16; font-size: 11px; color: var(--muted-2); display: flex; align-items: center; padding: 0 10px; font-style: normal; }
.browser-body { padding: 20px 22px 26px; background: radial-gradient(120% 80% at 100% 0%, rgba(139, 124, 255, 0.22), transparent 60%), #0e1119; }
.mk-nav { display: flex; justify-content: space-between; align-items: center; }
.mk-logo { width: 64px; height: 9px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); }
.mk-links { display: flex; gap: 8px; }
.mk-links span { width: 26px; height: 6px; border-radius: 3px; background: rgba(165, 169, 188, 0.35); }
.mk-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 28px; align-items: center; }
.mk-tag { font-size: 9px; font-weight: 600; letter-spacing: 0.12em; color: var(--purple-strong); text-transform: uppercase; }
.mk-title { margin-top: 8px; font-family: var(--font-display); font-size: clamp(15px, 2vw, 21px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.mk-text { margin-top: 10px; display: grid; gap: 5px; }
.mk-text span { height: 5px; border-radius: 3px; background: rgba(165, 169, 188, 0.28); }
.mk-text span:nth-child(2) { width: 82%; }
.mk-btns { display: flex; gap: 6px; margin-top: 14px; }
.mk-btns span { height: 20px; width: 72px; border-radius: 999px; background: var(--purple); }
.mk-btns span + span { width: 56px; background: transparent; border: 1px solid var(--line-strong); }
.mk-visual {
  aspect-ratio: 1; border-radius: 14px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #2a2360, #151a2a 70%);
  border: 1px solid var(--line);
}
.mk-visual::before {
  content: ""; position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: 38%;
  border-radius: 50%; border: 1.5px solid rgba(164, 151, 255, 0.55);
  box-shadow: 0 0 0 18px rgba(139, 124, 255, 0.06), 0 0 0 40px rgba(139, 124, 255, 0.04);
}
.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.mk-cards span { height: 46px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }

.phone {
  position: absolute; right: 0; bottom: 0; width: 34%; min-width: 132px; max-width: 190px;
  border-radius: 26px; padding: 7px; background: #07090e;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85), 0 0 50px -10px rgba(139, 124, 255, 0.4);
}
.phone-screen {
  border-radius: 20px; overflow: hidden; aspect-ratio: 9 / 18.5;
  background: radial-gradient(120% 60% at 50% 0%, rgba(139, 124, 255, 0.3), transparent 60%), #0e1119;
  padding: 26px 12px 12px; display: flex; flex-direction: column; gap: 9px; position: relative;
}
.phone-screen::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 34%; height: 9px; border-radius: 9px; background: #07090e; }
.ph-title { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.ph-line { height: 4px; border-radius: 3px; background: rgba(165, 169, 188, 0.3); }
.ph-line.s { width: 70%; }
.ph-btn { margin-top: 4px; height: 22px; border-radius: 999px; background: var(--purple); font-size: 8.5px; color: #0d0f16; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ph-card { flex: 1; border-radius: 12px; background: linear-gradient(160deg, #2a2360, #141826); border: 1px solid var(--line); }
.ph-wa { align-self: flex-end; width: 26px; height: 26px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; }
.ph-wa svg { width: 14px; height: 14px; color: #fff; }
.mockup-caption { position: absolute; left: 0; bottom: 4px; font-size: 12px; color: var(--muted-2); }

/* ── Cards genéricos ────────────────────────────────────── */

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(28, 33, 48, 0.75), rgba(23, 27, 39, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s;
}
.card:hover { border-color: rgba(139, 124, 255, 0.4); }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--purple-soft); color: var(--purple-strong);
  border: 1px solid rgba(139, 124, 255, 0.22);
}
.icon-badge svg { width: 22px; height: 22px; }
.card h3 { font-size: 20px; margin-top: 22px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

.grid-3 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.grid-4 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ── Problema ───────────────────────────────────────────── */

.problem .card .num {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-display); font-size: 14px; color: var(--muted-2); font-variant-numeric: tabular-nums;
}
.problem-close {
  margin-top: 48px; display: flex; gap: 18px; align-items: center;
  padding: 26px 28px; border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(139, 124, 255, 0.14), rgba(139, 124, 255, 0.02));
  border: 1px solid rgba(139, 124, 255, 0.25);
}
.problem-close p { font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.35; letter-spacing: -0.01em; }
.problem-close svg { width: 28px; height: 28px; color: var(--purple); flex-shrink: 0; }

/* ── Serviços ───────────────────────────────────────────── */

.services-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.service { padding: 36px 30px; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 1024px) { .service { padding: 44px 40px; } }
.service.featured {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(139, 124, 255, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(28, 33, 48, 0.85), rgba(23, 27, 39, 0.7));
  border-color: rgba(139, 124, 255, 0.3);
}
.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.service-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
.service h3 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 26px; }
.service .desc { color: var(--muted); margin-top: 12px; }
.checklist { margin-top: 28px; display: grid; gap: 14px; flex: 1; align-content: start; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checklist svg { width: 20px; height: 20px; color: var(--purple); flex-shrink: 0; margin-top: 2px; }
.service .btn { margin-top: 36px; align-self: flex-start; }
.services-note { margin-top: 28px; text-align: center; color: var(--muted-2); font-size: 14px; }

/* ── Benefícios ─────────────────────────────────────────── */

.benefits { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.benefit { padding: 30px 26px; }
.benefit h3 { font-size: 18px; }

/* ── Processo ───────────────────────────────────────────── */

.steps { display: grid; gap: 16px; position: relative; counter-reset: step; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps::before {
    content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--purple), transparent);
    opacity: 0.45;
  }
}
.step { position: relative; padding: 28px 24px; text-align: left; }
.step-num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--purple);
  font-family: var(--font-display); font-weight: 600; color: var(--purple-strong); font-size: 15px;
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(139, 124, 255, 0.35);
}
.step h3 { font-size: 20px; margin-top: 22px; }
.step p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.steps-cta { margin-top: 48px; display: flex; justify-content: center; }

/* ── Portfólio ──────────────────────────────────────────── */

.portfolio-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.project { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s, transform 0.4s var(--ease); }
.project:hover { border-color: rgba(139, 124, 255, 0.4); transform: translateY(-4px); }
.project-visual { aspect-ratio: 16 / 10; position: relative; overflow: hidden; padding: 22px 22px 0; }
.project-visual .frame {
  height: 100%; border-radius: 12px 12px 0 0; overflow: hidden;
  background: #0b0d13; border: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 0;
  transition: transform 0.6s var(--ease);
}
.project:hover .frame { transform: translateY(-6px); }
.frame-bar { height: 22px; display: flex; gap: 5px; align-items: center; padding: 0 10px; background: rgba(255, 255, 255, 0.04); }
.frame-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.frame-body { padding: 16px; height: calc(100% - 22px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: center; }
.frame-title { font-family: var(--font-display); font-size: clamp(14px, 1.8vw, 19px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.frame-lines { display: grid; gap: 5px; margin-top: 10px; }
.frame-lines span { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.frame-lines span:last-child { width: 70%; }
.frame-btn { margin-top: 12px; width: 64px; height: 18px; border-radius: 999px; }
.frame-img { height: 82%; border-radius: 10px; }
.project-meta { padding: 22px 24px 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.project-meta h3 { font-size: 18px; }
.project-meta p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.concept-badge {
  flex-shrink: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--purple-strong); background: var(--purple-soft); border: 1px solid rgba(139, 124, 255, 0.25);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.project-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--purple-strong); }
.project-link svg { width: 15px; height: 15px; }
.project-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.portfolio-note { margin-top: 28px; display: flex; gap: 10px; align-items: flex-start; justify-content: center; color: var(--muted-2); font-size: 14px; text-align: left; }
.portfolio-note svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }

/* ── Métricas ───────────────────────────────────────────── */

.metrics-wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .metrics-wrap { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } }
.metric-list { margin-top: 32px; display: grid; gap: 14px; }
.metric-list li { display: flex; gap: 14px; align-items: center; color: var(--white); font-size: 15.5px; }
.metric-list .icon-badge { width: 40px; height: 40px; border-radius: 12px; }
.metric-list .icon-badge svg { width: 18px; height: 18px; }

.dashboard {
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #161a26, #12151f);
  padding: 22px; position: relative;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8), 0 0 80px -40px rgba(139, 124, 255, 0.5);
}
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-head strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.illustrative {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #ffd27a; background: rgba(255, 210, 122, 0.1); border: 1px solid rgba(255, 210, 122, 0.3);
  padding: 5px 10px; border-radius: 999px;
}
.illustrative svg { width: 13px; height: 13px; }
.kpis { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { display: flex; flex-direction: column; justify-content: space-between; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.kpi span { font-size: 12px; color: var(--muted); display: block; line-height: 1.3; }
.kpi strong { display: block; margin-top: 8px; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12px; color: var(--success); }
.chart-row { margin-top: 12px; display: grid; gap: 10px; }
@media (min-width: 640px) { .chart-row { grid-template-columns: 1.6fr 1fr; } }
.chart-card { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.chart-card h4 { font-family: var(--font-body); font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.chart-card svg { width: 100%; height: auto; margin-top: 12px; }
.funnel { margin-top: 14px; display: grid; gap: 10px; }
.funnel div { font-size: 12px; color: var(--muted); }
.funnel .bar { margin-top: 5px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.funnel .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--purple-deep), var(--purple)); }
.dash-foot { margin-top: 14px; font-size: 12px; color: var(--muted-2); }
.events { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.events code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  padding: 5px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--purple-strong);
}

/* ── FAQ ────────────────────────────────────────────────── */

.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 40px); } }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(23, 27, 39, 0.6); transition: border-color 0.25s, background 0.25s; }
.faq-item[open] { border-color: rgba(139, 124, 255, 0.35); background: rgba(28, 33, 48, 0.75); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 22px; font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.faq-item summary .pm svg { width: 15px; height: 15px; }
.faq-item[open] summary .pm { transform: rotate(45deg); background: var(--purple); border-color: var(--purple); color: var(--bg); }
.faq-answer { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; max-width: 640px; }
.faq-answer a { color: var(--purple-strong); text-decoration: underline; text-underline-offset: 3px; }

/* ── CTA final ──────────────────────────────────────────── */

.final-cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 32px; padding: 72px 24px;
  border: 1px solid rgba(139, 124, 255, 0.3);
  background:
    radial-gradient(70% 90% at 50% 120%, rgba(139, 124, 255, 0.38), transparent 70%),
    linear-gradient(180deg, #171b29, #121520);
}
@media (min-width: 768px) { .final-cta { padding: 104px 48px; } }
.final-cta .arc {
  position: absolute; left: 50%; bottom: -78%; width: 150%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%;
  border: 1px solid rgba(164, 151, 255, 0.35);
  box-shadow: 0 0 0 60px rgba(139, 124, 255, 0.03), 0 0 0 130px rgba(139, 124, 255, 0.025);
  pointer-events: none;
}
.final-cta h2 { position: relative; font-size: clamp(30px, 5vw, 54px); max-width: 860px; margin-inline: auto; letter-spacing: -0.03em; }
.final-cta p.sub { position: relative; margin: 20px auto 0; color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); max-width: 560px; }
.final-cta .ctas { position: relative; margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.reassure { position: relative; margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.reassure li { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.reassure svg { width: 16px; height: 16px; color: var(--purple); }

/* ── Formulário ─────────────────────────────────────────── */

.form-wrap { display: grid; gap: 40px; }
@media (min-width: 1024px) { .form-wrap { grid-template-columns: 0.75fr 1.25fr; gap: 64px; align-items: start; } }
.form-aside .aside-list { margin-top: 32px; display: grid; gap: 20px; }
.form-aside .aside-list li { display: flex; gap: 14px; }
.form-aside .aside-list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.form-aside .aside-list span { color: var(--muted); font-size: 14.5px; }
.form-aside .aside-list .n {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--purple-strong); border: 1px solid rgba(139, 124, 255, 0.4);
}
.form-aside .alt { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.form-aside .alt .btn { margin-top: 14px; }

.form-card { padding: 28px 22px; }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.form-section-label { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; }
.form-section-label:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field legend { font-size: 14px; font-weight: 500; color: var(--white); padding: 0; }
.field .req { color: var(--purple-strong); margin-left: 2px; }
.field .opt { color: var(--muted-2); font-weight: 400; font-size: 13px; margin-left: 4px; }

.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(16, 19, 27, 0.7); color: var(--white);
  font-size: 16px; /* evita zoom no iOS */
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(165, 169, 188, 0.4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.18); background: rgba(16, 19, 27, 0.95); }
.textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A5A9BC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select option { background: var(--surface); color: var(--white); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; color: var(--danger); }
.field-error svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.hint { font-size: 13px; color: var(--muted-2); }

.phone-row { display: grid; grid-template-columns: 132px 1fr; gap: 8px; }
.phone-row .select { padding-right: 34px; background-position: right 12px center; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 420px) { .choice-group { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 50px; padding: 10px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(16, 19, 27, 0.7);
  font-size: 14.5px; font-weight: 500; transition: all 0.2s;
}
.choice input:hover + span { border-color: rgba(165, 169, 188, 0.45); }
.choice input:checked + span { border-color: var(--purple); background: var(--purple-soft); color: var(--white); box-shadow: inset 0 0 0 1px var(--purple); }
.choice input:focus-visible + span { outline: 2px solid var(--purple-strong); outline-offset: 2px; }
fieldset[aria-invalid="true"] .choice span { border-color: var(--danger); }

.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.consent input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px;
  border: 1.5px solid var(--line-strong); background: rgba(16, 19, 27, 0.7); cursor: pointer;
  display: inline-grid; place-content: center; transition: all 0.2s;
}
.consent input::after { content: ""; width: 11px; height: 6px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.consent input:checked { background: var(--purple); border-color: var(--purple); }
.consent input:checked::after { opacity: 1; }
.consent a { color: var(--purple-strong); text-decoration: underline; text-underline-offset: 3px; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-footer { margin-top: 28px; display: grid; gap: 14px; }
.form-footer .btn { min-height: 56px; font-size: 16px; }
.form-legal { font-size: 13px; color: var(--muted-2); text-align: center; }

.alert { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-error { background: rgba(255, 122, 138, 0.08); border: 1px solid rgba(255, 122, 138, 0.35); color: #ffc2ca; }
.alert-error a { color: #fff; text-decoration: underline; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(13, 15, 22, 0.3); border-top-color: #0d0f16; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success { text-align: center; padding: 32px 8px; }
.success .icon-wrap {
  margin: 0 auto; width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.35); color: var(--success);
}
.success .icon-wrap svg { width: 34px; height: 34px; }
.success h3 { margin-top: 24px; font-size: 26px; }
.success p { margin: 12px auto 0; color: var(--muted); max-width: 440px; }
.success .btn { margin-top: 28px; }

/* ── Contactos ──────────────────────────────────────────── */

.contact-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 26px; min-height: 180px; }
.contact-card .label { margin-top: 18px; font-size: 13px; color: var(--muted); }
.contact-card .value { font-family: var(--font-display); font-size: 17px; font-weight: 500; word-break: break-word; }
.contact-card .value.todo { color: #ffd27a; font-family: var(--font-body); font-size: 14px; font-weight: 600; }
.contact-card .go { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--purple-strong); font-weight: 600; }
.contact-card .go svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
a.contact-card:hover .go svg { transform: translate(2px, -2px); }
a.contact-card:hover { transform: translateY(-3px); }

/* ── Footer ─────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); padding: 64px 0 120px; background: #0d1017; }
@media (min-width: 768px) { .footer { padding-bottom: 48px; } }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .brand p { margin-top: 18px; color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer .brand .slogan { color: var(--white); font-family: var(--font-display); font-size: 15px; }
.footer h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.footer ul { margin-top: 16px; display: grid; gap: 10px; }
.footer li, .footer li a, .footer li button { font-size: 14.5px; color: var(--muted); }
.footer li a:hover, .footer li button:hover { color: var(--white); }
.footer li button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.footer li a.lre-badge { display: inline-block; line-height: 0; border-radius: 6px; transition: transform 0.2s, box-shadow 0.2s; }
.footer li a.lre-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(166, 17, 27, 0.35); }
.footer .todo { color: #ffd27a; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted-2); }

/* ── WhatsApp flutuante ─────────────────────────────────── */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 18px 0 16px; border-radius: 999px;
  background: #25d366; color: #062a14; font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.7), 0 4px 12px rgba(0, 0, 0, 0.35); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float .label { display: none; }
@media (min-width: 768px) { .wa-float { right: 28px; bottom: 28px; } .wa-float .label { display: inline; } }
@media (max-width: 767px) { .wa-float { width: 56px; padding: 0; justify-content: center; } }
.wa-icon { color: inherit; }

/* ── Banner de cookies ──────────────────────────────────── */

.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  max-width: 560px; margin-inline: auto;
  padding: 20px; border-radius: 20px;
  background: rgba(23, 27, 39, 0.97); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}
@media (min-width: 768px) { .cookie { left: 28px; right: auto; bottom: 28px; margin: 0; padding: 24px; } }
.cookie h2 { font-size: 17px; letter-spacing: -0.01em; }
.cookie p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.cookie p a { color: var(--purple-strong); text-decoration: underline; text-underline-offset: 3px; }
.cookie .actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Páginas legais ─────────────────────────────────────── */

.legal { padding-block: 64px 96px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); }
.legal .updated { margin-top: 12px; color: var(--muted-2); font-size: 14px; }
.legal h2 { font-size: 22px; margin-top: 44px; }
.legal p, .legal li { color: var(--muted); margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li { margin-top: 8px; }
.legal a { color: var(--purple-strong); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--white); font-weight: 600; }
.legal .todo { color: #ffd27a; font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.legal th { color: var(--white); font-weight: 600; }
.template-note {
  margin-top: 28px; display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 210, 122, 0.08); border: 1px solid rgba(255, 210, 122, 0.3); color: #ffe2a8; font-size: 14.5px;
}
.template-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14.5px; margin-bottom: 32px; }
.back-link:hover { color: var(--white); }
.back-link svg { width: 16px; height: 16px; }

/* ── Animações ──────────────────────────────────────────── */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.mockup { animation: rise 1.1s 0.2s var(--ease) both; }

/* Revelar ao fazer scroll — só em browsers com scroll-driven animations; os outros mostram tudo de imediato. */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.legal-inline-btn button { background: none; border: 0; padding: 0; font: inherit; color: var(--purple-strong); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.legal code, .template-note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
