/* ==========================================================================
   Control Fabrik — website
   Grafite de oficina, papel de desenho e as cores dos postos.
   Títulos: Bricolage Grotesque · Texto: Geist · Dados: Geist Mono
   ========================================================================== */

:root {
  --ground: #0c0d0b;
  --ground-2: #10110f;
  --steel: #151713;
  --steel-2: #1c1e1a;
  --steel-3: #262823;
  --paper: #ede9de;
  --paper-2: #b4b0a4;
  --paper-3: #7d7a71;
  --line: rgba(237, 233, 222, 0.09);
  --line-2: rgba(237, 233, 222, 0.17);

  --ocre: #e0923a;
  --petroleo: #35a6cc;
  --violeta: #9377f2;
  --carmim: #e3647e;
  --good: #45c57f;
  --alert: #f08a7e;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1260px;
  --gutter: clamp(16px, 4vw, 44px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgba(224, 146, 58, 0.35); color: var(--paper); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: var(--paper); color: var(--ground); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ------------------------------ Tipografia ------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  font: 500 12.5px/1.2 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-3);
}
.eyebrow::before {
  content: ""; width: 24px; height: 3px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--ocre) 0 33%, var(--petroleo) 33% 66%, var(--violeta) 66%);
}

.display {
  margin: 0;
  font-family: var(--f-display); font-weight: 760; font-variation-settings: "opsz" 96;
  font-size: clamp(54px, 9.6vw, 138px); line-height: 0.92; letter-spacing: -0.036em;
}
.live-period {
  display: inline-block; width: 0.15em; height: 0.15em; margin-left: 0.05em; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 0 0 rgba(69, 197, 127, 0.5);
  animation: live 2.4s var(--ease) infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(69, 197, 127, 0.5); }
  70%, 100% { box-shadow: 0 0 0 0.16em rgba(69, 197, 127, 0); }
}

.h2 {
  margin: 0;
  font-family: var(--f-display); font-weight: 720; font-variation-settings: "opsz" 72;
  font-size: clamp(36px, 5vw, 66px); line-height: 1.02; letter-spacing: -0.03em; max-width: 17ch;
}
.display-md {
  margin: 0;
  font-family: var(--f-display); font-weight: 760; font-variation-settings: "opsz" 96;
  font-size: clamp(46px, 6.4vw, 94px); line-height: 0.96; letter-spacing: -0.035em;
}
.lead { margin: 0; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; color: var(--paper-2); max-width: 54ch; }
.section-lead { margin: 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--paper-2); max-width: 52ch; }

/* -------------------------------- Botões -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  font: 600 15.5px/1 var(--f-body); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--paper); color: var(--ground);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 30px -14px rgba(237, 233, 222, 0.45);
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 16px 36px -14px rgba(237, 233, 222, 0.55); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--paper-3); background: rgba(237, 233, 222, 0.04); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ------------------------------ Navegação ------------------------------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(12, 13, 11, 0.72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper);
  font: 720 19px/1 var(--f-display); letter-spacing: -0.02em;
  white-space: nowrap; flex: none;
}
.brand-mark { display: inline-flex; gap: 3px; height: 22px; }
.brand-mark i { width: 5px; border-radius: 2px; background: var(--ocre); }
.brand-mark i:nth-child(2) { background: var(--petroleo); }
.brand-mark i:nth-child(3) { background: var(--violeta); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--paper-2); text-decoration: none; font-size: 15px; white-space: nowrap; transition: color 0.2s; }
.nav-links a:hover { color: var(--paper); }
.nav-links a[aria-current="true"] { color: var(--paper); }
@media (min-width: 1201px) {
  .nav-links a { position: relative; }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px;
    background: var(--paper); transform: scaleX(0); transition: transform 0.35s var(--ease);
  }
  .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
}
.nav-toggle { display: none; }

/* --------------------------------- Hero --------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 112px) clamp(64px, 9vw, 128px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 28% 22%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 55% at 28% 22%, #000 25%, transparent 75%);
  opacity: 0.55;
}
.hero::after {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 70%; pointer-events: none;
  background:
    radial-gradient(closest-side at 70% 30%, rgba(224, 146, 58, 0.10), transparent),
    radial-gradient(closest-side at 40% 60%, rgba(53, 166, 204, 0.07), transparent),
    radial-gradient(closest-side at 80% 80%, rgba(147, 119, 242, 0.07), transparent);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: 30px; }
.hero-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: 28px 56px; margin-top: clamp(28px, 4vw, 48px);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Linha de produção ao vivo */
.line {
  margin: clamp(48px, 7vw, 84px) 0 0; padding: 18px; border-radius: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(21, 23, 19, 0.92), rgba(12, 13, 11, 0.92));
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
.line-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 2px 4px 16px; font: 500 12.5px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-3);
}
.line-live { display: inline-flex; align-items: center; gap: 9px; color: var(--paper-2); }
.line-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: live 2.4s var(--ease) infinite; }
.line-clock { font-variant-numeric: tabular-nums; color: var(--paper-2); }
.line-dim { display: flex; align-items: center; gap: 12px; min-width: 0; }
.line-dim::before, .line-dim::after {
  content: ""; flex: 1; height: 9px;
  background: linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat;
}
.line-dim::before { border-left: 1px solid var(--paper-3); }
.line-dim::after { border-right: 1px solid var(--paper-3); }
.line-dim span { white-space: nowrap; text-transform: none; letter-spacing: 0.02em; }

.line-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.station {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 18px 18px 20px; border-radius: 12px; overflow: hidden;
  background: var(--steel); border: 1px solid var(--line);
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease), opacity 0.5s var(--ease);
}
.station:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -17px; width: 16px; height: 1px; background: var(--line-2);
}
.station.is-active {
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  background: color-mix(in srgb, var(--c) 8%, var(--steel));
}
.station.is-waiting { opacity: 0.62; }
.station.is-skip { opacity: 0.55; background: transparent; border-style: dashed; }
.station.is-skip .station-job b { font-weight: 500; color: var(--paper-2); }
.station-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.station-name { display: inline-flex; align-items: center; gap: 10px; font: 720 21px/1 var(--f-display); letter-spacing: -0.02em; }
.swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--c); flex: none; }
.station-state {
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-3); white-space: nowrap;
}
.station.is-active .station-state { color: var(--c); }
.station.is-done .station-state { color: var(--good); }
.station-job { display: flex; flex-direction: column; gap: 5px; min-height: 58px; }
.station-job b { font: 600 18px/1.25 var(--f-body); letter-spacing: -0.01em; }
.station-job span { font: 400 13.5px/1.3 var(--f-mono); color: var(--paper-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 5px 9px; border-radius: 6px; font: 500 12px/1 var(--f-mono); color: var(--paper-3);
  border: 1px solid var(--line); transition: all 0.4s var(--ease);
}
.chips li.is-done { color: var(--ground); background: var(--good); border-color: var(--good); }
.station-foot {
  display: flex; justify-content: space-between; gap: 12px; margin-top: auto;
  font: 500 13px/1 var(--f-mono); color: var(--paper-2);
}
.station-time { font-variant-numeric: tabular-nums; color: var(--paper-3); }
.station-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.station-bar i { display: block; height: 100%; background: var(--c); }
.station.is-done .station-bar i { background: var(--good); }

.line-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding: 16px 4px 2px; font: 400 13.5px/1.4 var(--f-mono); color: var(--paper-3);
}
.line-order b { color: var(--paper); font-weight: 500; }
.line-note { color: var(--paper-2); }
.line-note-label {
  display: inline-block; margin-right: 6px; padding: 3px 7px; border-radius: 5px;
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #f3c47e; background: rgba(224, 146, 58, 0.14);
}

/* Montra: escritório + tablet */
.showcase { position: relative; margin-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(48px, 9vw, 120px); }
.showcase-desk { width: 86%; }
.showcase-tablet { position: absolute; right: 0; bottom: 0; width: 45%; }

/* -------------------------------- Molduras ------------------------------ */
.frame-browser {
  margin: 0; overflow: hidden; border-radius: 14px;
  background: var(--steel); border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.browser-bar {
  position: relative; display: flex; align-items: center; justify-content: center; height: 38px;
  background: var(--steel-2); border-bottom: 1px solid var(--line);
}
.browser-bar::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 9px; height: 9px; border-radius: 50%;
  transform: translateY(-50%); background: #3a3c36; box-shadow: 15px 0 0 #3a3c36, 30px 0 0 #3a3c36;
}
.browser-url {
  padding: 5px 16px; border-radius: 6px; background: var(--ground-2);
  font: 500 12px/1 var(--f-mono); color: var(--paper-3); letter-spacing: 0.02em;
}
.frame-browser img { display: block; width: 100%; }

.frame-tablet {
  margin: 0; padding: clamp(8px, 1.1vw, 15px); border-radius: clamp(20px, 2.4vw, 32px);
  background: linear-gradient(150deg, #2b2d28, #121311 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 120px -50px rgba(0, 0, 0, 0.9);
}
.frame-tablet img { display: block; width: 100%; border-radius: clamp(10px, 1.3vw, 18px); }

.frame-tv {
  position: relative; margin: 0 0 34px; padding: clamp(6px, 0.8vw, 11px); border-radius: 12px;
  background: #070806; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 70px 120px -50px rgba(0, 0, 0, 0.95);
}
.frame-tv img { display: block; width: 100%; border-radius: 5px; }
.frame-tv::after {
  content: ""; position: absolute; left: 50%; bottom: -30px; width: 24%; height: 30px; transform: translateX(-50%);
  background: linear-gradient(#1c1d1a, #0e0f0d); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}

/* ------------------------------- Secções -------------------------------- */
.section { position: relative; padding-block: clamp(76px, 8.5vw, 128px); }
.section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(var(--wrap), 100%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
}
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 68px); max-width: 820px; }
.section-head.split {
  max-width: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; gap: 24px 48px;
}
.section-head.split > div { display: grid; gap: 20px; }

/* Percurso */
.journey { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 84px); align-items: start; }
.journey-media { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 104px); }
.journey-frame {
  position: relative; aspect-ratio: 16 / 11; max-width: 100%; border-radius: 18px; overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--ground-2);
  border: 1px solid var(--line);
}
.journey-frame img {
  position: absolute; left: 6%; top: 7%; width: 88%; height: 86%; object-fit: contain;
  opacity: 0; transform: translateY(10px) scale(0.985);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}
.journey-frame img.is-active { opacity: 1; transform: none; }

.journey-steps { list-style: none; margin: 0; padding: 4vh 0 28vh; display: grid; gap: 12px; }
.step {
  padding: 30px 30px 32px; border-radius: 14px; border: 1px solid transparent; cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.step.is-active { background: var(--steel); border-color: var(--line-2); }
.step-n { font: 500 12.5px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-3); }
.step.is-active .step-n { color: var(--paper-2); }
.step h3 { margin: 14px 0 12px; font: 720 clamp(25px, 2.3vw, 32px)/1.1 var(--f-display); letter-spacing: -0.022em; }
.step p { margin: 0; color: var(--paper-2); }
.step-media { display: none; margin: 24px 0 0; }
.step-media img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line-2); }

/* Modelos: o percurso de cada modelo pelos postos */
.routes { margin: 0; }
.routes-scroll { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 16px; background: var(--steel); }
.routes-table { width: 100%; min-width: 700px; border-collapse: collapse; }
.routes-table th, .routes-table td { padding: 14px 20px; text-align: left; vertical-align: middle; }
.routes-table thead th {
  padding-block: 16px; font: 500 12.5px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper-3); border-bottom: 1px solid var(--line-2);
}
.routes-table thead th:first-child { width: 32%; }
.routes-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.routes-stage { display: inline-flex; align-items: center; gap: 9px; color: var(--paper-2); }
.routes-stage::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.routes-model { display: flex; align-items: center; gap: 14px; font-weight: 400; }
.routes-model img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--steel-2); }
.routes-model b { display: block; font: 600 16.5px/1.25 var(--f-body); letter-spacing: -0.01em; color: var(--paper); }
.routes-model small { display: block; margin-top: 3px; font: 400 13px/1.3 var(--f-mono); color: var(--paper-3); }
.route { display: grid; grid-template-columns: minmax(0, 1fr) 2.6ch; align-items: center; gap: 12px; }
.route i { position: relative; height: 8px; border-radius: 4px; background: var(--line); }
.route i::before {
  content: ""; position: absolute; inset: 0 auto 0 0; border-radius: inherit;
  width: calc(var(--v) * 100% / 75); background: var(--c);
}
.route b { font: 500 14.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--paper); text-align: right; }
.route-skip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px;
  font: 500 12.5px/1 var(--f-mono); color: var(--paper-2); border: 1px dashed var(--line-2);
}
.routes-note { margin: 14px 0 0; font: 400 13.5px/1.5 var(--f-mono); color: var(--paper-3); }
.model-points {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
}
.model-points li { display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line-2); }
.model-points b { font: 720 21px/1.2 var(--f-display); letter-spacing: -0.02em; }
.model-points span { color: var(--paper-2); font-size: 15.5px; line-height: 1.55; }
.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;
}
@media (max-width: 900px) {
  .model-points { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* Posto (anotações) */
.annotated { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.annotated-device { position: relative; }
@media (min-width: 1081px) {
  .annotated-device { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); }
}
.pins { position: absolute; inset: clamp(8px, 1.1vw, 15px); margin: 0; padding: 0; list-style: none; pointer-events: none; }
.pins li {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; pointer-events: auto;
  font: 600 13px/1 var(--f-mono); color: var(--ground); background: var(--paper);
  box-shadow: 0 0 0 6px rgba(237, 233, 222, 0.18), 0 8px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pins li.is-hot { transform: translate(-50%, -50%) scale(1.22); box-shadow: 0 0 0 11px rgba(237, 233, 222, 0.24), 0 8px 18px rgba(0, 0, 0, 0.45); }

.switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--steel); border: 1px solid var(--line); }
.switch button {
  border: 0; background: transparent; cursor: pointer; padding: 9px 16px; border-radius: 999px;
  font: 500 14px/1 var(--f-body); color: var(--paper-2); transition: background 0.25s, color 0.25s;
}
.switch button[aria-pressed="true"] { background: var(--paper); color: var(--ground); }
#shot-posto { transition: opacity 0.3s var(--ease); }
#shot-posto.is-swapping { opacity: 0.35; }

.legend { list-style: none; counter-reset: pin; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; }
.legend li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 14px 12px; border-radius: 12px;
  transition: background 0.3s var(--ease); outline-offset: 0;
}
.legend li::before {
  counter-increment: pin; content: counter(pin);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 600 13px/1 var(--f-mono); color: var(--paper-2); border: 1px solid var(--line-2);
  transition: all 0.3s var(--ease);
}
.legend li:hover, .legend li.is-hot { background: var(--steel); }
.legend li.is-hot::before { background: var(--paper); color: var(--ground); border-color: var(--paper); }
.legend b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.legend span { display: block; margin-top: 2px; font-size: 15.5px; line-height: 1.5; color: var(--paper-2); }

.facts {
  list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 26px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  font: 500 12.5px/1.4 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-3);
}
.facts b {
  display: block; margin-bottom: 10px; font: 720 clamp(30px, 3.2vw, 44px)/1 var(--f-display);
  letter-spacing: -0.035em; text-transform: none; color: var(--paper);
}

/* Pessoas */
.duo { display: grid; gap: clamp(64px, 9vw, 132px); }
.duo-item { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.duo-item:nth-child(even) > figure { order: 2; }
.duo-text { display: grid; gap: 16px; }
.duo-text h3 { margin: 0; font: 720 clamp(28px, 3vw, 42px)/1.06 var(--f-display); letter-spacing: -0.026em; }
.duo-text p:not(.eyebrow) { margin: 0; color: var(--paper-2); max-width: 46ch; }

/* Escritório (separadores) */
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab-list button {
  cursor: pointer; padding: 11px 19px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  font: 500 15px/1 var(--f-body); color: var(--paper-2); transition: all 0.25s var(--ease);
}
.tab-list button:hover { color: var(--paper); border-color: var(--paper-3); }
.tab-list button[aria-selected="true"] { background: var(--paper); border-color: var(--paper); color: var(--ground); }
.tab-frame img { transition: opacity 0.35s var(--ease); }
.tab-frame.is-swapping img { opacity: 0.25; }
.tab-caption { margin: 20px 0 0; max-width: 70ch; color: var(--paper-2); }

/* Mural */
.mural-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.55fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.mural-grid > div { display: grid; gap: 20px; }
.mural-grid .h2 { font-size: clamp(34px, 3.7vw, 54px); }

/* Engenharia */
.section-eng { background: linear-gradient(180deg, var(--ground), var(--ground-2)); }
.eng { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: start; }
.terminal {
  margin: 0; overflow: hidden; border-radius: 14px; background: #070806; border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9);
}
.terminal-bar {
  position: relative; display: flex; align-items: center; justify-content: center; height: 38px;
  border-bottom: 1px solid var(--line); font: 500 12px/1 var(--f-mono); color: var(--paper-3);
}
.terminal-dots {
  position: absolute; left: 16px; top: 50%; width: 9px; height: 9px; border-radius: 50%; transform: translateY(-50%);
  background: #33352f; box-shadow: 15px 0 0 #33352f, 30px 0 0 #33352f;
}
.terminal pre { margin: 0; padding: 22px 24px 26px; overflow-x: auto; font: 400 13.5px/1.8 var(--f-mono); color: var(--paper-2); }
.t-dim { color: var(--paper-3); }
.t-cmd { color: var(--paper); }
.t-link { color: var(--petroleo); }
.t-ok { color: var(--good); }
.t-pass { color: var(--good); font-weight: 600; }
.t-cursor {
  display: inline-block; width: 8px; height: 16px; margin-left: 6px; vertical-align: -3px;
  background: var(--paper-2); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.specs div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.specs dt {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font: 500 12.5px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper);
}
.specs dt::before { content: ""; width: 7px; height: 7px; background: var(--paper-3); flex: none; }
.specs div:nth-child(3n + 1) dt::before { background: var(--ocre); }
.specs div:nth-child(3n + 2) dt::before { background: var(--petroleo); }
.specs div:nth-child(3n) dt::before { background: var(--violeta); }
.specs dd { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--paper-2); }

/* Perguntas */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 88px); }
.faq-grid > header { display: grid; gap: 20px; align-content: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none;
  font: 600 clamp(18px, 1.7vw, 21px)/1.35 var(--f-body); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font: 400 26px/1 var(--f-mono); color: var(--paper-3); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 26px; max-width: 62ch; color: var(--paper-2); }

/* Contacto */
.section-cta { overflow: hidden; }
.section-cta::after {
  content: ""; position: absolute; left: -10%; bottom: -40%; width: 70%; height: 90%; pointer-events: none;
  background:
    radial-gradient(closest-side at 30% 60%, rgba(224, 146, 58, 0.10), transparent),
    radial-gradient(closest-side at 60% 40%, rgba(53, 166, 204, 0.07), transparent),
    radial-gradient(closest-side at 50% 80%, rgba(147, 119, 242, 0.07), transparent);
}
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(36px, 5vw, 88px); align-items: start; }
.cta-text { display: grid; gap: 22px; align-content: start; }
.cta-points { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; font: 400 14px/1.4 var(--f-mono); color: var(--paper-2); }
.cta-points li::before { content: "→"; margin-right: 10px; color: var(--paper-3); }

.form {
  display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); border-radius: 18px;
  background: var(--steel); border: 1px solid var(--line-2);
}
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { font: 500 12.5px/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-3); }
.optional { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  font: 400 16px/1.4 var(--f-body); color: var(--paper); background: var(--ground-2);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--paper-2); box-shadow: 0 0 0 3px rgba(237, 233, 222, 0.1);
}
.field input::placeholder, .field textarea::placeholder { color: var(--paper-3); }
.form-status { margin: 0; min-height: 1.5em; font-size: 14.5px; color: var(--paper-2); }
.form-status.is-error { color: var(--alert); }

/* Rodapé */
.footer { border-top: 1px solid var(--line); padding-block: 48px calc(44px + env(safe-area-inset-bottom, 0px)); }
/*
 * Em linha, com a frase a ter espaço a sério: numa grelha de quatro colunas ela
 * encolhia até uns poucos píxeis e a frase saía uma letra por linha.
 */
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.footer-tag { margin: 0; color: var(--paper-3); font-size: 15px; flex: 1 1 280px; min-width: 240px; }
.footer-links { flex: 0 1 auto; }
.footer-copy { flex: none; margin-left: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--paper-2); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--paper); }
.footer-copy { margin: 0; font: 400 13px/1 var(--f-mono); color: var(--paper-3); }

/* ------------------------------ Responsivo ------------------------------ */
/* Com as oito ligações, abaixo de 1280 px já não cabem numa linha ao lado do botão. */
@media (max-width: 1280px) {
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0;
    padding: 6px var(--gutter) 22px; background: var(--ground); border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-cta { display: none; }
}

@media (max-width: 1080px) {
  .annotated, .eng, .mural-grid, .faq-grid, .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head.split { grid-template-columns: minmax(0, 1fr); }
  .line-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .station:not(:last-child)::after { display: none; }
}

@media (max-width: 900px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .line-head { grid-template-columns: minmax(0, 1fr) auto; }
  .terminal pre { font-size: 12px; padding-inline: 18px; }
  .line-dim { display: none; }

  .journey { grid-template-columns: minmax(0, 1fr); }
  .journey-media { display: none; }
  .journey-steps { padding: 0; gap: 16px; }
  .step { background: var(--steel); border-color: var(--line); cursor: default; }
  .step-media { display: block; }

  .duo-item { grid-template-columns: minmax(0, 1fr); }
  .duo-item:nth-child(even) > figure { order: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { margin-left: 0; }
}

@media (max-width: 640px) {
  .routes-table { min-width: 560px; }
  .routes-table th, .routes-table td { padding-inline: 12px; }
  .routes-table thead th:first-child { width: auto; }
  .routes-model { gap: 10px; }
  .routes-model img { width: 36px; height: 36px; border-radius: 8px; }
  .routes-model b { font-size: 15px; }
  .routes-model small { display: none; }
  .line-track { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .station:not(:last-child)::after { display: block; top: 100%; right: auto; left: 30px; width: 1px; height: 12px; }
  .station-job { min-height: 0; }
  .showcase { padding-bottom: 0; }
  .showcase-desk { width: 100%; }
  .showcase-tablet { position: relative; width: 82%; margin: -16% 0 0 auto; }
  .pins li { width: 22px; height: 22px; font-size: 11px; box-shadow: 0 0 0 4px rgba(237, 233, 222, 0.2); }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .hero-cta .btn { flex: 1 1 auto; }
  .line-foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Ficha de fabrico em papel */
.frame-paper {
  margin: 0 auto; max-width: 420px; border-radius: 4px; overflow: hidden; background: #fff;
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.frame-paper img { display: block; width: 100%; }

/* Pontos do posto que não têm marca na imagem: ponto em vez de número */
.legend-extra { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.legend-extra li { cursor: default; }
.legend-extra li::before {
  content: ""; counter-increment: none; width: 8px; height: 8px; margin: 11px 11px;
  border-radius: 50%; background: var(--paper-3); border: 0;
}
.legend-extra li:hover { background: transparent; }

/* ---------------------------------------------------------------------------
   Páginas legais (termos e privacidade): texto corrido, fácil de ler.
   --------------------------------------------------------------------------- */
.nav.is-solid { border-bottom-color: var(--line); }
.nav.is-solid .nav-inner { justify-content: space-between; }
.legal { max-width: 820px; padding-block: 120px 80px; }
.legal h1 { font-family: var(--f-display); font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 6px 0 10px; text-wrap: balance; }
.legal-kicker { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-3); }
.legal-date { margin: 0 0 36px; color: var(--paper-3); font-size: 14.5px; }
.legal-lead { font-size: 18px; line-height: 1.6; color: var(--paper); margin: 0 0 36px; padding: 18px 22px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--steel); }
.legal section { padding-block: 22px; border-top: 1px solid var(--line); }
.legal h2 { font-family: var(--f-display); font-size: 21px; margin: 0 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--paper-2); font-size: 16px; line-height: 1.7; max-width: 68ch; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--paper); }
.legal a { color: var(--paper); text-underline-offset: 3px; }
.legal mark { background: rgba(224, 146, 58, 0.2); color: var(--ocre); padding: 0 4px; border-radius: 4px; }
.legal-links { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-privacy { margin: 0; font-size: 13px; color: var(--paper-3); }
.form-privacy a { color: var(--paper-2); }
