/* ==========================================================================
   TAU Design System V1
   Fonte única de tokens e componentes. Não usar hex solto fora deste arquivo.
   Regras: cor de agente só em autoria · cor de estado só em estado
           sombra só em overlay · espaçamento estrutural em múltiplos de 4
   ========================================================================== */

:root {
  /* superfície */
  --bg: #08090B;
  --bg-1: #0B0D11;
  --panel: #101318;
  --panel-2: #15181F;

  /* linha */
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --line-control: rgba(255, 255, 255, .24);

  /* tinta · text-4 apenas em desabilitado */
  --text-1: #F4F5F6;
  --text-2: rgba(244, 245, 246, .72);
  --text-3: rgba(244, 245, 246, .56);
  --text-4: rgba(244, 245, 246, .34);

  /* marca e interação */
  --brand-accent: #8579F5;
  --brand-soft: rgba(133, 121, 245, .13);
  --brand-line: rgba(133, 121, 245, .32);
  --on-brand: #FFFFFF;
  --interactive: var(--brand-accent);
  --chart-primary: var(--brand-accent);
  --vertical-beleza: var(--brand-accent);
  --vertical-imoveis: var(--brand-accent);
  --vertical-saude: var(--brand-accent);

  /* agente · exclusivo de autoria */
  --agent-mia: #B57BFF;
  --agent-mia-soft: rgba(181, 123, 255, .13);
  --agent-mia-line: rgba(181, 123, 255, .30);
  --on-mia: #17081F;
  --agent-leo: #3DD6C0;
  --agent-leo-soft: rgba(61, 214, 192, .12);
  --agent-leo-line: rgba(61, 214, 192, .30);
  --on-leo: #07100F;
  --agent-kai: #E5B24C;
  --agent-kai-soft: rgba(229, 178, 76, .12);
  --agent-kai-line: rgba(229, 178, 76, .30);
  --on-kai: #17120A;

  /* estado · sempre com ícone e texto */
  --state-success: #3FBF6F;
  --state-success-soft: rgba(63, 191, 111, .13);
  --state-warning: #F0883E;
  --state-warning-soft: rgba(240, 136, 62, .13);
  --state-error: #F2585B;
  --state-error-soft: rgba(242, 88, 91, .13);
  --state-info: #5A9BF5;
  --state-info-soft: rgba(90, 155, 245, .13);

  /* ação */
  --btn: #F4F5F6;
  --btn-ink: #0A0B0D;
  --focus: var(--interactive);

  /* elevação · só overlay, menu e moldura */
  --shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 24px 70px -28px rgba(0, 0, 0, .8);
  --grain: .02;

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-1: 160ms;
  --dur-2: 220ms;
  --dur-3: 300ms;
  --dur-4: 800ms;

  /* tipografia */
  --font-d: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-b: 'Geist', system-ui, -apple-system, sans-serif;
  --font-n: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --w-d: 600;
  --lh-d: 1.03;
  --tr-xl: -.035em;
  --tr-l: -.03em;
  --tr-m: -.02em;

  /* raio */
  --r-1: 7px;
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 18px;
  --r-5: 22px;

  /* layout */
  --maxw: 1160px;
  --bleed: 1320px;
  --pad: 24px;
}

[data-theme="light"] {
  --bg: #FBFBFA;
  --bg-1: #F4F4F2;
  --panel: #FFFFFF;
  --panel-2: #FAFAF8;
  --line: rgba(12, 14, 17, .10);
  --line-2: rgba(12, 14, 17, .18);
  --line-control: rgba(12, 14, 17, .26);
  --text-1: #101316;
  --text-2: rgba(16, 19, 22, .70);
  --text-3: rgba(16, 19, 22, .60);
  --text-4: rgba(16, 19, 22, .38);
  --brand-accent: #4834D4;
  --brand-soft: rgba(72, 52, 212, .08);
  --brand-line: rgba(72, 52, 212, .24);
  --agent-mia: #7E22CE;
  --agent-mia-soft: rgba(126, 34, 206, .08);
  --agent-mia-line: rgba(126, 34, 206, .24);
  --on-mia: #FFFFFF;
  --agent-leo: #0B7F73;
  --agent-leo-soft: rgba(11, 127, 115, .09);
  --agent-leo-line: rgba(11, 127, 115, .24);
  --on-leo: #FFFFFF;
  --agent-kai: #8E610F;
  --agent-kai-soft: rgba(142, 97, 15, .10);
  --agent-kai-line: rgba(142, 97, 15, .24);
  --on-kai: #FFFFFF;
  --state-success: #0F7A3D;
  --state-success-soft: rgba(15, 122, 61, .09);
  --state-warning: #B4530A;
  --state-warning-soft: rgba(180, 83, 10, .09);
  --state-error: #C2323A;
  --state-error-soft: rgba(194, 50, 58, .09);
  --state-info: #1B63C4;
  --state-info-soft: rgba(27, 99, 196, .09);
  --btn: #101316;
  --btn-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(12, 14, 17, .04), 0 22px 48px -26px rgba(12, 14, 17, .28);
  --grain: .028;
}

/* densidade · marketing respira, produto comprime */
[data-density="marketing"] { --sp-sec: 120px; --sp-head: 56px; --pad-card: 32px; --gap-grid: 20px; --fs-body: 1rem; --lh-body: 1.7 }
[data-density="product"]   { --sp-sec: 48px;  --sp-head: 24px; --pad-card: 16px; --gap-grid: 12px; --fs-body: .875rem; --lh-body: 1.5 }

/* ---------- base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  background: var(--bg); color: var(--text-1); font-family: var(--font-b);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--text-1); text-decoration: none }
a:hover { color: var(--interactive) }
img, svg { display: block; max-width: 100% }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer }
input, select, textarea { font: inherit }
summary::-webkit-details-marker { display: none }
summary { list-style: none }
::selection { background: var(--brand-soft) }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px }
section[id], main section[id] { scroll-margin-top: 84px }

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

/* ---------- tipografia ---------- */
.eyebrow {
  font-family: var(--font-n); font-size: .68rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
}
.eyebrow--sm { font-size: .66rem; letter-spacing: .12em }
.h-xl { font-family: var(--font-d); font-weight: var(--w-d); letter-spacing: var(--tr-xl); line-height: var(--lh-d); font-size: clamp(2.6rem, 5.2vw, 4.4rem); color: var(--text-1); text-wrap: balance }
.h-l  { font-family: var(--font-d); font-weight: var(--w-d); letter-spacing: var(--tr-l);  line-height: var(--lh-d); font-size: clamp(2rem, 3.4vw, 2.9rem);   color: var(--text-1); text-wrap: balance }
.h-m  { font-family: var(--font-d); font-weight: var(--w-d); letter-spacing: var(--tr-m);  line-height: 1.22;        font-size: 1.3rem;                        color: var(--text-1) }
.h-s  { font-family: var(--font-d); font-weight: var(--w-d); letter-spacing: var(--tr-m);  line-height: 1.25;        font-size: 1.12rem;                       color: var(--text-1) }
.lead { font-size: 1.04rem; line-height: 1.7; color: var(--text-2) }
.body { font-size: .92rem; line-height: 1.65; color: var(--text-2) }
.small { font-size: .85rem; line-height: 1.6; color: var(--text-2) }
.meta { font-size: .78rem; line-height: 1.5; color: var(--text-3) }
.num { font-family: var(--font-n); font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -.035em; color: var(--text-1) }
.num--xl { font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -.04em; line-height: 1 }
.num--l { font-size: clamp(1.5rem, 2.6vw, 2rem) }
.num--m { font-size: 1.4rem }
.mono { font-family: var(--font-n); font-variant-numeric: tabular-nums }
.src { font-family: var(--font-n); font-size: .65rem; line-height: 1.45; color: var(--text-3); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line) }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) }
.container--bleed { max-width: var(--bleed) }
.container--sm { max-width: 820px }
.section { padding: 120px 0 }
.section--alt { background: var(--bg-1) }
.section--line { border-top: 1px solid var(--line) }
.section-head { max-width: 620px; margin-bottom: var(--sp-head, 56px) }
.section-head .eyebrow { margin-bottom: 18px }
.section-head h2 { margin-bottom: 16px }
.grid { display: grid; gap: 20px }
.grid--2 { grid-template-columns: 1fr 1fr }
.grid--3 { grid-template-columns: repeat(3, 1fr) }
.grid--4 { grid-template-columns: repeat(4, 1fr) }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center }
.split > * { min-width: 0 }
.split--wide { grid-template-columns: minmax(0, 1fr) minmax(0, .88fr) }
.stack { display: flex; flex-direction: column }

/* grão de filme */
.grain {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9000;
  pointer-events: none; opacity: var(--grain); mix-blend-mode: overlay;
}

/* halo e grade do hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line) }
.hero__glow { position: absolute; top: -360px; left: 50%; transform: translateX(-50%); width: 1000px; height: 620px; background: radial-gradient(ellipse at 50% 50%, var(--brand-soft) 0%, transparent 66%); pointer-events: none }
.hero__glow--bottom { top: auto; bottom: -320px; height: 540px; width: 900px }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 10%, transparent 85%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 10%, transparent 85%);
}
.hero__inner { position: relative; padding: 104px 0 96px }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 300; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px }
.nav__brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0 }
.nav__brand svg { height: 19px; width: auto; color: var(--text-1) }
.nav__label { font-family: var(--font-n); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--interactive); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap }
.nav__links { display: flex; gap: 2px; align-items: center }
.nav__link { font-size: .83rem; font-weight: 500; color: var(--text-2); padding: 7px 11px; border-radius: var(--r-1); white-space: nowrap; transition: var(--dur-1) var(--ease) }
.nav__link:hover { color: var(--text-1); background: var(--panel-2) }
.nav__right { display: flex; align-items: center; gap: 12px; margin-left: auto }
.nav__sec { font-size: .83rem; font-weight: 500; color: var(--text-2); white-space: nowrap; flex-shrink: 0 }
.nav__burger { display: none; width: 32px; height: 32px; align-items: center; justify-content: center; color: var(--text-1); flex-shrink: 0 }
.icon-btn { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-2); display: flex; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; transition: var(--dur-1) var(--ease) }
.icon-btn:hover { color: var(--text-1); border-color: var(--line-2) }
.icon-btn svg { width: 15px; height: 15px }

.mobile-nav { position: fixed; inset: 0; z-index: 400; display: none; flex-direction: column; padding: 20px var(--pad);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.mobile-nav[data-open="true"] { display: flex; animation: tau-up var(--dur-3) var(--ease) both }
.mobile-nav__close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-2); display: flex; align-items: center; justify-content: center; color: var(--text-2); margin-left: auto }
.mobile-nav__links { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; overflow-y: auto }
.mobile-nav__links a { display: flex; align-items: center; min-height: 52px; font-family: var(--font-d); font-weight: var(--w-d); letter-spacing: var(--tr-m); font-size: 1.55rem; color: var(--text-1) }
.mobile-nav__sec { min-height: 52px; display: flex; align-items: center; font-size: .95rem; color: var(--text-3); margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line) }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; flex-shrink: 0; min-height: 46px;
  font-family: var(--font-b); font-weight: 600; font-size: .94rem; letter-spacing: -.01em;
  padding: 13px 22px; border-radius: var(--r-2); border: 1px solid transparent;
  transition: var(--dur-2) var(--ease);
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0 }
.btn--primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn) }
.btn--primary:hover { color: var(--btn-ink); opacity: .9; transform: translateY(-1px) }
.btn--ghost { color: var(--text-1); border-color: var(--line-control) }
.btn--ghost:hover { color: var(--text-1); background: var(--panel); border-color: var(--text-3) }
.btn--sm { min-height: 44px; font-size: .86rem; padding: 11px 18px }
.btn--nav { min-height: 0; font-size: .84rem; padding: 9px 16px }
.btn--block { width: 100%; min-height: 50px; font-size: .96rem }
.btn[disabled], .btn[aria-disabled="true"] { color: var(--text-4); background: transparent; border-color: var(--line); cursor: not-allowed; transform: none }
.btn--loading { cursor: progress; opacity: .7 }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; font-size: .9rem; color: var(--text-1); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: var(--dur-2) var(--ease) }
.link-arrow:hover { color: var(--interactive); border-color: var(--interactive) }
.link-arrow svg { width: 14px; height: 14px; flex-shrink: 0 }
.link-quiet { color: var(--text-2); border-bottom: 1px solid var(--line-2) }

/* ---------- superfície ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-4); overflow: hidden }
.card--flat { border-radius: var(--r-3) }
.card--accent { border-color: var(--brand-line) }
.card--dashed { border-style: dashed; border-color: var(--line-2) }
.card__pad { padding: var(--pad-card, 30px) 28px }
.card__head { padding: 14px 20px; border-bottom: 1px solid var(--line) }
.card__foot { padding: 14px 20px; border-top: 1px solid var(--line) }
.panel { background: var(--panel-2) }
.hairline { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-4); overflow: hidden }
.hairline > * { background: var(--panel) }
.hairline--grid { display: grid; gap: 1px }
.frame { border: 1px solid var(--line-2); border-radius: var(--r-5); padding: 10px; background: var(--panel); box-shadow: var(--shadow) }

/* ---------- badges e estados ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-n); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-1); white-space: nowrap; flex-shrink: 0 }
.badge--brand { color: var(--interactive); background: var(--brand-soft); border: 1px solid var(--brand-line) }
.badge--quiet { color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line) }
.badge--mia { color: var(--agent-mia); background: var(--agent-mia-soft); border: 1px solid var(--agent-mia-line) }
.badge--leo { color: var(--agent-leo); background: var(--agent-leo-soft); border: 1px solid var(--agent-leo-line) }
.badge--kai { color: var(--agent-kai); background: var(--agent-kai-soft); border: 1px solid var(--agent-kai-line) }
.badge--sm { font-size: .6rem; letter-spacing: .08em; padding: 3px 9px; border-radius: 5px }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; white-space: nowrap }
.state svg { width: 12px; height: 12px; flex-shrink: 0 }
.state--success { color: var(--state-success) }
.state--warning { color: var(--state-warning) }
.state--error { color: var(--state-error) }
.state--info { color: var(--state-info) }
.state--quiet { color: var(--text-3) }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--state-success); flex-shrink: 0; position: relative }
.dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--state-success); animation: tau-ping 2.4s ease-out infinite }
.dot--static::after { display: none }
.dot--sm { width: 5px; height: 5px }

/* chip de agente */
.agent-chip { width: 22px; height: 22px; border-radius: var(--r-1); display: flex; align-items: center; justify-content: center; font-family: var(--font-n); font-size: .6rem; font-weight: 500; flex-shrink: 0 }
.agent-chip--mia { background: var(--agent-mia); color: var(--on-mia) }
.agent-chip--leo { background: var(--agent-leo); color: var(--on-leo) }
.agent-chip--kai { background: var(--agent-kai); color: var(--on-kai) }
.agent-chip--lg { width: 26px; height: 26px; font-size: .62rem }
.ink-mia { color: var(--agent-mia) }
.ink-leo { color: var(--agent-leo) }
.ink-kai { color: var(--agent-kai) }
.ink-brand { color: var(--interactive) }
.ink-1 { color: var(--text-1) }
.ink-2 { color: var(--text-2) }
.ink-3 { color: var(--text-3) }

/* card de agente com subgrid */
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 20px }
.agent-grid--2 { grid-template-columns: 1fr 1fr }
.agent-card { display: grid; grid-template-rows: subgrid; grid-row: span 2 }
.agent-card__body { padding: 30px 28px 26px }
.agent-card__foot { border-top: 1px solid var(--line); background: var(--panel-2); padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px }
.bullet { display: flex; gap: 9px; align-items: flex-start; font-size: .8rem; line-height: 1.5; color: var(--text-2) }
.bullet::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-top: 7px; flex-shrink: 0 }
.feat { display: flex; gap: 10px; align-items: flex-start; font-size: .89rem; line-height: 1.55; color: var(--text-2) }
.feat svg { width: 13px; height: 13px; margin-top: 5px; flex-shrink: 0; color: var(--interactive) }

/* ---------- conversa ---------- */
.chat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-4); overflow: hidden }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line) }
.chat__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--panel-2) }
.chat__day { align-self: center; font-family: var(--font-n); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding-bottom: 4px }
.bubble { max-width: 84%; border: 1px solid var(--line); border-radius: var(--r-3); padding: 9px 12px 7px; background: var(--panel) }
.bubble p { font-size: .83rem; line-height: 1.5; color: var(--text-1) }
.bubble time { display: block; text-align: right; font-family: var(--font-n); font-variant-numeric: tabular-nums; font-size: .6rem; color: var(--text-3); margin-top: 3px }
.bubble--in { align-self: flex-start; border-bottom-left-radius: 4px }
.bubble--out { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--brand-soft); border-color: var(--brand-line) }
.bubble--proof { align-self: flex-start; border-bottom-left-radius: 4px; display: flex; gap: 9px; align-items: center; padding: 11px 13px }
.chat__foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line) }

/* ---------- dado ---------- */
.stat { padding: 30px 26px; background: var(--bg-1) }
.stat__label { font-size: .85rem; line-height: 1.5; color: var(--text-2); margin-top: 8px }
.bar { height: 4px; border-radius: 99px; background: var(--panel-2); overflow: hidden }
.bar__fill { height: 100%; border-radius: 99px; background: var(--chart-primary); transform-origin: left }
.bar__fill--anim { animation: tau-bar 1.1s var(--ease) .3s both }
.bar-row { display: flex; justify-content: space-between; font-size: .79rem; color: var(--text-2); margin-bottom: 6px }
.kv { display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; color: var(--text-2) }
.kv > span:last-child { color: var(--text-1); text-align: right; flex-shrink: 0 }

/* marquee */
.marquee { border-bottom: 1px solid var(--line); background: var(--bg-1); overflow: hidden }
.marquee__track { display: flex; width: max-content; animation: tau-marquee 44s linear infinite }
.marquee__item { display: flex; align-items: baseline; gap: 10px; padding: 15px 32px; border-right: 1px solid var(--line); white-space: nowrap; flex-shrink: 0 }
.marquee__item .num { font-size: .92rem; letter-spacing: -.02em }
.marquee__item span:last-child { font-size: .76rem; color: var(--text-3) }

/* steps: primeira coluna na margem, última sem divisor */
.steps { display: grid; border-top: 1px solid var(--line) }
.steps--3 { grid-template-columns: repeat(3, 1fr) }
.steps--4 { grid-template-columns: repeat(4, 1fr) }
.steps > div { padding: 30px 26px 32px; border-right: 1px solid var(--line) }
.steps > div:first-child { padding-left: 0 }
.steps > div:last-child { border-right: none }
.steps .eyebrow { margin-bottom: 18px }
.steps h3, .steps h4 { margin-bottom: 11px }

/* ---------- formulário ---------- */
.field { display: block }
.field__label { display: block; font-family: var(--font-n); font-size: .64rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px }
.input, .select, .textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line-control); border-radius: var(--r-2);
  padding: 12px 13px; font-size: .9rem; color: var(--text-1); outline: none; min-height: 46px;
  transition: var(--dur-1) var(--ease);
}
.textarea { min-height: 0; resize: vertical; line-height: 1.6 }
.input:focus, .select:focus, .textarea:focus { border-color: var(--focus); background: var(--panel) }
.input--mono { font-family: var(--font-n); font-variant-numeric: tabular-nums }
.input-group { display: flex; align-items: stretch; background: var(--panel-2); border: 1px solid var(--line-control); border-radius: var(--r-2); overflow: hidden }
.input-group__prefix { font-family: var(--font-n); font-size: .82rem; color: var(--text-3); padding: 0 12px; border-right: 1px solid var(--line); display: flex; align-items: center; flex-shrink: 0 }
.input-group input { flex: 1; min-width: 0; background: none; border: none; padding: 13px; font-family: var(--font-n); font-variant-numeric: tabular-nums; font-size: .95rem; color: var(--text-1); outline: none }
.field[data-invalid="true"] .input, .field[data-invalid="true"] .select, .field[data-invalid="true"] .input-group { border-color: var(--state-error) }
.field__error { display: none; gap: 6px; align-items: center; font-size: .75rem; color: var(--state-error); margin-top: 7px }
.field__error svg { width: 11px; height: 11px; flex-shrink: 0 }
.field[data-invalid="true"] .field__error { display: flex }
.field__help { font-size: .76rem; line-height: 1.5; color: var(--text-3); margin-top: 7px }
.input--readonly { background: transparent; border-style: dashed; color: var(--text-3); cursor: default }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .87rem; line-height: 1.6; color: var(--text-2) }
.check input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--interactive) }
input[type="range"] { width: 100%; accent-color: var(--interactive) }
.range-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-n); font-size: .66rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px }
.range-head > span:last-child { color: var(--text-1); flex-shrink: 0 }

/* callout */
.callout { display: flex; gap: 13px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--panel); padding: 20px 24px }
.callout svg { width: 15px; height: 15px; margin-top: 4px; flex-shrink: 0; color: var(--text-3) }
.callout p { font-size: .9rem; line-height: 1.65; color: var(--text-2) }
.callout--success { border-color: var(--state-success); background: var(--state-success-soft) }
.callout--success svg { color: var(--state-success) }
.callout--warning svg { color: var(--state-warning) }
.callout--brand { border-color: var(--brand-line) }
.callout--brand svg { color: var(--interactive) }
.callout--quiet { background: var(--panel-2) }

/* planos */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto auto; gap: 20px }
.plans--2 { grid-template-columns: 1fr 1fr }
.plan { display: grid; grid-template-rows: subgrid; grid-row: span 3 }
.plan__top { padding: 30px 28px 0 }
.plan__name { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; min-height: 24px }
.plan__price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 10px }
.plan__price .num { font-size: 2.1rem; letter-spacing: -.04em }
.plan__price .num--sm { font-size: 1.5rem }
.plan__price small { font-family: var(--font-n); font-size: .82rem; color: var(--text-3) }
.plan__desc { font-size: .87rem; line-height: 1.6; color: var(--text-2); padding-bottom: 26px }
.plan__feats { border-top: 1px solid var(--line); padding: 24px 28px; display: flex; flex-direction: column; gap: 12px }
.plan__cta { padding: 0 28px 28px; display: flex; flex-direction: column; gap: 12px }
.plan__sub { font-size: .78rem; color: var(--text-3); text-align: center }

/* faq */
.faq { border-top: 1px solid var(--line) }
.faq details { border-bottom: 1px solid var(--line) }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; cursor: pointer; font-family: var(--font-d); font-weight: var(--w-d); letter-spacing: var(--tr-m); font-size: 1.05rem; color: var(--text-1); min-height: 44px }
.faq summary svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-3); transition: transform var(--dur-2) var(--ease) }
.faq details[open] summary svg { transform: rotate(45deg) }
.faq p { font-size: .94rem; line-height: 1.7; color: var(--text-2); padding: 0 40px 24px 2px }

/* barra fixa mobile */
.sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 250;
  align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}

/* rodapé */
.footer { border-top: 1px solid var(--line); background: var(--bg) }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 56px 0 36px }
.footer__tagline { font-size: .85rem; line-height: 1.65; color: var(--text-3); max-width: 250px; margin-bottom: 20px }
.footer__col { display: flex; flex-direction: column; gap: 11px }
.footer__col-title { font-family: var(--font-n); font-size: .64rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px }
.footer__col a { font-size: .86rem; color: var(--text-2); transition: var(--dur-1) var(--ease) }
.footer__col a:hover { color: var(--text-1) }
.footer__social { display: flex; gap: 10px }
.footer__social a { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--r-2); display: flex; align-items: center; justify-content: center; color: var(--text-3); transition: var(--dur-1) var(--ease) }
.footer__social a:hover { color: var(--text-1); border-color: var(--line-2) }
.footer__social svg { width: 14px; height: 14px }
.footer__legal { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 36px; border-top: 1px solid var(--line) }
.footer__legal span { font-size: .76rem; line-height: 1.5; color: var(--text-3) }

/* ---------- motion ---------- */
@keyframes tau-up { from { opacity: 0; transform: translateY(18px); filter: blur(6px) } to { opacity: 1; transform: none; filter: blur(0) } }
@keyframes tau-ping { 0% { transform: scale(1); opacity: .4 } 70%, 100% { transform: scale(2.6); opacity: 0 } }
@keyframes tau-marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes tau-bar { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes tau-spin { to { transform: rotate(360deg) } }
@keyframes tau-pop { from { opacity: 0; transform: scale(.82) } to { opacity: 1; transform: none } }
.spin { animation: tau-spin 700ms linear infinite }
.enter { animation: tau-up .8s var(--ease) both }
.enter-1 { animation-delay: .08s }
.enter-2 { animation-delay: .16s }
.enter-3 { animation-delay: .24s }
.enter-4 { animation-delay: .32s }
.reveal { opacity: 0; transform: translateY(20px); filter: blur(5px); transition: opacity var(--dur-4) var(--ease), transform var(--dur-4) var(--ease), filter var(--dur-4) var(--ease) }
.reveal.is-in { opacity: 1; transform: none; filter: none }

/* ---------- utilidades ---------- */
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.row--tight { gap: 8px }
.push { margin-left: auto }
.center { text-align: center }
.nowrap { white-space: nowrap }
.hide { display: none }
.mt-s { margin-top: 16px } .mt-m { margin-top: 24px } .mt-l { margin-top: 40px }
.mb-s { margin-bottom: 16px } .mb-m { margin-bottom: 24px } .mb-l { margin-bottom: 40px }
.maxw-44 { max-width: 44ch } .maxw-48 { max-width: 48ch } .maxw-52 { max-width: 52ch } .maxw-56 { max-width: 56ch } .maxw-68 { max-width: 68ch }
.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 }

/* ---------- breakpoints ---------- */
@media (max-width: 940px) {
  .section { padding: 80px 0 }
  .hero__inner { padding: 56px 0 64px }
  .split, .split--wide { grid-template-columns: 1fr !important; gap: 32px }
  .grid--2, .grid--3, .grid--4, .agent-grid, .agent-grid--2, .plans, .plans--2 { grid-template-columns: 1fr !important }
  [data-split] { grid-template-columns: 1fr !important }
  [data-split-side] { border-left: 0 !important; border-top: 1px solid var(--line) }
  .steps--3, .steps--4 { grid-template-columns: 1fr }
  .steps > div { border-right: none; padding-left: 0; border-bottom: 1px solid var(--line) }
  .steps > div:last-child { border-bottom: none }
  .nav__links, .nav__sec, .nav__right .btn { display: none }
  .nav__burger { display: flex }
  .sticky-bar { display: flex }
  .has-sticky .footer { padding-bottom: 76px }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px }
}
@media (max-width: 620px) {
  .grid--4.grid--half-sm { grid-template-columns: 1fr 1fr !important }
  .footer__grid { grid-template-columns: 1fr }
}
