/* ═══════════════════════════════════════════════════════════════════════════
   dooing.ai — site institucional
   HTML/CSS/JS puro. Tokens herdados do design system do app (monocromático,
   oklch, Inter, radius 0.45rem). Semânticas: verde=vivo, âmbar=rotina ⚡.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --background: oklch(0.995 0 0);
  --foreground: oklch(0.145 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.5 0 0);
  --card: oklch(1 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --border: oklch(0.922 0 0);
  --line: oklch(0.145 0 0 / 7%);          /* linhas estruturais do grid */
  --line-strong: oklch(0.145 0 0 / 14%);
  --cross: oklch(0.145 0 0 / 32%);         /* o "+" nos cruzamentos */
  --chat-bg: oklch(0.945 0 0);
  --bubble-mine: oklch(1 0 0);
  --live: oklch(0.72 0.19 149);             /* verde semântico: online/vivo */
  --routine: oklch(0.78 0.16 75);           /* âmbar semântico: rotina ⚡ */
  --shadow: 0 1px 2px oklch(0 0 0 / 5%), 0 8px 32px oklch(0 0 0 / 6%);
  --shadow-lift: 0 2px 6px oklch(0 0 0 / 7%), 0 24px 64px oklch(0 0 0 / 10%);
  --radius: 0.45rem;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Comfortaa', var(--font-sans); /* a fonte do logotipo, nos títulos */
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --topbar-h: 4rem;
  --frame-w: min(76rem, calc(100vw - 2rem));
  color-scheme: light;
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --muted: oklch(0.205 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --card: oklch(0.185 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --border: oklch(1 0 0 / 10%);
  --line: oklch(1 0 0 / 13%);
  --line-strong: oklch(1 0 0 / 24%);
  --cross: oklch(1 0 0 / 45%);
  --chat-bg: oklch(0.125 0 0);
  --bubble-mine: oklch(0.35 0 0);
  --shadow: 0 1px 2px oklch(0 0 0 / 30%), 0 8px 32px oklch(0 0 0 / 35%);
  --shadow-lift: 0 2px 6px oklch(0 0 0 / 35%), 0 24px 64px oklch(0 0 0 / 45%);
  color-scheme: dark;
}

/* ─── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 3rem); }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--foreground); color: var(--background); }

/* Comfortaa é arredondada e de x-height baixa: tracking quase neutro + um fio a mais de entrelinha.
   Ela para no peso 700 — o text-stroke na própria cor engorda além, preservando os terminais redondos. */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  -webkit-text-stroke: 0.022em currentColor;
  letter-spacing: -0.005em;
  line-height: 1.18;
  text-wrap: balance;
}

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

/* Transição de tema — onda circular (View Transitions), como no app. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 1; }
::view-transition-old(root) { z-index: 0; }

/* ─── Rótulos técnicos em mono: [ FEITO ], [ PIX ]… ──────────────────────── */
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}
.tag::before { content: '[ '; opacity: 0.55; }
.tag::after { content: ' ]'; opacity: 0.55; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1.1rem;
}
.kicker::before { content: '+'; color: var(--cross); font-size: 1rem; font-weight: 400; }

/* ─── A moldura: linhas verticais que atravessam o site ──────────────────── */
.frame {
  position: relative;
  width: var(--frame-w);
  margin-inline: auto;
  /* respiro do palco: o conteúdo não cola nas linhas fortes; os + (absolutos)
     seguem ancorados na borda externa, em cima do cruzamento */
  padding-inline: 12px;
}
/* linhas verticais contínuas nas bordas do conteúdo */
body::before, body::after {
  content: '';
  position: fixed;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line-strong);
  z-index: 0;
  pointer-events: none;
}
body::before { left: calc(50% - var(--frame-w) / 2); }
body::after { right: calc(50% - var(--frame-w) / 2); }

/* grid fino de fundo (células), bem sutil, com leve deriva por parallax JS */
.gridfield {
  position: fixed;
  inset: -80px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, transparent 0, #000 6rem, #000 calc(100% - 6rem), transparent 100%);
  will-change: transform;
}

/* ─── Cruzamentos: o “+” (e o ∞ raro) ─────────────────────────────────────── */
.cross {
  position: absolute;
  width: 17px; height: 17px;
  color: var(--cross);
  pointer-events: none;
  z-index: 2;
}
.cross::before, .cross::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.cross::before { left: 8px; top: 0; width: 1px; height: 17px; }
.cross::after { left: 0; top: 8px; width: 17px; height: 1px; }
.cross.tl { top: -8.5px; left: -8.5px; }
.cross.tr { top: -8.5px; right: -8.5px; }
.cross.bl { bottom: -8.5px; left: -8.5px; }
.cross.br { bottom: -8.5px; right: -8.5px; }
/* o easter egg: em cruzamentos raros, o + vira ∞ */
.cross.loop::before, .cross.loop::after { display: none; }
.cross.loop {
  width: 27px; height: 14px;
  top: -7px; left: -13.5px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%20124%20512%20264'%3E%3Cpath%20d%3D'M501.98%2C206.15c-9.769-23.023-25.998-42.56-46.458-56.389c-10.181-6.873-21.446-12.34-33.536-16.068c-12.009-3.809-24.842-5.798-38.088-5.798c-16.982%2C0-33.294%2C3.316-48.197%2C9.365c-1.246%2C0.492-2.402%2C0.986-3.558%2C1.568c-13.416%2C5.879-25.675%2C14.16-36.188%2C24.017c-3.396%2C3.227-6.623%2C6.623-9.858%2C10.432c-5.709%2C6.542-11.588%2C14.079-17.305%2C21.696c-1.157%2C1.568-2.402%2C3.226-3.558%2C4.804c-3.146%2C4.302-33.212%2C48.358-38.509%2C56.226c-2.652%2C3.97-5.798%2C8.442-9.195%2C13.327c-0.744%2C1.076-1.568%2C2.24-2.393%2C3.396c-5.636%2C8.031-11.928%2C16.481-17.726%2C23.937c-2.895%2C3.72-5.798%2C7.197-8.281%2C10.1c-2.563%2C2.976-4.884%2C5.378-6.542%2C6.954c-7.116%2C6.704-15.486%2C12.171-24.672%2C15.899c-9.194%2C3.728-19.214%2C5.798-29.816%2C5.798c-7.286%2C0-14.322-0.996-20.944-2.815c-3.396-0.913-6.712-2.07-9.939-3.477c-14.248-5.968-26.419-16.068-34.95-28.74c-4.302-6.372-7.699-13.327-10.019-20.783c-2.233-7.456-3.558-15.316-3.558-23.597c0-11.014%2C2.24-21.365%2C6.21-30.892c6.049-14.24%2C16.149-26.329%2C28.821-34.942c6.372-4.31%2C13.326-7.618%2C20.782-9.939c7.448-2.321%2C15.316-3.638%2C23.597-3.638c10.602%2C0.08%2C20.622%2C2.07%2C29.816%2C5.79c9.187%2C3.808%2C17.556%2C9.194%2C24.672%2C15.898c1.658%2C1.577%2C3.979%2C4.059%2C6.542%2C6.962c4.472%2C5.216%2C9.769%2C11.92%2C15.074%2C18.964c2.07%2C2.814%2C4.14%2C5.628%2C6.21%2C8.523c7.949-11.588%2C21.858-31.959%2C29.144-42.48c-1.237-1.658-2.482-3.307-3.72-4.965c-3.316-4.23-6.631-8.281-9.938-12.009c-3.316-3.809-6.462-7.205-9.858-10.432c-11.426-10.772-24.922-19.545-39.746-25.586c-14.904-6.049-31.222-9.365-48.196-9.365c-17.637%2C0-34.53%2C3.566-49.927%2C10.108c-23.022%2C9.688-42.487%2C25.918-56.316%2C46.369c-6.873%2C10.19-12.332%2C21.527-16.141%2C33.536C1.989%2C229.997%2C0%2C242.75%2C0%2C256.004c0%2C17.637%2C3.558%2C34.53%2C10.02%2C49.846c9.768%2C23.104%2C25.998%2C42.569%2C46.369%2C56.397c10.27%2C6.874%2C21.535%2C12.332%2C33.624%2C16.141c12.008%2C3.728%2C24.842%2C5.717%2C38.088%2C5.717c16.974%2C0%2C33.293-3.316%2C48.196-9.356c14.824-6.049%2C28.239-14.824%2C39.666-25.506l0.08-0.081c3.397-3.146%2C6.543-6.631%2C9.858-10.44c5.709-6.542%2C11.588-14.071%2C17.305-21.689c1.157-1.577%2C2.402-3.154%2C3.558-4.723c3.146-4.391%2C44.307-64.758%2C47.696-69.642c0.752-1.076%2C1.577-2.232%2C2.401-3.396c5.637-7.95%2C11.928-16.48%2C17.726-23.928c2.895-3.728%2C5.798-7.206%2C8.281-10.101c2.564-2.984%2C4.885-5.386%2C6.542-6.962c7.116-6.704%2C15.486-12.09%2C24.673-15.898c2.24-0.906%2C4.472-1.649%2C6.792-2.402c7.286-2.15%2C14.984-3.307%2C23.023-3.388c11.013%2C0.08%2C21.446%2C2.232%2C30.882%2C6.291c14.241%2C5.96%2C26.42%2C16.06%2C34.943%2C28.732c4.31%2C6.38%2C7.706%2C13.335%2C10.019%2C20.782c2.321%2C7.456%2C3.566%2C15.324%2C3.566%2C23.605c0%2C11.014-2.24%2C21.446-6.21%2C30.883c-6.049%2C14.24-16.149%2C26.419-28.821%2C34.942c-6.372%2C4.31-13.326%2C7.707-20.782%2C9.939c-7.367%2C2.321-15.316%2C3.648-23.597%2C3.648c-10.602%2C0-20.622-2.07-29.816-5.798c-9.187-3.728-17.557-9.195-24.673-15.899c-1.658-1.577-3.979-4.059-6.542-6.954c-4.472-5.135-9.776-11.928-15.074-18.963c-2.15-2.815-4.221-5.718-6.291-8.613c-0.663%2C0.994-1.326%2C1.99-2.07%2C3.065c-13.666%2C20.039-22.279%2C32.71-26.994%2C39.576c1.237%2C1.658%2C2.483%2C3.235%2C3.72%2C4.893c3.316%2C4.221%2C6.631%2C8.281%2C9.938%2C12c3.234%2C3.808%2C6.462%2C7.294%2C9.858%2C10.44c11.426%2C10.763%2C24.923%2C19.538%2C39.746%2C25.587c14.904%2C6.04%2C31.215%2C9.356%2C48.197%2C9.356c17.636%2C0%2C34.53-3.558%2C49.846-10.019c23.103-9.769%2C42.56-25.999%2C56.396-46.458c6.866-10.181%2C12.421-21.446%2C16.141-33.536C510.01%2C282.083%2C512%2C269.25%2C512%2C256.004C512%2C238.367%2C508.442%2C221.474%2C501.98%2C206.15z'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%20124%20512%20264'%3E%3Cpath%20d%3D'M501.98%2C206.15c-9.769-23.023-25.998-42.56-46.458-56.389c-10.181-6.873-21.446-12.34-33.536-16.068c-12.009-3.809-24.842-5.798-38.088-5.798c-16.982%2C0-33.294%2C3.316-48.197%2C9.365c-1.246%2C0.492-2.402%2C0.986-3.558%2C1.568c-13.416%2C5.879-25.675%2C14.16-36.188%2C24.017c-3.396%2C3.227-6.623%2C6.623-9.858%2C10.432c-5.709%2C6.542-11.588%2C14.079-17.305%2C21.696c-1.157%2C1.568-2.402%2C3.226-3.558%2C4.804c-3.146%2C4.302-33.212%2C48.358-38.509%2C56.226c-2.652%2C3.97-5.798%2C8.442-9.195%2C13.327c-0.744%2C1.076-1.568%2C2.24-2.393%2C3.396c-5.636%2C8.031-11.928%2C16.481-17.726%2C23.937c-2.895%2C3.72-5.798%2C7.197-8.281%2C10.1c-2.563%2C2.976-4.884%2C5.378-6.542%2C6.954c-7.116%2C6.704-15.486%2C12.171-24.672%2C15.899c-9.194%2C3.728-19.214%2C5.798-29.816%2C5.798c-7.286%2C0-14.322-0.996-20.944-2.815c-3.396-0.913-6.712-2.07-9.939-3.477c-14.248-5.968-26.419-16.068-34.95-28.74c-4.302-6.372-7.699-13.327-10.019-20.783c-2.233-7.456-3.558-15.316-3.558-23.597c0-11.014%2C2.24-21.365%2C6.21-30.892c6.049-14.24%2C16.149-26.329%2C28.821-34.942c6.372-4.31%2C13.326-7.618%2C20.782-9.939c7.448-2.321%2C15.316-3.638%2C23.597-3.638c10.602%2C0.08%2C20.622%2C2.07%2C29.816%2C5.79c9.187%2C3.808%2C17.556%2C9.194%2C24.672%2C15.898c1.658%2C1.577%2C3.979%2C4.059%2C6.542%2C6.962c4.472%2C5.216%2C9.769%2C11.92%2C15.074%2C18.964c2.07%2C2.814%2C4.14%2C5.628%2C6.21%2C8.523c7.949-11.588%2C21.858-31.959%2C29.144-42.48c-1.237-1.658-2.482-3.307-3.72-4.965c-3.316-4.23-6.631-8.281-9.938-12.009c-3.316-3.809-6.462-7.205-9.858-10.432c-11.426-10.772-24.922-19.545-39.746-25.586c-14.904-6.049-31.222-9.365-48.196-9.365c-17.637%2C0-34.53%2C3.566-49.927%2C10.108c-23.022%2C9.688-42.487%2C25.918-56.316%2C46.369c-6.873%2C10.19-12.332%2C21.527-16.141%2C33.536C1.989%2C229.997%2C0%2C242.75%2C0%2C256.004c0%2C17.637%2C3.558%2C34.53%2C10.02%2C49.846c9.768%2C23.104%2C25.998%2C42.569%2C46.369%2C56.397c10.27%2C6.874%2C21.535%2C12.332%2C33.624%2C16.141c12.008%2C3.728%2C24.842%2C5.717%2C38.088%2C5.717c16.974%2C0%2C33.293-3.316%2C48.196-9.356c14.824-6.049%2C28.239-14.824%2C39.666-25.506l0.08-0.081c3.397-3.146%2C6.543-6.631%2C9.858-10.44c5.709-6.542%2C11.588-14.071%2C17.305-21.689c1.157-1.577%2C2.402-3.154%2C3.558-4.723c3.146-4.391%2C44.307-64.758%2C47.696-69.642c0.752-1.076%2C1.577-2.232%2C2.401-3.396c5.637-7.95%2C11.928-16.48%2C17.726-23.928c2.895-3.728%2C5.798-7.206%2C8.281-10.101c2.564-2.984%2C4.885-5.386%2C6.542-6.962c7.116-6.704%2C15.486-12.09%2C24.673-15.898c2.24-0.906%2C4.472-1.649%2C6.792-2.402c7.286-2.15%2C14.984-3.307%2C23.023-3.388c11.013%2C0.08%2C21.446%2C2.232%2C30.882%2C6.291c14.241%2C5.96%2C26.42%2C16.06%2C34.943%2C28.732c4.31%2C6.38%2C7.706%2C13.335%2C10.019%2C20.782c2.321%2C7.456%2C3.566%2C15.324%2C3.566%2C23.605c0%2C11.014-2.24%2C21.446-6.21%2C30.883c-6.049%2C14.24-16.149%2C26.419-28.821%2C34.942c-6.372%2C4.31-13.326%2C7.707-20.782%2C9.939c-7.367%2C2.321-15.316%2C3.648-23.597%2C3.648c-10.602%2C0-20.622-2.07-29.816-5.798c-9.187-3.728-17.557-9.195-24.673-15.899c-1.658-1.577-3.979-4.059-6.542-6.954c-4.472-5.135-9.776-11.928-15.074-18.963c-2.15-2.815-4.221-5.718-6.291-8.613c-0.663%2C0.994-1.326%2C1.99-2.07%2C3.065c-13.666%2C20.039-22.279%2C32.71-26.994%2C39.576c1.237%2C1.658%2C2.483%2C3.235%2C3.72%2C4.893c3.316%2C4.221%2C6.631%2C8.281%2C9.938%2C12c3.234%2C3.808%2C6.462%2C7.294%2C9.858%2C10.44c11.426%2C10.763%2C24.923%2C19.538%2C39.746%2C25.587c14.904%2C6.04%2C31.215%2C9.356%2C48.197%2C9.356c17.636%2C0%2C34.53-3.558%2C49.846-10.019c23.103-9.769%2C42.56-25.999%2C56.396-46.458c6.866-10.181%2C12.421-21.446%2C16.141-33.536C510.01%2C282.083%2C512%2C269.25%2C512%2C256.004C512%2C238.367%2C508.442%2C221.474%2C501.98%2C206.15z'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}
.cross.loop.tr { left: auto; right: -13.5px; }
.cross.loop.bl { top: auto; bottom: -7px; }
.cross.loop.br { top: auto; left: auto; right: -13.5px; bottom: -7px; }

/* seções delimitadas por linha horizontal — o cruzamento com as verticais gera os + */
.section {
  position: relative;
  border-top: 1px solid var(--line-strong);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.section > .frame { position: relative; }

/* ─── Barra de anúncio ────────────────────────────────────────────────────── */
.announce {
  position: relative;
  z-index: 5;
  display: block;
  background: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
}
.announce strong { font-weight: 700; }
/* no escuro a faixa fica grafite (barra branca gritaria no topo do tema dark) */
.dark .announce { background: oklch(0.09 0 0); color: oklch(0.985 0 0); border-bottom: 1px solid oklch(1 0 0 / 12%); }
.announce .arrow { display: inline-block; transition: transform 0.2s ease; }
.announce:hover .arrow { transform: translateX(4px); }

/* ─── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: color-mix(in oklab, var(--background) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-strong);
}
.topbar .frame {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand img { height: 2.4rem; width: auto; }
.brand .logo-dark { display: none; }
.dark .brand .logo-light { display: none; }
.dark .brand .logo-dark { display: block; }

.nav { display: flex; gap: 0.25rem; margin-inline: auto; }
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover, .nav a.active { color: var(--foreground); background: var(--muted); }

.topbar-actions { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }

/* ─── Botões ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--foreground); background: var(--card); }
.btn-ghost:hover { border-color: var(--muted-foreground); }
.btn-lg { font-size: 1.02rem; padding: 0.85rem 1.7rem; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { color: var(--foreground); border-color: var(--muted-foreground); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle .moon { display: none; }
.dark .theme-toggle .sun { display: none; }
.dark .theme-toggle .moon { display: block; }
.nowrap {
  white-space: nowrap;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  border-top: 0;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
  text-align: center;
  overflow: clip;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.9;
  pointer-events: none;
}
.hero .frame { display: flex; flex-direction: column; align-items: center; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 70%, transparent);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  transition: border-color 0.2s ease;
}
.hero-pill:hover { border-color: var(--muted-foreground); }
.hero-pill .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--live);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--live) 55%, transparent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--live) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 21ch;
  margin-inline: auto;
}
.hero h1 .inf {
  display: inline-block;
  font-weight: 700;
  font-feature-settings: normal;
}
.hero h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
/* sublinhado desenhado à mão sob a palavra-chave */
.hero h1 em::after {
  content: '';
  position: absolute;
  left: -1%; right: -1%; bottom: -0.06em;
  height: 0.05em;
  background: currentColor;
  opacity: 0.18;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: draw-under 0.9s cubic-bezier(0.6, 0, 0.2, 1) 0.5s forwards;
}
@keyframes draw-under { to { transform: scaleX(1); } }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 52ch;
  margin: 1.5rem auto 0;
  text-wrap: pretty;
}
.hero-sub strong { color: var(--foreground); font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.4rem;
}
.hero-proof {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 2rem;
  list-style: none;
  padding: 0;
}

/* rótulos flutuantes nas margens do hero (estilo blueprint) */
.hero-marginalia { position: absolute; inset: 0; pointer-events: none; }
.hero-marginalia .tag { position: absolute; opacity: 0; animation: fade-in 1s ease 1s forwards; }
@keyframes fade-in { to { opacity: 1; } }

/* ─── Janela de demo (o chat) ─────────────────────────────────────────────── */
.demo-window {
  position: relative;
  width: min(46rem, 100%);
  margin: 3.6rem auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  text-align: left;
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}
.demo-titlebar .dots { display: flex; gap: 0.35rem; }
.demo-titlebar .dots span { width: 0.65rem; height: 0.65rem; border-radius: 999px; background: var(--border); }
.demo-titlebar .who {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.85rem; font-weight: 600;
}
.demo-titlebar .avatar {
  position: relative;
  width: 1.7rem; height: 1.7rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  display: grid; place-items: center;
  font-size: 0.8rem;
}
.demo-titlebar .avatar::after {
  content: '';
  position: absolute;
  right: -1px; bottom: -1px;
  width: 0.55rem; height: 0.55rem;
  border-radius: 999px;
  background: var(--live);
  border: 2px solid var(--muted);
}
.demo-titlebar .status { font-size: 0.72rem; font-weight: 400; color: var(--muted-foreground); }

.demo-chat {
  min-height: 21rem;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background-color: var(--chat-bg);
  /* wallpaper de ∞, como o palco do chat no app */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Ctext x='28' y='34' font-size='20' text-anchor='middle' fill='%23000' opacity='0.045'%3E%E2%88%9E%3C/text%3E%3C/svg%3E");
  background-size: 56px 56px;
}
.dark .demo-chat {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Ctext x='28' y='34' font-size='20' text-anchor='middle' fill='%23fff' opacity='0.05'%3E%E2%88%9E%3C/text%3E%3C/svg%3E");
}
.msg {
  max-width: 78%;
  padding: 0.6rem 0.9rem;
  border-radius: calc(var(--radius) + 4px);
  font-size: 0.92rem;
  line-height: 1.5;
  box-shadow: 0 1px 1.5px oklch(0 0 0 / 6%);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}
.msg.shown { animation: msg-in 0.35s cubic-bezier(0.3, 0.9, 0.4, 1) forwards; }
@keyframes msg-in { to { opacity: 1; transform: none; } }
.msg.mine { align-self: flex-end; background: var(--bubble-mine); border-bottom-right-radius: 4px; }
.msg.theirs { align-self: flex-start; background: var(--muted); border-bottom-left-radius: 4px; }
.msg .meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted-foreground);
  margin-top: 0.3rem;
  text-align: right;
}
.dark .msg .meta { color: oklch(0.76 0 0); } /* contraste AA sobre a bolha clara do dark */
.msg.event {
  align-self: center;
  max-width: 92%;
  background: color-mix(in oklab, var(--card) 75%, transparent);
  border: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted-foreground);
  box-shadow: none;
  text-align: center;
}
.msg.event .zap { color: oklch(0.52 0.13 75); }
.dark .msg.event .zap { color: var(--routine); }
.typing { display: inline-flex; gap: 0.28rem; align-items: center; padding: 0.2rem 0; }
.typing span {
  width: 0.4rem; height: 0.4rem;
  border-radius: 999px;
  background: var(--muted-foreground);
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.caret {
  display: inline-block;
  width: 1px; height: 1em;
  background: currentColor;
  vertical-align: -0.15em;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ─── Ticker de casos de uso ──────────────────────────────────────────────── */
.ticker {
  margin-top: 3.2rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 0.9rem 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: ticker-scroll 46s linear infinite;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track,
.ticker:focus .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.ticker-item::before { content: '+ '; color: var(--cross); }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ─── Cabeçalho de seção ──────────────────────────────────────────────────── */
.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.section-head p { color: var(--muted-foreground); font-size: 1.08rem; margin-top: 1rem; text-wrap: pretty; }
.section-head p strong { color: var(--foreground); font-weight: 600; }

/* ─── Bento de features ───────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  position: relative;
}
.bento-cell {
  grid-column: span 2;
  background: var(--background);
  padding: 1.8rem 1.6rem;
  position: relative;
  transition: background 0.25s ease;
  overflow: hidden;
}
.bento-cell:hover { background: var(--muted); }
.bento-cell.wide { grid-column: span 4; }
.bento-cell .cell-tag { margin-bottom: 2.6rem; display: block; }
.bento-cell h3 { font-size: 1.12rem; margin-bottom: 0.45rem; display: flex; align-items: center; gap: 0.5rem; }
.bento-cell p { font-size: 0.92rem; color: var(--muted-foreground); text-wrap: pretty; }
.bento-cell .glyph {
  position: absolute;
  top: 1.3rem; right: 1.3rem;
  width: 1.5rem; height: 1.5rem;
  color: var(--muted-foreground);
  opacity: 0.85;
  transition: transform 0.3s cubic-bezier(0.3, 0.9, 0.4, 1);
}
.bento-cell:hover .glyph { transform: translateY(-3px); }
.bento-cell .glyph svg { width: 100%; height: 100%; }

/* ─── Rotinas ⚡ (o moat) ──────────────────────────────────────────────────── */
.runs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
  counter-reset: run;
}
.run-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.run-card::before {
  counter-increment: run;
  content: 'execução ' counter(run);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.run-card.routine { border-color: color-mix(in oklab, var(--routine) 45%, var(--border)); }
.run-card.routine::before { content: 'execução ' counter(run) ' →  ∞'; }
.run-card h3 { font-size: 1.05rem; margin: 0.8rem 0 0.4rem; display: flex; gap: 0.45rem; align-items: center; }
.run-card p { font-size: 0.9rem; color: var(--muted-foreground); }
.run-card .price {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.run-card .price small { font-size: 0.7rem; font-weight: 400; color: var(--muted-foreground); display: block; letter-spacing: 0; }
/* âmbar de TEXTO precisa passar AA no claro; o tom cheio fica pro escuro */
.zap { color: oklch(0.52 0.13 75); }
.dark .zap { color: var(--routine); }
.run-arrow {
  position: absolute;
  top: 50%; right: -1.05rem;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  z-index: 2;
  font-family: var(--font-mono);
}

.moat-note {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--muted-foreground);
  max-width: 57rem;
}
.moat-note strong { color: var(--foreground); font-weight: 600; }

/* ─── Preço ───────────────────────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: 1.1fr 0.885fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.price-hero {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}
.price-hero .eq { color: var(--muted-foreground); font-weight: 400; padding-inline: 0.15em; }
.price-hero small {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted-foreground);
  margin-top: 1rem;
  white-space: normal;
  text-wrap: pretty;
}
.price-points { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.pricing > div > .price-points { margin-top: 2.2rem; }
.price-points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.98rem;
}
.price-points li::before {
  content: '+';
  font-family: var(--font-mono);
  color: var(--muted-foreground);
  font-weight: 600;
  line-height: 1.5;
}
.price-points strong { font-weight: 650; }
.price-points .sub { display: block; font-size: 0.86rem; color: var(--muted-foreground); }

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0; /* cantos retos: os + moram nas pontas */
  box-shadow: var(--shadow-lift);
  padding: 2rem;
  position: relative;
}
.price-card .tag { position: absolute; top: -0.55rem; left: 1.4rem; background: var(--background); padding-inline: 0.5rem; }

/* ─── Sob o capô ──────────────────────────────────────────────────────────── */
.underhood {
  background: var(--primary);
  color: var(--primary-foreground);
  --line: oklch(1 0 0 / 8%);
  --line-strong: oklch(1 0 0 / 14%);
  --cross: oklch(1 0 0 / 40%);
  --muted-foreground: oklch(0.75 0 0);
  --border: oklch(1 0 0 / 14%);
  --card: oklch(1 0 0 / 5%);
}
.dark .underhood {
  background: oklch(0.09 0 0);
  color: oklch(0.985 0 0);
}
.underhood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.underhood-cell {
  background: color-mix(in oklab, var(--primary) 92%, white 0%);
  padding: 1.7rem 1.5rem;
}
.underhood .underhood-cell { background: transparent; }
.underhood-grid { background: transparent; }
.underhood-cell { border-right: 1px solid var(--line-strong); }
.underhood-cell:last-child { border-right: 0; }
.underhood-cell h3 { font-size: 1.05rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.underhood-cell p { font-size: 0.9rem; color: var(--muted-foreground); }
.underhood-cell p a { text-decoration: underline; text-underline-offset: 3px; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 46rem; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0.2rem;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  transition: color 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--muted-foreground); }
.faq summary .plus {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted-foreground);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .answer {
  padding: 0 0.2rem 1.3rem;
  color: var(--muted-foreground);
  font-size: 0.96rem;
  max-width: 60ch;
  text-wrap: pretty;
}
.faq .answer strong { color: var(--foreground); font-weight: 600; }

/* ─── CTA final ───────────────────────────────────────────────────────────── */
.finale {
  text-align: center;
  overflow: clip;
}
.finale h2 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.finale p { color: var(--muted-foreground); font-size: 1.1rem; margin-top: 1.2rem; }
.finale .hero-ctas { margin-top: 2.2rem; }
.finale-inf {
  width: clamp(6.5rem, 15vw, 11rem);
  margin: 0 auto 1.6rem;
  color: var(--foreground);
}
.finale-inf svg { width: 100%; height: auto; overflow: visible; }
/* o ∞ da marca: o contorno se desenha (pathLength=1 normaliza) e então preenche */
.finale-inf .loop-path {
  fill: currentColor;
  fill-opacity: 0;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.finale.revealed .loop-path {
  animation:
    draw-loop 1.8s cubic-bezier(0.5, 0, 0.2, 1) forwards,
    fill-loop 0.7s ease 1.5s forwards;
}
@keyframes draw-loop { to { stroke-dashoffset: 0; } }
@keyframes fill-loop { to { fill-opacity: 1; } }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line-strong);
  padding: 5rem 0 2.5rem;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand img { height: 1.4rem; }
.footer-brand .logo-dark { display: none; }
.dark .footer-brand .logo-light { display: none; }
.dark .footer-brand .logo-dark { display: block; }
.footer-brand p { font-size: 0.88rem; color: var(--muted-foreground); margin-top: 0.9rem; padding-left: 15px; max-width: 26ch; }
.footer .footer-head {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.9rem;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.footer ul a { font-size: 0.9rem; color: var(--foreground); opacity: 0.85; display: inline-block; padding-block: 0.3rem; }
.footer ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted-foreground);
}
.footer-legal > span:first-child {
  padding-left: 15px;
}
.footer-legal .made { display: inline-flex; align-items: center; gap: 0.4rem; padding-right: 15px; }

/* ─── Reveal on scroll ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.revealed { animation: reveal-up 0.8s cubic-bezier(0.25, 0.8, 0.3, 1) forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
@keyframes reveal-up { to { opacity: 1; transform: none; } }

/* ─── Responsivo ──────────────────────────────────────────────────────────── */
@media (max-width: 60rem) {
  .nav { display: none; }
  .bento-cell, .bento-cell.wide { grid-column: span 3; }
  .pricing { grid-template-columns: 1fr; }
  .runs { grid-template-columns: 1fr; }
  .run-arrow { display: none; }
  .underhood-grid { grid-template-columns: 1fr; }
  .underhood-cell { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .underhood-cell:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-marginalia { display: none; }
}
@media (max-width: 40rem) {
  .bento-cell, .bento-cell.wide { grid-column: span 6; }
  .hero-ctas .btn { width: 100%; }
  .price-hero { font-size: clamp(2.2rem, 11vw, 3rem); }
  .topbar-actions .btn-ghost { display: none; }
  .hero-canvas { opacity: 0.45; }
}

/* ─── Movimento reduzido ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important; /* mata loops infinitos (ticker, pulse, caret) */
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .msg { opacity: 1; transform: none; }
  .finale .loop-path { stroke-dashoffset: 0; fill-opacity: 1; }
}
