/* Identa LP v2 (teste local)
   Design read: LP B2B de verificação de identidade, público CTO/compliance,
   linguagem dark tech de confiança. Dials: variance 7, motion 5, density 4.
   Tema dark travado (marca). Um acento (laranja). Raios: controles 10px, painéis 16px, chips 6px. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #100804;
  --bg-2: #180d07;
  --bg-3: #21130b;
  --line: rgba(255, 238, 210, 0.1);
  --line-2: rgba(255, 238, 210, 0.2);
  --text: #f6ead9;
  --muted: #bcab9d;
  --dim: #97867a;
  --accent: #e84c1d;
  --accent-text: #f4703f;
  --on-accent: #1b0b04;
  --r-ctl: 10px;
  --r-panel: 16px;
  --r-chip: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 128px);
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
p { color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.accent { color: var(--accent-text); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl);
  border: 1px solid transparent; font-weight: 600; font-size: 0.975rem; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #f2592a; }
  .btn-ghost:hover { border-color: var(--text); }
}

/* ---------- Header ---------- */
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
header.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background-color 220ms ease, backdrop-filter 220ms ease, -webkit-backdrop-filter 220ms ease;
}
header.top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, rgba(16, 8, 4, 0.55), transparent); transition: opacity 220ms ease; }
header.top.solid { background: rgba(16, 8, 4, 0.6); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255, 238, 210, 0.08); }
header.top.solid::after { opacity: 1; }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav .logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav .logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.925rem; color: var(--muted); transition: color 160ms ease; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--text); } }
.nav-right { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-ctl);
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  transition: transform 160ms var(--ease-out), border-color 160ms ease;
}
.icon-btn:active { transform: scale(0.95); }
.burger { display: none; }
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49; background: var(--bg-2);
  border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
  display: grid; gap: 4px;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.05rem; }
.mobile-menu .btn { margin-top: 16px; }

@media (max-width: 1080px) {
  .nav-links, .nav-right .btn { display: none; }
  .burger { display: inline-grid; }
}

/* ---------- Hero (split assimétrico) ---------- */
.hero {
  position: relative; min-height: 100dvh; display: flex; align-items: center;
  padding: 88px 0 48px; overflow: hidden;
  background:
    radial-gradient(60% 55% at 82% 38%, rgba(232, 76, 29, 0.16), transparent 70%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 3.75vw, 3.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 24px; font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero: produto real (dois celulares com as telas capturadas do fluxo da Identa) */
.hero-phones { position: relative; justify-self: end; width: min(100%, 440px); aspect-ratio: 440 / 580; }
.hp {
  position: absolute; aspect-ratio: 390 / 844; padding: 8px; border-radius: 40px; background: #0b0502;
  border: 1px solid rgba(255, 238, 210, 0.3);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.65), 0 26px 90px rgba(232, 76, 29, 0.2), inset 0 1px 0 rgba(255, 238, 210, 0.28);
}
.hp .phone-screen { border-radius: 32px; }
.hp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-back { width: 52%; left: 0; top: 3%; rotate: -5deg; z-index: 1; }
.hp-front { width: 55%; right: 2%; bottom: 1%; rotate: 2.5deg; z-index: 2; }

/* entrada do hero (motivo: hierarquia, headline primeiro) */
.hero [data-in] { opacity: 0; transform: translateY(14px); animation: rise 560ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-phones { justify-self: center; width: min(320px, 86%); margin-inline: auto; }
}

/* ---------- Sections ---------- */
section.sec { padding-block: var(--sec); }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head p { margin-top: 18px; font-size: 1.125rem; }

/* ---------- Pilares (bento 3 células) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; gap: 16px; }
.cell { position: relative; overflow: hidden; border-radius: var(--r-panel); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 260px; isolation: isolate; }
.cell h3 { font-size: 1.5rem; }
.cell p { font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips li { letter-spacing: 0.01em; list-style: none; font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.78rem; color: var(--text); padding: 5px 10px; border: 1px solid var(--line-2); border-radius: var(--r-chip); }
.cell .ic-lg { position: absolute; top: 28px; right: 28px; width: 44px; height: 44px; color: var(--accent-text); }
.cell-face { grid-column: 1 / span 7; grid-row: 1 / span 2; min-height: 540px; background: var(--bg-2); }
.cell-face .bio-canvas { position: absolute; inset: 0; width: 62%; height: 100%; left: auto; right: 0; display: block; z-index: -1; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%); mask-image: linear-gradient(to right, transparent 0%, #000 55%); }
.cell-face .txt { max-width: 46%; display: grid; gap: 12px; }
.cell-doc { grid-column: 8 / span 5; background: linear-gradient(155deg, rgba(232, 76, 29, 0.26), rgba(232, 76, 29, 0.04) 62%), var(--bg-2); }
.cell-risk { grid-column: 8 / span 5; background: radial-gradient(rgba(246, 234, 217, 0.13) 1px, transparent 1.4px) 0 0 / 18px 18px, var(--bg-2); }
.cell-risk::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg-2) 30%, transparent 85%); }
@media (max-width: 900px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell-face, .cell-doc, .cell-risk { grid-column: 1; grid-row: auto; }
  .cell-face { min-height: 520px; }
  .cell-face .bio-canvas { width: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%); mask-image: linear-gradient(to bottom, #000 0%, transparent 78%); }
  .cell-face .txt { max-width: none; }
  .cell-face { justify-content: flex-end; }
}

/* ---------- Como funciona (celular fixo, apple-design: continuidade e troca de tela) ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.phone-col { position: sticky; top: var(--nav-h); height: calc(100dvh - var(--nav-h)); display: grid; place-items: center; }
.phone {
  width: min(300px, calc((100dvh - var(--nav-h) - 72px) * 390 / 844)); aspect-ratio: 390 / 844;
  padding: 9px; border-radius: 46px; background: #0b0502; border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px rgba(232, 76, 29, 0.14), 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 238, 210, 0.16);
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--bg); }
.scr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(0.985); filter: blur(2px);
  transition: opacity 260ms ease-out, transform 320ms var(--ease-out), filter 260ms ease-out; }
.scr.is-on { opacity: 1; transform: none; filter: none; }
.steps { display: grid; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; align-content: center; min-height: 68dvh; padding-block: 8dvh; }
.step:first-child { min-height: 78dvh; }
.step:last-child { min-height: 60dvh; }
.js .step { opacity: 0.34; transition: opacity 320ms ease-out; }
.js .step.is-on { opacity: 1; }
.step .ic { width: 28px; height: 28px; color: var(--accent-text); margin-top: 4px; }
.step h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.step p { margin-top: 10px; font-size: 1.1rem; }
.step-shot { display: none; }
.code { margin-top: 28px; border-radius: var(--r-panel); border: 1px solid var(--line-2); background: #0b0502; overflow: hidden; }
.code-bar { padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 0.8rem; letter-spacing: 0.01em; color: var(--dim); font-family: "Geist Mono", ui-monospace, monospace; }
.code pre { padding: 20px 18px; overflow-x: auto; font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.82rem; line-height: 1.75; color: var(--text); }
.code .k { color: var(--accent-text); }
.code .c { color: var(--dim); }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .phone-col { display: none; }
  .step, .step:first-child, .step:last-child { min-height: 0; padding-block: 28px; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; padding-top: 0; }
  .js .step { opacity: 1; }
  .step-shot { display: block; margin-top: 20px; width: min(230px, 62%); height: auto; border-radius: 26px; border: 1px solid var(--line-2); }
}

/* ---------- Lei Felca (faixa) ---------- */
.felca { background: linear-gradient(180deg, rgba(232, 76, 29, 0.09), rgba(232, 76, 29, 0.02)), var(--bg-2); border-block: 1px solid var(--line); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); border: 1px solid rgba(244, 112, 63, 0.4); padding: 6px 12px; border-radius: var(--r-chip); }
.felca h2 { margin-top: 20px; }
.felca .law { display: block; margin-top: 14px; font-variant-numeric: tabular-nums; font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--muted); letter-spacing: -0.02em; }
.felca .intro { margin-top: 24px; font-size: 1.15rem; max-width: 60ch; }
.felca-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 96px); }
.feat { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line-2); }
.feat .ic { width: 26px; height: 26px; color: var(--accent-text); margin-top: 2px; }
.feat h3 { font-size: 1.15rem; }
.feat p { margin-top: 6px; font-size: 0.975rem; }
@media (max-width: 720px) { .felca-grid { grid-template-columns: 1fr; } }

/* ---------- Casos de uso (tabs) ---------- */
.uc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: stretch; }
.tabs { display: grid; align-content: start; gap: 4px; }
.tab { text-align: left; background: transparent; border: 0; border-left: 2px solid var(--line); padding: 16px 20px; color: var(--muted); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease; }
.tab[aria-selected="true"] { color: var(--text); border-left-color: var(--accent); background: linear-gradient(90deg, rgba(232, 76, 29, 0.1), transparent); }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--text); } }
.panel { position: relative; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--bg-2); padding: clamp(28px, 4vw, 48px); min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; overflow: hidden; }
.panel .ic-xl { position: absolute; top: 32px; right: 32px; width: 72px; height: 72px; color: var(--accent-text); opacity: 0.9; }
.panel[hidden] { display: none; }
.panel.show { animation: swap 220ms var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel h3 { font-size: 1.75rem; }
.panel p { font-size: 1.05rem; max-width: 46ch; }
.panel .btn { align-self: flex-start; margin-top: 10px; }
@media (max-width: 900px) {
  .uc { grid-template-columns: minmax(0, 1fr); }
  .tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 4px; }
  .tab { scroll-snap-align: start; border-left: 0; border-bottom: 2px solid var(--line); padding: 12px 16px; font-size: 1rem; white-space: nowrap; }
  .tab[aria-selected="true"] { border-bottom-color: var(--accent); background: none; }
}

/* ---------- Segurança e sobre ---------- */
.sec-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.sec-col { padding-top: 28px; border-top: 1px solid var(--line-2); }
.sec-col .ic { width: 30px; height: 30px; color: var(--accent-text); }
.sec-col h3 { margin-top: 20px; font-size: 1.2rem; }
.sec-col p { margin-top: 10px; font-size: 0.975rem; }
@media (max-width: 960px) { .sec-cols { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .sec-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contato ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.contact h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.contact .sub { margin-top: 20px; font-size: 1.125rem; }
.terms-line { margin-top: 20px; display: grid; gap: 4px; color: var(--muted); font-size: 0.95rem; }
.terms-line span { display: flex; align-items: center; gap: 10px; }
.terms-line .ic { color: var(--accent-text); width: 18px; height: 18px; }
.info { margin-top: 40px; display: grid; gap: 16px; }
.info a, .info span { display: flex; align-items: center; gap: 14px; color: var(--text); font-size: 1rem; }
.info .ic { color: var(--accent-text); width: 22px; height: 22px; }
form.card { border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: clamp(22px, 3vw, 36px); background: var(--bg); display: grid; gap: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: var(--r-ctl); color: var(--text); font-size: 1rem; transition: border-color 160ms ease, background-color 160ms ease;
}
.field textarea { min-height: 116px; resize: vertical; }
.field ::placeholder { color: var(--dim); opacity: 1; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23bcab9d' viewBox='0 0 256 256'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-color: var(--accent-text); background: var(--bg-2); }
.field [aria-invalid="true"] { border-color: #ff8a70; }
.err { color: #ffa08a; font-size: 0.9rem; max-width: none; }
.fine { letter-spacing: 0.01em; font-size: 0.85rem; color: var(--dim); max-width: none; }
.fine a { text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.form-msg { min-height: 1.4em; font-size: 0.95rem; color: var(--text); }
.form-msg.ok { color: #8be0a8; }
.btn[disabled] { opacity: 0.7; cursor: default; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 26px; width: auto; }
.foot-brand p { margin-top: 18px; font-size: 0.95rem; max-width: 34ch; }
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a { color: var(--muted); font-size: 0.95rem; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover { color: var(--text); } }
.foot-bottom { letter-spacing: 0.01em; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 0.85rem; color: var(--dim); }
.foot-bottom p { color: var(--dim); max-width: none; }
.foot-bottom nav { display: flex; gap: 24px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Cookie e resultado ---------- */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 880px; margin-inline: auto; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: 12px 16px; display: none; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie.show { display: flex; animation: rise 300ms var(--ease-out); }
.cookie p { font-size: 0.875rem; max-width: none; flex: 1 1 340px; }
.cookie p a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.cookie .acts { display: flex; gap: 8px; flex: none; }
dialog.result { margin: auto; width: min(92vw, 480px); border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--bg-2); color: var(--text); padding: 36px 32px 28px; text-align: center; }
dialog.result::backdrop { background: rgba(8, 3, 1, 0.8); }
dialog.result .ic { width: 56px; height: 56px; }
dialog.result .ic.ok { color: #8be0a8; }
dialog.result .ic.no { color: #ff8a70; }
dialog.result p { margin: 12px auto 0; font-size: 1rem; }
dialog.result .acts { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Reveal on scroll (motivo: sequência de leitura) ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.rv.in { opacity: 1; transform: none; }


/* ---------- Entrada dos phones (vêm dos lados ao carregar) ---------- */
@keyframes slide-in-left  { from { opacity: 0; transform: translateX(-58px); } to { opacity: 1; transform: none; } }
@keyframes slide-in-right { from { opacity: 0; transform: translateX(58px);  } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hp-back  { animation: slide-in-left  740ms var(--ease-out) 150ms both; }
  .hp-front { animation: slide-in-right 740ms var(--ease-out) 320ms both; }
}
/* Parallax de cursor: transição suave ao sair do hover */
.hero-phones { transition: transform 640ms var(--ease-out); }

/* ---------- Scroll-driven (CSS puro, sem listener; só com movimento permitido) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hp-back  {
      animation: drift-back linear both, slide-in-left 740ms var(--ease-out) 150ms both;
      animation-timeline: scroll(root), auto;
      animation-range: 0 90vh, auto;
    }
    .hp-front {
      animation: drift-front linear both, slide-in-right 740ms var(--ease-out) 320ms both;
      animation-timeline: scroll(root), auto;
      animation-range: 0 90vh, auto;
    }
    @keyframes drift-back { to { translate: 0 34px; } }
    @keyframes drift-front { to { translate: 0 -26px; } }
    .cell-face .bio-canvas { animation: drift-cell linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes drift-cell { from { transform: translateY(-2%); } to { transform: translateY(2%); } }
    .lit .w { opacity: 0.24; animation: light linear both; animation-timeline: view(); animation-range: entry 25% cover calc(18% + var(--wi, 0) * 3%); }
    @keyframes light { to { opacity: 1; } }
  }
}

/* ---------- Transparência e contraste (apple-design §14) ---------- */
@media (prefers-reduced-transparency: reduce) {
  header.top.solid { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  header.top::after { display: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #d8c8b8; --dim: #bcab9d; --line: rgba(255, 238, 210, 0.3); --line-2: rgba(255, 238, 210, 0.5); }
  header.top.solid { background: var(--bg); backdrop-filter: none; border-bottom: 1px solid var(--line-2); }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero [data-in], .rv { opacity: 1; transform: none; animation: none; transition: none; }
  .panel.show, .cookie.show { animation: none; }
  .scr { transform: none; filter: none; transition: opacity 200ms ease; }
  .js .step { transition: none; }
  .btn:active, .icon-btn:active { transform: none; }
}

/* ---------- Acessibilidade e confiança ---------- */
.skip { position: fixed; left: 16px; top: -64px; z-index: 100; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: var(--r-ctl); font-weight: 600; transition: top 160ms var(--ease-out); }
.skip:focus { top: 12px; }
.about { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-2); max-width: 70ch; font-size: 0.975rem; }
.about a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-h { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; line-height: 1.2; }
.dlg-h { margin-top: 16px; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); max-width: none; }
.form-msg a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* alvos de toque de 44px */
.btn-sm { min-height: 44px; }
.icon-btn { width: 44px; height: 44px; }
.foot-col ul { gap: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; }
.info a { min-height: 44px; }
.fine a, .cookie p a { padding-block: 10px; }

/* ===== Mobile: responsividade e animação ===== */

/* Hero glow pulsante (dá vida no mobile sem precisar de JS) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(52% 50% at 78% 30%, rgba(232, 76, 29, 0.2), transparent 66%);
}
.hero .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-pulse { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }
  .hero::before { animation: hero-pulse 5s ease-in-out infinite; }
}

/* CTAs empilhados em telas pequenas */
@media (max-width: 520px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
}

/* Código: overflow no container (não no pre) para não ser clipado pelo overflow:hidden do pai */
@media (max-width: 640px) {
  .code { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .code pre { font-size: 0.71rem; line-height: 1.6; overflow-x: visible; }
}

/* Bento: card biométrico ligeiramente mais alto no mobile para mostrar mais da animação */
@media (max-width: 900px) {
  .cell-face { min-height: 480px; }
}

/* Passos: step-shot centrado e mais compacto em tela pequena */
@media (max-width: 480px) {
  .step-shot { width: min(190px, 54%); margin-inline: auto; }
  .step { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
}

/* Footer: quatro colunas → duas em mobile já coberto (800px); abaixo de 480 força coluna única */
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-brand { grid-column: auto; }
}

/* Tabs: mais espaço de toque no mobile */
@media (max-width: 540px) {
  .tab { font-size: 0.92rem; padding: 10px 14px; }
}

/* Reduced motion: desliga a ::before animation */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

/* ---------- Radar rings (Cyberpunk Reveal inspiration) ---------- */
.hero-rings {
  position: absolute;
  right: 13%;
  top: 40%;
  z-index: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.hero-rings span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  transform: translate(-50%, -50%);
}
.hero-rings span:nth-child(1) { width: 130px;  height: 130px;  opacity: 0.38; }
.hero-rings span:nth-child(2) { width: 270px;  height: 270px;  opacity: 0.22; }
.hero-rings span:nth-child(3) { width: 420px;  height: 420px;  opacity: 0.12; }
.hero-rings span:nth-child(4) { width: 580px;  height: 580px;  opacity: 0.06; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes ring-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: var(--rop); }
    50%       { transform: translate(-50%, -50%) scale(1.045); opacity: calc(var(--rop) * 1.7); }
  }
  .hero-rings span { animation: ring-pulse 5s ease-in-out infinite; }
  .hero-rings span:nth-child(1) { --rop: 0.38; animation-delay: 0s; }
  .hero-rings span:nth-child(2) { --rop: 0.22; animation-delay: 0.55s; }
  .hero-rings span:nth-child(3) { --rop: 0.12; animation-delay: 1.1s; }
  .hero-rings span:nth-child(4) { --rop: 0.06; animation-delay: 1.65s; }
}
@media (max-width: 900px) { .hero-rings { display: none; } }

/* ---------- Hero badges flutuantes (stats tipo Cyberpunk Reveal) ---------- */
.hero-badge {
  position: absolute;
  background: rgba(16, 8, 4, 0.72);
  border: 1px solid rgba(255, 238, 210, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-ctl);
  padding: 9px 14px;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  z-index: 10;
  user-select: none;
}
.badge-num { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.04em; color: var(--accent-text); }
.badge-lbl { font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace; margin-top: 2px; }
.b1 { top: 10%; right: -6%; }
.b2 { bottom: 12%; left: -5%; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes float-up   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
  @keyframes float-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
  .b1 { animation: float-up   4s ease-in-out infinite; }
  .b2 { animation: float-down 4.6s ease-in-out infinite 0.8s; }
}
@media (max-width: 900px) {
  .b1 { top: 4%; right: 2%; }
  .b2 { bottom: 4%; left: 2%; }
}
@media (max-width: 520px) { .hero-badge { display: none; } }

/* ---------- Bento card hover glow ---------- */
@media (hover: hover) and (pointer: fine) {
  @media (prefers-reduced-motion: no-preference) {
    .cell { transition: border-color 220ms ease, box-shadow 220ms ease; }
    .cell:hover {
      border-color: rgba(232, 76, 29, 0.38);
      box-shadow: 0 0 0 1px rgba(232, 76, 29, 0.12), 0 10px 40px rgba(232, 76, 29, 0.12);
    }
  }
}
