/* =========================================================
   EtaWeb & EteWeb — folha de estilo principal
   Mobile first. Tokens em :root. Ver CLAUDE.md.
   ========================================================= */

:root {
  /* Paleta "água profunda" */
  --abyss: #062A43;        /* fundo escuro principal */
  --abyss-2: #0A3654;      /* superfícies sobre o escuro */
  --tecla: #0B5E8E;        /* azul da marca Tecla */
  --shield: #5C97C9;       /* azul do escudo ETA */
  --mist: #EEF4F8;         /* fundo claro de seções */
  --paper: #FFFFFF;
  --ink: #0E2233;          /* texto principal */
  --ink-2: #44596B;        /* texto secundário */
  --line: #D6E2EB;         /* bordas claras */
  --ok: #2FA37A;           /* dentro do padrão */
  --amber: #E9A23B;        /* destaque / alerta */
  --wa: #1FA855;           /* WhatsApp */

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  /* Escala tipográfica (razão ~1.25) */
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-xl: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  --fs-hero: clamp(2.35rem, 1.5rem + 3.2vw, 4rem);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-1: 0 1px 2px rgba(6, 42, 67, .06), 0 4px 14px rgba(6, 42, 67, .06);
  --shadow-2: 0 2px 6px rgba(6, 42, 67, .08), 0 18px 48px rgba(6, 42, 67, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --gutter: 20px;
  --maxw: 1200px;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 600; font-size: var(--fs-base); text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: var(--fs-md); }
.btn-block { width: 100%; }

.btn-primary { background: var(--amber); color: var(--abyss); box-shadow: 0 8px 24px rgba(233, 162, 59, .28); }
.btn-primary:hover { background: #F2B252; box-shadow: 0 12px 30px rgba(233, 162, 59, .38); }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(31, 168, 85, .25); }
.btn-wa:hover { background: #18934A; box-shadow: 0 10px 26px rgba(31, 168, 85, .35); }

.btn-ghost-light { color: #fff; border: 1.5px solid rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }

.btn-outline { color: var(--tecla); border: 1.5px solid var(--line); background: var(--paper); }
.btn-outline:hover { border-color: var(--tecla); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-marks { display: inline-flex; align-items: flex-end; }
.brand-marks img { height: 36px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.brand-marks img + img { height: 29px; margin-left: -8px; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-text span { font-weight: 500; opacity: .55; }

.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none; opacity: .85;
  transition: opacity .2s, background-color .2s;
}
.nav a:hover { opacity: 1; background: rgba(127, 160, 190, .14); }
.nav a.is-active { opacity: 1; background: rgba(127, 160, 190, .18); }

.header-cta { display: flex; align-items: center; gap: 8px; }
.header-cta .btn-wa span { display: none; }
.header-cta .btn-wa { width: 40px; padding: 0; }
.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.menu-toggle .ic { width: 24px; height: 24px; }
.menu-toggle .ic-close { display: none; }
.menu-toggle[aria-expanded="true"] .ic-open { display: none; }
.menu-toggle[aria-expanded="true"] .ic-close { display: block; }

.menu-mobile {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--paper); color: var(--ink);
  padding: 8px var(--gutter) 24px;
  box-shadow: 0 24px 40px rgba(6, 42, 67, .14);
  border-top: 1px solid var(--line);
}
.menu-mobile nav { display: grid; margin-bottom: 16px; }
.menu-mobile nav a { padding: 14px 4px; font-size: var(--fs-md); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-mobile:not([hidden]) { animation: drop .3s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(92, 151, 201, .30), transparent 70%),
    radial-gradient(50% 60% at 10% 0%, rgba(11, 94, 142, .55), transparent 70%),
    var(--abyss);
  color: #fff;
  padding: calc(var(--header-h) + 40px) 0 0;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: auto 0 0 0; height: 220px; z-index: -1; pointer-events: none; }
.hero-waves { width: 100%; height: 100%; }
.hero-waves path { fill: #fff; }
.hero-waves .w1 { opacity: .05; }
.hero-waves .w2 { opacity: .07; }
.hero-waves .w3 { opacity: 1; fill: var(--paper); }

.hero-grid { display: grid; gap: 48px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-sm); color: #BFD6E8;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(47, 163, 122, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47, 163, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 163, 122, 0); } }

.hero h1 {
  margin-top: 22px;
  font-size: var(--fs-hero); font-weight: 600; line-height: 1.02; letter-spacing: -.035em;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-lead { margin-top: 22px; font-size: var(--fs-md); color: #C9DBE8; max-width: 52ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-stores { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.hero-stores > span { width: 100%; font-size: var(--fs-sm); color: #9FBCD2; }
.hero-stores a, .app-stores a, .footer-stores a { display: inline-block; border-radius: 10px; transition: transform .25s var(--ease), opacity .25s; }
.hero-stores a:hover, .app-stores a:hover, .footer-stores a:hover { transform: translateY(-2px); }
.hero-stores img { height: 42px; width: auto; }

/* Composição visual do hero */
.hero-visual { position: relative; min-height: 520px; display: flex; justify-content: center; padding-top: 64px; }

.phone {
  position: relative;
  border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #1D4462, #0B2236);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 40px 80px rgba(0, 10, 20, .45);
}
.phone img { border-radius: 30px; width: 100%; }
.phone-hero { width: 240px; z-index: 1; }

.readout {
  position: absolute; z-index: 2; left: 0; bottom: 36px;
  width: 204px;
  background: rgba(255, 255, 255, .97); color: var(--ink);
  border-radius: var(--radius); padding: 14px 14px 12px;
  box-shadow: var(--shadow-2);
}
.readout-head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.readout-head .muted { color: var(--ink-2); margin-left: auto; font-size: .78rem; white-space: nowrap; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s infinite; }
.readout-list li {
  display: grid; grid-template-columns: 1fr auto 10px; align-items: baseline; column-gap: 8px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.readout-list li span { font-size: .82rem; color: var(--ink-2); }
.readout-list li b { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; transition: color .4s; }
.readout-list li b.tick { color: var(--tecla); }
.readout-list li em { grid-column: 1 / 2; grid-row: 2; font-style: normal; font-size: .72rem; color: #7F95A7; }
.readout-list li i { grid-column: 3; grid-row: 1; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); align-self: center; }
.readout-foot { padding-top: 10px; font-size: .7rem; white-space: nowrap; color: var(--ink-2); display: flex; justify-content: space-between; gap: 6px; }
.readout-foot span { color: var(--ok); font-weight: 600; }

.toast-alert {
  position: absolute; z-index: 3; right: 0; top: 0;
  display: flex; gap: 10px; align-items: center;
  max-width: 230px;
  background: var(--paper); color: var(--ink);
  border-radius: 14px; padding: 10px 14px 10px 10px;
  box-shadow: var(--shadow-2);
  border-left: 3px solid var(--amber);
}
.toast-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #FDF1DE; color: #B87513; flex: none; }
.toast-alert strong { display: block; font-size: .82rem; line-height: 1.2; }
.toast-alert div span { font-size: .74rem; color: var(--ink-2); line-height: 1.3; display: block; }

/* Sequência de entrada (única animação orquestrada da página) */
.js .hero-copy > *, .js .phone-hero, .js .readout, .js .toast-alert { opacity: 0; transform: translateY(14px); }
.js.loaded .hero-copy > *, .js.loaded .phone-hero, .js.loaded .readout, .js.loaded .toast-alert { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js.loaded .hero-copy > :nth-child(2) { transition-delay: .08s; }
.js.loaded .hero-copy > :nth-child(3) { transition-delay: .16s; }
.js.loaded .hero-copy > :nth-child(4) { transition-delay: .24s; }
.js.loaded .hero-copy > :nth-child(5) { transition-delay: .32s; }
.js.loaded .phone-hero { transition-delay: .2s; }
.js.loaded .readout { transition-delay: .55s; }
.js.loaded .toast-alert { transition-delay: 1.4s; }

.facts {
  position: relative; z-index: 2;
  margin: 24px 0 0; padding: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.facts div { display: grid; gap: 2px; }
.facts dt { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; color: var(--tecla); }
.facts dd { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.4; }

/* ---------- Seções ---------- */
.section { padding: 80px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: var(--fs-xl); text-wrap: balance; }
.section-head p { margin-top: 14px; font-size: var(--fs-md); color: var(--ink-2); max-width: 60ch; }

/* Sistemas */
.systems { padding-top: 72px; }
.system-grid { display: grid; gap: 20px; }
.system-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: 28px 24px 30px;
  border: 1px solid var(--line);
}
.system-eta { background: linear-gradient(180deg, #F3F8FC 0%, #FFFFFF 60%); }
.system-ete { background: linear-gradient(180deg, var(--abyss) 0%, #0B3A5B 100%); color: #fff; border-color: transparent; }
.system-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(92,151,201,.22), transparent 70%);
  pointer-events: none;
}
.system-top { display: flex; align-items: center; gap: 18px; }
.system-top img { width: 76px; height: auto; filter: drop-shadow(0 8px 14px rgba(6,42,67,.18)); }
.system-top h3 { font-size: 2rem; letter-spacing: -.03em; }
.system-top p { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 4px; }
.system-ete .system-top p { color: #A9C4D9; }
.system-desc { margin-top: 22px; font-size: var(--fs-md); max-width: 46ch; }

.ticks { margin-top: 22px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.ticks .ic { width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: rgba(47,163,122,.14); color: var(--ok); stroke-width: 2.5; }
.system-ete .ticks li { color: #DCE8F1; }
.system-ete .ticks .ic { background: rgba(47,163,122,.22); color: #6FD3AA; }

/* Como funciona */
.how { background: var(--mist); }
.how-grid { display: grid; gap: 48px; align-items: center; }
.how-copy h2 { font-size: var(--fs-xl); text-wrap: balance; }
.how-copy > p { margin-top: 18px; color: var(--ink-2); font-size: var(--fs-md); max-width: 54ch; }
.how-note {
  margin-top: 28px; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.how-note .ic { width: 26px; height: 26px; color: var(--tecla); margin-top: 2px; }
.how-note p { color: var(--ink-2); }
.how-note strong { color: var(--ink); display: block; margin-bottom: 2px; }

.network { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.network-lines { display: none; }
.node {
  display: grid; gap: 2px; align-content: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-1);
}
.node strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.node > span:last-child { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.4; }
.node-center {
  grid-column: 1 / -1; order: -1;
  background: var(--abyss); color: #fff; border-color: transparent;
  text-align: center; justify-items: center; padding: 22px;
}
.node-center > span:last-child { color: #A9C4D9; }
.node-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.08); margin-bottom: 8px; }
.node-icon .ic { width: 28px; height: 28px; color: var(--shield); }
.tag { justify-self: start; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.tag-local { background: rgba(47,163,122,.12); color: #1E7D5B; }
.tag-web { background: rgba(11,94,142,.1); color: var(--tecla); }

/* Recursos */
.feature-cols { display: grid; gap: 16px; }
.feature-col {
  border-radius: var(--radius-lg); padding: 26px 22px;
  background: var(--paper); border: 1px solid var(--line);
}
.feature-col h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.feature-col h3 .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--mist); color: var(--tecla); }
.feature-col li { padding: 16px 0; border-bottom: 1px solid #EBF1F5; display: grid; gap: 4px; }
.feature-col li:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-col li strong { font-weight: 600; font-size: 1rem; }
.feature-col li span { color: var(--ink-2); font-size: .94rem; line-height: 1.55; }

.spotlight {
  margin-top: 28px; display: grid; gap: 28px; align-items: center;
  padding: 28px 22px; border-radius: var(--radius-lg);
  background: var(--abyss); color: #fff;
  position: relative; overflow: hidden;
}
.spotlight::before {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,168,85,.18), transparent 70%); pointer-events: none;
}
.spotlight-media { position: relative; max-width: 360px; margin-inline: auto; }
.spotlight-media img { border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(-2deg); }
.spotlight-copy { position: relative; }
.spotlight-copy h3 { font-size: var(--fs-lg); line-height: 1.2; max-width: 22ch; }
.spotlight-copy > p { margin-top: 14px; color: #C9DBE8; max-width: 56ch; }
.spotlight .ticks li { color: #DCE8F1; }
.spotlight .ticks .ic { background: rgba(47,163,122,.22); color: #6FD3AA; }
.ticks-compact { gap: 10px; }

/* Normas */
.norms { background: var(--mist); border-block: 1px solid var(--line); }
.norms-inner { padding-block: 26px; display: grid; gap: 14px; }
.norms p { font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); }
.norms ul { display: flex; flex-wrap: wrap; gap: 8px; }
.norms li {
  font-size: var(--fs-sm); font-weight: 500;
  padding: 7px 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
}

/* Telas */
.viewer { display: grid; gap: 20px; }
.viewer-tabs {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px;
  scrollbar-width: none;
}
.viewer-tabs::-webkit-scrollbar { display: none; }
.viewer-tabs button {
  scroll-snap-align: start; flex: none;
  padding: 10px 16px; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--paper);
  transition: background-color .25s, color .25s, border-color .25s;
}
.viewer-tabs button:hover { color: var(--ink); border-color: #B9CCDA; }
.viewer-tabs button[aria-selected="true"] { background: var(--abyss); color: #fff; border-color: var(--abyss); }

.viewer-stage { margin: 0; }
.browser {
  border-radius: var(--radius); overflow: hidden;
  background: #F6F9FB; border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #E8EFF4; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #C5D3DE; }
.browser-bar span { margin-left: 10px; font-size: .75rem; color: var(--ink-2); background: var(--paper); padding: 3px 12px; border-radius: 999px; }
.browser-shot { position: relative; display: block; width: 100%; background: #fff; cursor: zoom-in; }
.browser-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; object-position: top center; background: #fff; transition: opacity .3s var(--ease); }
.browser-shot img.is-swapping { opacity: 0; }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; color: #fff;
  background: rgba(6, 42, 67, .82); padding: 7px 12px; border-radius: 999px;
  opacity: .9; transition: opacity .2s;
}
.zoom-hint .ic { width: 16px; height: 16px; }
.browser-shot:hover .zoom-hint { opacity: 1; }
.viewer-stage figcaption { margin-top: 14px; color: var(--ink-2); font-size: .95rem; min-height: 3em; }

/* Relatórios */
.reports { background: var(--mist); }
.report-groups { display: grid; gap: 16px; }
.report-groups > div { background: var(--paper); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.report-groups h3 { font-size: 1.15rem; margin-bottom: 10px; }
.report-groups p { color: var(--ink-2); font-size: .95rem; line-height: 1.65; }

/* Aplicativo */
.app {
  background:
    radial-gradient(50% 60% at 85% 40%, rgba(92, 151, 201, .25), transparent 70%),
    var(--abyss);
  color: #fff; overflow: hidden;
}
.app-grid { display: grid; gap: 56px; align-items: center; }
.app-copy h2 { font-size: var(--fs-xl); }
.app-copy > p { margin-top: 16px; color: #C9DBE8; font-size: var(--fs-md); max-width: 50ch; }
.app-list { margin-top: 28px; display: grid; gap: 14px; }
.app-list li { display: flex; gap: 14px; align-items: flex-start; color: #DCE8F1; }
.app-list .ic { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: rgba(255,255,255,.07); color: var(--shield); }
.app-list span { padding-top: 6px; line-height: 1.5; }
.app-stores { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.app-stores img { height: 48px; width: auto; }
.app-small { margin-top: 16px; font-size: var(--fs-sm); color: #8FAEC6; }

.app-phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.app-phones .phone-main { width: 210px; z-index: 2; }
.app-phones .phone-side { position: absolute; width: 170px; opacity: .9; }
.app-phones .phone-left { left: 50%; transform: translateX(-118%) rotate(-7deg) scale(.95); top: 40px; }
.app-phones .phone-right { left: 50%; transform: translateX(18%) rotate(7deg) scale(.95); top: 40px; }

/* Implantação */
.step-list { display: grid; gap: 16px; counter-reset: s; }
.step-list li {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper);
}
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; color: var(--tecla);
  background: var(--mist); margin-bottom: 18px;
}
.step-list h3 { font-size: 1.15rem; }
.step-list p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }

.support {
  margin-top: 28px; padding: 26px 22px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #F3F8FC, #E6F0F7); border: 1px solid var(--line);
  display: grid; gap: 20px; align-items: center;
}
.support h3 { font-size: var(--fs-lg); }
.support p { margin-top: 6px; color: var(--ink-2); }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.support-actions .btn { flex: 1 1 auto; }

/* FAQ */
.faq { padding-top: 40px; }
.faq-grid { display: grid; gap: 32px; }
.faq-head h2 { font-size: var(--fs-xl); }
.faq-head p { margin-top: 12px; color: var(--ink-2); }
.faq-head a { color: var(--tecla); font-weight: 600; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 1.04rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { width: 22px; height: 22px; color: var(--tecla); transition: transform .3s var(--ease); }
.faq-list details[open] summary .ic { transform: rotate(45deg); }
.faq-list details p { padding: 0 32px 22px 0; color: var(--ink-2); max-width: 64ch; }
.faq-list details[open] p { animation: drop .3s var(--ease); }

/* CTA final */
.cta { padding: 0 0 80px; }
.cta-inner {
  position: relative; overflow: hidden;
  display: grid; gap: 26px;
  padding-block: 40px; padding-inline: 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(92, 151, 201, .35), transparent 70%),
    linear-gradient(135deg, var(--tecla), var(--abyss));
  color: #fff;
}
.cta .wrap.cta-inner { width: calc(100% - var(--gutter) * 2); max-width: calc(var(--maxw) - var(--gutter) * 2); }
.cta h2 { font-size: var(--fs-xl); max-width: 20ch; text-wrap: balance; }
.cta p { margin-top: 14px; color: #CFE0EC; max-width: 52ch; font-size: var(--fs-md); }
.cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta-phone { display: inline-flex; align-items: center; gap: 8px; color: #CFE0EC; text-decoration: none; font-weight: 500; }
.cta-phone:hover { color: #fff; }

/* Rodapé */
.site-footer { background: var(--abyss); color: #C9DBE8; padding-top: 64px; }
.footer-grid { display: grid; gap: 40px; }
.brand-footer { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: var(--fs-sm); max-width: 40ch; color: #9FBCD2; }
.footer-stores { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.footer-stores img { height: 38px; width: auto; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h3 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 6px; }
.footer-col a, .footer-col address {
  display: inline-flex; align-items: flex-start; gap: 10px;
  font-size: .95rem; text-decoration: none; font-style: normal; color: #C9DBE8;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-col .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--shield); }
.tecla { align-items: center !important; gap: 14px !important; }
.tecla img { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.tecla span { display: grid; font-size: var(--fs-sm); color: #9FBCD2; }
.tecla strong { color: #fff; font-size: 1rem; font-weight: 600; }
.footer-bottom {
  margin-top: 56px; padding-block: 22px 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: var(--fs-sm); color: #8FAEC6;
}
.footer-bottom a { color: #C9DBE8; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 18px 0 16px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 10px 30px rgba(31, 168, 85, .4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .3s;
}
.wa-float .ic { width: 24px; height: 24px; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(31, 168, 85, .5); }
.wa-float span { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(4, 22, 36, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 64px 12px 24px;
}
.lightbox[hidden] { display: none; }
.lightbox:not([hidden]) { animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; max-width: 1200px; width: 100%; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; margin-inline: auto; border-radius: 12px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: #C9DBE8; text-align: center; margin-top: 14px; font-size: .95rem; }
.lb-close, .lb-nav {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.1); transition: background-color .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 12px; right: 12px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-close .ic, .lb-nav .ic { width: 22px; height: 22px; }
body.no-scroll { overflow: hidden; }

/* =========================================================
   Breakpoints (mobile first)
   ========================================================= */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-stores > span { width: auto; margin-right: 4px; }
  .facts { grid-template-columns: repeat(4, 1fr); padding: 26px 30px; }
  .feature-cols, .report-groups, .step-list { grid-template-columns: 1fr 1fr; }
  .wa-float span { display: inline; }
  .support-actions .btn { flex: 0 0 auto; }
  .lb-prev { left: 18px; } .lb-next { right: 18px; }
}

@media (min-width: 760px) {
  .header-cta .btn-wa { width: auto; padding: 0 16px; }
  .header-cta .btn-wa span { display: inline; }
  .system-grid { grid-template-columns: 1fr 1fr; }
  .system-card { padding: 36px 34px 38px; }
  .hero-visual { min-height: 600px; padding-top: 8px; }
  .readout-list li b { font-size: 1.15rem; }
  .phone-hero { width: 270px; }
  .readout { left: 4%; bottom: 140px; width: 250px; }
  .readout-foot { font-size: .75rem; }
  .toast-alert { right: 4%; top: 70px; }
  .spotlight { grid-template-columns: .8fr 1.2fr; padding: 44px; gap: 44px; }
  .support { grid-template-columns: 1fr auto; padding: 32px 36px; }
  .cta-inner { padding-inline: 48px; padding-block: 56px; }
  .viewer-tabs { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .app-phones { min-height: 560px; }
  .app-phones .phone-main { width: 250px; }
  .app-phones .phone-side { width: 200px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-tecla { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; --gutter: 32px; }
  .section { padding: 120px 0; }
  .systems { padding-top: 96px; }
  .nav { display: block; }
  .menu-toggle { display: none; }
  .menu-mobile { display: none !important; }

  .hero { padding-top: calc(var(--header-h) + 64px); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; }
  .hero-visual { min-height: 640px; }
  .phone-hero { width: 290px; }
  .readout { left: 0; bottom: 120px; }
  .toast-alert { right: 0; top: 90px; }
  .facts { margin-top: 8px; }

  .section-head { margin-bottom: 56px; }
  .how-grid { grid-template-columns: 1fr 1.05fr; gap: 72px; }

  /* Diagrama em rede: servidor ao centro, perfis nos cantos */
  .network { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; gap: 120px 20px; padding: 10px 0; }
  .network-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
  .network-lines path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
  .ln-local { stroke: var(--ok); opacity: .6; }
  .ln-web { stroke: var(--tecla); opacity: .5; stroke-dasharray: 6 7; animation: flow 1.6s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -26; } }
  .node { position: relative; z-index: 1; }
  .node-center { grid-column: 2; grid-row: 1 / 3; align-self: center; order: 0; padding: 26px 18px; }
  .n-tl { grid-column: 1; grid-row: 1; }
  .n-bl { grid-column: 1; grid-row: 2; }
  .n-tr { grid-column: 3; grid-row: 1; }
  .n-br { grid-column: 3; grid-row: 2; }

  .feature-cols { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .feature-col { padding: 28px 22px; }
  .spotlight { margin-top: 32px; padding: 56px 64px; }
  .spotlight-media { max-width: 380px; }

  .norms-inner { grid-template-columns: auto 1fr; align-items: center; gap: 28px; padding-block: 30px; }

  .viewer { grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
  .viewer-tabs { flex-direction: column; flex-wrap: nowrap; gap: 4px; position: sticky; top: calc(var(--header-h) + 24px); }
  .viewer-tabs button { text-align: left; border-radius: 12px; border-color: transparent; background: transparent; padding: 12px 16px; font-size: .95rem; }
  .viewer-tabs button:hover { background: var(--mist); border-color: transparent; }
  .viewer-tabs button[aria-selected="true"] { background: var(--abyss); }

  .report-groups { grid-template-columns: repeat(4, 1fr); }
  .app-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .app-phones { min-height: 620px; }
  .app-phones .phone-main { width: 270px; }
  .app-phones .phone-side { width: 215px; }

  .step-list { grid-template-columns: repeat(4, 1fr); }
  .step-list li:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; right: -17px; width: 18px; height: 2px; background: var(--line);
  }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; }
  .faq { padding-top: 40px; }
  .cta-inner { grid-template-columns: 1.4fr auto; align-items: center; padding: 64px 72px; }
  .cta-actions { justify-items: end; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1fr; }
  .footer-tecla { grid-column: auto; }
}

@media (min-width: 1280px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .readout { left: -6%; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .hero-copy > *, .js .phone-hero, .js .readout, .js .toast-alert { opacity: 1 !important; transform: none !important; }
}

/* Impressão */
@media print {
  .site-header, .wa-float, .lightbox, .hero-bg { display: none !important; }
  .hero, .app, .site-footer, .spotlight, .cta-inner { background: #fff !important; color: #000 !important; }
}

/* Botões das lojas (vetor, nítidos em qualquer tela — mesmo padrão do site da Tecla) */
.hero-stores .store, .app-stores .store, .footer-stores .store, .store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 14px; border-radius: 14px;
  background: #fff; color: #0B1A2E; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .26); }
.store-ic { width: 26px; height: 26px; flex: none; }
.store span { display: grid; text-align: left; }
.store small { font-size: 11px; line-height: 1.1; opacity: .7; }
.store strong { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.15; letter-spacing: -.01em; }
.app-stores .store { padding: 11px 22px 11px 16px; }
.app-stores .store-ic { width: 28px; height: 28px; }
.app-stores .store strong { font-size: 18px; }
.footer-stores .store { padding: 7px 14px 7px 11px; border-radius: 12px; box-shadow: none; }
.footer-stores .store-ic { width: 22px; height: 22px; }
.footer-stores .store strong { font-size: 15px; }

/* Botão voltar ao topo (fica acima do botão do WhatsApp) */
.to-top {
  position: fixed; z-index: 40;
  right: 20px; bottom: calc(84px + env(safe-area-inset-bottom));
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(15, 36, 64, .88); color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .2s, border-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--tecla); border-color: transparent; transform: translateY(-3px); }
.to-top .ic { width: 22px; height: 22px; stroke-width: 2.25; }
@media (min-width: 560px) { .to-top { right: 24px; bottom: calc(88px + env(safe-area-inset-bottom)); } }
