/* Via Work Digital — tokens */
:root {
  /* dark, futuristic: the brand teal turned up on a near-black ground */
  --ground: #051b1d;
  --paper: #0b2a2d;
  --tint: #123a3d;
  --ink: #e6f6f2;
  --ink-soft: #a3c8c1;
  --navy: #061a24;
  --teal-900: #020e0f;
  --teal-800: #0a2a2d;
  --teal-700: #8fe9d6;
  --teal-600: #5ad8c2;
  --teal-300: #7ee6d2;
  --on-dark: #e6f6f2;
  --on-dark-soft: #a3c8c1;
  --line: rgba(230, 246, 242, .1);
  --alert: #ff9f80;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Bricolage Grotesque", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.15rem + 0.9vw, 2rem);
  --step-head: clamp(1.75rem, 1.1rem + 2.3vw, 3.25rem);
  --step-display: clamp(2.75rem, 0.5rem + 6.6vw, 7.25rem);

  --gutter: clamp(16px, 3vw, 40px);
  --section: clamp(96px, 12vw, 176px);
  --radius-ui: 10px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
p { max-width: 62ch; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, .clause, .footer-name { font-family: var(--display); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.12; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--teal-300); color: var(--teal-900); }
:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Buttons and links: one shape, fully round */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 0;
  font-weight: 500; font-size: var(--step-body); line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent { background: var(--teal-300); color: var(--teal-900); }
.btn-accent:hover { background: #a6f2e3; }
.btn-ink { background: var(--tint); color: var(--ink); }
.btn-ink:hover { background: #1b4c50; }
.btn-light { background: var(--on-dark); color: var(--teal-900); }
.btn-light:hover { background: var(--teal-300); }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: .25em; text-decoration-color: var(--teal-600);
  min-height: 44px;
  transition: color .2s ease, text-underline-offset .2s ease;
}
.text-link::after { content: "→"; display: inline-block; transition: transform .25s var(--ease-out); }
.text-link:hover { color: var(--teal-600); text-underline-offset: .35em; }
.text-link:hover::after { transform: translateX(4px); }
.text-link.on-dark { text-decoration-color: var(--teal-300); }
.text-link.on-dark:hover { color: var(--teal-300); }

/* Header: a plain bar */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--teal-900); color: var(--on-dark); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: var(--step-body); letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; background: var(--on-dark); border-radius: 50%; padding: 4px; }
.menu { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.menu a:not(.btn) {
  text-decoration: none; font-size: var(--step-small); font-weight: 500;
  color: var(--on-dark-soft); padding: 8px 0; transition: color .2s ease;
}
.menu a:not(.btn):hover, .menu a.is-active { color: var(--on-dark); }
.btn-nav { min-height: 42px; padding: 0 20px; font-size: var(--step-small); }
.menu-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; padding: 13px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--on-dark); margin: 6px 0; transition: transform .25s var(--ease-out); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  background: var(--teal-900); color: var(--on-dark);
  min-height: calc(100svh - 72px);
  display: grid; align-items: center;
  padding-block: clamp(64px, 9vh, 120px);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(2, 14, 15, .66); }
.hero-inner { text-align: center; }
.hero h1 { font-size: var(--step-display); line-height: 1.02; letter-spacing: -0.035em; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; white-space: nowrap; }
.slot {
  display: inline-block; vertical-align: baseline; overflow: hidden;
  width: 2.5em; height: 0.74em; margin-inline: 0.04em;
  border-radius: 0.1em;
  font-size: 1em; letter-spacing: 0;
}
.kpi[data-ui] {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  width: 100%; height: 100%;
  padding: 0 1.2em;
  background: var(--paper); color: var(--ink);
  text-align: left; line-height: 1.1; letter-spacing: 0;
  font-size: 0.135em;
  overflow: hidden;
}
.kpi[data-ui] .kpi-label { font-size: 0.85em; font-weight: 500; color: var(--ink-soft); }
.kpi[data-ui] .kpi-value { font-size: 2.15em; font-weight: 600; color: var(--teal-300); letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi[data-ui] .kpi-delta { font-size: 0.85em; font-weight: 500; color: var(--teal-600); }
.kpi[data-ui] .is-swapping { opacity: 0; transform: translateY(30%); }
.kpi[data-ui] > span { transition: opacity .35s ease, transform .45s var(--ease-out); }
.hero-lead { max-width: 46ch; margin: 40px auto 0; font-size: var(--step-body); color: var(--on-dark); }
.hero-widget { display: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 36px; }

/* Calculadora */
.calc { background: var(--ground); }
.calc-intro { margin-top: 20px; }
.calc-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); margin-top: clamp(40px, 5vw, 72px); align-items: center; }
.calc-form[data-ui] { background: var(--paper); border-radius: 16px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 32px; }
.calc-field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px 16px; }
.calc-field label { font-weight: 500; }
.calc-field output { font-weight: 600; color: var(--teal-300); font-variant-numeric: tabular-nums; }
.calc-field input[type="range"] {
  grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0;
  background: transparent; cursor: pointer;
}
.calc-field input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--tint); }
.calc-field input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--tint); }
.calc-field input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--teal-600); }
.calc-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--teal-300); border: 0; transition: transform .2s var(--ease-out); }
.calc-field input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-300); border: 0; }
.calc-field input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc-result { display: grid; gap: 16px; justify-items: start; }
.calc-label { font-size: var(--step-lead); color: var(--ink-soft); }
.calc-big { font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 1rem + 6vw, 7rem); line-height: 1; letter-spacing: -0.04em; color: var(--teal-300); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-sub { font-size: var(--step-body); max-width: 40ch; margin-bottom: 12px; }
.calc-sub strong { color: var(--ink); font-weight: 600; }

/* Softwares */
/* Plataforma: scene "painel" */
.painel { background: var(--paper); padding-block: var(--section); }
.painel-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.painel-text { display: grid; gap: 32px; justify-items: start; }
.beats { display: grid; gap: 24px; }
.beat { position: relative; padding-left: 24px; transition: opacity .45s ease; }
.beat::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 2px; background: var(--teal-300); transition: background-color .45s ease; }
.beat h3 { margin-bottom: 6px; }
.beat p { color: var(--ink-soft); }
.painel.is-live { padding-block: 0; }
.painel.is-live > .scene-stage { display: grid; align-items: center; padding: 88px 0 24px; }
.painel.is-live .ui-stage { padding: clamp(20px, 3vw, 40px); }
.painel.is-live .beat { opacity: .3; }
.painel.is-live .beat::before { background: var(--tint); }
.painel.is-live[data-beat="0"] .beat:nth-child(1),
.painel.is-live[data-beat="1"] .beat:nth-child(2),
.painel.is-live[data-beat="2"] .beat:nth-child(3) { opacity: 1; }
.painel.is-live[data-beat="0"] .beat:nth-child(1)::before,
.painel.is-live[data-beat="1"] .beat:nth-child(2)::before,
.painel.is-live[data-beat="2"] .beat:nth-child(3)::before { background: var(--teal-300); }
.ui-stage { position: relative; isolation: isolate; overflow: clip; border-radius: 16px; padding: clamp(20px, 4vw, 56px); }
.ui-stage > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.product-ui figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--ink-soft); }

[data-ui].app {
  background: var(--ground); border-radius: 14px; padding: clamp(14px, 2vw, 24px);
  font-size: 14px; line-height: 1.35; color: var(--ink);
}
[data-ui] .app-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
[data-ui] .app-title { font-weight: 600; font-size: 16px; }
[data-ui] .app-user { color: var(--ink-soft); }
[data-ui] .app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
[data-ui] .app-kpis div { background: var(--paper); border-radius: 8px; padding: 12px; display: grid; gap: 2px; }
[data-ui] .app-kpis span { color: var(--ink-soft); font-size: 13px; }
[data-ui] .app-kpis strong { font-size: clamp(15px, 1.4vw, 20px); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
[data-ui] .app-kpis em { font-style: normal; font-size: 13px; color: var(--ink-soft); }
[data-ui] .app-kpis em.up { color: var(--teal-600); }
[data-ui] .app-chart { background: var(--paper); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
[data-ui] .app-sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 8px; }
[data-ui] .app-chart svg { width: 100%; height: auto; }
[data-ui] .bars rect { fill: var(--teal-300); }
[data-ui] .bars rect.last { fill: var(--teal-600); }
[data-ui] .bars text { font-size: 7px; fill: var(--ink-soft); font-family: var(--font); }
[data-ui] .app-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 8px; overflow: hidden; }
[data-ui] .app-table caption { text-align: left; font-weight: 600; padding: 12px 12px 6px; background: var(--paper); border-radius: 8px 8px 0 0; }
[data-ui] .app-table th, [data-ui] .app-table td { text-align: left; padding: 8px 12px; border-top: 1px solid var(--line); }
[data-ui] .app-table th { color: var(--ink-soft); font-weight: 500; font-size: 13px; }
[data-ui] .app-table td:not(:first-child), [data-ui] .app-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
[data-ui] .app-table .warn { color: var(--alert); font-weight: 600; }

[data-ui] .tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 13px; font-weight: 500; background: var(--tint); }
[data-ui] .tag.ok { color: var(--teal-700); }
[data-ui] .status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--teal-300); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Serviços */
.servicos { background: var(--ground); }
.serv-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.serv-head { position: sticky; top: 112px; display: grid; gap: 24px; justify-items: start; }
.serv-head p { max-width: 30ch; }
.serv-list { display: grid; gap: clamp(56px, 5vw, 80px); }
.serv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.serv-text { max-width: 36ch; }
.serv-text h3 { margin-bottom: 12px; }
.serv-img { object-fit: cover; }
.serv-img.r45 { width: 200px; aspect-ratio: 4 / 5; }
.serv-img.r32 { width: 280px; aspect-ratio: 3 / 2; }
.serv-img.r11 { width: 150px; aspect-ratio: 1; }

/* Como trabalhamos */
.metodo { background: var(--navy); color: var(--on-dark); padding-bottom: 40px; }
.metodo.is-live { padding-bottom: 0; }
.metodo.is-live > .scene-stage { display: flex; flex-direction: column; padding: 72px 0 24px; }
.metodo.is-live .metodo-fields { flex: 1; min-height: 0; }
.metodo.is-live [data-ui] .tracker-progress span { transition: none; }
.metodo-fields { display: grid; grid-template-columns: 1fr 1fr; min-height: 76svh; }
.field { padding: clamp(56px, 7vw, 104px) var(--gutter) 48px; }
.field-text { display: flex; flex-direction: column; gap: 28px; padding-left: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); }
.metodo-h { font-size: var(--step-lead); letter-spacing: -0.02em; color: var(--teal-300); }
.clause { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; max-width: 22ch; text-wrap: balance; }
.clause-note { max-width: 42ch; color: var(--on-dark-soft); }
.clause, .clause-note, [data-ui] .tracker-tasks, [data-ui] .tracker-foot, [data-ui] [data-t-stage] { transition: opacity .2s ease; }
.is-fading { opacity: 0; }
.field-ui { background: var(--tint); color: var(--ink); display: grid; place-items: center; }
[data-ui].tracker { width: min(440px, 100%); background: var(--paper); border-radius: 14px; padding: 24px; font-size: 15px; }
[data-ui] .tracker-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
[data-ui] .tracker-top span { color: var(--ink-soft); }
[data-ui] .tracker-top strong { font-weight: 600; font-size: 18px; }
[data-ui] .tracker-progress { height: 8px; background: var(--tint); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
[data-ui] .tracker-progress span { display: block; height: 100%; width: 100%; background: var(--teal-600); transform-origin: left; transform: scaleX(var(--p)); transition: transform .5s var(--ease-out); }
[data-ui] .tracker-tasks { display: grid; gap: 4px; }
[data-ui] .tracker-tasks li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--ground); color: var(--ink-soft); }
[data-ui] .tracker-tasks li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #47706b; flex: none; }
[data-ui] .tracker-tasks li.done { color: var(--ink); }
[data-ui] .tracker-tasks li.done::before { background: var(--teal-600); border-color: var(--teal-600); }
[data-ui] .tracker-tasks li.now { color: var(--ink); font-weight: 500; background: var(--tint); }
[data-ui] .tracker-tasks li.now::before { border-color: var(--teal-600); }
[data-ui] .tracker-foot { margin-top: 14px; color: var(--teal-700); font-weight: 500; }

.stage-control { padding-top: 32px; }
.stage-control input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; cursor: pointer; margin: 0; }
.stage-control input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: transparent; }
.stage-control input[type="range"]::-moz-range-track { height: 8px; background: transparent; }
.range { position: relative; }
.range::before, .range-fill { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 8px; border-radius: 4px; background: #1c4150; pointer-events: none; }
.range-fill { background: var(--on-dark); transform-origin: left; transform: scaleX(var(--fill, 0)); transition: transform .3s var(--ease-out); }
.range input { position: relative; }
.stage-control input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; border-radius: 6px; background: var(--teal-300); border: 0; transition: transform .2s var(--ease-out); }
.stage-control input[type="range"]::-moz-range-thumb { width: 32px; height: 32px; border-radius: 6px; background: var(--teal-300); border: 0; }
.stage-control input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.stage-names { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.stage-names li:nth-child(2) { text-align: center; text-indent: -33%; }
.stage-names li:nth-child(3) { text-align: center; text-indent: 33%; }
.stage-names li:last-child { text-align: right; }
.stage-names button { background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; color: var(--on-dark-soft); font-size: var(--step-body); transition: color .2s ease; }
.stage-names button:hover, .stage-names button.is-current { color: var(--on-dark); }
.stage-names button.is-current { font-weight: 600; }

/* Sobre */
.sobre { background: var(--paper); }
.sobre-lead { max-width: 54ch; margin-top: 24px; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; }
.comp-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 48px); margin-top: 64px; align-items: start; }
.comp { width: 100%; border-collapse: collapse; }
.comp th, .comp td { text-align: left; vertical-align: top; padding: 20px 16px; border-bottom: 1px solid var(--line); }
.comp thead th { font-size: var(--step-small); font-weight: 500; color: var(--ink-soft); padding-top: 0; }
.comp thead th:last-child { color: var(--teal-700); }
.comp tbody th { font-weight: 600; width: 22%; padding-left: 0; }
.comp td { color: var(--ink-soft); width: 39%; }
.comp td:last-child { color: var(--ink); font-weight: 500; background: var(--tint); }
.has-scroll .comp tbody tr td:last-child { background: transparent; color: var(--ink-soft); transition: background-color .5s ease, color .5s ease; }
.has-scroll .comp tbody tr.is-on td:last-child { background: var(--tint); color: var(--ink); }
.comp tbody tr:first-child td:last-child { border-radius: 10px 10px 0 0; }
.comp tbody tr:last-child td:last-child { border-radius: 0 0 10px 10px; border-bottom: 0; }
.route-tile { background: #0d4446; color: var(--on-dark); padding: 28px; display: grid; gap: 20px; align-content: space-between; aspect-ratio: 4 / 3.75; }
.route-tile svg { width: 58%; height: auto; }
.route-tile p { font-size: var(--step-body); max-width: 28ch; }
.route-tile svg { max-width: 160px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 24px; }
.facts dt { font-size: var(--step-small); color: var(--ink-soft); }
.facts dd { font-weight: 500; }

/* Nuvem: scene "janela" — a picture that opens to the whole screen */
.nuvem { color: var(--on-dark); background: var(--teal-900); }
.nuvem > .scene-stage { isolation: isolate; min-height: 88svh; display: grid; align-items: end; padding-block: clamp(64px, 8vw, 120px); }
.nuvem-media { position: absolute; inset: 0; z-index: -1; overflow: clip; }
.nuvem-media img { width: 100%; height: 100%; object-fit: cover; }
.nuvem-media::after { content: ""; position: absolute; inset: 0; background: rgba(2, 14, 15, .45); }
.nuvem-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 96px); align-items: end; }
.nuvem h2 { font-size: var(--step-head); max-width: 16ch; }
.nuvem-list { display: grid; gap: 12px; }
.nuvem-list li { display: flex; gap: 14px; align-items: baseline; font-size: var(--step-body); }
.nuvem-list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--teal-300); transform: translateY(-1px); }
.nuvem-list p { margin-bottom: 8px; }

/* Contato */
.contato { background: var(--ground); }
.contato-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); gap: 32px; align-items: start; }
.contato-text { grid-column: 1; }
.contato-text p { margin-top: 24px; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.015em; max-width: 30ch; }
.contato-img { grid-column: 3; width: 170px; aspect-ratio: 1; object-fit: cover; }
.contato-links { grid-column: 4; display: grid; gap: 4px; justify-items: start; }
.contato-q { font-weight: 500; margin-bottom: 12px; }
.big-link { font-size: var(--step-body); text-underline-offset: .25em; text-decoration-thickness: 2px; text-decoration-color: var(--teal-600); min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; transition: color .2s ease; }
.big-link:hover { color: var(--teal-600); }
.contato-note { margin-top: 12px; font-size: var(--step-small); color: var(--ink-soft); }

/* Footer: a close with the name cropped */
.footer { background: var(--teal-900); color: var(--on-dark); overflow: hidden; padding-top: clamp(96px, 12vw, 160px); }
.footer-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 2fr) minmax(0, 3fr); gap: 32px; align-items: start; }
.footer-invite { display: grid; gap: 32px; justify-items: start; }
.footer-invite h2 { font-size: var(--step-head); max-width: 14ch; }
.footer-links { grid-column: 3; display: grid; gap: 4px; }
.footer-links a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; color: var(--on-dark-soft); transition: color .2s ease; }
.footer-links a:hover { color: var(--on-dark); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: clamp(80px, 10vw, 140px); font-size: var(--step-small); color: var(--on-dark-soft); }
.footer-legal p { max-width: 60ch; }
.credits { flex-basis: 100%; }
.credits summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: var(--on-dark); }
.credits ul { display: grid; gap: 6px; padding-top: 8px; max-width: 90ch; }
.credits a { color: var(--on-dark); }
.footer-name {
  font-size: 21vw; font-weight: 500; letter-spacing: -0.05em; line-height: .8;
  white-space: nowrap; color: var(--teal-800);
  margin: 16px 0 0 calc(var(--gutter) - 0.04em);
  transform: translateY(22%);
}

/* Motion: masked headline and section entrances */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js .hero-lead, .js .hero .actions, .js .hero-widget { opacity: 0; animation: fade-up 700ms var(--ease-out) 750ms forwards; }
  .js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .rise.is-in { opacity: 1; transform: none; }
  .serv-img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
}
@keyframes line-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Tablet */
@media (max-width: 1100px) {
  .menu a:not(.btn) { display: none; }
  .menu-toggle { display: block; order: 3; }
  .menu { margin-left: auto; }
  .menu.is-open a:not(.btn) { display: block; }
  .serv-grid { grid-template-columns: 1fr; }
  .calc-body { grid-template-columns: 1fr; }
  .serv-head { position: static; }
  .comp-grid { grid-template-columns: 1fr; }
  .painel-grid { grid-template-columns: 1fr; }
  .nuvem-inner { grid-template-columns: 1fr; }
  .sobre-side { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .sobre-side .facts { margin-top: 0; }
  .contato-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .contato-text { grid-column: 1 / -1; }
  .contato-img { grid-column: 1; }
  .contato-links { grid-column: 2 / -1; }
  .footer-top { grid-template-columns: 1fr auto; }
  .footer-links { grid-column: 2; }
  .metodo { display: flex; flex-direction: column; }
  .metodo-fields { display: contents; }
  .field-ui { order: 1; padding-block: 48px; }
  .stage-control { order: 2; padding-top: 16px; }
  .field-text { order: 3; padding-top: 32px; padding-left: var(--gutter); }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .menu.is-open {
    position: absolute; top: 72px; left: 0; right: 0;
    display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between;
    padding: 12px var(--gutter) 20px; background: var(--teal-900);
  }
  .menu.is-open .btn-nav { display: none; }
}

/* Phone */
@media (max-width: 760px) {
  .menu { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--teal-900); box-shadow: 0 24px 32px -16px rgba(6, 54, 57, .5); } /* taste-skill-ignore: open menu overlay */
  .menu.is-open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; font-size: var(--step-body); color: var(--on-dark); }
  .menu .btn-nav { margin-top: 12px; min-height: 52px; font-size: var(--step-body); }

  .hero { min-height: calc(100svh - 72px); }
  .hero h1 { font-size: 9.4vw; }
  .slot { display: none; }
  .hero-widget { display: block; width: 72%; max-width: 280px; aspect-ratio: 2.4 / 1; margin: 32px auto 0; font-size: 150px; }
  .hero-widget .kpi[data-ui] { font-size: 16px; border-radius: 12px; padding: 0 18px; }
  .hero-lead { margin-top: 28px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .actions .text-link { justify-content: center; }

  .calc-big { font-size: 15vw; }

  [data-ui].app { font-size: 13px; padding: 12px; }
  .ui-stage { padding: 16px; }
  .nuvem > .scene-stage { min-height: 80svh; }
  [data-ui] .app-kpis { grid-template-columns: 1fr 1fr; }
  [data-ui] .app-kpis div:last-child { grid-column: 1 / -1; }

  .serv { grid-template-columns: 1fr; gap: 20px; }
  .serv-img.r45 { width: 100%; aspect-ratio: 4 / 3; }
  .serv-img.r32 { width: 70%; justify-self: end; }
  .serv-img.r11 { width: 55%; }

  .field-ui { padding-block: 40px; }
  .clause { font-size: 6.2vw; }
  .stage-names { grid-template-columns: 1fr 1fr; }
  .stage-names li, .stage-names li:nth-child(n) { text-align: left; text-indent: 0; }
  .stage-names button { font-size: 15px; }

  .comp-grid { margin-top: 40px; }
  .comp thead { display: none; }
  .comp, .comp tbody, .comp tr, .comp th, .comp td { display: block; width: auto; }
  .comp tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .comp th, .comp td { border: 0; padding: 0; }
  .comp tbody th { margin-bottom: 8px; }
  .comp td:nth-of-type(1) { margin-bottom: 8px; }
  .comp td:nth-of-type(1)::before { content: "Sistema próprio: "; font-weight: 500; }
  .comp td:last-child { padding: 12px 14px; border-radius: 8px !important; }
  .comp td:last-child::before { content: "SaaS da Via Work: "; color: var(--teal-700); }
  .sobre-side { grid-template-columns: 1fr; }

  .contato-row { grid-template-columns: 96px 1fr; gap: 24px 20px; }
  .contato-img { width: 96px; }
  .contato-links { grid-column: 2; }
  .contato-note { grid-column: 1 / -1; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-invite .btn { width: 100%; }
  .footer-invite h2 { font-size: 8.2vw; }
  .footer-links { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .footer-name { font-size: 27vw; }
}
