/* Edit Like Me — a página /chave (pedir a chave de novo), 19/10/2026. Mesmo visual do site (v2 de 18/10): tema escuro só,
   azul é luz, branco é ação. Instrument Serif nos títulos, Geist no texto, Geist Mono nos dados. Fontes locais (OFL, em
   /assets/fonts/). Só o que esta página usa: o site em si mora em outro Worker. */
@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; --t1: #f5f5f3; --t2: #b4b8be; --t3: #8a9099;
  --azul: #2a5cf0; --azul-claro: #5aa2ff; --azul-sel: #99c8ff;
  --ok: #78d9b0; --alerta: #ff8a7a;
  --linha: rgba(255,255,255,.07); --linha-forte: rgba(255,255,255,.13);
  --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;
  --gut: clamp(16px, 4.5vw, 32px);
  --topo-h: 60px;
  --sai: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; 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, p { margin: 0; }
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; }

/* ── Topo ───────────────────────────────────────────────── */
.topo { position: sticky; top: 0; 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,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--linha); }
.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); }
.voltar { margin-left: auto; font-size: 14.5px; color: var(--t2); min-height: 44px; display: inline-flex; align-items: center; transition: color 160ms ease; }
@media (hover: hover) { .voltar:hover { color: var(--t1); } }

/* ── Página ─────────────────────────────────────────────── */
main { flex: 1; display: grid; justify-items: center; align-content: start; text-align: center; padding: clamp(56px, 10vw, 120px) var(--gut) clamp(56px, 8vw, 96px);
  background: radial-gradient(800px 520px at 50% 18%, rgba(42,92,240,.16), transparent 65%); }
.rotulo { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--t3); margin-bottom: 22px; }
h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1; text-wrap: balance; font-size: clamp(46px, 8vw, 88px); }
h1 em { font-style: italic; color: var(--azul-sel); }
.lead { color: var(--t2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; max-width: 46ch; margin-top: 22px; text-wrap: pretty; }

.form { position: relative; display: grid; gap: 16px; width: min(100%, 520px); margin-top: 36px; text-align: left; padding: clamp(22px, 3.4vw, 34px); border-radius: 20px;
  border: 1px solid rgba(170,210,255,.14); background: linear-gradient(180deg, rgba(17,18,20,.92), rgba(10,11,13,.92)); box-shadow: var(--glow-forte); }
.campo { display: grid; gap: 7px; }
.campo label { font-size: 14px; color: var(--t2); }
.campo input { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--linha-forte); background: #0b0c0e; color: var(--t1); font: 400 17px var(--sans); outline: none;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out; }
.campo input::placeholder { color: #565b63; }
.campo input:focus { border-color: var(--azul-claro); box-shadow: 0 0 0 4px rgba(90,162,255,.16); }
.campo.is-error input { border-color: var(--alerta); }
.campo-erro { font-size: 13.5px; color: var(--alerta); }
.campo-erro:empty { display: none; }
.turnstile { display: flex; justify-content: center; }
.turnstile:empty { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 16.5px; white-space: nowrap;
  background: var(--t1); color: #0c0d0f; user-select: none; -webkit-user-select: none; transition: transform 160ms var(--sai), background-color 160ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(.97); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; transform: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 12px 40px -12px rgba(245,245,243,.5); } }

.form-resposta { display: flex; align-items: flex-start; justify-content: center; gap: 12px; font-size: 15.5px; line-height: 1.5; color: var(--t2); text-align: left; }
.form-resposta:empty { display: none; }
.form-resposta.erro { color: var(--alerta); }
.form-resposta.aviso { color: var(--azul-sel); }
.form-resposta.ok { color: var(--t1); padding: 14px 16px; border-radius: 14px; background: rgba(120,217,176,.08); border: 1px solid rgba(120,217,176,.28); }
.form-ok-marca { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ok); background: rgba(120,217,176,.14); box-shadow: 0 0 0 1px rgba(120,217,176,.3); }
.form-ok-marca svg { width: 16px; height: 16px; }
.form-ok-marca svg path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: desenha 500ms cubic-bezier(.22, 1, .36, 1) 80ms forwards; }
@keyframes desenha { to { stroke-dashoffset: 0; } }

.aviso { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: min(100%, 520px); margin-top: 24px; padding: 16px 18px; border-radius: 16px;
  border: 1px solid rgba(153,200,255,.22); background: rgba(42,92,240,.08); }
.aviso p { font-size: 15px; color: var(--t2); line-height: 1.5; }
.aviso b { font-weight: 500; color: var(--t1); }
.aviso a { color: var(--t1); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.aviso-icone { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(42,92,240,.16); border: 1px solid rgba(153,200,255,.22); }
.aviso-icone svg { width: 22px; height: 22px; fill: none; stroke: var(--azul-sel); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── Rodapé ─────────────────────────────────────────────── */
.rodape { padding: 40px var(--gut) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); color: var(--t3); font-size: 14px; }
.rodape-grid { width: min(100%, 1200px); margin-inline: auto; display: grid; grid-template-columns: auto 1fr; gap: 14px 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: var(--t3); }
@media (max-width: 640px) { .rodape-grid { grid-template-columns: 1fr; } .rodape-links { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .form-ok-marca svg path { animation: none; stroke-dashoffset: 0; }
  .btn, .campo input { transition: none; }
}
