@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');
/* ==========================================================================
   LAB.THUART — design system base
   Thuart DNA (Mundial, #080808 / #e9ebdd / #ff4208) em chave de laboratório:
   papel claro como base, réguas de 1px com cruzamentos (+), etiquetas de lote,
   ficha técnica em mono. Vermelho acentua, nunca domina.
   NÃO editar por página: estilos específicos vão no <style> da própria página.
   ========================================================================== */

/* Inter no lugar da Mundial (identidade nova, 01/12/2026); o nome da família ficou pra não mexer no resto do CSS */
@font-face{font-family:'Mundial';font-weight:100 900;font-style:normal;font-display:swap;src:url(/assets/fonts/inter/inter-latin-wght-normal.woff2) format('woff2')}
@font-face{font-family:'Mundial';font-weight:100 900;font-style:italic;font-display:swap;src:url(/assets/fonts/inter/inter-latin-wght-italic.woff2) format('woff2')}
/* fix global: o MundialDemibold.otf não desenha o ú (sai só o acento). Esses glifos do peso 600 vêm do Bold. */
:root {
  /* marca */
  --ink: #080808;
  --paper: #e9ebdd;
  --red: #ff4208;

  /* derivados */
  --paper-2: #dfe1d1;          /* papel um tom abaixo (faixas, cards) */
  --paper-3: #f3f4ea;          /* papel mais claro (superfícies elevadas) */
  --ink-2: #141414;            /* superfície escura elevada */
  --ink-3: #1d1d1b;
  --red-ink: #d93400;          /* vermelho em texto pequeno sobre papel */
  --red-tint: rgba(255, 66, 8, .10);
  --ok: #2f7d4f;               /* aprovado (uso raro, só status) */

  /* texto */
  --t1: #080808;
  --t2: rgba(8, 8, 8, .68);
  --t3: rgba(8, 8, 8, .44);
  --on-ink-1: #e9ebdd;
  --on-ink-2: rgba(233, 235, 221, .72);
  --on-ink-3: rgba(233, 235, 221, .42);

  /* réguas */
  --rule: rgba(8, 8, 8, .13);
  --rule-strong: rgba(8, 8, 8, .28);
  --rule-ink: rgba(233, 235, 221, .13);

  /* tipografia */
  --f-sans: 'Mundial', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-mega: clamp(56px, 11vw, 176px);   /* statement */
  --fs-h1: clamp(44px, 7.2vw, 112px);
  --fs-h2: clamp(34px, 4.8vw, 72px);
  --fs-h3: clamp(24px, 2.6vw, 36px);
  --fs-h4: clamp(19px, 1.7vw, 24px);
  --fs-body-l: clamp(18px, 1.5vw, 22px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-tag: 12px;

  /* layout */
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 0px;               /* Thuart é quina viva; exceção: pílula de botão */
  --pill: 999px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--t1);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--paper); }

/* --------------------------------------------------------------------------
   Tipografia — regra de ouro Thuart:
   UPPERCASE → 900 (Black), lowercase → 300 (Light)
   -------------------------------------------------------------------------- */
.mega, .h1, .h2, .h3 { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .98; }
.mega { font-size: var(--fs-mega); line-height: .9; letter-spacing: -.035em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); line-height: 1; }
.h3 { font-size: var(--fs-h3); line-height: 1.05; }
.h4 { margin: 0; font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.005em; line-height: 1.2; }
.hair { font-weight: 100; text-transform: none; letter-spacing: -.03em; }   /* contraponto fino dentro de headline */
.light { font-weight: 300; text-transform: none; letter-spacing: -.01em; }
.lead { font-size: var(--fs-body-l); line-height: 1.45; color: var(--t2); font-weight: 300; margin: 0; max-width: 46ch; }
.body { color: var(--t2); margin: 0; max-width: 60ch; }
.small { font-size: var(--fs-small); color: var(--t2); }
.red { color: var(--red); }
.dot::after { content: '.'; color: var(--red); }          /* ponto de assinatura */

/* etiqueta / tag (Regular 400, uppercase espaçado) */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-sans); font-weight: 400; font-size: var(--fs-tag);
  text-transform: uppercase; letter-spacing: .2em; line-height: 1;
  color: var(--red-ink);
}
.tag::before { content: ''; width: 8px; height: 8px; background: var(--red); flex: none; }
.tag.plain::before { display: none; }

/* mono — ficha técnica, números de lote, metadados */
.mono { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--t3); }
.mono-num { font-family: var(--f-mono); font-feature-settings: 'tnum'; }

/* --------------------------------------------------------------------------
   Layout: bordered layout (réguas + cruzamentos). Não é quadriculado.
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.frame {                     /* container com réguas verticais nas margens */
  position: relative; max-width: var(--max); margin: 0 auto;
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
}
.section { position: relative; border-top: 1px solid var(--rule); }
.section > .frame { padding: clamp(64px, 9vw, 128px) var(--gutter); }
.cell { position: relative; padding: clamp(24px, 3vw, 40px); }
.rule-t { border-top: 1px solid var(--rule); }
.rule-b { border-bottom: 1px solid var(--rule); }
.rule-l { border-left: 1px solid var(--rule); }
.rule-r { border-right: 1px solid var(--rule); }

/* grid de colunas com réguas entre as células */
.cols { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.cols > * { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cols.n2 { --n: 2; } .cols.n3 { --n: 3; } .cols.n4 { --n: 4; }
.cols.n2 > *:nth-child(2n) { border-right: 0; }
.cols.n3 > *:nth-child(3n) { border-right: 0; }
.cols.n4 > *:nth-child(4n) { border-right: 0; }

/* cruzamento: <span class="cross" style="--x:0;--y:0"></span> dentro de um pai position:relative */
.cross {
  position: absolute; width: 13px; height: 13px; pointer-events: none;
  left: calc(var(--x, 0) * 100% - 6px); top: calc(var(--y, 0) * 100% - 6px); z-index: 2;
}
.cross::before, .cross::after { content: ''; position: absolute; background: var(--rule-strong); }
.cross::before { left: 6px; top: 0; width: 1px; height: 13px; }
.cross::after { top: 6px; left: 0; height: 1px; width: 13px; }
.cross.red::before, .cross.red::after { background: var(--red); }

/* seções escuras (usar alternando com claras, nunca a página toda escura) */
.dark { background: var(--ink); color: var(--on-ink-1); --rule: var(--rule-ink); --rule-strong: rgba(233,235,221,.3); --t1: var(--on-ink-1); --t2: var(--on-ink-2); --t3: var(--on-ink-3); }
.dark .tag { color: var(--red); }
.tone { background: var(--paper-2); }
.redbg { background: var(--red); color: var(--ink); --t2: rgba(8,8,8,.75); --t3: rgba(8,8,8,.55); --rule: rgba(8,8,8,.2); }
.redbg .tag { color: var(--ink); } .redbg .tag::before { background: var(--ink); }

/* --------------------------------------------------------------------------
   Marca: lockup LAB.THUART
   <a class="lockup"><img src="assets/logo/symbol.svg"> <span class="wm">lab<b>.</b>thuart</span></a>
   -------------------------------------------------------------------------- */
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--t1); }
.lockup .sym { width: 30px; height: auto; color: currentColor; }
.lockup .wm { font-weight: 300; font-size: 24px; letter-spacing: -.02em; line-height: 1; text-transform: lowercase; }
.lockup .wm b { font-weight: 300; color: var(--red); }
.lockup .product { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--rule-strong); line-height: 1.2; }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: var(--pill);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; letter-spacing: 0; line-height: 1; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.red { --bg: var(--red); --fg: var(--ink); }
.btn.paper { --bg: var(--paper); --fg: var(--ink); }
.btn.ghost { --bg: transparent; --fg: var(--t1); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn.lg { min-height: 60px; padding: 0 32px; font-size: 17px; }
.btn.block { width: 100%; }
.link { font-weight: 400; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* botão OK — o gesto do produto ("Só diz ok") */
.ok-btn {
  display: inline-grid; place-items: center; width: 132px; height: 132px; border-radius: 50%;
  background: var(--red); color: var(--ink); font-weight: 900; font-size: 44px; letter-spacing: -.02em; text-transform: uppercase;
  box-shadow: 0 0 0 10px var(--red-tint);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ok-btn:hover { transform: scale(1.04); box-shadow: 0 0 0 16px var(--red-tint); }

/* --------------------------------------------------------------------------
   Etiqueta de lote (ficha de laboratório)
   -------------------------------------------------------------------------- */
.lote {
  display: inline-grid; grid-template-columns: auto auto; border: 1px solid var(--t1);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; color: var(--t1);
}
.lote > span { padding: 7px 10px; }
.lote > span + span { border-left: 1px solid var(--t1); }
.lote .n { background: var(--t1); color: var(--paper); }
.dark .lote .n { color: var(--ink); }

/* ficha técnica: lista chave/valor em mono */
.spec { display: grid; grid-template-columns: auto 1fr; gap: 0; border-top: 1px solid var(--rule); margin: 0; }
.spec dt, .spec dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); padding-right: 24px; }
.spec dd { font-weight: 400; text-align: right; }

/* --------------------------------------------------------------------------
   Mock de post (para mostrar "com a sua cara")
   Uso: <div class="post" style="--b1:#0f4c5c;--b2:#f4efe6;--b3:#e36414">…</div>
   As variáveis --b* são a paleta da marca FICTÍCIA do cliente.
   -------------------------------------------------------------------------- */
.post {
  --b1: #16302b; --b2: #f2ede4; --b3: #d98e32;
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--b2); color: var(--b1);
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(8,8,8,.45);
}
.post.story { aspect-ratio: 9 / 16; }
.post .p-in { position: absolute; inset: 0; padding: 8%; display: flex; flex-direction: column; }
.post .p-kicker { font-size: .62em; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--b3); }
.post .p-title { font-weight: 700; line-height: 1.02; letter-spacing: -.02em; margin-top: auto; }
.post .p-handle { margin-top: 8%; font-size: .55em; opacity: .6; letter-spacing: .04em; }

/* moldura de celular leve (para telas do app e whatsapp-like) */
.phone {
  position: relative; width: 320px; max-width: 100%; aspect-ratio: 9 / 19.5;
  border-radius: 44px; background: var(--ink); padding: 12px;
  box-shadow: 0 40px 80px -40px rgba(8,8,8,.6);
}
.phone > .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--paper-3); position: relative; }

/* --------------------------------------------------------------------------
   Formulários
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }
.input {
  height: 56px; padding: 0 18px; border: 1px solid var(--rule-strong); background: var(--paper-3);
  border-radius: 0; outline: none; font-weight: 400; font-size: 17px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--red-tint); }
.dark .input { background: var(--ink-2); border-color: var(--rule-strong); color: var(--on-ink-1); }

/* --------------------------------------------------------------------------
   Cabeçalho, CTA flutuante, rodapé
   -------------------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(233,235,221,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.topbar .frame { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; padding: 0 var(--gutter); }
.topbar nav { display: flex; gap: 28px; font-weight: 400; font-size: 15px; }
.topbar nav a { color: var(--t2); transition: color .2s; }
.topbar nav a:hover { color: var(--t1); }

.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  transform: translateY(140%); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.float-cta.show { transform: none; opacity: 1; }
.float-cta .btn { box-shadow: 0 16px 40px -12px rgba(8,8,8,.55); }

/* revelar ao rolar: adicione .rv (JS em lab.js coloca .in) */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* marquee de etiquetas */
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.marquee .track { display: inline-flex; gap: 48px; padding: 18px 0; animation: mq 38s linear infinite; }
@keyframes mq { to { transform: translateX(-50%); } }

/* utilitários */
.stack { display: grid; gap: var(--gap, 24px); }
.row { display: flex; align-items: center; gap: var(--gap, 16px); flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { text-align: center; }
.mt-auto { margin-top: auto; }
.hide-sm { }
.only-sm { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--pill); background: var(--paper-2); font-size: 12px; font-weight: 600; }
.badge.red { background: var(--red); color: var(--ink); }
.badge.ink { background: var(--ink); color: var(--paper); }
.badge.ok { background: rgba(47,125,79,.14); color: var(--ok); }
.exemplo { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); border: 1px dashed var(--rule-strong); padding: 3px 6px; }

/* --------------------------------------------------------------------------
   App shell (telas do cliente e painel interno)
   -------------------------------------------------------------------------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.app-side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--rule); padding: 24px 20px; display: flex; flex-direction: column; gap: 28px; background: var(--paper); }
.app-side nav { display: grid; gap: 2px; }
.app-side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-weight: 400; font-size: 15px; color: var(--t2); }
.app-side nav a:hover { background: var(--paper-2); color: var(--t1); }
.app-side nav a.on { background: var(--ink); color: var(--paper); }
.app-main { min-width: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: rgba(233,235,221,.9); backdrop-filter: blur(10px); z-index: 10; }
.app-body { padding: clamp(20px, 3vw, 40px); }
.panel { background: var(--paper-3); border: 1px solid var(--rule); }
.dark .app-side { background: var(--ink); }

/* --------------------------------------------------------------------------
   Responsivo (testar sempre em 375px)
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .cols.n3, .cols.n4 { --n: 2; }
  .cols.n3 > *, .cols.n4 > * { border-right: 1px solid var(--rule); }
  .cols.n3 > *:nth-child(2n), .cols.n4 > *:nth-child(2n) { border-right: 0; }
  .topbar nav { display: none; }
  .app { grid-template-columns: 1fr; }
  .app-side { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; z-index: 40; padding: 8px; border-right: 0; border-top: 1px solid var(--rule); flex-direction: row; }
  .app-side > :not(nav) { display: none; }
  .app-side nav { grid-auto-flow: column; width: 100%; }
  .app-side nav a { flex-direction: column; gap: 4px; font-size: 11px; padding: 8px 4px; justify-content: center; }
  .app-main { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  .cols.n2, .cols.n3, .cols.n4 { --n: 1; }
  .cols > * { border-right: 0 !important; }
  .hide-sm { display: none !important; }
  .only-sm { display: initial; }
  .float-cta { left: 16px; right: 16px; bottom: 16px; }
  .float-cta .btn { width: 100%; }
  .btn.lg { min-height: 56px; padding: 0 24px; }
  .ok-btn { width: 112px; height: 112px; font-size: 38px; }
}

/* ajustes pós-QA do kit */
.stack > .btn, .stack > .tag, .stack > .lote, .stack > .badge, .stack > .link { justify-self: start; }
.lockup .wm b { font-weight: 900; }
.mega, .h1, .h2 { overflow-wrap: anywhere; hyphens: manual; }
html, body { overflow-x: clip; }
