/* Layout do site multiproduto (home, /feed, /loop, preços, FAQ, legais,
   obrigado, desinstalação, boas-vindas). Página que rola normalmente, sem o
   "shell" fixo do styles.css antigo. Mesmos valores de cor do styles.css e
   do shared/tokens.css da extensão; escala de tipo 12/14/16/18/20/24/30/36. */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/Onest-Variable.woff2") format("woff2");
}

@view-transition {
  navigation: auto;
}

:root {
  --font:
    "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --bg-2: #f7f7f9;
  --surface: #ffffff;
  --well: #f1f1f4;
  --border: #e6e6eb;
  --border-2: #d2d2d9;
  --text: #111111;
  --text-2: #4b4b52;
  --text-3: #6e6e78;

  /* Ação principal: tinta quase preta com leve tom quente, igual ao
     --accent da extensão. O vermelho é só do ícone. */
  --ink: #1c1915;
  --ink-hover: #36312b;
  --ink-contrast: #ffffff;

  --icon-red: #c1272d;
  --icon-orange: #d4762a;

  /* "Instalar grátis": vermelho da marca, fixo nos dois temas (6:1 com
     texto branco). Só os botões de instalar usam; o resto das ações
     continua em --ink, e o Pro em --pro. */
  --cta: #c1272d;
  --cta-hover: #a82127;
  --cta-contrast: #ffffff;

  /* Toggles: mesmos 4 valores do shared/tokens.css da extensão (o azul é
     só do toggle; botão principal continua sendo --ink). */
  --toggle-on: oklch(0.75 0.13 235);
  --toggle-on-contrast: oklch(0.99 0 0);
  --toggle-off: oklch(0.65 0.006 260);
  --toggle-off-contrast: oklch(0.99 0 0);
  /* Planos, valores do vidsieve.com/pricing: ✓ azul fixo no Grátis,
     card do Grátis azul-marinho só no escuro, dourado de 7% no topo do Pro. */
  --check-free: #4a7ec2;
  --faq-chev: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b4b52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  --plan-free-bg: var(--surface);
  --plan-free-border: var(--border);
  --plan-pro-glow: rgba(235, 179, 83, 0.07);

  /* Laranja do Vidsieve Loop, mesmos valores do ui-panel-css.js da
     extensão: --loop-strong é o --acs (texto e preenchimento, 5:1 com
     branco), --loop-soft o --acsoft e --loop-band o --acband. */
  --loop-strong: #a4571a;
  --loop-on: #ffffff;
  --loop-soft: #fbebdd;
  --loop-band: rgba(212, 118, 42, 0.22);
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --pro: #ebb353;
  --pro-hover: #e1a536;
  --pro-contrast: #3a2400;
  --pro-text: #5b3b00;
  --pro-tint: #fbe9c8;
  --pro-border: #c69d58;

  --ok: #1f8a4c;
  --err: #c43c3c;

  --shadow: 0 1px 2px rgba(18, 22, 40, 0.06), 0 8px 24px -12px rgba(18, 22, 40, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
  --max: 1120px;
  --gutter: 24px;
}

:root[data-theme="dark"] {
  --bg: #0d0d10;
  --bg-2: #131317;
  --surface: #17171c;
  --well: #1f1f25;
  --border: rgba(255, 255, 255, 0.1);
  --border-2: rgba(255, 255, 255, 0.18);
  --text: #f2f2f4;
  --text-2: #b8b8c0;
  --text-3: #8d8d97;

  --ink: #f2efe9;
  --ink-hover: #ffffff;
  --ink-contrast: #141210;

  --icon-red: #e0494f;
  --icon-orange: #e48a3f;

  /* Mesmo vermelho; o hover clareia em vez de escurecer, para não sumir
     no fundo escuro (4.7:1 com texto branco). */
  --cta-hover: #d23a40;

  --toggle-on: oklch(0.6 0.13 235);
  --toggle-on-contrast: oklch(0.95 0.005 260);
  --toggle-off: oklch(0.32 0.005 260);
  --toggle-off-contrast: oklch(0.95 0.005 260);
  --plan-free-bg: #141d33;
  --faq-chev: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8b8c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  --plan-free-border: rgba(141, 208, 255, 0.13);
  --plan-pro-glow: rgba(223, 177, 39, 0.07);

  --loop-strong: #e8894a;
  --loop-on: #17150f;
  --loop-soft: #3a2819;
  --loop-band: rgba(232, 137, 74, 0.3);

  --pro: #dfb127;
  --pro-hover: #f0c13e;
  --pro-contrast: #171717;
  --pro-text: #dfb127;
  --pro-tint: #2e2205;
  --pro-border: #5a4206;

  --ok: #4cc27f;
  --err: #ef6b6b;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html:not([data-lang-ready]) body {
  visibility: hidden;
}
/* main.js aplica o tema salvo depois que a página já foi pintada; sem isso
   botões e fundos fazem a transição do tema claro para o escuro na carga. */
html[data-preload] *,
html[data-preload] *::before,
html[data-preload] *::after {
  transition: none !important;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
::selection {
  background: rgba(212, 118, 42, 0.25);
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 4px;
}
.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;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.wrap-narrow {
  max-width: calc(760px + 2 * var(--gutter));
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 24px;
  height: 24px;
  display: block;
}
.brand span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav-main {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}
.nav-main a,
.nav-dropdown a {
  color: var(--text-2);
  text-decoration: none;
}
.nav-main a:hover,
.nav-dropdown a:hover {
  color: var(--text);
}
.nav-main a.active,
.nav-dropdown a.active {
  color: var(--text);
  font-weight: 600;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.icon-btn,
.lang-btn {
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.icon-btn,
.lang-btn {
  padding: 0;
}
.icon-btn:hover,
.lang-btn:hover {
  background: var(--well);
}
.menu-btn {
  display: none;
}
@media (pointer: coarse) {
  .icon-btn,
  .lang-btn {
    height: 40px;
    min-width: 40px;
  }
}
.nav-dropdown {
  border-top: 1px solid var(--border);
  padding: 8px var(--gutter) 16px;
  display: flex;
  flex-direction: column;
}
.nav-dropdown a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown a:last-child {
  border-bottom: 0;
}

/* ---------- botões e selos ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.btn-primary {
  background: var(--ink);
  color: var(--ink-contrast);
}
.btn-primary:hover {
  background: var(--ink-hover);
}
.btn-install {
  background: var(--cta);
  color: var(--cta-contrast);
}
.btn-install:hover {
  background: var(--cta-hover);
}
/* Loop no Firefox (ver markLoopUnavailable no main.js): sem link, neutro. */
.btn.is-unavailable,
.btn.is-unavailable:hover {
  background: var(--well);
  color: var(--text-3);
  border-color: var(--border);
  cursor: default;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover {
  background: var(--well);
}
.btn-pro {
  background: var(--pro);
  color: var(--pro-contrast);
}
.btn-pro:hover {
  background: var(--pro-hover);
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.pro-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--pro-text);
  background: var(--pro-tint);
  border: 1px solid var(--pro-border);
  white-space: nowrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.text-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-underline-offset: 3px;
}
.text-link:hover {
  text-decoration-color: currentColor;
}
.muted {
  color: var(--text-2);
}
/* Fechamento das páginas de produto: último convite para instalar. */
.closing {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
}
.closing-note {
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- seções ---------- */

.section {
  padding-block: 96px;
}
.section + .section {
  padding-top: 0;
}
.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
  max-width: 680px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
}
.h2 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
}
.h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 600px;
  text-wrap: pretty;
}

/* Hero centrado (home, preços, FAQ) */
.hero-center {
  padding-block: 80px 56px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
}
.hero-center .h1,
.hero-center .lede {
  text-wrap: balance;
}
.hero-center .lede {
  margin-inline: auto;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  margin-bottom: 8px;
  transition: border-color 0.15s, color 0.15s;
}
.hero-pill .tag {
  border-radius: 999px;
}
.hero-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.hero-pill:hover {
  border-color: var(--border-2);
  color: var(--text);
}
.hero-pill:hover svg {
  transform: translateX(2px);
}
.trust-strip {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-strip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ok);
}
.hero-center + .section,
.hero-split + .section {
  padding-top: 0;
}

/* Hero dividido (páginas de produto) */
.hero-split {
  padding-block: 64px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 20px;
  align-content: start;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.hero-note {
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- cards de produto (home) ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.product-visual {
  height: 240px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}
.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.product-name {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.product-name img {
  width: 32px;
  height: 32px;
}
.product-name h2 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: normal;
}
.product-body p {
  color: var(--text-2);
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.product-browsers {
  font-size: 14px;
  color: var(--text-3);
}
.closing-picks {
  width: 100%;
  max-width: 640px;
  display: grid;
  gap: 12px;
  text-align: left;
}
.only-touch {
  display: none;
}
/* Extensão não instala em navegador de celular/tablet: lá o card só leva
   para a página do produto, ocupando a largura toda. */
@media (hover: none) and (pointer: coarse) {
  .product-actions .btn-install,
  .closing-picks .btn-install {
    display: none;
  }
  .product-actions .btn {
    flex: 1;
  }
  .btn.only-touch {
    display: inline-flex;
  }
}
.product-soon {
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-2);
  font-size: 14px;
}
.product-soon strong {
  color: var(--text);
  font-size: 16px;
}

/* ---------- bloco Pro ---------- */

.pro-band {
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}
.pro-band-copy {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.pro-band-copy p {
  color: var(--text-2);
  max-width: 480px;
}
.pro-ticket {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 16px;
}
.pro-ticket-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.pro-ticket-head strong {
  font-size: 16px;
  font-weight: 600;
}
.pro-ticket-price {
  display: grid;
  justify-items: end;
}
.pro-ticket-price span:last-child {
  font-size: 14px;
  color: var(--text-2);
}
.price {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
/* Símbolo da moeda ("US$" no português, "$" no inglês): menor e alinhado
   ao topo dos algarismos, para o número ser o que se lê primeiro. O
   vertical-align sobe o símbolo até a altura das maiúsculas do número. */
.cur {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 8px;
  margin-right: 4px;
  color: var(--text-2);
}
.pro-ticket-rows {
  border-top: 1px dashed var(--border-2);
  padding-top: 16px;
  display: grid;
  gap: 12px;
  font-size: 14px;
}
.pro-ticket-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.pro-ticket-rows .ok {
  color: var(--ok);
  font-weight: 600;
}
.pro-ticket-rows .is-next {
  color: var(--text-3);
}
.pro-ticket-note {
  border-top: 1px dashed var(--border-2);
  padding-top: 16px;
  font-size: 14px;
  color: var(--text-2);
}
.pro-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.pro-strip span:nth-child(2) {
  flex: 1;
  min-width: 220px;
}
.feature-grid + .pro-strip {
  margin-top: 16px;
}

/* ---------- grades ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.values div {
  display: grid;
  gap: 8px;
  align-content: start;
}
.values strong {
  font-size: 16px;
}
.values span {
  font-size: 14px;
  color: var(--text-2);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--surface);
  padding: 24px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.feature-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 600;
}
.feature p {
  font-size: 14px;
  color: var(--text-2);
}

.uses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.use {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.use p {
  font-size: 14px;
  color: var(--text-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  display: grid;
  gap: 8px;
  align-content: start;
  counter-increment: step;
}
.steps li::before {
  /* Só o número, na cor da marca (sem círculo de fundo). --icon-red já
     clareia no tema escuro e passa 4.5:1 como texto nos dois temas. */
  content: counter(step);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--icon-red);
  font-variant-numeric: tabular-nums;
}
.steps strong {
  font-size: 18px;
}
.steps span {
  font-size: 14px;
  color: var(--text-2);
}
.steps.boxed li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.split-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
/* "Já comprou?" e "Cobrança": ícone num quadrado, texto e link de ação. */
.help-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.help-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--well);
  color: var(--text);
}
.help-icon svg {
  width: 20px;
  height: 20px;
}
.help-copy {
  display: grid;
  gap: 8px;
  align-content: start;
}
.help-copy h3 {
  font-size: 16px;
  font-weight: 600;
}
.help-copy p {
  font-size: 14px;
  color: var(--text-2);
}
.help-copy p a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.help-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.help-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}
.help-link:hover svg {
  transform: translateX(2px);
}
.box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.box > .pro-badge,
.box > .eyebrow {
  justify-self: start;
}
.box.tinted {
  background: var(--bg-2);
}
.box p {
  font-size: 14px;
  color: var(--text-2);
}
.cross {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cross img {
  width: 32px;
  height: 32px;
}
.cross div {
  flex: 1;
  min-width: 200px;
  display: grid;
  gap: 2px;
}

/* "Também da Vidsieve" nas páginas de produto: ícone, texto e botão numa
   linha, todos centralizados; a etiqueta fica na coluna do texto para
   alinhar com o nome do produto. */
.cross-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.cross-card img {
  width: 40px;
  height: 40px;
}
.cross-card-copy {
  display: grid;
  gap: 4px;
}
.cross-card-copy strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.cross-card-copy p {
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- mocks ---------- */

.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mock-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* Feed: lista de vídeos */
.feed-list {
  display: flex;
  flex-direction: column;
}
.feed-item {
  display: flex;
  gap: 12px;
  align-items: center;
  max-height: 44px;
  margin-bottom: 12px;
  overflow: hidden;
  transition:
    opacity 0.35s,
    max-height 0.35s,
    margin 0.35s,
    transform 0.35s;
}
.feed-item.is-hidden {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  transform: translateX(-8px);
}
.feed-thumb {
  width: 60px;
  height: 32px;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--well);
}
.feed-lines {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.feed-lines i {
  height: 8px;
  border-radius: 2px;
  background: var(--text-3);
  opacity: 0.35;
  width: 82%;
}
.feed-lines i + i {
  height: 6px;
  width: 50%;
  opacity: 0.18;
}
.feed-tag {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--well);
  color: var(--text-2);
}
.feed-block-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  cursor: pointer;
  flex-shrink: 0;
}
.feed-block-btn:hover {
  background: color-mix(in srgb, var(--err) 12%, transparent);
  color: var(--err);
}
.toast {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--well);
}
.toast span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toast button {
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Feed: filtros rápidos */
.filters-list {
  display: grid;
  gap: 4px;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.track {
  width: 40px;
  height: 24px;
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  background: var(--toggle-off);
  transition: background 0.2s;
}
.track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--toggle-off-contrast);
  transition: left 0.2s;
}
.track.is-on {
  background: var(--toggle-on);
}
.track.is-on::after {
  left: 19px;
  background: var(--toggle-on-contrast);
}
.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--well);
  border-radius: var(--radius-sm);
}
.seg button {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
}
.seg button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
/* No escuro a sombra some contra o fundo; o popup da extensão adiciona um
   contorno de 1px no segmento ativo, e aqui faz o mesmo. */
:root[data-theme="dark"] .seg button.is-active,
:root[data-theme="dark"] .tabs button[aria-selected="true"] {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--border-2);
}

.feed-demo {
  /* Mesa pontilhada com os cards do popup por cima, como no site antigo. */
  background-color: var(--bg-2);
  background-image: radial-gradient(circle, var(--border-2) 1px, transparent 1.5px);
  background-size: 16px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
  /* "Feed de hoje" ocupa a altura toda da coluna da direita */
  align-items: stretch;
}
.feed-demo .mock {
  padding: 16px;
  display: grid;
  /* minmax(0, ...): sem isso o aviso "@canal bloqueado" (nowrap) estica o
     card além da coluna e fica por baixo do card vizinho */
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
}
.feed-demo-side {
  display: grid;
  gap: 16px;
  align-content: start;
}
/* Nomes dos perfis numa linha só ("Foco Profundo" é o mais longo):
   cada segmento ocupa a largura do próprio texto. */
.feed-demo .seg button {
  flex: 1 1 auto;
  padding: 6px 8px;
  font-size: 12px;
  white-space: nowrap;
}
.feed-demo .feed-list {
  gap: 0;
}
/* Tamanho fixo: a altura vem da coluna da direita (que não muda) e a
   lista só preenche o que sobra. contain: size faz a lista não empurrar o
   card; ligar/desligar filtro troca os vídeos visíveis sem mexer no
   tamanho de nada. O esfumado embaixo mostra que o feed continua. */
.feed-demo > .mock {
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.feed-demo > .mock .feed-item {
  /* sem isso o flex espreme todos os vídeos para caber, em vez de deixar
     os de baixo escondidos pelo overflow */
  flex-shrink: 0;
}
.feed-demo > .mock .feed-list {
  contain: size;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent);
  mask-image: linear-gradient(to bottom, #000 85%, transparent);
}
/* Etiqueta no lugar da segunda linha do título, como os metadados do
   YouTube: não rouba largura da linha do título. */
.feed-lines .feed-tag {
  justify-self: start;
  height: 16px;
  padding: 0 8px;
  line-height: 16px;
}
.feed-demo .feed-thumb {
  width: 56px;
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.filter-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-3);
}
/* Mesma hierarquia do .stats-hero do popup: número grande, legenda
   curta e a semana em texto mais fraco. */
.stat {
  padding: 20px 16px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
}
.stat-number {
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.stat-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-3);
}
.stat-sub b {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* Loop: réplica da aba "Vídeo" do painel lateral da extensão (resumo de
   tom, lista de trechos e rodapé com linha do tempo e botão Loop). */
.loop-demo {
  background-color: var(--bg-2);
  background-image: radial-gradient(circle, var(--border-2) 1px, transparent 1.5px);
  background-size: 16px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 16px;
}
.loop-demo .mock {
  padding: 16px;
}
/* Na extensão o título "Trechos" é em caixa normal, 14px negrito. */
.loop-demo .mock-label {
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-2);
}
.loop-tone {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}
.loop-tone strong {
  display: block;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.loop-tone strong.is-changed {
  color: var(--loop-strong);
}
.loop-tone span {
  font-size: 12px;
  color: var(--text-2);
}
.loop-secs {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.loop-sec {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.loop-sec.is-active {
  border-color: var(--loop-strong);
  box-shadow: inset 0 0 0 1px var(--loop-strong);
}
.loop-num {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.loop-sec.is-active .loop-num {
  background: var(--loop-strong);
  border-color: var(--loop-strong);
  color: var(--loop-on);
}
.loop-sec-copy {
  display: grid;
  min-width: 0;
}
.loop-sec-copy strong {
  font-size: 14px;
  font-weight: 600;
}
.loop-sec-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.loop-sec.is-active .loop-sec-meta {
  color: var(--loop-strong);
}
.loop-play {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--well);
  color: var(--text);
  cursor: pointer;
}
.loop-play:hover {
  background: var(--border);
}
.loop-sec.is-active .loop-play {
  background: var(--loop-strong);
  color: var(--loop-on);
}
.loop-play svg,
.loop-main svg,
.loop-btn svg {
  width: 16px;
  height: 16px;
}
/* Linha do tempo: marcadores numerados no começo de cada trecho, A e B
   cheios no trecho ativo, faixa do trecho e o cursor. */
.loop-track {
  position: relative;
  height: 48px;
}
.loop-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}
.loop-progress {
  position: absolute;
  left: 0;
  bottom: 10px;
  height: 4px;
  border-radius: 2px;
  background: var(--text-2);
}
.loop-band {
  position: absolute;
  bottom: 6px;
  height: 12px;
  border-radius: 999px;
  background: var(--loop-band);
}
.loop-band.is-active {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--loop-strong);
}
.loop-mark {
  position: absolute;
  top: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.loop-mark.is-ab {
  background: var(--loop-strong);
  border-color: var(--loop-strong);
  color: var(--loop-on);
}
.loop-head {
  position: absolute;
  bottom: 4px;
  width: 2px;
  height: 16px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--text);
}
.loop-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.loop-main {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ink-contrast);
  cursor: pointer;
}
.loop-time {
  flex: 1;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.loop-time b {
  color: var(--text);
  font-weight: 600;
}
.loop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--loop-strong);
  border-radius: var(--radius-sm);
  background: var(--loop-strong);
  color: var(--loop-on);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.loop-btn b {
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: color-mix(in srgb, var(--loop-on) 22%, transparent);
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.loop-btn.is-off {
  background: transparent;
  color: var(--loop-strong);
}
.loop-btn.is-off b {
  display: none;
}

/* Loop: player */
.player {
  padding: 16px;
  display: grid;
  gap: 12px;
  width: 100%;
}
.player-screen {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--icon-orange) 22%, var(--well)), var(--well) 60%);
  position: relative;
  overflow: hidden;
}
.player-screen::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 75%, transparent);
  clip-path: polygon(38% 28%, 38% 72%, 74% 50%);
}
.timeline {
  position: relative;
  height: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 4px;
  border-radius: 2px;
  background: var(--well);
}
.timeline i {
  position: absolute;
  top: 6px;
  height: 12px;
  border-radius: 3px;
  background: var(--border-2);
}
.timeline i.is-playing {
  top: 4px;
  height: 16px;
  background: var(--icon-orange);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.chips span {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--well);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.chips span.is-playing {
  background: color-mix(in srgb, var(--icon-orange) 16%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--icon-orange) 60%, transparent);
  color: var(--text);
  font-weight: 600;
}
.product-visual .player {
  padding: 0;
  max-width: 420px;
}
.product-visual .player-screen {
  aspect-ratio: auto;
  height: 120px;
}
.product-visual .feed-list {
  width: 100%;
  max-width: 360px;
}

/* Cards da home: demos animadas que só rodam com o card na tela
   (.is-live, posto pelo script da index). Com movimento reduzido ficam
   paradas no estado final. */
/* Card do Feed na home: o feed à esquerda e, à direita, o bloco "Filtros
   rápidos" do popup da extensão, com os mesmos rótulos ("Ocultar …") e o
   mesmo interruptor. O rótulo diz o que acontece quando liga, como na
   extensão: ligou "Ocultar Shorts", os Shorts somem da lista. */
.vis-feed {
  width: 100%;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
/* contain: size: a lista (mais longa que o card) não estica a área, então o
   bloco de filtros fica centralizado e o excesso some no esfumado. */
.vis-feed .vis-list {
  align-self: stretch;
  contain: size;
}
.vis-feed .feed-item {
  flex-shrink: 0;
}
.vis-pop {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.vis-pop-title {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.vis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.vis-sw {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: var(--toggle-off);
  transition: background 0.2s;
}
.vis-sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--toggle-off-contrast);
  transition: left 0.2s;
}
.vis-row.is-on .vis-sw {
  background: var(--toggle-on);
}
.vis-row.is-on .vis-sw::after {
  left: 14px;
  background: var(--toggle-on-contrast);
}
.vis-list {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.vis-list .feed-item {
  transition:
    opacity 0.45s ease,
    max-height 0.45s ease,
    margin 0.45s ease,
    transform 0.45s ease;
}
.vis-list .feed-item.is-marked {
  opacity: 0.4;
}

.vis-screen {
  position: relative;
}
.product-visual .vis-screen::after {
  display: none;
}
.vis-eq {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.vis-eq i {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--text) 40%, transparent);
  transform: scaleY(0.6);
}
.vis-eq i:nth-child(2) {
  animation-delay: -0.5s;
  transform: scaleY(0.9);
}
.vis-eq i:nth-child(3) {
  animation-delay: -1.1s;
  transform: scaleY(0.5);
}
.vis-eq i:nth-child(4) {
  animation-delay: -0.3s;
  transform: scaleY(1);
}
.vis-eq i:nth-child(5) {
  animation-delay: -0.8s;
  transform: scaleY(0.4);
}
@keyframes vis-eq {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}
.vis-hud {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.vis-hud svg {
  width: 12px;
  height: 12px;
}
.vis-hud-count {
  left: 8px;
  bottom: 8px;
}
.vis-hud-speed {
  right: 8px;
  top: 8px;
}
.vis-hud b {
  display: inline-block;
  font-weight: 700;
}
.vis-hud b.is-bump {
  animation: vis-bump 0.4s ease-out;
}
@keyframes vis-bump {
  50% {
    transform: scale(1.15);
  }
}
.vis-playhead {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 0;
  width: 2px;
  border-radius: 1px;
  background: var(--text);
}
@keyframes vis-play {
  to {
    left: calc(100% - 2px);
  }
}
/* Roda uma vez ao entrar na tela (3 voltas, uns 6 s) e para; sem
   .is-live tudo volta ao estado parado. */
.is-live .vis-eq i {
  /* longhands: o atalho zeraria o animation-delay de cada barra */
  animation-name: vis-eq;
  animation-duration: 1.6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.is-live .vis-playhead {
  animation: vis-play 2s linear 3;
}

/* ---------- preços ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.plan {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Pro: dourado bem claro no topo que some até a cor do card, como no site
   antigo; vale para o card do plano e para a coluna do Pro na comparação. */
.plan:not(.is-pro),
.compare-col:not(.is-pro) {
  background: var(--plan-free-bg);
  border-color: var(--plan-free-border);
}

.plan.is-pro {
  background: linear-gradient(var(--plan-pro-glow), transparent 140px), var(--surface);
}
.compare-col.is-pro {
  background: var(--surface);
}
.plan.is-pro {
  border: 1px solid var(--pro-border);
}
.plan.is-pro .plan-head,
.compare-col.is-pro h3 {
  color: var(--pro-text);
}
.plan-flag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 24px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--pro);
  color: var(--pro-contrast);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.plan-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan-price strong {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.plan-price > span {
  color: var(--text-2);
}
.plan-price .cur {
  font-size: 18px;
  vertical-align: 12px;
}
.plan > p {
  color: var(--text-2);
}
.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.plan-list li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  color: var(--text-2);
}
.plan-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: var(--check-free);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
}
/* Card Grátis: pílula Feed | Loop + um botão de instalar (uma ação só,
   como o Pro). Mesmo visual da pílula da comparação. */
.plan-install {
  margin-top: auto;
  display: grid;
  gap: 12px;
}
.install-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--well);
  border-radius: 10px;
}
.install-pick button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.install-pick img {
  width: 16px;
  height: 16px;
}
.install-pick button[aria-checked="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
:root[data-theme="dark"] .install-pick button[aria-checked="true"] {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--border-2);
}
.plan-install .btn {
  width: 100%;
}
.install-note {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}
.plan > .btn {
  margin-top: auto;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--well);
  border-radius: 10px;
}
.tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  min-width: 96px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  padding: 0 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.tabs button img {
  width: 16px;
  height: 16px;
}
.tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
/* Colunas da comparação: faixa de cor no topo (azul no Grátis, dourado no
   Pro) com o título e a contagem; grupos com o nome seguido de um fio. */
.compare-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 24px;
  display: grid;
  gap: 24px;
  overflow: hidden;
}
.compare-col > .compare-group {
  padding-inline: 24px;
}
.compare-col h3 {
  margin: 0;
  line-height: 28px;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--check-free) 9%, transparent);
  border-bottom: 1px solid var(--plan-free-border);
}
.compare-col.is-pro h3 {
  background: color-mix(in srgb, var(--pro) 14%, transparent);
  border-bottom-color: var(--pro-border);
}
.compare-count {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.compare-col.is-pro .compare-count {
  color: var(--pro-text);
}
.compare-col.is-pro {
  border-color: var(--pro-border);
}
/* A coluna Grátis é bem mais longa; a do Pro acompanha a rolagem para
   as duas listas continuarem lado a lado. */
@media (min-width: 721px) {
  .compare-col.is-pro {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
.compare-col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}
.compare-group {
  display: grid;
  gap: 8px;
}
.compare-group h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.compare-group h4::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
/* Lista grátis em duas colunas no desktop: metade da altura. A coluna
   Grátis fica mais larga que a do Pro (tem três vezes mais itens). */
@media (min-width: 961px) {
  .compare {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
  .compare-col:not(.is-pro) .compare-group ul {
    display: block;
    columns: 2;
    column-gap: 24px;
  }
  .compare-col:not(.is-pro) .compare-group li {
    break-inside: avoid;
    margin-bottom: 8px;
  }
}
.compare-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
/* Mesmo ✓ das listas dos planos, menor e suave: cinza no Grátis e no tom
   do texto Pro na coluna do Pro. Fica alinhado à primeira linha quando o
   item quebra. */
.compare-group li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  color: var(--text-2);
}
.compare-group li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: var(--check-free);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
}
.compare-col.is-pro .compare-group li::before,
.plan.is-pro .plan-list li::before {
  background: var(--pro-text);
}

/* ---------- FAQ ---------- */

.with-toc {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 96px;
}
/* Perguntas na largura de leitura: o + fica perto do texto. */
.faq-list {
  max-width: 760px;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 2px;
  font-size: 14px;
}
.toc a {
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
}
.toc a:hover {
  background: var(--bg-2);
  color: var(--text);
}
.toc a.is-active {
  background: var(--well);
  color: var(--text);
  font-weight: 600;
}
.faq-group + .faq-group {
  margin-top: 64px;
}
.faq-group h2 {
  font-size: 20px;
  margin-bottom: 16px;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
/* Seta (chevron) num círculo: para baixo fechado, para cima aberto. O giro
   de 180° não borra (só ângulos como 45° borram). */
.faq-item summary::after {
  content: "";
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--faq-chev) center / 16px 16px no-repeat, var(--well);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(180deg);
}
.faq-item summary:hover::after {
  background-color: var(--border);
}
.faq-item p {
  padding-bottom: 20px;
  color: var(--text-2);
  max-width: 680px;
  text-wrap: pretty;
}
.faq-item p + p {
  margin-top: -8px;
}
.faq-item p a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Fim do FAQ: saída para suporte só em texto, alinhada com as perguntas. */
.faq-more {
  margin-top: 64px;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.faq-more h2 {
  font-size: 20px;
}
.faq-more p {
  color: var(--text-2);
}
.faq-more p a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-more .btn {
  margin-top: 8px;
}

/* ---------- páginas legais ---------- */

.legal-head {
  padding-block: 72px 32px;
  display: grid;
  gap: 8px;
}
.legal-head .h1 {
  margin-bottom: 4px;
}
.legal-updated {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.legal-note {
  font-size: 14px;
  color: var(--text-3);
  max-width: 720px;
}
.legal-doc {
  display: grid;
  gap: 48px;
  max-width: 720px;
}
.legal-section {
  display: grid;
  gap: 12px;
}
.legal-section h2 {
  font-size: 20px;
}
.legal-section p,
.legal-section li {
  color: var(--text-2);
  text-wrap: pretty;
}
.legal-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.legal-section strong {
  color: var(--text);
}
.legal-section a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
  background: var(--well);
  padding: 1px 6px;
  border-radius: 4px;
}
.table-scroll {
  overflow-x: auto;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-2);
}
.legal-table th {
  color: var(--text);
  font-weight: 600;
}

/* ---------- páginas de fluxo (obrigado, boas-vindas, desinstalação) ---------- */

.flow {
  padding-block: 80px;
  display: grid;
  gap: 40px;
}
.flow-head {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.flow-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
/* Desinstalação: o botão de liberar ocupa a largura toda do formulário,
   como o foco da página. */
.form.release-form .btn {
  justify-self: stretch;
}
.flow-head img {
  width: 48px;
  height: 48px;
}
.ext-list {
  display: grid;
  gap: 12px;
}
.ext-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.ext-row img {
  width: 32px;
  height: 32px;
}
.ext-row div {
  flex: 1;
  min-width: 200px;
  display: grid;
  gap: 2px;
}
.ext-row p {
  font-size: 14px;
  color: var(--text-2);
}
.receipt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 14px;
  color: var(--text-2);
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.receipt b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.receipt span span {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Obrigado do Pro: um recibo só, sem menu nem rodapé. Passos à esquerda,
   comprovante à direita separado por um picote tracejado. */
.ticket-page {
  background: var(--bg-2);
}
.ticket-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
}
.ticket {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ticket-main {
  padding: 48px 56px 40px;
  display: grid;
  gap: 20px;
  align-content: start;
}
.ticket-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.ticket-brand img {
  width: 20px;
  height: 20px;
}
.ticket-title {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ticket-lede {
  font-size: 16px;
  color: var(--text-2);
  max-width: 560px;
}
.ticket-steps {
  list-style: none;
  counter-reset: step;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.ticket-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 16px;
  font-size: 14px;
  color: var(--text-2);
}
.ticket-steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ink-contrast);
  font-size: 12px;
  font-weight: 700;
}
.ticket-steps strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}
.ticket-note {
  font-size: 14px;
  color: var(--text-2);
}
.ticket-install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 20px;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  font-size: 14px;
  color: var(--text-2);
}
.ticket-install p {
  flex: 1;
  min-width: 220px;
}
.ticket-install-btns {
  display: flex;
  gap: 8px;
}
.ticket-install-btns img {
  width: 16px;
  height: 16px;
}
.ticket-help {
  font-size: 14px;
  color: var(--text-3);
}
.ticket-help a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ticket-receipt {
  background: var(--bg-2);
  border-left: 2px dashed var(--border-2);
  padding: 48px 32px;
  display: grid;
  align-content: center;
  gap: 20px;
}
.ticket-receipt div {
  display: grid;
  gap: 4px;
}
.ticket-receipt b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.ticket-receipt span {
  font-size: 16px;
  color: var(--text);
}
.ticket-receipt .ticket-id {
  font-family: var(--mono);
  font-size: 14px;
  word-break: break-all;
}
.ticket-receipt p {
  font-size: 12px;
  color: var(--text-3);
}
@media (max-width: 760px) {
  .ticket {
    grid-template-columns: minmax(0, 1fr);
  }
  .ticket-main {
    padding: 32px 24px;
  }
  .ticket-title {
    font-size: 30px;
  }
  .ticket-receipt {
    border-left: 0;
    border-top: 2px dashed var(--border-2);
    padding: 24px;
  }
}
.form {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-2);
}
.form label {
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}
.form label:first-child {
  margin-top: 0;
}
.form input {
  font: inherit;
  font-size: 16px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.form input:focus-visible {
  outline: none;
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}
.form .hint {
  font-size: 14px;
  color: var(--text-3);
}
.form .btn {
  margin-top: 12px;
  justify-self: start;
}
.form-msg {
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--well);
}
.form-msg.is-ok {
  color: var(--ok);
}
.form-msg.is-err {
  color: var(--err);
}

/* ---------- rodapé ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.footer-grid {
  padding-block: 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  font-size: 14px;
}
.footer-grid div {
  display: grid;
  gap: 8px;
  align-content: start;
}
.footer-grid strong {
  color: var(--text);
}
.footer-grid a {
  color: var(--text-2);
  text-decoration: none;
}
.footer-grid a:hover {
  color: var(--text);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.footer-brand img {
  width: 20px;
  height: 20px;
}
.footer-note {
  font-size: 12px;
  color: var(--text-3);
  max-width: 320px;
}

/* ---------- responsivo ---------- */

@media (max-width: 960px) {
  .hero-split,
  .pro-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .feature-grid,
  .uses,
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .with-toc {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .toc {
    position: sticky;
    top: var(--header-h);
    z-index: 10;
    display: flex;
    gap: 4px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 8px var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .toc::-webkit-scrollbar {
    display: none;
  }
  .toc a {
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid var(--border);
  }
  .faq-group + .faq-group,
  .faq-more {
    margin-top: 48px;
  }
}

@media (max-width: 860px) {
  .nav-main {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }
  .section {
    padding-block: 64px;
  }
  .section-head {
    margin-bottom: 24px;
  }
  .hero-center {
    padding-block: 40px 32px;
    justify-items: start;
    text-align: left;
  }
  .hero-center .lede {
    margin-inline: 0;
    text-wrap: pretty;
  }
  .trust-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-split {
    padding-block: 40px 64px;
  }
  .h1 {
    font-size: 30px;
  }
  .h2 {
    font-size: 24px;
  }
  .lede {
    font-size: 16px;
  }
  .products,
  .plans,
  .compare,
  .split-2,
  .steps,
  .feature-grid,
  .uses,
  .values,
  .feed-demo {
    grid-template-columns: minmax(0, 1fr);
  }
  .pro-band {
    padding: 24px;
  }
  .pro-ticket {
    padding: 20px;
  }
  .feed-demo,
  .loop-demo {
    padding: 12px;
    gap: 12px;
  }
  /* Empilhado não há coluna vizinha para dar a altura: o card fica com
     altura fixa (uns 7 vídeos) e a lista preenche o que sobra, inclusive
     quando o aviso de "bloqueado" aparece. */
  .feed-demo > .mock {
    height: 384px;
  }
  .feed-demo-side {
    gap: 12px;
  }
  .seg button {
    font-size: 12px;
    white-space: nowrap;
  }
  .plan {
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cross-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
  .cross-card .btn {
    grid-column: 1 / -1;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .header-row {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
