/* Yosep Embalagem · protótipo de direção visual */
:root {
  --navy: #07164a;
  --navy-deep: #040d33;
  --blue: #005ac6;
  --sky: #0aa6ef;
  --ice: #f2f6fc;
  --ice-2: #e4ecf7;
  --ink: #07164a;
  --ink-2: #364567;
  --ink-3: #5d6a86;
  --line: rgba(7, 22, 74, .12);
  --white: #fff;
  --bar: 76px;
  /* contêiner compartilhado: barra, abertura, cenas, catálogo, cotação e rodapé */
  --maxw: 1320px;
  --gut: clamp(24px, 4.6vw, 64px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-rise: cubic-bezier(.22, .9, .24, 1);
  --display: "Archivo", "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); scrollbar-color: var(--navy) var(--ice) }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--display);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--sky); color: var(--navy) }
img { display: block; max-width: 100%; height: auto }
a { color: inherit; text-underline-offset: .2em }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance }
p { margin: 0; text-wrap: pretty }
button, input, textarea { font: inherit; color: inherit }
:focus-visible { outline: 2.5px solid var(--sky); outline-offset: 3px; border-radius: 3px }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut) }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 4px }
.skip:focus { top: 12px }

/* ---------- Marca ---------- */
/* as cores da marca passam por variáveis, que atravessam o <use> */
.r-trail { fill: var(--m-trail, var(--blue)) }
.r-curve, .r-top { fill: var(--m-sky, var(--sky)) }
.r-left { fill: var(--m-left, var(--navy)) }
.r-right { fill: var(--m-right, var(--blue)) }
.brand-word { fill: var(--m-word, var(--navy)) }
.brand-sub { fill: var(--m-sub, var(--navy)); font: 700 25px/1 var(--display); letter-spacing: 7.2px; font-stretch: 100% }

/* ---------- Botões ---------- */
.btn {
  --h: 46px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--h); padding: 0 1.25em;
  border: 1.5px solid transparent; border-radius: 6px;
  font: 700 .95rem/1 var(--display); font-stretch: 88%; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97) }
.btn--lg { --h: 56px; padding: 0 1.6em; font-size: 1.02rem }
.btn--navy { background: var(--navy); color: #fff }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -14px rgba(0, 90, 198, .9) }
.btn--line { border-color: rgba(7,22,74,.28); color: var(--navy); background: rgba(255,255,255,.8) }
.btn--white { background: #fff; color: var(--navy) }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent }
@media (hover: hover) {
  .btn--navy:not(.fx):hover { background: var(--blue) }
  .btn--blue:not(.fx):hover { background: #004fae; box-shadow: 0 14px 28px -14px rgba(0, 90, 198, .9) }
  .btn--line:not(.fx):hover { border-color: var(--navy); background: #fff }
  .btn--white:not(.fx):hover { background: var(--sky) }
  .btn--ghost:not(.fx):hover { border-color: #fff }
}
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor }
/* ---------- CTAs: o círculo cresce até preencher e a seta troca ----------
   Adaptado do Arrow Fill Button (Hyperiux). app.js monta .fx-l (texto),
   .fx-fill (a mesma etiqueta na cor invertida, recortada no círculo) e
   .fx-ic (duas setas). .on vem do mouse, ou do toque por 450 ms.        */
.fx {
  --c: calc(var(--h) - 12px); --r: 5px; --y: calc(50% - var(--c) / 2);
  --fx-ease: cubic-bezier(.785, .135, .15, .86);
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  border-radius: 99px; overflow: hidden; isolation: isolate;
  padding-left: 1.45em; padding-right: calc(var(--c) + var(--r) + .95em);
}
.fx-l { position: relative; white-space: nowrap }
.fx-fill {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: inherit;
  padding: inherit; border-radius: inherit; pointer-events: none;
  background: var(--fx-bg); color: var(--fx-text);
  clip-path: inset(var(--y) var(--r) var(--y) calc(100% - var(--r) - var(--c)) round 99px);
  transition: clip-path .45s var(--fx-ease);
}
.fx-ic {
  position: absolute; z-index: 3; right: var(--r); top: 50%;
  width: var(--c); height: var(--c); margin-top: calc(var(--c) / -2);
  border-radius: 50%; overflow: hidden; pointer-events: none;
  background: var(--fx-bg); color: var(--fx-ico);
}
.fx-ic i {
  position: absolute; left: 50%; top: 50%; width: 46%; height: 46%;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
  transform: translate(-50%, -50%);
  transition: transform .45s var(--fx-ease);
}
.fx-ic i:first-child { transform: translate(-170%, -50%) scale(0) }
.fx:is(.on, :focus-visible) .fx-fill { clip-path: inset(0 0 0 0 round 99px) }
.fx:is(.on, :focus-visible) .fx-ic i:first-child { transform: translate(-50%, -50%) }
.fx:is(.on, :focus-visible) .fx-ic i:last-child { transform: translate(70%, -50%) scale(0) }
.btn--blue.fx { border-color: var(--blue); --fx-bg: #fff; --fx-text: var(--blue); --fx-ico: var(--blue) }
.btn--line.fx { border-color: var(--navy); background: #fff; --fx-bg: var(--navy); --fx-text: #fff; --fx-ico: #fff }
.btn--navy.fx { border-color: var(--navy); --fx-bg: var(--blue); --fx-text: #fff; --fx-ico: #fff }
.add.fx { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") }
.add.fx[aria-pressed="true"] { border-color: var(--blue); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); --fx-bg: #fff; --fx-text: var(--blue); --fx-ico: var(--blue) }
@media (prefers-reduced-motion: reduce) { .fx-fill, .fx-ic i { transition: none } }

.count {
  display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .35em;
  border-radius: 99px; background: var(--sky); color: var(--navy);
  font: 800 .78rem/1 var(--display); font-variant-numeric: tabular-nums;
}
.count[hidden] { display: none }
.bump { animation: bump .42s var(--ease-out) }
@keyframes bump { 35% { transform: scale(1.18) } }

/* ---------- Barra ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar);
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.js .bar { animation: bar-in .5s var(--ease-out) both }
@keyframes bar-in { from { opacity: 0; transform: translateY(-10px) } }
.bar.scrolled { border-bottom-color: var(--line) }
.bar-in { height: 100%; display: flex; align-items: center; gap: 2rem }
.brand { display: block; height: 46px; flex: none; border-radius: 4px }
.brand svg { height: 100%; width: auto; display: block }
.nav { display: flex; gap: .4rem; margin-left: auto }
.nav a {
  position: relative; padding: .7rem .8rem; border-radius: 6px;
  font: 600 .95rem/1 var(--display); font-stretch: 92%; text-decoration: none; color: var(--ink-2);
  transition: color .18s, background-color .18s;
}
.nav a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .38rem; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease-out) }
.nav a:active { background: var(--ice) }
@media (hover: hover) {
  .nav a:hover { color: var(--navy) }
  .nav a:hover::after { transform: scaleX(1) }
}

/* ---------- Abertura ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 700px);
  padding-top: var(--bar);
  display: grid; grid-template-rows: 1fr;
  /* o azul claro do chão some no branco da próxima seção, sem linha divisória */
  background:
    radial-gradient(60% 46% at 68% 74%, var(--ice-2) 0%, rgba(228,236,247,.55) 45%, rgba(242,246,252,0) 75%),
    linear-gradient(#fff 0%, #fff 42%, var(--ice) 76%, #fff 100%);
  isolation: isolate;
}
.hero-in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); align-items: center;
  column-gap: clamp(16px, 2vw, 40px);
}
.hero-copy { position: relative; z-index: 3; padding-block: 4vh 6vh }
.title {
  font-size: clamp(2.9rem, 5.4vw, 5.9rem);
  font-weight: 850; font-stretch: 72%;
  line-height: .92; letter-spacing: -.02em;
  color: var(--navy);
}
.title em { font-style: normal; color: var(--blue) }
.title .ln { padding-bottom: .1em; margin-bottom: -.1em }
.lede { margin-top: 1.6rem; max-width: 30em; font-size: clamp(1.05rem, 1.2vw, 1.18rem); color: var(--ink-2) }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem }

/* ---------- Revelação dos títulos: uma faixa azul por linha visível ----------
   .ln é a linha, .tx tem a largura exata do texto e .gl é o texto. A faixa
   cresce da primeira letra ao último caractere; com a linha coberta o texto
   liga por trás, e a faixa se recolhe pela esquerda até sumir no fim dele.  */
.ln { display: block; white-space: nowrap }
.tx { position: relative; display: inline-block }
.rv-run .ln { --d: calc(var(--i, 0) * 120ms + 40ms) }
.rv-run .gl { animation: rv-text .88s linear var(--d) both }
.rv-run .tx::after {
  content: ""; position: absolute; left: 0; right: -.02em; top: .05em; bottom: -.07em;
  background: var(--blue); pointer-events: none;
  animation: rv-bar .88s linear var(--d) both;
}
@keyframes rv-text { 0%, 49.9% { opacity: 0 } 50%, 100% { opacity: 1 } }
@keyframes rv-bar {
  0%   { clip-path: inset(0 100% 0 0); animation-timing-function: cubic-bezier(.65, 0, .35, 1) }
  46%  { clip-path: inset(0 0 0 0) }
  54%  { clip-path: inset(0 0 0 0); animation-timing-function: cubic-bezier(.3, .55, .15, 1) }
  100% { clip-path: inset(0 0 0 100%) }
}
.title .ln:nth-child(1) { --i: 0 }
.title .ln:nth-child(2) { --i: 1 }
.title .ln:nth-child(3) { --i: 2 }
/* à espera da vez: invisível, mas presente para leitor de tela e foco */
.js .hero:not(.revealed) .title,
.js :is(.scene h2, .catalog h2, .item h3, .quote h2):not([data-rv]) { opacity: 0 }

.js .hero:not(.revealed) .after { opacity: 0; transform: translateY(12px) }
.hero.revealed .after { transition: opacity .45s ease-out .55s, transform .55s var(--ease-out) .55s }

/* sem vídeo, movimento reduzido ou segurança: conteúdo imediato */
.hero.instant .after { transition: none !important }
.intro-safe .hero .after { transform: none; opacity: 1 }
.intro-safe .hero .title, .intro-safe :is(.scene h2, .catalog h2, .item h3, .quote h2) { opacity: 1 !important }
@media (prefers-reduced-motion: reduce) {
  .js .hero .title, .js :is(.scene h2, .catalog h2, .item h3, .quote h2),
  .js .hero .after { opacity: 1 !important; animation: none !important; transition-delay: 0s }
  .js .hero .after { transform: none !important }
}

.hero-media {
  position: relative; z-index: 1;
  aspect-ratio: 16 / 9;
  margin-right: calc(-1 * min(var(--gut), 72px));
  margin-left: -10%;
  /* o vídeo tem fundo branco: multiplicado, ele assume o fundo da página */
  mix-blend-mode: multiply;
  /* fade só nas duas laterais, onde a fita amarela e a bobina preta são cortadas;
     o centro fica nítido e o topo e a base ficam fora do efeito */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.hero-video, .hero-final { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain }
.hero-final { opacity: 0 }
.hero.no-video .hero-video { visibility: hidden }
.hero.no-video .hero-final { opacity: 1 }

/* Desktop: o título fica em três linhas grandes na margem do contêiner e o vídeo
   sai da grade para tomar a direita da tela. As frações vêm do quadro final:
   os produtos ocupam de 12,2% a 87,4% da largura e de 9,9% a 95,4% da altura. */
@media (min-width: 1041px) {
  .hero { min-height: max(100svh, 620px); overflow: clip }
  .hero-in { position: static; display: flex; align-items: center }
  .hero { --fs: min(5.6vw, 12.4svh, 7rem); --inset: max(var(--gut), (100vw - var(--maxw)) / 2) }
  .title { font-size: var(--fs); width: max-content }
  /* o texto assenta um pouco acima do meio: sobra chão para os produtos */
  .hero-copy { padding-block: 0 11vh }
  .lede { max-width: min(28em, 32vw) }
  .hero-media {
    /* posição de reserva; fitHero() em app.js mede o título e ajusta tamanho e lugar */
    --mw: min(78vw,
              calc((99vw - var(--inset) - 7.2 * var(--fs) - 16px) / .577),
              calc((100svh - var(--bar) - 24px) / .481));
    position: absolute;
    width: var(--mw);
    left: calc(99% - .874 * var(--mw));
    top: calc(var(--bar) + (100% - var(--bar)) / 2 - .292 * var(--mw));
    margin: 0;
  }
}

/* ---------- Cenas: um clipe do Flow por produto ---------- */
/* As cenas se sobrepõem: a seguinte fixa antes de a anterior soltar, e as duas
   trocam por fade. Âncoras caem no meio do clipe. */
.scene { position: relative; height: 220vh; scroll-margin-top: -100vh; pointer-events: none }
.scene + .scene { margin-top: -118vh; margin-top: -118svh }
.pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}
.pin-in {
  height: 100%;
  padding-top: var(--bar);
  display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(300px, .78fr);
  align-items: center; column-gap: clamp(28px, 3.4vw, 64px);
}
/* Em telas largas o conteúdo das cenas usa mais espaço que o resto do site,
   que fica no --maxw padrão: aqui só esta grade ganha um teto maior. */
@media (min-width: 1041px) { .pin-in { --maxw: 1560px } }
.still { display: none }

/* Produto à esquerda, em palco branco contínuo com o branco do clipe */
.product {
  position: relative; z-index: 2;
  width: min(100%, calc((100svh - var(--bar) - 36px) * 16 / 9));
  justify-self: end;
  aspect-ratio: 16 / 9;
  will-change: transform, opacity;
}
.clip {
  position: relative; width: 100%; height: 100%;
  background: #fff;
  -webkit-mask-image: radial-gradient(ellipse 74% 84% at 50% 50%, #000 66%, transparent 100%);
          mask-image: radial-gradient(ellipse 74% 84% at 50% 50%, #000 66%, transparent 100%);
}
.clip .poster, .clip canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block }
.clip canvas { opacity: 0 }
.clip.ready canvas { opacity: 1 }

/* Texto à direita, dentro do contêiner */
.copy { position: relative; z-index: 6; pointer-events: auto; max-width: 500px; will-change: transform, opacity }
.scene h2 {
  font-size: clamp(2.8rem, 5.3vw, 5rem);
  font-weight: 850; font-stretch: 70%;
  line-height: .9; letter-spacing: -.02em;
  color: var(--navy);
}
.card {
  margin-top: 1.7rem;
  padding: 1.6rem 1.7rem 1.7rem;
  background: rgba(242, 246, 252, .72);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.card .desc { font-size: 1.14rem; line-height: 1.55; color: var(--ink-2) }
.spec { margin: 1.15rem 0 1.3rem; padding-top: .95rem; border-top: 1px solid var(--line); display: grid; gap: .25rem }
.spec dt { font: 700 .74rem/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3) }
.spec dd { margin: 0; font: 600 .94rem/1.35 var(--display); font-stretch: 92%; color: var(--ink-3) }
.card .add { width: 100%; justify-content: space-between }
.card .add.fx { justify-content: flex-start }
.card .add:not(.fx)::after {
  content: ""; width: 12px; height: 12px; flex: none;
  background: linear-gradient(currentColor, currentColor) 50%/100% 2px no-repeat, linear-gradient(currentColor, currentColor) 50%/2px 100% no-repeat;
  transition: transform .28s var(--ease-out);
}
.card .add[aria-pressed="true"] { background: var(--blue) }
.card .add:not(.fx)[aria-pressed="true"]::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") 50%/100% no-repeat;
  width: 16px; height: 16px;
}

/* ---------- Catálogo ---------- */
.catalog { position: relative; padding-block: clamp(96px, 11vw, 156px) clamp(80px, 9vw, 128px); background: #fff }
.catalog-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem 6vw; margin-bottom: 3rem }
.catalog h2 { font-size: clamp(3.2rem, 7vw, 5.8rem); font-weight: 850; font-stretch: 70%; line-height: .88; letter-spacing: -.02em }
.catalog-head p { max-width: 34em; color: var(--ink-2); font-size: 1.1rem }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--navy); border-left: 1px solid var(--line) }
.item { position: relative; display: flex; flex-direction: column; padding: 1.4rem 1.6rem 1.7rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background-color .3s }
.item figure { margin: 0 0 1.2rem; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(70% 40% at 50% 86%, var(--ice-2), rgba(228,236,247,0) 70%) }
.item img { max-width: 78%; max-height: 82%; width: auto; object-fit: contain; transition: transform .6s var(--ease-out) }
.js .item:not(.in) img { transform: translateY(-22px) }
@media (hover: hover) {
  .item:hover { background: var(--ice) }
  .item:hover img { transform: translateY(-6px) }
}
.item h3 { font-size: 1.65rem; font-weight: 800; font-stretch: 78%; line-height: 1.05; letter-spacing: -.01em }
.item p { margin-top: .45rem; color: var(--ink-2); flex: 1 }
.item .add {
  margin-top: 1.3rem; align-self: flex-start;
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: .55rem 0; border: 0; background: none; cursor: pointer;
  font: 700 .95rem/1 var(--display); font-stretch: 88%; color: var(--blue);
  transition: color .18s;
}
.item .add::before {
  content: ""; width: 22px; height: 22px; flex: none; border: 1.5px solid currentColor; border-radius: 5px;
  background: linear-gradient(currentColor, currentColor) 50%/10px 2px no-repeat, linear-gradient(currentColor, currentColor) 50%/2px 10px no-repeat;
  transition: background-color .2s, transform .16s var(--ease-out);
}
.item .add:active::before { transform: scale(.9) }
.item .add[aria-pressed="true"] { color: var(--navy) }
.item .add[aria-pressed="true"]::before {
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") 50%/16px no-repeat;
  border-color: var(--navy);
}
@media (hover: hover) { .item .add:hover { color: var(--navy) } }

/* ---------- Cotação: revisão ---------- */
.quote { padding-block: clamp(88px, 10vw, 150px); background: var(--navy); color: #fff }
.quote-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem 7vw }
.quote h2 { font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 850; font-stretch: 70%; line-height: .9; letter-spacing: -.02em; outline: none }
.quote-intro > p { margin-top: 1.4rem; max-width: 30em; color: #c4d0ea; font-size: 1.12rem }
.steps { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; max-width: 34rem }
.steps li { display: grid; align-content: start; gap: .25rem; padding: 1rem 1rem 1.1rem; border-radius: 14px; background: rgba(255,255,255,.07); color: #c4d0ea; font-size: .92rem; line-height: 1.35 }
.steps .n { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: .55rem; border-radius: 50%; background: var(--sky); color: var(--navy); font: 800 .9rem/1 var(--display) }
.steps b { color: #fff; font: 750 1.08rem/1.1 var(--display); font-stretch: 86% }
.quote-form { display: grid; gap: 1.6rem; align-content: start }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0 }
legend, .field > span { display: block; margin-bottom: .7rem; font: 700 .82rem/1 var(--display); font-stretch: 90%; letter-spacing: .08em; text-transform: uppercase; color: #9fb4dd }
.field i { font-style: normal; text-transform: none; letter-spacing: 0; color: #8fa4cf }
.chips { display: flex; flex-wrap: wrap; gap: .5rem }
.chip {
  min-height: 44px; padding: 0 1rem; border-radius: 99px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  font: 650 .95rem/1 var(--display); font-stretch: 90%;
  transition: background-color .18s, border-color .18s, color .18s, transform .16s var(--ease-out);
}
.chip:active { transform: scale(.96) }
@media (hover: hover) { .chip:hover { border-color: #fff } }
.chip[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--navy) }
.lines { margin-top: 1rem; display: grid; gap: .5rem }
.lines .empty { padding: .95rem 1.1rem; border-radius: 12px; background: rgba(255,255,255,.05); color: #9fb4dd; font-size: .98rem }
.line { display: grid; grid-template-columns: 1fr minmax(0, 15rem) auto; align-items: center; gap: .8rem; padding: .5rem .5rem .5rem 1rem; border-radius: 12px; background: rgba(255,255,255,.07) }
.line span { font-weight: 700; font-stretch: 88% }
.line input, .field input {
  width: 100%; min-height: 46px; padding: 0 .9rem;
  border: 1.5px solid rgba(255,255,255,.28); border-radius: 6px;
  background: rgba(255,255,255,.06); color: #fff; caret-color: var(--sky);
  transition: border-color .2s, background-color .2s;
}
.line input::placeholder, .field input::placeholder { color: #8fa4cf }
.line input:focus, .field input:focus { outline: none; border-color: var(--sky); background: rgba(255,255,255,.1) }
.line .rm { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #9fb4dd; cursor: pointer }
.line .rm svg { width: 18px; height: 18px }
@media (hover: hover) { .line .rm:hover { color: #fff; background: rgba(255,255,255,.08) } }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem }
.preview { border: 1px dashed rgba(255,255,255,.28); border-radius: 10px; padding: 1rem 1.1rem }
.preview-label { font: 700 .74rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #9fb4dd; margin-bottom: .7rem }
.preview pre { margin: 0; white-space: pre-wrap; font: 500 .95rem/1.55 var(--display); color: #e3eaf8 }
.error { color: #ffc2b4; font-weight: 600 }
.pending { color: #c4d0ea; font-size: .98rem }
.send-row { display: flex; flex-wrap: wrap; gap: .75rem }

/* ---------- Rodapé ---------- */
.foot { padding-block: 64px 80px; background: var(--navy-deep); color: #c4d0ea }
.foot-in { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 2.4rem 6vw }
.foot { --m-left: #fff; --m-word: #fff; --m-sub: var(--sky) }
.foot-brand svg { height: 56px; width: auto; margin-bottom: 1rem }
.foot-info { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem }
.foot-info dt { font: 700 .78rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #8fa4cf; margin-bottom: .4rem }
.foot-info dd { margin: 0; color: #fff; font-weight: 600 }
.foot-note { grid-column: 1 / -1; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: #8fa4cf }

/* ---------- Cotação flutuante ---------- */
.qdock {
  position: fixed; z-index: 70;
  right: max(16px, calc(env(safe-area-inset-right) + 12px));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
  display: flex; flex-direction: column; align-items: flex-end;
  transition: opacity .3s ease-out, transform .4s var(--ease-out), visibility 0s;
}
/* na abertura o atalho de cotação é o da barra; o botão flutuante chega com a rolagem */
.qdock.away { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; transition: opacity .2s, transform .3s, visibility 0s .3s }
.qfab {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 52px; padding: 0 .75rem 0 1.05rem;
  border: 0; border-radius: 99px; cursor: pointer;
  background: var(--navy); color: #fff;
  font: 750 .98rem/1 var(--display); font-stretch: 88%;
  box-shadow: 0 14px 30px -12px rgba(7,22,74,.55), 0 2px 6px rgba(7,22,74,.18);
  transition: background-color .18s, transform .16s var(--ease-out), box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.qfab svg { width: 22px; height: 22px }
.qfab:active { transform: scale(.96) }
.qfab[aria-expanded="true"] { background: var(--blue) }
@media (hover: hover) { .qfab:hover { background: var(--blue) } }
.qcount {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 .4rem;
  border-radius: 99px; background: rgba(255,255,255,.16); color: #fff;
  font: 800 .85rem/1 var(--display); font-variant-numeric: tabular-nums;
  transition: background-color .2s, color .2s;
}
.qcount.has { background: var(--sky); color: var(--navy) }
.qfab.bump { animation: fab-bump .45s var(--ease-out) }
@keyframes fab-bump { 30% { transform: scale(1.06) } }

.qpanel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 32px));
  padding: 1rem 1rem 1.05rem;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(7,22,74,.42), 0 4px 14px rgba(7,22,74,.08);
  transform-origin: 100% 100%;
  animation: panel-in .2s var(--ease-out);
}
/* ponte invisível entre o botão e o painel para o mouse não perder o painel */
.qpanel::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px }
.qpanel[hidden] { display: none }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px) scale(.98) } }
.qhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem }
.qtitle { font: 800 1.15rem/1 var(--display); font-stretch: 80% }
.qclose { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; margin-right: -.4rem }
.qclose svg { width: 18px; height: 18px }
@media (hover: hover) { .qclose:hover { background: var(--ice); color: var(--navy) } }
.qlist { list-style: none; margin: 0; padding: 0; max-height: min(46vh, 320px); overflow: auto }
.qlist li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--line) }
.qlist li:first-child { border-top: 0 }
.qname { font-weight: 700; font-stretch: 90%; line-height: 1.25 }
.qqty { display: block; font-size: .86rem; color: var(--ink-3) }
.qrm { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer }
.qrm svg { width: 16px; height: 16px }
@media (hover: hover) { .qrm:hover { background: var(--ice); color: #b42318 } }
.qempty { padding: .6rem 0 .2rem; color: var(--ink-3); font-size: .95rem }
.qempty[hidden] { display: none }
.qfinish { width: 100%; margin-top: .9rem }
.qfinish[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none }

/* ---------- Passagem automática da abertura para o primeiro produto ----------
   Ao primeiro gesto de rolagem a página não desce: seis faixas azuis cobrem a
   tela, a marca aparece em branco no centro e as faixas saem já sobre a cena da
   caixa. Cada faixa leva a sua fatia de um mesmo degradê. */
.xfade {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-rows: repeat(6, 1fr);
  overflow: hidden; visibility: hidden;
}
.xfade.on { visibility: visible }
.band { --d: 1; position: relative; transform: translate3d(calc(var(--d) * -101%), 0, 0) }
.band:nth-child(even) { --d: -1 }
.band > i {
  /* 1 px de sobra em cima e embaixo: sem fio branco entre faixas vizinhas */
  position: absolute; inset: -1px 0;
  background-image: linear-gradient(112deg, var(--navy) 0%, var(--blue) 52%, var(--sky) 100%);
  background-repeat: no-repeat;
  background-size: 100vw 100vh;
  background-position: 0 calc(var(--b) * -100vh / 6 + 1px);
}
.xfade.cover .band, .xfade.leave .band { transition: transform .36s cubic-bezier(.65, 0, .2, 1) calc(var(--b) * 30ms) }
.xfade.cover .band { transform: none }
.xfade.leave .band { transform: translate3d(calc(var(--d) * 101%), 0, 0) }
.xlogo {
  --m-trail: #fff; --m-sky: #fff; --m-left: rgba(255,255,255,.66); --m-right: rgba(255,255,255,.84); --m-word: #fff; --m-sub: #fff;
  position: absolute; left: 50%; top: 50%;
  width: min(440px, 54vw); height: auto; overflow: visible;
  opacity: 0; transform: translate(-50%, -50%) translateY(18px) scale(.96);
  transition: opacity .2s ease-out, transform .36s var(--ease-out);
}
.xfade.show .xlogo { opacity: 1; transform: translate(-50%, -50%); transition: opacity .24s ease-out, transform .45s var(--ease-out) }

/* ---------- Modo estático: celular e movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  /* passagem estática: as faixas saem de cena e o conteúdo fica sempre disponível */
  .xfade { display: none }
  .scene { height: auto; scroll-margin-top: 0; pointer-events: auto }
  .scene + .scene { margin-top: 0 }
  .pin { position: relative; height: auto; overflow: visible; pointer-events: auto }
  .pin-in { height: auto; padding-block: clamp(48px, 7vw, 96px) }
  .product { display: none }
  .still { display: block; width: 100%; height: auto; max-width: 760px; justify-self: center }
  .copy { transform: none !important; opacity: 1 !important; pointer-events: auto !important }
  .js .item:not(.in) img { transform: none }
}
@media (prefers-reduced-motion: reduce) {
  .js .bar { animation: none }
  .qpanel { animation: none }
  .btn:active, .chip:active, .qfab:active { transform: none }
}

@media (max-width: 1100px) {
  .foot-info { grid-template-columns: repeat(2, 1fr) }
}

/* Entre o celular e o desktop as duas colunas do hero apertam o texto, quebram
   os botões e deixam um vão grande antes da faixa de produtos: empilha antes */
@media (max-width: 1040px) {
  .hero { min-height: auto; grid-template-rows: auto }
  .hero-in { grid-template-columns: 1fr }
  .hero-media { order: -1; justify-self: center; width: 100%; max-width: min(680px, 78svh); margin: 4px 0 -2vw }
  .hero-copy { padding-block: 0 2.6rem }
  .title { font-size: clamp(2.9rem, 6.4vw, 4.4rem) }
  .lede { margin-top: 1.3rem }
  .actions { margin-top: 1.6rem }
}

@media (max-width: 820px) {
  :root { --bar: 64px }
  .nav { display: none }
  .bar-in { justify-content: space-between }
  .brand { height: 38px }
  .bar-cta { --h: 40px; padding: 0 .9em; font-size: .88rem }
  /* hero de uma tela: os produtos em cima, maiores que a largura (as laterais
     do quadro são branco), e o texto com os CTAs na metade de baixo */
  .hero { min-height: 100svh; grid-template-rows: 1fr; grid-template-columns: minmax(0, 1fr); overflow: clip }
  .hero-in { display: flex; flex-direction: column }
  .hero-media {
    --mw: min(134vw, max(112vw, calc((100svh - var(--bar) - 370px) * 2.1)));
    order: -1; flex: none; align-self: center; width: var(--mw); max-width: none;
    margin-block: auto;
  }
  .hero-copy { padding-block: 0 max(28px, 4svh) }
  .title { font-size: clamp(2.1rem, 11.6vw, 4.2rem) }
  .lede { margin-top: 1rem; font-size: 1rem }
  .actions { display: grid; grid-template-columns: 1.45fr 1fr; gap: .6rem; margin-top: 1.4rem }
  .actions .btn { width: 100%; --h: 54px; padding-left: 1.1em; font-size: .98rem }
  /* o secundário sem círculo para os dois caberem lado a lado; o preenchimento nasce na borda */
  .actions .btn--line.fx { --c: 0px; justify-content: center; padding-right: 1.1em }
  .actions .btn--line .fx-ic { display: none }
  .xlogo { width: 64vw }
  .pin-in { grid-template-columns: 1fr; row-gap: 1.6rem }
  .copy { max-width: none }
  .scene h2 { font-size: clamp(2.6rem, 12vw, 3.8rem) }
  .steps li { padding: .85rem .8rem 1rem; font-size: .86rem }
  .catalog-head { grid-template-columns: 1fr; margin-bottom: 2rem }
  .grid { grid-template-columns: 1fr 1fr }
  .quote-in { grid-template-columns: 1fr; gap: 2.4rem }
  .row { grid-template-columns: 1fr }
  .line { grid-template-columns: 1fr auto; }
  .line input { grid-column: 1 / -1; grid-row: 2 }
  .send-row .btn { flex: 1 1 100% }
  .foot { padding-bottom: 120px }
  .foot-in { grid-template-columns: 1fr }
  .foot-info { grid-template-columns: 1fr 1fr }
}
/* Celular com movimento: o mesmo palco do desktop, em coluna. O produto passa
   da largura da tela (as bordas do clipe são branco) e o texto fica centrado. */
@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
  .pin-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; row-gap: 0 }
  .product {
    --pw: min(140vw, max(112vw, calc((100svh - var(--bar) - 380px) * 1.95)));
    justify-self: center; width: var(--pw); margin-block: calc(var(--pw) * -.05) calc(var(--pw) * -.03);
  }
  .copy { width: 100%; max-width: 30rem; justify-self: center; text-align: center }
  .scene h2 { font-size: clamp(2.3rem, 10.5vw, 3.4rem) }
  .card { margin-top: 1rem; padding: 1.1rem 1.1rem 1.15rem }
  .card .desc { font-size: 1rem }
  .spec { margin: .8rem 0 .95rem; padding-top: .7rem }
}
@media (max-width: 359px) {
  .actions { grid-template-columns: 1fr }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr }
  .item { padding: 1.1rem 1.2rem 1.4rem }
  .foot-info { grid-template-columns: 1fr }
}
