/* =========================================================
   OIOM — acesso antecipado
   Paleta monocromática, bordas 1px, toque de caderno rabiscado
   ========================================================= */

:root {
  --bg: #0e0e0f;
  --bg-2: #141415;
  --surface: #1a1a1c;
  --surface-2: #212123;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f2f2f3;
  --text-2: #d6d6d8;
  --muted: #8d8d92;
  --faint: #55555a;
  --tag-fill: #3a3a3d;
  --glow: 255, 255, 255;          /* brilhos e bordas no hover */
  --on-rgb: 11, 11, 12;           /* texto em cima de var(--text) */
  --window-bg: linear-gradient(160deg, #1d1d1f, #121213);
  --window-shadow: 0 40px 120px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.6), inset 0 1px 0 rgba(var(--glow),0.05);
  --soft-shadow: 0 20px 60px -30px rgba(0,0,0,0.8);
  --nav-bg: rgba(20, 20, 21, 0.72);
  --logo-filter: none;            /* os logos são brancos */
  color-scheme: dark;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --max: 1140px;
}

/* tema claro: escolhido no botão da navbar ou vindo do sistema (ver <head>).
   .theme-dark / .theme-light também servem pra prévia da personalização */
.theme-dark {
  --bg: #0e0e0f; --bg-2: #141415; --surface: #1a1a1c; --surface-2: #212123;
  --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.13);
  --text: #f2f2f3; --text-2: #d6d6d8; --muted: #8d8d92; --faint: #55555a; --tag-fill: #3a3a3d;
  --glow: 255, 255, 255; --on-rgb: 11, 11, 12;
  --window-bg: linear-gradient(160deg, #1d1d1f, #121213);
  --window-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,0,0,0.5), inset 0 1px 0 rgba(var(--glow),0.05);
  --logo-filter: none;
  color-scheme: dark;
}
:root[data-theme="light"], .theme-light {
  --bg: #f5f5f3; --bg-2: #ededea; --surface: #ffffff; --surface-2: #f1f1ee;
  --line: rgba(0, 0, 0, 0.08); --line-2: rgba(0, 0, 0, 0.14);
  --text: #121213; --text-2: #2e2e32; --muted: #66666c; --faint: #9b9ba0; --tag-fill: #dededb;
  --glow: 0, 0, 0; --on-rgb: 250, 250, 250;
  --window-bg: linear-gradient(160deg, #ffffff, #f3f3f1);
  --window-shadow: 0 40px 100px -40px rgba(0,0,0,0.28), 0 0 0 1px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --soft-shadow: 0 20px 60px -34px rgba(0,0,0,0.25);
  --nav-bg: rgba(245, 245, 243, 0.75);
  --logo-filter: invert(1);
  color-scheme: light;
}
.logo { filter: var(--logo-filter); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(var(--glow),0.06), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(var(--glow),0.03), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
em { font-style: normal; border-bottom: 2px solid var(--text); }
::selection { background: var(--text); color: rgb(var(--on-rgb)); }

/* ---------- utilitários ---------- */
.scribble { font-family: var(--hand); font-size: 1.45rem; color: var(--muted); line-height: 1; }
.scribble--sm { font-size: 1.15rem; }
.scribble--xs { font-size: 1rem; }
.grid-paper {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
}
kbd {
  font-family: var(--sans);
  font-size: 0.7rem;
  padding: 2px 7px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-2);
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 0.95rem;
  padding: 12px 20px; border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--text); color: rgb(var(--on-rgb)); box-shadow: 0 0 0 0 rgba(var(--glow),0); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(var(--glow),0.35); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--surface); border-color: rgba(var(--glow),0.22); }
.btn--sm { padding: 8px 14px; font-size: 0.85rem; border-radius: 10px; }
.btn--lg { padding: 15px 24px; font-size: 1rem; }
.win { width: 16px; height: 16px; fill: currentColor; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  width: min(calc(100% - 28px), var(--max));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.nav__mark { width: 30px; height: auto; display: block; transition: transform .5s var(--ease); }
.nav__brand:hover .nav__mark { transform: rotate(-10deg); }
.nav__word { height: 32px; width: auto; display: block; }
.nav__word--sm { height: 25px; opacity: .6; }
.nav__links { display: flex; gap: 28px; font-size: 0.9rem; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }

/* ---------- seções base ---------- */
section { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; display: grid; gap: 14px; justify-items: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head > p:last-child:not(.scribble) { color: var(--muted); font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 48px;
}
.hero__copy { display: grid; gap: 22px; }
.hero__title { font-size: clamp(2.5rem, 4.8vw, 4rem); }
.hero__sub { color: var(--muted); font-size: 1.12rem; max-width: 470px; }
.hero__sub em { color: var(--text); }
.hero__foot { display: grid; gap: 6px; margin-top: -6px; }
.hero__meta { font-size: 0.82rem; color: var(--faint); }
.hero__alt { font-size: 0.86rem; color: var(--muted); }
.hero__alt b { color: var(--text); font-weight: 600; letter-spacing: 0.02em; }
.hero__alt a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.hero__alt a:hover { border-color: var(--text); }
.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; }

/* ---------- acesso antecipado (formulário) ---------- */
.waitlist { width: 100%; max-width: 480px; display: grid; gap: 8px; margin-top: 6px; }
.waitlist--center { margin-inline: auto; }
.waitlist__row { display: flex; gap: 8px; }
.waitlist__input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 1rem; color: var(--text);
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface);
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.waitlist__input::placeholder { color: var(--faint); }
.waitlist__input:hover { border-color: rgba(var(--glow),0.2); }
.waitlist__input:focus { border-color: rgba(var(--glow),0.4); background: var(--surface-2); box-shadow: 0 0 0 4px rgba(var(--glow),0.05); }
.waitlist.is-invalid .waitlist__input { border-color: rgba(var(--glow),0.55); animation: nudge .35s var(--ease); }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.waitlist__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist__msg { font-size: 0.85rem; color: var(--text); min-height: 0; }
.waitlist__msg:empty { display: none; }
.waitlist__msg::before { content: "! "; color: var(--muted); }
.waitlist .btn { justify-content: center; }
.waitlist .btn:disabled { cursor: progress; transform: none; box-shadow: none; opacity: .85; }
.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(var(--on-rgb),0.2); border-top-color: rgb(var(--on-rgb));
  display: none; animation: spin .7s linear infinite;
}
.waitlist.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.waitlist__done {
  display: none; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--line-2); background-color: var(--bg-2);
  text-align: left;
}
.waitlist__done strong { display: block; font-family: var(--hand); font-size: 1.6rem; font-weight: 600; line-height: 1.05; }
.waitlist__done small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.waitlist__tick { width: 22px; height: 22px; border-radius: 50%; background: var(--text); flex: none; position: relative; }
.waitlist__tick::after { content: ""; position: absolute; left: 8px; top: 4.5px; width: 4.5px; height: 9px; border: solid rgb(var(--on-rgb)); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.waitlist.is-done .waitlist__row, .waitlist.is-done .waitlist__msg { display: none; }
.waitlist.is-done .waitlist__done { display: flex; animation: pop .55s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- mockup da janela ---------- */
.window {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--window-bg);
  box-shadow: var(--window-shadow);
  overflow: hidden;
  font-size: 12px;
  text-align: left;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .8s var(--ease);
}
.window:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.ico { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.window__bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; }
.window__logo { width: 17px; height: auto; flex: none; }
.window__center { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.window__search {
  flex: 1; max-width: 270px; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 7px 5px 10px; font-size: 11px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--surface); color: var(--faint); white-space: nowrap; overflow: hidden;
}
.window__search span { color: var(--muted); }
.window__search kbd { margin-left: auto; font-size: 8.5px; padding: 1px 5px; }
.window__ctrls { display: flex; gap: 14px; flex: none; }
.window__ctrls i { width: 9px; height: 9px; border: 1px solid var(--faint); border-radius: 2px; }
.window__ctrls i:first-child { height: 0; border-width: 1px 0 0; align-self: center; }
/* último botão: fechar (X) */
.window__ctrls i:last-child { position: relative; border: 0; }
.window__ctrls i:last-child::before, .window__ctrls i:last-child::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px;
  background: var(--faint); transform: translate(-50%, -50%) rotate(45deg);
}
.window__ctrls i:last-child::after { transform: translate(-50%, -50%) rotate(-45deg); }
/* placeholder: barrinhas no lugar de texto, pra janela não pesar */
.ph { display: block; height: 6px; width: 64px; max-width: 100%; border-radius: 4px; background: var(--line-2); flex: none; }
.ph--s { width: 42px; }
.window__body { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; padding: 2px 12px 14px; }

/* sidebar do mockup */
.side {
  display: flex; flex-direction: column; gap: 2px;
  padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
  color: var(--text-2); min-height: 320px; min-width: 0;
}
.side em { font-style: normal; border: 0; overflow: hidden; text-overflow: ellipsis; }
.side__nav { display: grid; gap: 1px; }
.side__nav span { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; white-space: nowrap; font-size: 11px; min-width: 0; }
.side__nav .is-active { background: var(--surface-2); position: relative; color: var(--text); font-weight: 600; }
.side__nav .is-active::before { content: ""; position: absolute; left: -4px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--text); }

.window__main { display: grid; gap: 2px; align-content: start; min-width: 0; }
.window__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.window__h { font-size: 21px; margin-bottom: 10px; }
.window__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.window__col { display: grid; gap: 8px; min-width: 0; }
.focus { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; display: grid; gap: 6px; background-color: var(--bg-2); min-width: 0; }
.focus__top { display: flex; justify-content: space-between; align-items: center; }
.label { white-space: nowrap; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.focus__title { font-size: 15px; letter-spacing: -0.02em; }
.focus__meta { color: var(--muted); font-size: 10px; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.tag { font-weight: 600; font-size: 8.5px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--text-2); }
.tag--fill { background: var(--tag-fill); border-color: transparent; }
.focus__timer { font-size: 38px; font-weight: 300; letter-spacing: -0.04em; margin: 4px 0 6px; font-variant-numeric: tabular-nums; line-height: 1; }
.focus__check { display: flex; justify-content: space-between; align-items: center; }
.focus__check b { font-size: 10px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.focus__list { display: grid; gap: 7px; }
.focus__list label { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; transition: color .3s, opacity .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check { width: 13px; height: 13px; border: 1.5px solid var(--faint); border-radius: 4px; flex: none; position: relative; transition: background .3s, border-color .3s; }
.focus__list label.is-done { color: var(--faint); text-decoration: line-through; font-weight: 400; }
.focus__list label.is-done .check { background: var(--text); border-color: var(--text); }
.focus__list label.is-done .check::after { content: ""; position: absolute; left: 3.5px; top: 1px; width: 3px; height: 6px; border: solid rgb(var(--on-rgb)); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.agenda { border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.agenda__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.agenda__head b { font-size: 11.5px; }
.agenda__head span { color: var(--muted); font-size: 9.5px; }
.agenda__row { display: flex; align-items: center; gap: 7px; padding: 9px 12px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.agenda__row + .agenda__row { border-top: 1px solid var(--line); }
.agenda__row span { color: var(--text-2); font-size: 11px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.agenda__row .tag { flex: none; font-size: 7.5px; }
.agenda__row i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
.agenda__row.is-now { box-shadow: inset 2px 0 0 var(--text); background: rgba(var(--glow),0.025); }

/* ---------- contraste (bagunça x OIOM) ---------- */
.contrast { padding: 120px 0 140px; text-align: center; display: grid; gap: 22px; justify-items: center; }
.contrast__art { width: min(680px, 100%); height: auto; overflow: visible; margin-bottom: 10px; }
.contrast__art path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.contrast__art .mess { stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease), opacity 1s 1.8s; }
.contrast__art .clean { stroke: var(--text); stroke-width: 14; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease) 1.6s; }
.contrast.is-in .mess { stroke-dashoffset: 0; opacity: 0.45; }
.contrast.is-in .clean { stroke-dashoffset: 0; }
.contrast h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.contrast p { color: var(--muted); max-width: 560px; font-size: 1.08rem; }

/* ---------- demo ---------- */
.demo { padding: 80px 0 120px; }
/* janela de chat: boas-vindas → mensagem enviada → resposta do OIOM */
.demo__box {
  max-width: 680px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
}

.chat__stage { display: grid; min-height: 330px; padding: 8px 0 6px; }
.chat__welcome, .chat__thread { grid-area: 1 / 1; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.chat__welcome { display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.chat__welcome p { font-size: 0.95rem; color: var(--faint); }
.chat__mark { width: 22px; height: 22px; object-fit: contain; opacity: .35; }
.chat__thread { display: flex; flex-direction: column; gap: 18px; opacity: 0; transform: translateY(8px); pointer-events: none; }
.chat__stage.is-chatting .chat__welcome { opacity: 0; transform: translateY(-8px); }
.chat__stage.is-chatting .chat__thread { opacity: 1; transform: none; pointer-events: auto; }

.chat__msg {
  align-self: flex-end; max-width: 82%;
  padding: 11px 16px; border-radius: 18px 18px 4px 18px;
  background: var(--text); color: rgb(var(--on-rgb)); font-size: 0.98rem; line-height: 1.45;
}
.chat__reply { display: flex; gap: 12px; align-items: flex-start; }
.chat__avatar {
  width: 28px; height: 28px; padding: 6px; flex: none; object-fit: contain;
  border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface);
}
.chat__reply .parsed { flex: 1; min-width: 0; }

.capture {
  display: grid; gap: 12px;
  padding: 14px 14px 10px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .2s;
}
.capture.is-typing { border-color: rgba(var(--glow),0.22); }
.capture__field { display: flex; align-items: center; position: relative; min-height: 1.5em; font-size: 1rem; }
.capture__text { min-width: 0; }
.capture__text:empty::after { content: "Escreva do seu jeito..."; position: absolute; left: 4px; top: 50%; transform: translateY(-50%); color: var(--faint); white-space: nowrap; }
.capture__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.capture__hint { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--faint); }
.capture__send {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--surface-2); color: var(--faint);
  transition: background .2s, color .2s, transform .15s;
}
.capture__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.capture.is-typing .capture__send { background: var(--text); color: rgb(var(--on-rgb)); }
.capture.is-sent .capture__send { transform: scale(0.88); }
.caret { width: 1.5px; height: 1.2em; background: var(--text); animation: blink 1s steps(1) infinite; flex: none; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

.parsed {
  display: grid; gap: 14px;
  padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--line-2);
  background-color: var(--surface);
  box-shadow: var(--soft-shadow);
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.parsed:empty { visibility: hidden; min-height: 98px; }
.parsed.is-shown { opacity: 1; transform: none; }
.parsed__item { display: flex; gap: 14px; align-items: flex-start; }
.parsed__check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; margin-top: 2px; }
.parsed__body { display: grid; gap: 8px; min-width: 0; }
.parsed__body strong { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.parsed__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.parsed__chips span { font-size: 0.78rem; padding: 3px 9px; border-radius: 7px; background: var(--surface-2); color: var(--text-2); }
.parsed__note { padding-left: 32px; }
/* várias tarefas encadeadas: linhas compactas que entram uma de cada vez */
.parsed--multi { gap: 0; padding: 6px 18px 14px; }
.parsed--multi .parsed__item { align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.parsed--multi .parsed__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; flex: 1; }
.parsed--multi .parsed__body strong { font-size: 1rem; }
.parsed--multi .parsed__check { margin-top: 0; }
.parsed--multi .parsed__note { padding-top: 12px; }
.parsed--multi .parsed__item { opacity: 0; transform: translateX(-8px); transition: opacity .45s var(--ease) var(--d), transform .45s var(--ease) var(--d); }
.parsed--multi.is-shown .parsed__item { opacity: 1; transform: none; }

.demo__chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.chip {
  position: relative; overflow: hidden;
  font: inherit; font-size: 0.8rem; color: var(--muted);
  background: transparent; border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 10px; cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.chip.is-active { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }
/* barra de progresso até o próximo exemplo */
.chip::before, .chip::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  opacity: 0; transition: opacity .25s;
}
.chip::before, .chip::after { left: 12px; right: 12px; bottom: 2px; height: 1.5px; }
.chip::before { background: rgba(var(--glow),0.1); }
.chip::after { background: var(--muted); transform: scaleX(var(--p, 0)); transform-origin: left; }
.chip.is-active::before, .chip.is-active::after { opacity: 1; }
.demo__box.is-paused .chip.is-active::after { opacity: .45; }
.demo__hint { text-align: center; font-size: 0.78rem; color: var(--faint); transition: color .2s; }
.demo__box.is-paused .demo__hint { color: var(--muted); }
@media (hover: none) { .demo__hint { display: none; } }

/* ---------- recursos ---------- */
.features { padding: 80px 0 120px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  position: relative;
  padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  display: grid; gap: 10px; align-content: start;
  transition: border-color .3s, transform .4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--glow),0.07), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface-2);
  margin-bottom: 8px;
}
.card__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- personalização ---------- */
.custom { padding: 80px 0 120px; }
.custom__demo { max-width: 680px; margin: 0 auto; display: grid; gap: 28px; }
.custom__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 28px; }
.custom__more { margin-top: 48px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.custom__more p:not(.scribble) { color: var(--muted); margin-bottom: 14px; }
.opt { display: grid; gap: 8px; justify-items: center; }
.opt__label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.seg { display: flex; width: fit-content; max-width: 100%; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.seg button {
  font: inherit; font-size: 0.86rem; color: var(--muted);
  background: transparent; border: 0; padding: 7px 14px; border-radius: 7px; cursor: pointer;
  transition: background .2s, color .2s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: rgb(var(--on-rgb)); }
.seg button:focus-visible, .switch:focus-visible, .theme-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* prévia: uma janelinha do app que muda ao vivo */
.pv {
  color: var(--text); font-size: 12px; text-align: left;
  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  background: var(--window-bg); box-shadow: var(--window-shadow);
  transition: color .4s, border-color .4s;
}
.pv__bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.pv__brand { display: flex; align-items: center; height: 20px; flex: none; }
.pv__brand img { height: 100%; width: auto; display: block; animation: pop .4s var(--ease); }
.pv__brand .pv__word { height: 17px; }
.pv[data-title="icon"] .pv__word, .pv[data-title="logo"] .pv__icon { display: none; }
.pv__zone { flex: 1; min-width: 0; }
.pv__search {
  --w: min(100%, 240px); --f: 0.5;
  width: var(--w); margin-left: calc((100% - var(--w)) * var(--f));
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface);
  color: var(--faint); font-size: 11.5px; white-space: nowrap; overflow: hidden;
  transition: margin-left .5s var(--ease);
}
.pv__search span { color: var(--muted); }
.pv[data-search="left"] .pv__search { --f: 0; }
.pv[data-search="right"] .pv__search { --f: 1; }
.pv__body { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 14px 16px; }
.pv__side { display: grid; gap: 9px; align-content: start; padding: 10px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); min-height: 200px; }
.pv__side i { height: 7px; border-radius: 4px; background: var(--line-2); }
.pv__side i:first-child { background: var(--text); }
.pv__main { display: grid; gap: 10px; align-content: start; min-width: 0; }
.pv__h { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.pv__card { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); }
.pv__card b { font-size: 13px; }
.pv__timer { font-size: 28px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pv__line { height: 7px; border-radius: 4px; background: var(--line-2); }
.pv__line--s { width: 60%; }

/* ---------- privacidade ---------- */
.privacy { padding: 80px 0 120px; }
.modes { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mode {
  padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  display: grid; gap: 12px; align-content: start;
}
.mode--main { border-color: var(--line-2); }
.mode__badge {
  width: fit-content; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted);
  margin-bottom: 6px;
}
.mode--main .mode__badge { background: var(--text); border-color: transparent; color: rgb(var(--on-rgb)); }
.mode h3 { font-size: 1.35rem; }
.mode p { color: var(--muted); }
.mode ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; font-size: 0.94rem; }
.mode li { display: flex; gap: 10px; align-items: center; }
.mode li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text); flex: none; }
.mode:not(.mode--main) li::before { background: transparent; border: 1.5px solid var(--muted); }
.share {
  max-width: 900px; margin: 14px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 32px; border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.share strong { font-weight: 500; }
.share small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.switch {
  position: relative; width: 44px; height: 26px; padding: 0; cursor: pointer; flex: none;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  transition: background .25s, border-color .25s;
}
.switch i { position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .3s var(--ease), background .25s; }
.switch[aria-checked="true"] { background: var(--text); border-color: var(--text); }
.switch[aria-checked="true"] i { transform: translateX(18px); background: rgb(var(--on-rgb)); }

/* botão de tema na navbar: sistema → claro → escuro */
.nav__actions { display: flex; align-items: center; gap: 8px; }
.theme-btn {
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0; cursor: pointer;
  color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 10px;
  transition: color .2s, border-color .2s, background .2s;
}
.theme-btn:hover { color: var(--text); background: var(--surface); }
.theme-btn svg { width: 17px; height: 17px; display: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:root[data-mode="system"] .theme-btn .t-system,
:root[data-mode="light"] .theme-btn .t-light,
:root[data-mode="dark"] .theme-btn .t-dark { display: block; }

/* ---------- passos ---------- */
.steps { padding: 80px 0 120px; }
.steps__list { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; }
.steps__list li { display: flex; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.steps__list li:last-child { border-bottom: 1px solid var(--line); }
.steps__n { font-family: var(--hand); font-size: 2.6rem; line-height: 0.8; color: var(--muted); width: 36px; flex: none; }
.steps__list h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps__list p { color: var(--muted); }

/* ---------- CTA final ---------- */
.final {
  padding: 110px 24px; margin-top: 20px;
  text-align: center; display: grid; gap: 26px; justify-items: center;
  border: 1px solid var(--line); border-radius: 32px;
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(var(--glow),0.07), transparent 70%),
    var(--bg-2);
}
.final__mark { width: 120px; height: auto; }
.final__mark.reveal { transform: translateY(18px) rotate(-12deg) scale(.85); }
.final__mark.reveal.is-in { transform: none; animation: float 6s ease-in-out 1s infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(3deg); } }
.final h2 { font-size: clamp(2.3rem, 5.4vw, 4rem); }

/* ---------- FAQ ---------- */
.faq { padding: 140px 0 100px; }
.faq__list { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2); transition: border-color .3s, background .3s;
}
details[open] { border-color: var(--line-2); background: var(--surface); }
summary {
  list-style: none; cursor: pointer;
  padding: 18px 20px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- footer ---------- */
.footer {
  width: min(calc(100% - 32px), var(--max)); margin: 0 auto;
  padding: 32px 0 44px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--faint); font-size: 0.85rem;
}
.footer .nav__brand { color: var(--muted); }
.footer__links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); transition: color .2s; }
.footer__links a:hover { color: var(--text); }

/* botão do Dashboard na navbar: ícone + texto; no celular, só o ícone */
.nav__dash { display: inline-flex; align-items: center; gap: 7px; }
.nav__dash svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero .reveal:nth-child(5) { transition-delay: .32s; }
.final .hero__foot { justify-items: center; }
.hero .window.reveal { transition-delay: .2s; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(30px); }
.hero .window.reveal.is-in { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.hero .window.reveal.is-in:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; padding-top: 130px; min-height: auto; }
  .hero__copy { justify-items: center; }
  .hero__foot { justify-items: center; }
  .waitlist { margin-inline: auto; }
  .window, .hero .window.reveal, .hero .window.reveal.is-in { transform: none; }
  .window { width: min(100%, 680px); margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav { padding-left: 12px; }
  .nav__links { display: none; }
  .nav__dash span { display: none; }
  .nav__dash { padding: 8px 9px; }
  .grid { grid-template-columns: 1fr; }
  .modes { grid-template-columns: minmax(0, 1fr); }
  .mode { padding: 24px; }
  .share { padding: 18px 22px; }
  .pv__body { grid-template-columns: 52px minmax(0, 1fr); }
  .pv__side { min-height: 150px; }
  /* sidebar recolhida: só ícones, como no app */
  .window__body { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 2px 10px 12px; }
  .side { padding: 6px 4px; min-height: 0; align-items: center; }
  .side em, .side .ph { display: none; }
  .side__nav span { padding: 7px; justify-content: center; }
  .side__nav .is-active::before { left: -3px; }
  .window__grid { grid-template-columns: minmax(0, 1fr); }
  .window__center .ico { display: none; }
  .window__search { font-size: 10px; }
  .window__search kbd { display: none; }
  .contrast { padding: 80px 0 100px; }
  .final { padding: 80px 20px; border-radius: 24px; }
  .waitlist__row { flex-direction: column; }
  .btn--lg { width: 100%; justify-content: center; }
  .chat__stage { min-height: 400px; }
  .chat__avatar { display: none; }
  .chat__msg { max-width: 92%; }
  .demo__chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .demo__chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .parsed--multi .parsed__body { display: grid; gap: 6px; }
}
@media (max-width: 380px) {
  .nav .btn--sm { padding: 8px 11px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .contrast__art .mess, .contrast__art .clean { stroke-dashoffset: 0; }
}
