/* Tokens de tipografia e espaçamento da marca. Carregado depois de style.css,
   para que os sistemas de interação, movimento e cor continuem independentes. */
:root {
  --font-heading: 'Manrope', 'Manrope Fallback', ui-sans-serif, sans-serif;
  --font-body: 'Inter', 'Inter Fallback', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-display: clamp(2.5rem, 3.8vw, 3.75rem);
  --text-section: clamp(2rem, 3.5vw, 3.25rem);
  --text-subheading: clamp(1.125rem, 1.6vw, 1.375rem);
  --text-lead: clamp(1.0625rem, 1.4vw, 1.1875rem);
  --text-body: 1rem;
  --text-small: .9375rem;
  --text-ui: .875rem;
  --text-caption: .8125rem;
  --text-label: .75rem;
  --text-metric: clamp(2.5rem, 4vw, 3.5rem);
  --text-quote: clamp(1.5rem, 2.6vw, 2rem);
  --weight-heading: 600;
  --weight-emphasis: 600;
  --tracking-display: -.025em;
  --tracking-heading: -.02em;
  --tracking-label: .1em;
  --leading-display: 1.14;
  --leading-heading: 1.2;
  --leading-subheading: 1.4;
  --leading-body: 1.65;
  --leading-ui: 1.5;
  --section-space: clamp(4.5rem, 7.5vw, 7rem);
  --content-gap: clamp(2rem, 4vw, 3.5rem);
  --page-gutter: clamp(1.25rem, 3vw, 2.75rem);
}
body { font-family: var(--font-body); font-size: var(--text-body); }
button, input, select, textarea, table { font-family: var(--font-body); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--weight-heading); text-wrap: balance; }
h1 { font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); margin-bottom: 24px; }
h2 { font-size: var(--text-section); line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); max-width: 900px; margin-bottom: 24px; }
h3 { font-size: var(--text-subheading); line-height: var(--leading-subheading); letter-spacing: var(--tracking-heading); }
p { text-wrap: pretty; }
.lead { font-size: var(--text-lead); line-height: var(--leading-body); max-width: 65ch; }
.eyebrow { font-family: var(--font-body); font-size: var(--text-label); font-weight: var(--weight-emphasis); letter-spacing: var(--tracking-label); line-height: var(--leading-ui); margin-bottom: 20px; }
.brand { font-family: var(--font-heading); font-weight: 700; letter-spacing: var(--tracking-heading); }
.button { font-weight: var(--weight-emphasis); line-height: var(--leading-ui); }
.button { font-size: var(--text-ui); }
.button.large { font-size: var(--text-small); }
.container, .hf-wrap { width: min(calc(100% - var(--page-gutter) * 2), var(--max)); }
.section { padding-block: var(--section-space); }
.hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--content-gap); }
.hero-copy, .case-grid > * { min-width: 0; }
.hero-copy .lead { max-width: 52ch; }
.hero-kicker { font-size: var(--text-caption); line-height: var(--leading-ui); margin-bottom: 24px; }
.hero-kicker span { flex-shrink: 0; }
.hf-heading { margin-bottom: var(--content-gap); }
.hf-wrap { gap: var(--content-gap); }
.hf-item { border-radius: 12px; background: transparent; }
.hf-item.active { background: var(--panel); }
.hf-item-header { font-family: var(--font-body); }
.hf-item-title { font-size: var(--text-subheading); font-weight: var(--weight-emphasis); line-height: var(--leading-subheading); letter-spacing: -.01em; }
.hf-item-num { font-family: var(--font-body); font-size: var(--text-label); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-label); }
.hf-item-desc, .benefit p { font-size: var(--text-small); line-height: var(--leading-body); }
.hf-item-bullets li { font-size: var(--text-ui); line-height: var(--leading-body); }
.case-grid { margin-top: var(--content-gap); gap: var(--content-gap); }
/* Benefícios lidos como um índice editorial, distinto dos painéis interativos. */
.benefits-grid { margin-top: var(--content-gap); border-left: 0; column-gap: 32px; }
.benefit { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-content: start; column-gap: 14px; min-height: 0; padding: 30px 0; border-right: 0; background: transparent; }
.benefit-icon { width: 24px; height: 30px; margin: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: var(--text-body); }
.benefits-grid .benefit-icon { overflow: visible; filter: drop-shadow(0 2px 6px rgba(0,121,255,.20)); }
.benefit h3 { margin-bottom: 10px; }
.benefit p { grid-column: 2; }
.metric strong { font-family: var(--font-heading); font-size: var(--text-metric); font-weight: var(--weight-heading); line-height: var(--leading-display); letter-spacing: var(--tracking-display); font-variant-numeric: lining-nums tabular-nums; }
.quote { font-family: var(--font-heading); font-size: var(--text-quote); font-weight: 500; line-height: 1.4; letter-spacing: var(--tracking-heading); text-wrap: pretty; }
.metric span { font-size: var(--text-ui); line-height: var(--leading-ui); }
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 760px; }
  .hero-copy h1 { max-width: 22ch; }
}
@media (max-width: 760px) {
  :root { --text-display: clamp(2.25rem, 7.8vw, 3.5rem); --text-section: clamp(1.875rem, 6.5vw, 2.5rem); }
  .hero-copy h1 { max-width: none; }
  .benefit { padding-block: 24px; }
}

/* Mais espaço nas laterais em desktop, sem alterar tablet ou celular. */
@media (min-width: 1061px) and (max-width: 1599px) {
  :root {
    --max: 1380px;
    --page-gutter: clamp(32px, 4vw, 64px);
  }
}

/* Desktops grandes: conteúdo mais largo com teto fixo em --max (nunca encolhe em ultrawide). */
@media (min-width: 1600px) {
  :root { --max: 1720px; --page-gutter: 88px; }
  .container, .hf-wrap { width: min(calc(100% - var(--page-gutter) * 2), var(--max)); }
  #case .quote { max-width: 85%; }
}

/* Telas desktop/notebook com altura útil menor (ex.: MacBook 13"/14", 1280×800, 1366×768):
   escala fluida por altura (dvh) para manter título, formulário, logos e vídeo 100% na 1ª dobra. */
@media (min-width: 1061px) and (max-height: 820px) {
  .hero {
    min-height: min(100dvh, 760px);
    padding: 76px 0 18px;
  }
  .hero-grid { gap: clamp(28px, 3.2vw, 48px); }
  .hero .hero-kicker { margin-bottom: 10px; font-size: 12px; }
  .hero-copy h1 {
    font-size: clamp(2.15rem, min(3.45vw, 5.6dvh), 3.2rem);
    line-height: 1.09;
    margin-bottom: 12px;
  }
  .hero-copy .lead {
    font-size: clamp(0.9375rem, min(1.22vw, 2.2dvh), 1.0625rem);
    line-height: 1.5;
    margin-bottom: 0;
  }
  .hero-lead-box { margin-top: 14px; }
  .hero-lead-form { padding: 10px; border-radius: 15px; }
  .hero-lead-fields { gap: 8px; }
  .hero-lead-field,
  .hero-lead-phone { height: 42px; }
  .hero-lead-input { font-size: 15px; }
  .hero-lead-submit { min-height: 44px; font-size: 14.5px; }
  .hero-lead-hint { margin-top: 6px; font-size: 12px; }
  .hero-lead-legal { margin: 4px 4px 0; font-size: 12px; }
}
@media (min-width: 1061px) and (max-height: 700px) {
  .hero {
    min-height: 100dvh;
    padding: 72px 0 14px;
  }
  .hero .hero-kicker { margin-bottom: 8px; }
  .hero-copy h1 {
    font-size: clamp(2rem, min(3.2vw, 5.4dvh), 2.75rem);
    line-height: 1.07;
    margin-bottom: 10px;
  }
  .hero-lead-box { margin-top: 10px; }
  .hero-lead-field,
  .hero-lead-phone { height: 40px; }
  .hero-lead-submit { min-height: 42px; }
}

/* O brilho do hero se estende mais pelo fundo do header em desktop. */
@media (min-width: 1061px) {
  body {
    background:
      radial-gradient(1200px 820px at 84% -2%, rgba(0,121,255,.055), transparent 68%),
      radial-gradient(760px 560px at 14% 44%, rgba(0,121,255,.025), transparent 70%),
      var(--bg);
  }
}

/* Ajustes de leitura exclusivos do desktop. */
@media (min-width: 1061px) {
  .hero .hero-kicker { margin-bottom: 16px; }
  .hero-copy h1 { margin-bottom: 16px; }
  .hero-copy .lead { max-width: 72ch; margin-bottom: 0; }
  #case .metric span { display: block; max-width: 32ch; }
  #beneficios .benefit p { max-width: 30ch; }
}

/* Possibilidades: título e tags de materiais acima de uma galeria em largura total.
   As tags se alinham à última linha do título para que ambos formem um bloco. */
.poss-heading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--content-gap);
  align-items: end;
}
.poss-heading-grid h2 { margin-bottom: 0; }
#possibilidades .mosaic {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  align-items: center;
  min-height: 0;
  max-width: none;
  margin-top: var(--content-gap);
}
#possibilidades .shot {
  position: relative;
  inset: auto;
  width: 100%;
  transform: none;
  border-radius: 12px;
}
#possibilidades .shot img { width: 100%; height: auto; }
@media (max-width: 1060px) {
  .poss-heading-grid { grid-template-columns: minmax(0, 1fr); }
  #possibilidades .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Ângulos alternados e suaves recuperam o caráter de colagem original. */
#possibilidades .shot.one { transform: rotate(-2deg); }
#possibilidades .shot.two { transform: rotate(2deg); }
#possibilidades .shot.three { transform: rotate(-1deg); }
#possibilidades .shot.four { transform: rotate(1deg); }
#possibilidades .shot.five { transform: rotate(-2deg); }
/* Tipos de material como tags; "Entre outros" tracejado e esmaecido, lido como "e mais". */
#possibilidades .category-grid { display: flex; flex-wrap: wrap; gap: 10px; border-top: 0; }
#possibilidades .category {
  margin: 0;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--text-small);
  line-height: var(--leading-ui);
}
#possibilidades .category.more { border-style: dashed; color: var(--muted); }

/* Celular: tags menores e a galeria como um letreiro contínuo e inclinado.
   A trilha contém as imagens e os clones criados pelo JS, então -50% é uma volta exata. */
#possibilidades .mosaic-track { display: contents; }
#possibilidades .shot-clone { display: none; }
@media (max-width: 600px) {
  #possibilidades .category-grid { gap: 8px; }
  #possibilidades .category { padding: 7px 14px; font-size: var(--text-ui); }
  #possibilidades .mosaic {
    display: block;
    overflow: hidden;
    margin: calc(var(--content-gap) - 20px) calc(50% - 50vw) -16px;
    padding-block: 20px 36px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  #possibilidades .mosaic-track {
    display: flex;
    width: max-content;
    animation: poss-marquee 34s linear infinite;
  }
  #possibilidades .shot,
  #possibilidades .shot-clone {
    display: block;
    flex: none;
    width: auto;
    height: 200px;
    margin-right: 18px;
    box-shadow: 0 10px 24px rgba(2,22,42,.10);
  }
  #possibilidades .shot img { width: auto; max-width: none; height: 100%; }
}
@keyframes poss-marquee { to { transform: translateX(-50%); } }
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  #possibilidades .mosaic { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  #possibilidades .mosaic-track { animation: none; padding-inline: var(--page-gutter); }
  #possibilidades .shot-clone { display: none; }
}
