/* ============================================================
   WAZZA API — DESIGN SYSTEM v2.0
   Esquema: Verde-escuro profissional + Dark navy base
   Tipografia: Inter (peso variável) + numeração tabular
   ============================================================ */

/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  /* Marca */
  --wz-green-50:  #f0fde8;
  --wz-green-100: #d9f7bf;
  --wz-green-200: #b3ef7a;
  --wz-green-400: #72d32f;
  --wz-green-500: #59b718;
  --wz-green-600: #3e8c0d;
  --wz-green-700: #2a6308;
  --wz-green-900: #102604;

  /* Navy */
  --wz-navy-50:  #f0f4f9;
  --wz-navy-100: #d6e2ef;
  --wz-navy-200: #a9c1d9;
  --wz-navy-400: #4a7299;
  --wz-navy-600: #1a3a5c;
  --wz-navy-700: #0f2440;
  --wz-navy-800: #071a30;
  --wz-navy-900: #030d1a;

  /* Neutros */
  --wz-gray-50:  #f8fafc;
  --wz-gray-100: #f1f5f9;
  --wz-gray-200: #e2e8f0;
  --wz-gray-300: #cbd5e1;
  --wz-gray-400: #94a3b8;
  --wz-gray-500: #64748b;
  --wz-gray-600: #475569;
  --wz-gray-700: #334155;
  --wz-gray-800: #1e293b;
  --wz-gray-900: #0f172a;

  /* Semânticos */
  --color-primary:       var(--wz-green-500);
  --color-primary-dark:  var(--wz-green-700);
  --color-primary-light: var(--wz-green-100);
  --color-primary-soft:  var(--wz-green-50);

  /* Superfície */
  --surface-page:    #ffffff;
  --surface-muted:   var(--wz-gray-50);
  --surface-card:    #ffffff;
  --surface-overlay: var(--wz-navy-800);

  /* Texto */
  --text-primary:   var(--wz-gray-900);
  --text-secondary: var(--wz-gray-600);
  --text-muted:     var(--wz-gray-400);
  --text-invert:    #ffffff;

  /* Bordas */
  --line:        var(--wz-gray-200);
  --line-strong: var(--wz-gray-300);

  /* Sombras — três níveis */
  --shadow-xs: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 4px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.05);
  --shadow-md: 0 12px 40px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.06);
  --shadow-lg: 0 24px 72px rgba(7,21,38,.14), 0 8px 24px rgba(7,21,38,.08);
  --shadow-green: 0 8px 32px rgba(89,183,24,.28);

  /* Raios */
  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-2xl: 44px;
  --radius-full: 999px;

  /* Layout */
  --max:    1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Espaçamentos */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Tipografia */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Transições */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast: 140ms;
  --duration-base: 220ms;
  --duration-slow: 400ms;

  /* Aliases legacy (manter compatibilidade) */
  --color-success: var(--wz-green-500);
  --color-border-focus: var(--wz-green-500);
  --green: var(--color-primary);
  --green2: var(--color-primary);
  --navy: var(--wz-navy-800);
  --navy2: var(--wz-navy-700);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --bg: var(--surface-muted);
  --white: #ffffff;
  --shadow: var(--shadow-lg);
  --radius: var(--radius-xl);
}

/* ── RESET BÁSICO ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--surface-page);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "cv02","cv03","cv04","cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden }

a {
  color: inherit;
  text-decoration: none;
}
a:hover { color: var(--wz-green-700) }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2.5px solid var(--wz-green-500);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.site-main,
.section,
.page-hero,
.hero {
  min-width: 0;
  overflow-x: clip;
}

/* ── ACESSIBILIDADE ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--wz-navy-800);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
}
.skip-link:focus { left: 10px }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ── TIPOGRAFIA ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--wz-navy-800);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

h1, .page-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.055em;
  font-weight: 900;
  margin: 20px 0;
}

h2 {
  font-size: clamp(1.875rem, 3.2vw, 3.25rem);
  letter-spacing: -0.04em;
  margin: 14px 0;
}

h3 {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  letter-spacing: -0.02em;
  margin: 10px 0;
  font-weight: 700;
}

.section-header h2,
.split h2 {
  font-size: clamp(1.875rem, 3.2vw, 3.25rem);
  letter-spacing: -0.04em;
  margin: 14px 0;
}

.lead {
  max-width: 660px;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  font-weight: 400;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wz-navy-800);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px 13px 13px 5px;
  color: #fff;
  background: var(--wz-green-500);
  flex-shrink: 0;
  /* sutil: borda fina escura confere premium */
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18), var(--shadow-green);
}

.brand-word {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-word span { color: var(--wz-green-500) }

.custom-logo {
  max-width: 180px;
  max-height: 44px;
  width: auto;
}

.main-navigation { min-width: 0 }

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--wz-gray-700);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.main-navigation a:hover {
  color: var(--wz-navy-800);
  background: var(--wz-gray-100);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── BOTÕES ─────────────────────────────────────────────────── */
.btn,
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    background var(--duration-fast),
    border-color var(--duration-fast),
    color var(--duration-fast);
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.btn:hover { transform: translateY(-1px) }
.btn:active { transform: translateY(0) scale(0.98) }

.btn-primary,
.wp-block-button__link {
  color: #fff;
  background: var(--wz-green-500);
  border-color: var(--wz-green-600);
  box-shadow: var(--shadow-green), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover,
.wp-block-button__link:hover {
  background: var(--wz-green-600);
  border-color: var(--wz-green-700);
  box-shadow: 0 12px 40px rgba(89,183,24,.38);
}

.btn-secondary {
  background: var(--surface-page);
  border-color: var(--line-strong);
  color: var(--wz-navy-800);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: var(--wz-green-500);
  color: var(--wz-green-700);
  background: var(--wz-green-50);
}

.btn-ghost {
  padding-inline: 10px;
  color: var(--wz-navy-800);
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--wz-gray-100);
}

/* Menu toggle mobile */
.menu-toggle {
  display: none;
  min-width: 42px;
  min-height: 42px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--wz-navy-800);
  cursor: pointer;
  flex: 0 0 auto;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  /* Fundo: noise sutil via pseudo, grid pontilhada, gradiente */
  background:
    radial-gradient(ellipse 70% 50% at 80% -10%, rgba(89,183,24,.13), transparent),
    radial-gradient(ellipse 50% 60% at -10% 80%, rgba(7,36,80,.06), transparent),
    #ffffff;
}

/* Grade pontilhada decorativa */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(89,183,24,.18) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .45;
  mask-image: radial-gradient(ellipse 80% 60% at 85% 20%, black 20%, transparent 70%);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(48px);
  opacity: .5;
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}
.orb-a {
  right: 6%;
  top: 12%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(89,183,24,.35), rgba(89,183,24,.08));
}
.orb-b {
  left: 2%;
  bottom: 8%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(42,99,8,.25), transparent);
  animation-delay: 1.5s;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(300px,.9fr);
  gap: 60px;
  align-items: center;
}

/* ── EYEBROW ────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(89,183,24,.28);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: var(--wz-green-700);
  background: rgba(89,183,24,.08);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── HERO ACTIONS ───────────────────────────────────────────── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
  min-width: 0;
}

/* ── STATS ──────────────────────────────────────────────────── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
  padding: 16px 18px;
  transition: box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base);
}
.stat:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(89,183,24,.3);
}

.stat strong {
  display: block;
  color: var(--wz-navy-800);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 4px;
}
.stat span {
  font-size: .78rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: .01em;
}

/* ── MOCKUP PLATAFORMA ──────────────────────────────────────── */
.platform-mockup {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, var(--wz-navy-800) 0%, var(--wz-navy-900) 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
  color: #fff;
  /* Borda sutil premium */
  border: 1px solid rgba(255,255,255,.07);
}

.mockup-top {
  display: flex;
  gap: 7px;
  margin: 0 0 16px;
}
.mockup-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.mockup-top span:nth-child(1) { background: #ff5f57 }
.mockup-top span:nth-child(2) { background: #febc2e }
.mockup-top span:nth-child(3) { background: #28c840 }

.dashboard-ui {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  position: relative;
  min-width: 0;
}

.dashboard-ui aside {
  display: grid;
  gap: 10px;
  align-content: start;
}
.dashboard-ui aside span,
.mini-logo {
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  height: 36px;
}
.mini-logo {
  display: grid;
  place-items: center;
  background: var(--wz-green-500);
  font-weight: 900;
  font-size: .875rem;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.2);
}

.dashboard-ui section {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  min-width: 0;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.dash-head b {
  font-size: .875rem;
  font-weight: 700;
}
.dash-head button {
  border: 0;
  border-radius: var(--radius-full);
  background: var(--wz-green-500);
  padding: 6px 12px;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  min-width: 0;
}
.kpi-row div {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.06);
  font-size: .72rem;
  line-height: 1.4;
  color: rgba(255,255,255,.7);
}
.kpi-row div b {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.chart {
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart path {
  fill: none;
  stroke: var(--wz-green-400);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 16px rgba(89,183,24,.3));
  stroke-dasharray: 900;
  animation: draw 2.2s var(--ease-out) both;
}
.chart .brand-accent {
  stroke: rgba(255,255,255,.2);
  animation-delay: .2s;
}

.phone {
  position: absolute;
  right: -22px;
  bottom: -30px;
  width: 176px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  min-width: 0;
  max-width: min(176px, 54vw);
}
.phone b {
  font-size: .8rem;
  font-weight: 800;
  color: var(--wz-navy-800);
}
.phone p {
  font-size: .75rem;
  color: var(--text-secondary);
  margin: 6px 0;
  line-height: 1.5;
}
.phone em {
  display: inline-flex;
  border-radius: var(--radius-full);
  background: var(--wz-green-100);
  color: var(--wz-green-700);
  padding: 4px 9px;
  font-style: normal;
  font-weight: 700;
  font-size: .7rem;
}

/* ── SEÇÕES ─────────────────────────────────────────────────── */
.section {
  padding: 88px 0;
}
.section-muted {
  background: var(--surface-muted);
}
.section-dark {
  color: #fff;
  background: var(--wz-navy-800);
  /* Padrão de pontos sutil */
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 80%, rgba(89,183,24,.15), transparent),
    radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, 24px 24px;
}
.section-dark h2,
.section-dark h3 { color: #fff }
.section-dark p { color: var(--wz-navy-100) }

.section-header {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* ── LOGO CLOUD ─────────────────────────────────────────────── */
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.logo-cloud div {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--surface-card);
  text-align: center;
  color: var(--wz-gray-400);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  transition: border-color var(--duration-base), color var(--duration-base);
}
.logo-cloud div:hover {
  border-color: var(--wz-green-400);
  color: var(--wz-green-700);
}

/* ── FEATURE CARDS ──────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card,
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
}

.hover-lift {
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base);
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(89,183,24,.3);
}

.icon-spark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--wz-green-50);
  border: 1px solid rgba(89,183,24,.15);
  font-size: 1.25rem;
}

/* ── TIMELINE ───────────────────────────────────────────────── */
.timeline {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: t;
  display: grid;
  gap: 12px;
}
.timeline li {
  position: relative;
  padding: 20px 24px 20px 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--wz-navy-800);
  counter-increment: t;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}
.timeline li:hover {
  border-color: rgba(89,183,24,.35);
  box-shadow: var(--shadow-sm);
}
.timeline li::before {
  content: counter(t);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  background: var(--wz-green-500);
  color: #fff;
  font-weight: 900;
  font-size: .85rem;
}
.timeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 36px;
  bottom: -12px;
  width: 1px;
  height: 12px;
  background: var(--wz-green-400);
  z-index: 1;
}

/* ── AI PANEL (DARK) ────────────────────────────────────────── */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.chips span {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  background: rgba(255,255,255,.08);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .01em;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}
.chips span:hover {
  background: rgba(89,183,24,.2);
  border-color: rgba(89,183,24,.4);
}

.ai-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 24px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
}
.ai-panel code {
  display: block;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  background: rgba(0,0,0,.3);
  color: var(--wz-green-200);
  font-family: var(--font-mono);
  font-size: .825rem;
  border: 1px solid rgba(89,183,24,.15);
}

.glow {
  box-shadow: 0 0 60px rgba(89,183,24,.15);
}

/* ── FLOW CANVAS ────────────────────────────────────────────── */
.flow-canvas {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--wz-green-50);
  border: 1px solid rgba(89,183,24,.2);
  grid-template-columns: minmax(0,1fr);
}
.flow-canvas div {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  background: var(--surface-card);
  font-weight: 700;
  font-size: .9rem;
  color: var(--wz-navy-800);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration-fast);
}
.flow-canvas div:hover {
  border-color: rgba(89,183,24,.4);
}
.flow-canvas div:not(:last-child)::after {
  content: '↓';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wz-green-500);
  font-weight: 900;
}

/* ── DEVICE STACK ───────────────────────────────────────────── */
.device-stack {
  position: relative;
  min-height: 320px;
  max-width: 100%;
}
.laptop,
.mobile {
  border: 1px solid var(--line);
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
}
.laptop {
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 85%;
  min-height: 240px;
  max-width: 100%;
}
.mobile {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 200px;
  border-radius: var(--radius-xl);
  padding: 20px;
  max-width: min(200px, 62vw);
}

/* ── PRICING ────────────────────────────────────────────────── */
.cards-3,
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
  padding: 28px;
}
.price-card strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--wz-navy-800);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  margin: 12px 0 4px;
}
.price-card ul {
  padding-left: 0;
  color: var(--text-secondary);
  list-style: none;
  margin: 16px 0;
}
.price-card ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 500;
}
.price-card ul li::before {
  content: '✓ ';
  color: var(--wz-green-500);
  font-weight: 800;
}
.price-card ul li:last-child {
  border-bottom: none;
}

.price-card.featured {
  transform: translateY(-10px);
  border-color: var(--wz-green-400);
  border-width: 1.5px;
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(89,183,24,.06);
}

/* ── CTA ────────────────────────────────────────────────────── */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: 56px;
  color: #fff;
  background: var(--wz-navy-800);
  border: 1px solid rgba(255,255,255,.06);
  min-width: 0;
  max-width: 100%;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(89,183,24,.18), transparent),
    radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: auto, 20px 20px;
  pointer-events: none;
}
.cta h2 { color: #fff }
.cta p { color: var(--wz-navy-100) }

/* ── PAGE HERO ──────────────────────────────────────────────── */
.page-hero {
  padding: 72px 0;
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--surface-muted));
}

.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .85rem;
}

/* ── GRID E CARDS ───────────────────────────────────────────── */
.grid,
.footer-grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3,1fr) }

.post-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
}
.thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--wz-green-100), var(--wz-green-50));
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.post-card:hover .thumb img { transform: scale(1.04) }
.thumb-fallback {
  font-weight: 900;
  color: var(--wz-green-700);
  font-size: 1.5rem;
}
.post-card-content { padding: 22px }
.post-meta {
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ── CONTEÚDO EDITORIAL ─────────────────────────────────────── */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.075rem;
  line-height: 1.75;
}
.entry-content a {
  color: var(--wz-green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content h2 { margin-top: 2em }
.entry-content pre {
  overflow: auto;
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--wz-navy-900);
  color: var(--wz-green-200);
  font-family: var(--font-mono);
  font-size: .875rem;
  max-width: 100%;
  white-space: pre;
  border: 1px solid rgba(255,255,255,.06);
}

/* ── DOCS ───────────────────────────────────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}
.docs-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--surface-card);
}
.docs-sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: .875rem;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.docs-sidebar a:hover {
  color: var(--wz-green-700);
  background: var(--wz-green-50);
}

/* ── BUSCA ──────────────────────────────────────────────────── */
.search-form {
  display: flex;
  gap: 10px;
  max-width: 660px;
  margin: 24px auto;
  min-width: 0;
}
.search-field {
  flex: 1;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--text-primary);
  background: var(--surface-card);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  min-width: 0;
}
.search-field:focus {
  border-color: var(--wz-green-500);
  box-shadow: 0 0 0 3px rgba(89,183,24,.15);
  outline: none;
}
.search-submit { border: 0 }

/* ── PAGINAÇÃO ──────────────────────────────────────────────── */
.pagination { margin-top: 32px }
.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.page-numbers {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  background: var(--surface-card);
  font-weight: 600;
  font-size: .875rem;
  transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
}
.page-numbers.current {
  background: var(--wz-green-500);
  border-color: var(--wz-green-600);
  color: #fff;
}
.page-numbers:hover:not(.current) {
  border-color: var(--wz-green-500);
  color: var(--wz-green-700);
  background: var(--wz-green-50);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  padding: 60px 0 24px;
  color: var(--wz-navy-200);
  background: var(--wz-navy-900);
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-grid {
  grid-template-columns: 1.4fr repeat(3,1fr);
}
.footer-title {
  margin-bottom: 16px;
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: -0.01em;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin: 8px 0;
}
.footer-links a {
  color: var(--wz-navy-200);
  font-size: .875rem;
  font-weight: 500;
  transition: color var(--duration-fast);
}
.footer-links a:hover { color: var(--wz-green-400) }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 20px;
  color: var(--wz-navy-400);
  font-size: .8rem;
}

/* ── OVERLAY MENU MOBILE ────────────────────────────────────── */
.site-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(7,21,38,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-in-out);
  backdrop-filter: blur(2px);
}
body.menu-open .site-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ── ANIMAÇÕES ──────────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}
[data-animate="up"]   { transform: translateY(22px) }
[data-animate="left"] { transform: translateX(28px) }
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-16px) }
}
@keyframes draw {
  from { stroke-dashoffset: 900 }
  to   { stroke-dashoffset: 0 }
}

/* ── ESTADOS DE UI ──────────────────────────────────────────── */
.badge,
.tab.active,
.tabs .active,
.is-active,
.active-indicator {
  background: var(--wz-green-100);
  color: var(--wz-green-700);
  border: 1px solid rgba(89,183,24,.2);
}

input:focus,
textarea:focus,
select:focus,
.search-field:focus,
.comment-form input:not([type="submit"]):focus,
.comment-form textarea:focus {
  border-color: var(--wz-green-500);
  box-shadow: 0 0 0 3px rgba(89,183,24,.15);
  outline: none;
}
input[type="checkbox"],
input[type="radio"] { accent-color: var(--wz-green-500) }

.card.is-selected,
.selected-card {
  border-color: var(--wz-green-500);
  box-shadow: 0 0 0 3px rgba(89,183,24,.12), var(--shadow-sm);
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  [data-animate] { opacity: 1; transform: none }
}

/* ── BLOG / SINGLE ──────────────────────────────────────────── */
.narrow { max-width: 880px }
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 32px;
  align-items: start;
}
.blog-layout .grid-3 { grid-template-columns: repeat(2,1fr) }
.blog-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}
.sidebar-widget ul {
  margin: 0;
  padding-left: 18px;
}
.widget-title {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.archive-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px auto;
}
.archive-filters a {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  background: var(--surface-card);
  color: var(--wz-navy-800);
  font-weight: 700;
  font-size: .825rem;
  transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
}
.archive-filters a:hover {
  border-color: var(--wz-green-500);
  color: var(--wz-green-700);
  background: var(--wz-green-50);
}

.featured-image-wrap {
  margin-top: -32px;
}
.featured-image-wrap img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.single-editorial .entry-content { max-width: 760px }

.comments-area {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.comment-list {
  padding-left: 0;
  list-style: none;
}
.comment-body {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: .9rem;
  background: var(--surface-card);
  color: var(--text-primary);
}

.comparison { margin-top: 22px }

.entry-content table,
.comparison table,
table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}
.entry-content iframe,
.entry-content embed,
.entry-content object { max-width: 100% }

/* ── BREAKPOINTS ────────────────────────────────────────────── */

/* Wide ≥ 1440 */
@media (min-width: 1440px) {
  :root { --max: 1280px }
  .section { padding: 104px 0 }
  .hero { padding: 120px 0 96px }
  .feature-grid { grid-template-columns: repeat(4, minmax(0,1fr)) }
  .cards-3, .pricing, .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)) }
}

/* Desktop 1024–1439 */
@media (min-width: 1024px) and (max-width: 1439px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0,1fr)) }
  .cards-3, .pricing, .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)) }
  .hero-grid, .split { grid-template-columns: minmax(0,1fr) minmax(0,.95fr) }
}

/* Tablet 640–1023 */
@media (min-width: 640px) and (max-width: 1023px) {
  .container { width: min(var(--max), calc(100% - 48px)) }
  .header-inner { min-height: 68px }
  .menu-toggle { display: inline-grid; place-items: center; flex: 0 0 auto }
  .main-navigation {
    position: fixed;
    top: 0; right: 0; left: auto; bottom: 0;
    z-index: 60;
    display: block;
    width: min(360px, 86vw);
    height: 100dvh;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    padding: 84px 24px 24px;
    background: var(--surface-card);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform var(--duration-base) var(--ease-out);
    overflow-y: auto;
  }
  .main-navigation.is-open { transform: translateX(0) }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 4px }
  .main-navigation a { width: 100%; border-radius: var(--radius-sm); padding: 10px 12px }
  .header-actions { display: none }
  .hero { padding: 68px 0 60px }
  .hero-grid, .split, .cta, .docs-layout, .blog-layout { grid-template-columns: 1fr }
  .feature-grid, .cards-3, .pricing, .grid-3, .logo-cloud, .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)) }
  .hero-stats, .kpi-row { grid-template-columns: repeat(3, minmax(0,1fr)) }
  .phone { position: static; width: 100%; margin-top: 14px }
  .dashboard-ui { grid-template-columns: 1fr }
  .docs-sidebar, .blog-sidebar { position: static }
  .cta { align-items: start; padding: 40px }
  .price-card.featured { transform: none }
  .section { padding: 68px 0 }
}

/* Mobile ≤ 639 */
@media (max-width: 639px) {
  .container { width: min(100% - 28px, var(--max)) }
  .header-inner { min-height: 62px; gap: 10px }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px 12px 12px 4px }
  .brand-word { max-width: 52vw }
  .custom-logo { max-width: 140px }
  .menu-toggle { display: inline-grid; place-items: center; flex: 0 0 auto }
  .main-navigation {
    position: fixed;
    top: 0; right: 0; left: auto; bottom: 0;
    z-index: 60;
    display: block;
    width: min(320px, 88vw);
    height: 100dvh;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    padding: 78px 18px 22px;
    background: var(--surface-card);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform var(--duration-base) var(--ease-out);
    overflow-y: auto;
  }
  .main-navigation.is-open { transform: translateX(0) }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 4px }
  .main-navigation a { width: 100%; border-radius: var(--radius-sm); padding: 10px 12px }
  .header-actions { display: none }

  .hero { padding: 48px 0 56px }
  .hero::before { display: none }
  .hero-grid, .split, .cta, .docs-layout, .blog-layout { grid-template-columns: 1fr; gap: 28px }

  h1, .page-title { font-size: clamp(2rem, 12vw, 2.8rem); letter-spacing: -.05em }
  .section-header h2, .split h2 { font-size: clamp(1.7rem, 8.5vw, 2.2rem) }
  .lead { font-size: 1rem }

  .hero-actions, .search-form { flex-direction: column }
  .hero-actions .btn,
  .search-form .btn,
  .search-submit,
  .price-card .btn,
  .cta .btn { width: 100% }

  .hero-stats, .feature-grid, .cards-3, .pricing, .grid-3, .logo-cloud, .footer-grid, .kpi-row {
    grid-template-columns: 1fr;
  }
  .stat, .feature-card, .card, .price-card { padding: 18px }

  .platform-mockup { padding: 14px; border-radius: var(--radius-xl) }
  .dashboard-ui { grid-template-columns: 1fr }
  .dash-head { flex-direction: column }
  .dash-head button { width: 100% }
  .phone { position: static; width: 100%; margin-top: 12px; max-width: 100% }

  .section { padding: 54px 0 }
  .section-header { margin-bottom: 28px }

  .timeline li { padding: 18px 16px 18px 62px }
  .ai-panel, .flow-canvas { padding: 16px; border-radius: var(--radius-lg) }

  .device-stack { min-height: 0 }
  .laptop { width: 100%; min-height: 0; padding: 20px }
  .mobile { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 12px; max-width: 100% }

  .price-card.featured { transform: none }

  .cta {
    grid-template-columns: 1fr;
    padding: 26px;
    border-radius: var(--radius-xl);
  }

  .footer-bottom { flex-direction: column }
  .docs-sidebar, .blog-sidebar { position: static }
  .featured-image-wrap { margin-top: 0 }
  .featured-image-wrap img { border-radius: var(--radius-lg) }

  .search-form { flex-direction: column }
  .search-field { width: 100% }
}

/* ── BLOG LATERAL (desktop) ─────────────────────────────────── */
@media (max-width: 1100px) {
  .blog-layout,
  .blog-layout .grid-3 { grid-template-columns: 1fr }
  .blog-sidebar { position: static }
  .docs-sidebar { position: static }
}

/* ── MISC OVERRIDES ─────────────────────────────────────────── */
@media (max-width: 1040px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr) }
  .phone { position: static; width: auto; margin-top: 12px }
  .dashboard-ui { grid-template-columns: 1fr }
}

/* Min-width 0 fix para grids */
.hero-grid, .split, .grid, .footer-grid,
.cards-3, .pricing, .feature-grid, .logo-cloud,
.docs-layout, .blog-layout, .dashboard-ui, .kpi-row {
  min-width: 0;
}
.card, .feature-card, .price-card, .stat,
.ai-panel, .flow-canvas, .laptop, .mobile,
.platform-mockup, .docs-sidebar, .sidebar-widget,
.cta, .header-inner, .site-branding, .main-navigation {
  min-width: 0;
}

/* Overflow wrap em containers fixos */
.card, .feature-card, .price-card, .stat,
.ai-panel, .flow-canvas, .laptop, .mobile,
.platform-mockup, .docs-sidebar, .sidebar-widget, .cta {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* ═══════════════════════════════════════════════════════════════
   BROWSER MOCK — componente de screenshot em frame de browser
   ═══════════════════════════════════════════════════════════════ */
.browser-mock {
  border-radius: var(--radius-xl);
  background: var(--wz-gray-100);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--wz-gray-100);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #ff5f57 }
.browser-dots span:nth-child(2) { background: #febc2e }
.browser-dots span:nth-child(3) { background: #28c840 }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  background: var(--surface-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  overflow: hidden;
}

.browser-lock {
  color: var(--wz-gray-400);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.browser-url {
  font-size: .72rem;
  font-weight: 600;
  color: var(--wz-gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  min-width: 0;
}

.browser-screen {
  position: relative;
  overflow: hidden;
  background: var(--wz-gray-50);
  /* Limita a altura para não crescer demais */
  max-height: 56vw;
}
.browser-screen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top;
  transition: transform var(--duration-slow) var(--ease-out);
}
.browser-mock:hover .browser-screen img {
  transform: scale(1.015);
}

/* Tamanhos */
.browser-mock-full .browser-screen { max-height: 520px }
.browser-mock-sm   .browser-screen { max-height: 340px }
.browser-mock-xs   .browser-screen { max-height: 220px }

/* ── FLOAT CARDS (hero) ──────────────────────────────────────── */
.float-card {
  position: absolute;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  min-width: 0;
  max-width: 200px;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}
.float-card strong {
  display: block;
  font-size: .85rem;
  font-weight: 800;
  color: var(--wz-navy-800);
  line-height: 1.2;
}
.float-card span {
  color: var(--text-secondary);
  font-weight: 500;
}

.float-card-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.float-card-ia {
  top: 18%;
  right: -18px;
  animation-delay: .4s;
}
.float-card-metric {
  bottom: 14%;
  left: -14px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  animation-delay: 1.2s;
}
.float-card-metric strong {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--wz-green-700);
}

.metric-bar {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: var(--wz-gray-100);
  overflow: hidden;
}
.metric-fill {
  height: 100%;
  background: var(--wz-green-500);
  border-radius: 99px;
}

/* ── CHECK LIST ──────────────────────────────────────────────── */
.check-list {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.check-list li::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wz-green-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2359b718' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* ── EYEBROW DOT ─────────────────────────────────────────────── */
.eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wz-green-500);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1) }
  50% { opacity: .5; transform: scale(.75) }
}

/* ── TRIO DE TELAS (IA section) ──────────────────────────────── */
.screens-trio {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 16px;
  align-items: end;
}

.screen-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: .7;
  transform: scale(.96) translateY(12px);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.screen-item:hover,
.screen-item-featured {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.screen-label {
  text-align: center;
  font-size: .75rem;
  font-weight: 800;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.screen-item-featured .screen-label {
  color: var(--wz-green-400);
}

/* ── SHOWCASE TABS ───────────────────────────────────────────── */
.showcase-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.stab {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  background: var(--surface-card);
  color: var(--wz-gray-600);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .825rem;
  cursor: pointer;
  transition:
    border-color var(--duration-fast),
    color var(--duration-fast),
    background var(--duration-fast),
    box-shadow var(--duration-fast);
}
.stab:hover {
  border-color: var(--wz-green-400);
  color: var(--wz-green-700);
  background: var(--wz-green-50);
}
.stab-active {
  border-color: var(--wz-green-500);
  background: var(--wz-green-500);
  color: #fff;
  box-shadow: var(--shadow-green);
}

.showcase-stage {
  position: relative;
  min-width: 0;
}

.sscreen { display: none; flex-direction: column; gap: 12px; min-width: 0 }
.sscreen-active { display: flex }

.sscreen-caption {
  text-align: center;
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
  margin: 0;
}

/* ── STACKED MOCKS ───────────────────────────────────────────── */
.stacked-mocks {
  position: relative;
  min-height: 320px;
  min-width: 0;
}
.browser-mock-back {
  position: absolute;
  top: 0; left: 0;
  width: 88%;
  transform: rotate(-2deg) translateY(8px);
  opacity: .6;
  z-index: 0;
  pointer-events: none;
}
.browser-mock-front {
  position: relative;
  width: 92%;
  margin-left: auto;
  margin-top: 32px;
  z-index: 1;
}

/* ── FEATURE MINI GRID ───────────────────────────────────────── */
.feature-mini-grid {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.fmini {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}
.fmini:hover {
  border-color: rgba(89,183,24,.3);
  box-shadow: var(--shadow-sm);
}
.fmini > span {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.fmini strong {
  display: block;
  font-size: .9rem;
  font-weight: 800;
  color: var(--wz-navy-800);
  margin-bottom: 2px;
}
.fmini p {
  margin: 0;
  font-size: .825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── PRICE BADGE ─────────────────────────────────────────────── */
.price-badge {
  display: inline-flex;
  border-radius: var(--radius-full);
  background: var(--wz-green-500);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 10px;
}

/* ── RESPONSIVO BROWSER MOCKS ────────────────────────────────── */
@media (max-width: 1023px) {
  .screens-trio { grid-template-columns: 1fr }
  .screen-item { opacity: 1; transform: none }
  .stacked-mocks { min-height: 0 }
  .browser-mock-back { position: static; transform: none; opacity: 1; width: 100%; margin-bottom: 12px }
  .browser-mock-front { width: 100%; margin-left: 0; margin-top: 0 }
  .float-card-ia { top: auto; right: -8px; bottom: 56% }
  .float-card-metric { left: -8px; bottom: 8% }
}

@media (max-width: 639px) {
  .browser-mock { border-radius: var(--radius-lg) }
  .browser-chrome { padding: 8px 10px }
  .browser-url { font-size: .65rem }
  .browser-mock-full .browser-screen { max-height: 220px }
  .browser-mock-sm   .browser-screen { max-height: 180px }
  .browser-mock-xs   .browser-screen { max-height: 150px }
  .float-card { display: none }
  .showcase-tabs { gap: 4px }
  .stab { padding: 7px 12px; font-size: .78rem }
  .stacked-mocks { min-height: 0 }
}

/* ═══════════════════════════════════════════════════════════════
   FLOW BUILDER — canvas interativo de nós
   ═══════════════════════════════════════════════════════════════ */

/* Layout da seção */
.flow-section-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
}
.flow-text { min-width: 0 }

/* Wrapper do editor */
.flow-canvas-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-width: 0;
}

/* Barra superior do editor */
.flow-editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-card);
  min-width: 0;
}
.flow-editor-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .825rem;
  font-weight: 800;
  color: var(--wz-navy-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flow-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.flow-pill {
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface-muted);
  white-space: nowrap;
}
.flow-pill-green {
  color: var(--wz-green-700);
  background: var(--wz-green-50);
  border-color: rgba(89,183,24,.25);
}
.flow-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: var(--radius-full);
  padding: 5px 12px;
  background: var(--wz-green-500);
  color: #fff;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--duration-fast);
  white-space: nowrap;
}
.flow-btn-play:hover { background: var(--wz-green-600) }

/* Stage (canvas pontilhado) */
.flow-stage {
  position: relative;
  width: 100%;
  height: 320px;
  background-color: #f8fafc;
  background-image:
    radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
}

/* SVG de conexões */
.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.flow-edge {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.75;
  stroke-dasharray: none;
  stroke-linecap: round;
  transition: stroke var(--duration-base);
}
.flow-edge-sim { stroke: var(--wz-green-500) }
.flow-edge-nao { stroke: #f59e0b }
.flow-edge-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 800;
  fill: #94a3b8;
  letter-spacing: .04em;
}

/* NÓS */
.flow-node {
  position: absolute;
  width: 176px;
  border-radius: 12px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(15,23,42,.09), 0 1px 4px rgba(15,23,42,.06);
  cursor: grab;
  user-select: none;
  transition:
    box-shadow var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast),
    transform var(--duration-fast) var(--ease-out);
  min-width: 0;
}
.flow-node:hover {
  border-color: var(--wz-green-400);
  box-shadow: 0 8px 28px rgba(89,183,24,.18), 0 2px 8px rgba(15,23,42,.08);
  transform: translateY(-2px);
  z-index: 10;
}
.flow-node:active { cursor: grabbing; transform: scale(1.02) }

/* Nó de condição — borda superior laranja */
.flow-node-cond {
  border-top: 3px solid #f59e0b;
}
/* Nó de mensagem — borda superior verde */
.flow-node-msg {
  border-top: 3px solid var(--wz-green-500);
}

/* Header do nó */
.fn-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 10px 7px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.fn-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
}
.fn-icon-msg  { background: rgba(89,183,24,.12); color: var(--wz-green-700) }
.fn-icon-cond { background: rgba(245,158,11,.12); color: #d97706 }

.fn-title {
  font-size: .78rem;
  font-weight: 800;
  color: var(--wz-navy-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.fn-badge {
  flex-shrink: 0;
  border-radius: var(--radius-full);
  padding: 2px 6px;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .03em;
}
.fn-badge-msg   { background: rgba(89,183,24,.12); color: var(--wz-green-700) }
.fn-badge-if    { background: rgba(245,158,11,.15); color: #b45309 }
.fn-badge-start { background: var(--wz-green-500); color: #fff }

.fn-play-btn {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-card);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
}
.fn-play-btn:hover {
  border-color: var(--wz-green-500);
  color: var(--wz-green-700);
  background: var(--wz-green-50);
}

/* Body do nó */
.fn-body { padding: 8px 10px 10px }
.fn-preview {
  font-size: .72rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 7px;
}
.fn-preview em {
  font-style: normal;
  color: var(--wz-navy-800);
  font-weight: 600;
}
.fn-meta {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 6px;
}
.fn-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.fn-tag {
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 2px 7px;
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface-muted);
}

/* Status */
.fn-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .67rem;
  font-weight: 700;
}
.fn-status-ok { color: var(--wz-green-700) }
.fn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* Portas de conexão */
.fn-port {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 2px solid #94a3b8;
  transition: border-color var(--duration-fast), transform var(--duration-fast);
}
.fn-port:hover { border-color: var(--wz-green-500); transform: scale(1.3) }

.fn-port-in  { left: -5px; top: 50%; transform: translateY(-50%) }
.fn-port-out { right: -5px; top: 50%; transform: translateY(-50%) }
.fn-port-out-t { top: 32%; transform: translateY(-50%) }
.fn-port-out-b { top: 68%; transform: translateY(-50%) }

.fn-out-label {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .6rem;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: none;
}

/* Toolbar de zoom */
.flow-toolbar {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.flow-tool {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface-card);
  color: var(--text-secondary);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration-fast), color var(--duration-fast);
}
.flow-tool:hover { border-color: var(--wz-green-500); color: var(--wz-green-700) }

/* Responsivo */
@media (max-width: 1023px) {
  .flow-section-layout { grid-template-columns: 1fr; gap: 28px }
  .flow-stage { height: 280px }
  .flow-node { transform: scale(0.88); transform-origin: top left }
}
@media (max-width: 639px) {
  .flow-stage { height: 240px; overflow-x: auto }
  .flow-editor-bar { flex-wrap: wrap; gap: 8px }
  .flow-editor-actions { flex-wrap: wrap }
  .flow-node { width: 152px }
  .fn-title { font-size: .72rem }
}
