:root {
  /* Identidade Cod4ra: terminal/dev — navy profundo + acento laranja. */
  --brand: #ef7c1f;          /* laranja do "4" do logo — acento da marca (uso em superfícies/escuro) */
  --brand-text: color-mix(in srgb, var(--brand) 72%, #000); /* laranja escuro p/ TEXTO/outline em fundo claro (~5:1, passa AA) */
  --accent: #ff9d4d;         /* laranja claro (gradientes/hover) */
  --navy: #0c1c2e;           /* fundo navy do logo */
  --navy-deep: #06121e;      /* navy mais escuro (vinheta) */
  --navy-soft: #16334e;      /* navy realçado (glow do hero) */
  --brand-ink: #ffffff;
  --ink: #15171e;
  --muted: #5d6475;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --line: rgba(20, 22, 28, 0.10);
  --radius: 20px;
  --maxw: 1060px;
  --mo: 1; /* multiplicador de motion (calm reduz) */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  --mono: "Oswald", "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Foco visível para navegação por teclado (WCAG 2.4.7); laranja escuro p/ contraste ≥3:1 no branco */
a:focus-visible, .card:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--brand-text); outline-offset: 3px; border-radius: 10px; }
.topbar .brand:focus-visible, .topbar nav a:focus-visible { outline-color: #fff; }

/* ---------- Scroll reveal (progressive enhancement: só esconde com JS ligado) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Top bar ---------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: 18px 22px; }
.topbar .brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.topbar nav a { color: rgba(255,255,255,.85); margin-left: 14px; padding: 10px 6px; font-size: 14px; font-weight: 600; }
.topbar nav a:hover { color: #fff; text-decoration: none; }

/* ---------- Wordmark Cod4ra (>COD4RA_<) ---------- */
/* Logotipo a partir do VETOR oficial (letterforms reais da Aliens and Cows).
   Letras (g-letters) recebem um GRADIENTE esq→dir (escuro→claro, def no SVG);
   brackets (g-br) sólidos; "4" (g-four) laranja com brilho; cursor "_" (g-cur)
   pisca. Glow/sombra atrás das letras nos contextos escuros. */
.wm { display: inline-block; width: auto; vertical-align: middle; line-height: 0;
  --wm-ink: #eceef1; --wm-orange: var(--brand); --wm-br: #9fb3c9; }
/* g-letters: degradê via fill="url(#cwmgN)" no PRÓPRIO SVG (id único por cópia);
   não setar fill aqui senão sobrepõe o atributo e quebra a referência. */
.wm .g-br   { fill: var(--wm-br); }                   /* brackets › ‹ */
.wm .g-four { fill: var(--wm-orange); }               /* 4 laranja */
.wm .g-cur  { fill: var(--wm-ink); animation: wmBlink 1.15s steps(1, end) infinite; } /* cursor pisca */
@keyframes wmBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wm .g-cur { animation: none; } }
/* pisca só no hero (acento único); topbar e footer ficam estáticos */
.wm--sm .g-cur, .wm--ink .g-cur { animation: none; }
/* tamanhos (height; largura deriva do viewBox) */
.wm--sm   { height: 30px; }
.wm--hero { height: clamp(58px, 11vw, 118px); }
/* glow/sombra atrás das letras + brilho no "4" (contextos escuros: hero e topbar) */
.wm--hero .g-letters, .wm--hero .g-cur { filter: drop-shadow(0 0 11px rgba(198,216,240,.34)); }
.wm--hero .g-br { filter: drop-shadow(0 0 6px rgba(159,179,201,.22)); } /* brackets glow menor (hierarquia) */
.wm--hero .g-four { filter: drop-shadow(0 0 9px rgba(239,124,31,.7)); }
/* topbar (wm--sm): sem glow nas letras (mantém nítido); leve brilho no "4" */
.wm--sm .g-four { filter: drop-shadow(0 0 3px rgba(239,124,31,.62)); }
/* variante p/ fundo claro (footer): sólidos escuros, laranja rebaixado, sem glow */
.wm--ink  { height: 28px; --wm-ink: #1a2230; --wm-br: #586679;
  --wm-orange: color-mix(in srgb, var(--brand) 82%, #000); }
.wm--ink .g-letters { fill: #232c3a; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 58%, #0b0d12), color-mix(in srgb, var(--accent) 34%, #0b0d12) 58%, #0b0d12);
  background-size: 200% 200%; animation: meshShift calc(38s / var(--mo)) ease-in-out infinite; }
@keyframes meshShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; pointer-events: none; }
.hero .blob.b1 { width: 360px; height: 360px; background: var(--accent); top: -80px; right: 6%; animation: drift1 calc(26s / var(--mo)) ease-in-out infinite; }
.hero .blob.b2 { width: 300px; height: 300px; background: #fff; bottom: -120px; left: -40px; opacity: .22; animation: drift2 calc(32s / var(--mo)) ease-in-out infinite; }
.hero .blob.b3 { width: 220px; height: 220px; background: var(--brand); top: 30%; left: 38%; opacity: .35; animation: drift1 calc(40s / var(--mo)) ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-26px,30px) scale(1.12)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(34px,-24px) scale(1.08)} }
/* marca d'água: ícone gigante translúcido flutuando */
.hero .watermark { position: absolute; right: -40px; bottom: -50px; width: 340px; height: 340px; opacity: .08;
  filter: grayscale(1) brightness(3); z-index: 0; animation: floaty calc(14s / var(--mo)) ease-in-out infinite; pointer-events: none; }
@keyframes floaty { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-18px) rotate(3deg)} }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none; z-index: 1;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px); background-size: 24px 24px; }
.hero-inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding: 120px 22px 96px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: 7px 13px; border-radius: 999px; margin-bottom: 20px; }
.hero .eyebrow img { width: 20px; height: 20px; border-radius: 6px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.03; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 800; }
.hero p.lede { font-size: 19px; color: color-mix(in srgb, var(--brand-ink) 92%, transparent); margin: 0 0 30px; max-width: 40ch; }
.hero-art { display: flex; justify-content: center; position: relative; }
.hero-art .lottie { position: absolute; width: 130px; height: 130px; right: 2%; top: -6%; z-index: 4; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); }

/* ---------- Device ---------- */
.device { position: relative; width: 270px; aspect-ratio: 9 / 19.3; border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, #23262d, #0b0d12); border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 40px 80px rgba(0,0,0,.40), inset 0 0 0 1px rgba(255,255,255,.05); z-index: 2; }
.device.float { animation: breathe calc(7s / var(--mo)) ease-in-out infinite; }
@keyframes breathe { 0%,100%{transform:rotate(-3deg) translateY(0)} 50%{transform:rotate(-3deg) translateY(-12px)} }
.device::before { content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 86px; height: 22px; background: #0b0d12; border-radius: 14px; z-index: 3; }
.device .screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #0b0d12; display: flex; align-items: center; justify-content: center; }
.device .screen img { width: 100%; height: 100%; object-fit: cover; }
.device .screen .ph { color: #fff; opacity: .6; font-size: 13px; text-align: center; padding: 20px; }

/* ---------- Buttons ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px; padding: 14px 22px; border-radius: 13px; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #fff; color: color-mix(in srgb, var(--brand) 78%, #000); }
.btn-primary:hover { filter: brightness(.97); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 13px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.22); color: #fff; line-height: 1.1; position: relative; }
.store-badge .small { font-size: 10px; opacity: .8; text-transform: uppercase; letter-spacing: .5px; }
.store-badge .big { font-size: 16px; font-weight: 800; }
.store-badge[data-soon="true"]::after { content: "Em breve"; position: absolute; top: -9px; right: -9px; background: #fff; color: color-mix(in srgb, var(--brand) 80%, #000); font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 7px; }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
.eyebrow-dark { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--brand-text); margin-bottom: 10px; }
section.block h2 { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 800; }
section.block .sub { color: var(--muted); margin: 0 0 34px; max-width: 58ch; font-size: 16.5px; }

/* Gallery */
.gallery-wrap { background: color-mix(in srgb, var(--brand) 7%, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery { display: flex; gap: 26px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; }
.gallery .device { width: 234px; scroll-snap-align: center; flex: 0 0 auto; box-shadow: 0 24px 50px rgba(0,0,0,.22); }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-left: 4px solid var(--brand); transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.feature .fi { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); font-size: 22px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 7px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Feature em destaque (diferencial) — full-width, tintado pela marca. */
.feature--spotlight {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  border-left: 4px solid var(--accent);
  background:
    radial-gradient(120% 150% at 0% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 58%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 90%, #0b0d12), color-mix(in srgb, var(--brand) 52%, #0b0d12));
  position: relative; overflow: hidden;
}
.feature--spotlight::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .06; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px); background-size: 22px 22px;
}
.feature--spotlight > * { position: relative; z-index: 1; }
.feature--spotlight:hover { box-shadow: 0 22px 50px color-mix(in srgb, var(--brand) 30%, transparent); }
.feature--spotlight .fi {
  width: 56px; height: 56px; border-radius: 16px; font-size: 27px; margin: 0;
  background: rgba(255,255,255,.16); color: #fff;
}
.feature--spotlight .feat-body { min-width: 0; }
.feature--spotlight h3 { color: #fff; font-size: 21px; margin: 0 0 6px; }
.feature--spotlight p { color: rgba(255,255,255,.86); font-size: 15.5px; }
.feat-badge {
  display: inline-block; margin-bottom: 11px;
  background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.34);
  font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  padding: 3px 11px; border-radius: 999px;
}
@media (max-width: 560px) {
  .feature--spotlight { grid-template-columns: 1fr; gap: 14px; }
}

/* ASO */
.aso { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.aso dl { margin: 0; display: grid; grid-template-columns: 180px 1fr; gap: 12px 20px; }
.aso dt { font-weight: 800; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.aso dd { margin: 0; font-size: 15px; }
.aso .kw { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; margin: 0 6px 6px 0; }

/* CTA band */
.ctaband { position: relative; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 60%, #0b0d12), color-mix(in srgb, var(--accent) 38%, #0b0d12)); color: #fff; }
.ctaband .wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 50px 22px; flex-wrap: wrap; }
.ctaband h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.ctaband p { margin: 6px 0 0; color: rgba(255,255,255,.88); }
.ctaband .lottie { width: 92px; height: 92px; }

/* Portfolio grid — flex p/ centralizar a última fila incompleta (20 apps / 3 col) */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.card { flex: 1 1 300px; max-width: calc((100% - 40px) / 3);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c, var(--brand)); }
.card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.12); }
.card .row { display: flex; align-items: center; gap: 13px; margin: 2px 0 10px; }
.card img { width: 50px; height: 50px; border-radius: 13px; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.card .name { font-weight: 800; font-size: 17px; }
.card .tag { color: var(--muted); font-size: 13px; }
/* reserva ~2 linhas p/ alinhar a base dos cards (descrições de 1 ou 2 linhas) */
.card p { margin: 0; color: var(--muted); font-size: 14.5px; min-height: 2.9em; }

/* Index hero — navy do logo, com glow superior + grid de terminal */
.idxhero { position: relative; overflow: hidden; text-align: center; padding: 96px 22px 64px; color: #fff;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  background:
    radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 46%),
    radial-gradient(120% 130% at 50% 0%, var(--navy-soft) 0%, var(--navy) 44%, var(--navy-deep) 100%); }
/* grade pontilhada sutil (vibe terminal) */
.idxhero::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .06; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px); background-size: 26px 26px; }
/* brilho ambiente laranja sangrando na costura navy→branco (respira devagar) */
.idxhero::after { content: ""; position: absolute; left: 50%; bottom: -96px; transform: translateX(-50%);
  width: 660px; height: 320px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 34%, transparent), transparent);
  filter: blur(40px); opacity: .55; animation: glowDrift 9s ease-in-out infinite; }
@keyframes glowDrift { 0%, 100% { opacity: .45; transform: translateX(-50%) scale(1); }
  50% { opacity: .62; transform: translateX(-50%) scale(1.12); } }
.idxhero > * { position: relative; z-index: 2; }
.idxhero .wm--hero { display: block; margin: 0 auto 22px; }
.idxhero .tagline { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: 13.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: color-mix(in srgb, var(--brand) 55%, #fff); margin-bottom: 26px; }
.idxhero .tagline::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.idxhero h1 { font-size: clamp(32px, 5.4vw, 54px); margin: 0 0 16px; letter-spacing: -.03em; font-weight: 800; }
.idxhero p { font-size: 19px; color: rgba(255,255,255,.9); max-width: 48ch; margin: 0 auto; }
.idxhero .ctas { justify-content: center; margin-top: 24px; }

/* Portfólio no index: encurta o vão antes do footer (última linha às vezes órfã) */
#apps { padding-bottom: 48px; }

/* Footer */
footer { padding: 52px 0; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Faixa de stats (credibilidade) ---------- */
.statsband { background: var(--navy); color: #fff; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.08); }
.statsband .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 36px 22px; }
.statsband .stat { text-align: center; position: relative; }
.statsband .stat + .stat::before { content: ""; position: absolute; left: -9px; top: 6px; bottom: 6px;
  width: 1px; background: rgba(255,255,255,.12); }
.statsband .stat b { display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(30px, 5vw, 44px);
  line-height: 1; color: #fff; }
.statsband .stat span { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: color-mix(in srgb, var(--brand) 78%, #fff); }

/* ---------- Sobre ---------- */
.about { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.about .lead-about { font-size: clamp(16.5px, 2vw, 19px); line-height: 1.6; color: #2c3340; max-width: 52ch; margin: 4px 0 0; }
.about-vals { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.about-vals li { display: flex; gap: 14px; align-items: flex-start; }
.about-vals .vi { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); font-size: 18px; }
.about-vals b { display: block; font-size: 16px; margin-bottom: 2px; color: var(--ink); }
.about-vals p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- Filtro de categorias (só com JS; sem JS os 20 cards aparecem) ---------- */
.filter { display: none; flex-wrap: wrap; gap: 10px 9px; margin: 2px 0 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.js .filter { display: flex; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease; }
.chip:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); transform: translateY(-1px); }
.chip:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }
.chip .n { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--line); border-radius: 999px; padding: 1px 7px; }
.chip.on { background: var(--brand-text); border-color: var(--brand-text); color: #fff; } /* laranja escuro: branco passa AA */
.chip.on .n { color: #fff; background: rgba(255,255,255,.24); }

/* card como coluna (ancora o "Ver app" embaixo) + estado filtrado */
.card { display: flex; flex-direction: column; }
.card.hide { display: none; }
/* "Ver app →" sempre laranja da marca (CTA consistente; o acento do app fica na barra/ícone) */
.card .cgo { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 800; color: var(--brand-text); }
.card .cgo b { transition: transform .15s ease; }
.card:hover .cgo b { transform: translateX(4px); }
.grid-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.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; }

/* ---------- Faixa de fechamento ---------- */
.closing { position: relative; overflow: hidden; color: #fff;
  border-top: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  background: radial-gradient(120% 130% at 50% 0%, var(--navy-soft) 0%, var(--navy) 55%, var(--navy-deep) 100%); }
.closing::before { content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px); background-size: 26px 26px; }
.closing::after { content: ""; position: absolute; left: 50%; top: -40px; transform: translateX(-50%);
  width: 520px; height: 240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 30%, transparent), transparent);
  filter: blur(40px); opacity: .5; }
.closing .wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap; padding: 54px 22px; }
.closing h2 { margin: 0 0 6px; font-size: clamp(23px, 3.2vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.closing p { margin: 0; color: rgba(255,255,255,.82); max-width: 52ch; }

/* ---------- Footer rico ---------- */
footer .fgrid { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; }
footer .fbrand p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
footer .fnav { display: flex; flex-direction: column; gap: 9px; }
footer .fnav .fh { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }
footer .fnav a { color: var(--muted); font-size: 14.5px; }
footer .fnav a:hover { color: var(--brand-text); text-decoration: none; }
footer .fbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 18px; border-top: 1px solid var(--line); }

/* Acessibilidade: respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  * { animation: none !important; transition: none !important; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 104px 22px 70px; text-align: center; }
  .hero .ctas, .hero .stores { justify-content: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero .watermark { display: none; }
  .features, .grid { grid-template-columns: 1fr; }
  .aso dl { grid-template-columns: 1fr; gap: 4px 0; }
  .aso dd { margin-bottom: 10px; }
  .topbar nav { display: none; }
  /* nav escondida → centraliza a marca; topbar mais justa e wordmark maior */
  .topbar { padding: 14px 20px; justify-content: center; }
  .wm--sm { height: 32px; }
  /* hero mais compacto e legível no telefone */
  .idxhero { padding: 76px 20px 56px; }
  .idxhero .tagline { font-size: 12px; letter-spacing: .2em; }
  #apps { padding-top: 44px; }
  .card p { font-size: 15px; min-height: 0; }
  .card .cgo { font-size: 14px; padding-top: 14px; }
  /* "Sobre" empilhado e mais leve */
  .about .wrap { grid-template-columns: 1fr; gap: 26px; }
  .about .lead-about { font-size: 16px; max-width: none; }
  /* filtro: linha única com scroll horizontal (em vez de quebrar em 4 linhas);
     fade na borda direita sinaliza que há mais pra rolar */
  .filter { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 2px -20px 22px; padding: 2px 20px 10px; scrollbar-width: none; border-bottom: 0;
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
    mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .filter::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  /* cards full-width na coluna única (grid agora é flex) */
  .grid .card { max-width: none; flex-basis: 100%; }
  /* stats em 2 colunas, sem divisória vertical */
  .statsband .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; padding: 32px 22px; }
  .statsband .stat + .stat::before { display: none; }
  /* fechamento empilhado e centralizado */
  .closing .wrap { flex-direction: column; text-align: center; gap: 18px; }
  .closing p { margin-left: auto; margin-right: auto; }
  /* footer empilhado e alinhado à esquerda (estável se a marca crescer) */
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
}
