/* ============================================================================
   Weldia landing · tema
   ----------------------------------------------------------------------------
   Sistema de design: docs/architecture/vercel-DESIGN.md (tinta #171717 sobre
   #fafafa, Geist + Geist Mono, sombras empilhadas, pílulas de 100px no
   marketing, raio de 6px na navegação). O herói tem o vídeo WeldScan de fundo.
   Os tokens --sc-* alimentam o engine scroll-craft; o resto é markup próprio.
   O calor (âmbar → coral, o par "ship" do MD) é o acento da soldadura; o azul
   de ligação do MD é a cor dos dados.
   ========================================================================== */

@font-face { font-family: "Geist"; src: url("../fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* scroll-craft */
  --sc-canvas: #fafafa;
  --sc-surface: #ffffff;
  --sc-ink: #171717;
  --sc-ink-soft: #4d4d4d;
  --sc-accent: #171717;
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Geist", system-ui, -apple-system, sans-serif;
  --sc-font-text: "Geist", system-ui, -apple-system, sans-serif;
  --sc-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sc-shadow-color: 0 0% 0%;

  /* MD */
  --ink: #171717; --body: #4d4d4d; --mute: #666666;
  --hair: #ebebeb; --hair-strong: #a1a1a1;
  --canvas: #fafafa; --white: #ffffff; --soft2: #f5f5f5;
  --link: #0070f3; --link-deep: #0761d1; --link-soft: #d3e5ff;
  --err: #e5484d; --err-deep: #c50000; --err-soft: #f7d4d6;
  --warn-soft: #ffefcf; --warn-deep: #ab570a;
  --heat-a: #f9cb28; --heat-b: #ff4d4d; --heat-ink: #c2410c;
  --dev-a: #007cf0; --dev-b: #00dfd8;

  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 100px;
  --e1: 0 0 0 1px #00000014;
  --e2: 0 0 0 1px #00000014, 0 1px 1px #00000005, 0 2px 2px #0000000a;
  --e3: 0 0 0 1px #00000014, 0 2px 2px #0000000a, 0 8px 8px -8px #0000000a;
  --e4: 0 0 0 1px #00000014, 0 2px 2px #0000000a, 0 8px 16px -4px #0000000a;
  --e5: 0 0 0 1px #00000014, 0 1px 1px #00000005, 0 8px 16px -4px #0000000a, 0 24px 32px -8px #0000000f;

  --bar-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1400px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-padding-top: var(--bar-h); }
body { background: var(--canvas); color: var(--ink); font-feature-settings: "ss01"; }
::selection { background: var(--ink); color: #f2f2f2; }

/* ------------------------------------------------------------ utilidades */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--sc-font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row--sm { gap: 8px; }

.h-xl { font-weight: 600; font-size: clamp(2.6rem, 1.3rem + 5.2vw, 4.75rem); line-height: 1; letter-spacing: -0.05em; margin: 0; text-wrap: balance; }
.h-lg { font-weight: 600; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1.05; letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
.h-md { font-weight: 600; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); line-height: 1.15; letter-spacing: -0.035em; margin: 0; }
.lead { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--body); margin: 0; max-width: 40ch; text-wrap: pretty; }
.body { font-size: 16px; line-height: 1.6; color: var(--sc-ink-soft); margin: 0; max-width: 60ch; text-wrap: pretty; }
.eyebrow { color: var(--sc-ink-soft); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14px/20px var(--sc-font-text); text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--nav { height: 32px; padding: 0 12px; border-radius: var(--r-sm); }
.btn--sm  { height: 32px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13px; }
.btn--md  { height: 40px; padding: 0 18px; border-radius: var(--r-pill); }
.btn--lg  { height: 48px; padding: 0 22px; border-radius: var(--r-pill); font-size: 16px; line-height: 24px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ghost { background: var(--white); color: var(--ink); box-shadow: var(--e1); }
.btn--white { background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { background: #383838; }
  .btn--ghost:hover { background: var(--soft2); }
  .btn--white:hover { background: #e8e8e8; }
}

.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin: 0;
  border-radius: var(--r-pill); background: var(--soft2); color: var(--body);
  font: 500 11px/1 var(--sc-font-mono); letter-spacing: 0.02em; white-space: nowrap;
}
.tag--ok { background: var(--link-soft); color: var(--link-deep); }
.tag--heat { background: #ffe9dc; color: #9a3412; }
.tag--demo { background: var(--warn-soft); color: var(--warn-deep); }
.tag--inv { background: #2e2e2e; color: #ededed; }

/* ----------------------------------------------------------------- barra */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 70; height: var(--bar-h);
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  box-shadow: 0 1px 0 var(--hair);
}
.bar__in { height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.bar__brand { display: flex; border-radius: var(--r-sm); }
.bar__brand img { height: 28px; width: auto; }
.bar__links { display: flex; gap: 4px; margin-right: auto; margin-left: 12px; }
.bar__links a { font-size: 14px; line-height: 20px; color: var(--body); text-decoration: none; padding: 6px 12px; border-radius: var(--r-pill); transition: color 150ms, background-color 150ms; }
@media (hover: hover) and (pointer: fine) { .bar__links a:hover { color: var(--ink); background: var(--soft2); } }
.bar__cta { display: flex; gap: 8px; }
[data-sc-progress] { top: var(--bar-h); height: 1px; background: var(--heat-b); z-index: 71; }

/* ----------------------------------------------------------------- herói */
/* Fundo: o vídeo WeldScan em loop. Scrim só na coluna do texto. */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: clip;
        background: #0b0b0b; color: #ededed; --sc-ink: #ededed; --sc-ink-soft: #a1a1a1; --sc-accent: #ededed; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__video { opacity: 0; transition: opacity 600ms var(--ease); }
.hero.is-playing .hero__video { opacity: 1; }
.hero__scrim { position: absolute; inset: 0;
  background: linear-gradient(90deg, #0b0b0bf2 0%, #0b0b0bcc 34%, #0b0b0b33 62%, transparent 80%),
              linear-gradient(0deg, #0b0b0b 0%, transparent 22%); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 32px;
              padding-top: calc(var(--bar-h) + 48px); padding-bottom: 32px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__copy .h-xl { max-width: 13ch; color: #fff; }
.hero__copy .lead { color: #c8c8c8; max-width: 42ch; }
.hero__copy .row { margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 12px; border-radius: var(--r-pill); background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff26; font-size: 14px; color: #d4d4d4; }
.pill__dot { width: 8px; height: 5px; border-radius: 50%; background: linear-gradient(90deg, var(--heat-a), var(--heat-b)); }
.hero__chips { position: relative; align-self: end; justify-self: end; display: grid; gap: 10px; justify-items: end; margin-bottom: 8vh; pointer-events: none; }
.chip {
  margin: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 14px; border-radius: var(--r-lg); background: #ffffff; color: var(--ink); box-shadow: 0 0 0 1px #00000014, 0 12px 32px -8px #00000099;
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: left;
}
.chip .mono { color: var(--mute); }
.chip--b { margin-right: 48px; }
.hero__foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; padding-bottom: 24px; flex-wrap: wrap; }
.hero__foot p { margin: 0; color: #8f8f8f; }
.btn--glass { background: #ffffff14; color: #fff; box-shadow: inset 0 0 0 1px #ffffff33; backdrop-filter: blur(6px); }
@media (hover: hover) and (pointer: fine) { .btn--glass:hover { background: #ffffff26; } }

/* ---------------------------------------------------- estações (grounds) */
.st { position: relative; }
.st--light { --sc-canvas: #fafafa; --sc-ink: #171717; --sc-ink-soft: #4d4d4d; background: #fafafa; color: var(--sc-ink); }
.st--soft  { --sc-canvas: #ffffff; --sc-ink: #171717; --sc-ink-soft: #4d4d4d; background: #ffffff; color: var(--sc-ink); box-shadow: inset 0 1px 0 var(--hair); }
.st--dark  { --sc-canvas: #171717; --sc-surface: #1f1f1f; --sc-ink: #ededed; --sc-ink-soft: #a1a1a1; --sc-accent: #ededed; --sc-accent-ink: #171717;
             background: #171717; color: var(--sc-ink); }
.st--lab   { --sc-canvas: #111111; --sc-surface: #1b1b1b; --sc-ink: #ededed; --sc-ink-soft: #a1a1a1; --sc-accent: #ededed; --sc-accent-ink: #111;
             background: #111111; color: var(--sc-ink); }
.st--dark .body, .st--lab .body { line-height: 1.66; letter-spacing: 0.005em; }
.cue { will-change: opacity, transform; }

/* svg: tipografia técnica */
.svg-mono { font-family: var(--sc-font-mono); font-size: 13px; letter-spacing: 0.04em; }
.svg-mono--sm { font-size: 11px; }
.svg-mono--lg { font-size: 18px; font-weight: 500; letter-spacing: 0; }

/* ------------------------------------------------------- estação 1 · célula */
.cell { display: grid; grid-template-columns: minmax(300px, 32%) 1fr; padding-top: var(--bar-h); }
.cell__copy { position: relative; }
.cell__copy .cue { position: absolute; left: var(--gutter); right: 8px; top: 50%; translate: 0 -50%; display: grid; gap: 16px; }
.cell__copy .h-lg { max-width: 13ch; }
.cell__draw { position: relative; min-height: 0; }
.cell__draw svg { width: 100%; height: 100%; }
.cell__sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* -------------------------------------------------- estação 2 · laboratório */
.lab { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
       padding: calc(var(--bar-h) + 32px) var(--gutter) 88px; }
.lab__film { position: relative; margin: 0; height: calc(100svh - var(--bar-h) - 120px); aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: #1b1b1b; box-shadow: 0 0 0 1px #ffffff14, 0 24px 48px -12px #00000080; }
.lab__film figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 3; padding: 4px 10px; border-radius: var(--r-pill); background: #171717d9; color: #ededed; }
.lab__side { display: grid; grid-template-rows: minmax(220px, 1fr) auto; height: 100%; min-width: 0; }
.lab__copy { position: relative; }
.lab__copy .cue { position: absolute; inset: auto 0 16px 0; display: grid; gap: 16px; }
.lab__copy .h-lg { max-width: 16ch; }
.lab__draw { width: 100%; max-width: 680px; height: auto; max-height: 46svh; }

/* ------------------------------------------------------ estação 3 · weldia */
.surf { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: calc(var(--bar-h) + 20px) var(--gutter) 72px; }
.surf__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; max-width: 1280px; width: 100%; margin: 0 auto; }
.surf__head .eyebrow { margin: 0; width: 100%; }
.surf__you { margin: 0; font-size: 16px; font-weight: 500; color: var(--heat-ink); }
.surf__foot { margin: 0; text-align: center; color: var(--mute); }

.app { width: 100%; max-width: 1280px; margin: 0 auto; min-height: 0; display: grid; grid-template-rows: 48px 44px minmax(0, 1fr);
       background: #fff; border-radius: var(--r-lg); box-shadow: var(--e5); overflow: hidden; }
.app__bar { display: flex; align-items: center; gap: 12px; padding: 0 16px; box-shadow: inset 0 -1px 0 var(--hair); min-width: 0; }
.app__crumbs { margin: 0; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.app__crumbs i { font-style: normal; color: var(--hair-strong); margin: 0 4px; }
.app__crumbs b { color: var(--ink); font-weight: 500; }
.app__user { margin: 0 0 0 auto; font-size: 13px; color: var(--body); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.app__user::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--dev-a), var(--dev-b)); }
.app__tabs { display: flex; gap: 4px; padding: 0 12px; box-shadow: inset 0 -1px 0 var(--hair); overflow-x: auto; }
.app__tabs button { height: 44px; padding: 0 12px; border: 0; background: none; color: var(--mute); font-size: 14px; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; transition: color 150ms, box-shadow 150ms; }
.app__tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
@media (hover: hover) and (pointer: fine) { .app__tabs button:hover { color: var(--ink); } }
.app__body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); min-height: 0; }
.app__main { padding: 16px 20px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; min-height: 0; }
#spc-svg { width: 100%; height: 100%; min-height: 0; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; box-shadow: inset 0 1px 0 var(--hair); padding-top: 12px; }
.stats div { padding-right: 8px; }
.stats dt { font: 400 11px/16px var(--sc-font-mono); color: var(--mute); text-transform: uppercase; letter-spacing: 0.02em; }
.stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats dd[data-stat="state"] { font: 500 12px/26px var(--sc-font-mono); letter-spacing: 0; }
.app__side { box-shadow: inset 1px 0 0 var(--hair); padding: 16px 20px; overflow: auto; min-height: 0; }
.panel { display: grid; gap: 14px; align-content: start; }
.panel[hidden] { display: none; }
.panel p { margin: 0; }
.panel__t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.panel__sub { font-size: 13px; color: var(--mute); }
.reading { padding: 16px; border-radius: var(--r-md); background: var(--canvas); box-shadow: var(--e1); }
.reading__v { font-size: 52px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.reading__v small { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--mute); }
.reading__prev { margin-top: 8px !important; font-size: 13px; color: var(--mute); }
.kbd { color: var(--mute); }
kbd { font: 500 11px/1 var(--sc-font-mono); padding: 3px 6px; border-radius: var(--r-xs); background: #fff; box-shadow: var(--e1), 0 1px 0 #0000001a; color: var(--ink); }
.kv { margin: 0; display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; box-shadow: inset 0 -1px 0 var(--hair); font-size: 14px; }
.kv dt { color: var(--body); }
.kv dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.kv--tight div { padding: 5px 0; font-size: 13px; }
.kv dd.bad, .kpi__s.bad { color: var(--err-deep); }
.sl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; font-size: 14px; }
.sl__l { color: var(--body); }
.sl output { font-weight: 600; font-variant-numeric: tabular-nums; }
.sl input { grid-column: 1 / -1; width: 100%; margin: 4px 0 0; accent-color: var(--ink); height: 24px; cursor: pointer; }
#weldia[data-phase="3"]:not(.is-manual) [data-param="t"] { animation: nudge 1.6s var(--ease) infinite; border-radius: var(--r-pill); }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 #ff4d4d00; } 50% { box-shadow: 0 0 0 6px #ff4d4d26; } }
.pred { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
#nugget-svg { width: 100%; height: auto; }
.nu-sheet { fill: #e9eaec; stroke: #a1a1a1; stroke-width: 1; }
.nu-n { fill: #ff8a3d; stroke: var(--heat-ink); stroke-width: 1.2; transition: fill 200ms; }
.nu-n--hot { fill: var(--heat-b); }
.nu-n--bad { fill: #bdbdbd; stroke: #8f8f8f; }
.nu-min { fill: none; stroke: var(--err-deep); stroke-width: 1; stroke-dasharray: 3 3; }
.nu-t { font: 500 11px var(--sc-font-mono); fill: var(--body); }
.nu-t--err { fill: var(--err-deep); }
.warn { padding: 8px 12px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn-deep); font-size: 13px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.flow li { position: relative; padding: 10px 0 10px 26px; font-size: 14px; color: var(--mute); box-shadow: inset 0 -1px 0 var(--hair); transition: color 200ms; }
.flow li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hair-strong); transition: background-color 200ms, box-shadow 200ms; }
.flow li b { display: block; font: 500 12px/18px var(--sc-font-mono); color: inherit; }
.flow li.on { color: var(--ink); }
.flow li.on::before { background: var(--link); box-shadow: none; }
.flow li.on.flow--bad::before { background: var(--err); }
.flow li.on.flow--bad b { color: var(--err-deep); }

/* carta SPC */
.ch-grid { stroke: var(--hair); stroke-width: 1; }
.ch-tick { font: 400 11px var(--sc-font-mono); fill: var(--mute); }
.ch-lsl { stroke: var(--err); stroke-width: 1.5; stroke-dasharray: 6 4; }
.ch-lim { stroke: var(--hair-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.ch-mean { stroke: var(--ink); stroke-width: 1; }
.ch-lbl { font: 500 11px var(--sc-font-mono); fill: var(--body); }
.ch-lbl--err { fill: var(--err-deep); }
.ch-lbl--heat { fill: var(--heat-ink); }
.ch-series { stroke: var(--link); stroke-width: 1.5; stroke-linejoin: round; }
.ch-dot { fill: #fff; stroke: var(--link); stroke-width: 1.5; }
.ch-dot--now { fill: var(--link); r: 5.5; }
.ch-band { fill: #ff4d4d; fill-opacity: 0.1; }
.ch-pred { stroke: var(--heat-b); stroke-width: 2; stroke-dasharray: 7 5; }
.ch-margin { stroke: var(--err); stroke-width: 1.5; }

/* --------------------------------------------------- estação 4 · resultado */
.res { padding: clamp(80px, 10vw, 144px) 0; }
.res__head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "kpis vol" "year vol" "note note"; gap: 16px 24px; }
.dash__kpis { grid-area: kpis; display: grid; grid-template-columns: 1.15fr 1.15fr 0.9fr; gap: 16px; }
.kpi { padding: 24px; border-radius: var(--r-lg); background: #1f1f1f; box-shadow: inset 0 0 0 1px #ffffff14, inset 0 1px 0 #ffffff0d; display: grid; gap: 10px; align-content: start; }
.kpi p { margin: 0; }
.kpi__l { font-size: 14px; color: #a1a1a1; }
.kpi__v { font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi__s { font-size: 13px; color: #a1a1a1; font-variant-numeric: tabular-nums; }
.kpi__s.bad { color: #ff9592; }
.bars { display: grid; gap: 6px; margin: 4px 0; }
.bars i { display: block; height: 8px; border-radius: 4px; transform-origin: 0 50%; transform: scaleX(var(--w, 1)); transition: transform 420ms var(--ease); }
.bars i:first-child { background: #4a4a4a; }
.bars i:last-child { background: linear-gradient(90deg, var(--heat-a), var(--heat-b)); }
.dash__vol { grid-area: vol; display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px #ffffff1f; }
.dash__vol-t { margin: 0; font-weight: 600; }
.dash__vol label { display: grid; gap: 6px; font-size: 13px; color: #a1a1a1; }
.dash__vol input { height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 0; background: #0f0f0f; box-shadow: inset 0 0 0 1px #2e2e2e; color: #ededed; font-size: 15px; font-variant-numeric: tabular-nums; }
.dash__year { grid-area: year; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 24px; box-shadow: inset 0 1px 0 #ffffff1a; }
.year p { margin: 0; }
.year__v { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.year__l { font-size: 13px; color: #a1a1a1; margin-top: 4px !important; }
.year__void { display: none; grid-column: 1 / -1; margin: 0; font-size: 14px; color: #ff9592; }
.dash__year.is-void .year { opacity: 0.35; }
.dash__year.is-void .year__void { display: block; }
.res__note { grid-area: note; margin: 16px 0 0; font-size: 13px; color: #a1a1a1; max-width: 80ch; }

/* ------------------------------------------------------------ plataforma */
.plat { padding: clamp(80px, 10vw, 144px) 0 clamp(64px, 8vw, 112px); }
.plat__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.plat__intro { display: grid; gap: 20px; }
.plat__intro > * { margin: 0 !important; }
.plat__intro .h-lg { max-width: 14ch; }
.plat__film { margin-top: 12px !important; }
.plat__film video { width: 100%; height: auto; aspect-ratio: 848 / 478; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--e4); background: #ddd; }
.plat__film figcaption { margin-top: 10px; color: var(--mute); }
.ledger { border-radius: var(--r-lg); background: #fff; box-shadow: var(--e3); overflow: hidden; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.ledger thead th { background: var(--canvas); font: 400 12px/16px var(--sc-font-mono); color: var(--mute); text-transform: uppercase; text-align: left; padding: 10px 16px; box-shadow: inset 0 -1px 0 var(--hair); }
.ledger tbody th, .ledger td { padding: 14px 16px; text-align: left; vertical-align: top; box-shadow: inset 0 -1px 0 var(--hair); }
.ledger tbody tr:last-child th, .ledger tbody tr:last-child td { box-shadow: none; }
.ledger tbody th { font-weight: 500; white-space: nowrap; }
.ledger td { color: var(--body); }
.ledger td:last-child { white-space: nowrap; }
.st-ok, .st-dev { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.st-ok::before, .st-dev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.st-ok::before { background: var(--link); }
.st-dev { color: var(--warn-deep); }
.st-dev::before { background: #f5a623; }
.roles { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 64px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--hair); }
.roles p { margin: 0; font-size: 14px; color: var(--body); }
.roles b { color: var(--ink); font-weight: 500; }
.roles__t { width: 100%; font-family: var(--sc-font-mono); font-size: 12px !important; text-transform: uppercase; color: var(--mute) !important; }

/* ----------------------------------------------------------------- equipa */
.team { padding: clamp(80px, 10vw, 144px) 0; }
.team__head { display: grid; gap: 16px; max-width: 720px; }
.people { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.person { display: grid; gap: 10px; align-content: start; padding-top: 24px; box-shadow: inset 0 1px 0 var(--hair); }
.person h3 { margin: 8px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.person__r { margin: 0; color: var(--mute); }
.person__in { font-size: 14px; color: var(--link); text-underline-offset: 3px; justify-self: start; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 500 15px var(--sc-font-mono); box-shadow: inset 0 -3px 0 #ff4d4d66; }

/* ----------------------------------------------------------------- planos */
.plans { padding: clamp(80px, 10vw, 144px) 0; }
.plans__head { display: grid; gap: 16px; max-width: 720px; margin-bottom: 48px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: 8px; padding: 32px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--e4); }
.tier__n { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.04em; }
.tier__p { margin: 8px 0 0; font-size: 32px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.tier__s { margin: 0; color: var(--mute); font-size: 14px; }
.tier ul { list-style: none; margin: 16px 0 24px; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.tier li { position: relative; padding-left: 22px; }
.tier li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.tier .btn { margin-top: auto; align-self: flex-start; }
.tier--feat { background: var(--ink); color: #fff; box-shadow: var(--e5); }
.tier--feat .tier__s { color: #a1a1a1; }
.tier--feat .tag { align-self: flex-start; }

/* ---------------------------------------------------------------- começar */
.start { padding: clamp(80px, 10vw, 144px) 0 0; }
.start__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.start__copy { display: grid; gap: 16px; }
.start__copy .h-lg { max-width: 14ch; }
.start__have { margin-top: 32px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--hair); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.start__have p { margin: 0; color: var(--body); }
.signup { display: grid; gap: 16px; padding: 32px; border-radius: var(--r-lg); background: var(--canvas); box-shadow: var(--e3); }
.signup__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.f { display: grid; gap: 6px; }
.f--2 { grid-template-columns: 1fr 1fr; gap: 16px; }
.f--2 > div { display: grid; gap: 6px; }
.signup label { font-size: 14px; font-weight: 500; }
.signup input:not([type="checkbox"]), .signup select {
  height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: #fff; box-shadow: var(--e1);
  font-size: 14px; color: var(--ink); width: 100%; transition: box-shadow 150ms;
}
.signup input[readonly] { background: var(--soft2); color: var(--body); font-family: var(--sc-font-mono); font-size: 12px; }
.signup input:focus-visible, .signup select:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px #17171714; }
.f--err input { box-shadow: 0 0 0 1px var(--err) !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--body); }
.check input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; }
.signup .btn { justify-self: start; }
.signup__msg { margin: 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--link-soft); color: var(--link-deep); font-size: 14px; }
.signup__msg--err { background: var(--err-soft); color: var(--err-deep); }
.foot { margin-top: clamp(80px, 10vw, 128px); box-shadow: inset 0 1px 0 var(--hair); }
.foot__in { display: flex; align-items: center; gap: 24px; padding-block: 32px; flex-wrap: wrap; }
.foot__in p { margin: 0; font-size: 14px; color: var(--body); }
.foot__in .mono { margin-left: auto; color: var(--mute); }

/* ------------------------------------------------------------------ andon */
.andon { position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 65; padding: 5px; border-radius: var(--r-pill);
         background: #171717e6; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
         box-shadow: 0 0 0 1px #ffffff1a, 0 8px 24px -6px #00000059; }
.andon[hidden] { display: none; }
.andon__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.andon a { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--r-pill); color: #a1a1a1; text-decoration: none; font-size: 13px; transition: color 150ms, background-color 150ms; }
.andon a[aria-current] { color: #fff; background: #2e2e2e; }
.andon__lamp { width: 7px; height: 7px; border-radius: 50%; background: #4a4a4a; transition: background-color 200ms; }
.andon a.is-done .andon__lamp { background: #ededed; }
.andon a[aria-current] .andon__lamp { background: var(--heat-a); box-shadow: 0 0 0 3px #f9cb2833; }
@media (hover: hover) and (pointer: fine) { .andon a:hover { color: #fff; } }
.andon__part { position: absolute; left: -6px; bottom: 1px; width: 12px; height: 2px; border-radius: 2px; background: var(--heat-b); transition: transform 120ms linear; }

/* ------------------------------------------------------------- responsivo */
@media (max-width: 1100px) {
  .dash { grid-template-columns: 1fr; grid-template-areas: "kpis" "year" "vol" "note"; }
  .app__body { grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
}
@media (max-width: 860px) {
  .bar__links { display: none; }
  .bar__cta { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; align-items: end; padding-top: calc(var(--bar-h) + 32px); }
  .hero__media img, .hero__media video { object-position: 50% 30%; }
  .hero__scrim { background: linear-gradient(0deg, #0b0b0bfa 0%, #0b0b0bd9 45%, #0b0b0b4d 75%, transparent 100%); }
  .hero__chips { justify-self: start; justify-items: start; margin-bottom: 0; }
  .chip { white-space: normal; }
  .chip--b { margin-right: 0; }
  .langs a { padding: 6px 6px; }

  .cell { grid-template-columns: 1fr; grid-template-rows: 54svh 1fr; }
  .cell__draw { grid-row: 1; }
  .cell__copy { grid-row: 2; }
  .cell__copy .cue { top: 8px; translate: none; right: var(--gutter); }

  .lab { grid-template-columns: 1fr; grid-template-rows: 34svh 1fr; gap: 12px; padding: calc(var(--bar-h) + 12px) var(--gutter) 72px; align-items: start; }
  .lab__film { height: 34svh; justify-self: start; }
  .lab__side { grid-template-rows: auto 1fr; }
  .lab__copy { min-height: 190px; }
  .lab__copy .cue { inset: 0 0 auto 0; gap: 8px; }
  .lab__copy .body { font-size: 15px; }
  .lab__draw { max-height: 26svh; }

  .surf { padding: calc(var(--bar-h) + 12px) 12px 64px; gap: 10px; }
  .surf__head .h-md { font-size: 1.2rem; }
  .app { grid-template-rows: 40px 40px minmax(0, 1fr); }
  .app__crumbs, .tag--demo { display: none; }
  .app__tabs button { height: 40px; padding: 0 10px; font-size: 13px; }
  .app__body { grid-template-columns: 1fr; grid-template-rows: minmax(150px, 34%) minmax(0, 1fr); }
  .app__main { padding: 8px 12px; gap: 6px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 6px; }
  .stats div:nth-child(3), .stats div:nth-child(5) { display: none; }
  .stats dd { font-size: 15px; }
  .app__side { box-shadow: inset 0 1px 0 var(--hair); padding: 12px; }
  .reading__v { font-size: 40px; }
  .panel { gap: 10px; }
  .pred { grid-template-columns: 110px 1fr; }

  .dash__kpis { grid-template-columns: 1fr; }
  .dash__year { grid-template-columns: 1fr 1fr; }
  .plat__grid, .start__grid { grid-template-columns: 1fr; }
  .ledger { overflow-x: auto; }
  .ledger tbody th { white-space: normal; }
  .people, .tiers { grid-template-columns: 1fr; }
  .f--2 { grid-template-columns: 1fr; }
  .signup { padding: 24px 20px; }
  .andon { bottom: 10px; max-width: calc(100vw - 20px); }
  .andon a { padding: 0 10px; font-size: 12px; gap: 6px; }
}
@media (max-width: 400px) {
  .andon a { padding: 0 8px; }
  .andon__lamp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #weldia[data-phase="3"] [data-param="t"] { animation: none; }
  .bars i { transition: none; }
}


/* -------------------------------------------------- idioma e barra escura */
.langs { display: flex; gap: 2px; padding: 2px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--hair); margin-left: auto; }
.langs a { font: 500 12px/1 var(--sc-font-mono); color: var(--body); text-decoration: none; padding: 7px 8px; border-radius: var(--r-pill); transition: color 150ms, background-color 150ms; }
.langs a[aria-current="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .langs a:not([aria-current="true"]):hover { color: var(--ink); background: var(--soft2); } }
.bar__links { margin-right: 0; }
.bar__logo--dark { display: none; }
.bar { transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.bar--on-dark { background: #0b0b0bb3; box-shadow: 0 1px 0 #ffffff1a; }
.bar--on-dark .bar__logo--light { display: none; }
.bar--on-dark .bar__logo--dark { display: block; }
.bar--on-dark .bar__links a { color: #b5b5b5; }
@media (hover: hover) and (pointer: fine) { .bar--on-dark .bar__links a:hover { color: #fff; background: #ffffff14; } }
.bar--on-dark .langs { box-shadow: inset 0 0 0 1px #ffffff26; }
.bar--on-dark .langs a { color: #b5b5b5; }
.bar--on-dark .langs a[aria-current="true"] { background: #fff; color: var(--ink); }
.bar--on-dark .btn--ghost { background: #ffffff14; color: #fff; box-shadow: inset 0 0 0 1px #ffffff33; }
.bar--on-dark .btn--ink { background: #fff; color: var(--ink); }

/* ------------------------------------------------------ medidor (NDT) */
.ndt { padding: clamp(80px, 10vw, 144px) 0; overflow: clip; }
.ndt__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ndt__copy { display: grid; gap: 18px; align-content: start; }
.ndt__copy > * { margin: 0; }
.ndt__copy .tag { justify-self: start; }
.ndt__copy .h-lg { max-width: 16ch; }
.layers { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; counter-reset: layer; }
.layers li { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; padding: 16px 0; box-shadow: inset 0 -1px 0 #ffffff1a; counter-increment: layer; }
.layers li::before { content: counter(layer); grid-row: span 2; font: 500 12px/24px var(--sc-font-mono); color: var(--heat-a); }
.layers b { font-weight: 600; color: #fff; }
.layers span { color: #a1a1a1; font-size: 15px; }
.ndt__note { color: #8f8f8f; }
.ndt__media { position: relative; min-height: 520px; }
.ndt__media figure { margin: 0; position: absolute; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #ffffff1a, 0 24px 48px -12px #00000099; }
.ndt__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ndt__media figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: var(--r-pill); background: #171717d9; color: #ededed; }
.ndt__cad { width: 46%; aspect-ratio: 686 / 1080; right: 4%; top: 0; }
.ndt__cad figcaption { top: 10px; bottom: auto; left: auto; right: 10px; }
.ndt__mesh { width: 66%; aspect-ratio: 974 / 493; left: 0; bottom: 0; }
.foot__link { font-size: 14px; color: var(--body); }
@media (max-width: 860px) {
  .ndt__grid { grid-template-columns: 1fr; }
  .ndt__media { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .ndt__media figure { position: relative; width: auto; inset: auto; }
  .ndt__mesh { grid-column: 1 / -1; order: -1; }
}
