@font-face {
  font-family: Inter;
  src: url(assets/fonts/inter.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1b1d21;
  --ink-soft: #565c66;
  --line: #e2e4e9;
  --tint: #f6f7f9;
  --paper: #ffffff;
  --radius: 12px;
  --section: clamp(64px, 8vw, 112px);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 Inter, -apple-system, "SF Pro Text", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid #2f62c9; outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

h1, h2 { letter-spacing: -.028em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.07; }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.16; }

/* Barra superior */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; text-decoration: none; }
.topbar nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.topbar nav a { color: var(--ink-soft); text-decoration: none; transition: color .15s; }
.topbar nav a:hover { color: var(--ink); }

/* Botões */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 550;
  text-decoration: none;
  transition: background-color .15s;
}
.button:hover { background: #33373e; }
.button-small { min-height: 36px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.button-quiet { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button-quiet:hover { background: var(--tint); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.meta { margin-top: 14px; color: var(--ink-soft); font-size: 14px; }

/* Abertura */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 92px) clamp(28px, 3vw, 40px);
  text-align: center;
  user-select: none;
  background:
    radial-gradient(circle, #cfd3da 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--paper);
}
/* Os pontos somem atrás do texto e no fim da área, para não competir com a leitura. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 70% at 50% 42%, #fff 58%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 70%, #fff 100%);
  pointer-events: none;
}
.hero-content { position: relative; }
.hero h1 { max-width: 15em; margin-inline: auto; }

/* Cantos de recorte: o mesmo desenho do ícone do app, convidando a marcar. */
.headline { position: relative; display: inline-block; padding: 16px 28px; }
.headline::before {
  content: "";
  position: absolute;
  inset: 0;
  --l: 22px;
  --t: 3px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / var(--l) var(--t),
    linear-gradient(var(--ink), var(--ink)) 0 0 / var(--t) var(--l),
    linear-gradient(var(--ink), var(--ink)) 100% 0 / var(--l) var(--t),
    linear-gradient(var(--ink), var(--ink)) 100% 0 / var(--t) var(--l),
    linear-gradient(var(--ink), var(--ink)) 0 100% / var(--l) var(--t),
    linear-gradient(var(--ink), var(--ink)) 0 100% / var(--t) var(--l),
    linear-gradient(var(--ink), var(--ink)) 100% 100% / var(--l) var(--t),
    linear-gradient(var(--ink), var(--ink)) 100% 100% / var(--t) var(--l);
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.hero.is-ready .headline::before { opacity: 1; }
.ghost-cursor { position: absolute; left: 0; top: 0; display: none; margin: -11px 0 0 -11px; pointer-events: none; }
.hero-lead { max-width: 34em; margin: 20px auto 0; color: var(--ink-soft); font-size: clamp(18px, 1.7vw, 20px); line-height: 1.5; }
.try {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 3px rgba(20, 28, 45, .08);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
@media (hover: hover) {
  .hero { cursor: crosshair; }
  .hero a { cursor: pointer; }
}

/* Seleção de teste: mesmo gesto e escurecimento do app. */
.selection {
  position: absolute;
  display: none;
  box-shadow: 0 0 0 1px #fff, 0 0 0 4000px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.selection-size {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .75);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  white-space: nowrap;
}
.flash { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.flash.is-on { animation: flash .24s ease-out; }
@keyframes flash { from { opacity: .22; } to { opacity: 0; } }

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(340px, calc(100% - 32px));
  padding: 10px;
  border-radius: 12px;
  background: rgba(38, 38, 42, .96);
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: none; }
.toast strong { display: block; font-weight: 600; }
.toast span { color: rgba(255, 255, 255, .75); font-size: 12px; }
.toast-thumb { position: relative; flex: none; width: 88px; height: 64px; overflow: hidden; border-radius: 4px; background: #fff; }
.toast-thumb > div { position: absolute; transform-origin: 0 0; color: var(--ink); text-align: center; }

.film { margin-block: clamp(16px, 2vw, 24px) var(--section); text-align: center; }
.film video {
  width: 100%;
  border-radius: var(--radius);
  background: #2d3748;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 24px 60px rgba(20, 28, 45, .18);
}
.film figcaption { margin-top: 14px; color: var(--ink-soft); font-size: 13px; }

/* Recursos */
.feature { padding-block: var(--section); }
.feature-tint { background: var(--tint); }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature-grid-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-grid-flip .feature-copy { order: 2; }
.feature-copy p { margin-top: 14px; color: var(--ink-soft); }
.feature-copy ul { margin-top: 20px; padding: 0; list-style: none; }
.feature-copy li { position: relative; padding: 6px 0 6px 26px; font-size: 16px; }
.feature-copy li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.shot {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 18px 44px rgba(20, 28, 45, .14);
}
.recording { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(20px, 4vw, 44px); border-radius: var(--radius); background: var(--tint); }
.recording-frame { width: 100%; border: 2px solid #ff3b30; background: #fff; }
.recording-frame img { width: 100%; }
.recording-bar { width: min(58%, 264px); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .28)); }

/* Atalhos */
.section-center { padding-block: var(--section); text-align: center; }
.section-lead { max-width: 36em; margin: 14px auto 0; color: var(--ink-soft); }
.shortcuts {
  width: min(680px, 100%);
  margin: 36px auto 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}
.shortcuts thead th { padding-bottom: 12px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.shortcuts tbody th { font-weight: 600; text-align: left; }
.shortcuts tbody th, .shortcuts tbody td { padding: 16px 0; border-top: 1px solid var(--line); }
kbd {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--tint);
  font: 500 16px/1.2 -apple-system, "SF Pro Text", sans-serif;
}

/* Instalação */
.install { padding-block: var(--section); background: var(--tint); }
.install h2, .install .section-lead { text-align: center; }
.install ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 44px 0 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}
.install li { counter-increment: step; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.install li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.install strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16px; font-weight: 600; }

/* Encerramento */
.closing { padding-block: var(--section); text-align: center; }
.closing img { margin: 0 auto 14px; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}
.footer a { text-underline-offset: 3px; }

/* Em telas de toque não há como arrastar sem rolar a página. */
@media (hover: none) {
  .try { display: none; }
  .headline { padding-inline: 0; }
  .headline::before { display: none; }
}

@media (max-width: 860px) {
  .feature-grid, .feature-grid-flip { grid-template-columns: minmax(0, 1fr); }
  .feature-grid-flip .feature-copy { order: 0; }
  .install ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .topbar nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .install ol { grid-template-columns: minmax(0, 1fr); }
  .actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .topbar nav a, .toast { transition: none; }
  .flash.is-on { animation: none; }
}
