/* Nexalyze · site institucional
   Paleta extraída do logo. Cada cor tem um papel fixo em todo o site:
   dourado (o olho) = análise · azul ("Nex") = sistemas/decisão · verde ("alyze") = automação/resultado. */

:root {
  --bg: #050e11;
  --bg-raised: #081619;
  --bg-panel: #0b1d21;
  --bg-input: #071417;

  --text: #e7f0ef;
  --text-muted: #a0b4b6;
  --text-subtle: #7a9196;

  --line: rgba(150, 205, 200, 0.11);
  --line-strong: rgba(150, 205, 200, 0.22);

  --gold: #e4d45a;
  --blue: #3592c4;
  --blue-deep: #226385;
  --green: #60d86c;
  --green-bright: #7fe58a;
  --teal: #3cc078;
  --on-green: #04170b;
  --error: #ff8a7a;

  --font-display: "Saira", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 144px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-tone="gold"] { --tone: var(--gold); --tone-rgb: 228, 212, 90; }
[data-tone="blue"] { --tone: var(--blue); --tone-rgb: 53, 146, 196; }
[data-tone="green"] { --tone: var(--green); --tone-rgb: 96, 216, 108; }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
a { color: var(--green); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-bright); }
address { font-style: normal; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--bg); }

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

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: 4px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--bg); }

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

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.975rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  padding: 13px 20px; border-radius: 4px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-bright); color: var(--on-green); }
.btn-line { border-color: var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--text-muted); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-lg { padding: 17px 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 40px; height: 40px; }
.brand-word { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.brand-word .nex { color: var(--blue); }
.brand-word .alyze { color: var(--green); }

/* Cabeçalho */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(5, 14, 17, 0.94); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(10px)) {
  .site-header.is-scrolled { background: rgba(5, 14, 17, 0.78); backdrop-filter: blur(14px) saturate(1.3); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav ul a {
  display: block; padding: 8px 14px; color: var(--text-muted); text-decoration: none;
  font-size: 0.9375rem; font-weight: 500; transition: color 0.2s var(--ease);
}
.nav ul a:hover, .nav ul a[aria-current="true"] { color: var(--text); }

.scroll-trace {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--blue) 50%, var(--green));
  transform-origin: left; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .scroll-trace { animation: grow-x linear both; animation-timeline: scroll(root); }
}
@keyframes grow-x { to { transform: scaleX(1); } }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; color: var(--text);
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; margin: 0 auto; background: currentColor; position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px;
    background: var(--bg); padding: 16px var(--gutter) max(32px, env(safe-area-inset-bottom));
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-header:has(.nav.is-open) { background: var(--bg); }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 18px 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-cta { padding: 18px; font-size: 1.0625rem; }
}

/* Abertura */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, min(100svh, 960px));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 0;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; touch-action: pan-y; }
.hero-grid {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.hero-copy { position: relative; padding-bottom: clamp(16px, 3vw, 40px); }
.hero h1 { font-size: clamp(2.4rem, 1.2rem + 3.4vw, 4.25rem); letter-spacing: -0.025em; line-height: 1; max-width: 16ch; }
.lede { margin-top: 28px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--text-muted); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-visual { position: relative; align-self: stretch; min-height: clamp(380px, 52vh, 600px); pointer-events: none; }
.lens-hint {
  position: absolute; right: 0; bottom: 8px; max-width: 30ch; text-align: right;
  font-size: 0.8125rem; color: var(--text-subtle);
}
@media (pointer: coarse) { .lens-hint { display: none; } }

.motto { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 28px; font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.motto span { display: inline-flex; align-items: center; gap: 9px; }
.motto span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.m-gold { --c: var(--gold); }
.m-blue { --c: var(--blue); }
.m-green { --c: var(--green); }

.readout {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(5, 14, 17, 0.6), var(--bg));
}
.readout > div { padding: 22px 24px 30px 0; }
.readout > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.readout dt { font-size: 0.8125rem; color: var(--text-subtle); }
.readout dd { margin-top: 4px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }

@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-visual { min-height: 0; height: min(92vw, 460px); order: -1; margin: -8px 0 8px; }
  .hero-copy { padding-bottom: 0; }
  .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .readout > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .readout > div, .readout > div + div { padding: 16px 12px 18px 0; }
  .readout > div:nth-child(even) { padding-left: 16px; }
  .readout dd { font-size: 1.0625rem; }
}

/* Seções */
.section { position: relative; padding: var(--section-y) 0; content-visibility: auto; contain-intrinsic-size: auto 1000px; }
.section-raised { background: var(--bg-raised); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head h2 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem); letter-spacing: -0.02em; }
.section-head p { color: var(--text-muted); max-width: 46ch; }
.section-head-stack { grid-template-columns: 1fr; align-items: start; gap: 16px; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head h2 br { display: none; }
}

/* Serviços */
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 40px clamp(40px, 6vw, 96px); align-items: center;
  padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--tone);
}
.service-tag::before { content: ""; width: 28px; height: 2px; background: var(--tone); }
.service h3 { margin-top: 18px; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -0.015em; }
.service-text > p:not(.service-tag) { margin-top: 18px; color: var(--text-muted); max-width: 52ch; }
.deliverables { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 28px; font-size: 0.9375rem; }
.deliverables li { display: flex; gap: 10px; align-items: baseline; }
.deliverables li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--tone); transform: translateY(-2px); }

.schematic {
  color: var(--tone); background: var(--bg-panel);
  border: 1px solid var(--line); border-radius: 10px; padding: clamp(8px, 1.5vw, 16px);
}
.schematic svg { width: 100%; height: auto; overflow: visible; }
.schematic text { font-family: var(--font-body); font-size: 13px; fill: var(--text-muted); text-anchor: middle; }
.s-grid path { stroke: var(--line); stroke-width: 1; fill: none; }
.s-scatter circle { fill: #3b5a62; }
.is-live .s-scatter circle { animation: blink 3.2s var(--ease) infinite; }
.s-scatter circle:nth-child(3n) { animation-delay: 0.6s; }
.s-scatter circle:nth-child(3n + 1) { animation-delay: 1.4s; }
@keyframes blink { 50% { fill: var(--gold); } }
.s-flow { fill: none; stroke: currentColor; stroke-opacity: 0.45; stroke-width: 1.5; stroke-dasharray: 3 4; }
.s-pulse { fill: currentColor; }
.s-frame { fill: none; stroke: var(--line-strong); }
.s-bars rect { fill: var(--blue-deep); opacity: 0.85; }
.s-trend { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 0; }
.is-live .s-trend { animation: draw 4.8s var(--ease) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 220; } 45%, 100% { stroke-dashoffset: 0; } }
.s-lens { fill: none; stroke: currentColor; stroke-width: 1.25; opacity: 0.7; }
.s-dot { fill: currentColor; }
.schematic .s-label { text-anchor: start; font-size: 12px; fill: var(--text-subtle); }
.s-trace { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.s-module rect { fill: var(--bg-input); stroke: var(--line-strong); }
.s-core rect { fill: rgba(var(--tone-rgb), 0.08); stroke: currentColor; stroke-width: 1.5; }
.s-core path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: 0.75; }
.s-doc path { fill: none; stroke: var(--text-muted); stroke-width: 1.5; stroke-linejoin: round; }
.s-engine > circle { fill: rgba(var(--tone-rgb), 0.06); stroke: currentColor; stroke-dasharray: 2 5; stroke-width: 1.5; }
.s-gear circle, .s-gear path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .deliverables { grid-template-columns: 1fr; }
}

/* Método: um circuito que liga as três etapas */
.circuit { position: relative; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); view-timeline: --circuit; }
.circuit-trace {
  position: absolute; top: 27px; left: 28px; width: calc(66.666% + 0px); height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue) 50%, var(--green));
  transform-origin: left center;
}
@supports (animation-timeline: view()) {
  .circuit-trace { animation: grow-x linear both; animation-timeline: --circuit; animation-range: entry 60% cover 55%; transform: scaleX(0); }
  .stage-node { animation: light-node linear both; animation-timeline: --circuit; }
  .stage:nth-child(2) .stage-node { animation-range: entry 55% entry 80%; }
  .stage:nth-child(3) .stage-node { animation-range: entry 90% cover 40%; }
  .stage:nth-child(4) .stage-node { animation-range: cover 45% cover 55%; }
}
@keyframes light-node { from { border-color: var(--line-strong); color: var(--text-subtle); } to { border-color: var(--tone); color: var(--tone); } }

.stage { position: relative; padding-right: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; }
.stage-node {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-raised); border: 1.5px solid var(--tone); color: var(--tone);
}
.stage-node svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stage h3 { margin-top: 32px; font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.25rem); letter-spacing: -0.02em; }
.stage > p:not(.stage-out) { margin-top: 16px; color: var(--text-muted); }
.stage-out { margin-top: auto; padding-top: 28px; font-size: 0.9375rem; }
.stage-out span { display: block; margin-top: 0; padding-top: 16px; border-top: 1px solid var(--line); margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; color: var(--tone); }

@media (max-width: 860px) {
  .circuit { grid-template-columns: 1fr; gap: 48px; }
  .circuit-trace { top: 28px; left: 27px; width: 2px; height: calc(100% - 56px); background: linear-gradient(180deg, var(--gold), var(--blue) 50%, var(--green)); transform-origin: top center; }
  @supports (animation-timeline: view()) {
    .circuit-trace { animation-name: grow-y; transform: scaleY(0); animation-range: entry 40% exit 60%; }
    .stage .stage-node { animation: none; }
  }
  .stage { padding: 0 0 0 80px; }
  .stage-node { position: absolute; left: 0; top: 0; }
  .stage h3 { margin-top: 6px; }
  .stage-out { padding-top: 20px; }
}
@keyframes grow-y { to { transform: scaleY(1); } }

/* Resultados */
.case {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px clamp(40px, 6vw, 96px); padding: clamp(40px, 5vw, 56px) 0; border-top: 1px solid var(--line);
}
.case::before { content: ""; position: absolute; left: 0; top: -1px; width: 72px; height: 2px; background: var(--tone); }
.case-sector { font-size: 0.875rem; font-weight: 500; color: var(--tone); }
.case h3 { margin-top: 12px; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); letter-spacing: -0.015em; max-width: 24ch; }
.case-text > p:not(.case-sector):not(.case-stack) { margin-top: 16px; color: var(--text-muted); max-width: 56ch; }
.case-stack { margin-top: 20px; font-size: 0.875rem; color: var(--text-subtle); }
.case-nums { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px 28px; align-content: start; }
.case-nums dd { max-width: 15ch; }
.case-nums > div { border-left: 1px solid var(--line); padding-left: 18px; }
.case-nums dt {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 1.1vw, 2.35rem);
  letter-spacing: -0.02em; line-height: 1; color: var(--tone); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.case-nums dd { margin-top: 10px; font-size: 0.875rem; line-height: 1.45; color: var(--text-muted); }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .case-nums { grid-template-columns: 1fr; gap: 0; }
  .case-nums > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; align-items: baseline; padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); }
  .case-nums dd { margin-top: 0; }
}

.quotes {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line);
}
.quote { display: flex; flex-direction: column; }
.quote blockquote { margin: 0; flex: 1; }
.quote blockquote p { color: var(--text); }
.quote blockquote p::before { content: "“"; }
.quote blockquote p::after { content: "”"; }
.quote-lead blockquote p { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.quote-lead blockquote p::before { color: var(--gold); }
.quote figcaption { margin-top: 24px; font-size: 0.9375rem; font-weight: 600; }
.quote figcaption span { display: block; font-weight: 400; color: var(--text-subtle); }
@media (max-width: 960px) {
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote-lead { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .quotes { grid-template-columns: 1fr; }
}

/* Projetos */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--text-muted);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 9px 14px; cursor: pointer; transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.filter::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone, var(--text-subtle)); }
.filter span { font-size: 0.8125rem; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.filter:hover { color: var(--text); border-color: var(--text-subtle); }
.filter[aria-pressed="true"] { color: var(--text); border-color: var(--tone, var(--text)); background: rgba(var(--tone-rgb, 231, 240, 239), 0.07); }

.projects { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
.project {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: 6px 32px; align-items: baseline; padding: 20px 0 20px 22px; position: relative;
  border-bottom: 1px solid var(--line); transition: background-color 0.25s var(--ease);
}
.project::before { content: ""; position: absolute; left: 0; top: 30px; width: 8px; height: 8px; background: var(--tone); }
.project:hover { background: linear-gradient(90deg, rgba(var(--tone-rgb), 0.06), transparent 70%); }
.project[hidden] { display: none; }
.project-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.project-name a { color: var(--text); text-decoration: none; }
.project-name a:hover { color: var(--tone); }
.ext { margin-left: 6px; font-weight: 400; color: var(--text-subtle); }
.project-desc { color: var(--text-muted); }
.project-tags { font-size: 0.875rem; color: var(--text-subtle); text-align: right; }
@media (max-width: 760px) {
  .project { grid-template-columns: 1fr; }
  .project::before { top: 29px; }
  .project-tags { text-align: left; }
}

/* Perguntas */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px clamp(40px, 6vw, 96px); }
.faq-grid .section-head { margin-bottom: 0; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.35;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--gold); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold); }
.faq details p { padding: 0 48px 26px 0; color: var(--text-muted); max-width: 62ch; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
}

/* Contato */
.section-contact { background: var(--bg-raised); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px clamp(40px, 7vw, 120px); }
.contact-intro h2 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem); letter-spacing: -0.02em; }
.contact-intro > p { margin-top: 20px; color: var(--text-muted); max-width: 42ch; }
.channels { margin-top: 40px; border-top: 1px solid var(--line-strong); }
.channels > div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.channels dt { font-size: 0.8125rem; color: var(--text-subtle); }
.channels dd { margin-top: 2px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; overflow-wrap: anywhere; }
.channels a { color: var(--text); text-decoration: none; }
.channels a:hover { color: var(--green); }

.form { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 10px; padding: clamp(24px, 3.5vw, 44px); }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 0.9375rem; font-weight: 500; margin-bottom: 8px; padding: 0; }
.optional { font-weight: 400; color: var(--text-subtle); }
.field input[type="text"], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-input); border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 13px 14px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
.field input[type="text"]:hover, .field textarea:hover { border-color: rgba(150, 205, 200, 0.36); }
.field input[type="text"]:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(96, 216, 108, 0.16); }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field-hint { margin-top: 8px; font-size: 0.8125rem; color: var(--text-subtle); }
.field-error { margin-top: 8px; font-size: 0.875rem; font-weight: 500; color: var(--error); }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 4px;
  font-size: 0.9375rem; font-weight: 400; cursor: pointer; user-select: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.choice span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--tone, var(--text-subtle)); transition: background-color 0.2s var(--ease); }
.choice span:hover { border-color: var(--text-subtle); }
.choice input:checked + span { border-color: var(--tone, var(--text)); background: rgba(var(--tone-rgb, 231, 240, 239), 0.08); }
.choice input:checked + span::before { background: var(--tone, var(--text)); border-color: var(--tone, var(--text)); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.field.has-error .choice span { border-color: var(--error); }

.form-note { margin-top: 14px; font-size: 0.8125rem; color: var(--text-subtle); text-align: center; }
.form-note:empty::before { content: "Ao enviar, o WhatsApp abre com a mensagem pronta."; }
.form-note.is-sent { color: var(--green); font-weight: 500; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Rodapé */
.site-footer { padding: clamp(72px, 9vw, 120px) 0 32px; font-size: 0.9375rem; color: var(--text-muted); border-top: 1px solid var(--line); }
.footer-motto {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 0.95;
  font-size: clamp(2.75rem, 1rem + 8vw, 8.5rem); margin-bottom: clamp(56px, 7vw, 96px);
}
.footer-motto span { color: var(--c); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.footer-brand p { margin-top: 16px; max-width: 34ch; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { color: var(--text); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--green); }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--text-subtle); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}
