/* Hands-off landing page. Sem build: edite e recarregue.
   Identidade "Registro" v2, a mesma do app (app/packages/web/src/styles/tokens.css): papel e tinta, verde arquivo
   na ação principal e no aprovado, ocre no pendente, laranja #FC6844 só na marca. Links e foco em tinta. */

:root {
  --bg: #f1eee5;
  --surface: #faf8f3;
  --surface-2: #e7e2d5;
  --ink: #1d1b18;
  --ink-2: #47443e;
  --ink-3: #5f5b54;
  --line: #dcd6c8;
  --accent: #1f6648;
  --accent-ink: #faf8f3;
  --accent-soft: #e0ebe1;
  --warn-soft: #f1e3c4;
  --warn-ink: #74500f;
  --muted-soft: #ece8de;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(29 27 24 / 0.08), 0 10px 28px -10px rgb(29 27 24 / 0.22);
  --signal: #c8932c;
  --rules-bg: var(--ink);
  --rules-ink: var(--bg);
  --rules-li: color-mix(in srgb, var(--bg) 82%, var(--ink));
  --rules-border: transparent;
  --max: 1120px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161512;
    --surface: #1d1c18;
    --surface-2: #25231f;
    --ink: #ede8dc;
    --ink-2: #c4beb1;
    --ink-3: #9c968a;
    --line: #2f2c27;
    --accent: #86c79f;
    --accent-ink: #161512;
    --accent-soft: #1c2b22;
    --warn-soft: #3a2e19;
    --warn-ink: #e9c47f;
    --muted-soft: #24221e;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -10px rgb(0 0 0 / 0.55);
    color-scheme: dark;
    --rules-bg: var(--surface-2);
    --rules-ink: var(--ink);
    --rules-li: var(--ink-2);
    --rules-border: var(--line);
  }
}

:root[data-theme="dark"] {
  --bg: #161512;
  --surface: #1d1c18;
  --surface-2: #25231f;
  --ink: #ede8dc;
  --ink-2: #c4beb1;
  --ink-3: #9c968a;
  --line: #2f2c27;
  --accent: #86c79f;
  --accent-ink: #161512;
  --accent-soft: #1c2b22;
  --warn-soft: #3a2e19;
  --warn-ink: #e9c47f;
  --muted-soft: #24221e;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -10px rgb(0 0 0 / 0.55);
  color-scheme: dark;
  --rules-bg: var(--surface-2);
  --rules-ink: var(--ink);
  --rules-li: var(--ink-2);
  --rules-border: var(--line);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

section[id] {
  scroll-margin-top: 72px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

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

/* Cabeçalho */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 8px 24px -20px rgb(29 27 24 / 0.5);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.08rem;
  margin-right: auto;
}

.brand svg {
  width: 28px;
  height: 28px;
}

.nav {
  display: none;
  gap: 24px;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    color: var(--ink);
  }
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--ink-3);
  text-decoration: none;
  padding: 0 11px;
  border-radius: 999px;
}

.lang a[aria-current="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* Botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 140ms var(--ease-out), background-color 200ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: color-mix(in srgb, var(--accent) 88%, var(--ink));
  }
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    background: var(--surface);
  }
}

.btn-small {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.88rem;
}

.header-cta {
  display: none;
}

@media (min-width: 520px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Hero */

.hero {
  padding: 56px 0 72px;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 88px 0 104px;
  }

  .hero .wrap {
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(1.06rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}

.status-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-3);
  margin: 0;
}

.status-note::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Seções */

.section {
  padding: 72px 0;
}

.section-band {
  background: var(--surface-2);
}

.section-band .card,
.section-band .flow li,
.section-band .form-box {
  background: var(--surface);
}

@media (min-width: 960px) {
  .section {
    padding: 104px 0;
  }
}

.section-head {
  max-width: 44em;
  margin-bottom: 40px;
}

@media (min-width: 960px) {
  .section-head {
    margin-bottom: 52px;
  }
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.06rem;
}

.kicker {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* Fluxo */

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}

@media (min-width: 640px) {
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .flow {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }
}

.flow li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  counter-increment: step;
}

.flow li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.flow li.is-human {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
}

.flow li.is-human::before {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.flow h3 {
  margin-bottom: 4px;
}

.flow p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.flow-note {
  margin: 20px 0 0;
  color: var(--ink-3);
  font-size: 0.95rem;
}

/* Regras */

.rules {
  margin-top: 40px;
  background: var(--rules-bg);
  color: var(--rules-ink);
  border: 1px solid var(--rules-border);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
}

@media (min-width: 720px) {
  .rules {
    padding: 40px;
  }
}

.rules h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.rules ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px 40px;
  counter-reset: rule;
}

@media (min-width: 720px) {
  .rules ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rules li {
  display: flex;
  gap: 12px;
  counter-increment: rule;
  color: var(--rules-li);
}

.rules li::before {
  content: counter(rule);
  flex: none;
  font-weight: 700;
  color: var(--accent);
  min-width: 1em;
}


.rules-foot {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Para quem */

.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.audience li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.roles {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.96rem;
}

.roles th,
.roles td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.roles tr:last-child td {
  border-bottom: 0;
}

.roles thead th {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-2);
}

.roles td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.roles td:nth-child(2) {
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .roles thead {
    position: absolute;
    left: -9999px;
  }

  .roles,
  .roles tbody,
  .roles tr,
  .roles td {
    display: block;
    width: 100%;
  }

  .roles tr {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }

  .roles tr:last-child {
    border-bottom: 0;
  }

  .roles td {
    padding: 0;
    border: 0;
  }

  .roles td:first-child {
    white-space: normal;
  }

  .roles td:nth-child(2) {
    margin: 4px 0 8px;
  }

  .roles td[data-label]::before {
    content: attr(data-label);
    margin-right: 8px;
    font-size: 0.86rem;
    color: var(--ink-3);
  }
}

/* Lista de espera */

.waitlist .wrap {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .waitlist .wrap {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
}

.form-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 220px;
}

.form-box iframe {
  width: 100%;
  border: 0;
  min-height: 320px;
}

.form-fallback {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 172px;
  color: var(--ink-2);
}

.form-fallback strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.form-fallback p {
  margin: 0;
}

.privacy {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--ink-3);
}

/* Perguntas */

.faq {
  max-width: 48em;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.04rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--ink-3);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--ink-2);
  margin: 0 0 20px;
}

/* Rodapé */

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  padding: 32px 0 40px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink-2);
}

.brand .wordmark {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

.brand .sym { width: 56px; height: 56px; }
.brand .sym-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .sym-light { display: none; }
  :root:not([data-theme="light"]) .brand .sym-dark { display: block; }
}
:root[data-theme="dark"] .brand .sym-light { display: none; }
:root[data-theme="dark"] .brand .sym-dark { display: block; }

.brand .hy {
  color: #fc6844;
}

@media (min-width: 1000px) {
  .flow.flow-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Pontos em lista editorial, sem cartão nem ícone */

.points .card {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 20px 0 0;
}

.points h3 {
  font-size: 1.12rem;
}

/* Simulação do produto no topo.
   Sem JavaScript, mostra a cena final parada. Com movimento reduzido,
   não toca sozinha: as abas trocam de cena só com troca de opacidade. */

.sim-figure {
  margin: 0;
}

.sim {
  container: sim / inline-size;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgb(29 27 24 / 0.06), 0 24px 60px -20px rgb(29 27 24 / 0.28);
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.45;
}

.sim-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.sim-dots {
  position: absolute;
  left: 14px;
  display: flex;
  gap: 6px;
}

.sim-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.sim-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
}

.sim-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.sim-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.sim-tab.is-done {
  color: var(--ink-2);
}

.sim-tab.is-current {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .sim-tab:not(.is-current):hover {
    color: var(--ink);
  }
}

.t-num {
  display: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.68rem;
}

.sim-stage {
  position: relative;
  height: 344px;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}

.scene.is-active {
  opacity: 1;
  transform: none;
}

.sim [data-act="in"] {
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

.sim.is-js [data-act="in"]:not(.is-in) {
  opacity: 0;
  transform: translateY(6px);
}

.sc-head,
.sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--ink-3);
  font-size: 0.78rem;
}

.sc-head strong,
.sc-row strong {
  color: var(--ink);
  font-size: 0.85rem;
}

.decision-id {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-3);
}

.badge-warn {
  background: var(--warn-soft);
  color: var(--warn-ink);
}

.who-agent {
  white-space: nowrap;
  margin-right: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--warn-soft);
  color: var(--warn-ink);
}

/* Cena 1: transcrição */

.transcript {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.transcript li {
  display: flex;
  gap: 10px;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out), background-color 300ms ease;
}

.transcript li.is-marked {
  background: var(--accent-soft);
}

.transcript p {
  margin: 0;
  color: var(--ink-2);
}

.transcript .speaker {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.transcript .speaker span {
  color: var(--ink-3);
  font-weight: 400;
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.7rem;
  font-weight: 700;
}

.agent-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
}

.pulse {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: sim-ring 1.6s var(--ease-out) infinite;
}

@keyframes sim-ring {
  from { opacity: 0.8; transform: scale(0.6); }
  to { opacity: 0; transform: scale(1.6); }
}

/* Cenas 2 a 5: painéis */

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg);
}

.p-title {
  min-height: 2.7em;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
  animation: sim-caret 1s steps(1) infinite;
}

@keyframes sim-caret {
  50% { opacity: 0; }
}

.p-rows {
  display: grid;
  grid-template-columns: minmax(0, 7em) minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
}

.p-rows dt {
  color: var(--ink-3);
}

.p-rows dd {
  margin: 0;
  color: var(--ink);
}

.p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 0.8rem;
}

.sim-btn {
  flex: none;
  display: inline-grid;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: default;
  transition: transform 140ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.sim-btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.sim-btn > span,
.badge-stack > span {
  grid-area: 1 / 1;
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}

.sim-btn .b-on,
.badge-stack .b-on {
  opacity: 0;
  transform: translateY(3px);
}

.sim-btn.is-done .b-off,
.badge-stack.is-done .b-off {
  opacity: 0;
}

.sim-btn.is-done .b-on,
.badge-stack.is-done .b-on {
  opacity: 1;
  transform: none;
}

.sim-btn.is-done {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.sim-btn.is-pressed {
  transform: scale(0.95);
}

.badge-stack {
  display: inline-grid;
  justify-items: end;
  margin-left: auto;
}

.confirm .c-hello {
  margin: 0 0 12px;
  color: var(--ink);
}

.c-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.c-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.84rem;
}

.sim-toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  width: fit-content;
  margin: 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.versions {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ver {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.ver .sc-row {
  justify-content: flex-start;
  margin: 0;
}

.ver-next {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.ver-items {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.ver-items li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-2);
  font-size: 0.8rem;
}

.ver-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.ver-items .ver-new {
  color: var(--ink);
  font-weight: 600;
}

.ver-items .ver-new::before {
  background: var(--accent);
}

.sim.is-js .ver-new:not(.is-in) {
  transform: translateY(-10px);
}

.check {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
}

.check-title {
  margin: 0 0 4px;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.check ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.check li {
  color: var(--ink);
  font-size: 0.82rem;
}

.check li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 700;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.search svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 2;
  stroke-linecap: round;
}

.trail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.trail li {
  display: grid;
  grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr);
  gap: 10px;
}

.trail time {
  color: var(--ink-3);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}

.trail span {
  color: var(--ink);
  font-size: 0.84rem;
}

.sim-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 22px;
  opacity: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M1.5 1.5v16l4.2-4 2.9 6.6 2.7-1.2-2.9-6.4h5.9z' fill='%231b1d1c' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
  transition: transform 700ms var(--ease-in-out), opacity 200ms ease;
  will-change: transform;
}

.sim-cursor.is-on {
  opacity: 1;
}

.sim-cursor::after {
  content: "";
  position: absolute;
  left: -9px;
  top: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}

.sim-cursor.is-press::after {
  animation: sim-press 420ms var(--ease-out);
}

@keyframes sim-press {
  from { opacity: 0.45; transform: scale(0.4); }
  to { opacity: 0; transform: scale(1.4); }
}

@container sim (max-width: 440px) {
  .sim-tab .t-label {
    display: none;
  }

  .sim-tab.is-current .t-label {
    display: inline;
  }

  .t-num {
    display: inline-grid;
  }

  .sim-tab.is-current .t-num {
    display: none;
  }

  .scene {
    padding: 14px;
  }

  .p-rows {
    grid-template-columns: minmax(0, 6.5em) minmax(0, 1fr);
  }

  .trail li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .agent-note {
    left: 14px;
    right: 14px;
  }
}

@media (max-width: 440px) {
  .sim-stage {
    height: 372px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene,
  .sim [data-act="in"],
  .transcript li,
  .sim-btn,
  .sim-btn > span,
  .badge-stack > span,
  .sim-cursor {
    transition-property: opacity, background-color, color, border-color;
  }

  .scene,
  .sim.is-js [data-act="in"]:not(.is-in),
  .sim.is-js .ver-new:not(.is-in) {
    transform: none;
  }

  .pulse::after,
  .is-typing::after {
    animation: none;
  }
}

/* Peças de simulação usadas no topo e na página de versões */

/* Estado de ferramenta: girando até virar um visto */

.tool-state {
  position: relative;
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: v-spin 800ms linear infinite;
}

.tool-state.is-done {
  animation: none;
  border-color: var(--accent);
  background: var(--accent);
}

.tool-state.is-done::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 4px;
  height: 7px;
  border: solid var(--accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@keyframes v-spin {
  to { transform: rotate(360deg); }
}

/* Rolagem de conversa: o fio sobe para mostrar o último item */

[data-thread] {
  position: relative;
  transition: transform 420ms var(--ease-out);
}

/* Versão A: chat */

.sim-chat .chat-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 16px 18px 0;
}

.chat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.msg {
  max-width: 88%;
}

.msg p {
  margin: 0;
}

.msg-user {
  justify-self: end;
  padding: 9px 13px;
  border-radius: 16px 16px 4px 16px;
  background: var(--ink);
  color: var(--bg);
}

.msg-ai {
  justify-self: start;
  color: var(--ink);
}

.msg-ai .tool {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 16%, transparent);
  font-size: 0.78rem;
  font-weight: 600;
}

.file-chip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.mini-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.mini-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.84rem;
}

.mini-list em {
  grid-column: 2;
  font-style: normal;
  font-size: 0.76rem;
  color: var(--ink-3);
}

.sim-notify {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px -12px rgb(29 27 24 / 0.35);
  font-size: 0.8rem;
}

.sim-notify svg {
  flex: none;
  width: 28px;
  height: 28px;
}

.sim-notify rect {
  fill: var(--accent);
}

.sim-notify path {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sim-notify > span {
  display: grid;
}

.sim-notify > span span {
  color: var(--ink-3);
  font-size: 0.74rem;
}

.sim.is-js .sim-notify:not(.is-in) {
  transform: translateY(-12px) scale(0.97);
}

/* Versão B: terminal (sempre escuro) */

.sim-term {
  --t-bg: #111413;
  --t-ink: #e6ebe8;
  --t-dim: #8b948f;
  --t-ok: #6fd3b0;
  --t-warn: #f0c26e;
  background: var(--t-bg);
  border-color: #262c29;
  color: var(--t-ink);
}

.sim-term .sim-bar {
  background: #181c1a;
  border-bottom-color: #262c29;
}

.sim-term .sim-dots i {
  background: #333a36;
}

.sim-term .sim-title {
  color: var(--t-dim);
}

.term-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 16px 18px 0;
}

.term {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
}

.term li {
  overflow-wrap: anywhere;
}

.t-prompt {
  margin-right: 8px;
  color: var(--t-ok);
  font-weight: 700;
}

.t-dim {
  color: var(--t-dim);
}

.t-ok {
  color: var(--t-ok);
}

.t-warn {
  margin-top: 6px;
  color: var(--t-warn);
}

.t-sub {
  padding-left: 16px;
  color: #c5ccc8;
}

.t-accent {
  color: var(--t-ok);
}

.t-key {
  color: var(--t-ink);
  font-weight: 700;
}

.t-box {
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid #2f3633;
  border-radius: 8px;
  color: var(--t-ink);
}

.sim-term .tool-state {
  border-color: #333a36;
  border-top-color: var(--t-ok);
}

.sim-term .tool-state.is-done {
  border-color: var(--t-ok);
  background: var(--t-ok);
}

.sim-term .tool-state.is-done::after {
  border-color: var(--t-bg);
}

.sim-term .is-typing::after {
  background: var(--t-ok);
}

/* Versão C: app local e celular */

.sim-duo {
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.sim-duo .sim-stage {
  height: 380px;
  overflow: visible;
}

.sim-duo .scene {
  padding: 0;
}

.app-win {
  position: absolute;
  inset: 0 24px 24px 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(29 27 24 / 0.06), 0 24px 60px -24px rgb(29 27 24 / 0.3);
}

.app-body {
  flex: 1;
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  min-height: 0;
}

.app-side {
  list-style: none;
  margin: 0;
  padding: 12px 8px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.8rem;
  color: var(--ink-2);
}

.app-side li {
  padding: 5px 10px;
  border-radius: 8px;
}

.app-side .is-current {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--line);
}

.app-main {
  padding: 14px 16px;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.app-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.82rem;
}

.app-version {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.82rem;
}

.app-version strong {
  margin-right: 6px;
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 176px;
  min-height: 300px;
  padding: 28px 14px 14px;
  border-radius: 28px;
  border: 6px solid #1d1b18;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px -18px rgb(29 27 24 / 0.45);
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
}

.sim.is-js .phone:not(.is-in) {
  transform: translateY(24px) scale(0.97);
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 52px;
  height: 14px;
  margin-left: -26px;
  border-radius: 999px;
  background: #1d1b18;
}

.ph-from {
  margin: 0 0 4px;
  color: var(--ink-3);
  font-size: 0.72rem;
}

.ph-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.3;
}

.ph-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--ink-2);
}

.ph-list li {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.ph-approve {
  margin-top: auto;
  justify-items: center;
  width: 100%;
  padding: 9px 12px;
}

.sim-cursor.is-touch {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  border: 2px solid color-mix(in srgb, var(--surface) 80%, transparent);
}

.sim-cursor.is-touch::after {
  left: 1px;
  top: 1px;
}

@container sim (max-width: 440px) {
  .msg {
    max-width: 94%;
  }

  .sim-notify {
    left: 12px;
  }
}

@media (max-width: 560px) {
  .app-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-side {
    display: none;
  }

  .app-win {
    inset: 0 0 96px 0;
  }

  .app-list li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .app-list .decision-id {
    display: none;
  }

  .sim-duo .sim-stage {
    height: 460px;
  }

  .phone {
    width: 172px;
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-thread] {
    transition: none;
  }

  .tool-state {
    animation: none;
  }

  .sim.is-js .sim-notify:not(.is-in),
  .sim.is-js .phone:not(.is-in) {
    transform: none;
  }
}

.phone-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out);
}

.phone-wrap.is-done {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: reduce) {
  .phone-wrap,
  .phone-wrap.is-done {
    transform: none;
  }
}

/* Simulação do topo: a conversa na IA (cena 1) e, no mesmo lugar, o app
   com o celular da cliente (cena 2). As duas janelas ocupam a mesma área,
   para a troca parecer a mesma tela mudando de app. */

.sim-mix {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.sim-mix .sim-stage {
  height: 400px;
  overflow: visible;
}

.sim-mix .scene {
  padding: 0;
}

.sim-mix .scene:not(.is-active) {
  transform: translateY(8px) scale(0.985);
}

.mix-win {
  position: absolute;
  inset: 0 24px 24px 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(29 27 24 / 0.06), 0 24px 60px -24px rgb(29 27 24 / 0.3);
}

.mix-win .chat-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 16px 18px 0;
}

.mix-steps {
  justify-content: center;
  gap: 6px;
  padding: 6px 0 0;
  border: 0;
}

.mix-steps .t-num,
.mix-steps .sim-tab.is-current .t-num {
  display: inline-grid;
}

.mix-steps .t-label {
  display: inline;
}

@media (max-width: 560px) {
  .mix-win {
    inset: 0 0 96px 0;
  }

  .sim-mix .sim-stage {
    height: 470px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sim-mix .scene:not(.is-active) {
    transform: none;
  }
}

/* Preferências do sistema */

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .sim-notify {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #8d918e;
    --ink-2: #2a2d2b;
    --ink-3: #3d413f;
  }

  .site-header {
    background: var(--bg);
    border-bottom-color: var(--line);
  }

  .btn-ghost,
  .sim-btn,
  .lang {
    border-color: var(--ink-3);
  }
}

@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --line: #6b736f;
    --ink-2: #dfe5e1;
    --ink-3: #c3cbc7;
  }
}

@media (prefers-contrast: more) {
  :root[data-theme="dark"] {
    --line: #6b736f;
    --ink-2: #dfe5e1;
    --ink-3: #c3cbc7;
  }
}

/* Botão de tema: lua no claro, sol no escuro */

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 140ms var(--ease-out), color 200ms ease, background-color 200ms ease;
}

.theme-toggle:active {
  transform: scale(0.92);
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    color: var(--ink);
    background: var(--surface);
  }
}

.theme-toggle svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 200ms ease, transform 300ms var(--ease-out);
}

.theme-toggle .i-sun {
  opacity: 0;
  transform: rotate(-45deg) scale(0.8);
}

:root[data-theme="dark"] .theme-toggle .i-sun {
  opacity: 1;
  transform: none;
}

:root[data-theme="dark"] .theme-toggle .i-moon {
  opacity: 0;
  transform: rotate(45deg) scale(0.8);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle svg {
    transform: none !important;
  }
}

/* Troca de tema suave, sem salto brusco de brilho */

.is-theming,
.is-theming *,
.is-theming *::before,
.is-theming *::after {
  transition: background-color 280ms ease, color 280ms ease, border-color 280ms ease, fill 280ms ease, stroke 280ms ease !important;
}

/* Páginas de texto (privacidade) */

.prose {
  max-width: 42em;
  padding: 56px 0 80px;
}

.prose h1 {
  margin-bottom: 0.3em;
}

.prose h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  margin-top: 2em;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose strong {
  color: var(--ink);
}

.prose .updated {
  color: var(--ink-3);
  font-size: 0.92rem;
}

/* Registro: títulos em Fraunces, como no app. */
h1,
h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
}
