/* =========================================================
   Q1 SISTEMAS — Design system
   Campo (alta visibilidade) × Sistema (sinal ciano)
   Archivo (expandida) · Instrument Sans · Martian Mono
   ========================================================= */

:root {
  /* Superfícies */
  --abyss:   #070B14;
  --panel:   #0D1524;
  --panel-2: #121C30;
  --line:    #1C2A41;
  --line-2:  #2B3D5B;

  /* Texto */
  --ink:   #E9EFF8;
  --ink-2: #A6B3C8;
  --ink-3: #6F809B;

  /* Sinais */
  --signal: #2CC6FF;   /* o sistema: dado, tempo real */
  --hivis:  #FF7A1A;   /* o campo: colete de alta visibilidade */
  --safe:   #34D88A;   /* segurança do trabalho */
  --amber:  #FFC23D;

  --accent: var(--signal);
  --accent-ink: #03131D;

  /* Tipo */
  --f-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, 'Cascadia Mono', monospace;

  --nav-h: 68px;
  --gutter: 24px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-accent="signal"] { --accent: var(--signal); --accent-ink: #03131D; }
[data-accent="hivis"]  { --accent: var(--hivis);  --accent-ink: #1A0A00; }
[data-accent="safe"]   { --accent: var(--safe);   --accent-ink: #03170C; }
[data-accent="buy"]    { --accent: var(--amber);  --accent-ink: #1C1300; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--abyss);
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: var(--abyss); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--signal); color: var(--abyss); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografia ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 122%;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: .94;
  letter-spacing: -.012em;
  color: var(--ink);
}
.display em { display: block; font-style: normal; color: var(--accent); }
.display-sm { font-size: clamp(2.1rem, 4vw, 3.4rem); }

.title {
  font-family: var(--f-display);
  font-weight: 750;
  font-stretch: 110%;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--ink);
  max-width: 22ch;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.lede { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--ink-2); max-width: 54ch; margin-top: 24px; }
.sub { color: var(--ink-3); margin-top: 12px; }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(44, 198, 255, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(44, 198, 255, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(44, 198, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(44, 198, 255, 0); }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 10px;
  font-family: var(--f-body); font-size: 15px; font-weight: 600;
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s var(--ease), color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-signal { background: var(--signal); color: #03131D; }
.btn-signal:hover { background: #5AD4FF; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.1); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); background: rgba(255, 255, 255, .03); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(7, 11, 20, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1200px; height: 100%; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-word {
  font-family: var(--f-display); font-weight: 800; font-stretch: 120%;
  font-size: 17px; letter-spacing: .02em; color: var(--ink); text-transform: uppercase;
}
.brand-word span {
  font-family: var(--f-mono); font-weight: 400; font-stretch: 100%;
  font-size: 10.5px; letter-spacing: .22em; color: var(--signal); margin-left: 8px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a:not(.btn) {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  font-size: 14px; color: var(--ink-2);
  transition: color .2s;
}
.nav-links > a:not(.btn):hover { color: var(--ink); }
.nav-links > a.active { color: var(--ink); }
.nav-links > a.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--signal);
}
.nav-links .btn { margin-left: 12px; }
.nav-dot { width: 7px; height: 7px; border-radius: 2px; }
.dot-fo { background: var(--hivis); }
.dot-epi { background: var(--safe); }
.dot-pc { background: var(--amber); }

.nav-toggle { display: none; width: 42px; height: 42px; position: relative; }
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle.open span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle.open span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Views ---------- */
.view { display: none; }
.view.active { display: block; animation: view-in .45s var(--ease); }
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }

.section { padding-block: clamp(80px, 10vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }

/* =========================================================
   HERO — a linha de digitalização
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 100svh;
  padding-top: var(--nav-h);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  align-self: center;
  padding: 72px 48px 72px max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
}
.hero-copy .eyebrow { color: var(--signal); }
.hero-copy .display { font-size: clamp(2.3rem, 3.9vw, 4rem); font-stretch: 116%; }

.hero-proof {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-3);
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ''; width: 5px; height: 5px; background: var(--signal); }

.scan {
  --from: 50%;
  --to: 22%;
  position: relative;
  margin: 0;
  min-height: 560px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--panel);
}
.scan img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 18% 50%;
}

.scan-digital {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--from));
  animation: scan-cut 11s var(--ease) infinite alternate;
}
.scan-digital img { filter: grayscale(1) contrast(1.45) brightness(.55); }
.scan-digital::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(170deg, #2CC6FF 0%, #0A3B66 70%, #050B1A 100%);
  mix-blend-mode: color;
}
.scan-digital::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
}
.scan-grid {
  position: absolute; inset: 0; z-index: 3;
  background-image:
    linear-gradient(rgba(44, 198, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 198, 255, .16) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, #000 18%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%);
}

.scan-line {
  position: absolute; top: 0; bottom: 0; z-index: 4;
  left: var(--from);
  width: 2px; margin-left: -1px;
  background: var(--signal);
  box-shadow: 0 0 22px 5px rgba(44, 198, 255, .5);
  animation: scan-line 11s var(--ease) infinite alternate;
}
.scan-line span {
  position: absolute; top: 96px; left: 2px;
  writing-mode: vertical-rl;
  padding: 12px 5px;
  background: var(--signal); color: var(--abyss);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
}

@keyframes scan-cut  { from { clip-path: inset(0 0 0 var(--from)); } to { clip-path: inset(0 0 0 var(--to)); } }
@keyframes scan-line { from { left: var(--from); } to { left: var(--to); } }

.scan-events {
  position: absolute; z-index: 5;
  top: 0; bottom: 0; right: 28px;
  width: min(320px, 40%);
}
.scan-events li {
  position: absolute; right: 0; top: var(--y);
  max-width: 100%;
  padding: 9px 12px 9px 12px;
  background: rgba(7, 11, 20, .8);
  border: 1px solid rgba(44, 198, 255, .32);
  border-left: 2px solid var(--signal);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--f-mono); font-size: 11px; line-height: 1.5; color: var(--ink);
  opacity: 0;
  animation: event-in .7s var(--ease) forwards;
}
.scan-events li b { color: var(--signal); font-weight: 500; margin-right: 6px; }
.scan-events li:nth-child(1) { animation-delay: .5s; }
.scan-events li:nth-child(2) { animation-delay: 1.1s; }
.scan-events li:nth-child(3) { animation-delay: 1.7s; }
.scan-events li:nth-child(4) { animation-delay: 2.3s; }
@keyframes event-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.scan-status {
  position: absolute; left: 20px; bottom: 20px; z-index: 5;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: rgba(7, 11, 20, .78);
  border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}

/* =========================================================
   O que muda — ledger
   ========================================================= */
.ledger { border-bottom: 1px solid var(--line); }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(160px, .9fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.ledger-head {
  padding: 0 0 14px; border-top: 0;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.ledger-head span:last-child { color: var(--signal); }
.ledger-row strong {
  font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.3;
}
.ledger-row .was { color: var(--ink-3); }
.ledger-row .now { color: var(--ink); position: relative; padding-left: 20px; }
.ledger-row .now::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; background: var(--signal);
}

/* =========================================================
   Soluções — produtos
   ========================================================= */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(72px, 9vw, 112px);
}
.product-flip .product-media { order: 2; }

.product-media {
  display: block;
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-media:hover { transform: translateY(-4px); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
.product-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

.product-id { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.product-id img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; }
.product-id .tag { margin: 0; }
.tag {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.product-id h3 { font-family: var(--f-display); font-stretch: 116%; font-weight: 800; font-size: 30px; line-height: 1.1; }
.product-body > p { color: var(--ink-2); max-width: 46ch; }

.checks { margin-top: 22px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 22px; color: var(--ink); font-size: 15px; }
.checks li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--accent); }

.product-foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
}
.price { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: 30px; color: var(--ink); line-height: 1; }
.price span {
  display: block; margin-bottom: 8px;
  font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.price small { font-family: var(--f-body); font-weight: 500; font-stretch: 100%; font-size: 14px; color: var(--ink-3); }

.next-module {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 28px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}
.next-module p { max-width: 64ch; }
.next-module strong { color: var(--ink); }

/* =========================================================
   Plataforma
   ========================================================= */
.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.platform-photo { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); }
.platform-photo img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: 30% 50%; }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
.specs > div { border-top: 1px solid var(--line-2); padding-top: 16px; }
.specs dt { font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.specs dd { font-size: 15px; color: var(--ink-2); }
.specs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.specs-4 > div { border-top-color: var(--accent); }

/* =========================================================
   Sequências numeradas (processos reais)
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.steps-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.steps li { position: relative; padding-top: 30px; border-top: 2px solid var(--line-2); counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -12px; left: 0;
  padding-right: 10px; background: var(--abyss);
  font-family: var(--f-mono); font-size: 12px; color: var(--accent);
}
.steps li::after {
  content: ''; position: absolute; top: -5px; right: 0;
  width: 8px; height: 8px; border-radius: 50%; background: var(--line-2);
}
.steps li:last-child::after { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.steps h3 { font-family: var(--f-display); font-stretch: 106%; font-size: 18px; line-height: 1.25; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--ink-2); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-family: var(--f-display); font-stretch: 104%; font-weight: 600; font-size: 18px; color: var(--ink);
  cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; flex: none;
  font-family: var(--f-mono); font-size: 20px; color: var(--signal);
  transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 24px; max-width: 62ch; }

/* =========================================================
   Faixa de chamada
   ========================================================= */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); isolation: isolate; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 11, 20, .96) 0%, rgba(7, 11, 20, .8) 45%, rgba(7, 11, 20, .35) 100%);
}
.cta-inner { padding-block: clamp(96px, 12vw, 150px); }
.cta-inner .title { max-width: 18ch; font-size: clamp(2rem, 4vw, 3.3rem); }
.cta-inner p { margin-top: 18px; max-width: 46ch; color: var(--ink); opacity: .85; }

/* =========================================================
   Páginas de produto
   ========================================================= */
.p-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(86svh, 820px);
  display: flex; align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.p-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.p-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, var(--abyss) 2%, rgba(7, 11, 20, .55) 45%, rgba(7, 11, 20, .25) 100%),
    linear-gradient(90deg, rgba(7, 11, 20, .9) 0%, rgba(7, 11, 20, .2) 70%);
}
.p-hero-inner { padding-top: calc(var(--nav-h) + 64px); padding-bottom: 72px; }
.p-hero .lede { color: var(--ink); opacity: .88; }
.p-hero .display { font-size: clamp(2rem, 9.4vw, 5rem); }
.product-id-lg { margin-bottom: 22px; }
.product-id-lg img { width: 64px; height: 64px; border-radius: 16px; }

.back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 36px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.back:hover { color: var(--ink); }

/* Galeria */
.gallery-track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-color: var(--line-2) transparent;
}
.shot {
  flex: 0 0 min(440px, 84%);
  scroll-snap-align: start;
  text-align: left;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  transition: border-color .2s, transform .3s var(--ease);
}
.shot:hover { border-color: var(--accent); transform: translateY(-3px); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shot span { display: block; padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); }
.gallery-empty { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }

/* Problemas (ProCompras) */
.pains-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.pains { border-top: 1px solid var(--line-2); }
.pains li {
  position: relative;
  padding: 18px 0 18px 34px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink); font-size: 16px;
}
.pains li::before {
  content: '×'; position: absolute; left: 0; top: 15px;
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(255, 77, 77, .12); color: #FF6B6B;
  font-family: var(--f-mono); font-size: 14px;
}

/* Telas de celular */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.phones figure { margin: 0; }
.phones img {
  width: 100%; max-width: 300px; margin-inline: auto;
  aspect-ratio: 9 / 16; object-fit: cover; object-position: top;
  border: 6px solid #1A2438; border-radius: 30px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2);
}
.phones figcaption { max-width: 300px; margin: 18px auto 0; font-size: 14.5px; }
.phones figcaption strong {
  display: block; margin-bottom: 4px;
  font-family: var(--f-display); font-stretch: 106%; font-size: 17px; color: var(--ink);
}

/* Perfis */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.roles-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.role {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.role h3 { font-family: var(--f-display); font-stretch: 106%; font-size: 19px; line-height: 1.25; margin-bottom: 10px; }
.role p { font-size: 14.5px; }
.role ul { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.role li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--ink); }
.role li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--accent); }

/* Ciclo Kits Hidro */
.cycle { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: cyc; }
.cycle li {
  position: relative; counter-increment: cyc;
  padding: 44px 18px 0 0;
  font-family: var(--f-display); font-stretch: 104%; font-weight: 600; font-size: 15.5px; line-height: 1.35; color: var(--ink);
}
.cycle li::before {
  content: counter(cyc);
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--safe); background: var(--abyss);
  font-family: var(--f-mono); font-size: 11px; color: var(--safe);
}
.cycle li::after {
  content: ''; position: absolute; top: 13px; left: 28px; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--safe), var(--line-2));
}
.cycle li:last-child::after {
  content: '↺ volta ao início';
  height: auto; background: none; top: 6px; left: 38px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; color: var(--ink-3);
}

.states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.state {
  padding: 20px 20px 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--c);
  border-radius: 10px;
  background: var(--panel);
}
.state strong { display: block; color: var(--ink); font-family: var(--f-display); font-stretch: 106%; font-size: 17px; }
.state span { font-size: 14px; }
.s-stock { --c: var(--safe); }
.s-field { --c: var(--signal); }
.s-wait  { --c: var(--amber); }
.s-wash  { --c: var(--hivis); }

/* Planos */
.plans { display: grid; gap: 16px; align-items: stretch; }
.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.plan-featured { border-color: var(--accent); background: var(--panel-2); box-shadow: 0 0 0 1px var(--accent), 0 30px 70px -40px var(--accent); }
.plan-badge {
  position: absolute; top: -12px; left: 24px;
  padding: 4px 10px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
}
.plan h3 { font-family: var(--f-display); font-stretch: 110%; font-size: 20px; }
.plan-price {
  margin: 14px 0 22px;
  font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 44px; line-height: 1; color: var(--ink);
}
.plan-price em {
  display: block; margin-bottom: 6px;
  font-family: var(--f-mono); font-style: normal; font-weight: 400; font-stretch: 100%;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.plan-setup { margin: -10px 0 20px; font-size: 14px; color: var(--ink-2); }
.plan-setup b { color: var(--ink); font-weight: 600; }
.plan-price small { font-size: 16px; font-weight: 600; margin-right: 4px; vertical-align: super; color: var(--ink-2); }
.plan-price span { font-family: var(--f-body); font-stretch: 100%; font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.plan ul { flex: 1; margin-bottom: 24px; }
.plan li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.plan li b { color: var(--ink); font-weight: 600; }

.usage-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px;
  margin-top: 28px; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px;
}
.usage-note strong { color: var(--ink); }
.usage-note ul { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.usage-note li { display: inline-flex; align-items: center; gap: 8px; }
.u { width: 10px; height: 10px; border-radius: 50%; }
.u-ok { background: var(--safe); }
.u-warn { background: var(--hivis); }
.u-crit { background: #FF4D4D; }

/* =========================================================
   Contato
   ========================================================= */
.contact { padding-top: calc(var(--nav-h) + 64px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: start; }

.channel {
  display: flex; align-items: center; gap: 16px;
  margin-top: 36px; padding: 18px 20px;
  border: 1px solid var(--line-2); border-radius: 12px;
  transition: border-color .2s;
}
.channel:hover { border-color: #25D366; }
.channel > i:first-child { font-size: 26px; color: #25D366; }
.channel span { flex: 1; display: grid; }
.channel strong { color: var(--ink); }
.channel small { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.channel > i:last-child { color: var(--ink-3); }

.form {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  display: grid; gap: 18px;
}
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field label small { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--abyss);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink);
  font: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(44, 198, 255, .18);
}
.form-note { font-size: 13px; color: var(--ink-3); text-align: center; }

/* =========================================================
   Rodapé
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding-top: 64px; background: #050810; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 34ch; font-size: 14.5px; }
.footer h2 {
  margin-bottom: 14px;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.footer nav a, .footer-grid > div:last-child a { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14.5px; }
.footer nav a:hover, .footer-grid > div:last-child a:hover { color: var(--ink); }
.footer-bottom { margin-top: 56px; padding-block: 22px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff; font-size: 27px;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px;
  background: rgba(3, 6, 12, .94);
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: min(1200px, 100%); max-height: 78vh; border-radius: 10px; border: 1px solid var(--line-2); }
.lightbox-bar { display: flex; align-items: center; gap: 16px; max-width: 1200px; width: 100%; }
.lightbox-bar p { flex: 1; color: var(--ink); font-size: 14.5px; }
.lightbox-bar span { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.lightbox-btn {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--ink);
}
.lightbox-btn:hover { border-color: var(--signal); color: var(--signal); }
.lightbox-close { position: absolute; top: 20px; right: 20px; }

/* =========================================================
   Revelação no scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 64px var(--gutter) 56px; }
  .scan { min-height: 0; height: 62svh; max-height: 560px; border-left: 0; border-top: 1px solid var(--line); }
  .specs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-5, .steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .cycle { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px;
    background: rgba(7, 11, 20, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links > a:not(.btn) { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links > a.active::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; margin-top: -4px; }
  .nav-links .btn { margin: 18px 0 0; height: 48px; }

  .product, .platform-grid, .faq-grid, .contact-grid, .pains-grid { grid-template-columns: 1fr; }
  .phones { grid-template-columns: 1fr; row-gap: 40px; }
  .product-flip .product-media { order: 0; }
  .platform-photo img { aspect-ratio: 16 / 11; }

  .ledger-head { display: none; }
  .ledger-row { grid-template-columns: 1fr; gap: 10px; }
  .ledger-row .was::before { content: 'Hoje: '; color: var(--ink-3); font-weight: 600; }
  .ledger-row .now::before { display: none; }
  .ledger-row .now { border-left: 2px solid var(--signal); padding-left: 12px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .plans-3 { grid-template-columns: 1fr; max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .scan { height: 72svh; }
  .scan-events { right: 12px; width: 74%; }
  .scan-events li { font-size: 10px; }
  .scan-line span { display: none; }
  .specs, .specs-4, .steps, .steps-5, .steps-6, .plans-4, .states, .field-row { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: 1fr; row-gap: 0; }
  .cycle li { padding: 4px 0 26px 44px; }
  .cycle li::after { top: 30px; bottom: 0; left: 13px; right: auto; width: 2px; height: auto; background: var(--line-2); }
  .cycle li:last-child::after { top: auto; bottom: 0; left: 44px; width: auto; background: none; }
  .actions .btn { flex: 1 1 100%; }
  .next-module .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .scan-digital { animation: none; clip-path: inset(0 0 0 36%); }
  .scan-line { animation: none; left: 36%; }
  .scan-events li { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
