/* ==========================================================================
   Nidhi Digital — folha de estilo do site publico.

   Conversao dos estilos inline do projeto React original. Os valores numericos
   (cores, tamanhos, raios, curvas de transicao) foram copiados de App.tsx,
   PortfolioModal.tsx e index.css — item 97: o visual nao muda.

   O que mudou de proposito:
     - hover deixou de ser JS (onMouseEnter) e virou :hover/:focus-visible,
       o que torna os estados acessiveis por teclado;
     - o piso do H1 caiu de 52px para 34px (item 47);
     - grids passaram a ter breakpoints explicitos (itens 46, 49, 50);
     - alturas de viewport usam svh/dvh (item 47).

   Sumario
     01 Tokens
     02 Reset e base
     03 Tipografia
     04 Layout
     05 Botoes
     06 Header e menu mobile
     07 Hero
     08 Secoes da Home
     09 Portfolio (grid da Home + modal)
     10 Paginas internas e prose
     11 Formulario
     12 Footer
     13 Utilitarios
     14 Responsivo
   ========================================================================== */

/* ── 01 Tokens ─────────────────────────────────────────────────────────── */
:root {
  --nd-black:         #050608;
  --nd-black-soft:    #090B0F;
  --nd-graphite:      #11141A;
  --nd-graphite-blue: #141922;
  --nd-night:         #071426;
  --nd-deep:          #091D36;
  --nd-blue:          #126BFF;
  --nd-blue-hover:    #2B7FFF;
  --nd-blue-soft:     #7BB6FF;
  --nd-offwhite:      #F3F2ED;
  --nd-gray-light:    #C6CBD2;
  --nd-gray:          #9098A3;
  --nd-gray-dim:      #636B76;
  --nd-text:          #F1F3F5;
  --nd-text-dark:     #0A0C10;
  --nd-text-mid:      #3A4050;
  --nd-text-soft:     #5A6070;
  --nd-border:        rgba(255, 255, 255, 0.08);
  --nd-border-strong: rgba(255, 255, 255, 0.14);
  --nd-border-light:  rgba(0, 0, 0, 0.09);

  --nd-font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nd-font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --nd-radius:    5px;
  --nd-radius-lg: 8px;
  --nd-ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --nd-header-h:  68px;
  --nd-wrap:      1360px;
  --nd-gutter:    clamp(20px, 5vw, 48px);
  --nd-section-y: 140px;
}

/* ── 02 Reset e base ───────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nd-header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--nd-font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--nd-black);
  color: var(--nd-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;                /* nunca esconde bug de layout: ver item 51 */
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img { height: auto; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a { color: inherit; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; }

::selection {
  background: var(--nd-blue);
  color: #fff;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #202630; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--nd-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── 03 Tipografia ─────────────────────────────────────────────────────── */
.h1 {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 80px);   /* piso reduzido — item 47 */
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.body-1 {
  font-family: var(--nd-font-body);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--nd-gray);
}

.body-2 {
  font-family: var(--nd-font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--nd-gray);
}

.label {
  font-family: var(--nd-font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nd-gray-dim);
}

.label--blue  { color: var(--nd-blue-soft); letter-spacing: 0.06em; }
.text-light   { color: var(--nd-text); }
.text-dark    { color: var(--nd-text-dark); }
.text-soft    { color: var(--nd-text-soft); }

/* ── 04 Layout ─────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--nd-wrap);
  margin: 0 auto;
  padding-left: var(--nd-gutter);
  padding-right: var(--nd-gutter);
}

.section { padding: var(--nd-section-y) 0; }

.section--black     { background: var(--nd-black); }
.section--black-soft{ background: var(--nd-black-soft); }
.section--graphite  { background: var(--nd-graphite); }
.section--night     { background: var(--nd-night); }
.section--deep      { background: var(--nd-deep); }
.section--offwhite  { background: var(--nd-offwhite); color: var(--nd-text-dark); }
.section--services  { background: #0B0D11; }
.section--brasilia  { background: #0A111C; }

.grid          { display: grid; }
.grid--5-7     { grid-template-columns: 5fr 7fr; gap: 0 5vw; }
.grid--7-5     { grid-template-columns: 7fr 5fr; gap: 0 5vw; }
.grid--4-8     { grid-template-columns: 4fr 8fr; gap: 0 5vw; }
.grid--6-6     { grid-template-columns: 6fr 6fr; gap: 0 5vw; }
.grid--1-1     { grid-template-columns: 1fr 1fr; gap: 0 5vw; }
.items-start   { align-items: start; }
.items-center  { align-items: center; }
.items-end     { align-items: end; }

/* ── 05 Botoes ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--nd-radius);
  font-family: var(--nd-font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.btn--primary {
  background: var(--nd-blue);
  color: #fff;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--nd-blue-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--nd-border-strong);
  color: var(--nd-text);
  font-weight: 500;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.btn--outline-dark {
  height: 44px;
  padding: 0 22px;
  background: transparent;
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--nd-text-dark);
  font-size: 14px;
}
.btn--outline-dark:hover,
.btn--outline-dark:focus-visible {
  border-color: var(--nd-blue);
  background: rgba(18, 107, 255, 0.06);
}

.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }

.btn--link {
  height: auto;
  padding: 0;
  background: none;
  border: none;
  font-weight: 400;
  color: var(--nd-gray);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(144, 152, 163, 0.4);
}
.btn--link:hover,
.btn--link:focus-visible { color: var(--nd-text); }

/* ── 06 Header e menu mobile ───────────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nd-header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease;
}

.header.is-scrolled,
.header.is-solid {
  background: rgba(5, 6, 8, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--nd-header-h);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.header__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  /* O simbolo vem sobre fundo escuro; screen o funde com a pagina,
     exatamente como no projeto React original. */
  mix-blend-mode: screen;
  opacity: 0.95;
}

.header__logo span {
  font-family: var(--nd-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nd-text);
  white-space: nowrap;
}

.header__nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.header__nav a {
  font-size: 14px;
  color: var(--nd-gray);
  text-decoration: none;
  transition: color 150ms ease;
  white-space: nowrap;
}
.header__nav a:hover,
.header__nav a:focus-visible,
.header__nav a[aria-current="page"] { color: var(--nd-text); }

.header__cta { flex-shrink: 0; }

/* Hamburguer — item 48 */
.header__burger {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.header__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--nd-text);
  border-radius: 2px;
  transition: transform 220ms var(--nd-ease), opacity 160ms ease;
}

.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nd-header-h) 0 0 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 24px var(--nd-gutter) 40px;
  background: rgba(5, 6, 8, 0.985);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.is-open {
  display: flex;
  animation: nd-menu-in 200ms var(--nd-ease);
}

@keyframes nd-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.mobile-menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-menu__list a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--nd-border);
  font-family: var(--nd-font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--nd-text);
  text-decoration: none;
}
.mobile-menu__list a:hover { color: var(--nd-blue-soft); }

.mobile-menu__footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu__footer .btn { width: 100%; }

body.nd-no-scroll {
  overflow: hidden;
  touch-action: none;
}

/* ── 07 Hero — itens 40 a 47 ───────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;                 /* item 47 */
  background: var(--nd-black);
  overflow: hidden;
}

/* Canvas fora do fluxo de layout — item 44 */
.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero__visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 20% 60%, rgba(18, 107, 255, 0.08) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 100px;
}

.hero__eyebrow { display: block; margin-bottom: 28px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 5vw;
  align-items: end;
}

.hero__headline { color: var(--nd-text); }

.hero__copy { padding-bottom: 8px; }

.hero__copy p {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--nd-gray);
  max-width: 38ch;
}

.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero__hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 80px;
}

.hero__hint i {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--nd-gray-dim);
}

/* Indicador de progresso 01 → 05 */
.hero__progress {
  position: absolute;
  left: 50%;
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__progress-hint {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(144, 152, 163, 0.7);
  transition: opacity 600ms ease;
}
.hero__progress.is-touched .hero__progress-hint { opacity: 0; }

.hero__progress-track {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__progress-track > span {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(99, 107, 118, 0.6);
}

.hero__progress-rail {
  position: relative;
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.hero__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--nd-blue);
}

.hero__progress-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nd-blue);
  box-shadow: 0 0 8px rgba(18, 107, 255, 0.8);
  transform: translate(-50%, -50%);
}

/* ── 08 Secoes da Home ─────────────────────────────────────────────────── */

/* Problema */
.problem-list { border-top: 1px solid var(--nd-border); }
.problem-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--nd-border);
}
.problem-item .label { padding-top: 5px; }
.problem-item h3 { font-size: 20px; color: var(--nd-text); margin-bottom: 10px; }

/* Servicos */
.services__head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.services__head p { max-width: 38ch; margin-left: auto; }

.services__tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.services__tab {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 20px;
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.services__tab .label { min-width: 24px; }
.services__tab-name {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -0.02em;
  color: var(--nd-gray);
  transition: color 180ms ease;
}
.services__tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.04); }
.services__tab[aria-selected="true"] .services__tab-name { color: var(--nd-text); }

.services__panel { border-top: 1px solid var(--nd-border); padding-top: 32px; }
.services__panel[hidden] { display: none; }
.services__panel-text {
  margin-top: 16px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--nd-text);
}

.services__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 0;
  margin-top: 32px;
  list-style: none;
}
.services__items li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--nd-border);
  font-size: 15px;
  color: var(--nd-gray);
}
.services__items li i { flex-shrink: 0; font-style: normal; }

.services__phrase {
  margin-top: 36px;
  padding: 20px 24px;
  border-radius: var(--nd-radius-lg);
  border-left: 3px solid var(--nd-blue);
}
.services__phrase p {
  font-family: var(--nd-font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
  color: var(--nd-text);
}

.services__panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--nd-blue-soft);
  text-decoration: none;
}
.services__panel-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Automacao — fluxo */
.flow {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--nd-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 64px;
}
.flow__head {
  padding: 24px 32px;
  border-bottom: 1px solid var(--nd-border);
}
.flow__rail {
  display: flex;
  align-items: stretch;
  padding: 40px 32px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.flow__step { display: flex; align-items: center; flex-shrink: 0; }
.flow__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 100px;
}
.flow__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 107, 255, 0.12);
  border: 1px solid rgba(18, 107, 255, 0.25);
  font-size: 16px;
  color: var(--nd-blue-soft);
}
.flow__step.is-key .flow__icon {
  background: var(--nd-blue);
  border-color: var(--nd-blue);
  color: #fff;
}
.flow__label {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--nd-text);
  margin-bottom: 3px;
  text-align: center;
}
.flow__sub { font-size: 11px; color: var(--nd-gray-dim); max-width: 12ch; text-align: center; }
.flow__link {
  width: 48px;
  height: 1px;
  flex-shrink: 0;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--nd-blue), rgba(18, 107, 255, 0.2));
}

.scroll-hint {
  display: none;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nd-gray-dim);
}

/* Segmentos por aba */
.segtabs {
  display: flex;
  border-bottom: 1px solid var(--nd-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.segtabs::-webkit-scrollbar { display: none; }
.segtabs button {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  color: var(--nd-gray);
  cursor: pointer;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease;
}
.segtabs button[aria-selected="true"] {
  color: var(--nd-text);
  font-weight: 600;
  border-bottom-color: var(--nd-blue);
}

.segflow {
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
}
.segflow[hidden] { display: none; }
.segflow__item {
  padding: 8px 16px;
  border: 1px solid var(--nd-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: var(--nd-gray);
}
.segflow__item:first-child {
  background: rgba(18, 107, 255, 0.15);
  border-color: rgba(18, 107, 255, 0.3);
  color: var(--nd-blue-soft);
}
.segflow__arrow { margin: 0 10px; color: var(--nd-gray-dim); font-size: 12px; }

/* Ecossistema */
.eco { display: flex; flex-direction: column; }
.eco__row { display: flex; align-items: stretch; }
.eco__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 20px;
}
.eco__dot {
  width: 10px;
  height: 10px;
  margin-top: 20px;
  border-radius: 50%;
  background: rgba(18, 107, 255, 0.2);
  border: 2px solid rgba(18, 107, 255, 0.2);
  flex-shrink: 0;
  transition: background 400ms ease, border-color 400ms ease;
}
.eco__line {
  flex: 1;
  width: 2px;
  min-height: 32px;
  background: linear-gradient(rgba(18, 107, 255, 0.3), rgba(18, 107, 255, 0.1));
  transition: background 400ms ease;
}
.eco__row.is-active .eco__dot {
  background: var(--nd-blue);
  border-color: var(--nd-blue);
}
.eco__row.is-active .eco__line { background: var(--nd-blue); }
.eco__body {
  flex: 1;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.eco__row:last-child .eco__body { border-bottom: none; }
.eco__name {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--nd-gray-dim);
  margin-bottom: 6px;
  transition: color 300ms ease;
}
.eco__row.is-active .eco__name { color: var(--nd-text); }
.eco__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.eco__tags span {
  padding: 2px 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--nd-gray-dim);
  transition: color 300ms ease;
}
.eco__row.is-active .eco__tags span { color: var(--nd-gray); }

/* Lista de segmentos */
.seglist { list-style: none; }
.seglist a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 12px;
  border-top: 1px solid var(--nd-border);
  color: var(--nd-text);
  text-decoration: none;
  transition: background 150ms ease, padding-left 200ms ease;
}
.seglist li:last-child a { border-bottom: 1px solid var(--nd-border); }
.seglist a:hover,
.seglist a:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  padding-left: 20px;
}
.seglist__name {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.8vw, 22px);
  letter-spacing: -0.015em;
}
.seglist__stack {
  margin-left: auto;
  font-size: 12px;
  color: var(--nd-gray-dim);
  text-align: right;
  flex-shrink: 0;
}

/* Metodo */
.method {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.method__item { padding: 32px 24px 0 0; border-right: 1px solid rgba(0, 0, 0, 0.08); }
.method__item:last-child { border-right: none; }
.method__n {
  font-family: var(--nd-font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: rgba(0, 0, 0, 0.12);
}
.method__item:first-child .method__n { color: var(--nd-blue); }
.method__item h3 { font-size: 18px; color: var(--nd-text-dark); margin: 20px 0 12px; }
.method__item p { font-size: 14px; color: var(--nd-text-soft); line-height: 1.75; }

/* Contato / Brasilia — linhas de dado */
.datarow { display: flex; gap: 20px; align-items: flex-start; }
.datarow .label { padding-top: 3px; flex-shrink: 0; min-width: 80px; }
.datarow a { color: var(--nd-text); text-decoration: none; font-size: 16px; }
.datarow a:hover { color: var(--nd-blue-soft); }
.datarow span.value { color: var(--nd-gray); font-size: 16px; }

.proof-row {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--nd-border);
}
.proof-row:last-child { border-bottom: 1px solid var(--nd-border); }
.proof-row .label { padding-top: 3px; flex-shrink: 0; min-width: 80px; }

/* ── 09 Portfolio ──────────────────────────────────────────────────────── */
.portfolio__head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.portfolio__head .btn { margin-left: auto; }

.portfolio__rows { display: flex; flex-direction: column; gap: 24px; }
.portfolio__row { display: grid; gap: 24px; }
.portfolio__row--7-5 { grid-template-columns: 7fr 5fr; }
.portfolio__row--5-7 { grid-template-columns: 5fr 7fr; }
.portfolio__row--1-1 { grid-template-columns: 1fr 1fr; }

.pcard {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.pcard__frame {
  position: relative;
  border-radius: var(--nd-radius-lg);
  overflow: hidden;
  border: 1px solid var(--nd-border);
  transition: border-color 250ms ease;
  background: var(--nd-graphite-blue);
}
.pcard:hover .pcard__frame,
.pcard:focus-visible .pcard__frame { border-color: rgba(255, 255, 255, 0.12); }

.pcard__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcard__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.pcard__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pcard__status {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.pcard__tag {
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pcard__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.pcard__arrow i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-style: normal;
  font-size: 18px;
  transition: transform 300ms var(--nd-ease);
}
.pcard:hover .pcard__arrow i,
.pcard:focus-visible .pcard__arrow i { transform: scale(1.1); }

.pcard__meta { display: flex; gap: 20px; margin-top: 18px; }
.pcard__meta .label { padding-top: 6px; flex-shrink: 0; }
.pcard__meta h3 {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--nd-text);
  margin-bottom: 8px;
}
.pcard__meta p { font-size: 14px; line-height: 1.75; color: var(--nd-gray); }
.pcard__meta .pcard__type { display: block; margin-top: 10px; }

.portfolio__note {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--nd-border-light);
}

/* --- Modal — itens 9, 10, 49 --- */
.pmodal[hidden] { display: none; }

.pmodal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 6, 8, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: nd-fade-in 200ms ease;
  border: none;
  padding: 0;
}

.pmodal__dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 201;
  width: min(94vw, 1160px);
  height: min(92vh, 820px);
  height: min(92dvh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--nd-offwhite);
  color: var(--nd-text-dark);
  border-radius: 10px;
  transform: translate(-50%, -50%);
  animation: nd-modal-in 220ms var(--nd-ease);
}

@keyframes nd-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nd-modal-in {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.pmodal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.pmodal__title {
  font-family: var(--nd-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--nd-text-dark);
}
.pmodal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--nd-text-mid);
  cursor: pointer;
  transition: background 150ms ease;
}
.pmodal__close:hover { background: rgba(0, 0, 0, 0.12); }

.pmodal__filters {
  display: flex;
  gap: 0;
  padding: 0 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.pmodal__filters::-webkit-scrollbar { display: none; }
.pmodal__filters button {
  padding: 14px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  color: var(--nd-gray-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease;
}
.pmodal__filters button[aria-pressed="true"] {
  color: var(--nd-text-dark);
  font-weight: 600;
  border-bottom-color: var(--nd-blue);
}

.pmodal__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.pmodal__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  padding: 24px 32px 48px;
}
.pmodal__grid .mcard { grid-column: span 5; }
.pmodal__grid .mcard--large { grid-column: span 7; }
.pmodal__grid .mcard[hidden] { display: none; }

.pmodal__empty { padding: 80px 32px; text-align: center; color: var(--nd-gray-dim); }
.pmodal__empty[hidden] { display: none; }

.mcard {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.mcard__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.mcard--large .mcard__frame { aspect-ratio: 16 / 9; }
.mcard:hover .mcard__frame,
.mcard:focus-visible .mcard__frame {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.mcard__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mcard__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mcard__center i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-style: normal;
  transition: transform 260ms var(--nd-ease);
}
.mcard:hover .mcard__center i { transform: scale(1.12); }
.mcard__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.mcard__type {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mcard__meta { display: flex; gap: 14px; margin-top: 14px; }
.mcard__n {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nd-gray-dim);
  padding-top: 5px;
  flex-shrink: 0;
}
.mcard__meta h3 {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: -0.015em;
  color: var(--nd-text-dark);
  margin-bottom: 6px;
}
.mcard__meta p { font-size: 13px; color: var(--nd-gray-dim); }
.mcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--nd-blue);
}

/* Detalhe dentro do modal */
.pdetail { padding: 0 0 60px; }
.pdetail[hidden] { display: none; }

.pdetail__back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 32px;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--nd-gray-dim);
  cursor: pointer;
  transition: color 150ms ease;
}
.pdetail__back:hover { color: var(--nd-text-dark); }

.pdetail__inner { padding: 0 32px; }

.pdetail__badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pdetail__badge {
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.05);
  color: var(--nd-gray-dim);
}
.pdetail__badge--real { background: rgba(11, 107, 58, 0.08); color: #0B6B3A; }

.pdetail__name {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--nd-text-dark);
}
.pdetail__tagline {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--nd-text-soft);
  max-width: 52ch;
}

.pdetail__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  margin: 40px 0 48px;
  border-radius: var(--nd-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.pdetail__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdetail__cover-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pdetail__cover-empty i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-style: normal;
  font-size: 20px;
}
.pdetail__cover-empty span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.pdetail__grid { display: grid; grid-template-columns: 1fr 280px; gap: 0 48px; }

.pdetail__block { margin-bottom: 40px; }
.pdetail__block h3,
.pdetail__aside h3 {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nd-gray-dim);
  margin-bottom: 14px;
}
.pdetail__block p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--nd-text-mid);
}
.pdetail__block p + p { margin-top: 14px; }

.pdetail__result {
  padding: 20px 24px;
  border-radius: var(--nd-radius-lg);
  background: rgba(11, 107, 58, 0.06);
  border-left: 3px solid #0B6B3A;
}

.pdetail__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pdetail__gallery figure {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pdetail__gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdetail__gallery .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
}

.pdetail__aside > div { position: sticky; top: 20px; }
.pdetail__services { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.pdetail__services li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--nd-text-mid);
}
.pdetail__services i { font-style: normal; font-size: 10px; }

.pdetail__cta { border-top: 1px solid rgba(0, 0, 0, 0.08); padding-top: 24px; margin-top: 32px; }
.pdetail__cta p {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--nd-text-dark);
  margin-bottom: 12px;
}
.pdetail__cta .btn { height: 44px; font-size: 14px; }

/* ── 10 Paginas internas e prose ───────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nd-header-h) + 90px) 0 72px;
  background: var(--nd-black);
  border-bottom: 1px solid var(--nd-border);
}
.page-hero__eyebrow { display: block; margin-bottom: 20px; }
.page-hero h1 { color: var(--nd-text); max-width: 20ch; }
.page-hero__intro {
  margin-top: 24px;
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--nd-gray);
}
.page-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }

.breadcrumbs { margin-bottom: 28px; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 13px;
  color: var(--nd-gray-dim);
}
.breadcrumbs a { color: var(--nd-gray-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--nd-gray-light); text-decoration: underline; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }

.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--nd-text);
  margin: 56px 0 18px;
}
.prose h3 {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--nd-text);
  margin: 36px 0 12px;
}
.prose > :first-child { margin-top: 0; }
.prose p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--nd-gray-light);
  margin-bottom: 18px;
}
.prose a { color: var(--nd-blue-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--nd-text); }

.prose-list { list-style: none; margin: 0 0 24px; }
.prose-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--nd-gray-light);
}
.prose-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--nd-blue);
}
ol.prose-list { counter-reset: nd-ol; }
ol.prose-list li { counter-increment: nd-ol; }
ol.prose-list li::before { content: counter(nd-ol, decimal-leading-zero); font-size: 13px; color: var(--nd-blue-soft); }

.prose-quote {
  margin: 32px 0;
  padding: 20px 24px;
  background: rgba(18, 107, 255, 0.06);
  border-left: 3px solid var(--nd-blue);
  border-radius: var(--nd-radius-lg);
}
.prose-quote p {
  font-family: var(--nd-font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 17px;
  color: var(--nd-text);
  margin: 0;
}
.prose-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 13px;
  color: var(--nd-gray-dim);
}

.prose-figure { margin: 32px 0; }
.prose-figure img { width: 100%; border-radius: var(--nd-radius-lg); border: 1px solid var(--nd-border); }
.prose-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--nd-gray-dim); }

.prose-cta {
  margin: 40px 0;
  padding: 28px;
  border: 1px solid var(--nd-border);
  border-radius: 12px;
  background: rgba(18, 107, 255, 0.05);
}
.prose-cta p { margin-bottom: 18px; color: var(--nd-text); }

/* Cartoes de lista (servicos, segmentos, cases) */
.cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cardgrid--2 { grid-template-columns: repeat(2, 1fr); }

.linkcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--nd-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms var(--nd-ease);
}
.linkcard:hover,
.linkcard:focus-visible {
  border-color: rgba(18, 107, 255, 0.4);
  background: rgba(18, 107, 255, 0.05);
  transform: translateY(-2px);
}
.linkcard h3 {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--nd-text);
}
.linkcard p { font-size: 14px; line-height: 1.7; color: var(--nd-gray); }
.linkcard .arrow { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--nd-blue-soft); }

/* Blocos de dados da pagina de servico */
.factgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.factgrid section { padding-top: 32px; border-top: 1px solid var(--nd-border); margin-bottom: 40px; }
.factgrid h2 {
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nd-gray-dim);
  margin-bottom: 16px;
}

.steps { list-style: none; counter-reset: nd-step; }
.steps li {
  counter-increment: nd-step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--nd-border);
  font-size: 16px;
  line-height: 1.7;
  color: var(--nd-gray-light);
}
.steps li::before {
  content: counter(nd-step, decimal-leading-zero);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--nd-blue-soft);
  padding-top: 5px;
}

/* FAQ */
.faq { border-top: 1px solid var(--nd-border); }
.faq details {
  border-bottom: 1px solid var(--nd-border);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--nd-font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--nd-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--nd-font-body);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--nd-blue-soft);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div {
  padding: 0 0 24px;
  max-width: 68ch;
}
.faq details p { font-size: 16px; line-height: 1.8; color: var(--nd-gray); }
.faq details p + p { margin-top: 12px; }

/* ── 11 Formulario ─────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form label > span,
.form .field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--nd-gray);
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--nd-radius);
  color: var(--nd-text);
  font-size: 15px;
  outline: none;
  transition: border-color 150ms ease;
}
.form textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  line-height: 1.6;
  resize: vertical;
}
.form input::placeholder,
.form textarea::placeholder { color: var(--nd-gray-dim); }
.form input:focus,
.form textarea:focus { border-color: var(--nd-blue); }
.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"] { border-color: #E0574F; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: block;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: transparent;
  font-size: 13px;
  color: var(--nd-gray);
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.chip input:checked + span {
  border-color: var(--nd-blue);
  background: rgba(18, 107, 255, 0.15);
  color: var(--nd-blue-soft);
}
.chip input:focus-visible + span { outline: 2px solid var(--nd-blue-soft); outline-offset: 2px; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius-lg);
  background: rgba(255, 255, 255, 0.02);
}
.consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--nd-blue); }
.consent label { font-size: 14px; line-height: 1.6; color: var(--nd-gray); }

.form__submit { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--nd-gray-dim); }

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #FF8B84;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--nd-radius-lg);
  border: 1px solid var(--nd-border);
  font-size: 15px;
  line-height: 1.6;
}
.alert--ok    { border-color: rgba(91, 196, 168, 0.4); background: rgba(91, 196, 168, 0.08); color: #B6E7D9; }
.alert--error { border-color: rgba(224, 87, 79, 0.4);  background: rgba(224, 87, 79, 0.08);  color: #FFB4AE; }

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── 12 Footer ─────────────────────────────────────────────────────────── */
.footer { background: var(--nd-black); border-top: 1px solid var(--nd-border); }
.footer__inner { padding-top: 80px; padding-bottom: 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 2fr 2fr;
  gap: 24px;
  padding-bottom: 64px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { width: 30px; height: 30px; object-fit: contain; mix-blend-mode: screen; opacity: 0.92; }
.footer__brand span {
  font-family: var(--nd-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer__about { margin-top: 20px; max-width: 28ch; font-size: 15px; line-height: 1.7; color: var(--nd-gray); }
.footer__col .label { display: block; margin-bottom: 20px; }
.footer__col a {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--nd-gray);
  text-decoration: none;
  transition: color 150ms ease;
}
.footer__col a:hover, .footer__col a:focus-visible { color: var(--nd-text); }
.footer__col p { margin-top: 20px; font-size: 14px; line-height: 1.75; color: var(--nd-gray); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--nd-border);
  font-size: 13px;
  color: var(--nd-gray-dim);
}
.footer__bottom a { color: var(--nd-gray-dim); text-decoration: none; transition: color 150ms ease; }
.footer__bottom a:hover { color: var(--nd-gray); }

/* ── 13 Utilitarios ────────────────────────────────────────────────────── */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mt-72 { margin-top: 72px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-72 { margin-bottom: 72px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.maxw-38 { max-width: 38ch; }
.maxw-52 { max-width: 52ch; }
.maxw-30 { max-width: 30ch; }

/* ── 14 Responsivo — itens 46, 49, 50 ──────────────────────────────────── */

/* --- ate 1024px --- */
@media (max-width: 1024px) {
  .method { grid-template-columns: repeat(3, 1fr); }
  .method__item:nth-child(3n) { border-right: none; }
  .cardgrid { grid-template-columns: repeat(2, 1fr); }
}

/* --- ate 900px: colunas duplas viram uma --- */
@media (max-width: 900px) {
  :root { --nd-section-y: 104px; }

  .grid--5-7,
  .grid--7-5,
  .grid--4-8,
  .grid--6-6,
  .grid--1-1 { grid-template-columns: 1fr; gap: 32px 0; }

  .portfolio__row--7-5,
  .portfolio__row--5-7,
  .portfolio__row--1-1 { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .factgrid { grid-template-columns: 1fr; gap: 0; }
  .pdetail__grid { grid-template-columns: 1fr; }        /* item 49 */
  .pdetail__aside { margin-top: 40px; }
  .pdetail__aside > div { position: static; }
}

/* --- ate 768px: header vira menu mobile, modal vira tela cheia --- */
@media (max-width: 768px) {
  .header__nav,
  .header__cta { display: none; }
  .header__burger { display: flex; }

  .hero__grid { grid-template-columns: 1fr; gap: 28px 0; }   /* item 46 */
  .hero__content { padding-top: calc(var(--nd-header-h) + 56px); padding-bottom: 132px; }
  .hero__copy { padding-bottom: 0; }
  .hero__copy p { max-width: none; }
  .hero__hint { display: none; }
  .hero__progress { bottom: 28px; }
  .hero__progress-rail { width: 96px; }

  /* Modal ocupa a tela inteira — item 49 */
  .pmodal__dialog {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    border-radius: 0;
    transform: none;
    animation: nd-modal-in-mobile 220ms var(--nd-ease);
  }
  @keyframes nd-modal-in-mobile {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }

  .pmodal__header,
  .pmodal__filters,
  .pdetail__back,
  .pdetail__inner { padding-left: 20px; padding-right: 20px; }

  /* Uma coluna em smartphones — item 49 */
  .pmodal__grid { grid-template-columns: 1fr; gap: 28px; padding: 20px 20px 40px; }
  .pmodal__grid .mcard,
  .pmodal__grid .mcard--large { grid-column: auto; }
  .mcard__frame,
  .mcard--large .mcard__frame { aspect-ratio: 16 / 10; }

  .services__items { grid-template-columns: 1fr; }
  .services__head { margin-bottom: 48px; }
  .services__head p { margin-left: 0; max-width: none; }
  .services__tab { padding: 18px 16px; }

  .portfolio__head { margin-bottom: 48px; }
  .portfolio__head .btn { margin-left: 0; }

  .cardgrid { grid-template-columns: 1fr; }
  .scroll-hint { display: block; }

  .datarow { flex-direction: column; gap: 4px; }
  .datarow .label { min-width: 0; }

  .prose h2 { margin-top: 44px; }
}

/* --- ate 600px --- */
@media (max-width: 600px) {
  :root { --nd-section-y: 84px; }

  .method { grid-template-columns: 1fr; }
  .method__item { border-right: none; padding-right: 0; padding-top: 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .footer__inner { padding-top: 56px; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { align-items: stretch; flex-direction: column; gap: 14px; }
  .form__submit .btn { width: 100%; }
  .page-hero { padding-top: calc(var(--nd-header-h) + 56px); padding-bottom: 48px; }
  .seglist a { flex-wrap: wrap; gap: 6px 16px; }
  .seglist__stack { margin-left: 0; width: 100%; text-align: left; }
  .pdetail__gallery { grid-template-columns: 1fr; }
  .problem-item { grid-template-columns: 24px 1fr; gap: 0 14px; }
}

/* --- telas muito estreitas (320px) --- */
@media (max-width: 380px) {
  :root { --nd-gutter: 16px; }
  .header__logo span { font-size: 14px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__progress-rail { width: 72px; }
  .flow__node { min-width: 88px; }
}

/* --- movimento reduzido — item 96 --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__visual { transform: none !important; }
}

/* --- impressao --- */
@media print {
  .header, .mobile-menu, .hero__visual, .hero__progress, .pmodal { display: none !important; }
  body { background: #fff; color: #000; }
}
