/* ==========================================================================
   Ragnan — site institucional e Ragnan Connect
   Sistema visual único para todas as páginas (geradas por tools/build.mjs).
   ========================================================================== */

:root {
  --navy-950: #050c1c;
  --navy-900: #0a1730;
  --navy-850: #0d1e3d;
  --navy-800: #11264c;
  --navy-700: #1a3668;
  --navy-600: #24498a;
  --navy-500: #3563b3;
  --orange: #ef6c1f;
  --orange-2: #ff8a3d;
  --orange-soft: #fff1e7;
  --ink: #0b1a35;
  --ink-2: #33425d;
  --muted: #5b6b85;
  --muted-2: #8394b0;
  --line: #e3e9f3;
  --line-2: #eef2f8;
  --surface: #f5f7fb;
  --white: #ffffff;
  --ok: #16a34a;
  --ok-soft: #e7f7ee;
  --warn: #d97706;
  --warn-soft: #fff6e5;
  --bad: #dc2626;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(11, 26, 53, .06), 0 2px 8px rgba(11, 26, 53, .04);
  --shadow-md: 0 10px 30px -12px rgba(11, 26, 53, .22), 0 2px 6px rgba(11, 26, 53, .05);
  --shadow-lg: 0 40px 80px -30px rgba(5, 12, 28, .55), 0 18px 36px -18px rgba(5, 12, 28, .35);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px -20px rgba(239, 108, 31, .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: 1320px; }
.section { padding: var(--section-y) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: inherit; margin: 0; letter-spacing: -.025em; line-height: 1.08; font-weight: 700; }
.display { font-size: clamp(40px, 6.6vw, 84px); letter-spacing: -.045em; line-height: 1.0; }
.h1 { font-size: clamp(36px, 5.2vw, 64px); letter-spacing: -.04em; line-height: 1.04; }
.h2 { font-size: clamp(30px, 4vw, 50px); letter-spacing: -.035em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.025em; line-height: 1.18; }
.h4 { font-size: 18px; letter-spacing: -.015em; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
p { margin: 0; }
.accent { color: var(--orange); }
.grad-text {
  background: linear-gradient(100deg, #ff9a52 0%, var(--orange) 45%, #ffb37a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.plain::before { display: none; }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin-top: 20px; }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--navy-700); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 15.5px; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { --bg: var(--orange); box-shadow: 0 12px 30px -10px rgba(239, 108, 31, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(239, 108, 31, .85), inset 0 1px 0 rgba(255,255,255,.25); transform: translateY(-1px); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-dark { --bg: var(--navy-900); }
.btn-dark:hover { --bg: var(--navy-800); transform: translateY(-1px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-ghost, .btn-ghost.light { --fg: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.on-dark .btn-ghost:hover, .btn-ghost.light:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.btn-white { --bg: #fff; --fg: var(--navy-900); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-700); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: #fff; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s, box-shadow .35s, border-color .35s, transform .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.site-header .logo { display: inline-flex; align-items: center; height: 40px; }
.site-header .logo img { height: 26px; width: auto; }
.site-header .logo .logo-light { display: none; }
.header-dark .site-header:not(.scrolled) .logo .logo-dark { display: none; }
.header-dark .site-header:not(.scrolled) .logo .logo-light { display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.nav-link {
  position: relative; padding: 10px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav a.nav-link:hover { color: var(--ink); background: var(--line-2); }
.nav a.nav-link[aria-current="page"] { color: var(--ink); }
.nav a.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); transform: translateX(-50%); }
.header-dark .site-header:not(.scrolled) .nav a.nav-link { color: rgba(255,255,255,.78); }
.header-dark .site-header:not(.scrolled) .nav a.nav-link:hover,
.header-dark .site-header:not(.scrolled) .nav a.nav-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-dark .site-header:not(.scrolled) .btn-ghost { --fg: #fff; border-color: rgba(255,255,255,.22); }
.site-header.scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom-color: rgba(11,26,53,.07); box-shadow: 0 8px 30px -20px rgba(11,26,53,.25); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .3s var(--ease), background .3s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.header-dark .site-header:not(.scrolled) .menu-toggle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.header-dark .site-header:not(.scrolled) .menu-toggle span, .header-dark .site-header:not(.scrolled) .menu-toggle span::before, .header-dark .site-header:not(.scrolled) .menu-toggle span::after { background: #fff; }
body.menu-open .menu-toggle span { background: transparent !important; }
body.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy-950); color: #fff;
  padding: 100px var(--gutter) 32px; display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
.mobile-menu a.m-link { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; align-items: center; opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s; }
.mobile-menu a.m-link:hover { color: var(--orange-2); }
.mobile-menu .m-actions { margin-top: auto; display: grid; gap: 12px; padding-top: 28px; }
.mobile-menu .m-actions .btn { width: 100%; }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open .mobile-menu a.m-link { opacity: 1; transform: none; }
body.menu-open .mobile-menu a.m-link:nth-child(2) { transition-delay: .04s; }
body.menu-open .mobile-menu a.m-link:nth-child(3) { transition-delay: .08s; }
body.menu-open .mobile-menu a.m-link:nth-child(4) { transition-delay: .12s; }
body.menu-open .mobile-menu a.m-link:nth-child(5) { transition-delay: .16s; }
body.menu-open .site-header { background: transparent !important; box-shadow: none !important; border-color: transparent !important; backdrop-filter: none !important; }
body.menu-open .site-header .logo .logo-dark { display: none !important; }
body.menu-open .site-header .logo .logo-light { display: block !important; }
body.menu-open .menu-toggle { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.2) !important; }
body.menu-open .menu-toggle span::before, body.menu-open .menu-toggle span::after { background: #fff !important; }

@media (max-width: 1060px) {
  .nav, .header-actions .hide-md { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .header-actions .btn-primary { display: none; }
}

/* ---------- Fundos escuros ---------- */
.on-dark { background: var(--navy-950); color: #fff; }
.on-dark .lead, .on-dark .muted { color: rgba(219, 228, 245, .72); }
.on-dark .eyebrow { color: var(--orange-2); }
.bg-surface { background: var(--surface); }
.bg-mesh {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.bg-mesh::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 40% at 78% 18%, rgba(53, 99, 179, .55), transparent 70%),
    radial-gradient(35% 35% at 12% 85%, rgba(239, 108, 31, .22), transparent 70%),
    radial-gradient(30% 30% at 55% 60%, rgba(26, 54, 104, .6), transparent 70%);
  filter: blur(20px);
  animation: meshDrift 22s ease-in-out infinite alternate;
}
.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.bg-grid.light {
  background-image:
    linear-gradient(rgba(11,26,53,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,26,53,.05) 1px, transparent 1px);
}
.noise::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes meshDrift { 0% { transform: translate3d(0,0,0) rotate(0); } 100% { transform: translate3d(-4%, 3%, 0) rotate(6deg); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 clamp(64px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy .lead { margin-top: 26px; }
.hero-copy .btn-row { margin-top: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line);
}
.pill svg { width: 15px; height: 15px; color: var(--orange); }
.on-dark .pill { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.86); backdrop-filter: blur(10px); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); } 50% { box-shadow: 0 0 0 7px rgba(34,197,94,.05); } }
.hero-center { text-align: center; max-width: 980px; margin: 0 auto; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .btn-row, .hero-center .hero-badges { justify-content: center; }

@media (max-width: 980px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Molduras de dispositivo ---------- */
.stage { position: relative; perspective: 2000px; }
.laptop { position: relative; width: 100%; filter: drop-shadow(0 40px 60px rgba(5,12,28,.5)); }
.laptop .lid {
  position: relative; border-radius: 18px 18px 6px 6px; padding: 2.4% 2.4% 3.2%;
  background: linear-gradient(180deg, #2b3346 0%, #161b27 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.18);
}
.laptop .lid::before { content: ""; position: absolute; top: 1.1%; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: #0b0f18; transform: translateX(-50%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.laptop .screen { position: relative; border-radius: 6px; overflow: hidden; background: #0b1328; aspect-ratio: 16 / 10; }
.laptop .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.laptop .base {
  position: relative; height: 16px; margin: 0 -6.5%; border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, #cfd6e3 0%, #9aa5b8 55%, #6f7a8e 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.laptop .base::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 7px; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #8792a6, #b5bfcf); }

.phone {
  position: relative; width: 100%; aspect-ratio: 9 / 19.2; border-radius: 15% / 7.2%; padding: 3.2%;
  background: linear-gradient(145deg, #3a4357, #12161f 60%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), inset 0 0 0 5px #05070b, 0 40px 70px -20px rgba(5,12,28,.65), 0 14px 26px -14px rgba(5,12,28,.5);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 12.5% / 6%; overflow: hidden; background: #fff; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone .island { position: absolute; top: 2.4%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 999px; background: #05070b; z-index: 3; }
.phone::before { content: ""; position: absolute; right: -1.4%; top: 22%; width: 1.4%; height: 12%; border-radius: 0 4px 4px 0; background: #2b3242; }

.browser {
  position: relative; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11,26,53,.08);
}
.browser .chrome { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; background: #f1f4f9; border-bottom: 1px solid var(--line); }
.browser .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #d7dde8; display: block; }
.browser .chrome i:nth-child(1) { background: #ff6159; } .browser .chrome i:nth-child(2) { background: #ffbd2e; } .browser .chrome i:nth-child(3) { background: #28c941; }
.browser .chrome .url { margin-left: 10px; flex: 1; max-width: 360px; height: 24px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; gap: 6px; overflow: hidden; white-space: nowrap; }
.browser .chrome .url svg { width: 11px; height: 11px; color: var(--ok); flex: none; }
.browser .view { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.browser .view img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* Composição do hero: notebook + celular + chips flutuantes */
.duo { position: relative; padding: 4% 9% 12% 0; }
.duo .laptop { transform: rotateY(-8deg) rotateX(3deg); transform-origin: left center; transition: transform 1.2s var(--ease); }
.duo .phone-wrap { position: absolute; right: 0; bottom: 0; width: 27%; z-index: 3; transform: rotate(4deg); animation: floatY 7s ease-in-out infinite; }
.stage:hover .duo .laptop { transform: rotateY(-4deg) rotateX(1deg); }
.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 16px; min-width: 200px;
  background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -20px rgba(5,12,28,.55), 0 0 0 1px rgba(255,255,255,.6);
  font-size: 13px; line-height: 1.3;
}
.chip b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.chip span { color: var(--muted); font-size: 12px; }
.chip .ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.chip .ic svg { width: 18px; height: 18px; }
.chip .ic.orange { background: var(--orange-soft); color: var(--orange); }
.chip .ic.navy { background: #e7eefb; color: var(--navy-700); }
.chip-a { left: -4%; top: 10%; animation: floatY 8s ease-in-out infinite; }
.chip-b { left: 6%; bottom: 3%; animation: floatY 9s ease-in-out -2s infinite; }
.chip-c { right: 22%; top: -2%; animation: floatY 7.5s ease-in-out -4s infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.duo .phone-wrap .phone { transform-origin: bottom right; }

@media (max-width: 980px) {
  .duo { padding: 6% 12% 16% 0; }
  .chip { min-width: 0; padding: 10px 12px 10px 10px; }
  .chip-c { display: none; }
}
@media (max-width: 560px) {
  .chip-a { top: -2%; left: 0; }
  .chip-b { bottom: -2%; left: 0; }
  .chip .ic { width: 30px; height: 30px; border-radius: 9px; }
  .chip span { display: none; }
}

/* ---------- Faixa de números ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.stat { padding: clamp(22px, 3vw, 34px); position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.stat .num em { font-style: normal; color: var(--orange); }
.stat p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.on-dark .stats { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.on-dark .stat + .stat { border-color: rgba(255,255,255,.08); }
.on-dark .stat .num { color: #fff; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .on-dark .stat:nth-child(n+3) { border-top-color: rgba(255,255,255,.08); }
}

/* ---------- Faixa rolante (NRs) ---------- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .tag { flex: none; font-family: var(--font-mono); font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.on-dark .marquee .tag { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cartões ---------- */
.card {
  position: relative; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  padding: clamp(24px, 2.6vw, 34px); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3dceb; }
.card .num-tag { font-family: var(--font-mono); font-size: 12px; color: var(--orange); letter-spacing: .1em; }
.card h3 { margin-top: 14px; }
.card p { margin-top: 10px; color: var(--muted); }
.on-dark .card { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); }
.on-dark .card:hover { border-color: rgba(255,255,255,.18); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.on-dark .card p { color: rgba(219,228,245,.68); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.icon-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.icon-box svg { width: 22px; height: 22px; }
.icon-box.navy { background: #e8eefa; color: var(--navy-700); }
.on-dark .icon-box { background: rgba(239,108,31,.12); color: var(--orange-2); }

/* ---------- Duas frentes ---------- */
.fronts { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.front { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(28px, 4vw, 48px); min-height: 520px; display: flex; flex-direction: column; isolation: isolate; }
.front .tagline { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.front h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; margin-top: 18px; }
.front p { margin-top: 14px; max-width: 48ch; }
.front .front-cta { margin-top: auto; padding-top: 28px; }
.front-connect { background: var(--navy-950); color: #fff; }
.front-connect .tagline { color: var(--orange-2); }
.front-connect p { color: rgba(219,228,245,.72); }
.front-connect .shot { position: relative; margin: 28px -8% -2% 18%; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); transform: rotate(-2deg); transition: transform .8s var(--ease); }
.front-connect:hover .shot { transform: rotate(0) translateY(-6px); }
.front-eng { background: linear-gradient(160deg, #fff 0%, #f3f6fb 100%); border: 1px solid var(--line); }
.front-eng .tagline { color: var(--navy-700); }
.front-eng p { color: var(--muted); }
.front-eng ol { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 2px; }
.front-eng li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.front-eng li span { font-family: var(--font-mono); font-size: 12px; color: var(--orange); }
@media (max-width: 900px) { .fronts { grid-template-columns: 1fr; } .front { min-height: 0; } }

/* ---------- Bento de módulos ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.tile {
  position: relative; grid-column: span 3; border-radius: var(--r-lg); padding: 24px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3dceb; }
.tile .icon-box { margin-bottom: 6px; }
.tile h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.25; }
.tile p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.tile .new { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--orange); color: #fff; }
.tile.span-6 { grid-column: span 6; }
.tile.span-4 { grid-column: span 4; }
.tile.span-8 { grid-column: span 8; }
.tile.row-2 { grid-row: span 2; }
.tile.dark { background: var(--navy-950); color: #fff; border-color: transparent; }
.tile.dark p { color: rgba(219,228,245,.7); }
.tile.dark .icon-box { background: rgba(239,108,31,.14); color: var(--orange-2); }
.tile .tile-shot { margin: 18px -24px -24px; border-top: 1px solid var(--line); flex: 1; min-height: 200px; overflow: hidden; background: var(--surface); }
.tile.dark .tile-shot { border-color: rgba(255,255,255,.08); }
.tile .tile-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.tile:hover .tile-shot img { transform: scale(1.03); }
.tile a.stretched::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 1060px) { .tile, .tile.span-4 { grid-column: span 6; } .tile.span-8, .tile.span-6 { grid-column: span 12; } }
@media (max-width: 640px) { .tile, .tile.span-4, .tile.span-6, .tile.span-8 { grid-column: span 12; } .tile.row-2 { grid-row: auto; } }

/* ---------- Mostruário com abas (tour de módulos) ---------- */
.tour { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 100px; }
.tour-tab {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid transparent;
  background: transparent; cursor: pointer; color: var(--ink-2); font-weight: 700; font-size: 15.5px; transition: background .25s, border-color .25s, color .25s;
}
.tour-tab .icon-box { width: 40px; height: 40px; border-radius: 12px; background: var(--line-2); color: var(--muted); transition: background .25s, color .25s; }
.tour-tab .icon-box svg { width: 19px; height: 19px; }
.tour-tab small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }
.tour-tab:hover { background: var(--line-2); }
.tour-tab[aria-selected="true"] { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.tour-tab[aria-selected="true"] .icon-box { background: var(--orange); color: #fff; }
.tour-panel { display: none; }
.tour-panel.active { display: block; animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tour-panel .panel-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.tour-panel .panel-head h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.035em; max-width: 22ch; }
.tour-panel .panel-head p { color: var(--muted); max-width: 46ch; }
.tour-panel ul.checks { margin-top: 26px; }
.tour-media { position: relative; }
.tour-media .phone-mini { position: absolute; right: -2%; bottom: -8%; width: 22%; z-index: 2; }
@media (max-width: 980px) {
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { position: relative; top: 0; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tab { flex: none; scroll-snap-align: start; padding: 10px 14px; border-color: var(--line); background: #fff; }
  .tour-tab small { display: none; }
  .tour-tab .icon-box { width: 32px; height: 32px; border-radius: 10px; }
}

ul.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 24px; }
ul.checks li { position: relative; padding-left: 30px; font-weight: 600; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
ul.checks.one { grid-template-columns: 1fr; }
.on-dark ul.checks li { color: rgba(255,255,255,.86); }
.on-dark ul.checks li::before { background-color: rgba(34,197,94,.15); }
@media (max-width: 640px) { ul.checks { grid-template-columns: 1fr; } }

/* ---------- Seção "navegador e celular" ---------- */
.anywhere { position: relative; overflow: hidden; }
.anywhere-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.anywhere-devices { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4%; align-items: end; }
.anywhere-devices .phone:nth-child(2) { transform: translateY(-8%); }
.anywhere-devices .phone:nth-child(1) { transform: translateY(4%) rotate(-3deg); }
.anywhere-devices .phone:nth-child(3) { transform: translateY(6%) rotate(3deg); }
.feature-list { display: grid; gap: 14px; margin-top: 34px; }
.feature { display: flex; gap: 16px; padding: 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); transition: background .3s, border-color .3s; }
.feature:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.feature .icon-box { flex: none; width: 44px; height: 44px; }
.feature h3 { font-size: 17px; letter-spacing: -.015em; line-height: 1.3; }
.feature p { margin-top: 4px; font-size: 14.5px; color: rgba(219,228,245,.68); line-height: 1.5; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
@media (max-width: 980px) { .anywhere-grid { grid-template-columns: 1fr; } .anywhere-devices { max-width: 560px; margin: 0 auto; } }

/* ---------- Passos / fluxo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; position: relative; counter-reset: s; }
.steps.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.step { position: relative; padding: 26px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--orange); letter-spacing: .12em; }
.step h3 { font-size: 19px; margin-top: 12px; letter-spacing: -.02em; line-height: 1.25; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 38px; right: -12px; width: 8px; height: 8px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg); z-index: 2;
}
.on-dark .step { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); }
.on-dark .step p { color: rgba(219,228,245,.68); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } .steps .step::after { display: none; } }
@media (max-width: 640px) { .steps, .steps.three { grid-template-columns: 1fr; } }

/* ---------- Destaque escuro (NR-01 psicossocial) ---------- */
.spotlight { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(32px, 5vw, 72px); isolation: isolate; }
.spotlight-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; position: relative; z-index: 2; }
.ring-chart { position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto; }
.dims { display: grid; gap: 10px; margin-top: 30px; }
.dim { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 14px; font-size: 14px; }
.dim .bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.dim .bar i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1.6s var(--ease); }
.dim .lvl { font-family: var(--font-mono); font-size: 12px; text-align: right; }
.in .dim .bar i { width: var(--w); }
@media (max-width: 900px) { .spotlight-grid { grid-template-columns: 1fr; } .dim { grid-template-columns: 120px 1fr 44px; } }

/* ---------- Documento assinado (ilustração) ---------- */
.doc-card { position: relative; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); padding: 28px; color: var(--ink); max-width: 460px; margin-left: auto; }
.doc-card .doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.doc-card .badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; padding: 6px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.doc-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 22px 0 0; }
.doc-card dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; }
.doc-card dd { margin: 4px 0 0; font-weight: 700; font-size: 14.5px; }
.doc-card table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 13.5px; }
.doc-card th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted-2); font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--line); }
.doc-card td { padding: 9px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.doc-card td:not(:first-child), .doc-card th:not(:first-child) { text-align: right; }
.doc-card .auth { margin-top: 22px; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--surface); }
.doc-card .qr { width: 64px; height: 64px; flex: none; border-radius: 8px; background: #fff; padding: 6px; box-shadow: 0 0 0 1px var(--line); }
.doc-card .auth code { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--navy-700); }
.doc-card .auth small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.doc-card .sig { margin-top: 18px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.doc-card .sig .av { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.doc-card .seal { position: absolute; right: -22px; bottom: 90px; width: 96px; height: 96px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; line-height: 1.3; box-shadow: 0 20px 40px -14px rgba(239,108,31,.7); transform: rotate(-12deg); }
@media (max-width: 560px) { .doc-card .seal { right: -6px; width: 80px; height: 80px; } }

/* ---------- Comparativo ---------- */
.compare { border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden; background: #fff; }
.compare-score { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.compare-score > div { padding: 26px 28px; }
.compare-score > div + div { border-left: 1px solid var(--line); }
.compare-score .who { font-weight: 700; font-size: 14px; color: var(--muted); }
.compare-score .val { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.04em; margin-top: 6px; line-height: 1; }
.compare-score .val small { font-size: .45em; color: var(--muted-2); letter-spacing: 0; font-weight: 600; }
.compare-score .us { background: var(--navy-950); color: #fff; }
.compare-score .us .who { color: var(--orange-2); }
.compare-score .us .val small { color: rgba(255,255,255,.55); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table thead th { position: sticky; top: 76px; background: #fff; z-index: 1; }
.compare-table th, .compare-table td { padding: 16px 22px; border-bottom: 1px solid var(--line-2); text-align: center; font-size: 14.5px; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.compare-table thead th.us { color: var(--orange); }
.compare-table td:first-child b { display: block; font-weight: 700; color: var(--ink); }
.compare-table td:first-child span { font-size: 13px; color: var(--muted); }
.compare-table td.us { background: rgba(239,108,31,.04); }
.compare-table .grp td { background: var(--surface); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700); font-weight: 600; padding: 12px 22px; }
.mk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: 13px; }
.mk.y { background: var(--ok-soft); color: var(--ok); }
.mk.p { background: var(--warn-soft); color: var(--warn); }
.mk.n { color: #b8c3d6; }
.compare-legend { display: flex; flex-wrap: wrap; gap: 18px; padding: 18px 22px; font-size: 13px; color: var(--muted); }
.compare-legend span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  .compare-score { grid-template-columns: 1fr; }
  .compare-score > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .compare-table th, .compare-table td { padding: 12px 10px; font-size: 13px; }
  .compare-table td:first-child span { display: none; }
  .compare-table .col-long { display: none; }
  .compare-table thead th { top: 64px; font-size: 9.5px; letter-spacing: .04em; }
}

/* ---------- Ferramentas substituídas ---------- */
.replace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.replace-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.replace-list div { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--muted); }
.replace-list div b { display: block; color: var(--ink); text-decoration: line-through; text-decoration-color: rgba(220,38,38,.55); text-decoration-thickness: 2px; font-size: 14.5px; }
.replace-list div i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fdecec; color: var(--bad); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; margin-top: 1px; }
.big-one { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 30px; }
.big-one div { border-radius: 18px; padding: 20px; background: var(--navy-950); color: #fff; }
.big-one b { font-family: var(--font-display); font-size: 40px; letter-spacing: -.04em; line-height: 1; display: block; color: var(--orange-2); }
.big-one span { font-size: 13.5px; color: rgba(219,228,245,.72); display: block; margin-top: 8px; line-height: 1.4; }
@media (max-width: 900px) { .replace { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .replace-list { grid-template-columns: 1fr; } .big-one b { font-size: 32px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; margin: 0 auto; }
.faq details { border-radius: 18px; border: 1px solid var(--line); background: #fff; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: #cfd8e8; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 24px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .35s var(--ease), background .3s, border-color .3s; }
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: #fff; }
.faq .answer { padding: 0 24px 22px; color: var(--muted); max-width: 72ch; }

/* ---------- CTA final ---------- */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(40px, 6vw, 88px); background: var(--navy-950); color: #fff; isolation: isolate; text-align: center; }
.cta-band h2 { max-width: 18ch; margin: 18px auto 0; }
.cta-band .lead { margin: 20px auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: 34px; }
.cta-band .bg-mesh::before { animation-duration: 16s; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-950); color: rgba(219,228,245,.72); padding: clamp(64px, 8vw, 96px) 0 32px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; position: relative; z-index: 1; }
.site-footer h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 500; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer .f-logo img { height: 28px; width: auto; }
.site-footer .f-about { margin-top: 18px; font-size: 14.5px; max-width: 34ch; }
.site-footer .social { display: flex; gap: 10px; margin-top: 22px; }
.site-footer .social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); transition: background .25s, border-color .25s; }
.site-footer .social a:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }
.site-footer .social svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; position: relative; z-index: 1; }
.footer-word { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); font-family: var(--font-display); font-weight: 700; font-size: clamp(90px, 19vw, 280px); letter-spacing: -.06em; line-height: 1; color: rgba(255,255,255,.025); white-space: nowrap; pointer-events: none; user-select: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } .site-footer .f-about { margin-left: auto; margin-right: auto; } .site-footer .social { justify-content: center; } .site-footer .f-logo img { margin: 0 auto; } .footer-bottom { justify-content: center; text-align: center; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 16px 34px -12px rgba(37,211,102,.75); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: waPing 2.8s ease-out infinite; }
@keyframes waPing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Formulários ---------- */
.form-card { border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 44px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s, box-shadow .2s, background .2s; font-size: 15.5px;
}
.field textarea { height: auto; min-height: 132px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-500); background: #fff; box-shadow: 0 0 0 4px rgba(53,99,179,.14); }
.field .req { color: var(--orange); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-weight: 600; font-size: 14.5px; display: none; }
.form-status.ok { display: block; background: var(--ok-soft); color: #166534; }
.form-status.err { display: block; background: #fdecec; color: #991b1b; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; transition: border-color .25s, transform .25s var(--ease); }
.contact-item:hover { border-color: #cfd8e8; transform: translateY(-2px); }
.contact-item small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; }
.contact-item b { font-size: 17px; }
.contact-item span { display: block; font-size: 13.5px; color: var(--muted); }

/* ---------- Páginas de texto (privacidade) ---------- */
.prose { max-width: 780px; margin: 0 auto; color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.prose h2 { font-size: 24px; margin: 48px 0 14px; display: flex; gap: 14px; align-items: baseline; }
.prose h2 span { font-family: var(--font-mono); font-size: 13px; color: var(--orange); letter-spacing: .1em; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0; padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--orange); }
.prose strong { color: var(--ink); }

/* ---------- Banner de cookies ---------- */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: 420px; padding: 20px; border-radius: 20px; background: rgba(10,23,48,.96); color: rgba(219,228,245,.85); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); font-size: 14px; display: none; }
.cookie.show { display: block; animation: panelIn .5s var(--ease); }
.cookie p a { color: #fff; text-decoration: underline; }
.cookie .btn-row { margin-top: 14px; }
@media (max-width: 560px) { .cookie { left: 12px; right: 12px; bottom: 88px; max-width: none; } }

/* ---------- Revelação ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.96) translateY(20px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .reveal-scale { opacity: 1; transform: none; }

/* ---------- Diversos ---------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.kicker-list { display: grid; gap: 16px; margin-top: 30px; }
.kicker-list > div { display: flex; gap: 16px; }
.kicker-list h3 { font-size: 17px; letter-spacing: -.015em; }
.kicker-list p { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.on-dark .kicker-list p { color: rgba(219,228,245,.68); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag-row span { font-family: var(--font-mono); font-size: 12px; padding: 7px 12px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); }
.on-dark .tag-row span { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.photo { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.quote { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.025em; line-height: 1.3; font-weight: 600; }
.page-hero { padding: 160px 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; isolation: isolate; }
@media (max-width: 760px) { .page-hero { padding-top: 124px; } }

/* Movimento reduzido: tudo parado e visível */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .dim .bar i { width: var(--w); }
}

/* Fundos decorativos sempre atrás do conteúdo (blocos com isolation). */
.bg-mesh, .bg-grid { z-index: -1; }
.anywhere, .section.on-dark { isolation: isolate; }
.front-connect .tag-row span { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
:not(.section-head) > .eyebrow + .h1, :not(.section-head) > .eyebrow + .h2 { margin-top: 18px; }
:not(.section-head) > .h1 + .lead, :not(.section-head) > .h2 + .lead { margin-top: 20px; }
.tile.span-4 .tile-shot img { width: 190%; max-width: none; height: auto; transform-origin: 0 0; margin-left: -14%; }
.tile.span-4 .tile-shot { min-height: 0; height: 170px; flex: 1 1 170px; }
.tile.row-2 .tile-shot img { height: auto; object-fit: initial; }
.kicker-list .icon-box, .contact-item .icon-box { flex: none; }

/* ---------- Rodapé: mapa com o Brasil ---------- */
.site-footer .f-mapa { margin-top: 24px; max-width: 280px; }
.site-footer .f-mapa img { width: 100%; height: auto; }
.site-footer .f-mapa span { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8fa2c2; }
@media (max-width: 560px) { .site-footer .f-mapa { margin-left: auto; margin-right: auto; } }

/* ---------- Subnavegação do Ragnan Connect ---------- */
.subnav { position: sticky; top: 76px; z-index: 60; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.subnav-track { display: flex; align-items: center; gap: 4px; height: 56px; overflow-x: auto; scrollbar-width: none; }
.subnav-track::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.subnav a:hover { color: var(--ink); background: var(--line-2); }
.subnav a[aria-current="page"] { color: var(--ink); background: var(--line-2); }
.subnav a.subnav-cta { margin-left: auto; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; }
.subnav a.subnav-cta svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .subnav a.subnav-cta { display: none; } }

/* ---------- Linha do tempo: um dia com o Connect ---------- */
.dia { position: relative; display: grid; }
.dia::before { content: ""; position: absolute; left: 103px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--orange), rgba(239,108,31,.08)); }
.dia-item { display: grid; grid-template-columns: 72px 40px 1fr; gap: 0 12px; align-items: start; padding: 14px 0; }
.dia-item time { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--orange-2); padding-top: 9px; text-align: right; }
.dia-item .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-800); border: 1px solid rgba(255,255,255,.12); color: #fff; position: relative; z-index: 1; }
.dia-item .dot svg { width: 18px; height: 18px; }
.dia-item h3 { font-size: 17px; letter-spacing: -.015em; line-height: 1.3; padding-top: 2px; }
.dia-item p { margin-top: 4px; font-size: 14.5px; color: rgba(219,228,245,.68); }
.dia-item .quem { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(219,228,245,.5); }
@media (max-width: 560px) { .dia::before { left: 87px; } .dia-item { grid-template-columns: 56px 40px 1fr; } }

/* ---------- Galeria de documentos ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.doc-cover { position: relative; aspect-ratio: 210/297; border-radius: 12px; overflow: hidden; background: linear-gradient(155deg, var(--navy-700), var(--navy-950)); color: #fff; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-md); transition: transform .4s var(--ease), box-shadow .4s var(--ease); isolation: isolate; }
.doc-cover:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.doc-cover::before { content: ""; position: absolute; right: -30%; top: -10%; width: 90%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); z-index: -1; }
.doc-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--c, var(--orange)); }
.doc-cover b { font-family: var(--font-display); font-size: 26px; letter-spacing: -.03em; line-height: 1.05; }
.doc-cover span { margin-top: 6px; font-size: 12.5px; color: rgba(219,228,245,.75); line-height: 1.35; }
.doc-cover small { position: absolute; top: 16px; left: 18px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: rgba(219,228,245,.6); }

/* ---------- Passo a passo de instalação ---------- */
.install { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.install .step .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); margin-bottom: 14px; }
.install .step .ico svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; } }

/* ---------- Celulares em leque ---------- */
.fan { position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 20px 0 10px; }
.fan .phone { width: min(34%, 250px); flex: none; }
.fan .phone:only-child { width: min(62%, 300px); }
.fan .phone:nth-child(1):not(:only-child) { transform: rotate(-8deg) translate(22%, 6%); }
.fan .phone:nth-child(2) { z-index: 2; transform: translateY(-4%); }
.fan .phone:nth-child(3) { transform: rotate(8deg) translate(-22%, 6%); }
@media (max-width: 560px) { .docs-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; } .doc-cover b { font-size: 21px; } }

/* Submenu do Connect mais evidente (faixa navy) */
.subnav { background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 30px -18px rgba(5,12,28,.6); backdrop-filter: none; -webkit-backdrop-filter: none; }
.subnav-track { height: 60px; gap: 6px; }
.subnav-track::before { content: "Ragnan Connect"; flex: none; margin-right: 10px; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.14); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); }
.subnav a { color: rgba(255,255,255,.78); font-size: 14.5px; }
.subnav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.subnav a[aria-current="page"] { color: #fff; background: var(--orange); box-shadow: 0 8px 20px -10px rgba(239,108,31,.8); }
.subnav a.subnav-cta { color: var(--orange-2); }
.subnav a.subnav-cta:hover { color: #fff; }
@media (max-width: 760px) { .subnav-track::before { display: none; } }

/* Capas de documentos: nome inteiro, sem cortar */
.doc-cover { justify-content: flex-end; }
.doc-cover b { font-size: clamp(18px, 1.7vw, 24px); overflow-wrap: anywhere; hyphens: auto; }
.doc-cover span { display: block; }
.doc-cover b { hyphens: manual; overflow-wrap: normal; font-size: clamp(17px, 1.55vw, 23px); }
.doc-cover b { font-size: clamp(16px, 1.4vw, 21px); letter-spacing: -.035em; }

/* ---------- Submenu: CTA some quando falta espaço ---------- */
@media (max-width: 1280px) { .subnav a.subnav-cta { display: none; } }
.subnav a { padding: 8px 12px; font-size: 14px; }

/* ---------- Tela simulada dentro do celular ---------- */
.mock { height: 100%; display: flex; flex-direction: column; background: #f5f7fb; font-family: var(--font-body); color: var(--ink); font-size: 11px; line-height: 1.35; }
.mock-top { padding: 34px 12px 12px; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; }
.mock-top small { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.mock-top b { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 14px; letter-spacing: -.02em; }
.mock-top .prog { margin-top: 9px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.15); overflow: hidden; }
.mock-top .prog i { display: block; height: 100%; width: var(--p, 60%); background: var(--orange); border-radius: 9px; }
.mock-body { flex: 1; padding: 10px; display: grid; gap: 7px; align-content: start; overflow: hidden; }
.mock-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; }
.mock-item p { font-weight: 600; font-size: 10.5px; }
.mock-opts { display: flex; gap: 5px; margin-top: 6px; }
.mock-opts span { flex: 1; text-align: center; padding: 5px 0; border-radius: 7px; border: 1px solid var(--line); font-weight: 700; font-size: 9.5px; color: var(--muted); }
.mock-opts .ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.mock-opts .nok { background: var(--bad); border-color: var(--bad); color: #fff; }
.mock-alert { display: flex; gap: 7px; align-items: flex-start; padding: 8px 9px; border-radius: 10px; background: #fdecec; color: #991b1b; font-weight: 600; font-size: 10px; }
.mock-alert svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }
.mock-photo { height: 58px; border-radius: 8px; margin-top: 6px; background: linear-gradient(135deg, #c9a27a, #8a6a4a 60%, #5d4632); position: relative; overflow: hidden; }
.mock-photo::after { content: ""; position: absolute; left: 38%; top: 22%; width: 34%; height: 52%; border: 2px solid #ef4444; border-radius: 50%; }
.mock-btn { margin: 0 10px 12px; padding: 9px; border-radius: 9px; background: var(--navy-700); color: #fff; text-align: center; font-weight: 700; font-size: 10.5px; }
.mock-sig { margin-top: 6px; height: 44px; border-radius: 8px; border: 1px dashed var(--line); background: #fff; display: grid; place-items: center; }
.mock-sig svg { width: 70%; height: 30px; color: var(--navy-700); }
.mock-selfie { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.mock-selfie i { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #e9c6a6 0 30%, #2a3550 31%); flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ok); }

/* ---------- Ficha de evidências da assinatura ---------- */
.evid dl { grid-template-columns: 1fr; gap: 0; }
.evid dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.evid dt { padding-top: 2px; }
.evid dd { margin: 0; text-align: right; font-size: 13.5px; }
.evid code { font-family: var(--font-mono); font-size: 11.5px; color: var(--navy-700); word-break: break-all; }

/* ---------- Leis ---------- */
.laws { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.law { border-radius: var(--r-lg); padding: 26px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.law .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--orange-2); }
.law h3 { margin-top: 10px; font-size: 20px; letter-spacing: -.02em; }
.law p { margin-top: 10px; font-size: 14.5px; color: rgba(219,228,245,.72); }
@media (max-width: 900px) { .laws { grid-template-columns: 1fr; } }

/* ---------- Fluxo horizontal (eSocial) ---------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.flow > div { position: relative; padding: 20px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.flow > div:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 6px; height: 6px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: translateY(-50%) rotate(45deg); z-index: 2; }
.flow b { display: block; font-family: var(--font-display); font-size: 15.5px; letter-spacing: -.015em; }
.flow span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.flow .icon-box { width: 40px; height: 40px; margin-bottom: 12px; }
@media (max-width: 980px) { .flow { grid-template-columns: 1fr 1fr; } .flow > div::after { display: none; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.evt { border-radius: var(--r-lg); padding: 26px; background: #fff; border: 1px solid var(--line); }
.evt .code { display: inline-block; font-family: var(--font-mono); font-weight: 600; font-size: 13px; padding: 6px 11px; border-radius: 999px; background: var(--orange-soft); color: var(--orange); }
.evt h3 { margin-top: 14px; font-size: 20px; letter-spacing: -.02em; }
.evt p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.evt ul { margin-top: 14px; }
.subnav a { padding: 7px 10px; font-size: 13.5px; } .subnav-track { gap: 2px; }
@media (max-width: 1500px) { .subnav a.subnav-cta { display: none; } }
@media (max-width: 1700px) { .subnav a.subnav-cta { display: none; } }

/* ---------- Menu suspenso do Ragnan Connect ---------- */
.nav-item { position: relative; }
.nav .caret { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-left: 2px; transition: transform .25s var(--ease); }
.has-mega:hover .caret, .has-mega:focus-within .caret { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; width: min(720px, 92vw); transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(5,12,28,.45), 0 10px 30px -14px rgba(5,12,28,.25); padding: 14px; z-index: 120; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4px; }
.mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; color: var(--ink); transition: background .2s; }
.mega-item:hover { background: var(--line-2); }
.mega-item .icon-box { width: 38px; height: 38px; border-radius: 11px; flex: none; }
.mega-item .icon-box svg { width: 18px; height: 18px; }
.mega-item b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.mega-item small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 12px 12px 4px; border-top: 1px solid var(--line-2); }
.mega-foot > a:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--navy-700); }
.mega-foot > a:first-child svg { width: 15px; height: 15px; }
.header-dark .site-header:not(.scrolled) .nav .has-mega .mega-item, .header-dark .site-header:not(.scrolled) .mega { color: var(--ink); }

/* ---------- Menu do celular compacto ---------- */
.mobile-menu { inset: 76px 12px auto 12px; max-height: calc(100vh - 92px); padding: 10px; gap: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px -20px rgba(5,12,28,.55); transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
body.menu-open .mobile-menu { transform: none; }
.mobile-menu .m-nav { display: grid; }
.mobile-menu a.m-link { font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: -.01em; padding: 12px 12px; border-bottom: 0; border-radius: 12px; opacity: 1; transform: none; }
.mobile-menu a.m-link[aria-current="page"], .mobile-menu a.m-link:hover { background: var(--line-2); color: var(--ink); }
.mobile-menu .m-title { margin: 8px 12px 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.mobile-menu .m-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mobile-menu .m-mods a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.mobile-menu .m-mods svg { width: 15px; height: 15px; color: var(--orange); flex: none; }
.mobile-menu .m-actions { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-menu .m-actions .btn-ghost { --fg: var(--ink); border-color: var(--line); background: #fff; }
body.menu-open .site-header { background: rgba(255,255,255,.95) !important; }
body.menu-open .site-header .logo .logo-dark { display: block !important; }
body.menu-open .site-header .logo .logo-light { display: none !important; }
body.menu-open .menu-toggle { background: #fff !important; border-color: var(--line) !important; }
body.menu-open .menu-toggle span::before, body.menu-open .menu-toggle span::after { background: var(--ink) !important; }
body.menu-open { overflow: auto; }

/* ---------- Comparativo compacto ---------- */
.compare-table thead th { top: 76px; }
.compare { overflow: clip; }
.compare-table th, .compare-table td { padding: 13px 22px; }
.compare-table thead th { position: sticky; top: 76px; z-index: 2; background: #fff; box-shadow: 0 1px 0 var(--line); }
@media (max-width: 1060px) { .compare-table thead th { top: 64px; } }
.tile .tile-shot.clean { flex: none; min-height: 0; margin: 22px 0 0; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #f5f7fb; }
.tile .tile-shot.clean img { height: auto; object-fit: contain; }
.tile.row-2 { justify-content: flex-start; }
.mega { top: calc(100% + 22px); } .mega::before { top: -24px; height: 24px; }
.mobile-menu .m-actions { grid-template-columns: 1.5fr 1fr; } .mobile-menu .m-actions .btn { font-size: 13.5px; padding: 0 12px; } body.menu-open .wa-float { display: none; }

/* ---------- Topo no celular: Demonstração + Entrar sempre visíveis ---------- */
.t-short, .m-entrar { display: none; }
@media (max-width: 1060px) {
  .m-entrar { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); }
  .m-entrar svg { width: 17px; height: 17px; }
  .header-dark .site-header:not(.scrolled) .m-entrar { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
}
@media (max-width: 560px) {
  .header-actions { gap: 8px; }
  .header-actions .btn-primary { display: inline-flex; height: 40px; padding: 0 14px; font-size: 13.5px; }
  .t-long { display: none; } .t-short { display: inline; }
  .site-header .logo img { height: 22px; }
  .menu-toggle { width: 42px; height: 42px; }
}
.mobile-menu .m-actions { grid-template-columns: 1fr; }
.mobile-menu .m-actions .btn { width: 100%; height: 46px; font-size: 15px; }
body.menu-open .m-entrar { background: #fff !important; border-color: var(--line) !important; color: var(--ink) !important; }
.stage > .fan .phone:only-child { width: min(52%, 260px); } .stage > .chip-a { left: 0; top: 14%; } .stage > .chip-b { left: 4%; bottom: 12%; }
/* Dispositivos do hero maiores: o print fica legível */
@media (min-width: 981px) { .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } .hero .duo { margin-right: -4%; } }
.laptop .screen img { object-position: top left; }
/* Legenda do comparativo: símbolo centralizado no círculo */
.compare-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.compare-legend .mk, .compare-table .mk { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; padding: 0; line-height: 1; text-align: center; }
.mk.n { background: var(--line-2); color: var(--muted-2); }
/* Itens de grade não estouram a largura no celular (prints e endereços longos) */
.grid > *, .split > *, .anywhere-grid > *, .hero-grid > *, .replace > * { min-width: 0; }
.browser .chrome .url { min-width: 0; text-overflow: ellipsis; }
@media (max-width: 980px) { #modulos { overflow-x: clip; } }
