/* Ouvi pra Você: site público. Mesmo mundo visual do painel (Geist, neutros, verde esmeralda). */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/geist.woff2) format('woff2');
}

:root {
  color-scheme: light dark;
  --bg: oklch(1 0 0);
  --fg: oklch(0.145 0 0);
  --soft: oklch(0.42 0 0);
  --muted: oklch(0.97 0 0);
  --line: oklch(0.922 0 0);
  --card: oklch(1 0 0);
  --accent: oklch(0.5 0.11 163);
  --accent-strong: oklch(0.43 0.1 163);
  --accent-soft: oklch(0.96 0.035 163);
  --on-accent: oklch(0.99 0.01 163);
  --bubble-in: oklch(1 0 0);
  --bubble-out: oklch(0.94 0.06 150);
  --chat: oklch(0.955 0.012 90);
  --radius: 0.625rem;
  --shadow: 0 1px 2px oklch(0 0 0 / 0.05), 0 12px 32px -12px oklch(0 0 0 / 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.145 0 0);
    --fg: oklch(0.985 0 0);
    --soft: oklch(0.74 0 0);
    --muted: oklch(0.205 0 0);
    --line: oklch(1 0 0 / 0.12);
    --card: oklch(0.205 0 0);
    --accent: oklch(0.72 0.15 163);
    --accent-strong: oklch(0.78 0.15 163);
    --accent-soft: oklch(0.27 0.045 163);
    --on-accent: oklch(0.16 0.03 163);
    --bubble-in: oklch(0.26 0 0);
    --bubble-out: oklch(0.33 0.06 160);
    --chat: oklch(0.18 0 0);
    --shadow: 0 1px 2px oklch(0 0 0 / 0.4), 0 16px 40px -16px oklch(0 0 0 / 0.7);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--line) transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 Geist, ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

a {
  color: inherit;
  text-decoration-color: color-mix(in oklch, currentColor 35%, transparent);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s;
}

a:hover {
  text-decoration-color: currentColor;
}

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

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

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

.wrap {
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
}

.skip:focus {
  top: 1rem;
}

/* Cabeçalho */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  border-radius: 8px;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.top nav a:not(.button) {
  color: var(--soft);
  text-decoration: none;
}

.top nav a:not(.button):hover {
  color: var(--fg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s var(--ease);
}

.button:hover {
  background: var(--accent-strong);
}

.button:active {
  transform: translateY(1px);
}

.button.big {
  min-height: 3.25rem;
  padding: 0 1.5rem;
  font-size: 1.0625rem;
}

.button.quiet {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.quiet:hover {
  background: var(--muted);
}

.button svg {
  flex: none;
}

@media (max-width: 44rem) {
  .top nav a:not(.button) {
    display: none;
  }
}

/* Abertura */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--soft);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin-top: 2rem;
}

.fine {
  color: var(--soft);
  font-size: 0.9375rem;
}

/* Demonstração: uma conversa com o áudio virando texto */
.demo {
  position: relative;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2.2);
  background: var(--chat);
  box-shadow: var(--shadow);
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.2rem 0.3rem 0.95rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
}

.demo-head small {
  display: block;
  color: var(--soft);
  font-size: 0.8125rem;
  font-weight: 400;
}

.thread {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 0.2rem 0.2rem;
}

.bubble {
  max-width: 88%;
  padding: 0.65rem 0.8rem;
  border-radius: 0.3rem 0.95rem 0.95rem 0.95rem;
  background: var(--bubble-in);
  box-shadow: 0 1px 1px oklch(0 0 0 / 0.07);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.bubble.out {
  justify-self: end;
  border-radius: 0.95rem 0.3rem 0.95rem 0.95rem;
  background: var(--bubble-out);
}

.voice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: min(17rem, 100%);
}

.play {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--muted);
  color: var(--soft);
}

.wave {
  flex: 1;
  height: 1.6rem;
  color: color-mix(in oklch, var(--soft) 55%, transparent);
}

.voice time {
  color: var(--soft);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.transcript {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

/* O único movimento da página: o texto aparece linha a linha, como na extensão. */
@media (prefers-reduced-motion: no-preference) {
  .transcript span {
    animation: reveal 0.9s var(--ease) backwards;
  }

  .transcript span:nth-child(1) { animation-delay: 0.7s; }
  .transcript span:nth-child(2) { animation-delay: 1.15s; }
  .transcript span:nth-child(3) { animation-delay: 1.6s; }
  .transcript span:nth-child(4) { animation-delay: 2.05s; }

  .chip {
    animation: reveal 0.6s var(--ease) 0.3s backwards;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    filter: blur(6px);
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    clip-path: inset(0 0 0 0);
  }
}

/* Seções */
section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.band {
  border-block: 1px solid var(--line);
  background: var(--muted);
}

h2 {
  max-width: 22ch;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.sub {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--soft);
}

/* Três momentos: colunas separadas por fio, sem cartões */
.moments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.moments > div {
  padding: 1.75rem 1.75rem 0 0;
}

.moments > div + div {
  padding-left: 1.75rem;
  border-left: 1px solid var(--line);
}

.moments h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.moments p {
  margin-top: 0.7rem;
  color: var(--soft);
}

/* Como funciona */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.steps p {
  margin-top: 0.5rem;
  color: var(--soft);
}

/* Resumo da conversa */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.checks {
  display: grid;
  gap: 0.7rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.7rem;
  align-items: start;
}

.checks svg {
  margin-top: 0.3rem;
  color: var(--accent);
}

.panel {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.8);
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.panel-head span {
  color: var(--soft);
  font-size: 0.8125rem;
  font-weight: 400;
}

.panel-body {
  display: grid;
  gap: 1.1rem;
  padding: 1.15rem;
}

.panel h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--soft);
}

.panel ul {
  display: grid;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
}

.ask {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: var(--muted);
}

.ask strong {
  display: block;
}

.ask p {
  margin-top: 0.35rem;
  color: var(--soft);
}

/* Planos */
.plans {
  width: 100%;
  margin-top: clamp(2rem, 5vw, 3rem);
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

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

.plans thead th {
  width: 31%;
  padding-bottom: 1.5rem;
  font-weight: 400;
}

.plans thead th:first-child {
  width: 38%;
}

.plans tbody th {
  color: var(--soft);
  font-weight: 400;
}

.plans .pro {
  background: var(--accent-soft);
}

.plans thead .pro {
  border-radius: calc(var(--radius) * 1.4) calc(var(--radius) * 1.4) 0 0;
}

.plan-name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
}

.plan-price {
  display: block;
  margin-top: 0.3rem;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan-price small {
  color: var(--soft);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
}

.plans tfoot td {
  border-bottom: 0;
  padding-top: 1.4rem;
}

.plans tfoot .pro {
  border-radius: 0 0 calc(var(--radius) * 1.4) calc(var(--radius) * 1.4);
}

/* Privacidade em resumo e perguntas */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 3rem;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

.facts strong {
  display: block;
  font-weight: 600;
}

.facts span {
  color: var(--soft);
}

.faq {
  max-width: 46rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--soft);
  border-bottom: 2px solid var(--soft);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq details p {
  max-width: 68ch;
  padding-bottom: 1.25rem;
  color: var(--soft);
}

/* Chamada final e rodapé */
.closing {
  text-align: center;
}

.closing h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.closing .actions {
  justify-content: center;
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  color: var(--soft);
  font-size: 0.9375rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.foot p {
  max-width: 34rem;
}

/* Páginas de leitura: Termos e Privacidade */
.doc {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
}

.doc-nav {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  display: grid;
  gap: 0.15rem;
  font-size: 0.9375rem;
}

.doc-nav a {
  padding: 0.4rem 0.7rem;
  border-radius: calc(var(--radius) * 0.8);
  color: var(--soft);
  text-decoration: none;
}

.doc-nav a:hover {
  background: var(--muted);
  color: var(--fg);
}

.doc-nav strong {
  padding: 0.4rem 0.7rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.doc article {
  max-width: 44rem;
}

.doc h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
}

.updated {
  margin-top: 0.9rem;
  color: var(--soft);
  font-size: 0.9375rem;
}

.doc h2 {
  max-width: none;
  margin-top: 2.75rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  scroll-margin-top: 1.5rem;
}

.doc article p,
.doc article ul,
.doc article ol {
  margin-top: 0.9rem;
}

.doc article ul,
.doc article ol {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
}

.summary {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--muted);
}

.summary h2 {
  margin-top: 0;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.table-wrap {
  margin-top: 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.doc table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.doc th,
.doc td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc thead th {
  background: var(--muted);
  font-weight: 600;
}

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

/* Telas menores */
@media (max-width: 56rem) {
  .hero,
  .split,
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }

  .moments,
  .steps,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .moments > div,
  .moments > div + div {
    padding: 1.5rem 0;
    border-left: 0;
  }

  .moments > div + div {
    border-top: 1px solid var(--line);
  }

  .steps {
    gap: 1.75rem;
  }

  .doc-nav {
    position: static;
    grid-auto-flow: column;
    justify-content: start;
    overflow-x: auto;
  }

  .doc-nav strong {
    display: none;
  }

  .plans th,
  .plans td {
    padding: 0.8rem 0.7rem;
  }

  .plans thead th:first-child {
    width: 34%;
  }

  .plans {
    font-size: 0.9375rem;
  }

  .plans .button {
    min-height: 2.5rem;
    padding: 0 0.7rem;
    font-size: 0.8125rem;
  }

  .plan-price small {
    display: block;
  }

  .top .button {
    min-height: 2.5rem;
    padding: 0 0.85rem;
  }
}

.lost {
  padding-block: 5rem;
}

.lost h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

[aria-current='page'] {
  color: var(--fg) !important;
  font-weight: 600;
}
