/* ==========================================================================
   OLD LAB: Design System de Landing Pages
   Fonte única: Style Guide OLD LAB v1.0 (derivado do BrandBook 2026).
   Nenhum valor fora dos tokens. Geometria reta; único ornamento: chanfro 12px.
   ========================================================================== */

:root {
  /* ---- Marca ---- */
  --ol-red: #DF0C3F;
  --ol-red-hover: #C40A36;
  --ol-red-press: #A80830;
  --ol-red-tint: #FDE6EC;
  --ol-navy: #173B63;
  --ol-navy-deep: #0C2340;
  --ol-navy-mid: #235690;
  --ol-navy-tint: #E7EDF4;
  --ol-gray: #9CABB8;
  --ol-gray-light: #C6D0D9;
  --ol-gray-dark: #5E6C79;
  --ol-ink: #1D1D1B;
  --ol-surface: #242422;
  --ol-offwhite: #EFEFEF;
  --ol-white: #FFFFFF;

  /* ---- Semântica (tema escuro = padrão) ---- */
  --bg: var(--ol-ink);
  --bg-alt: #161615;
  --bg-elev: var(--ol-surface);
  --bg-institutional: var(--ol-navy-deep);
  --text: var(--ol-offwhite);
  --text-muted: rgba(239, 239, 239, 0.72);
  --text-subtle: rgba(239, 239, 239, 0.55);
  --accent: var(--ol-red);
  --border: rgba(156, 171, 184, 0.22);
  --border-strong: rgba(156, 171, 184, 0.4);
  --focus: var(--ol-offwhite);

  /* ---- Tipografia ---- */
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Avenir Next", Avenir, "Nunito Sans", system-ui, sans-serif;
  --fs-display: clamp(3.5rem, 7vw, 6rem);
  --fs-h2: clamp(2.125rem, 4vw, 3.5rem);
  --fs-h3: clamp(1.625rem, 2.4vw, 2rem);
  --fs-lead: clamp(1.125rem, 1.6vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.75rem;
  --lh-display: 0.9;
  --lh-title: 0.95;
  --lh-body: 1.7;
  --tr-display: 0.01em;
  --tr-title: 0.03em;
  --tr-eyebrow: 0.18em;

  /* ---- Espaço (base 4px) ---- */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px; --sp-11: 160px;

  /* ---- Layout ---- */
  --container: 1280px;
  --gutter: 24px;
  --gutter-md: 40px;
  --gutter-lg: 64px;
  --grid-gap: 24px;
  --section-y: 96px;
  --section-y-sm: 64px;
  --header-h: 80px;

  /* ---- Forma ---- */
  --radius: 0px;
  --radius-input: 2px;
  --chamfer: 12px;
  --shadow-float: 0 8px 24px rgba(12, 35, 64, 0.24);

  /* ---- Movimento ---- */
  --dur-micro: 180ms;
  --dur-base: 320ms;
  --dur-reveal: 600ms;
  --ease-lab: cubic-bezier(0.2, 0.7, 0.3, 1);
  --stagger: 80ms;
}

/* ==== Reset / base ==== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--ol-red); color: var(--ol-white); }

/* ==== Tipografia ==== */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); flex: none; }
.eyebrow--plain::before { display: none; }

.display, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
}
.display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--tr-display); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-title); letter-spacing: var(--tr-display); }
.h3 { font-size: var(--fs-h3); line-height: 1; letter-spacing: var(--tr-title); }
.accent { color: var(--accent); }

.lead { font-size: var(--fs-lead); font-weight: 600; line-height: 1.45; color: var(--text-muted); max-width: 34em; }
.body-copy { max-width: 65ch; color: var(--text-muted); }
.small { font-size: var(--fs-small); line-height: 1.6; color: var(--text-subtle); }

/* ==== Layout ==== */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px)  { .container { padding-inline: var(--gutter-md); max-width: calc(var(--container) + 2 * var(--gutter-md)); } }
@media (min-width: 1024px) { .container { padding-inline: var(--gutter-lg); max-width: calc(var(--container) + 2 * var(--gutter-lg)); } }

.section { padding-block: var(--section-y-sm); position: relative; }
@media (min-width: 768px) { .section { padding-block: var(--section-y); } }

.section-head { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-7); max-width: 720px; }
@media (min-width: 768px) { .section-head { margin-bottom: var(--sp-8); } }

/* ==== Chanfro da marca: único ornamento permitido ==== */
.ol-chamfer {
  clip-path: polygon(
    0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer),
    100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer))
  );
}

/* ==== Pattern LL (símbolo repetido, 1 cor, opacidade 8-18%) ==== */
.ll-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1238 1238'%3E%3Cpath fill='%239CABB8' d='M245.91,465.98v319.11c0,146.87,119.06,265.92,265.92,265.92h225.46c5.84,0,10.58-4.73,10.58-10.58v-139.93c0-5.84-4.73-10.58-10.58-10.58h-349.43c-16.44,0-24.68-19.88-13.05-31.5h0c36.79-36.79,57.46-86.69,57.46-138.72v-253.73c0-5.84-4.73-10.58-10.58-10.58h-165.21c-5.84,0-10.58,4.73-10.58,10.58Z'/%3E%3Cpath fill='%239CABB8' d='M519.77,197.74v319.11c0,146.87,119.06,265.92,265.92,265.92h225.46c5.84,0,10.58-4.73,10.58-10.58v-139.93c0-5.84-4.73-10.58-10.58-10.58h-349.43c-16.44,0-24.68-19.88-13.05-31.5h0c36.79-36.79,57.46-86.69,57.46-138.72v-253.73c0-5.84-4.73-10.58-10.58-10.58h-165.21c-5.84,0-10.58,4.73-10.58,10.58Z'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.06;
  z-index: 0;
}
/* Em telas largas o canto mostra o símbolo grande; abaixo disso mantém o tile sutil
   (o recorte parcial do glifo em viewports médios lê como retângulos soltos). */
@media (min-width: 1200px) {
  .ll-pattern--corner {
    background-repeat: no-repeat;
    background-size: min(48vw, 560px);
    background-position: right -80px top -60px;
    opacity: 0.10;
  }
}
.section > .container { position: relative; z-index: 1; }

/* ==== Header ==== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--dur-base) var(--ease-lab), border-color var(--dur-base) var(--ease-lab);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(29, 29, 27, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.site-header__logo img { height: 52px; width: auto; }
.site-header__nav { display: none; gap: var(--sp-6); }
@media (min-width: 1024px) { .site-header__nav { display: flex; } }
.site-header__nav a {
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  transition: color var(--dur-micro) var(--ease-lab);
}
.site-header__nav a:hover { color: var(--text); }

/* ==== Botões ==== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 56px;
  padding: 0 var(--sp-6);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius);
  transition: background var(--dur-micro) var(--ease-lab), border-color var(--dur-micro) var(--ease-lab), color var(--dur-micro) var(--ease-lab);
}
.btn--primary {
  background: var(--ol-red);
  color: var(--ol-white);
  clip-path: polygon(
    0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer),
    100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer))
  );
}
.btn--primary:hover { background: var(--ol-red-hover); }
.btn--primary:active { background: var(--ol-red-press); }
.btn--secondary { border: 1px solid var(--border-strong); color: var(--text); }
.btn--secondary:hover { border-color: var(--ol-red); color: var(--ol-white); }
.btn--sm { min-height: 48px; padding: 0 var(--sp-5); white-space: nowrap; }
@media (max-width: 479px) {
  .site-header .btn--sm { min-height: 44px; padding: 0 var(--sp-4); font-size: 0.75rem; letter-spacing: 0.06em; }
}
.btn[disabled] { opacity: 0.6; cursor: wait; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 700; font-size: var(--fs-small); letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; color: var(--accent);
}
.link-arrow:hover { color: var(--ol-white); }

/* ==== Formulário ==== */
.form-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-float);
  padding: var(--sp-6);
  position: relative;
}
@media (min-width: 768px) { .form-card { padding: var(--sp-7); } }

.field { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field label {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field label .opt { color: var(--text-subtle); font-weight: 400; letter-spacing: 0.04em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--sp-4);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--dur-micro) var(--ease-lab);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239CABB8' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select:invalid { color: var(--text-subtle); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-subtle); }
.field input:hover, .field select:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ol-gray); outline: none; }
.field.has-error input, .field.has-error select { border-color: var(--ol-red); }
.field .error-msg { display: none; font-size: 0.8125rem; color: #F26D8D; }
.field.has-error .error-msg { display: block; }

/* honeypot: invisível para humanos, isca para bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { display: none; text-align: left; padding: var(--sp-6) 0; }
.form-success.is-visible { display: block; }

/* ==== Logo strip (clientes) ==== */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5) var(--sp-6); }
.logo-strip img {
  height: 26px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity var(--dur-micro) var(--ease-lab);
}
.logo-strip img:hover { opacity: 0.9; }
@media (min-width: 768px) { .logo-strip img { height: 30px; } }

/* ==== Cards ==== */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: var(--sp-6);
  transition: border-color var(--dur-micro) var(--ease-lab);
}
.card:hover { border-color: var(--ol-red); }
.card__num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: var(--tr-title);
}

/* ==== Vídeo de depoimento (9:16) ==== */
.video-card { position: relative; background: var(--bg-alt); border: 1px solid var(--border); overflow: hidden; }
.video-card video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.video-card__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(29, 29, 27, 0.35);
  transition: background var(--dur-micro) var(--ease-lab);
}
.video-card__play:hover { background: rgba(29, 29, 27, 0.15); }
.video-card__play .play-btn {
  width: 72px; height: 72px;
  background: var(--ol-red);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background var(--dur-micro) var(--ease-lab);
}
.video-card__play:hover .play-btn { background: var(--ol-red-hover); }
.video-card__play svg { width: 22px; height: 26px; fill: var(--ol-white); margin-left: 3px; }
.video-card.is-playing .video-card__play { display: none; }
.video-card__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background: linear-gradient(180deg, rgba(29,29,27,0) 0%, rgba(29,29,27,0.88) 78%);
  pointer-events: none;
}
.video-card.is-playing .video-card__caption { display: none; }
/* legenda fica sobre gradiente escuro em qualquer tema: cores explícitas */
.video-card__caption strong { display: block; font-family: var(--font-display); font-size: 1.375rem; letter-spacing: var(--tr-title); text-transform: uppercase; line-height: 1; color: var(--ol-white); }
.video-card__caption span { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.75); }

/* ==== Métricas ==== */
.metric { display: grid; gap: var(--sp-2); }
.metric__value { font-family: var(--font-display); font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: 1; color: var(--text); letter-spacing: var(--tr-display); }
.metric__value .accent { color: var(--accent); }
.metric__label { font-size: var(--fs-small); color: var(--text-subtle); max-width: 22ch; }

/* ==== FAQ ==== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  padding: var(--sp-5) 0;
  text-align: left;
  font-size: 1.125rem; font-weight: 700; color: var(--text);
  transition: color var(--dur-micro) var(--ease-lab);
}
.faq-item__q:hover { color: var(--ol-white); }
.faq-item__icon { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); flex: none; line-height: 1; }
.faq-item__a { overflow: hidden; max-height: 0; transition: max-height var(--dur-base) var(--ease-lab); }
.faq-item__a > div { padding: 0 0 var(--sp-5); color: var(--text-muted); max-width: 60ch; }
.faq-item.is-open .faq-item__a { max-height: 400px; }

/* ==== Seção horizontal com pin (SB-001) ==== */
.hscroll { position: relative; overflow: hidden; }
.hscroll__viewport { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; }
.hscroll__track {
  display: flex;
  gap: var(--grid-gap);
  width: max-content;
  padding-inline: var(--gutter);
  will-change: transform;
}
@media (min-width: 768px)  { .hscroll__track { padding-inline: var(--gutter-md); } }
@media (min-width: 1024px) { .hscroll__track { padding-inline: max(var(--gutter-lg), calc((100vw - var(--container)) / 2)); } }
.hscroll__item { flex: none; }

/* Sem JS ou com reduced-motion: vira stack vertical legível */
@media (prefers-reduced-motion: reduce) {
  .hscroll__viewport { min-height: 0; }
  .hscroll__track { flex-direction: column; width: auto; }
}
.no-js .hscroll__track { flex-direction: column; width: auto; }

/* ==== Formulário em etapas (kit padrão) ==== */
.form-step { display: none; border: none; padding: 0; margin: 0; min-inline-size: 0; }
.form-step.is-active { display: block; }
.form-progress { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.form-progress__bar { height: 4px; background: rgba(156, 171, 184, 0.28); }
.form-progress__bar span {
  display: block; height: 100%; background: var(--ol-red);
  transition: width var(--dur-base) var(--ease-lab);
}
.form-step__note { margin-top: var(--sp-3); text-align: center; }
.form-back {
  display: block; margin: var(--sp-4) auto 0;
  font-size: var(--fs-small); color: var(--text-subtle);
  text-decoration: underline; text-underline-offset: 3px;
}
.form-back:hover { color: var(--text); }
.trust-row { list-style: none; margin-top: var(--sp-5); display: grid; gap: var(--sp-2); }
.trust-row li { display: flex; gap: var(--sp-2); align-items: baseline; font-size: 0.8125rem; color: var(--text-subtle); }
.trust-row li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--ol-red); transform: translateY(-1px); }

/* ==== Reveal (estado inicial aplicado só com JS ativo) ==== */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-mask] { clip-path: inset(0 0 100% 0); }

/* ==== Marquee de logos de clientes (full width) ==== */
.logo-marquee {
  overflow: hidden;
  padding-block: var(--sp-6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}
.logo-marquee__label { text-align: center; margin-bottom: var(--sp-5); padding-inline: var(--gutter); }
.logo-marquee__track { display: flex; width: max-content; animation: ol-marquee 30s linear infinite; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__group {
  display: flex; align-items: center; flex: none;
  gap: clamp(40px, 6vw, 96px);
  padding-right: clamp(40px, 6vw, 96px);
}
.logo-marquee img { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: 0.55; }
@keyframes ol-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .logo-marquee__group[aria-hidden="true"] { display: none; }
}

/* ==== Footer ==== */
.site-footer { background: var(--bg-institutional); padding: var(--sp-8) 0 var(--sp-6); position: relative; overflow: hidden; }
/* imagem institucional + vignette azul-escuro (texto sempre por cima, z-index 1) */
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 100% at 50% 35%, rgba(8, 20, 38, 0.8) 0%, rgba(5, 14, 27, 0.97) 100%),
    url('../img/footer_fundo.webp') center / cover no-repeat;
}
/* grain elegante por cima da imagem */
.site-footer::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.3;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.site-footer__grid { display: grid; gap: var(--sp-7); position: relative; z-index: 1; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__logo img { height: 60px; width: auto; }
.site-footer h4 { font-family: var(--font-display); font-size: 1rem; letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: var(--sp-4); }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; transition: color var(--dur-micro) var(--ease-lab); }
.site-footer a:hover { color: var(--ol-white); }
.site-footer ul { list-style: none; display: grid; gap: var(--sp-3); }
.site-footer__bottom { margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.14); font-size: var(--fs-small); color: rgba(255,255,255,0.5); position: relative; z-index: 1; }

/* ==== Utilidades ==== */
.grid { display: grid; gap: var(--grid-gap); }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); } .mt-7 { margin-top: var(--sp-7); } .mt-8 { margin-top: var(--sp-8); }
.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; }

/* ==== Reduced motion global ==== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-mask] { clip-path: none; }
}
