/* =====================================================================
   EN On intech · camada de motion (v2)
   Assinatura: "circuito + terminal". Trilhas de circuito, órbitas da logo
   e caminhos de terminal (~/pdv) conduzem as transições.
   ===================================================================== */

[hidden] { display: none !important; }
html { scrollbar-color: #262b40 var(--bg); }
html.lock { overflow: hidden; }
::selection { background: rgba(232, 121, 249, 0.32); color: var(--fg); }
.page:not([hidden]) { animation: none; }
.progress { display: none; }

/* Pular para o conteúdo */
.skip {
  position: fixed; z-index: 130;
  left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 10px);
  background: var(--fg); color: #05060d; padding: 10px 14px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
  transform: translateY(-180%); transition: transform 0.3s var(--ease-out);
}
.skip:focus { transform: none; }

/* Grão sutil para dar textura ao preto */
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Pré-carregador: sequência de boot ---------- */
#preloader { animation: pre-safety 0s 6s forwards; }
@keyframes pre-safety { to { opacity: 0; visibility: hidden; } }
.boot { width: min(420px, calc(100vw - 48px)); display: grid; gap: 18px; }
#preloader .boot-logo { width: 170px; height: auto; animation: none; mix-blend-mode: normal; filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.35)); }
.wipe-inner img { mix-blend-mode: normal; height: auto; }
.boot-log { margin: 0; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.9; color: var(--muted); min-height: 9.6em; white-space: pre-wrap; }
.boot-log .ok { color: var(--cyan); }
.boot-log .cur::after { content: "▍"; color: var(--magenta); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.boot-meter { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--fg); font-variant-numeric: tabular-nums; }
.boot-meter i { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.boot-meter b { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.boot-skip { font-family: var(--f-mono); font-size: 11px; color: var(--muted); opacity: 0.7; }

/* ---------- Transição entre telas ---------- */
#wipe {
  position: fixed; inset: 0; z-index: 95; visibility: hidden; pointer-events: none;
  transform: translateY(100%);
  display: grid; place-items: center;
  background-color: var(--surface);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}
#wipe::before, #wipe::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3px;
  background: var(--grad); box-shadow: 0 0 28px rgba(34, 211, 238, 0.7);
}
#wipe::before { top: 0; }
#wipe::after { bottom: 0; }
.wipe-inner { display: flex; align-items: center; gap: 16px; font-family: var(--f-mono); font-size: clamp(16px, 2.6vw, 24px); color: var(--fg); }
.wipe-inner img { width: 64px; mix-blend-mode: screen; }
.wipe-inner .pr { color: var(--cyan); }
.wipe-inner .caret { display: inline-block; width: 0.55em; height: 1.1em; vertical-align: -0.2em; margin-left: 4px; background: var(--magenta); animation: blink 0.9s steps(1) infinite; }

/* ---------- Cabeçalho inteligente ---------- */
.site-header { transition: transform 0.5s var(--ease-out), background-color 0.3s ease; }
.site-header.away { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); }
.site-header.compact { background: rgba(5, 6, 13, 0.88); }
.header-inner { transition: height 0.4s var(--ease-out); }
.site-header.compact .header-inner { height: 60px; }
.brand img { transition: transform 0.4s var(--ease-out); }
.site-header.compact .brand img { transform: scale(1.32); }

/* Marcador deslizante do menu */
.nav { position: relative; }
.nav a { z-index: 1; }
.nav a:hover, .nav a.active { background: transparent; }
.nav a.active::after { display: none; }
.nav-pill {
  position: absolute; left: 0; top: 50%; height: 36px; margin-top: -18px; width: 0;
  border-radius: 999px; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: 0 0 22px -6px rgba(34, 211, 238, 0.5);
  opacity: 0; pointer-events: none;
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out), opacity 0.3s ease;
}

/* Pílula genérica para grupos segmentados */
.has-pill { position: relative; }
.has-pill > button { position: relative; z-index: 1; }
.seg-pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; background: var(--fg); opacity: 0; pointer-events: none;
  transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out), opacity 0.2s ease;
}
.seg .seg-pill { border-radius: 9px; }
.seg button[aria-pressed="true"] { background: transparent; color: #05060d; }
.seg button { transition: color 0.3s ease 0.05s; }

/* Títulos revelados por máscara, palavra a palavra */
.split-h .w, .hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split-h .w > span, .hero-title .w > span { display: inline-block; }
.js .split-h .w > span { transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: var(--wd, 0ms); }
.js .split-h.in .w > span { transform: none; }
.js .hero:not(.intro-done) .hero-title .w > span { transform: translateY(110%); }
.js .hero:not(.intro-done) [data-intro] { opacity: 0; }
[data-scramble]::before { content: "// "; color: var(--magenta); opacity: 0.85; }

/* Voltar ao topo com anel de progresso */
#totop {
  position: fixed; z-index: 45;
  right: calc(max(16px, env(safe-area-inset-right, 0px)) + 4px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(11, 13, 24, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--fg); display: grid; place-items: center;
  opacity: 0; transform: translateY(14px) scale(0.94); pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
#totop.show { opacity: 1; transform: none; pointer-events: auto; }
#totop .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#totop .ring circle { fill: none; stroke-width: 2; }
#totop .ring .track { stroke: var(--line); }
#totop .ring .val { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
#totop .arrow { transition: transform 0.3s var(--ease-out); }
#totop:active { transform: scale(0.95); }

/* ---------- Hero ---------- */
.hero-visual.reveal { opacity: 1; transform: none; }
.logo-stage .layer { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
/* A logo agora tem fundo transparente: nada de máscara (ela cortava a base do E). */
.logo-stage { aspect-ratio: 1.42; width: min(560px, 100%); }
.logo-stage .layer-logo { mix-blend-mode: normal; }
.logo-stage .layer-logo img { mix-blend-mode: normal; width: 100%; height: auto; filter: saturate(1.15) contrast(1.04) drop-shadow(0 0 28px rgba(34, 211, 238, 0.18)); }
.float-card.c1 { top: -4%; left: 2%; }
.float-card.c2 { top: auto; bottom: -10%; right: 2%; }
/* O reflexo só aparece dentro do formato da logo (máscara com a própria imagem). */
:root { --logo-mask: url("../assets/logo-hero-alpha.webp"); }
.scan {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: plus-lighter;
  -webkit-mask: var(--logo-mask) center / 100% auto no-repeat;
  mask: var(--logo-mask) center / 100% auto no-repeat;
}
.scan::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: scan 6.5s var(--ease-in-out) 2.8s infinite;
}
@keyframes scan { 0% { transform: translateX(-160%) skewX(-18deg); } 24%, 100% { transform: translateX(480%) skewX(-18deg); } }

/* Linha do processo */
.steps-line { position: absolute; left: 27px; top: 50px; bottom: 50px; width: 2px; background: var(--line); border-radius: 2px; pointer-events: none; }
.steps-line i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(var(--cyan), var(--magenta)); transform-origin: 50% 0; transform: scaleY(0); }
.step .dot { position: relative; z-index: 1; transition: color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.5s ease; }
.step.lit .dot { color: var(--fg); border-color: rgba(34, 211, 238, 0.65); background: #0d1f2a; box-shadow: 0 0 26px -4px rgba(34, 211, 238, 0.65); }

/* ---------- Serviços: abas ---------- */
.tablist { position: relative; }
.tab { position: relative; z-index: 1; }
.tab[aria-selected="true"] { background: transparent; border-color: transparent; }
.tab-pill {
  position: absolute; z-index: 0; left: 0; top: 0; height: calc(100% - 4px); width: 0;
  border-radius: 999px; background: var(--fg); opacity: 0; pointer-events: none;
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out), opacity 0.2s ease;
}
.tabpanel.active { animation: none; }

/* ---------- PDV ---------- */
.ticket ul { gap: 0; }
.ticket li { animation: none; padding-block: 4px; }
.fly { position: fixed; z-index: 85; border-radius: 10px; pointer-events: none; box-shadow: 0 0 30px rgba(34, 211, 238, 0.45); will-change: transform; }
.bump { display: inline-block; animation: bump 0.4s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1.35); color: var(--cyan); } 100% { transform: none; } }
.btn .lbl { display: inline-flex; align-items: center; gap: 10px; }
.btn-finish { overflow: hidden; }
.btn-finish[disabled] { cursor: default; }
.btn.is-ok { background: #4ade80; color: #05060d; box-shadow: 0 10px 40px -12px rgba(74, 222, 128, 0.6); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(5, 6, 13, 0.25); border-top-color: #05060d; animation: spin 0.7s linear infinite; }

.odo { display: inline-flex; align-items: flex-start; line-height: 1; white-space: nowrap; }
.odo > span, .totals .grand.odo > span { display: inline-block; height: 1em; line-height: 1; }
.odo > .odo-d { overflow: hidden; }
.odo .odo-d > .odo-s { display: block; transition: transform 0.8s var(--ease-out); }
.odo .odo-d > .odo-s > span { display: block; height: 1em; line-height: 1; text-align: center; }

.pos-frame { position: relative; }
.printer {
  position: absolute; inset: 0; z-index: 5; border-radius: 20px;
  background: rgba(8, 10, 19, 0.95); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; padding: 20px 18px;
}
.printer-slot {
  width: min(320px, 92%); height: 12px; border-radius: 6px; position: relative; z-index: 2;
  background: #070912; border: 1px solid var(--line);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 20px rgba(34, 211, 238, 0.28);
}
.paper-wrap { width: min(290px, 84%); margin-top: -6px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; align-self: stretch; }
.paper {
  background: #eef1f6; color: #12141c; font-family: var(--f-mono); font-size: 12px; line-height: 1.65;
  padding: 18px 16px 26px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 8px repeat-x;
}
.paper h5 { margin: 0 0 4px; font-size: 13px; text-align: center; letter-spacing: 0.12em; font-family: var(--f-mono); }
.paper p { margin: 0; }
.paper .c { text-align: center; color: #4b5263; }
.paper .row { display: flex; justify-content: space-between; gap: 10px; }
.paper hr { border: 0; border-top: 1px dashed #9aa1b2; margin: 8px 0; }
.paper .tot { font-weight: 600; font-size: 14px; color: #05060d; }
.paper .barcode { height: 34px; margin: 10px 0 6px; background: repeating-linear-gradient(90deg, #12141c 0 2px, transparent 2px 4px, #12141c 4px 5px, transparent 5px 8px, #12141c 8px 11px, transparent 11px 12px); }
#new-sale { margin-top: 14px; }

/* ---------- Portfólio ---------- */
.work-card { cursor: pointer; }
.work-card.show { animation: none; }
.work-visual .view {
  position: absolute; right: 16px; top: 16px; z-index: 2;
  font-family: var(--f-mono); font-size: 12px; padding: 6px 10px; border-radius: 999px;
  background: var(--fg); color: #05060d; opacity: 0; transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}
.work-card:focus-visible .view { opacity: 1; transform: none; }
.fly-visual { pointer-events: none; will-change: transform; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
/* Telas dos projetos: capa do card, capa do case e animação entre eles */
.work-visual > img, .fly-visual > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  transition: transform 0.9s var(--ease-out);
}
/* Trechos opcionais vazios (data-opt) somem mesmo quando o CSS define display */
[data-opt][hidden] { display: none !important; }
/* Capturas de PDV: mostram a tela inteira, sem cortar bordas */
.fit-contain > img, .fit-contain .work-visual > img, .fit-contain .shot img { object-fit: contain; object-position: 50% 50%; }
.work-card .work-visual::before { z-index: 0; }
.case-visual { overflow: hidden; position: relative; }
.case-visual > img { object-position: 50% 8%; }
.shot { margin: 0; display: grid; gap: 10px; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.shot figcaption { color: var(--muted); font-size: 14px; }

/* Página de case */
.case .back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 22px; transition: color 0.2s ease, transform 0.3s var(--ease-out); }
.case .back svg { width: 16px; height: 16px; }
.case .back:hover { color: var(--fg); transform: translateX(-3px); }
.case-visual { aspect-ratio: 21 / 9; border-radius: 20px; border: 1px solid var(--line); max-width: 100%; }
.case-body { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: clamp(28px, 4vw, 48px); }
.case-head { display: grid; gap: 14px; max-width: 780px; }
.case-head h1 { font-size: clamp(36px, 6vw, 72px); }
.case-note { color: var(--muted); font-size: 13px; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case-metrics div { background: var(--bg); padding: 22px; display: grid; gap: 6px; align-content: start; }
.case-metrics b { font-family: var(--f-display); font-size: clamp(26px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-metrics span { color: var(--muted); font-size: 14px; }
.case-cols { display: grid; gap: 28px; }
.case-cols h3 { font-size: 22px; margin-bottom: 10px; }
.case-cols p { color: var(--muted); }
.case-gallery { display: grid; gap: 16px; }
.mock { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 16px; display: grid; gap: 12px; align-content: start; min-height: 230px; }
.mock .mbar { display: flex; gap: 6px; }
.mock .mbar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock .row { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); }
.mock .row.acc { background: var(--c2); }
.mock .blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock .blocks span { height: 54px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.mock .spark { height: 84px; border-radius: 8px; background: linear-gradient(180deg, var(--c2), transparent); clip-path: polygon(0 80%, 14% 62%, 28% 70%, 42% 42%, 56% 52%, 70% 28%, 84% 34%, 100% 10%, 100% 100%, 0 100%); }
.case-next { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color 0.3s ease; }
.case-next > span { display: grid; gap: 6px; }
.case-next b { font-family: var(--f-display); font-size: clamp(22px, 3vw, 32px); }
.case-next svg { width: 28px; height: 28px; color: var(--cyan); transition: transform 0.4s var(--ease-out); flex: none; }
.case-next:hover { border-color: rgba(34, 211, 238, 0.4); }

/* ---------- Sobre ---------- */
.timeline { border-left: 0; position: relative; }
.tl-line { position: absolute; left: 0; top: 6px; bottom: 0; width: 2px; background: var(--line); border-radius: 2px; }
.tl-line i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(var(--cyan), var(--magenta)); transform-origin: 50% 0; transform: scaleY(0); }
.tl-item::before { left: -31px; background: var(--bg); border-color: #2a3047; box-shadow: none; transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.5s ease; }
.tl-item.lit::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 16px rgba(34, 211, 238, 0.7); }
.tl-item time { font-variant-numeric: tabular-nums; }

.person {
  display: block; position: relative; width: 100%; height: 176px; padding: 0; border: 0; background: none;
  text-align: left; color: inherit; font: inherit; cursor: pointer; perspective: 1000px;
}
.person .face {
  position: absolute; inset: 0; display: flex; gap: 14px; align-items: center; padding: 20px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform 0.7s var(--ease-in-out);
}
.person .back { flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; transform: rotateY(180deg); border-color: rgba(232, 121, 249, 0.32); }
.person .back small { font-size: 13.5px; line-height: 1.5; }
.person .hint { margin-left: auto; align-self: flex-start; font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.person.flipped .front, .person:focus-visible .front { transform: rotateY(-180deg); }
.person.flipped .back, .person:focus-visible .back { transform: rotateY(0deg); }

/* ---------- Planos ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan.featured {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--ang), var(--cyan), var(--blue), var(--magenta), var(--blue), var(--cyan)) border-box;
  animation: ang 7s linear infinite;
}
@keyframes ang { to { --ang: 360deg; } }
.price-from { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: -12px; }
.save {
  justify-self: start; font-family: var(--f-mono); font-size: 11.5px; color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.07);
  padding: 5px 9px; border-radius: 999px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}
.annual .save { opacity: 1; transform: none; }

/* ---------- Blog: leitor ---------- */
.reader { position: fixed; inset: 0; z-index: 70; background: var(--surface); }
.reader-scroll {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top, 0px) + 84px) max(16px, env(safe-area-inset-right, 0px)) 96px max(16px, env(safe-area-inset-left, 0px));
}
.reader-body { max-width: 680px; margin: 0 auto; display: grid; gap: 22px; }
.reader-body h2 { font-size: clamp(32px, 5vw, 54px); }
.reader-body .meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); display: flex; gap: 12px; }
.reader-body .meta b { color: var(--magenta); font-weight: 500; }
.reader-text { display: grid; gap: 16px; font-size: 17px; line-height: 1.75; color: #c9cfdf; }
.reader-text h3 { font-size: 22px; color: var(--fg); margin-top: 14px; }
.reader-bar { position: absolute; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; background: var(--line); z-index: 2; }
.reader-bar i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.reader-close { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 20px); right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- Contato ---------- */
.fl { position: relative; }
.fl label {
  position: absolute; left: 14px; top: 13px; z-index: 1; padding: 0 6px; margin-left: -6px; border-radius: 4px;
  font-size: 15px; line-height: 24px; color: var(--muted); pointer-events: none; transform-origin: 0 50%;
  background: linear-gradient(to bottom, var(--surface) 0 50%, var(--bg) 50% 100%);
  transition: transform 0.28s var(--ease-out), color 0.2s ease;
}
.fl input::placeholder, .fl textarea::placeholder { color: transparent; }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label,
.fl textarea:focus + label, .fl textarea:not(:placeholder-shown) + label,
.fl-static label { transform: translateY(-25px) scale(0.82); }
.fl input:focus + label, .fl textarea:focus + label, .fl select:focus + label { color: var(--cyan); }
.fl.has-err label { color: #f87171; }
.fl .hint { color: var(--muted); font-size: 12px; }
.form-success {
  padding: clamp(28px, 5vw, 48px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 16px; justify-items: start; align-content: start;
}
.form-success svg { width: 64px; height: 64px; }
.form-success .c1 { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transform-origin: 32px 32px; transform: rotate(-90deg); animation: draw 0.6s var(--ease-out) forwards; }
.form-success .c2 { fill: none; stroke: var(--fg); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.4s var(--ease-out) 0.45s forwards; }
.form-success h3 { font-size: clamp(24px, 3.4vw, 34px); }
.copy .lbl { display: inline-block; }
.field.is-ok input, .field.is-ok textarea { border-color: rgba(74, 222, 128, 0.45); }
.fl.is-ok label::after { content: " ✓"; color: #4ade80; }
.hint-fix { font-size: 13px; color: #fbbf24; }
.hint-fix .linkish { color: var(--fg); }
.msg-count { font-size: 12px; color: var(--muted); font-family: var(--f-mono); min-height: 0; }
.msg-count:empty { display: none; }
.copy.done { color: var(--cyan); border-color: var(--cyan); }

/* =====================================================================
   Conversão
   ===================================================================== */
/* WhatsApp flutuante e barra fixa no celular */
.wa-float {
  position: fixed; z-index: 46;
  right: calc(max(16px, env(safe-area-inset-right, 0px)) + 4px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px;
  border-radius: 999px; background: #22c55e; color: #04140a; font-weight: 600; text-decoration: none;
  box-shadow: 0 14px 40px -12px rgba(34, 197, 94, 0.65);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.wa-float svg { width: 22px; height: 22px; }
.wa-float:active { transform: scale(0.96); }
#totop { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
.mbar-cta { display: none; }
html.lock .mbar-cta, html.lock .wa-float { visibility: hidden; }

/* Garantias */
.guarantees { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guarantee { background: var(--surface); padding: 26px; display: grid; gap: 12px; align-content: start; }
.guarantee h3 { font-size: 19px; }
.guarantee p { color: var(--muted); font-size: 14.5px; }

/* Segmentos */
.segments { display: grid; gap: 16px; }
.segment .pain, .segment .fix { font-size: 15px; }
.segment .pain { color: var(--muted); }
.segment .pain b, .segment .fix b { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.segment .pain b { color: #f87171; }
.segment .fix b { color: var(--cyan); }
.segments + p a { color: var(--cyan); }

/* Preço de referência nas abas de serviço */
.from {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 6px;
  padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.04);
}
.from > span { display: grid; gap: 2px; }
.from b { font-family: var(--f-display); font-size: 19px; font-weight: 600; }
.from small { color: var(--muted); font-size: 12.5px; }

/* CTA depois da venda no PDV */
.printer-actions { display: grid; gap: 10px; justify-items: center; text-align: center; margin-top: 14px; }
.printer-actions p { font-family: var(--f-display); font-size: 17px; }
.printer-actions .cta-row { justify-content: center; }
#new-sale { margin-top: 0; }

/* CTA no fim do case e nos planos */
.case-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(22px, 4vw, 36px); border-radius: 20px; border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
}
.case-cta > div:first-child { display: grid; gap: 8px; max-width: 560px; }
.case-cta h3 { font-size: clamp(22px, 3vw, 30px); }

/* CTA no fim do artigo */
.reader-cta { margin-top: 18px; padding: 24px; border-radius: 16px; border: 1px solid rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.05); display: grid; gap: 14px; justify-items: start; }
.reader-cta p { font-family: var(--f-display); font-size: 21px; line-height: 1.35; color: var(--fg); }

/* Contexto e erro no formulário */
.ctx {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 14px; border-radius: 12px; font-size: 14px; color: var(--muted);
  background: rgba(232, 121, 249, 0.07); border: 1px solid rgba(232, 121, 249, 0.3);
}
.ctx b { color: var(--fg); font-weight: 600; }
.ctx button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.ctx button:hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.form-err { grid-column: 1 / -1; color: #f87171; font-size: 14px; }
.form-err a { color: var(--fg); }

/* Simulador */
.sim { max-width: 880px; padding: clamp(22px, 4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 24px; overflow: hidden; }
.sim-top { display: grid; gap: 10px; }
.sim-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sim-bar i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0.25); transition: transform 0.6s var(--ease-out); }
.sim-step { display: grid; gap: 18px; }
.sim-step h3 { font-size: clamp(22px, 3vw, 30px); outline: none; }
.opts { display: grid; gap: 10px; }
.opt {
  position: relative; display: grid; gap: 4px; padding: 16px 18px; text-align: left; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s var(--ease-out);
}
.opt b { font-size: 15.5px; font-weight: 600; padding-right: 30px; }
.opt small { color: var(--muted); font-size: 13px; }
.opt:active { transform: scale(0.98); }
.opt::after {
  content: ""; position: absolute; right: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #343a52; transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.opts-multi .opt::after { border-radius: 6px; }
.opt[aria-pressed="true"] { border-color: var(--cyan); background: rgba(34, 211, 238, 0.08); }
.opt[aria-pressed="true"]::after { background: var(--cyan); border-color: var(--cyan); box-shadow: inset 0 0 0 3px var(--bg); }
.sim-nav { display: flex; justify-content: space-between; gap: 12px; }
.sim-nav #sim-next { margin-left: auto; }
.sim-nav button[disabled] { opacity: 0.4; cursor: default; }
.sim-range { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 6vw, 58px); letter-spacing: -0.03em; }
.sim-sep { font-size: 0.4em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.sim-guar { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.sim-guar li::before { content: "✓"; color: var(--cyan); margin-right: 10px; }
.sim-lead { display: grid; gap: 14px; padding: 20px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.sim-lead h4 { font-family: var(--f-display); font-size: 18px; margin: 0; }
.sim-lead .field input { background: var(--surface); }
.sim-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sim-done { padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.07); color: var(--fg); }
.linkish { background: none; border: 0; padding: 0; color: var(--cyan); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 640px) {
  .opts { grid-template-columns: repeat(2, 1fr); }
  .sim-lead { grid-template-columns: 1fr 1fr; }
  .sim-lead h4, .sim-lead .full { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .guarantees { grid-template-columns: repeat(3, 1fr); }
  .segments { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 719px) {
  .wa-float { display: none; }
  .mbar-cta {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px;
    position: fixed; z-index: 46; left: 0; right: 0; bottom: 0;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 10px) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(5, 6, 13, 0.92); border-top: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .mbar-cta .btn { justify-content: center; padding: 12px 14px; }
  .mbar-cta .wa { background: #22c55e; color: #04140a; border-color: transparent; }
  #totop { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
  .footer { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 110px); }
  .toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); }
  .toast:not(.show) { transform: translate(-50%, calc(100% + 140px)); }
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { transform: translateY(-2px); box-shadow: 0 18px 46px -12px rgba(34, 197, 94, 0.75); }
  .opt:hover { border-color: rgba(34, 211, 238, 0.45); }
}

.legal a, .note a, .form-note a { color: var(--cyan); }
.legal .linkish { color: var(--muted); }

/* Oferta ao sair */
.offer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.offer-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 10, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.offer-card {
  position: relative; width: min(480px, 100%); display: grid; gap: 14px; padding: 30px; border-radius: 22px;
  border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.offer-card h3 { font-size: clamp(24px, 3.4vw, 32px); padding-right: 30px; }
.offer-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.offer-x:hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.offer.as-nudge { inset: auto 0 calc(env(safe-area-inset-bottom, 0px) + 82px) 0; place-items: end center; pointer-events: none; }
.offer.as-nudge .offer-backdrop { display: none; }
.offer.as-nudge .offer-card { pointer-events: auto; width: min(480px, calc(100vw - 32px)); padding: 20px; gap: 10px; }
.offer.as-nudge .offer-card h3 { font-size: 20px; }

/* Página de política */
.legal-page { max-width: 780px; display: grid; gap: 16px; }
.legal-page h1 { font-size: clamp(34px, 5.4vw, 60px); }
.legal-body { display: grid; gap: 14px; margin-top: 18px; }
.legal-body h2 { font-size: 22px; margin-top: 18px; }
.legal-body p, .legal-body li { color: #c4cad9; line-height: 1.75; }
.legal-body ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal-body b { color: var(--fg); }
/* ---------- Responsivo ---------- */
@media (min-width: 720px) {
  .case-cols { grid-template-columns: 1fr 1fr; }
  .case-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .case-metrics { grid-template-columns: 1fr; }
  .steps-line { left: 21px; top: 40px; bottom: 40px; }
  .wipe-inner img { width: 44px; }
}

/* ---------- Acessibilidade ---------- */
[tabindex="-1"]:focus { outline: none; }
.paused-motion *, .paused-motion *::before, .paused-motion *::after { animation-play-state: paused !important; }
@media (pointer: coarse) {
  .qty button { width: 40px; height: 40px; }
  .copy { min-height: 40px; }
  .ctx button, .offer-x { width: 44px; height: 44px; }
  .filter, .tab { min-height: 44px; }
  .legal .linkish { padding-block: 10px; }
}

/* ---------- Hover só com mouse ---------- */
@media (hover: hover) and (pointer: fine) {
  #totop:hover .arrow { transform: translateY(-3px); }
  .work-card:hover .view { opacity: 1; transform: none; }
  .case-next:hover svg { transform: translateX(6px); }
  .person:hover .front { transform: rotateY(-180deg); }
  .person:hover .back { transform: rotateY(0deg); }
}

