/* Edit Like Me — base do site (v2, 18/10/2026). Sem framework, sem build. Tema escuro só: azul é luz, branco é ação.
   Fontes locais (OFL): Instrument Serif (títulos), Geist (texto), Geist Mono (tempo, trilhas, dados). */
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #08090a; --deep: #030405; --s1: #111214; --s2: #18191b; --s3: #222428;
  --mar: #04101f; --mar-2: #06182e;
  --linha: rgba(255,255,255,.07); --linha-forte: rgba(255,255,255,.13);
  --t1: #f5f5f3; --t2: #b4b8be; --t3: #8a9099;
  --azul: #2a5cf0; --azul-claro: #5aa2ff; --azul-f: #0f1b38; --azul-borda: #2a4a8f; --azul-sel: #99c8ff;
  --ok: #78d9b0; --alerta: #ff8a7a;
  --vidro: rgba(16,28,64,.45); --vidro-borda: rgba(160,200,255,.18);
  --glow: 0 0 0 1px rgba(90,162,255,.35), 0 0 24px -2px rgba(42,92,240,.55);
  --glow-forte: 0 0 0 1px rgba(170,210,255,.28), 0 0 60px -10px rgba(42,92,240,.6), 0 50px 120px -40px rgba(0,0,0,.95);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r1: 10px; --r2: 14px; --r3: 20px;
  --gut: clamp(16px, 4.5vw, 32px);
  --largo: 1200px; --estreito: 760px;
  --topo-h: 60px;
  /* movimento (régua do Emil + tokens do transitions.dev em transicoes.css) */
  --sai: cubic-bezier(.23, 1, .32, 1);
  --sai-forte: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topo-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--t1); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
/* grão: textura de película por cima de tudo, sem cor nova */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--azul-sel); outline-offset: 3px; border-radius: 6px; }
::selection { background: #17324e; color: var(--azul-sel); }
[hidden] { display: none !important; }

/* ── Tipografia ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1; text-wrap: balance; }
h1 em { font-style: italic; color: var(--azul-sel); }
h2 { font-size: clamp(40px, 6.4vw, 78px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.01em; line-height: 1.08; }
.lead { color: var(--t2); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; max-width: 56ch; margin-top: 22px; text-wrap: pretty; }
.nota { font-family: var(--mono); font-size: 12px; color: var(--t3); margin-top: 22px; letter-spacing: .01em; }
strong { font-weight: 500; color: var(--t1); }
.cod { font-family: var(--mono); font-size: .78em; letter-spacing: -.02em; }  /* V1, V02… no título serifado o 1 parece l */

.miolo { width: min(100% - 2 * var(--gut), var(--estreito)); margin-inline: auto; }
.miolo-largo { width: min(100% - 2 * var(--gut), var(--largo)); margin-inline: auto; }
section { position: relative; padding-block: clamp(80px, 11vw, 150px); }

.pular { position: absolute; left: -999px; top: 8px; background: var(--t1); color: var(--deep); padding: 8px 12px; border-radius: 8px; z-index: 200; }
.pular:focus { left: 12px; }

/* ── Botões ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 15.5px; white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--sai), background-color 160ms ease, box-shadow 200ms ease, border-color 200ms ease; }
.btn:active { transform: scale(.97); }
.btn-branco { background: var(--t1); color: #0c0d0f; }
.btn-vidro { background: var(--vidro); border: 1px solid var(--vidro-borda); color: var(--t1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-p { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-cheio { width: 100%; min-height: 54px; font-size: 16.5px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: default; transform: none; }
.seta { display: inline-block; transition: transform 200ms var(--sai); }
@media (hover: hover) and (pointer: fine) {
  .btn-branco:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 12px 40px -12px rgba(245,245,243,.5); }
  .btn-vidro:hover { box-shadow: var(--glow); border-color: rgba(170,210,255,.45); }
  .btn:hover .seta { transform: translateX(3px); }
}

/* ── Topo fixo + régua de tempo (a página é uma sequência) ── */
.topo { position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; gap: 24px; height: var(--topo-h); padding-inline: max(var(--gut), env(safe-area-inset-left));
  background: rgba(8,9,10,.0); transition: background-color 240ms ease, backdrop-filter 240ms ease; }
.topo.rolou { background: rgba(8,9,10,.74); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.marca { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 23px; letter-spacing: -.01em; min-height: 44px; }
.ponto { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--azul), var(--azul-claro)); box-shadow: 0 0 14px rgba(90,162,255,.85); }
.menu { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--t2); }
.menu a { padding: 10px 0; transition: color 160ms ease; }
@media (hover: hover) { .menu a:hover { color: var(--t1); } }
.tc { font-family: var(--mono); font-size: 12px; color: var(--azul-sel); letter-spacing: .04em; font-variant-numeric: tabular-nums; opacity: .8; }
.regua { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; pointer-events: none; opacity: 0; transition: opacity 240ms ease;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 12px) bottom / 100% 3px no-repeat,
              repeating-linear-gradient(90deg, rgba(255,255,255,.24) 0 1px, transparent 1px 120px) bottom / 100% 6px no-repeat; }
.topo.rolou .regua { opacity: 1; }
.regua-agulha { position: absolute; top: -2px; bottom: 0; left: 0; width: 2px; background: var(--azul-claro); box-shadow: 0 0 10px rgba(90,162,255,.9); transform: translateX(calc(var(--p, 0) * (100vw - 2px))); }
.regua-marca { position: absolute; bottom: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 1px; background: var(--azul-borda); }
@media (max-width: 900px) { .menu, .tc { display: none; } .topo .btn-p { margin-left: auto; } }

/* ── Janela de app: a moldura de todo print e cena do produto ── */
.janela { position: relative; border-radius: var(--r2); background: var(--s1); border: 1px solid rgba(170,210,255,.16); box-shadow: var(--glow-forte); overflow: hidden; isolation: isolate; }
.janela-barra { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: linear-gradient(180deg, #16171a, #111214); border-bottom: 1px solid var(--linha); }
.janela-barra i { width: 9px; height: 9px; border-radius: 50%; background: #2a2c31; }
.janela-barra span { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--t3); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.janela > img, .janela > video { width: 100%; display: block; }

.cartao { position: relative; padding: clamp(22px, 3vw, 34px); border-radius: var(--r3); border: 1px solid var(--linha); background: linear-gradient(180deg, rgba(20,22,26,.9), rgba(10,11,13,.6)); }

/* ── Revelar ao rolar (texts reveal do transitions.dev) ──── */
.js .rev { opacity: 0; transform: translateY(var(--stagger-distance, 12px)); filter: blur(var(--stagger-blur, 3px)); }
.js .rev.in { opacity: 1; transform: none; filter: none;
  transition: opacity var(--stagger-dur, 500ms) var(--stagger-ease), transform var(--stagger-dur, 500ms) var(--stagger-ease), filter var(--stagger-dur, 500ms) var(--stagger-ease);
  transition-delay: calc(var(--i, 0) * var(--stagger-stagger, 40ms)); }
@media (prefers-reduced-motion: reduce) { .js .rev { opacity: 1; transform: none; filter: none; } }

/* ── Modo: lista agora, venda depois (config.js) ─────────── */
[data-so="venda"] { display: none; }
html[data-modo="venda"] [data-so="venda"] { display: revert; }
html[data-modo="venda"] [data-so="lista"] { display: none; }

/* ── Barra fixa do celular ──────────────────────────────── */
.barra-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(var(--gut), env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));
  background: rgba(8,9,10,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--linha);
  transform: translateY(110%); transition: transform 300ms var(--sai); }
.barra-cta.on { transform: none; }
.barra-preco { font-family: var(--serif); font-size: 24px; line-height: 1; }
.barra-preco small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--azul-sel); letter-spacing: .06em; margin-top: 3px; }
@media (max-width: 760px) { .barra-cta { display: flex; } }

/* ── Rodapé ─────────────────────────────────────────────── */
.rodape { padding: 56px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); color: var(--t3); font-size: 14px; }
.rodape-grid { display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; align-items: center; }
.rodape-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
.rodape-links a { padding: 10px 0; transition: color 160ms ease; }
@media (hover: hover) { .rodape-links a:hover { color: var(--t1); } }
.rodape-legal { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.6; color: #8a9099; }
@media (max-width: 760px) { .rodape-grid { grid-template-columns: 1fr; } .rodape-links { justify-content: flex-start; } .rodape { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

/* ── Barra de cookies (só existe com o Pixel ligado na config) ── */
.cookies { position: fixed; z-index: 70; left: max(16px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); width: min(420px, calc(100% - 32px));
  padding: 16px; border-radius: var(--r2); background: rgba(17,18,20,.96); border: 1px solid var(--linha-forte); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
  font-size: 14px; color: var(--t2); animation: cookies-entra 300ms var(--sai) both; }
.cookies a { color: var(--t1); text-decoration: underline; text-underline-offset: 2px; }
.cookies-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.cookies.sai { opacity: 0; transform: translateY(8px); transition: opacity 200ms ease, transform 200ms ease; }
@keyframes cookies-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .cookies { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* texto só para leitor de tela */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Uau: título do topo palavra por palavra ── */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .p { display: inline-block; opacity: 0; transform: translateY(.32em); filter: blur(8px);
    animation: palavra 900ms var(--sai-forte) forwards; animation-delay: calc(140ms + var(--i) * 70ms); }
  .js .hero .selo, .js .hero .lead, .js .hero .acoes, .js .hero .hero-req { opacity: 0; animation: sobe-leve 800ms var(--sai) forwards; }
  .js .hero .selo { animation-delay: 60ms; } .js .hero .lead { animation-delay: 760ms; } .js .hero .acoes { animation-delay: 880ms; } .js .hero .hero-req { animation-delay: 1000ms; }
}
@keyframes palavra { to { opacity: 1; transform: none; filter: none; } }
@keyframes sobe-leve { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Uau: títulos de seção se revelam de baixo para cima (máscara), em vez de só aparecer ── */
@media (prefers-reduced-motion: no-preference) {
  .js h2.rev { opacity: 1; filter: none; transform: translateY(.35em); clip-path: inset(0 0 100% 0); }
  .js h2.rev.in { transform: none; clip-path: inset(-.2em -.2em -.3em -.2em);
    transition: transform 900ms var(--sai-forte), clip-path 900ms var(--sai-forte); }
}

/* ── Uau: a marca gigante no fim da página ── */
.rodape { overflow: clip; }
.rodape-marca { font-family: var(--serif); font-size: clamp(64px, 17.5vw, 260px); line-height: .8; letter-spacing: -.045em; text-align: center; white-space: nowrap;
  margin: -6px 0 48px; color: transparent; background: linear-gradient(180deg, rgba(245,245,243,.16), rgba(245,245,243,0) 85%); -webkit-background-clip: text; background-clip: text; user-select: none; }
/* botão de pausa nas barras de janela (topo e vídeo da montagem) */
.janela-barra .pausa { margin-left: auto; width: 26px; height: 22px; border-radius: 6px; position: relative; opacity: .55; transition: opacity 160ms ease, background-color 160ms ease; }
.janela-barra .pausa::before, .janela-barra .pausa::after { content: ""; position: absolute; top: 6px; width: 3px; height: 10px; border-radius: 1px; background: var(--t2); }
.janela-barra .pausa::before { left: 9px; } .janela-barra .pausa::after { left: 14px; }
.janela-barra .pausa[aria-pressed="true"]::before { left: 10px; width: 0; height: 0; border-radius: 0; background: none; border-left: 8px solid var(--t2); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.janela-barra .pausa[aria-pressed="true"]::after { display: none; }
@media (hover: hover) { .janela-barra .pausa:hover { opacity: 1; background: rgba(255,255,255,.06); } }
