/* Final Tape: landing (Story W.12). Cores e tamanhos do protótipo do Claude Design; só os cinzas de texto foram clareados
   para passar 4,5:1 (ver docs/qa/site-w12.md). Sem CSS inline nas páginas: a CSP não permite 'unsafe-inline'. */

@font-face {
  font-family: 'VT323';
  src: url('/legal-assets/VT323-Regular.cf4de751ad.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #101418;
  --bg-deep: #0b0e11;
  --bg-black: #05070a;
  --ink: #e8e6df;
  --ink-soft: #b9bcc0;
  --ink-mute: #8a8f96;
  --ink-faint: #7a8088;
  --line: #2c333b;
  --line-soft: #1b2128;
  --line-box: #3a424c;
  --rec: #ff3b30;
  --rec-btn: #d92b21;
  --cyan: #36d1e0;
  --pad-x: clamp(16px, 4vw, 48px);
  --glitch-s: -1px 0 var(--rec), 1px 0 var(--cyan);
  --glitch-m: -2px 0 var(--rec), 2px 0 var(--cyan);
  --glitch-l: -3px 0 var(--rec), 3px 0 var(--cyan);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'VT323', monospace;
  font-size: 22px;
  line-height: 1.1;
  overflow-x: hidden;
}

a { color: var(--ink); }
a:hover { color: var(--rec); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* linhas de varredura (estáticas) */
.scan {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(255, 255, 255, 0.03) 2px 3px);
}

.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 60;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip:focus { top: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--pad-x);
  background: rgba(16, 20, 24, 0.92);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-word { font-size: 26px; line-height: 1; text-shadow: var(--glitch-s); }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); font-size: 22px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--rec); }

.logo { position: relative; display: inline-block; flex: none; width: 24px; height: 34px; }
.logo i { position: absolute; width: 7px; height: 7px; border: 0 solid var(--ink); }
.logo .tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.logo .tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.logo .bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.logo .br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.logo svg { position: absolute; left: 5px; top: 6px; width: 14px; height: 22px; }
.logo.sm { width: 16px; height: 24px; }
.logo.sm i { width: 5px; height: 5px; }
.logo.sm .tl, .logo.sm .tr, .logo.sm .bl, .logo.sm .br { border-width: 0; }
.logo.sm .tl { border-left-width: 1.5px; border-top-width: 1.5px; }
.logo.sm .tr { border-right-width: 1.5px; border-top-width: 1.5px; }
.logo.sm .bl { border-left-width: 1.5px; border-bottom-width: 1.5px; }
.logo.sm .br { border-right-width: 1.5px; border-bottom-width: 1.5px; }
.logo.sm svg { left: 3px; top: 3px; width: 10px; height: 17px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 20px;
  text-decoration: none;
  line-height: 1;
}
.btn-rec { background: var(--rec-btn); color: #fff; }
.btn-rec:hover { color: #fff; background: #ee3a2f; }
.btn-paper { background: var(--ink); color: var(--bg); font-size: 30px; }
.btn-paper:hover { color: var(--bg); background: #fff; }
.btn-nav { padding: 2px 12px; }
.btn-big { font-size: 32px; padding: 6px 22px; }

.badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--line-box);
  color: var(--ink-mute);
  font-size: 22px;
  line-height: 1;
}
.badge small { font-size: 16px; }

/* ---------- hero ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) var(--pad-x) clamp(40px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.rec-line { font-size: 22px; color: var(--rec); }
.blink { animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.h-xl {
  margin: 0;
  font-weight: 400;
  font-size: clamp(64px, 10vw, 128px);
  line-height: 0.82;
  text-shadow: var(--glitch-l);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.lead { margin: 0; max-width: 520px; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.1; color: var(--ink-soft); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.fine { font-size: 19px; color: var(--ink-faint); }
.tagline { margin: -8px 0 0; font-size: 28px; line-height: 1; color: var(--cyan); }

.phone {
  flex: 0 0 auto;
  margin: 0 auto;
  width: 290px;
  height: 560px;
  border-radius: 40px;
  background: #000;
  padding: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--bg); }
.cam-slot, .cam-slot-sm {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 38%;
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  background: var(--line-soft) repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 6px, transparent 6px 12px);
  font-size: 18px;
}
.cam-slot-sm { font-size: 16px; }
.stage { position: absolute; left: 0; right: 0; bottom: 0; top: 38%; width: 100%; height: 62%; display: block; }
.split { position: absolute; left: 0; right: 0; top: 38%; height: 2px; background: var(--rec); }
.wm {
  position: absolute;
  left: 10px;
  top: 38%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px 3px 4px;
  background: var(--bg);
  border: 1px solid var(--rec);
  font-size: 15px;
  line-height: 0.78;
  text-shadow: var(--glitch-s);
}
.chip-live, .chip-replay {
  position: absolute;
  left: 10px;
  top: 12px;
  padding: 0 5px;
  background: var(--rec-btn);
  color: #fff;
  font-size: 15px;
}
.chip-replay { left: 8px; top: 8px; padding: 0 4px; font-size: 14px; }

/* ---------- como funciona ---------- */
.steps { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.step { padding: 36px clamp(16px, 4vw, 40px); display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step-n { font-size: 22px; color: var(--rec); }
.step-h { margin: 0; font-weight: 400; font-size: 48px; line-height: 0.9; }
.step-p { margin: 0; font-size: 22px; line-height: 1.1; color: var(--ink-soft); }

/* ---------- pegadinhas ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) var(--pad-x); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.h-lg { margin: 0; font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 0.85; overflow-wrap: break-word; }
.h-lg.glitch { text-shadow: var(--glitch-m); }
.sec-note { font-size: 22px; color: var(--ink-mute); max-width: 340px; line-height: 1.1; }
.traps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* 6 cartas: 3 colunas no desktop, 2 no tablet, 1 no celular (sem célula vazia aparecendo) */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.trap { background: var(--bg); padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.trap-code { font-size: 18px; color: var(--ink-faint); }
.trap-name { font-size: 30px; line-height: 0.95; }
.trap-line { font-size: 20px; line-height: 1.05; color: var(--ink-mute); }

/* ---------- clipe ---------- */
.clip { border-top: 1px solid var(--line); background: var(--bg-deep); }
.clip-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.clip-demo { flex: 0 0 auto; margin: 0 auto; display: flex; gap: 14px; align-items: flex-end; }
.clip-frame { position: relative; width: 200px; height: 356px; border: 1px solid var(--line-box); background: var(--bg); overflow: hidden; }
.wm-sm {
  position: absolute;
  left: 8px;
  top: 38%;
  transform: translateY(-50%);
  padding: 1px 6px;
  background: var(--bg);
  border: 1px solid var(--rec);
  font-size: 14px;
  line-height: 1;
  text-shadow: var(--glitch-s);
}
.end-card {
  position: relative;
  width: 130px;
  height: 231px;
  border: 1px solid var(--line-box);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}
.end-card .t { font-size: 26px; line-height: 0.8; text-shadow: var(--glitch-s); }
.end-card .m { font-size: 16px; line-height: 1; }
.end-card .b { align-self: flex-start; padding: 0 6px; background: var(--ink); color: var(--bg); font-size: 15px; }
.end-card .ex { position: absolute; right: 6px; top: 4px; font-size: 14px; color: var(--ink-faint); }
.clip-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.kicker { font-size: 22px; color: var(--rec); }
.clip-p { margin: 0; font-size: 24px; line-height: 1.1; color: var(--ink-soft); max-width: 520px; text-wrap: pretty; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 20px; }
.tags li { padding: 0 8px; border: 1px solid var(--line-box); }

/* ---------- ranking ---------- */
.rank { border-top: 1px solid var(--line); }
.rank-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 80px);
  align-items: flex-start;
}
.rank-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.rank-p { margin: 0; font-size: 22px; line-height: 1.1; color: var(--ink-mute); max-width: 420px; }
.rank-empty {
  flex: 1 1 420px;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rank-empty .big { font-size: 34px; line-height: 0.95; }
.rank-empty .sub { font-size: 22px; color: var(--ink-mute); }

/* ---------- idiomas ---------- */
.langmenu { position: relative; }
.langmenu summary {
  list-style: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--line-box);
  color: var(--ink-soft);
}
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover { color: var(--rec); }
.langmenu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  min-width: 170px;
  background: var(--bg);
  border: 1px solid var(--line-box);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.langmenu li a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; text-decoration: none; color: var(--ink-soft); }
.langmenu li a:hover { color: var(--rec); background: var(--line-soft); }
.langmenu li a[aria-current='page'] { color: var(--ink); }
.langs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.langs a[aria-current='page'] { color: var(--ink-soft); text-decoration: none; }

/* CJK: a VT323 não tem esses glifos; só a pilha do sistema (sem baixar fonte) e títulos menores */
:lang(ja) { --cjk: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans CJK JP', 'Noto Sans JP', sans-serif; }
:lang(ko) { --cjk: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans CJK KR', 'Noto Sans KR', sans-serif; }
:lang(ja) body, :lang(ko) body { font-family: 'VT323', var(--cjk); line-height: 1.35; }
:lang(ja) .h-xl, :lang(ko) .h-xl { font-size: clamp(44px, 7vw, 84px); line-height: 1.08; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) .h-lg, :lang(ko) .h-lg { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.15; }
:lang(ja) .h-final, :lang(ko) .h-final { font-size: clamp(40px, 6vw, 80px); line-height: 1.1; }
:lang(ja) .step-h, :lang(ko) .step-h { line-height: 1.1; }
:lang(ja) .trap-name, :lang(ko) .trap-name { line-height: 1.2; }
:lang(ko) .h-xl, :lang(ko) .h-lg, :lang(ko) .h-final { word-break: keep-all; }
:lang(ja) .h-xl, :lang(ja) .h-lg, :lang(ja) .h-final { word-break: auto-phrase; }
/* palavras longas (alemão) quebram com hífen em vez de estourar a coluna */
:lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) .trap-name { hyphens: auto; overflow-wrap: break-word; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); background: var(--bg-deep); }
.faq-in { max-width: 860px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) var(--pad-x); display: flex; flex-direction: column; gap: 18px; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 14px 4px; font-size: 28px; line-height: 1; list-style: none; min-height: 44px; display: flex; align-items: center; gap: 10px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: '+'; color: var(--rec); width: 16px; flex: none; }
.faq-list details[open] summary::before { content: '-'; }
.faq-list details p { margin: 0; padding: 0 4px 18px 30px; font-size: 24px; line-height: 1.1; color: var(--ink-soft); max-width: 680px; }

/* ---------- chamada final e rodapé ---------- */
.final { border-top: 1px solid var(--line); background: var(--bg-black); }
.final-in { max-width: 1180px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--pad-x); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.h-final { margin: 0; font-weight: 400; font-size: clamp(56px, 9vw, 120px); line-height: 0.82; text-shadow: var(--glitch-l); overflow-wrap: break-word; }
.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px var(--pad-x) 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 18px;
  color: var(--ink-faint);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--ink-faint); display: inline-flex; align-items: center; min-height: 32px; }
.foot a:hover { color: var(--rec); }

/* ---------- barra fixa de jogar (só celular) ---------- */
.sticky-cta { display: none; }
@media (max-width: 599px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 45;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  }
  body { padding-bottom: 76px; }
}

/* ---------- páginas "em breve" ---------- */
.page-main { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 110px) var(--pad-x); display: flex; flex-direction: column; gap: 18px; }
.page-main h1 { margin: 0; font-weight: 400; font-size: clamp(56px, 9vw, 104px); line-height: 0.85; text-shadow: var(--glitch-m); }
.page-main p { margin: 0; font-size: 26px; color: var(--ink-soft); }

/* ---------- celular estreito ---------- */
@media (max-width: 599px) {
  .nav-links .hide-s { display: none; }
  .brand-word { font-size: 24px; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}

/* ---------- menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
  html { scroll-behavior: auto; }
}
