/* ==========================================================================
   iotnest.ai — design tokens, base, components, sections
   Spacing scale (4-based):  4 · 8 · 12 · 16 · 24 · 32 · 40 · 48 · 64 · 96
   ========================================================================== */

:root {
  /* Color */
  --brand: #02afef;
  --green: #06a26c;
  --ink: #151e26;
  --ink-60: rgb(21 30 38 / 0.62);
  --ink-75: rgb(21 30 38 / 0.78);
  --line: rgb(21 30 38 / 0.08);
  --surface: #fff;
  --surface-soft: #f6f6f6;
  --surface-gray: #f2f2f2;
  --slate: #606062;
  --danger: #ef4444;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 96px;

  --header-h: 73px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(var(--space-9), 8vw, var(--space-10));
  --stack-gap: var(--space-4);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-media: 0 4px 44px rgb(0 0 0 / 0.05);

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --h2: clamp(1.75rem, 1.35rem + 1.3vw, 2.125rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: 88px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
@supports not (scroll-behavior: auto) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--space-4); top: -48px; z-index: 100;
  padding: var(--space-2) var(--space-4); background: var(--ink); color: #fff; border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-2); }

/* ---------- Layout primitives ---------- */

.container { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), 1440px); }
.container--narrow { width: min(100% - 2 * var(--gutter), 1100px); }

.section { padding-block: var(--section-y); }
.section--tight-top { padding-top: 0; }
.section--gray { background: var(--surface-gray); }

.stack { display: flex; flex-direction: column; align-items: flex-start; gap: var(--stack-gap); }
.stack--lg { gap: var(--space-6); }

.split { display: grid; gap: var(--space-9); align-items: center; grid-template-columns: 1fr 1fr; }
.split--media-first { grid-template-columns: 1.15fr 1fr; gap: clamp(var(--space-6), 5vw, var(--space-9)); }
.split--telemetry { grid-template-columns: 0.92fr 1fr; gap: clamp(var(--space-6), 6vw, 86px); margin-top: var(--space-9); }
.split--energy { grid-template-columns: 0.75fr 1fr; gap: clamp(var(--space-6), 4vw, 52px); }
.split--about { grid-template-columns: 1fr 1fr; gap: clamp(var(--space-6), 5vw, var(--space-9)); }

.section-head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); max-width: 768px; }
.section-head--center { align-items: center; text-align: center; margin-inline: auto; }
.section-head .lead { margin-top: var(--space-1); }

/* ---------- Type ---------- */

h2 { font-size: var(--h2); font-weight: 800; line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-weight: 700; }
h3, h4, figcaption, .lead { text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
tbody th { text-wrap: balance; }

.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow--light { color: #fff; }
.eyebrow--lines { display: inline-flex; align-items: center; gap: var(--space-2); }
.eyebrow--lines::before, .eyebrow--lines::after { content: ""; width: 32px; height: 1px; background: currentColor; }

.lead { max-width: 56ch; color: var(--ink-60); line-height: 26px; }
.body { color: var(--ink-60); line-height: 26px; max-width: 56ch; }
.accent { color: var(--brand); }

/* ---------- Buttons / badges ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 14px 28px; border: 0; border-radius: var(--radius-md);
  background: var(--brand); color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 600; line-height: 24px;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, background-color 160ms ease-out;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 15px rgb(2 175 239 / 0.3); }
.btn:active { transform: translateY(0); }
.btn img { width: 18px; height: 18px; }
.btn--sm { padding: 8px 20px; font-size: 14px; line-height: 20px; border-radius: var(--radius-sm); }
.btn--outline { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); padding: 12px 26px; font-size: 14px; line-height: 20px; }
.btn--outline img { width: 16px; height: 16px; }
.btn--outline:hover { background: rgb(2 175 239 / 0.06); box-shadow: inset 0 0 0 2px var(--brand); }
.btn--dark { background: rgb(0 0 0 / 0.14); }
.btn--dark:hover { background: rgb(0 0 0 / 0.22); box-shadow: none; }
.btn--block { width: 100%; height: 52px; }
.btn--whatsapp { background: #25d366; padding: 10px 20px; font-size: 14px; line-height: 20px; }
.btn--whatsapp img { width: 16px; height: 16px; }

.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 7px 13px; background: var(--brand); border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0.6; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgb(21 30 38 / 0.15); border-radius: 50%; background: transparent;
  transition: background-color 160ms ease-out, opacity 160ms ease-out;
}
.icon-btn:hover:not(:disabled) { background: rgb(21 30 38 / 0.05); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
.icon-btn--light { border-color: rgb(255 255 255 / 0.4); }
.icon-btn--light:hover:not(:disabled) { background: rgb(255 255 255 / 0.12); }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.98); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 72px; }
.site-header__menu { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex: 1; }

.logo { position: relative; display: block; flex: none; width: 188px; aspect-ratio: 188 / 47; }
.logo img { position: absolute; width: auto; height: auto; max-width: none; }

.nav { display: flex; align-items: center; gap: var(--space-5); margin-left: var(--space-8); }
.nav__link {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-2) 0; border: 0; background: none;
  font-size: 14px; font-weight: 500; line-height: 20px; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: color 160ms ease-out;
}
.nav__link:hover { color: var(--brand); }
.nav__dropdown { position: relative; }
.nav__dropdown-btn svg { transition: transform 160ms ease-out; }
.nav__dropdown-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + var(--space-2)); left: calc(-1 * var(--space-3)); min-width: 200px;
  padding: var(--space-2); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgb(21 30 38 / 0.1);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 160ms;
}
.nav__dropdown:hover .nav__panel,
.nav__dropdown:focus-within .nav__panel,
.nav__dropdown-btn[aria-expanded="true"] + .nav__panel { opacity: 1; visibility: visible; transform: none; }
.nav__panel a { display: block; padding: var(--space-2) var(--space-3); border-radius: 6px; font-size: 13px; font-weight: 500; line-height: 20px; color: var(--slate); text-decoration: none; }
.nav__panel a:hover { background: var(--surface-soft); color: var(--ink); }

.site-header__actions { display: flex; align-items: center; gap: var(--space-5); }
.link-login { font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; }
.link-login:hover { text-decoration: underline; }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 200ms ease-out, opacity 200ms; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  /* ocupa a janela abaixo do header sticky, deixando o canto inferior arredondado sempre visível */
  min-height: clamp(520px, calc(100svh - var(--header-h) - var(--space-3) - var(--space-5)), 758px);
  margin: var(--space-3) clamp(var(--space-4), 2.1vw, 30px) 0;
  padding: var(--space-9) clamp(var(--space-5), 6vw, 84px);
  border-radius: var(--radius-xl);
  background: #cecece; color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); transform-origin: center; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(21 30 38 / 0.82) 0%, rgb(21 30 38 / 0.55) 45%, rgb(21 30 38 / 0.05) 80%); }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); width: 100%; max-width: 547px; }
.hero__title { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.1875rem); font-weight: 800; line-height: 1.384; text-wrap: balance; }
.hero__text { max-width: 512px; font-size: 17.6px; line-height: 1.7; }
.hero__cta { margin-top: var(--space-4); }

/* ---------- Clients marquee ---------- */

.clients { padding-block: var(--space-7) 0; }
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: clamp(40px, 8%, 120px); pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, rgb(255 255 255 / 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff, rgb(255 255 255 / 0)); }
.marquee__track { display: flex; gap: var(--space-4); width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.chip {
  flex: none; padding: 13px 25px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; line-height: 20px; color: var(--ink-75);
}
@keyframes marquee { to { transform: translateX(calc(-50% - var(--space-2))); } }

/* ---------- Media ---------- */

.media { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-media); background: var(--surface-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--solution { aspect-ratio: 722 / 451; }
.media--solution img { object-position: center bottom; } /* ancora a foto na base: os monitores ficam inteiros e o corte vai para o teto */
.media--telemetry { aspect-ratio: 663 / 478; }
.media--soft { aspect-ratio: 652 / 461; }

/* ---------- Bullets ---------- */

.bullets { display: grid; gap: var(--space-3); margin-block: var(--space-2); }
.bullets--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-5); }
.bullets li { position: relative; padding-left: var(--space-4); font-size: 14px; line-height: 20px; color: var(--ink-75); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.bullets--sm { gap: var(--space-1); }
.bullets--sm li { font-size: 12px; line-height: 22.75px; color: var(--ink); }
.bullets--sm li::before { top: 8px; }

/* ---------- Telemetry signals ---------- */

.signals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.signal { padding: var(--space-1) var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.signal:first-child { padding-left: 0; }
.signal + .signal { border-left: 1px solid var(--line); }
.signal__title { display: flex; align-items: center; gap: var(--space-3); font-size: 14px; font-weight: 400; line-height: 17px; }
.signal__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: var(--surface-soft); border-radius: var(--radius-sm); }

/* ---------- AI cards + Dadá ---------- */

.ai-card__icon-box { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 6px 18px rgb(0 0 0 / 0.25); }
.ai-card__icon-box img { width: 22px; height: 22px; }
.ai-card__icon-box--orange { background: #f59e0b; border: 1.5px solid rgb(255 255 255 / 0.35); }
.ai-card__icon-box--green { background: #22c55e; border: 1.5px solid rgb(255 255 255 / 0.35); }
/* Inteligência artificial: palco com a imagem inteira (sem corte) + seletor */
.ai-tabs { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(var(--space-6), 4vw, var(--space-8)); align-items: center; }
.ai-tabs__stage { position: relative; aspect-ratio: 16 / 10; padding: var(--space-3); border-radius: var(--radius-xl); background: #fff; box-shadow: 0 1px 2px rgb(21 30 38 / 0.06), 0 18px 44px rgb(21 30 38 / 0.12); }
.ai-tabs__stage img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 2 * var(--space-3)); max-height: calc(100% - 2 * var(--space-3)); width: auto; height: auto; border-radius: var(--radius-md); opacity: 0; transform: scale(0.985); transition: opacity 450ms ease, transform 450ms ease; }
.ai-tabs__stage img.is-on { opacity: 1; transform: none; }
.ai-tabs__list { display: grid; gap: var(--space-3); }
.ai-tabs__item { display: flex; align-items: center; gap: var(--space-4); width: 100%; padding: var(--space-4); border: 0; border-radius: var(--radius-lg); background: transparent; color: var(--ink); text-align: left; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.3; cursor: pointer; transition: background-color 200ms ease, box-shadow 200ms ease; }
.ai-tabs__item:hover { background: rgb(21 30 38 / 0.05); }
.ai-tabs__item[aria-selected="true"] { background: #fff; box-shadow: 0 10px 28px rgb(21 30 38 / 0.1); }
@media (max-width: 960px) { .ai-tabs { grid-template-columns: 1fr; } }
.ai-card__icon-box--blue { background: #02afef; border: 1.5px solid rgb(255 255 255 / 0.35); }

.dada-full { padding-block: var(--space-9) 0; background: #fff; }
.dada-head { margin-bottom: 100px; }
/* vídeo em largura total (16:9, inteiro, sem corte); o véu branco some conforme a seção chega */
.dada-full__frame { position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; background: #f3f3f3; }
.dada__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: contain; }
.dada-full__veil { position: absolute; inset: 0; z-index: 1; background: #fff; opacity: var(--veil, 0); pointer-events: none; will-change: opacity; }
.dada-full__bar { position: absolute; z-index: 2; inset: auto 0 0 0; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-8) var(--space-6) var(--space-5); background: linear-gradient(to top, rgb(11 18 24 / 0.3), transparent); }
.dada-full__toggle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: var(--slate); cursor: pointer; box-shadow: 0 2px 10px rgb(0 0 0 / 0.2); transition: transform 160ms ease-out, background-color 160ms; }
.dada-full__toggle:hover { background: #fff; transform: scale(1.06); }
.dada-full__toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.dada-full__toggle svg { fill: currentColor; }
.dada-full__toggle .ic-play { display: none; margin-left: 2px; }
.dada-full__toggle.is-paused .ic-pause { display: none; }
.dada-full__toggle.is-paused .ic-play { display: block; }
.dada-full__progress { flex: 1; height: 4px; border-radius: var(--radius-pill); background: rgb(255 255 255 / 0.4); cursor: pointer; position: relative; }
.dada-full__progress::before { content: ""; position: absolute; inset: -10px 0; }
.dada-full__progress i { display: block; width: calc(var(--prog, 0) * 1%); height: 100%; border-radius: inherit; background: #fff; }
@media (max-width: 640px) { .dada-full__bar { padding: var(--space-6) var(--space-4) var(--space-3); } .dada-full__toggle { width: 36px; height: 36px; } }

/* ---------- Energy visual ---------- */

.energy-visual { position: relative; aspect-ratio: 692 / 565; }
.energy-visual__blob { position: absolute; left: 0; top: 0; width: 48%; height: 49%; border-radius: var(--radius-xl); background: rgb(6 162 108 / 0.2); }
.energy-visual__shot { position: absolute; left: 20.4%; top: 18.2%; width: 70.5%; height: 72.6%; overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow-media); background: #fff; }
/* box azul em "liquid glass": translúcido, desfoca o que está atrás, borda e reflexo de luz */
.energy-visual__glass {
  position: absolute; z-index: 2; left: -4%; top: 76%; width: 35%; height: 36%;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 80% at 18% 8%, rgb(255 255 255 / 0.55), transparent 55%),
    linear-gradient(145deg, rgb(2 175 239 / 0.62), rgb(2 175 239 / 0.34));
  -webkit-backdrop-filter: blur(8px) saturate(1.5);
  backdrop-filter: blur(8px) saturate(1.5);
  border: 1px solid rgb(255 255 255 / 0.55);
  box-shadow:
    inset 0 1.5px 1px rgb(255 255 255 / 0.75),
    inset 0 -10px 18px rgb(255 255 255 / 0.12),
    0 18px 40px rgb(2 175 239 / 0.3);
}
.energy-visual__shot { z-index: 1; }

.energy-visual__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* ---------- Report lists ---------- */

.report-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-2); }
.report-lists ul { display: grid; gap: var(--space-2); padding: var(--space-1) 0 var(--space-1) var(--space-4); border-left: 1px solid var(--brand); }
.report-lists li { font-size: 13px; line-height: 22px; }

/* ---------- MESS ---------- */

.mess { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-9); min-height: 408px; padding: var(--space-9) clamp(var(--space-5), 5vw, 69px) var(--space-8); background: var(--ink); border-radius: var(--radius-xl); color: #fff; }
/* camadas de fundo em P&B e bem escuras; trocam por fade cruzado */
.mess__bg { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; opacity: 0; transition: opacity 900ms ease; }
.mess__bg.is-active { opacity: 1; }
.mess__copy { display: flex; flex-direction: column; gap: var(--space-4); max-width: 520px; margin-top: auto; transition: opacity 260ms ease, transform 260ms ease; }
.mess__copy.is-swapping { opacity: 0; transform: translateY(6px); }
.mess .lead { color: rgb(255 255 255 / 0.86); }
.mess__title { font-size: var(--h2); }
.mess__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.mess__tab {
  display: flex; flex-direction: column; gap: var(--space-1); min-height: 76px; padding: var(--space-3) var(--space-4);
  text-align: left; background: rgb(21 30 38 / 0.72); border: 0; border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgb(2 175 239 / 0.14);
  transition: background-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}
.mess__tab strong { font-size: 16px; font-weight: 900; line-height: 1.6; color: var(--brand); }
.mess__tab span { font-size: 12px; line-height: 16px; color: rgb(255 255 255 / 0.78); }
.mess__tab:hover { background: rgb(21 30 38 / 0.9); box-shadow: 0 10px 28px rgb(2 175 239 / 0.34); }
.mess__tab[aria-selected="true"] { background: var(--ink); box-shadow: 0 8px 22px rgb(2 175 239 / 0.26); }
.mess__tab[aria-selected="true"]:hover { box-shadow: 0 10px 28px rgb(2 175 239 / 0.4); }

/* ---------- Calculator ---------- */

.calc {
  /* paleta da seção: slate escuro; texto claro, acento azul da marca, vermelho/verde só para perda/ganho */
  --calc-bg: #0f172a; --calc-surface: #1e293b; --calc-line: rgb(255 255 255 / 0.12);
  --calc-text: #f8fafc; --calc-muted: #cbd5e1; --calc-faint: #94a3b8;
  --calc-bad: #f87171; --calc-good: #34d399;
  background: var(--calc-bg); color: var(--calc-text); padding-block: clamp(var(--space-9), 9vw, 128px);
}
.calc__head { margin-bottom: var(--space-8); }
.calc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; justify-content: center; align-items: stretch; gap: var(--space-5); }
.calc__intro { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; }
.calc__intro h2 { font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.125rem); }
.calc__intro p:last-child { margin-top: var(--space-2); color: var(--calc-muted); line-height: 24px; }
.calc .eyebrow--light { color: var(--brand); }

.panel { padding: 33px; border-radius: var(--radius-lg); }
.panel h3 { font-size: 18px; line-height: 28px; }
.panel--glass { background: var(--calc-surface); border: 1px solid var(--calc-line); color: var(--calc-text); }
.panel--light { background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 20px rgb(21 30 38 / 0.06); color: var(--ink); }
.panel--light h3 { font-size: 19.2px; line-height: 28.8px; }
.panel > * + * { margin-top: var(--space-4); }
.panel h3 + * { margin-top: var(--space-5); }
.panel__note { text-align: center; font-size: 12px; line-height: 16px; color: var(--calc-faint); }
.panel--light .panel__note { color: rgb(21 30 38 / 0.5); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; line-height: 20px; color: var(--calc-muted); }
.field input { width: 100%; height: 46px; padding: 13px 17px; border-radius: var(--radius-md); border: 1px solid rgb(255 255 255 / 0.18); background: #0f172a; color: #fff; font-size: 14px; }
.field input::placeholder { color: var(--calc-faint); }
.field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-4); }
.field-row + .field { margin-top: var(--space-4); }

.panel--light .field label { font-size: 12px; font-weight: 600; line-height: 16px; color: rgb(21 30 38 / 0.65); }
.panel--light .field input,
.panel--light .field textarea { width: 100%; padding: 13px 17px; border-radius: var(--radius-md); border: 1px solid rgb(21 30 38 / 0.15); background: #fafafa; color: var(--ink); font-size: 14px; }
.panel--light .field textarea { min-height: 106px; resize: vertical; line-height: 20px; }
.panel--light .field input::placeholder,
.panel--light .field textarea::placeholder { color: rgb(21 30 38 / 0.5); }
.panel--light .field input:focus,
.panel--light .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; background: #fff; }




/* calculator form + output */
.calc__group { margin: 0; padding: 0; border: 0; display: grid; gap: var(--space-4); }
.calc__group + .calc__group { margin-top: var(--space-5); }
.calc__group legend { padding: 0; margin-bottom: var(--space-4); font-size: 18px; font-weight: 700; line-height: 28px; }
.panel--glass > * + * { margin-top: 0; }
.panel--glass .btn { margin-top: var(--space-5); }
.panel--glass .panel__note { margin-top: var(--space-4); }
.field input:user-invalid { border-color: var(--calc-bad); background: rgb(248 113 113 / 0.1); }
.calc__error { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: rgb(248 113 113 / 0.12); border: 1px solid rgb(248 113 113 / 0.5); color: #fecaca; font-size: 14px; line-height: 20px; }





.calc__cta { max-width: 880px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); margin-top: var(--space-5); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--calc-surface); border: 1px solid var(--calc-line); color: var(--calc-text); }
.calc__cta p { font-size: 18px; font-weight: 700; line-height: 28px; }
.calc__cta-wrap { margin-top: var(--space-5); }
.calc__cta-wrap .calc__cta { margin-top: 0; max-width: 1000px; flex-direction: column; justify-content: center; text-align: center; }

/* resultado ao lado do formulário (aba OEE (2) da planilha): OEE e perda de cada cenário */
.calc__result { display: flex; flex-direction: column; }
.calc__result h3 { text-align: center; font-size: 18px; font-weight: 700; line-height: 28px; }
/* o título fica no topo; os dois cenários formam um grupo único, centrado no espaço que sobra */
.result { display: flex; align-items: center; justify-content: center; gap: clamp(var(--space-6), 5vw, var(--space-9)); padding: var(--space-6) var(--space-5); border-radius: var(--radius-md); background: rgb(255 255 255 / 0.05); text-align: center; }
.result:first-of-type { margin-top: auto; }
.result + .result { margin-top: var(--space-4); }
.result--meta { background: rgb(2 175 239 / 0.14); margin-bottom: auto; }
.result__item { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); min-width: 0; }
.result__label { font-size: 13px; font-weight: 600; line-height: 18px; color: var(--calc-muted); }
.result__oee, .result__loss { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.125rem); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--calc-faint); }
.result__loss { white-space: nowrap; }
.calc__result.is-done .result__oee { color: var(--calc-text); }
.calc__result.is-done .result__loss { color: var(--calc-bad); }
.result__hint { padding-top: var(--space-4); font-size: 13px; line-height: 18px; color: var(--calc-faint); text-align: center; }

/* Liquid glass: sem borda; vidro que desfoca as luzes de fundo, com brilho na aresta de cima e sombra profunda */
.calc { position: relative; isolation: isolate; overflow: hidden; }
.calc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 420px at 12% 6%, rgb(2 175 239 / 0.28), transparent 70%),
    radial-gradient(560px 460px at 92% 34%, rgb(52 211 153 / 0.16), transparent 70%),
    radial-gradient(520px 440px at 8% 72%, rgb(2 175 239 / 0.2), transparent 70%),
    radial-gradient(560px 460px at 90% 96%, rgb(99 102 241 / 0.18), transparent 70%);
}
.calc .panel--glass, .calc__cta {
  border: 0;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.04));
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 -1px 0 rgb(255 255 255 / 0.05), inset 0 0 28px rgb(255 255 255 / 0.04), 0 20px 44px rgb(2 6 23 / 0.45);
}

.btn--light { background: var(--brand); }
.calc .btn--dark, .calc .btn--light { background: var(--brand); color: #0f172a; }
.calc .btn--dark:hover, .calc .btn--light:hover { background: #38c4f5; box-shadow: 0 8px 15px rgb(2 175 239 / 0.3); }
.calc .btn--dark img { filter: brightness(0); }

/* ---------- Compare table ---------- */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.mark { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; font-weight: 600; line-height: 20px; color: var(--ink); white-space: nowrap; }
.mark i { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; }
.mark[data-s="full"] i { background: var(--green); }
.mark[data-s="full"] i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; border-radius: 1px; transform: rotate(45deg); }
/* Parcial: círculo laranja com traço horizontal */
.mark[data-s="partial"] i { background: #f59e0b; }
.mark[data-s="partial"] i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2.5px; margin: -1.25px 0 0 -5px; border-radius: 2px; background: #fff; }
/* Não tem: círculo vermelho com X branco */
.mark[data-s="none"] { color: rgb(21 30 38 / 0.6); font-weight: 500; }
.mark[data-s="none"] i { background: var(--danger); }
.mark[data-s="none"] i::before, .mark[data-s="none"] i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; border-radius: 2px; background: #fff; }
.mark[data-s="none"] i::before { transform: rotate(45deg); }
.mark[data-s="none"] i::after { transform: rotate(-45deg); }

.legend { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-bottom: var(--space-5); }
.legend li { display: inline-flex; align-items: center; gap: var(--space-3); font-size: 14px; line-height: 20px; color: var(--ink-60); }
.legend .mark { font-size: 13px; }

.compare { overflow-x: auto; border: 1px solid rgb(21 30 38 / 0.1); border-radius: var(--radius-lg); background: #fff; }
.compare table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.compare th, .compare td { padding: var(--space-4) var(--space-5); font-size: 14px; line-height: 21px; border-bottom: 1px solid rgb(21 30 38 / 0.06); }
.compare tr > :nth-child(n+2) { width: 176px; text-align: left; }
.compare thead th { padding-block: var(--space-5); font-size: 14px; font-weight: 700; line-height: 20px; vertical-align: bottom; border-bottom-color: var(--line); }
.compare thead th { text-wrap: balance; }
.compare thead sup { font-weight: 600; color: var(--ink-60); }
.compare tbody th { text-align: left; font-weight: 400; color: var(--ink-75); }
.compare .compare__brand { background: rgb(2 175 239 / 0.06); }
.compare thead .compare__brand { background: var(--brand); color: #fff; }
.compare__group th { padding-block: var(--space-3); background: var(--surface-soft); font-size: 13px; font-weight: 700; line-height: 20px; color: var(--ink); text-align: left; }
.compare tbody tr:not(.compare__group):hover > * { background-color: rgb(21 30 38 / 0.025); }
.compare tbody tr:not(.compare__group):hover > .compare__brand { background-color: rgb(2 175 239 / 0.1); }
.compare tbody:last-of-type tr:last-child > * { border-bottom: 0; }
.compare__foot { margin-top: var(--space-4); font-size: 12px; font-style: italic; color: rgb(21 30 38 / 0.6); }

/* ---------- Cases ---------- */

.cases-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-8); }
.cases-head h2 { margin-top: var(--space-3); }
.arrows { display: flex; gap: var(--space-3); }
.cases { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--space-5)) / 3); gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 1px; }
.cases::-webkit-scrollbar { display: none; }
.case { display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.case__img { position: relative; flex: none; height: 200px; background: linear-gradient(135deg, #5b646c, #2a3138); }
.case__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(21 30 38 / 0.5), transparent); }
.case__img--2 { background: linear-gradient(135deg, #6c7a82, #364048); }
.case__img { display: block; }
.case__img--3 { background: linear-gradient(135deg, #7d8b72, #3f4a38); }
.tag { position: absolute; z-index: 1; left: var(--space-4); top: var(--space-4); padding: 4px 12px; border-radius: var(--radius-pill); background: var(--slate); color: #fff; font-size: 12px; font-weight: 600; line-height: 16px; }
.case__body { display: flex; flex: 1; flex-direction: column; padding: var(--space-5); }
.case__company { margin-bottom: var(--space-2); font-size: 12px; font-weight: 600; line-height: 16px; color: var(--slate); }
.case h3 { margin-bottom: var(--space-3); font-size: 15.2px; line-height: 21px; }
.case__body > p:not(.case__company) { flex: 1; font-size: 14px; line-height: 22.75px; color: var(--ink-60); }
.case__link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-5); font-size: 14px; font-weight: 600; line-height: 20px; color: var(--brand); text-decoration: none; }
.case__link:hover { text-decoration: underline; }
.dots { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-6); }
.dots i { width: 8px; height: 8px; border-radius: var(--radius-pill); background: rgb(21 30 38 / 0.2); transition: width 200ms ease-out, background-color 200ms; }
.dots i.is-active { width: 24px; background: var(--slate); }

/* ---------- Videos ---------- */

.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.video { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.video__thumb {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  background: var(--thumb, linear-gradient(135deg, #5b646c, #2a3138)) center / cover no-repeat;
}
.video__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(21 30 38 / 0.45), transparent 60%); transition: opacity 160ms ease-out; }
.video__thumb:hover::after { opacity: 0.7; }
.video__play { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / 0.25); transition: transform 160ms ease-out; }
.video__play svg { margin-left: 3px; }
.video__thumb:hover .video__play { transform: scale(1.06); }
.video__body { padding: var(--space-5); }
.video h3 { margin-bottom: var(--space-2); font-size: 15.2px; line-height: 21px; }
.video__body p { font-size: 14px; line-height: 22.75px; color: var(--ink-60); }

/* popup de vídeo */
.video-modal { width: min(1040px, 94vw); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.video-modal::backdrop { background: rgb(8 12 16 / 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video-modal[open] { animation: vm-in 260ms cubic-bezier(0.22, 1, 0.36, 1); }
.video-modal[open]::backdrop { animation: vm-fade 260ms ease-out; }
.video-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); }
.video-modal__title { font-size: 15px; font-weight: 600; line-height: 22px; text-wrap: balance; }
.video-modal__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.14); color: #fff; transition: background-color 160ms ease-out, transform 160ms ease-out; }
.video-modal__close:hover { background: rgb(255 255 255 / 0.26); transform: scale(1.05); }
.video-modal__close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.video-modal__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); background: #000; box-shadow: 0 24px 64px rgb(0 0 0 / 0.5); }
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@keyframes vm-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes vm-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- How it works ---------- */

.how { background: var(--green); color: #fff; padding-block: clamp(var(--space-9), 10vw, 128px); }
.how .section-head { margin-bottom: var(--space-8); }
.how__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.pill {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: 9px 17px;
  border: 1px solid rgb(255 255 255 / 0.18); border-radius: var(--radius-pill); background: rgb(255 255 255 / 0.06);
  font-size: 14px; font-weight: 600; line-height: 20px; color: rgb(255 255 255 / 0.78);
  transition: background-color 160ms ease-out, border-color 160ms, color 160ms;
}
.pill b { font-size: 11px; font-weight: 900; }
.pill:hover { background: rgb(255 255 255 / 0.12); }
.pill[aria-selected="true"] { background: rgb(0 0 0 / 0.3); border-color: rgb(255 255 255 / 0.5); color: #fff; }

.how__panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-9); margin-top: var(--space-8); }
.how__head { display: flex; align-items: center; gap: var(--space-4); }
.how__icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: var(--radius-lg); background: rgb(0 0 0 / 0.25); }
.how__step { font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(255 255 255 / 0.75); }
.how h3 { font-size: 22.4px; font-weight: 900; line-height: 33.6px; }
.how__text { padding-block: var(--space-5); line-height: 26px; color: rgb(255 255 255 / 0.88); max-width: 495px; }
.how__controls { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-7); }
.how__count { margin-left: var(--space-2); font-size: 14px; color: rgb(255 255 255 / 0.75); }
.how__media { position: relative; overflow: hidden; height: 420px; border-radius: var(--radius-lg); background: #c4c4c4; }
.how__media img { width: 100%; height: 100%; object-fit: cover; }
.how__media[data-contain] { background: #f2f2f2; box-shadow: 0 1px 2px rgb(21 30 38 / 0.08), 0 14px 36px rgb(21 30 38 / 0.22); }
.how__media[data-contain] img { object-fit: cover; }
.how__media[data-contain]::after { display: none; }
.how__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, rgb(21 30 38 / 0.3), transparent); }
.how__tag { position: absolute; z-index: 1; right: var(--space-4); top: var(--space-4); padding: 6px 12px; border-radius: var(--radius-pill); background: rgb(21 30 38 / 0.6); font-size: 12px; font-weight: 700; line-height: 16px; }

/* ---------- Testimonial ---------- */

.quote { display: flex; align-items: flex-start; justify-content: center; gap: var(--space-8); }
.quote__author { display: flex; flex: none; align-items: center; gap: var(--space-4); padding-top: var(--space-5); }
.avatar { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--slate); color: #fff; font-weight: 900; }
.quote__author strong { display: block; font-size: 16px; line-height: 24px; }
.quote__author span > span { display: block; font-size: 14px; line-height: 20px; color: rgb(21 30 38 / 0.6); }
.quote__author em { display: block; font-size: 14px; font-style: normal; font-weight: 500; line-height: 20px; color: var(--slate); }
blockquote { margin: 0; max-width: 782px; font-size: 17.6px; line-height: 31.68px; color: var(--ink-75); }

/* ---------- About ---------- */

.about__media { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; aspect-ratio: 487 / 397; border-radius: var(--radius-lg); }
.about__media img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.about__media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(21 30 38 / 0.72) 0%, transparent 60%); }
.about__media figcaption { padding: var(--space-6); color: #fff; }
.about__media strong { display: block; font-variant-numeric: tabular-nums; font-size: 48px; font-weight: 900; line-height: 72px; color: #1fd08f; }
.about__media figcaption > span { font-size: 16px; font-weight: 600; line-height: 24px; }
.about__body, .stack .body + .body { margin-top: var(--space-2); }
.about__list { display: grid; gap: var(--space-3); margin-top: var(--space-1); }
.about__list li { position: relative; padding-left: var(--space-5); color: var(--ink-60); line-height: 26px; }
.about__list li::before { content: ""; position: absolute; left: var(--space-1); top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.about__list strong { color: var(--ink); font-weight: 700; }


/* ---------- FAQ ---------- */

.faq { display: grid; gap: var(--space-3); max-width: 860px; margin-inline: auto; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow 240ms ease, border-color 240ms ease; }
.faq__item[open] { border-color: rgb(2 175 239 / 0.35); box-shadow: 0 10px 30px rgb(2 175 239 / 0.1); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) var(--space-5); list-style: none; cursor: pointer; border-radius: var(--radius-lg);
  font-size: 16px; font-weight: 600; line-height: 24px; color: var(--ink);
  transition: color 160ms ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brand); }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgb(2 175 239 / 0.1); transition: background-color 200ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--brand); transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), background-color 200ms ease; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--brand); transform: rotate(180deg); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { padding: 0 var(--space-5) var(--space-5); color: var(--ink-75); line-height: 26px; animation: faq-in 320ms cubic-bezier(0.22, 1, 0.36, 1); }
.faq__answer p { max-width: 68ch; }
.faq__answer ul { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.faq__answer li { position: relative; padding-left: var(--space-4); font-size: 15px; line-height: 24px; }
.faq__answer li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.faq__cta { margin-top: var(--space-6); text-align: center; color: var(--ink-60); }
.faq__cta a { font-weight: 600; color: var(--brand); text-underline-offset: 3px; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */

.contact { background: #f3f3f3; padding-block: var(--section-y) var(--space-6); }
.contact .section-head { margin-bottom: var(--space-8); }
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 499px)); justify-content: center; gap: var(--space-7); align-items: start; padding-bottom: var(--space-9); }
.contact__side { display: flex; flex-direction: column; gap: var(--space-5); }
.contact__photo { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; aspect-ratio: 499 / 320; border-radius: var(--radius-lg); color: #fff; }
.contact__photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.contact__photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(21 30 38 / 0.6), transparent 60%); }
.contact__photo figcaption { padding: var(--space-5); }
.contact__photo strong { display: block; font-size: 18px; line-height: 28px; }
.contact__photo span { font-size: 14px; line-height: 20px; color: rgb(255 255 255 / 0.85); }
.contact__info { display: grid; gap: var(--space-5); padding: var(--space-6) var(--space-6); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact__info p { display: flex; align-items: center; gap: var(--space-4); font-size: 14px; font-weight: 600; line-height: 20px; }
.contact__info small { display: block; font-size: 12px; font-weight: 500; line-height: 16px; color: rgb(21 30 38 / 0.6); }
.contact__info a { text-decoration: none; }
.contact__info a:hover { color: var(--brand); }
.ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-sm); }

/* ---------- Listagens, artigos e páginas internas (cases e blog) ---------- */

.listing { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5); }
.listing--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-cta { display: flex; justify-content: center; margin-top: var(--space-7); }

.article { padding-block: var(--space-7) var(--section-y); }
.article__head { display: flex; flex-direction: column; gap: var(--space-4); max-width: 820px; margin-bottom: var(--space-7); }
.article__head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.article__lead { max-width: 68ch; font-size: 18px; line-height: 30px; color: var(--ink-60); }
.article__cover { position: relative; overflow: hidden; aspect-ratio: 21 / 9; border-radius: var(--radius-lg); background: linear-gradient(135deg, #5b646c, #2a3138); }
.article__cover.case__img--2 { background: linear-gradient(135deg, #6c7a82, #364048); }
.article__cover.case__img--3 { background: linear-gradient(135deg, #7d8b72, #3f4a38); }
.article__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(21 30 38 / 0.5), transparent); }

.article__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(var(--space-6), 5vw, var(--space-9)); align-items: start; margin-top: var(--space-8); }
.article__aside { position: sticky; top: calc(var(--header-h) + var(--space-5)); display: grid; gap: var(--space-5); padding: var(--space-5); background: var(--surface-soft); border-radius: var(--radius-lg); }
.article__aside dl { display: grid; gap: var(--space-4); margin: 0; }
.article__aside dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-60); }
.article__aside dd { margin: var(--space-1) 0 0; font-size: 15px; font-weight: 600; line-height: 22px; }
.article__body { max-width: 720px; }
.article__body--solo { margin: var(--space-8) auto 0; }
.article__body h2 { margin: var(--space-8) 0 var(--space-3); font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); }
.article__body > h2:first-child { margin-top: 0; }
.article__body p { color: var(--ink-75); line-height: 28px; }
.article__body p + p { margin-top: var(--space-4); }
.article__results { display: grid; gap: var(--space-3); margin: var(--space-4) 0; }
.article__results li { position: relative; padding-left: var(--space-5); color: var(--ink); font-weight: 600; line-height: 26px; }
.article__results li::before { content: ""; position: absolute; left: var(--space-1); top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.related { margin-top: var(--space-10); }
.related__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); margin-top: var(--space-10); padding: var(--space-7); background: var(--ink); color: #fff; border-radius: var(--radius-lg); }
.cta-band h2 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); }
.cta-band p { margin-top: var(--space-2); color: rgb(255 255 255 / 0.82); }

/* ---------- Páginas legais (privacidade, cookies, termos) ---------- */

.legal { padding-block: var(--space-7) var(--section-y); }
.legal__crumb { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); font-size: 13px; line-height: 20px; color: var(--ink-60); }
.legal__crumb a { color: var(--brand); text-decoration: none; }
.legal__crumb a:hover { text-decoration: underline; }
.legal__head { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; margin-bottom: var(--space-8); }
.legal__head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.legal__meta { font-size: 14px; color: var(--ink-60); }

.legal__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(var(--space-6), 5vw, var(--space-9)); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + var(--space-5)); padding: var(--space-5); background: var(--surface-soft); border-radius: var(--radius-lg); font-size: 14px; line-height: 20px; }
.legal__toc p { margin-bottom: var(--space-3); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-60); }
.legal__toc ol, .legal__toc ul { display: grid; gap: var(--space-2); }
.legal__toc ol { counter-reset: toc; }
.legal__toc ol li { counter-increment: toc; }
.legal__toc ol a::before { content: counter(toc, decimal-leading-zero); margin-right: var(--space-2); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand); }
.legal__toc a { display: block; padding: 2px 0; color: var(--ink-75); text-decoration: none; transition: color 160ms ease; }
.legal__toc a { text-wrap: balance; }
.legal__table td { text-wrap: balance; }
.legal__toc a:hover { color: var(--brand); }
.legal__toc .legal__toc-other { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line); }

.legal__body { max-width: 760px; }
.legal__sec { padding-bottom: var(--space-7); scroll-margin-top: calc(var(--header-h) + var(--space-5)); }
.legal__sec + .legal__sec { padding-top: var(--space-7); border-top: 1px solid var(--line); }
.legal__sec h2 { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-4); font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); }
.legal__n { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--brand); font-variant-numeric: tabular-nums; }
.legal__sec h3 { margin: var(--space-5) 0 var(--space-2); font-size: 16px; }
.legal__sec p, .legal__sec li { color: var(--ink-75); line-height: 27px; }
.legal__sec p + p, .legal__sec p + ul, .legal__sec ul + p, .legal__sec p + .legal__table, .legal__sec .legal__table + p { margin-top: var(--space-4); }
.legal__sec ul { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.legal__sec li { position: relative; padding-left: var(--space-5); }
.legal__sec li::before { content: ""; position: absolute; left: var(--space-1); top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.legal__sec a { color: var(--brand); text-underline-offset: 3px; }
.legal__sec code { padding: 1px 6px; border-radius: 6px; background: var(--surface-soft); font-size: 0.9em; }
.legal__table { display: block; overflow-x: auto; width: 100%; margin-top: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); border-collapse: separate; border-spacing: 0; }
.legal__table th, .legal__table td { min-width: 180px; padding: var(--space-3) var(--space-4); text-align: left; vertical-align: top; font-size: 14px; line-height: 22px; border-bottom: 1px solid var(--line); }
.legal__table thead th { background: var(--surface-soft); font-weight: 700; }
.legal__table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: #fff; padding-block: var(--space-9) var(--space-6); }
.footer__inner { display: grid; grid-template-columns: 1.45fr 1fr 0.8fr 1.3fr; gap: var(--space-6); width: min(100% - 2 * var(--gutter), 800px); }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.footer__brand p { max-width: 230px; margin-bottom: var(--space-2); font-size: 14px; line-height: 22.75px; color: rgb(255 255 255 / 0.62); }
.footer h4 { margin-bottom: var(--space-4); font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: 0.025em; }
.footer__col ul { display: grid; gap: var(--space-3); }
.footer__col a { display: inline-flex; align-items: center; gap: var(--space-3); font-size: 14px; line-height: 20px; color: rgb(255 255 255 / 0.62); text-decoration: none; transition: color 160ms ease-out; }
.footer__col a:hover { color: #fff; }
.footer .ico { width: 32px; height: 32px; background: rgb(255 255 255 / 0.06); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid rgb(255 255 255 / 0.08); font-size: 12px; line-height: 16px; color: rgb(255 255 255 / 0.55); }
.footer__bottom a { font-weight: 500; color: #ef6902; text-decoration: none; }

/* ---------- Motion ---------- */

/* Entrada: sobe e aparece. Só ativa quando o JS marca <html class="js-motion">. */
.js-motion .reveal {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.js-motion .reveal.is-in { opacity: 1; transform: none; }

/* Parallax: --p vai de -1 (elemento abaixo da tela) a 1 (acima), definido pelo JS */
.js-motion .energy-visual__blob { transform: translate3d(0, calc(var(--p, 0) * 56px), 0); will-change: transform; }
.js-motion .energy-visual__shot { transform: translate3d(0, calc(var(--p, 0) * -36px), 0); will-change: transform; }
/* só sobe ao rolar: parte da posição base (0) e nunca desce abaixo dela, para não cobrir o texto da seção seguinte */
.js-motion .energy-visual__glass { transform: translate3d(0, calc((var(--p, 0) - 1) * 46px), 0); will-change: transform; }

/* Como funciona: o fundo anda do verde ao azul da marca a cada etapa */
.how { background-color: var(--how-bg, var(--green)); transition: background-color 900ms ease; }
.how[data-step="1"] { --how-bg: var(--green); }
.how[data-step="2"] { --how-bg: color-mix(in srgb, var(--green) 67%, var(--brand)); }
.how[data-step="3"] { --how-bg: color-mix(in srgb, var(--green) 33%, var(--brand)); }
.how[data-step="4"] { --how-bg: var(--brand); }

/* ---------- WhatsApp flutuante ---------- */

.wa-fab {
  position: fixed; z-index: 60;
  right: max(var(--space-5), env(safe-area-inset-right)); bottom: max(var(--space-5), env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; box-shadow: 0 8px 24px rgb(0 0 0 / 0.22), 0 2px 6px rgb(0 0 0 / 0.12);
  animation: wa-in 600ms 1200ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.wa-fab img { width: 30px; height: 30px; }
.wa-fab:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 12px 30px rgb(37 211 102 / 0.45), 0 2px 6px rgb(0 0 0 / 0.12); }
.wa-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@keyframes wa-in { from { opacity: 0; transform: translateY(16px) scale(0.9); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */

/* menu vira hambúrguer abaixo de 1200px (com o link de Blog o menu não cabe em uma linha) */
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .site-header__menu {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: var(--space-5);
    padding: var(--space-5) var(--gutter) var(--space-6); background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgb(21 30 38 / 0.08);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 180ms;
  }
  .site-header__menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav { flex-direction: column; align-items: stretch; gap: var(--space-1); margin: 0; }
  .nav__link { padding: var(--space-3) 0; font-size: 16px; }
  .nav__dropdown-btn { width: 100%; justify-content: space-between; }
  .nav__panel { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 var(--space-4); }
  .nav__dropdown-btn[aria-expanded="true"] + .nav__panel { display: block; }
  .nav__dropdown:hover .nav__panel { display: none; }
  .nav__dropdown:hover .nav__dropdown-btn[aria-expanded="true"] + .nav__panel { display: block; }
  .site-header__actions { justify-content: space-between; }
}

@media (max-width: 1100px) {
  .nav { margin-left: var(--space-5); gap: var(--space-4); }
  .site-header__actions { gap: var(--space-4); }
  .mess__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {

  .split, .split--media-first, .split--telemetry, .split--energy, .split--about { grid-template-columns: 1fr; }
  .split--media-first > .media { order: -1; }
  .energy-visual { order: -1; }
  .calc__grid { grid-template-columns: 1fr; }
  .calc__intro { max-width: 560px; margin-inline: auto; }
  .panel--glass { max-width: 560px; margin-inline: auto; width: 100%; }
  .how__panel { grid-template-columns: 1fr; gap: var(--space-6); }
  .how__media { order: -1; height: 320px; }
  .quote { flex-direction: column; align-items: flex-start; gap: var(--space-5); }
  .quote__author { padding-top: 0; }
  .contact__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .article__layout { grid-template-columns: 1fr; }
  .article__aside { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-6); }
  .cases { grid-auto-columns: calc((100% - var(--space-5)) / 2); }
  .videos { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: clamp(560px, calc(100svh - var(--header-h) - var(--space-3) - var(--space-5)), 758px); padding-block: var(--space-8); }
  /* texto ancorado embaixo: a metade de cima do box fica livre para mostrar o vídeo */
  .hero { align-items: flex-end; min-height: clamp(600px, calc(100svh - var(--header-h) - var(--space-3) - var(--space-5)), 758px); }
  .hero::after { background: linear-gradient(0deg, rgb(21 30 38 / 0.88) 0%, rgb(21 30 38 / 0.6) 42%, rgb(21 30 38 / 0.08) 72%, rgb(21 30 38 / 0) 100%); }
  .hero__title, .hero__text { text-shadow: 0 1px 14px rgb(0 0 0 / 0.55), 0 0 2px rgb(0 0 0 / 0.35); }
  .hero__text br { display: none; }
  /* no celular o box é estreito: ancora o vídeo à direita, onde está o assunto principal */
  .hero__bg { object-position: 66% center; }
  .wa-fab { width: 56px; height: 56px; right: var(--space-4); bottom: var(--space-4); }
  .bullets--2col { grid-template-columns: 1fr; }
  .signals { grid-template-columns: 1fr; gap: var(--space-5); }
  .signal, .signal:first-child { padding: 0; }
  .signal + .signal { border-left: 0; border-top: 1px solid var(--line); padding-top: var(--space-5); }
  .report-lists { grid-template-columns: 1fr; }
  .mess { padding: var(--space-8) var(--space-5); gap: var(--space-8); }
  .mess__tabs { grid-template-columns: 1fr 1fr; }
  .field-row, .field-grid { grid-template-columns: 1fr; }
  .panel { padding: var(--space-5); }
  .cases-head { flex-direction: column; align-items: flex-start; }
  .cases { grid-auto-columns: 86%; }
  .videos { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .listing--2 { grid-template-columns: 1fr; }
  .article__cover { aspect-ratio: 16 / 9; }
  .cta-band { padding: var(--space-5); }
  .compare th, .compare td { padding: var(--space-3); }
  .compare tr > :nth-child(n+2) { width: 68px; text-align: center; }
  .compare tbody th { font-size: 13px; line-height: 19px; text-wrap: pretty; }
  .compare thead th { font-size: 10px; line-height: 14px; padding-inline: 2px; }
  .mark b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legend .mark b { position: static; width: auto; height: auto; clip-path: none; }
    }

/* ---------- Carrossel de hardware ---------- */
.hw-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-7); margin-top: var(--space-6); text-align: left; font-weight: 600; }
.hw-facts li { max-width: 360px; }
.hw-carousel { margin-top: var(--space-7); }
.hw-carousel__stage { position: relative; width: min(100%, 760px); height: clamp(200px, 32vw, 300px); margin-inline: auto; }
.hw-carousel__slide { position: absolute; top: 0; left: 50%; width: 52%; height: 100%; object-fit: contain; mix-blend-mode: multiply; cursor: pointer; -webkit-tap-highlight-color: transparent; transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; transition: transform 800ms cubic-bezier(.22,.8,.3,1), opacity 800ms ease; will-change: transform, opacity; }
.hw-carousel__slide[data-pos="0"] { cursor: default; }
.hw-carousel__slide[data-pos="1"] { transform: translateX(10%) scale(.62); opacity: .35; z-index: 1; }
.hw-carousel__slide[data-pos="2"] { transform: translateX(-110%) scale(.62); opacity: .35; z-index: 2; }
.hw-carousel__dots { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-5); }
.hw-carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--radius-pill); background: rgb(21 30 38 / 0.2); cursor: pointer; transition: width 200ms ease-out, background-color 200ms; }
.hw-carousel__dots button[aria-selected="true"] { width: 24px; background: var(--slate); }
@media (max-width: 640px) { .hw-carousel__slide { width: 64%; } }

@media (prefers-reduced-motion: reduce) {
  .hw-carousel__slide { transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js-motion .reveal { opacity: 1; transform: none; transition: none; }
  .how { transition: none; }
  .wa-fab { animation: none; }
  .video-modal[open], .video-modal[open]::backdrop { animation: none; }
  .faq__answer { animation: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee::before, .marquee::after { display: none; }
  .marquee__track .chip[aria-hidden="true"] { display: none; }
}
