/* Escriba — site. Caderno editorial: papel morno, tinta, vermelhão de REC e marca-texto. */
:root {
  --paper: oklch(96.6% 0.014 84);
  --paper-2: oklch(93.4% 0.02 82);
  --paper-3: oklch(89% 0.026 80);
  --rule: oklch(84% 0.024 78);
  --ink: oklch(23% 0.022 55);
  --ink-2: oklch(40% 0.022 55);
  --ink-3: oklch(53% 0.02 60);
  --rec: oklch(58% 0.19 32);
  --rec-deep: oklch(49% 0.17 30);
  --marker: oklch(90% 0.15 98);
  --marker-soft: oklch(94% 0.09 98);
  --night: oklch(21% 0.018 50);
  --night-2: oklch(27% 0.02 50);
  --night-text: oklch(93% 0.016 84);
  --night-muted: oklch(74% 0.02 80);
  --leaf: oklch(70% 0.1 158);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.8vw, 3rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.6vw, 5rem);

  --gutter: clamp(1rem, 0.5rem + 3vw, 3.5rem);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
  font-feature-settings: "ss01", "kern";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* textura de papel: linhas de caderno muito sutis */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in oklch, var(--rule) 22%, transparent) 31px 32px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.05; margin: 0; font-variation-settings: "opsz" 144, "SOFT" 30; }
h1 em, h2 em { font-style: italic; color: var(--rec); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
h3 { font-size: var(--step-1); line-height: 1.2; font-weight: 500; font-variation-settings: "opsz" 36; letter-spacing: -0.005em; }
p { margin: 0; }
.tiny { font-size: var(--step--1); color: var(--ink-3); }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; }
code { background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 4px; }
kbd { border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; padding: 0.05em 0.4em; background: var(--paper); margin-right: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; border-radius: 4px; }

.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rec-deep); margin-bottom: 1rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em; text-decoration: none; font-weight: 600;
  padding: 0.85em 1.4em; border-radius: 999px; transition: transform 0.25s var(--ease), background-color 0.2s, box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-rec { background: var(--rec); color: oklch(98% 0.01 84); box-shadow: 0 6px 20px -8px var(--rec); }
.btn-rec:hover { background: var(--rec-deep); box-shadow: 0 10px 26px -10px var(--rec); }
.btn-ink { background: var(--ink); color: var(--paper); padding: 0.6em 1.15em; font-size: var(--step--1); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--marker); padding-bottom: 2px; transition: border-color 0.2s; }
.link-arrow:hover { border-color: var(--rec); }

/* ---------- Navegação ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem; justify-content: space-between;
  padding: 0.9rem var(--gutter);
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in oklch, var(--rule) 60%, transparent);
}
.nav nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: var(--step--1); }
.nav nav a:hover { color: var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--serif); font-size: 1.5rem; font-style: italic; text-decoration: none; letter-spacing: -0.02em; font-variation-settings: "opsz" 72, "SOFT" 100; }
.rec { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 0 color-mix(in oklch, var(--rec) 60%, transparent); animation: rec 2.2s infinite; }
@keyframes rec { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 6vw, 6rem) var(--gutter) clamp(2rem, 4vw, 4rem);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero h1 { font-size: var(--step-4); max-width: 13ch; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 36ch; margin-top: 1.6rem; line-height: 1.5; }
.cta { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: 2.2rem; }
.proofs { list-style: none; padding: 0; margin: 2.8rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 14ch)); gap: 1.2rem 2rem; border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.proofs li { font-size: var(--step--1); color: var(--ink-3); max-width: 14ch; line-height: 1.35; }
.proofs b { display: block; font-family: var(--serif); font-size: var(--step-2); color: var(--ink); font-weight: 400; line-height: 1; margin-bottom: 0.3rem; }

.hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease) forwards; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.18s; }
.hero-copy > :nth-child(4) { animation-delay: 0.28s; }
.hero-copy > :nth-child(5) { animation-delay: 0.38s; }
.stage { opacity: 0; animation: rise 1.1s 0.25s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* palco: uma chamada estilizada com o widget por cima */
.stage { position: relative; margin: 0; padding-bottom: 5.5rem; display: flex; flex-direction: column; }
.call {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; aspect-ratio: 4 / 3.3;
  background: var(--night); border-radius: 22px; transform: rotate(-1.6deg);
  box-shadow: 0 30px 60px -30px oklch(20% 0.03 50 / 0.55), 0 2px 0 var(--paper-3);
}
.tile { border-radius: 14px; position: relative; overflow: hidden; background: var(--night-2); }
.tile::before { content: ""; position: absolute; left: 50%; top: 44%; width: 30%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0.9; }
.t1::before { background: oklch(70% 0.09 40); }
.t2::before { background: oklch(66% 0.08 200); }
.t3::before { background: oklch(72% 0.09 130); }
.t4::before { background: oklch(68% 0.07 290); }
.tile span { position: absolute; left: 10px; bottom: 8px; font-size: 0.75rem; color: var(--night-muted); }
.tile.speaking { box-shadow: inset 0 0 0 3px var(--leaf); }

.widget {
  position: absolute; right: -4%; bottom: 0; width: min(340px, 82%);
  background: oklch(19% 0.012 260 / 0.97); color: oklch(93% 0.006 260); border-radius: 16px;
  box-shadow: 0 24px 50px -20px oklch(10% 0.02 260 / 0.7); font-size: 0.82rem; line-height: 1.45; overflow: hidden;
  transform: rotate(1.2deg);
}
.w-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid oklch(100% 0 0 / 0.07); }
.w-dot { width: 8px; height: 8px; border-radius: 50%; background: oklch(70% 0.17 25); animation: rec 1.8s infinite; }
.w-time, .w-share { color: oklch(70% 0.01 260); font-variant-numeric: tabular-nums; font-size: 0.75rem; }
.w-share b { color: oklch(93% 0.006 260); }
.w-spacer { flex: 1; }
.w-body { list-style: none; margin: 0; padding: 8px 14px; height: 15.5rem; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 2.4rem); mask-image: linear-gradient(to bottom, transparent, #000 2.4rem); }
.w-body li { animation: pop 0.45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.w-body .who { font-weight: 600; font-size: 0.75rem; }
.w-body .who time { font-weight: 400; color: oklch(65% 0.01 260); margin-left: 6px; }
.w-body .tag { float: right; font-size: 0.72rem; }
.w-body p { margin: 1px 0 0; }
.w-body .fix { position: relative; display: inline-block; }
.w-body .fix .bad { color: oklch(70% 0.15 25); text-decoration: line-through; transition: opacity 0.4s; }
.w-body .fix .good { color: oklch(85% 0.13 160); font-weight: 600; }
.w-body .hl { background: linear-gradient(to right, oklch(85% 0.15 98 / 0.4), oklch(85% 0.15 98 / 0.4)) no-repeat 0 85% / 0% 45%; transition: background-size 0.9s var(--ease); }
.w-body .hl.on { background-size: 100% 45%; }
.w-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid oklch(100% 0 0 / 0.07); color: oklch(72% 0.01 260); font-size: 0.75rem; }
.stage figcaption { order: -1; margin: 0 0 1.1rem 0.4rem; max-width: 34ch; font-size: var(--step--1); color: var(--ink-3); font-style: italic; font-family: var(--serif); line-height: 1.35; }

.platforms {
  max-width: var(--max); margin: 0 auto; padding: 1.2rem var(--gutter); display: flex; gap: 0.9rem; align-items: baseline; flex-wrap: wrap;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: var(--step--1); color: var(--ink-3);
}
.platforms b { font-family: var(--serif); font-size: var(--step-1); color: var(--ink); font-weight: 500; }
.platforms i { color: var(--rec); font-style: normal; }

/* ---------- Seções ---------- */
section { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) var(--gutter) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p:not(.eyebrow) { margin-top: 1.2rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; max-width: 40rem; }

/* reconhecimento */
.layers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.layers li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.layers .n { font-family: var(--serif); font-size: var(--step-3); line-height: 0.8; color: var(--rec); font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }
.layers h3 { margin-bottom: 0.6rem; }
.layers p { color: var(--ink-2); }
.layers p + p { margin-top: 0.7rem; }

.diff { margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 4vw, 3rem); background: var(--paper-2); border-radius: 4px; position: relative; }
.diff::before { content: ""; position: absolute; left: clamp(1.4rem, 4vw, 3rem); top: 0; bottom: 0; width: 1px; background: oklch(70% 0.12 25 / 0.45); transform: translateX(-0.9rem); }
.diff-label { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); }
.diff-line { font-family: var(--serif); font-size: var(--step-2); line-height: 1.35; margin: 0.3rem 0 1.4rem; font-variation-settings: "opsz" 48; }
.diff-line:last-child { margin-bottom: 0; }
.diff .raw { color: var(--ink-3); }
.diff s { text-decoration-color: var(--rec); text-decoration-thickness: 2px; color: var(--rec-deep); }
.diff ins { text-decoration: none; background: linear-gradient(transparent 55%, var(--marker) 55%); padding: 0 0.1em; font-style: italic; }

/* recursos */
.num { font-family: var(--serif); font-style: italic; color: var(--rec); font-size: var(--step-1); display: block; margin-bottom: 0.5rem; font-variation-settings: "opsz" 72, "SOFT" 100; }
.feat h3 { font-size: var(--step-2); margin-bottom: 0.8rem; line-height: 1.1; }
.feat p { color: var(--ink-2); }
.feat-wide { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.55rem; }
.ticks li { padding-left: 1.4rem; position: relative; color: var(--ink-2); font-size: var(--step--1); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.35rem; border-left: 2px solid var(--rec); border-bottom: 2px solid var(--rec); transform: rotate(-45deg); }
.shot { margin-top: 1.4rem; border-radius: 10px; overflow: hidden; background: var(--paper-2); box-shadow: 0 1px 0 var(--rule), 0 24px 50px -32px oklch(25% 0.03 50 / 0.5); }
.shot img { width: 100%; }
.shot-browser { margin: 0; border: 1px solid var(--rule); padding-top: 26px; position: relative; transform: rotate(0.8deg) translateX(3%); }
.shot-browser::before { content: ""; position: absolute; top: 9px; left: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 14px 0 0 var(--marker), 28px 0 0 var(--leaf); }
.feat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(4rem, 8vw, 7rem); }
.feat-pair .feat:last-child { margin-top: clamp(0rem, 6vw, 5rem); }
.feat-list { list-style: none; padding: 0; margin: clamp(4rem, 8vw, 6rem) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.5rem, 3vw, 3rem); }
.feat-list li { border-top: 1px solid var(--rule); padding-top: 1.2rem; color: var(--ink-2); }
.feat-list b { color: var(--ink); font-weight: 600; }

/* privacidade */
.privacy { max-width: none; padding: 0; margin-top: clamp(5rem, 10vw, 9rem); background: var(--night); color: var(--night-text); position: relative; overflow: hidden; }
.privacy::after { content: "§"; position: absolute; right: -2rem; bottom: -9rem; font-family: var(--serif); font-size: 32rem; line-height: 1; color: oklch(30% 0.02 50); pointer-events: none; font-style: italic; }
.privacy-inner { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); position: relative; z-index: 1; }
.privacy .eyebrow { color: oklch(74% 0.14 40); }
.privacy h2 { font-size: var(--step-3); max-width: 17ch; }
.privacy h2 em { color: var(--marker); }
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 60rem; }
.privacy-grid p { color: var(--night-muted); border-top: 1px solid oklch(38% 0.02 50); padding-top: 1rem; }
.privacy-grid b { color: var(--night-text); font-family: var(--serif); font-weight: 500; font-size: var(--step-1); display: block; margin-bottom: 0.3rem; }

/* comparativo */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 600; width: 30%; }
td { color: var(--ink-3); }
td.us, th.us { background: color-mix(in oklch, var(--marker-soft) 70%, transparent); color: var(--ink); font-weight: 500; }
thead th.us { color: var(--rec-deep); }

/* instalar */
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.install h2 { font-size: var(--step-3); margin-bottom: 1.2rem; }
.install-copy > p:not(.eyebrow) { color: var(--ink-2); margin-bottom: 1.8rem; max-width: 34rem; }
.install-copy .tiny { margin-top: 0.9rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.8rem 4.2rem; color: var(--ink-2); min-height: 3.6rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -0.4rem; font-family: var(--serif); font-style: italic; font-size: var(--step-3); color: var(--rec); line-height: 1; font-variation-settings: "opsz" 144, "SOFT" 100; }
.steps li + li { border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.steps li + li::before { top: 0.8rem; }
.steps b { color: var(--ink); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-bottom: clamp(4rem, 9vw, 8rem); }
.faq .section-head { position: sticky; top: 6rem; }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; font-family: var(--serif); font-size: var(--step-1); position: relative; font-variation-settings: "opsz" 36; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--rec); transition: transform 0.3s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--ink-2); padding: 0 0 1.4rem; max-width: 40rem; }

/* rodapé */
.foot { border-top: 1px solid var(--rule); padding: 2.5rem var(--gutter); display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; max-width: var(--max); margin: 0 auto; color: var(--ink-3); font-size: var(--step--1); }
.foot nav { display: flex; gap: 1.5rem; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.made { margin-left: auto; display: inline-flex; gap: 0.5rem; align-items: center; text-decoration: none; }
.made b { color: var(--ink); font-weight: 700; }
.made b span { color: oklch(66% 0.1 155); }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero, .feat-wide, .install, .faq { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .layers, .feat-list { grid-template-columns: 1fr; }
  .feat-list li { padding-bottom: 1.2rem; }
  .shot-browser { transform: none; }
  .faq .section-head { position: static; }
  .stage { max-width: 560px; }
}
@media (max-width: 720px) {
  .nav nav { display: none; }
  .feat-pair { grid-template-columns: 1fr; }
  .feat-pair .feat:last-child { margin-top: 0; }
  .privacy-grid { grid-template-columns: 1fr; }
  .widget { right: 0; width: 92%; }
  .w-body { height: 12.5rem; }
  .stage { padding-bottom: 7rem; }
  .proofs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .made { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-copy > *, .stage { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
