/* =========================================================
   Vitrine de modelos — Nova Magnitude
   Mesma identidade do site principal: fundo #070B14, índigo + céu,
   Plus Jakarta Sans (títulos) e Inter (texto).
   ========================================================= */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Jakarta Fallback"; src: local("Arial"); size-adjust: 104.2%; ascent-override: 99.6%; descent-override: 21.3%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 104.3%; ascent-override: 92.9%; descent-override: 23.1%; line-gap-override: 0%; }

:root {
  --bg: #070B14;
  --ink-2: #0D1324;
  --ink-3: #141B30;
  --line-d: rgba(148, 163, 184, .16);
  --text-d: #F8FAFC;
  --muted-d: #A5B0C4;
  --light: #F4F6FB;
  --surface: #FFFFFF;
  --line: #E2E8F0;
  --ink: #0B1220;
  --muted: #4B5568;
  --indigo: #4F46E5;
  --indigo-2: #6366F1;
  --indigo-3: #818CF8;
  --sky: #38BDF8;
  --wa: #25D366;
  --focus: #38BDF8;

  --f-head: "Plus Jakarta Sans", "Jakarta Fallback", system-ui, sans-serif;
  --f-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(1rem, .6rem + 2vw, 2.5rem);
  --maxw: 76rem;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --r: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }
body { margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; color: var(--text-d); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 .6em; font-weight: 700; }
h1, h2 { text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
section[tabindex="-1"]:focus { outline: none; }
section[id] { scroll-margin-top: 68px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: #fff; color: var(--ink); padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); }
.h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.3; }

/* Tag com ponto */
.tag { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line-d); color: var(--muted-d); background: rgba(255,255,255,.03); }
.tag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.sheet--light .tag { color: var(--muted); border-color: var(--line); background: var(--surface); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent; font-family: var(--f-head); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: .5rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 30px -12px rgba(79,70,229,.8); }
.btn--primary:hover { background: #5B52F0; box-shadow: 0 14px 34px -12px rgba(99,102,241,.9); }
.btn--glow { position: relative; background: linear-gradient(135deg, var(--indigo-2), var(--indigo)); color: #fff; min-height: 58px; padding-inline: 1.8rem; box-shadow: 0 0 0 1px rgba(129,140,248,.5), 0 12px 40px -10px rgba(99,102,241,.9), 0 0 60px -20px rgba(56,189,248,.8); }
.btn--glow:hover { box-shadow: 0 0 0 1px rgba(129,140,248,.8), 0 16px 48px -10px rgba(99,102,241,1), 0 0 80px -16px rgba(56,189,248,.9); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1A2338; }
.btn--line { background: var(--surface); color: var(--ink); border-color: #CBD5E1; }
.btn--line:hover { border-color: var(--ink); }
.btn--line .i { color: #16A34A; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn .i[aria-hidden] { transition: transform .2s; }
.link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; color: var(--indigo-3); }
.link:hover { color: var(--sky); }
.link .i { width: 18px; height: 18px; }
.sheet--light .link { color: var(--indigo); }

/* ---------- Topo ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(7,11,20,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-d); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.logo__symbol { width: 32px; height: 32px; }
.logo__name { font-family: var(--f-head); font-weight: 800; font-size: .95rem; letter-spacing: .06em; white-space: nowrap; }
.logo__magnitude { color: var(--indigo-3); }
.nav { display: none; gap: 1.75rem; font-size: .9rem; }
.nav a { text-decoration: none; color: var(--muted-d); transition: color .2s; }
.nav a:hover { color: var(--text-d); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(2.5rem, 2rem + 4vw, 6rem) 0 clamp(3rem, 2rem + 5vw, 7rem); }
.hero__glow { position: absolute; z-index: -1; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(ellipse 45% 40% at 50% 0%, rgba(99,102,241,.38), transparent 70%), radial-gradient(ellipse 30% 30% at 80% 60%, rgba(56,189,248,.16), transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(148,163,184,.25) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%); }
.hero__arcs { position: absolute; z-index: -1; inset: auto 0 0; width: 100%; height: 70%; pointer-events: none; opacity: .45; }
.hero__arcs path { filter: drop-shadow(0 0 8px #38BDF8); }
.hero__inner { display: grid; gap: 3rem; align-items: center; }
.hero__title { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.1rem); line-height: 1.06; letter-spacing: -0.04em; margin: 1.25rem 0 1.25rem; font-weight: 800; max-width: 13em; }
.nowrap { white-space: nowrap; }
.grad { background: linear-gradient(100deg, #C7D2FE 0%, var(--sky) 45%, var(--indigo-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glyph { display: inline-block; width: .82em; height: .82em; vertical-align: -.08em; margin-inline: .04em; }
.glyph svg { width: 100%; height: 100%; display: block; }
.glyph--spark { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted-d); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 2rem 0 1.75rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--muted-d); }
.hero__proof li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__proof .i { width: 14px; height: 14px; color: var(--sky); }

/* Entrada do hero */
.in { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
.in--0 { animation-delay: .05s; } .in--1 { animation-delay: .12s; } .in--2 { animation-delay: .2s; } .in--3 { animation-delay: .28s; }
.in--4 { animation-delay: .36s; } .in--5 { animation-delay: .44s; } .in--6 { animation-delay: .52s; }
@keyframes rise { to { opacity: 1; transform: none; } }
/* Título e texto do hero: só sobem, sem sumir (contam para o LCP) */
.rise { animation: lift .7s var(--ease) both; }
.rise--1 { animation-delay: .05s; } .rise--2 { animation-delay: .12s; }
@keyframes lift { from { transform: translateY(10px); } to { transform: none; } }

/* Leque de modelos */
.deck { position: relative; aspect-ratio: 5 / 4; width: 100%; max-width: 34rem; justify-self: center; }
.deck__card { position: absolute; width: 64%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; text-decoration: none;
  border: 1px solid rgba(148,163,184,.25); background: var(--ink-3); box-shadow: 0 24px 50px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04);
  transition: transform .45s var(--ease), box-shadow .3s; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; }
.deck__card--1 { left: 0; top: 2%; transform: rotate(-7deg); z-index: 1; }
.deck__card--2 { left: 9%; top: 15%; transform: rotate(-3.5deg); z-index: 2; }
.deck__card--3 { left: 18%; top: 28%; transform: rotate(0deg); z-index: 3; }
.deck__card--4 { left: 27%; top: 41%; transform: rotate(3.5deg); z-index: 4; }
.deck__card--5 { left: 36%; top: 54%; transform: rotate(7deg); z-index: 5; }
.deck__card:hover, .deck__card:focus-visible { transform: translateY(-14px) rotate(0) scale(1.05); z-index: 10; box-shadow: 0 30px 60px -18px rgba(0,0,0,.9), 0 0 0 2px var(--indigo-3); }
.deck__label { position: absolute; left: .6rem; bottom: .6rem; font-family: var(--f-head); font-weight: 700; font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(7,11,20,.82); color: #fff; border: 1px solid rgba(255,255,255,.15); }

/* ---------- Seções ---------- */
.sheet { padding-block: var(--section); position: relative; }
.sheet--light { background: var(--light); color: var(--ink); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.sheet--ink { background: var(--bg); }
.section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); display: grid; gap: 1rem; }
.section-head .h2, .section-head .text { margin: 0; }
.section-head .tag { justify-self: start; }
.section-head .text { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.sheet--ink .section-head .text { color: var(--muted-d); }
.section-head--center { text-align: center; justify-items: center; }
.section-head--center .tag { justify-self: center; }

/* ---------- Modelos ---------- */
.models { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); counter-reset: m; }
.model { display: grid; gap: 1.75rem; align-items: center; }
.model__screen { position: relative; display: block; border-radius: 16px; overflow: hidden; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(11,18,32,.45); transition: transform .4s var(--ease), box-shadow .4s; }
.model__screen:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(11,18,32,.55), 0 0 0 2px var(--indigo-3); }
.model__chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #EEF1F7; border-bottom: 1px solid var(--line); }
.model__chrome i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.model__chrome i:nth-child(1) { background: #F87171; } .model__chrome i:nth-child(2) { background: #FBBF24; } .model__chrome i:nth-child(3) { background: #34D399; }
.model__chrome span { margin-left: .6rem; flex: 1; max-width: 18rem; height: 20px; border-radius: 6px; background: #fff; font-size: .72rem; color: #64748B; display: flex; align-items: center; padding: 0 .6rem; font-family: var(--f-mono); }
.model__viewport { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; background: #E2E8F0; }
.model__viewport img { width: 100%; transform: translateY(0); transition: transform 1.2s var(--ease); will-change: transform; }
/* Passa o site inteiro no hover: 62.5cqw é a altura da janela 16:10 */
.model__screen:hover .model__viewport img, .model__screen:focus-visible .model__viewport img { transform: translateY(calc(-100% + 62.5cqw)); transition: transform 7s linear .15s; }
.model.is-playing .model__viewport img { animation: tour 16s ease-in-out infinite alternate; }
@keyframes tour { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(-100% + 62.5cqw)); } }
.model__open { position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; background: rgba(7,11,20,.88); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: .85rem; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.model__screen:hover .model__open, .model__screen:focus-visible .model__open { opacity: 1; transform: none; }
.model__num { color: var(--indigo); margin-bottom: .6rem; }
.model__name { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -0.04em; margin-bottom: .35em; }
.model__desc { color: var(--muted); font-size: 1.08rem; max-width: 32rem; }
.model__feats { display: grid; gap: .45rem; margin: 1.25rem 0; }
.model__feats li { display: flex; gap: .55rem; align-items: center; font-weight: 500; }
.model__feats .i { width: 16px; height: 16px; color: var(--indigo); }
.model__fits { font-size: .92rem; color: var(--muted); margin-bottom: 1.5rem; }
.model__fits .mono { display: block; color: var(--ink); font-size: .7rem; margin-bottom: .2rem; }
.model__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.model__actions .btn { flex: 1 1 auto; }

.note-bar { margin-top: clamp(3rem, 2rem + 3vw, 5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.note-bar p { margin: 0; font-weight: 500; }

/* ---------- Como funciona / incluso ---------- */
.grid { display: grid; gap: 1rem; }
.card { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: var(--r); padding: 1.6rem; }
.sheet--light .card { background: var(--surface); border-color: var(--line); }
.stage__num { display: inline-block; font-family: var(--f-mono); font-size: .8rem; color: var(--sky); margin-bottom: 1.5rem; }
.card p { color: var(--muted-d); margin: 0; }
.included-head { margin-top: clamp(4rem, 3rem + 4vw, 7rem); }
.feat__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.1rem; background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(56,189,248,.12)); border: 1px solid rgba(129,140,248,.35); color: var(--indigo-3); }
.price-bar { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.5rem 1.75rem; border-radius: var(--r); background: linear-gradient(135deg, rgba(79,70,229,.22), rgba(56,189,248,.08)); border: 1px solid rgba(129,140,248,.35); }
.price-bar p { margin: .3rem 0 0; max-width: 40rem; color: var(--muted-d); }
.price-bar b { color: var(--text-d); }
.price-bar .mono { color: var(--sky); }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin-inline: auto; display: grid; gap: .75rem; }
.faq details { padding: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.05rem; margin: 0; letter-spacing: -0.01em; }
.faq__icon { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--light); color: var(--indigo); transition: transform .25s; }
.faq__icon .i { width: 16px; height: 16px; }
.faq details[open] .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 1.4rem 1.3rem; }
.faq__answer p { color: var(--muted); }

/* ---------- CTA final ---------- */
.cta { overflow: hidden; text-align: center; isolation: isolate; }
.cta .hero__glow { inset: 0 -10% auto; height: 100%; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(99,102,241,.4), transparent 70%); }
.cta__inner { display: grid; justify-items: center; gap: 1.25rem; max-width: 46rem; }
.cta__title { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); letter-spacing: -0.04em; margin: 0; }
.cta .lead { margin: 0 0 .75rem; }
.cta__note { font-size: .9rem; color: var(--muted-d); margin: 0; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line-d); padding: 3.5rem 0 calc(2rem + 72px); overflow: hidden; }
.footer__grid { display: grid; gap: 2rem; }
.footer__brand { display: grid; gap: .6rem; justify-items: start; }
.footer__brand .mono { color: var(--muted-d); }
.footer__slogan { color: var(--muted-d); margin: 0; }
.footer__list { display: grid; gap: .55rem; }
.footer__list a, .footer__bottom a { color: var(--muted-d); text-decoration: none; }
.footer__list a:hover, .footer__bottom a:hover { color: var(--text-d); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-d); font-size: .85rem; color: var(--muted-d); }
.footer__bottom p { margin: 0; }
.footer__word { margin: 2rem 0 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(4rem, 1rem + 16vw, 15rem); line-height: .8; letter-spacing: -0.06em; text-align: center;
  background: linear-gradient(180deg, rgba(129,140,248,.35), rgba(7,11,20,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* ---------- Barra fixa mobile ---------- */
.wa-bar { position: fixed; inset: auto 0 0; z-index: 40; padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom)); background: rgba(7,11,20,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-d); transform: translateY(110%); transition: transform .3s var(--ease); }
.wa-bar.is-visible { transform: none; }

/* ---------- Desempenho: o navegador só monta o que está perto da tela ---------- */
.model:nth-child(n+2) { content-visibility: auto; contain-intrinsic-size: auto 980px; }   /* altura real medida */
#como-funciona, #perguntas, #contato, .footer { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
@media (min-width: 56em) { .model:nth-child(n+2) { contain-intrinsic-size: auto 410px; } }
/* Ao clicar num link interno, tudo é montado antes de rolar (a posição de destino fica exata) */
.cv-all .model, .cv-all #como-funciona, .cv-all #perguntas, .cv-all #contato, .cv-all .footer { content-visibility: visible; }

/* ---------- Revelação ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-wait { opacity: 0; transform: translateY(20px); }

/* =========================================================
   Visualizador (o modelo abre "como uma página")
   ========================================================= */
.viewer { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.viewer[hidden] { display: none; }
.viewer.is-open { opacity: 1; transform: none; }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem clamp(.6rem, .4rem + 1vw, 1.25rem); border-bottom: 1px solid var(--line-d); background: rgba(13,19,36,.95); }
.viewer__back { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem .95rem .45rem .7rem; border-radius: 999px; border: 1px solid var(--line-d); background: rgba(255,255,255,.04); color: var(--text-d); font-family: var(--f-head); font-weight: 700; font-size: .9rem; cursor: pointer; transition: background-color .2s, border-color .2s; }
.viewer__back:hover { background: rgba(255,255,255,.09); border-color: rgba(148,163,184,.4); }
.viewer__title { display: flex; align-items: baseline; gap: .6rem; min-width: 0; flex: 1; justify-content: center; }
.viewer__title .mono { color: var(--muted-d); font-size: .7rem; }
.viewer__title strong { font-family: var(--f-head); font-size: 1.05rem; white-space: nowrap; }
.viewer__niche { color: var(--muted-d); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__tools { display: flex; align-items: center; gap: .5rem; }
.viewer__devices, .viewer__nav { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line-d); }
.viewer__devices button, .viewer__nav button { width: 40px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted-d); cursor: pointer; transition: background-color .2s, color .2s; }
.viewer__devices button:hover, .viewer__nav button:hover { color: #fff; background: rgba(255,255,255,.08); }
.viewer__devices button[aria-pressed="true"] { background: var(--indigo); color: #fff; }
.viewer__devices { display: none; }
.viewer__cta { display: none; }
.viewer__stage { position: relative; display: grid; place-items: center; padding: 0; min-height: 0; overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,102,241,.18), transparent 70%), var(--bg); }
.viewer__screen { position: relative; width: 100%; height: 100%; background: #fff; overflow: hidden; transition: width .45s var(--ease), height .45s var(--ease), border-radius .45s var(--ease); }
.viewer__screen iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.viewer--mobile .viewer__screen { width: 390px; height: min(844px, calc(100% - 2rem)); border-radius: 38px; box-shadow: 0 0 0 10px #1B2234, 0 0 0 11px rgba(148,163,184,.3), 0 40px 80px -20px rgba(0,0,0,.8); }
.viewer__loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); transition: opacity .35s; }
.viewer__loading span { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(129,140,248,.25); border-top-color: var(--sky); animation: spin .8s linear infinite; }
.viewer__loading.is-done { opacity: 0; pointer-events: none; }
.viewer__mbar { padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-d); background: rgba(13,19,36,.97); }

/* Aviso quando o visitante toca num botão do modelo */
.toast { position: absolute; z-index: 5; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); width: min(30rem, calc(100% - 1.5rem)); transform: translate(-50%, 16px); opacity: 0;
  background: var(--surface); color: var(--ink); border-radius: 18px; padding: 1.1rem 1.2rem 1.1rem; box-shadow: 0 30px 70px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(129,140,248,.35); transition: opacity .3s, transform .35s var(--ease); }
.toast[hidden] { display: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast__close { position: absolute; top: .55rem; right: .55rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.toast__close:hover { background: var(--light); }
.toast__title { font-family: var(--f-head); font-weight: 700; margin: 0 2rem .5rem 0; line-height: 1.35; }
.toast__msg { margin: 0 0 .9rem; padding: .7rem .9rem; border-radius: 12px 12px 12px 4px; background: #DCF8C6; color: #1F2D1A; font-size: .92rem; line-height: 1.45; }
.toast__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.toast__actions .btn { flex: 1 1 auto; }
.toast--tip .toast__actions { display: none; }
.toast--tip .toast__title { margin-bottom: 0; }

/* ---------- Telas maiores ---------- */
@media (min-width: 40em) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.5fr 1fr; }
}
@media (min-width: 56em) {
  .nav { display: flex; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 3rem; }
  .section-head--split .tag { grid-column: 1 / -1; }
  .model { grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 1rem + 3vw, 4.5rem); }
  .model:nth-child(even) .model__screen { order: 2; }
  .viewer__devices, .viewer__cta { display: flex; }
  .viewer__mbar { display: none; }
  .viewer__stage { padding: 1rem; }
  .viewer__screen { border-radius: 14px; box-shadow: 0 0 0 1px rgba(148,163,184,.2), 0 40px 80px -30px rgba(0,0,0,.8); }
  .toast { bottom: 2rem; }
  .wa-bar { display: none; }
  .footer { padding-bottom: 2rem; }
}
@media (min-width: 64em) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
}
@media (max-width: 47.99em) {
  .logo__name { font-size: .8rem; letter-spacing: .04em; }
  .logo__symbol { width: 28px; height: 28px; }
  .header .btn--sm { padding-inline: .9rem; min-height: 42px; }
  .hero .tag { font-size: .66rem; }
  .viewer__back span { display: none; }
  .viewer__back { padding: .45rem .7rem; }
  .viewer__niche { display: none; }
  .deck { max-width: 26rem; aspect-ratio: 5 / 3.6; }
  .deck__card { width: 58%; }
}
@media (hover: none) {
  .model__open { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .in { opacity: 1; transform: none; }
  .rise { transform: none; }
  .reveal.is-wait { opacity: 1; transform: none; }
}
