/* Qualipix — site institucional
   Tokens: grafite e ciano da marca; "sala" (ambiente escuro iluminado pela tela)
   e "tela" (o branco frio de uma lousa ligada). */
:root {
  --cyan: #00c1dd;
  --cyan-ink: #04788a;
  --cyan-soft: #c8f1f7;
  --graphite: #343436;
  --ink: #15191b;
  --room: #081217;
  --room-2: #0e1d23;
  --room-line: rgba(190, 230, 240, 0.14);
  --screen: #f2f6f7;
  --paper: #ffffff;
  --line: #d4dfe2;
  --muted: #56636a;
  --muted-dark: #9fb5bc;
  --text-dark: #e8f2f4;
  --ir: #ff4632;

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(2.1rem, 1.1rem + 3.6vw, 4.4rem);
  --fs-display: clamp(2.4rem, 0.5rem + 3.9vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--screen);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.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 { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--cyan); color: var(--ink); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

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

/* Tipografia: Archivo com eixo de largura. Títulos largos como uma tela 16:9. */
.h2 {
  font-size: var(--fs-h2);
  font-stretch: 116%;
  font-weight: 760;
  line-height: 1.0;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h3-title { font-size: var(--fs-h3); font-weight: 700; font-stretch: 108%; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 38ch; text-wrap: pretty; }
[data-theme="dark"] .lead { color: var(--muted-dark); }
.fine { font-size: var(--fs-small); color: var(--muted); max-width: 46ch; }

/* Botões: pílulas, como a ponta de um dedo na tela */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn-lg { min-height: 58px; padding: 0 32px; }
.btn-primary { background: var(--cyan); color: #062a31; }
.btn-primary:hover { background: #2fd3ea; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(0, 193, 221, 0.12); }
.btn:active { transform: scale(0.98); }
.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.6s var(--ease) forwards;
}
.btn-ghost .ripple { background: rgba(0, 193, 221, 0.35); }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--cyan-ink);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.link:hover { color: var(--ink); }
.link-light { color: var(--cyan); }
.link-light:hover { color: #fff; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--text-dark);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease), opacity 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-hidden-boot { opacity: 0; transform: translateY(-12px); }
.site-header.is-scrolled[data-theme="dark"] { background: rgba(8, 18, 23, 0.72); border-color: var(--room-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header[data-theme="light"] { background: rgba(242, 246, 247, 0.84); color: var(--ink); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header-row { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.brand .logo-dark { display: none; }
.site-header[data-theme="light"] .brand .logo-dark { display: block; }
.site-header[data-theme="light"] .brand .logo-light { display: none; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 550; font-size: 0.9688rem; opacity: 0.86; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { flex: none; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 46px; height: 46px; border-radius: 999px;
    background: transparent; border: 1px solid currentColor; padding: 0 13px; cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    display: flex; flex-direction: column; gap: 4px;
    padding: 16px var(--gutter) 28px;
    background: var(--room); color: var(--text-dark);
    border-bottom: 1px solid var(--room-line);
    transform: translateY(-110%); visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s 0.45s;
  }
  .mobile-nav a:not(.btn) { padding: 12px 0; text-decoration: none; font-size: 1.375rem; font-weight: 700; font-stretch: 112%; border-bottom: 1px solid var(--room-line); }
  .mobile-nav .btn { margin-top: 18px; }
  .mobile-nav.is-open { transform: none; visibility: visible; transition: transform 0.45s var(--ease); }
}

/* -------------------------------------------------------------------- hero */
.hero { position: relative; height: 230vh; background: var(--room); color: var(--text-dark); }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-fallback {
  position: absolute; inset: 0; display: none;
  background: radial-gradient(60% 50% at 68% 45%, rgba(0, 193, 221, 0.28), transparent 70%), var(--room);
}
.no-webgl .hero-fallback { display: block; }
.hero-layout {
  position: relative; z-index: 2; height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  pointer-events: none;
}
.hero-copy { max-width: 640px; pointer-events: none; }
.hero-copy a, .hero-tools button { pointer-events: auto; }
.hero-title {
  font-size: var(--fs-display);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line > span { display: block; }
.hero-lead { margin-top: 28px; max-width: 40ch; color: #aac0c6; font-size: var(--fs-lead); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions .btn-ghost { color: #dff3f6; border-color: rgba(223, 243, 246, 0.45); }
.hero-tools { display: none; gap: 10px; }
.hero-tools .btn-ghost { color: #dff3f6; border-color: rgba(223, 243, 246, 0.45); background: rgba(8, 18, 23, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-tools .draw-clear { display: none; }
.hero-tools.is-drawing .draw-clear { display: inline-flex; }
.hero-tools .draw-toggle[aria-pressed="true"] { background: var(--cyan); color: #062a31; border-color: var(--cyan); }
.hero-caption {
  position: absolute; right: var(--gutter); bottom: 28px;
  font-size: var(--fs-small); color: #7f9aa2; max-width: 34ch; text-align: right;
}
.hero-curtain { position: absolute; inset: 0; z-index: 3; background: var(--screen); opacity: 0; pointer-events: none; }

/* sequência de abertura */
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero-lead, .js .hero-actions, .js .hero-caption { opacity: 0; transform: translateY(14px); }
.is-booted .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease); }
.is-booted .hero-title .line:nth-child(2) > span { transition-delay: 0.08s; }
.is-booted .hero-title .line:nth-child(3) > span { transition-delay: 0.16s; }
.is-booted .hero-lead, .is-booted .hero-actions, .is-booted .hero-caption { opacity: 1; transform: none; transition: opacity 0.9s var(--ease) 0.35s, transform 0.9s var(--ease) 0.35s; }
.is-booted .hero-actions { transition-delay: 0.45s; }

@media (max-width: 760px) {
  .hero { height: 200vh; }
  .hero-layout { align-content: end; padding-bottom: 28px; }
  .hero-sticky::after { content: ""; position: absolute; inset: 45% 0 0 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(8, 18, 23, 0) 0%, rgba(8, 18, 23, 0.82) 38%, rgba(8, 18, 23, 0.94) 100%); opacity: var(--hero-fade, 1); }
  .hero-copy { max-width: none; }
  .hero-lead { margin-top: 18px; font-size: 1rem; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-tools { display: flex; position: absolute; top: calc(var(--header-h) + 8px); left: var(--gutter); }
  .hero-caption { display: none; }
}
@media (hover: none) and (min-width: 761px) {
  .hero-tools { display: flex; position: absolute; top: calc(var(--header-h) + 16px); right: var(--gutter); }
}

/* ---------------------------------------------------------------- anatomia */
.anatomy { position: relative; height: 560vh; background: var(--screen); }
.anatomy-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.anatomy-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.anatomy-layout {
  position: relative; z-index: 2; height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  grid-template-rows: auto 1fr;
  gap: 28px 56px;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 40px;
  pointer-events: none;
}
.anatomy-head { grid-column: 2; max-width: 440px; }
.anatomy-head .h2 { font-size: clamp(2rem, 1rem + 2.2vw, 3.25rem); }
.anatomy-head .lead { margin-top: 14px; }
.layers { grid-column: 2; align-self: start; display: grid; gap: 0; }
.layer {
  position: relative;
  padding: 16px 0 16px 52px;
  border-top: 1px solid var(--line);
  opacity: 0.38;
  transition: opacity 0.5s var(--ease);
}
.layer:last-child { border-bottom: 1px solid var(--line); }
.layer-n {
  position: absolute; left: 0; top: 16px;
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 0.875rem; font-weight: 750;
  border: 1.5px solid var(--graphite);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.layer h3 { font-size: 1.125rem; font-weight: 720; font-stretch: 106%; line-height: 1.3; }
.layer p { font-size: 0.9688rem; color: var(--muted); margin-top: 6px; max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease); }
.layer .specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0; max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease), margin-top 0.6s var(--ease); }
.layer.is-active { opacity: 1; }
.layer.is-active .layer-n { background: var(--cyan); border-color: var(--cyan); color: #062a31; }
.layer.is-active p { max-height: 9em; }
.layer.is-active .specs { max-height: 6em; margin-top: 12px; }
.layer[data-layer="1"].is-active .layer-n { background: var(--ir); border-color: var(--ir); color: #fff; }
.specs li { font-size: 0.8125rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.loupe {
  position: absolute; z-index: 3;
  width: 150px; height: 150px; border-radius: 50%;
  left: 0; top: 0;
  border: 3px solid #fff;
  box-shadow: 0 18px 40px rgba(16, 40, 48, 0.25);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.loupe span {
  position: absolute; inset: -20px;
  background:
    linear-gradient(90deg, #ff3b30 0 30%, transparent 30% 34%, #34e36b 34% 63%, transparent 63% 67%, #2e7bff 67% 97%, transparent 97%) 0 0 / 24px 24px,
    #05080a;
  -webkit-mask: linear-gradient(transparent 0 8%, #000 8% 92%, transparent 92%) 0 0 / 24px 24px;
  mask: linear-gradient(transparent 0 8%, #000 8% 92%, transparent 92%) 0 0 / 24px 24px;
  background-color: #05080a;
}
.loupe::after { content: "Subpixels vermelho, verde e azul"; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 0.6875rem; font-weight: 650; color: #fff; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.loupe.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (max-width: 860px) {
  .anatomy { height: 520vh; }
  .anatomy-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding-top: calc(var(--header-h) + 16px); padding-bottom: 20px; }
  .anatomy-head { grid-column: 1; }
  .anatomy-head .lead { display: none; }
  .layers { grid-column: 1; grid-row: 3; align-self: end; position: relative; min-height: 210px; }
  .layer { position: absolute; inset: auto 0 0 0; border: 0; padding: 16px 16px 18px 60px; background: rgba(255, 255, 255, 0.92); border-radius: 6px; box-shadow: 0 10px 30px rgba(16, 40, 48, 0.12); opacity: 0; transform: translateY(12px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
  .layer:last-child { border: 0; }
  .layer-n { left: 16px; }
  .layer.is-active { opacity: 1; transform: none; }
  .loupe { width: 110px; height: 110px; }
  .loupe::after { display: none; }
}

/* ---------------------------------------------------------------- produtos */
.family { padding: clamp(96px, 12vw, 160px) 0 clamp(72px, 9vw, 120px); background: var(--screen); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { max-width: 46ch; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(290px, 31vw, 440px);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-bottom: 8px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -3px; }
.product { scroll-snap-align: start; display: flex; flex-direction: column; }
.product-img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: radial-gradient(80% 70% at 50% 60%, #ffffff 0%, #e3ecef 100%);
  overflow: hidden;
  position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.8s var(--ease); }
.product:hover .product-img img { transform: scale(1.035); }
.product-body { padding-top: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 760; font-stretch: 114%; letter-spacing: -0.015em; line-height: 1.1; }
.product-what { color: var(--muted); }
.product-specs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.product-specs div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.product-specs dt { font-weight: 650; }
.product-specs dd { color: var(--muted); }
.product .link { margin-top: auto; align-self: flex-start; }
.rail-controls { display: flex; align-items: center; gap: 10px; margin-top: 32px; }
.round-btn { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--graphite); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { background: var(--graphite); color: #fff; }
.rail-progress { flex: 1; height: 2px; background: var(--line); margin-left: 14px; position: relative; overflow: hidden; }
.rail-progress span { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--graphite); transition: width 0.2s linear, transform 0.2s linear; }

/* ------------------------------------------------------------------ filmes */
.film { position: relative; height: 340vh; background: var(--room); color: var(--text-dark); }
.film-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 18, 23, 0.9) 0%, rgba(8, 18, 23, 0.55) 34%, rgba(8, 18, 23, 0) 62%); }
.film-alt .film-shade { background: linear-gradient(90deg, rgba(8, 18, 23, 0) 38%, rgba(8, 18, 23, 0.6) 66%, rgba(8, 18, 23, 0.92) 100%); }
.film-layout {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px;
}
.film-layout .h2 { max-width: 12ch; color: #fff; font-size: clamp(2rem, 1rem + 2.7vw, 3.75rem); }
.film-alt .film-layout { justify-items: end; }
.film-alt .film-layout .h2 { text-align: right; }
.film-steps { align-self: end; display: grid; gap: 0; max-width: 420px; width: 100%; }
.film-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--room-line); opacity: 0.35; transition: opacity 0.5s var(--ease); }
.film-steps li:last-child { border-bottom: 1px solid var(--room-line); }
.film-steps li.is-active { opacity: 1; }
.step-n { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; border: 1.5px solid currentColor; font-size: 0.875rem; font-weight: 750; transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.film-steps li.is-active .step-n { background: var(--cyan); color: #062a31; border-color: var(--cyan); }
.film-steps h3 { font-size: 1.125rem; font-weight: 720; font-stretch: 106%; line-height: 1.3; }
.film-steps p { color: var(--muted-dark); font-size: 0.9688rem; margin-top: 4px; }
.film-bar { margin-top: 28px; height: 2px; width: 100%; max-width: 420px; background: var(--room-line); position: relative; }
.film-bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--cyan); }
@media (max-width: 760px) {
  .film { height: 300vh; }
  .film-shade, .film-alt .film-shade { background: linear-gradient(180deg, rgba(8, 18, 23, 0.85) 0%, rgba(8, 18, 23, 0) 30%, rgba(8, 18, 23, 0) 45%, rgba(8, 18, 23, 0.94) 72%); }
  .film-video { object-position: 64% 40%; }
  .film-alt .film-video { object-position: 34% 40%; }
  .film-alt .film-layout { justify-items: start; }
  .film-alt .film-layout .h2 { text-align: left; }
  .film-steps { position: relative; min-height: 150px; }
  .film-steps li { position: absolute; inset: auto 0 0 0; border: 0 !important; opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
  .film-steps li.is-active { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- tamanhos */
.sizes { padding: clamp(96px, 12vw, 160px) 0; background: var(--screen); }
.sizes-grid { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sizes-head .lead { margin-top: 16px; }
.size-readout { margin-top: 36px; }
.size-big { font-size: clamp(4.5rem, 3rem + 6vw, 8.5rem); font-weight: 800; font-stretch: 125%; line-height: 0.85; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.size-unit { color: var(--cyan-ink); }
.size-line { font-weight: 650; margin-top: 10px; }
.size-facts { margin-top: 22px; border-top: 1px solid var(--line); }
.size-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.size-facts dt { color: var(--muted); }
.size-facts dd { font-weight: 650; font-variant-numeric: tabular-nums; }
.size-readout .fine { margin-top: 14px; }
.size-stage { background: var(--paper); border-radius: 6px; padding: clamp(16px, 3vw, 36px); border: 1px solid var(--line); }
.size-svg { width: 100%; height: auto; overflow: visible; }
.size-floor { stroke: var(--graphite); stroke-width: 2; }
.size-door rect { fill: #eef2f3; stroke: #b8c5ca; stroke-width: 1.5; }
.size-door circle { fill: #9aa9ae; }
.size-person { fill: #c3cfd3; }
.size-body { fill: #1f2326; }
.size-screen { fill: url(#scr); }
.size-dim line { stroke: var(--cyan-ink); stroke-width: 1.5; }
.size-dim text { fill: var(--cyan-ink); font-size: 13px; font-weight: 650; font-family: var(--font); }
.size-control { margin-top: 24px; }
.size-control input[type="range"] { width: 100%; appearance: none; -webkit-appearance: none; height: 44px; background: transparent; cursor: pointer; }
.size-control input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cyan) var(--fill, 83%), var(--line) var(--fill, 83%)); }
.size-control input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
.size-control input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--cyan); }
.size-control input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: #fff; border: 2px solid var(--graphite); box-shadow: 0 0 0 6px rgba(0, 193, 221, 0.2); }
.size-control input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--graphite); }
.size-ticks { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; padding: 0 2px; }
@media (max-width: 860px) {
  .sizes-grid { grid-template-columns: minmax(0, 1fr); }
  .size-readout { margin-top: 24px; }
}

/* ---------------------------------------------------------------- escolher */
.chooser { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); border-top: 1px solid var(--line); }
.chooser-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.chooser-q .lead { margin-top: 16px; margin-bottom: 40px; }
.q { border: 0; padding: 0; margin: 0 0 32px; }
.q legend { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.125rem; margin-bottom: 14px; padding: 0; }
.q-n { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: 0.8125rem; background: var(--graphite); color: #fff; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--screen); font-weight: 550; font-size: 0.9688rem; transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease); }
.chips label:hover span { border-color: var(--graphite); }
.chips input:checked + span { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.chooser-result { position: sticky; top: calc(var(--header-h) + 24px); background: var(--screen); border-radius: 6px; border: 1px solid var(--line); padding: 28px; min-height: 320px; }
.result-empty { display: grid; gap: 6px; place-content: center; text-align: center; min-height: 260px; color: var(--muted); }
.result-kicker { font-size: var(--fs-small); font-weight: 650; color: var(--cyan-ink); }
.result-empty .result-kicker { color: var(--ink); font-size: 1.0625rem; }
.result-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: radial-gradient(80% 70% at 50% 60%, #fff 0%, #e3ecef 100%); border-radius: 6px; margin-bottom: 20px; }
.result-name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 780; font-stretch: 114%; line-height: 1.1; letter-spacing: -0.015em; margin-top: 6px; }
.result-why { color: var(--muted); margin-top: 12px; }
.result-cta { margin-top: 22px; width: 100%; }
.result-card.is-swap { animation: swap 0.5s var(--ease); }
@keyframes swap { from { opacity: 0.2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .chooser-grid { grid-template-columns: minmax(0, 1fr); }
  .chooser-result { position: relative; top: 0; }
}

/* --------------------------------------------------------------- segmentos */
.segments { padding: clamp(80px, 10vw, 140px) 0; background: var(--screen); }
.seg-grid { display: grid; grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.seg-tabs { display: grid; border-top: 1px solid var(--line); }
.seg-tabs button {
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 14px 0; cursor: pointer;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); font-weight: 760; font-stretch: 118%; letter-spacing: -0.02em; line-height: 1.1;
  color: #a9b6ba; transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
  position: relative;
}
.seg-tabs button::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); transform: translateY(-50%) scale(0); transition: transform 0.35s var(--ease); }
.seg-tabs button:hover { color: var(--graphite); }
.seg-tabs button[aria-selected="true"] { color: var(--ink); padding-left: 28px; }
.seg-tabs button[aria-selected="true"]::before { transform: translateY(-50%) scale(1); }
.seg-panel { padding-top: 14px; }
.seg-panel h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem); font-weight: 740; font-stretch: 110%; line-height: 1.15; letter-spacing: -0.015em; max-width: 22ch; }
.seg-panel p { margin-top: 18px; color: var(--muted); max-width: 56ch; }
.seg-panel:not([hidden]) { animation: swap 0.5s var(--ease); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; }
@media (max-width: 860px) { .seg-grid { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- clientes */
.proof { padding: clamp(64px, 8vw, 110px) 0; background: var(--paper); border-top: 1px solid var(--line); overflow: hidden; }
.marquee { margin: 28px 0 clamp(48px, 6vw, 80px); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: clamp(24px, 4vw, 56px); width: max-content; animation: marquee 38s linear infinite; }
.marquee-track img { width: clamp(84px, 9vw, 120px); height: auto; mix-blend-mode: multiply; opacity: 0.85; filter: grayscale(1); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.installs-title { font-size: var(--fs-h3); font-weight: 700; font-stretch: 108%; letter-spacing: -0.01em; margin-bottom: 20px; }
.installs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.installs figure { display: grid; gap: 10px; }
.installs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.installs figcaption { font-size: var(--fs-small); color: var(--muted); line-height: 1.35; }
@media (max-width: 900px) { .installs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .installs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ----------------------------------------------------------------- empresa */
.about { padding: clamp(96px, 12vw, 160px) 0; background: var(--room); color: var(--text-dark); }
.about-grid { display: grid; gap: clamp(48px, 6vw, 88px); }
.about-text { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: end; }
.about-text .h2 { color: #fff; max-width: 14ch; }
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--room-line); }
.perks li { padding: 24px 24px 0 0; }
.perks li + li { padding-left: 24px; border-left: 1px solid var(--room-line); }
.perks h3 { font-size: 1.125rem; font-weight: 720; font-stretch: 106%; display: flex; align-items: center; gap: 10px; }
.perks h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; }
.perks p { margin-top: 8px; color: var(--muted-dark); font-size: 0.9688rem; }
.units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.unit { padding: 26px; border-radius: 6px; background: var(--room-2); border: 1px solid var(--room-line); display: grid; gap: 10px; align-content: start; }
.unit h3 { font-size: 1.125rem; font-weight: 720; }
.unit p { color: var(--muted-dark); font-size: 0.9688rem; }
.unit a:not(.link) { color: #fff; font-weight: 650; text-decoration-color: var(--cyan); text-underline-offset: 3px; }
.unit .link { justify-self: start; margin-top: 4px; }
@media (max-width: 960px) {
  .about-text { grid-template-columns: minmax(0, 1fr); }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks li:nth-child(3) { padding-left: 0; border-left: 0; }
  .perks li { padding-bottom: 20px; }
  .units { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .perks { grid-template-columns: minmax(0, 1fr); }
  .perks li, .perks li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--room-line); }
}

/* --------------------------------------------------------------------- faq */
.faq { padding: clamp(80px, 10vw, 140px) 0; background: var(--screen); }
.faq-grid { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 680; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--graphite); transition: transform 0.35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--muted); max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------------------- contato */
.contact { padding: clamp(96px, 12vw, 160px) 0; background: var(--room); color: var(--text-dark); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%; background: radial-gradient(closest-side, rgba(0, 193, 221, 0.18), transparent); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-text .h2 { color: #fff; }
.contact-text .lead { margin-top: 18px; }
.contact-alt { margin-top: 28px; color: var(--muted-dark); }
.contact-alt a { color: #fff; font-weight: 650; text-decoration-color: var(--cyan); text-underline-offset: 3px; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field-wide, .form-error, .contact-form .btn { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 600; color: #cfe0e4; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border-radius: 6px; border: 1px solid rgba(190, 230, 240, 0.22);
  background: rgba(255, 255, 255, 0.04); color: #fff;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9fb5bc 50%), linear-gradient(135deg, #9fb5bc 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #6f8a92; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: rgba(0, 193, 221, 0.06); }
.field input[aria-invalid="true"] { border-color: var(--ir); }
.form-error { color: #ff9b8f; font-weight: 600; }
.contact-form .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .contact-form .btn { width: 100%; }
}

/* ------------------------------------------------------------------ footer */
.site-footer { background: #050c10; color: var(--muted-dark); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--room-line); }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.brand-footer img { height: 28px; }
.brand-footer .logo-dark { display: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; }
.footer-nav a { text-decoration: none; color: #cfe0e4; font-weight: 550; }
.footer-nav a:hover { color: var(--cyan); }
.legal { grid-column: 1 / -1; font-size: 0.8125rem; padding-top: 24px; border-top: 1px solid var(--room-line); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } .footer-nav { justify-content: flex-start; } }

.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cyan); color: #062a31;
  box-shadow: 0 12px 30px rgba(0, 120, 140, 0.35);
  transition: transform 0.3s var(--ease), opacity 0.4s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }
.js .wa-float { opacity: 0; pointer-events: none; }
.js .wa-float.is-on { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------- movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero, .anatomy, .film { height: auto; }
  .hero-sticky, .anatomy-sticky, .film-sticky { position: relative; height: 100svh; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .film-steps li { opacity: 1; position: static; transform: none; }
  .layer { opacity: 1; }
  .layer p, .layer .specs { max-height: none; }
}
