/* JJ Labs · Fábrica de Software
   Sistema visual: Onyx, Porcelain e um único fio dourado (o "rim").
   Mobile-first: estilos base para celular, breakpoints em 720px e 1040px. */

:root {
  --onyx: #0A0A0B;
  --graphite: #141416;
  --graphite-2: #1C1C1F;
  --rule: #2A2A2D;
  --white: #FAFAF8;
  --paper: #F2F1ED;
  --rule-l: #E3E2DE;
  --ash: #8C8C90;
  --ash-d: #5E5E63;
  --gold: #B8975A;
  --rim: #CDB27A;

  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: 20px;
  --max: 1200px;
  --radius: 2px;
  --tap: 48px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--onyx);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--onyx); }
:focus-visible { outline: 2px solid var(--rim); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); color: var(--onyx); padding: 12px 16px; }
.skip:focus { left: 8px; }

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

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -0.02em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(40px, 9.4vw, 96px); }
h2 { font-size: clamp(32px, 6.4vw, 64px); }
h3 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
h4 { font-size: 18px; font-weight: 500; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
em.g { font-style: normal; color: var(--rim); }
.lead { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.55; color: var(--ash); max-width: 40ch; }
.light .lead { color: var(--ash-d); }
.mono, .eyebrow, .tag { font-family: var(--mono); font-weight: 400; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ash);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.light .eyebrow { color: var(--ash-d); }

/* ---------- Marca ---------- */
.wordmark { display: inline-flex; align-items: baseline; gap: .2em; font-weight: 300; letter-spacing: .2em; line-height: 1; white-space: nowrap; }
.wordmark .wm { width: .63em; height: .8em; flex: none; color: currentColor; }
.wordmark .labs { padding-left: .04em; }
.rim { stroke: var(--gold); }

/* ---------- Barra de progresso (o "release bar") ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(10, 10, 11, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 8px; }

/* Seletor de idioma */
.lang { position: relative; margin-left: auto; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius);
  background: none; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--white);
  transition: border-color .2s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--rule); }
.flag { width: 18px; height: 13px; flex: none; border-radius: 1px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.lang-btn .caret { width: 9px; height: 6px; fill: none; stroke: var(--ash); stroke-width: 1.4; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 70;
  list-style: none; margin: 0; padding: 6px; min-width: 168px;
  background: var(--graphite); border: 1px solid var(--rule); border-radius: 4px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .2s var(--ease), visibility 0s .2s;
}
.lang-menu::before { content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 1px; background: var(--gold); }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .2s var(--ease); }
.lang-menu a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 2px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--white);
}
.lang-menu a small { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--ash); margin-left: auto; }
.lang-menu a:hover { background: var(--graphite-2); }
.lang-menu a[aria-current="true"]::after { content: "✓"; color: var(--rim); margin-left: 8px; }
.brand { font-size: 22px; display: inline-flex; align-items: center; min-height: var(--tap); }
.nav { display: none; }
.nav a { font-size: 15px; color: var(--ash); padding: 12px 4px; transition: color .2s; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 1px; background: var(--gold); }
.site-header .header-cta { display: none; }

.menu-btn {
  width: var(--tap); height: var(--tap); margin-right: -12px;
  display: grid; place-items: center; background: none; border: 0; cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 22px; height: 1.5px; background: var(--white); position: relative; transition: transform .3s var(--ease), background .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--onyx);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.mobile-menu a.m-link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; border-bottom: 1px solid var(--rule);
  font-size: 28px; font-weight: 300;
}
.mobile-menu a.m-link span { font-family: var(--mono); font-size: 12px; color: var(--ash); }
.mobile-menu .btn { margin-top: 24px; }
.mobile-menu .m-foot { margin-top: auto; padding-top: 32px; color: var(--ash); font-size: 14px; font-family: var(--mono); }
body.menu-open { overflow: hidden; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  border-radius: var(--radius);
  font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
  position: relative; isolation: isolate; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--white); color: var(--onyx); }
.btn-primary::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.btn-primary:hover::after { transform: scaleX(1); }
.btn-ghost { border-color: var(--rule); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--ash); }
.light .btn-primary { background: var(--onyx); color: var(--white); }
.light .btn-ghost { border-color: var(--rule-l); color: var(--onyx); }
.light .btn-ghost:hover { border-color: var(--ash); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
.micro { font-family: var(--mono); font-size: 12px; color: var(--ash); letter-spacing: .04em; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.micro span::before { content: "✓ "; color: var(--gold); }

/* ---------- Seções ---------- */
section { position: relative; }
.sec { padding-block: clamp(80px, 12vw, 160px); }
.sec-sm { padding-block: clamp(56px, 8vw, 96px); }
.light { background: var(--white); color: var(--onyx); }
.paper { background: var(--paper); color: var(--onyx); }
.graphite { background: var(--graphite); }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 7vw, 80px); max-width: 860px; }
.sec-head .lead { max-width: 56ch; }
.idx { font-family: var(--mono); font-size: 12px; color: var(--ash); letter-spacing: .12em; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(64px, 10vw, 128px); overflow: hidden; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(34px, 10.4vw, 80px); }
.hero h1 .line > span { white-space: nowrap; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { to { transform: none; } }
.hero .lead { max-width: 46ch; }
.fade-in { opacity: 0; animation: fade .9s var(--ease) .45s forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.xp { display: flex; align-items: center; gap: 18px; padding-top: 24px; border-top: 1px solid var(--rule); max-width: 460px; }
.xp b { font-weight: 300; font-size: clamp(52px, 9vw, 68px); line-height: .9; letter-spacing: -.04em; color: var(--rim); }
.xp b small { font-size: .32em; letter-spacing: .02em; margin-left: 4px; color: var(--rim); }
.xp span { font-size: 15px; line-height: 1.45; color: var(--ash); }
.xp span strong { display: block; color: var(--white); font-weight: 400; font-size: 17px; }
.page-hero .xp { margin-top: 36px; }

/* Terminal de testes */
.runner {
  background: var(--graphite); border: 1px solid var(--rule); border-radius: 4px;
  font-family: var(--mono); font-size: 13px; line-height: 1.75;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
  position: relative;
}
.runner::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: var(--gold); }
.runner-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--rule); color: var(--ash); font-size: 12px; }
.runner-top .dots { display: flex; gap: 6px; }
.runner-top .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.runner-body { padding: 18px; min-height: 300px; color: var(--ash); white-space: pre-wrap; word-break: break-word; }
.runner-body .ok { color: var(--rim); }
.runner-body .w { color: var(--white); }
.runner-body .cursor { display: inline-block; width: 8px; height: 15px; background: var(--white); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.runner-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.runner-foot div { padding: 14px 18px; border-right: 1px solid var(--rule); }
.runner-foot div:last-child { border-right: 0; }
.runner-foot b { display: block; font-weight: 500; color: var(--white); font-size: 18px; }
.runner-foot small { color: var(--ash); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* Faixa de tecnologias */
.stack { border-block: 1px solid var(--rule); overflow: hidden; padding-block: 22px; }
.stack-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.stack-track span { font-family: var(--mono); font-size: 14px; color: var(--ash); white-space: nowrap; letter-spacing: .06em; }
.stack-track span::before { content: "◆"; color: var(--gold); margin-right: 14px; font-size: 8px; vertical-align: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Problema ---------- */
.pain-list { display: grid; gap: 0; border-top: 1px solid var(--rule-l); }
.pain { display: grid; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--rule-l); }
.pain .tag { font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.pain h3 { font-size: clamp(22px, 3vw, 28px); }
.pain p { color: var(--ash-d); max-width: 56ch; }

/* ---------- Pilares ---------- */
.pillars { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.pillar { background: var(--onyx); padding: 36px 28px 40px; display: grid; gap: 16px; align-content: start; position: relative; transition: background .3s; }
.pillar:hover { background: var(--graphite); }
.pillar .n { font-family: var(--mono); font-size: 12px; color: var(--ash); }
.pillar h3 { font-size: clamp(32px, 5vw, 44px); font-weight: 300; }
.pillar p { color: var(--ash); }
.pillar ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; font-size: 15px; }
.pillar li { display: flex; gap: 10px; }
.pillar li::before { content: "—"; color: var(--gold); }

/* ---------- Serviços ---------- */
.svc-grid { display: grid; gap: 1px; background: var(--rule-l); border: 1px solid var(--rule-l); }
.svc { background: var(--white); padding: 32px 28px; display: grid; gap: 14px; align-content: start; min-height: 100%; position: relative; transition: background .3s; }
.svc:hover { background: var(--paper); }
.svc .ico { width: 40px; height: 40px; color: var(--onyx); }
.svc .ico .rim { stroke: var(--gold); }
.svc p { color: var(--ash-d); font-size: 16px; }
.svc .more { font-family: var(--mono); font-size: 13px; display: inline-flex; gap: 8px; align-items: center; min-height: var(--tap); margin-top: auto; }
.svc .more::after { content: "→"; transition: transform .3s var(--ease); }
.svc:hover .more::after { transform: translateX(4px); }

/* ---------- Compromissos / números ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); }
.stat { padding: 28px 16px 28px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.stat b { font-weight: 300; font-size: clamp(40px, 7vw, 72px); line-height: 1; letter-spacing: -.03em; }
.stat b sup { font-size: .4em; color: var(--rim); vertical-align: super; margin-left: 2px; }
.stat span { color: var(--ash); font-size: 14px; max-width: 24ch; }

/* ---------- Processo ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; position: relative; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 40px; position: relative; }
.step::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 1px; background: var(--rule-l); }
.step:last-child::before { display: none; }
.step .dot { width: 48px; height: 48px; border: 1px solid var(--rule-l); border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; background: var(--white); position: relative; z-index: 1; transition: border-color .4s, background .4s, color .4s; }
.step.in .dot { border-color: var(--onyx); background: var(--onyx); color: var(--white); }
.step h3 { font-size: 22px; margin-bottom: 6px; padding-top: 10px; }
.step p { color: var(--ash-d); font-size: 16px; max-width: 52ch; }
.step .when { font-family: var(--mono); font-size: 12px; color: var(--gold); margin-top: 8px; display: block; }

/* ---------- Depoimentos ---------- */
.testis { display: grid; gap: 20px; }
.testi { border: 1px solid var(--rule); padding: 32px 28px; display: grid; gap: 24px; align-content: space-between; background: var(--onyx); border-radius: 4px; }
.testi blockquote { margin: 0; font-size: 19px; line-height: 1.5; font-weight: 300; }
.testi blockquote::before { content: "“"; display: block; font-size: 56px; line-height: .6; color: var(--gold); margin-bottom: 8px; }
.testi .who { display: flex; align-items: center; gap: 14px; }
.testi .av { width: 44px; height: 44px; border-radius: 50%; background: var(--graphite-2); border: 1px solid var(--rule); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--rim); flex: none; }
.testi .who b { display: block; font-weight: 500; font-size: 15px; }
.testi .who small { color: var(--ash); font-size: 13px; }

/* ---------- Garantia ---------- */
.guarantee { display: grid; gap: 32px; align-items: center; border: 1px solid var(--rule-l); padding: clamp(28px, 5vw, 56px); position: relative; background: var(--white); }
.guarantee::before { content: ""; position: absolute; left: clamp(28px, 5vw, 56px); right: clamp(28px, 5vw, 56px); top: -1px; height: 2px; background: var(--gold); }
.seal { width: 120px; height: 120px; color: var(--onyx); }
.guarantee h3 { font-size: clamp(26px, 4vw, 38px); font-weight: 300; margin-bottom: 12px; }
.guarantee p { color: var(--ash-d); max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule-l); }
.faq details { border-bottom: 1px solid var(--rule-l); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 72px; padding: 18px 0; font-size: clamp(18px, 2.4vw, 22px); font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 32px; height: 32px; border: 1px solid var(--rule-l); border-radius: 50%; display: grid; place-items: center; position: relative; transition: transform .3s var(--ease), background .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; width: 12px; height: 1.5px; background: currentColor; }
.faq summary .pm::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary .pm { background: var(--onyx); color: var(--white); border-color: var(--onyx); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .ans { padding: 0 0 28px; color: var(--ash-d); max-width: 70ch; display: grid; gap: 12px; }

/* ---------- CTA final / formulário ---------- */
.cta-final { text-align: left; }
.cta-grid { display: grid; gap: 56px; }
.cta-final h2 { font-size: clamp(38px, 7.6vw, 84px); max-width: 14ch; }
.brief { background: var(--graphite); border: 1px solid var(--rule); border-radius: 4px; padding: 28px 22px; display: grid; gap: 24px; position: relative; }
.brief::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; background: var(--gold); }
.brief fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.brief legend { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: 15px; color: var(--ash); transition: all .2s; }
.chip input:checked + span { background: var(--white); color: var(--onyx); border-color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--rim); outline-offset: 2px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 2px;
  background: var(--onyx); border: 1px solid var(--rule); color: var(--white);
  font-family: var(--sans); font-size: 16px; /* 16px evita zoom automático no iOS */
  transition: border-color .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rim); }
.brief .two { display: grid; gap: 16px; }
.field label small { text-transform: none; letter-spacing: 0; color: var(--ash-d); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; line-height: 1.5; color: var(--rim); border-left: 2px solid var(--gold); padding: 4px 0 4px 12px; }
.form-status a { text-decoration: underline; }
.brief button[aria-busy="true"] { opacity: .6; cursor: progress; }
.brief-done { justify-items: center; text-align: center; padding: 56px 28px; gap: 16px; }
.brief-done .seal { width: 88px; height: 88px; color: var(--white); }
.brief-done h3 { font-size: clamp(26px, 4vw, 34px); font-weight: 300; }
.brief-done p { color: var(--ash); max-width: 36ch; }
.brief-done:focus { outline: none; }
.brief .note { font-size: 13px; color: var(--ash); text-align: center; }

.contact-alt { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 8px; }
.contact-alt a { background: var(--onyx); padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; transition: background .2s; }
.contact-alt a:hover { background: var(--graphite); }
.contact-alt small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ash); letter-spacing: .1em; text-transform: uppercase; }
.contact-alt b { font-weight: 400; font-size: 17px; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 64px calc(40px + 72px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; gap: 40px; }
.foot-brand { display: grid; gap: 16px; }
.foot-brand .wordmark { font-size: 30px; }
.foot-brand .desc { font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--ash); }
.foot-brand p { color: var(--ash); max-width: 32ch; font-size: 15px; }
.foot-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); font-weight: 400; margin-bottom: 8px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; }
.foot-col a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; color: var(--white); opacity: .85; }
.foot-col a:hover { opacity: 1; color: var(--rim); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ash); }

/* ---------- Barra fixa de CTA no celular ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,10,11,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 56px 1fr; gap: 10px;
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.dock.show { transform: none; }
.dock .btn { min-height: 52px; padding: 0 16px; }
.dock .wa { padding: 0; border-color: var(--rule); }
.dock .wa svg { width: 22px; height: 22px; }

/* ---------- Páginas internas ---------- */
.page-hero { padding-top: clamp(56px, 10vw, 128px); padding-bottom: clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(38px, 8vw, 84px); max-width: 16ch; margin: 20px 0 24px; }
.page-hero .lead { max-width: 52ch; }
.page-hero .btn-row { margin-top: 36px; }

.svc-detail { display: grid; gap: 28px; padding-block: 56px; border-top: 1px solid var(--rule-l); }
.svc-detail:first-child { border-top: 0; padding-top: 0; }
.svc-detail .head { display: grid; gap: 14px; align-content: start; }
.svc-detail .head .n { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.svc-detail .head h2 { font-size: clamp(30px, 5vw, 46px); }
.svc-detail .head .promise { font-size: 19px; color: var(--ash-d); max-width: 44ch; }
.svc-detail .body { display: grid; gap: 28px; }
.svc-detail .cols { display: grid; gap: 28px; }
.svc-detail h4 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--ash-d); margin-bottom: 12px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 16px; }
.checks li::before { content: "✓"; color: var(--gold); font-family: var(--mono); }
.deliver { background: var(--paper); padding: 20px; border-left: 2px solid var(--gold); font-size: 15px; color: var(--ash-d); }
.deliver b { color: var(--onyx); font-weight: 500; }

.models { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.model {
  background: var(--onyx); padding: 32px 26px; display: flex; flex-direction: column; gap: 14px;
  position: relative; cursor: pointer; transition: background .3s;
}
.model:hover { background: var(--graphite); }
.model::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.model.is-active { background: var(--graphite); }
.model.is-active::before { transform: scaleX(1); }
.model-pick { all: unset; cursor: pointer; }
.model-pick::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.model-pick:focus-visible::after { outline: 2px solid var(--rim); outline-offset: -2px; }
.pick-dot { position: absolute; top: 28px; right: 24px; width: 18px; height: 18px; border: 1px solid var(--ash-d); border-radius: 50%; transition: border-color .3s; }
.pick-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .3s var(--ease); }
.model.is-active .pick-dot { border-color: var(--gold); }
.model.is-active .pick-dot::after { transform: scale(1); }
.model .tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--rim); }
.model h3 { font-size: 26px; font-weight: 300; }
.model .price { font-family: var(--mono); font-size: 13px; color: var(--ash); }
.model p { color: var(--ash); font-size: 15px; }
.model .checks li { font-size: 15px; color: var(--white); }
.model-cta { display: none; position: relative; z-index: 2; margin-top: auto; padding: 0 14px; font-size: 15px; text-align: center; }
.model.is-active .model-cta { display: inline-flex; animation: fade .4s var(--ease); }
.model .checks { margin-bottom: 12px; }

.timeline { display: grid; gap: 0; border-top: 1px solid var(--rule-l); }
.tl { display: grid; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--rule-l); }
.tl .yr { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.tl h3 { font-size: 22px; }
.tl p { color: var(--ash-d); max-width: 60ch; }

.letter { max-width: 720px; display: grid; gap: 22px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.7; font-weight: 300; }
.letter p:first-of-type::first-letter { font-size: 3.4em; float: left; line-height: .9; padding: 6px 12px 0 0; color: var(--rim); }
.sign { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.sign .av { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; color: var(--rim); }
.sign b { display: block; font-weight: 500; font-size: 17px; }
.sign small { font-family: var(--mono); color: var(--ash); font-size: 12px; }

.values { display: grid; gap: 1px; background: var(--rule-l); border: 1px solid var(--rule-l); }
.value { background: var(--white); padding: 28px 24px; display: grid; gap: 10px; }
.value .n { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.value p { color: var(--ash-d); font-size: 16px; }

/* ---------- Revelação ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .brief .two { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding-right: 24px; }
}
@media (min-width: 720px) {
  :root { --gutter: 32px; --header-h: 72px; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .testis { grid-template-columns: repeat(2, 1fr); }
  .pain { grid-template-columns: 120px 1fr 1.2fr; gap: 32px; align-items: baseline; padding: 36px 0; }
  .guarantee { grid-template-columns: auto 1fr; gap: 48px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .foot-bottom { flex-direction: row; justify-content: space-between; }
  .site-footer { padding-bottom: 40px; }
  .dock { display: none; }
  .models { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .tl { grid-template-columns: 140px 1fr; gap: 32px; }
  .svc-detail .cols { grid-template-columns: 1fr 1fr; }
  .contact-alt { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  body { font-size: 18px; }
  .site-header .wrap { gap: 20px; }
  .nav { display: flex; gap: 28px; margin-left: auto; }
  .lang { margin-left: 0; }
  .site-header .header-cta { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none; }
  .hero-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; }
  .hero h1 { font-size: clamp(52px, 5.4vw, 76px); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .testis { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .step { grid-template-columns: 1fr; gap: 16px; padding-bottom: 0; }
  .step::before { left: 48px; right: -24px; top: 23px; bottom: auto; width: auto; height: 1px; }
  .cta-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .cta-final h2 { font-size: clamp(44px, 4.4vw, 64px); }
  .cta-grid > div:first-child { position: sticky; top: 120px; }
  .svc-detail { grid-template-columns: 5fr 7fr; gap: 64px; padding-block: 80px; }
  .svc-detail .head { position: sticky; top: 110px; align-self: start; }
  .models { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(4, 1fr); }
  .split { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .split > .sec-head { position: sticky; top: 120px; margin-bottom: 0; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero h1 .line > span { transform: none; }
  .fade-in { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .stack-track { animation: none; flex-wrap: wrap; width: auto; gap: 16px 32px; }
}
