/* Netward | main.css
   Dark premium, CSS nativo, sem dependencias externas.
   Linguagem visual herdada do logo: retangulos de cantos vivos + bloco azul + cursor.
   Um unico acento (azul da marca). Raio de canto: 0 em tudo. */

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

:root {
  color-scheme: dark;
  --bg: #0a0c10;
  --bg-2: #0e1117;
  --surface: #11151b;
  --surface-2: #171c24;
  --line: #222833;
  --line-2: #2e3541;
  --text: #f2f4f7;
  --muted: #a9b0bc;
  --faint: #808999;
  --accent: #38b6ff;
  --accent-hover: #6ccbff;
  --accent-ink: #04141f;
  --accent-tint: rgba(56, 182, 255, 0.07);
  --ok: #6fd3a0;
  --err: #ff8a80;
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 68px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::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;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
html, body { overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 0;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn[disabled], .btn.is-loading { cursor: progress; pointer-events: none; }
.btn.is-loading { position: relative; overflow: hidden; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-100%); animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Cabecalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(10, 12, 16, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .9375rem; transition: color .15s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav-toggle {
  display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); transition: transform .2s var(--ease), opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -6px; left: 0; right: 0; }
.nav-toggle span::after { top: 6px; left: 0; right: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: min(calc(100svh - var(--header-h)), 820px);
  display: flex; align-items: center;
  padding-block: 56px 72px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 22px; font: 500 .8125rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.hero h1 { font-size: clamp(2.35rem, 4.2vw, 3.5rem); line-height: 1.03; letter-spacing: -0.04em; }
.hero h1 .hl { white-space: nowrap; }
.hl {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 0 .16em .04em; margin-top: .08em; letter-spacing: -0.035em;
}
.hero-sub { margin: 26px 0 36px; max-width: 46ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Composicao do hero: capturas reais dos conceitos (computador atras, telemovel a frente).
   Regra de forma: tudo de cantos vivos; so a moldura do telemovel e arredondada, porque representa o aparelho. */
.hero-devices { position: relative; padding: 0 0 18% 0; }
.device-desk { border: 1px solid var(--line-2); background: var(--surface); padding: 6px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.device-desk img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.device-phone { position: absolute; right: -4%; bottom: 0; width: 34%; padding: 7px; border-radius: 30px; background: #1d222b; box-shadow: 0 0 0 1px #2e3541, 0 30px 60px -20px rgba(0, 0, 0, .8); }
.device-phone img { width: 100%; border-radius: 23px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }

/* ---------- Seccoes ---------- */
section { padding-block: clamp(72px, 10vw, 136px); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); max-width: 20ch; }
.lead { margin-top: 24px; max-width: 60ch; font-size: 1.1875rem; color: var(--muted); }

/* Auditoria: o unico bloco de cor da pagina (azul da marca) */
.proof { background: var(--accent); color: var(--accent-ink); }
.proof h2 { max-width: 18ch; }
.proof-lead { margin: 24px 0 clamp(36px, 5vw, 64px); max-width: 58ch; font-size: 1.1875rem; color: rgba(4, 20, 31, .82); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--accent-ink); }
.stat { padding: 28px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid rgba(4, 20, 31, .25); }
.stat .num { font: 600 clamp(3.4rem, 7vw, 6rem)/.9 var(--font); letter-spacing: -.05em; }
.stat .of { display: inline-block; margin-left: 10px; font: 500 .9375rem/1 var(--mono); }
.stat p { margin: 14px 0 0; max-width: 30ch; color: rgba(4, 20, 31, .86); }
.proof-note { margin: 40px 0 0; font: 500 .8125rem/1.5 var(--mono); color: rgba(4, 20, 31, .7); }

/* Conceitos: um caso grande e dois em pilha */
.cases { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: 18px; }
.case { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s var(--ease); }
.case:hover { border-color: var(--accent); }
.case--lead { grid-row: span 2; }
.case-shot { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.case-shot > img:first-child { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.case:hover .case-shot > img:first-child { transform: scale(1.02); }
.case--lead .case-shot { padding-bottom: 0; }
.case-phone { position: absolute; right: 5%; bottom: 7%; width: 22%; border-radius: 18px; border: 5px solid #1d222b; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); }
.case-meta { padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-meta h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -.03em; }
.case-meta p { margin: 0; color: var(--muted); max-width: 46ch; }
.case-go { margin-top: auto; padding-top: 12px; color: var(--accent); font-weight: 600; }
.case-go::after { content: " \2192"; }

/* O que recebes: bento de seis celulas com fundos diferentes */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cell { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: var(--surface); }
.cell h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -.025em; margin-bottom: 12px; line-height: 1.15; }
.cell p { margin: 0; color: var(--muted); max-width: 40ch; }
.cell--a { grid-column: 1 / span 3; grid-row: span 2; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: end; }
.cell--a img { width: 100%; border-radius: 20px; border: 5px solid #1d222b; }
.cell--b { grid-column: 4 / span 3; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cell--b p { color: rgba(4, 20, 31, .8); }
.cell--c { grid-column: 4 / span 3; background: var(--bg-2); }
.cell--d { grid-column: 1 / span 2; background: var(--accent-tint); border-color: var(--line-2); }
.cell--e { grid-column: 3 / span 2; }
.cell--f { grid-column: 5 / span 2; background: var(--surface-2); }

/* Processo: verbos grandes */
.steps { border-top: 1px solid var(--line-2); }
.step { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 48px; align-items: end; padding: 34px 0; border-bottom: 1px solid var(--line); }
.step h3 { font-size: clamp(2.4rem, 6.4vw, 5rem); letter-spacing: -0.045em; line-height: .95; transition: color .2s; }
.step:hover h3 { color: var(--accent); }
.step p { margin: 0; color: var(--muted); max-width: 40ch; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.75rem/1 var(--font); color: var(--accent); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; max-width: 62ch; color: var(--muted); }

/* CTA final */
.cta-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px 64px; align-items: end; }
.cta-band h2 { max-width: 16ch; font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
.cta-band p { margin: 22px 0 0; color: var(--muted); max-width: 48ch; font-size: 1.125rem; }
.cta-band .btn { justify-self: start; }

/* ---------- Rodape ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--bg); font-size: .9375rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr); gap: 40px; }
.footer-grid img { height: 40px; width: auto; margin-bottom: 20px; }
.footer-grid h2 { font: 500 .8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: 18px; max-width: none; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: .875rem; }

/* ---------- Paginas internas ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); max-width: 18ch; }
.page-hero .lead { margin-top: 20px; }
.prose { max-width: 740px; padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 120px); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; margin: 2.2em 0 .6em; max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .updated { font: 500 .8125rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 2em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border: 1px solid var(--line-2); color: var(--muted); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; background: var(--surface); }

.center-page { min-height: calc(100svh - var(--header-h) - 220px); display: flex; align-items: center; padding-block: 72px; }
.center-page h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 14ch; }
.center-page p { color: var(--muted); max-width: 48ch; margin: 22px 0 32px; font-size: 1.1875rem; }
.code-404 { font: 600 clamp(5rem, 16vw, 11rem)/.85 var(--font); letter-spacing: -0.06em; color: var(--accent); margin-bottom: 24px; }

/* ---------- Formulario ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 120px); }
.field { margin-bottom: 22px; }
.field label, .field .label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 500; }
.field .opt { color: var(--faint); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 0; color: var(--text); transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6e7686; }
.field input:hover, .field textarea:hover { border-color: var(--faint); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field .hint { margin-top: 6px; font-size: .875rem; color: var(--faint); }
.field .error { display: none; margin-top: 8px; font-size: .9375rem; color: var(--err); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.field.has-error .error { display: block; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); }
.check label { margin: 0; font-weight: 400; color: var(--muted); font-size: .9375rem; }
.check a { color: var(--text); text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-bottom: 22px; padding: 16px 18px; border: 1px solid var(--err); background: rgba(255, 138, 128, 0.07); color: var(--text); }
.form-status.show { display: block; }
.aside-box { padding: 28px; border: 1px solid var(--line); background: var(--surface); align-self: start; }
.aside-box h2 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 18px; max-width: none; }
.aside-box dl { margin: 0; }
.aside-box dt { font: 500 .8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 20px 0 6px; }
.aside-box dt:first-child { margin-top: 0; }
.aside-box dd { margin: 0; color: var(--text); }
.aside-box a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- Banner de cookies ---------- */
.cookie {
  position: fixed; z-index: 90; left: 16px; bottom: 16px; width: min(440px, calc(100% - 32px));
  background: var(--surface-2); border: 1px solid var(--line-2); padding: 22px; display: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.cookie.show { display: block; }
.cookie h2 { font-size: 1.125rem; letter-spacing: -0.01em; max-width: none; margin-bottom: 8px; }
.cookie p { font-size: .9375rem; color: var(--muted); margin-bottom: 16px; }
.cookie p a { color: var(--text); text-underline-offset: 3px; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cookie-actions .btn { min-height: 44px; padding: 0 10px; font-size: .9375rem; }
.cookie-prefs { display: none; margin-bottom: 16px; }
.cookie.prefs .cookie-prefs { display: block; }
.cookie.prefs .cookie-actions--main { display: none; }
.cookie:not(.prefs) .cookie-actions--prefs { display: none; }
.cookie-prefs label { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: .9375rem; }
.cookie-prefs small { grid-column: 1; color: var(--faint); font-size: .8125rem; }
.cookie-prefs input { width: 22px; height: 22px; accent-color: var(--accent); grid-column: 2; grid-row: 1 / span 2; }

/* ---------- CTA fixo em telemovel ---------- */
.sticky-cta { display: none; }

/* ---------- Revelar ao scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell--a, .cell--b, .cell--c, .cell--d, .cell--e, .cell--f { grid-column: auto; grid-row: auto; }
  .cell--a { grid-column: 1 / -1; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case--lead { grid-column: 1 / -1; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  /* backdrop-filter criaria um bloco de contencao para o menu fixo e colapsava-o */
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 12px var(--gutter) 32px; background: var(--bg); opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s; overflow-y: auto;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s; }
  .nav a:not(.btn) { padding: 20px 0; font-size: 1.375rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 24px; min-height: 56px; }
  .hero-grid, .cta-band .wrap, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-block: 44px 56px; }
  .hero-devices { max-width: 560px; }
  .device-phone { right: 2%; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 22px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid rgba(4, 20, 31, .25); }
  .row, .step { grid-template-columns: 1fr; }
  .step { align-items: start; }
}
@media (max-width: 768px) {
  body { padding-bottom: 84px; }
  .sticky-cta {
    display: block; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(10, 12, 16, 0.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2);
    transition: transform .25s var(--ease), visibility 0s;
  }
  .sticky-cta { gap: 10px; }
  .sticky-cta:not([hidden]) { display: flex; }
  .sticky-cta .btn { min-height: 56px; }
  .sticky-cta .btn-primary { flex: 1; }
  .sticky-cta .btn-wa { width: 56px; flex: none; }
  body[data-page="contacto"] .sticky-cta, body.consent-open .sticky-cta, body.footer-in-view .sticky-cta, body.nav-open .sticky-cta {
    transform: translateY(110%); visibility: hidden; pointer-events: none; transition: transform .25s var(--ease), visibility 0s linear .25s;
  }
  body[data-page="contacto"] { padding-bottom: 0; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cookie-actions { grid-template-columns: 1fr 1fr; }
  .cookie-actions .btn:first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .cell--a { grid-template-columns: 1fr; }
  .cell--a img { max-width: 220px; }
  .cases { grid-template-columns: 1fr; }
  .case-phone { display: none; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 2.1rem; }
  .btn { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Componentes das paginas de servico, regiao, estudo e guias ---------- */
.ico { display: inline-block; width: 1.1em; height: 1.1em; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-wa { --i: url("/assets/img/icons/whatsapp.svg"); }
.i-seta { --i: url("/assets/img/icons/seta.svg"); }
.btn-wa { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-wa:hover { border-color: #25d366; }
.btn-wa .ico { color: #25d366; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 26px; font: 500 .8125rem/1.4 var(--mono); color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--muted); }

.svc-hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.svc-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -.04em; max-width: 20ch; }
.svc-hero .lead { margin: 24px 0 34px; max-width: 46ch; }
.svc-shot { border: 1px solid var(--line-2); background: var(--surface); padding: 6px; }
.svc-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.svc-shot figcaption { padding: 12px 6px 6px; font-size: .875rem; color: var(--faint); }
.svc-shot figcaption a { color: var(--accent); text-underline-offset: 3px; }

.rows { border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; }
.row p { margin: 0; color: var(--muted); max-width: 58ch; }

.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.point { padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); }
.point h3 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 10px; line-height: 1.2; }
.point p { margin: 0; color: var(--muted); }

.links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.link-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .3s var(--ease); }
.link-card:hover { border-color: var(--accent); }
.link-card h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.03em; line-height: 1.15; }
.link-card p { margin: 0; color: var(--muted); max-width: 46ch; }
.link-card .go { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-card--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.link-card--accent p, .link-card--accent .go { color: var(--accent-ink); }

.article { max-width: 760px; padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 120px); }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.025em; margin: 2em 0 .6em; max-width: none; line-height: 1.15; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; letter-spacing: -.015em; }
.article p, .article li { color: var(--muted); font-size: 1.0625rem; }
.article strong { color: var(--text); font-weight: 600; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article ul { list-style: disc; }
.article li { margin-bottom: .5em; }
.article a { color: var(--accent); text-underline-offset: 3px; }
.meta-line { font: 500 .8125rem/1.5 var(--mono); color: var(--faint); margin-bottom: 0; }
.callout { margin: 28px 0; padding: 22px 24px; border-left: 3px solid var(--accent); background: var(--surface); }
.callout p { margin: 0; color: var(--text); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 32px; }
.figures div { padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.figures strong { display: block; font-size: 2.4rem; line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.figures span { display: block; margin-top: 8px; font-size: .9375rem; color: var(--muted); }

.sticky-cta .btn-wa { min-width: 56px; padding: 0; }

@media (max-width: 900px) {
  .svc-grid, .row { grid-template-columns: 1fr; }
  .points, .links-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
}

.footer-links { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.proof-note a { color: var(--accent-ink); text-underline-offset: 3px; }
.cta-band .hero-cta { justify-self: start; }
.tint { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note-src { margin: 22px 0 0; font: 500 .8125rem/1.5 var(--mono); color: var(--faint); }
.note-src a { color: var(--muted); text-underline-offset: 3px; }
.page-hero .crumbs { margin-bottom: 22px; }
.article strong { word-break: break-word; }

/* =====================================================================
   Revamp 16/10/2026: trabalho, servicos, CorteX e animacoes
   ===================================================================== */
.link { color: var(--accent); text-underline-offset: 3px; }
.eyebrow--ink { color: rgba(4, 20, 31, .72); }
.footer-sub { margin-top: 28px; }
.footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr); }

/* Cabecalho: sombra quando a pagina ja desceu */
.site-header { transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line-2); }

/* Etiquetas */
.tag { display: inline-flex; align-items: center; gap: 8px; font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tag::before { content: ""; width: 7px; height: 7px; background: var(--accent); }
.tag--quiet { color: var(--faint); }
.tag--quiet::before { background: var(--line-2); }

/* Cabecalho de seccao em duas colunas */
.section-head--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 64px; align-items: end; }
.section-head--split .lead { margin: 0; }

/* Hero: etiquetas dos dispositivos */
.hero-devices { isolation: isolate; }
.device-tag { position: absolute; z-index: 2; font: 500 .75rem/1 var(--mono); letter-spacing: .08em; color: var(--muted); background: rgba(10, 12, 16, .88); border: 1px solid var(--line-2); padding: 8px 10px; white-space: nowrap; }
.device-tag--desk { left: 0; top: -14px; }
.device-tag--phone { right: 0; bottom: -14px; }
.hero-note { margin: 18px 0 0; font-size: .9375rem; color: var(--faint); }

/* Moldura de telemovel reutilizavel */
.phone { position: relative; padding: 8px; border-radius: 34px; background: #1d222b; box-shadow: 0 0 0 1px #2e3541, 0 40px 80px -30px rgba(0, 0, 0, .85); }
.phone img, .phone video { display: block; width: 100%; height: auto; border-radius: 26px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #0d0d0f; }
.phone video { aspect-ratio: 9 / 16; }
.phone--lg { width: min(360px, 78vw); margin-inline: auto; }
.phone--md { width: min(320px, 70vw); margin-inline: auto; }

/* Janela de browser reutilizavel */
.browser { margin: 0; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.browser-bar span { margin-left: 12px; font: 500 .75rem/1 var(--mono); color: var(--faint); letter-spacing: .06em; }
.browser img { width: 100%; height: auto; }

/* Trabalho: destaque do CorteX */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 56px); margin-bottom: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 70%); overflow: hidden; }
.feature h3 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); letter-spacing: -.05em; line-height: .95; margin: 18px 0 18px; }
.feature-lead { color: var(--muted); font-size: 1.125rem; max-width: 46ch; }
.ticks { margin: 0 0 30px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.feature-media { position: relative; min-height: 420px; }
.feature-desk { position: absolute; right: -14%; top: 6%; width: 100%; border: 1px solid var(--line-2); background: var(--surface); padding: 5px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.feature-desk img { width: 100%; height: auto; }
.feature-phone { position: relative; width: min(250px, 46%); margin-left: 4%; }

/* Servicos em bento */
.svc-bento { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.svc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: var(--surface); text-decoration: none; overflow: hidden; transition: border-color .35s var(--ease), transform .35s var(--ease); }
.svc:hover { border-color: var(--accent); transform: translateY(-3px); }
.svc h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -.03em; line-height: 1.12; }
.svc p { margin: 0; color: var(--muted); max-width: 44ch; }
.svc .go { margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.svc .go .ico { transition: transform .3s var(--ease); }
.svc:hover .go .ico { transform: translateX(4px); }
.svc-k { font: 500 .8125rem/1 var(--mono); color: var(--faint); letter-spacing: .1em; }
.svc--a { grid-column: span 7; grid-row: span 2; justify-content: flex-end; min-height: 340px; background: linear-gradient(180deg, rgba(56, 182, 255, .10), rgba(56, 182, 255, 0) 70%), var(--surface); border-top: 3px solid var(--accent); }
.svc--a h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); max-width: 16ch; }
.svc--b, .svc--c { grid-column: span 5; }
.svc--d { grid-column: span 5; }
.svc--e { grid-column: span 7; flex-direction: row; align-items: stretch; gap: 24px; background: var(--bg-2); }
.svc--e > div { display: flex; flex-direction: column; gap: 10px; }
.svc--e img { width: 34%; max-width: 170px; align-self: flex-end; border-radius: 18px; border: 5px solid #1d222b; margin-bottom: -60px; transition: transform .5s var(--ease); }
.svc--e:hover img { transform: translateY(-10px); }
.svc-bento .svc--c { grid-row: span 1; }

/* Processo e FAQ: titulo fixo a esquerda */
.sticky-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 40px); }
.sticky-split .faq { max-width: none; }
.steps .step { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 6px 28px; }
.steps .step h3 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.steps .step p { grid-column: 2; }
.step-n { font: 500 .8125rem/1 var(--mono); color: var(--accent); letter-spacing: .1em; padding-top: .9em; }

/* Pagina CorteX */
.cx-hero { min-height: min(calc(100svh - var(--header-h)), 860px); }
.cx-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); max-width: 17ch; }
.cx-hero .crumbs { margin-bottom: 20px; }
.cx-hero-media { position: relative; }
.cx-hero-media::before { content: ""; position: absolute; inset: 10% 8% 10% 8%; background: radial-gradient(closest-side, rgba(56, 182, 255, .16), transparent); filter: blur(10px); z-index: -1; }
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.pain { padding: 30px 28px 10px 0; display: grid; gap: 12px; }
.pain + .pain { padding-left: 28px; border-left: 1px solid var(--line); }
.pain h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); letter-spacing: -.025em; line-height: 1.18; }
.pain p { margin: 0; color: var(--muted); }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.phones figure { margin: 0; }
.phones .phone { max-width: 300px; margin-inline: auto; }
.phones figure:nth-child(2) { transform: translateY(40px); }
.phones figcaption { margin-top: 22px; text-align: center; color: var(--muted); }
.phones figcaption b { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; background: var(--accent); color: var(--accent-ink); font: 600 .875rem/1 var(--mono); }
.split-rows { margin-top: clamp(48px, 6vw, 88px); display: grid; gap: clamp(48px, 6vw, 88px); }
.split-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-row h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 14px; }
.split-row p { margin: 0; color: var(--muted); max-width: 44ch; }
.split-row--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.split-row--rev > div { order: 2; }
.cx-barber { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cx-barber .ticks { margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 14px; align-content: start; }
.fact strong { font: 600 clamp(2rem, 3.6vw, 3rem)/1 var(--font); letter-spacing: -.045em; color: var(--accent); }
.fact span { color: var(--muted); }

/* ---------- Animacoes (so com JS e sem "reduzir movimento") ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal--scale { transform: translateY(24px) scale(.96); }
/* O clip vai no filho: o Chrome nao deteta como visivel um elemento todo recortado (IntersectionObserver) */
.js .reveal--clip { transform: none; transition: opacity .6s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal--clip .case-shot, .js .reveal--clip > img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal--clip.in .case-shot, .js .reveal--clip.in > img { clip-path: inset(0 0 0 0); }
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-i { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-split].in .split-i { transform: none; }
.hl .split-i { transform: none; }
[data-split] .hl { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-split].in .hl { clip-path: inset(0 0 0 0); }
[data-parallax] { will-change: transform; }
.btn[data-magnetic] { transition: background-color .18s var(--ease), transform .35s var(--ease-out); }
.case-shot > img:first-child { transition: transform 1.4s var(--ease-out); }
.case:hover .case-shot > img:first-child { transform: scale(1.04); }

@media (max-width: 1000px) {
  .feature, .section-head--split, .sticky-split, .cx-barber { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .feature-media { min-height: 0; padding-bottom: 8%; }
  .feature-desk { position: relative; right: auto; top: auto; width: 92%; }
  .feature-phone { position: absolute; right: 0; bottom: 0; width: 32%; margin: 0; }
  .svc-bento { grid-template-columns: 1fr 1fr; }
  .svc--a, .svc--b, .svc--c, .svc--d, .svc--e { grid-column: auto; grid-row: auto; }
  .svc--a, .svc--e { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .split-row, .split-row--rev { grid-template-columns: 1fr; }
  .split-row--rev > div { order: 0; }
}
@media (max-width: 768px) {
  .pains { grid-template-columns: 1fr; }
  .pain, .pain + .pain { padding: 24px 0; border-left: 0; }
  .pain + .pain { border-top: 1px solid var(--line); }
  .phones { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .phones figure { scroll-snap-align: center; }
  .phones figure:nth-child(2) { transform: none; }
  .svc-bento, .facts { grid-template-columns: 1fr; }
  .svc--e { flex-direction: column; }
  .svc--e img { width: 46%; margin: 0 0 -60px auto; }
  .device-tag { display: none; }
  .feature { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .split-i { transform: none !important; }
  [data-split] .hl, .js .reveal--clip .case-shot, .js .reveal--clip > img { clip-path: none !important; }
  [data-parallax] { transform: none !important; }
}
/* O caso grande ocupa a altura dos dois da direita: a imagem estica, o texto fica em baixo */
.case--lead .case-shot { flex: 1; min-height: 0; }
.case--lead .case-shot > img:first-child { height: 100%; aspect-ratio: auto; object-position: left top; }
.case--lead .case-meta { flex: 0 0 auto; }
@media (max-width: 1000px) { .case--lead .case-shot > img:first-child { aspect-ratio: 16 / 10; height: auto; } }
