/* Site institucional Infusion Makers.
   Todos os valores vêm de 02-composicao.yaml (L2). Número novo aqui é defeito do L2, não decisão do CSS.
   Tema dark fixo por decisão de marca (identidade-visual-artefatos.md): não reage a prefers-color-scheme. */

@font-face {
  font-family: "Poppins IM";
  src: url("assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter IM";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  /* tokens.color */
  --bg: #1A1A1A;
  --surface-card: #242424;
  --border: #333333;
  --border-translucent: rgba(255, 255, 255, 0.08);
  --fg: #FFFFFF;
  --body-text: #E5E5E5;
  --muted: #A3A3A3;
  --accent: #00D4AA;
  --accent-hover: #7FFFD4;
  --glow: #2D1B69;
  --edge-indigo: #483D8B;
  --on-accent: #1A1A1A;

  /* tokens.radius_px */
  --radius-button: 8px;
  --radius-card: 12px;
  --radius-frame: 20px;

  /* global.scale */
  --h1: clamp(40px, 5.6vw, 72px);
  --h2: clamp(30px, 3.6vw, 48px);
  --number: clamp(40px, 5vw, 64px);
  --h3: clamp(20px, 1.8vw, 24px);
  --body-lg: clamp(18px, 1.5vw, 20px);
  --body: clamp(16px, 1.3vw, 17px);
  --label: 13px;

  --font-display: "Poppins IM", system-ui, sans-serif;
  --font-body: "Inter IM", system-ui, sans-serif;

  /* meta */
  --maxw: 1200px;
  --gutter: 40px;

  /* global.motion */
  --dur: 180ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* rhythm B01 e B02 (1280) + overlap */
  --b01-pad-top: 144px;
  --b02-pad-top: 208px;
  --b02-pad-bottom: 160px;
  --overlap: 96px;
}

@media (max-width: 1279px) {
  :root { --gutter: 32px; --b01-pad-top: 112px; --b02-pad-top: 176px; --b02-pad-bottom: 128px; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --b01-pad-top: 72px; --b02-pad-top: 136px; --b02-pad-bottom: 96px; --overlap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- B00 header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-translucent);
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* L2 declara caixa 168x32; o logo (razão 3,04) é contido nela e ocupa 97x32, então a caixa encolhe ao conteúdo */
.logo { display: block; max-width: 168px; height: 32px; flex-shrink: 0; }
.logo img { display: block; height: 32px; width: auto; }
.header-right { display: flex; align-items: center; gap: 32px; }
.nav { display: flex; gap: 32px; }
.nav a {
  font-size: var(--label);
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--body-text);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.nav a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.nav a:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }

@media (max-width: 1279px) { .site-header .container { height: 60px; } }
@media (max-width: 767px) {
  .site-header .container { height: 56px; }
  .nav { display: none; }
}

/* ---------- botões (interactive) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--body);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-button);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--on-accent); border: 0; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }

.btn-header { height: 40px; padding-inline: 16px; }
.btn-hero { height: 52px; padding-inline: 28px; margin-top: 40px; }

/* ---------- B01 hero ---------- */
.hero {
  position: relative;
  padding-top: var(--b01-pad-top);
  padding-bottom: 0;
  overflow: visible;
}
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}
.hero-text { padding-top: 48px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--fg);
  max-width: 640px;
}
.hero h1 .accent { color: var(--accent); }
.hero .sub {
  font-size: var(--body-lg);
  line-height: 1.55;
  color: var(--body-text);
  max-width: 560px;
  margin-top: 24px;
}

.hero-art {
  position: relative;
  justify-self: end;
  width: 360px;
  transform: translateY(var(--overlap));
  margin-bottom: calc(-1 * var(--overlap));
  z-index: 2;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: -320px;
  background: radial-gradient(640px circle at 50% 50%, rgba(45, 27, 105, 0.55) 0%, rgba(45, 27, 105, 0) 70%);
  z-index: -1;
  pointer-events: none;
}
.frame {
  width: 360px;
  height: 740px;
  border-radius: var(--radius-frame);
  border: 1px solid var(--border-translucent);
  background: var(--surface-card);
  overflow: hidden;
}
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 767px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-text { padding-top: 0; }
  .hero-art { justify-self: center; width: 280px; }
  .frame { width: 280px; height: 575px; }
  .btn-hero { width: 100%; }
}

/* ---------- B02 (só o topo, para o overlap ser visível no L4) ---------- */
.lead-sem-resposta {
  position: relative;
  z-index: 1;
  padding-top: var(--b02-pad-top);
  padding-bottom: var(--b02-pad-bottom);
}
.lead-sem-resposta .inner { max-width: 760px; }
.lead-sem-resposta h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--fg);
}
.lead-sem-resposta p {
  font-size: var(--body-lg);
  line-height: 1.55;
  color: var(--body-text);
  margin-top: 24px;
}

/* =====================================================================
   L5: página completa. Valores do 02-composicao.yaml; gramática do 05-ux-spec.md.
   ===================================================================== */

:root {
  --header-h: 64px;
  --b03-pad: 96px;
  --b04-pad-top: 64px; --b04-pad-bottom: 128px;
  --b05-pad: 160px;
  --b06-pad: 96px;
  --b07-pad-top: 56px; --b07-pad-bottom: 40px;
}
@media (max-width: 1279px) {
  :root { --header-h: 60px; --b03-pad: 80px; --b04-pad-top: 56px; --b04-pad-bottom: 96px; --b05-pad: 128px; --b06-pad: 80px; --b07-pad-top: 48px; --b07-pad-bottom: 32px; }
}
@media (max-width: 767px) {
  :root { --header-h: 56px; --b03-pad: 64px; --b04-pad-top: 48px; --b04-pad-bottom: 72px; --b05-pad: 96px; --b06-pad: 64px; --b07-pad-top: 40px; --b07-pad-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

[id] { scroll-margin-top: var(--header-h); }

/* flag P3 (05-ux-spec 2.2): default off */
body[data-p3="off"] [data-flag="p3"] { display: none; }
body[data-p3="on"] [data-flag-off="p3"] { display: none; }

/* skip link */
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 16px; border-radius: var(--radius-button);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* alvo de toque de 44 px no botão de 40 do header (A5) */
.btn-header { position: relative; }
.btn-header::after { content: ""; position: absolute; inset: -2px 0; }

/* tipografia compartilhada das seções */
.h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--fg);
}
.h3 {
  font-family: var(--font-display);
  font-size: var(--h3);
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-weight: 600;
  color: var(--fg);
}
.lead { font-size: var(--body-lg); line-height: 1.55; color: var(--body-text); margin-top: 24px; }
.label {
  font-size: var(--label); line-height: 1.4; letter-spacing: 0.08em;
  font-weight: 600; text-transform: uppercase; color: var(--muted);
}
.muted { color: var(--muted); }

/* ---------- B03 ---------- */
.faz { padding-block: var(--b03-pad); }
.faz .abertura { max-width: 760px; }
.faz-stack { display: grid; gap: 64px; }

.larissa-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  background: var(--surface-card);
  border-radius: var(--radius-card);
  padding: 48px;
}
.larissa-card img { display: block; width: 320px; height: 480px; object-fit: cover; border-radius: var(--radius-card); justify-self: center; }
.larissa-card p { font-size: var(--body-lg); line-height: 1.55; margin-top: 16px; }

.apoio { display: grid; grid-template-columns: repeat(3, 1fr); }
.apoio li { list-style: none; padding: 32px; border-left: 1px solid var(--border); }
.apoio li:first-child { border-left: 0; padding-left: 0; }
.apoio img { display: block; width: 64px; height: 64px; border-radius: 32px; object-fit: cover; }
.apoio .h3 { margin-top: 20px; }
.apoio p { margin-top: 8px; }

@media (max-width: 1279px) { .larissa-card { padding: 40px; } }
@media (max-width: 767px) {
  .larissa-card { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .larissa-card img { width: 240px; height: 360px; }
  .apoio { grid-template-columns: 1fr; }
  .apoio li { border-left: 0; border-top: 1px solid var(--border); padding: 32px 0; }
  .apoio li:first-child { border-top: 0; padding-top: 0; }
}

/* ---------- B04 ---------- */
.portas { padding-top: var(--b04-pad-top); padding-bottom: var(--b04-pad-bottom); }
.portas .h2 { max-width: 760px; margin-bottom: 48px; }
.portas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
.porta {
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.porta:hover {
  border-color: var(--edge-indigo);
  background: radial-gradient(320px circle at 50% 0%, rgba(45, 27, 105, 0.35), transparent 70%), var(--surface-card);
}
.porta:focus-within { border-color: var(--accent); }
.porta .label { color: var(--accent); }
.porta .btn { height: 48px; padding-inline: 24px; margin-top: auto; align-self: flex-start; }
.porta .cta-wrap { margin-top: 24px; display: flex; flex-grow: 1; }
.porta .cta-wrap .btn { align-self: flex-end; }

@media (max-width: 1279px) { .porta { padding: 32px; } }
@media (max-width: 767px) {
  .portas-grid { grid-template-columns: 1fr; }
  .porta { padding: 24px; }
  .porta .cta-wrap .btn { width: 100%; }
}

/* ---------- B05 (moment) ---------- */
.confiar {
  position: relative;
  padding-block: var(--b05-pad);
  background: radial-gradient(900px circle at 50% 40%, rgba(45, 27, 105, 0.6), transparent 70%), var(--bg);
  border-top: 1px solid var(--border-translucent);
  border-bottom: 1px solid var(--border-translucent);
}
.confiar .texto { max-width: 760px; margin: 0 auto; text-align: center; }
.faixa { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
.faixa > div { padding: 32px; text-align: center; border-left: 1px solid var(--border); }
.faixa > div:first-child { border-left: 0; }
.faixa strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--number);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--accent);
}
.faixa span { display: block; max-width: 240px; margin: 12px auto 0; color: var(--muted); }
.confiar .voltar { display: flex; justify-content: center; margin-top: 48px; }
.confiar .voltar .btn { height: 48px; padding-inline: 24px; }

@media (max-width: 767px) {
  .faixa { grid-template-columns: 1fr; }
  .faixa > div { border-left: 0; border-top: 1px solid var(--border); }
  .faixa > div:first-child { border-top: 0; }
}

/* ---------- B06 ---------- */
.duvida { padding-block: var(--b06-pad); }
.duvida .inner { max-width: 640px; margin: 0 auto; text-align: center; }
.duvida .btn { height: 52px; padding-inline: 28px; margin-top: 32px; }
.duvida .btn svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 767px) { .duvida .btn { width: 100%; } }

/* ---------- B07 ---------- */
.site-footer { border-top: 1px solid var(--border); padding-top: var(--b07-pad-top); padding-bottom: var(--b07-pad-bottom); }
.footer-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; }
.footer-grid .quem { max-width: 560px; color: var(--muted); margin-top: 12px; }
.footer-grid .assinatura { margin-top: 40px; }
.footer-grid a { color: var(--body-text); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- correções do render do L5 (16/09), registradas no 06-qc.md ---------- */
/* 1. mobile: card de porta vazava a tela porque o botão nowrap impunha largura mínima ao item do grid */
.portas-grid > * { min-width: 0; }
@media (max-width: 767px) {
  .porta .btn { white-space: normal; text-align: center; height: auto; min-height: 48px; padding-block: 12px; line-height: 1.3; }
}
/* 2. desktop: "4 mercados" quebrava em 2 linhas. Desvio declarado do L2: padding lateral do item da faixa 32 -> 8 px; vertical segue 32 */
.faixa strong { white-space: nowrap; }
@media (min-width: 768px) { .faixa > div { padding-inline: 8px; } }
/* 3. tablet (768 a 1279): o split 7/5 do L2 faz o frame de 360 px estourar a coluna de 5/12 e cobrir o título do B02.
      Desvio declarado: entre 768 e 1279 o hero usa o empilhamento do mobile (aprovado no H2), com frame 280x575 e overlap 48. */
@media (min-width: 768px) and (max-width: 1279px) {
  :root { --overlap: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-text { padding-top: 0; }
  .hero h1 { max-width: 640px; }
  .hero-art { justify-self: center; width: 280px; }
  .frame { width: 280px; height: 575px; }
}
/* 4. tablet: o botão das portas também vazava o card. A regra de quebra do mobile vale até 1279. */
@media (min-width: 768px) and (max-width: 1279px) {
  .porta .btn { white-space: normal; text-align: center; height: auto; min-height: 48px; padding-block: 12px; line-height: 1.3; width: 100%; }
}

/* ---------- ajustes pontuais do H3 (16/09, aceite do Rafael com Q1 a Q3) ---------- */
/* Q1: avatares de banco de imagem -> monograma */
.apoio .monograma {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 32px;
  background: var(--glow);
  color: var(--accent-hover);
  font-family: var(--font-display); font-size: var(--h3); font-weight: 600; line-height: 1;
}
/* Q2: foto da Larissa em duotom graphite + Makers Purple, por CSS */
.larissa-foto {
  justify-self: center;
  width: 320px; height: 480px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--glow);
}
.larissa-foto img {
  width: 100%; height: 100%;
  border-radius: 0;
  filter: grayscale(1) contrast(1.1) brightness(0.95);
  mix-blend-mode: luminosity;
}
@media (max-width: 767px) { .larissa-foto { width: 240px; height: 360px; } }
/* Q3: luz atrás do frame do hero, 0,55 -> 0,8 */
.hero-art::before {
  background: radial-gradient(640px circle at 50% 50%, rgba(45, 27, 105, 0.8) 0%, rgba(45, 27, 105, 0) 70%);
}

/* ---------- ajuste pós-aceite (16/09): "50+ nichos" e número da faixa que estourava a coluna ----------
   Entre ~768 e 1279 o número (nowrap, clamp com mínimo 40px) ficava mais largo que o item e
   deslocava à esquerda da legenda (print do Rafael). O tamanho passa a respeitar a largura do item
   via container query; em 1440 fica ~igual ao degrau `number` do L2 (desvio declarado no 06-qc). */
.faixa > div { container-type: inline-size; }
.faixa strong { font-size: min(var(--number), 16.5cqi); }
