/* =========================================================
   ÁREA NA WEB — DARK TECH
   Design System · protótipo visual v1
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Cores base (paleta do briefing) */
  --dark-primary: #101820;
  --dark-secondary: #162330;
  --dark-tertiary: #1C2B3A;      /* cards sobre fundo escuro */
  --blue-primary: #3977A8;
  --blue-highlight: #4D91C6;
  --blue-deep: #2F6690;          /* hover de botão azul / seção azul */
  --white: #FFFFFF;
  --off-white: #F7F9FA;
  --text-light-secondary: #AAB4BE;
  --text-dark-secondary: #5F6872;

  /* Linhas */
  --line-dark: rgba(170, 180, 190, .16);
  --line-dark-strong: rgba(170, 180, 190, .28);
  --line-light: #E1E6EA;
  --line-light-strong: #CBD3DA;

  /* Tipografia */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display: clamp(2.75rem, 1.4rem + 5.2vw, 5.75rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 3.9vw, 4.75rem);
  --fs-h2: clamp(2.05rem, 1.35rem + 2.6vw, 3.5rem);
  --fs-h3: clamp(1.4rem, 1.2rem + .7vw, 1.8rem);
  --fs-h4: 1.25rem;
  --fs-lead: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --fs-body: 1.125rem;   /* 18px */
  --fs-small: 1rem;      /* 16px — menor tamanho usado em texto corrido */
  --fs-meta: .9375rem;   /* 15px — apenas metadados */

  /* Espaçamento (escala 8) */
  --s-1: .5rem;  --s-2: 1rem;  --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 2.5rem; --s-6: 3rem;  --s-8: 4rem;   --s-10: 5rem;
  --section-y: clamp(5rem, 3.5rem + 6vw, 10rem);
  --gutter: clamp(1.25rem, .75rem + 2.5vw, 3rem);
  --container: 1280px;
  --container-narrow: 760px;

  /* Raios (hierarquia: grande para mídia/cards, médio para campos, pílula para tags) */
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
  --r-pill: 999px;

  /* Sombras — usadas só em elevação real (hover, header rolado) */
  --shadow-lift: 0 24px 48px -24px rgba(16, 24, 32, .35);
  --shadow-dark-lift: 0 30px 60px -30px rgba(0, 0, 0, .6);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .2s var(--ease);
  --t-med: .45s var(--ease);

  --header-h: 84px;
}

/* ---------- 2. Reset ---------- */
*, *::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;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--dark-primary);
  background: var(--dark-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--blue-highlight); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-highlight); color: var(--white); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--blue-primary); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); z-index: 200; }
.skip-link:focus { top: 16px; }

/* ---------- 3. Tipografia ---------- */
.display, .h1, .h2, .h3, .h4,
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.04;
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: .98; letter-spacing: -.03em; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.06; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.18; letter-spacing: -.012em; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }

/* Tom secundário dentro de títulos (segunda linha) */
.tone-mute { color: var(--text-light-secondary); }
.tone-blue { color: var(--blue-highlight); }
.sec--light .tone-mute, .sec--white .tone-mute { color: #8A949E; }
.sec--light .tone-blue, .sec--white .tone-blue { color: var(--blue-primary); }
.sec--blue .tone-mute { color: rgba(255,255,255,.62); }

.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 38em; }
.text-mute { color: var(--text-dark-secondary); }
.sec--dark .text-mute, .site-footer .text-mute { color: var(--text-light-secondary); }
.measure { max-width: 36em; }
.flow > * + * { margin-top: 1.1em; }

/* Rótulo curto de contexto — sentence case, sem caixa alta */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: var(--fs-small); font-weight: 600;
  color: var(--blue-primary);
  margin-bottom: var(--s-3);
}
.sec--dark .kicker, .page-hero .kicker { color: var(--blue-highlight); }
.sec--blue .kicker { color: rgba(255,255,255,.8); }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.sec { padding-block: var(--section-y); position: relative; }
.sec--tight { padding-block: calc(var(--section-y) * .6); }
.sec--dark  { background: var(--dark-primary); color: var(--white); }
.sec--dark2 { background: var(--dark-secondary); color: var(--white); }
.sec--light { background: var(--off-white); color: var(--dark-primary); }
.sec--white { background: var(--white); color: var(--dark-primary); }
.sec--blue  { background: var(--blue-primary); color: var(--white); }
.sec--dark2 .text-mute { color: var(--text-light-secondary); }
.sec--blue .text-mute { color: rgba(255,255,255,.82); }

.sec-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-6) var(--s-10); align-items: end; margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.sec-head--stack { grid-template-columns: 1fr; max-width: 52rem; }
.sec-head p { max-width: 32em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 1rem + 5vw, 7rem); align-items: center; }
.split--wide-media { grid-template-columns: .9fr 1.1fr; }
.split--top { align-items: start; }
.split--reverse > :first-child { order: 2; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }

/* ---------- 5. Botões ---------- */
.btn {
  --btn-bg: var(--blue-primary); --btn-fg: #fff; --btn-bd: var(--blue-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 56px; padding: 0 1.6rem;
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-sm);
  cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t-fast); }
.btn:hover { --btn-bg: var(--blue-deep); --btn-bd: var(--blue-deep); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: var(--line-dark-strong); }
.btn--ghost-light:hover { --btn-bg: rgba(255,255,255,.06); --btn-bd: var(--blue-highlight); }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--dark-primary); --btn-bd: var(--line-light-strong); }
.btn--ghost-dark:hover { --btn-bg: transparent; --btn-bd: var(--dark-primary); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--dark-primary); --btn-bd: #fff; }
.btn--white:hover { --btn-bg: var(--off-white); --btn-bd: var(--off-white); }
.btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }

/* Link de texto com seta */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--blue-primary);
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: border-color var(--t-fast), gap var(--t-fast);
}
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { border-color: currentColor; gap: .75rem; }
.sec--dark .link-arrow, .sec--dark2 .link-arrow, .card--dark .link-arrow { color: var(--blue-highlight); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
  color: #fff;
}
/* O blur fica num pseudo-elemento: backdrop-filter no próprio header
   vira "containing block" do menu fixo e o menu mobile some. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(16, 24, 32, .92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  transition: background var(--t-fast);
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.site-header.is-scrolled::before { background: rgba(16, 24, 32, .97); }
.menu-open .site-header::before { background: var(--dark-primary); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: .75rem; color: #fff; flex-shrink: 0; }
.logo__text { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1; }
.logo__text span { font-weight: 500; color: var(--text-light-secondary); }

.nav { display: flex; align-items: center; gap: var(--s-4); }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  position: relative; display: inline-flex; align-items: center;
  height: 44px; padding: 0 .95rem;
  font-size: 1.0625rem; font-weight: 500; color: rgba(255,255,255,.86);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: 4px;
  height: 2px; background: var(--blue-highlight); border-radius: 2px;
}
.nav__cta { margin-left: var(--s-1); }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line-dark-strong);
  background: transparent; border-radius: var(--r-sm); cursor: pointer; position: relative;
}
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--t-fast), opacity var(--t-fast); }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 30px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Hero interno de página ---------- */
.page-hero { background: var(--dark-primary); color: #fff; padding-block: clamp(4rem, 2.5rem + 6vw, 8.5rem) clamp(4rem, 2.5rem + 5vw, 7.5rem); position: relative; overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-8); align-items: end; }
.page-hero h1 { max-width: 14ch; }
.page-hero .lead { color: var(--text-light-secondary); }
.page-hero--split .page-hero__grid { grid-template-columns: 1fr 1fr; align-items: center; }
.page-hero--split h1 { max-width: none; }


.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-small); color: var(--text-light-secondary); margin-bottom: var(--s-5); }
.breadcrumb a { color: var(--text-light-secondary); transition: color var(--t-fast); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- 8. Mídia: fotos, palco de mockup, cantos ---------- */
.photo {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #1f3347 0%, #162330 55%, #243d55 100%);
  aspect-ratio: 4 / 5;
}
.photo--wide { aspect-ratio: 16 / 10; }
.photo--land { aspect-ratio: 3 / 2; }
.photo--banner { aspect-ratio: 21 / 9; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photo.is-broken img { display: none; }
.photo.is-broken::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(transparent 0 calc(100% - 1px), rgba(170,180,190,.08) 0) 0 0 / 100% 48px,
    linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(170,180,190,.08) 0) 0 0 / 48px 100%;
}


/* Palco: área de fundo onde vivem os mockups */
.stage {
  --stage-bg: var(--dark-secondary);
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--stage-bg);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem) clamp(1.5rem, 1rem + 2.5vw, 3.25rem) 0;
  display: flex; align-items: flex-end; justify-content: center;
  aspect-ratio: 16 / 11;
  isolation: isolate;
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(77,145,198,.28), transparent 60%),
    linear-gradient(transparent 0 calc(100% - 1px), rgba(255,255,255,.04) 0) 0 0 / 100% 40px;
}
.stage--light { --stage-bg: #E9EEF2; }
.stage--light::before { background: radial-gradient(120% 80% at 80% 0%, rgba(57,119,168,.18), transparent 60%), linear-gradient(transparent 0 calc(100% - 1px), rgba(16,24,32,.04) 0) 0 0 / 100% 40px; }
.stage--blue { --stage-bg: var(--blue-primary); }
.stage--blue::before { background: radial-gradient(100% 80% at 20% 0%, rgba(255,255,255,.2), transparent 60%); }
.stage--square { aspect-ratio: 1 / 1; }
.stage--tall { aspect-ratio: 4 / 5; }
.stage > .mock { width: 100%; transition: transform var(--t-med); }
.stage .mock-phone { position: absolute; right: 6%; bottom: -8%; width: 24%; min-width: 92px; transition: transform var(--t-med); }

/* ---------- 9. Mockups desenhados em CSS ---------- */
.mock {
  --m-bg: #fff; --m-ink: #101820; --m-acc: #3977A8; --m-soft: #E9EEF2; --m-line: #DCE3E9;
  background: var(--m-bg);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.45);
  overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #F1F4F6; border-bottom: 1px solid var(--m-line); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD3DA; }
.mock__bar b { flex: 1; max-width: 46%; height: 14px; margin-left: 10px; border-radius: 7px; background: #fff; border: 1px solid var(--m-line); }
.mock--dark { --m-bg: #111A23; --m-ink: #fff; --m-soft: #1B2835; --m-line: #243443; }
.mock--dark .mock__bar { background: #0C141B; }
.mock--dark .mock__bar i { background: #2B3C4C; }
.mock--dark .mock__bar b { background: #1B2835; border-color: #243443; }

.mock__screen { padding: 7%; display: grid; gap: 10px; aspect-ratio: 16 / 10; align-content: start; }
.m-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6%; }
.m-nav::before { content: ""; width: 18%; height: 8px; border-radius: 4px; background: var(--m-ink); }
.m-nav::after { content: ""; width: 40%; height: 5px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--m-line) 0 18%, transparent 18% 25%); }
.m-h { height: 12px; border-radius: 4px; background: var(--m-ink); width: 72%; }
.m-h--s { width: 48%; }
.m-p { height: 6px; border-radius: 3px; background: var(--m-line); width: 86%; }
.m-p--s { width: 60%; }
.m-btn { width: 22%; height: 16px; border-radius: 4px; background: var(--m-acc); margin-top: 6px; }
.m-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6%; }
.m-row--4 { grid-template-columns: repeat(4, 1fr); }
.m-card { aspect-ratio: 4 / 3; border-radius: 6px; background: var(--m-soft); position: relative; overflow: hidden; }
.m-card::after { content: ""; position: absolute; left: 10%; bottom: 12%; width: 55%; height: 5px; border-radius: 3px; background: var(--m-line); }
.m-card--acc { background: var(--m-acc); }
.m-card--acc::after { background: rgba(255,255,255,.5); }
.m-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8%; align-items: center; }
.m-hero > div { display: grid; gap: 9px; }
.m-img { aspect-ratio: 1 / 1; border-radius: 8px; background: linear-gradient(135deg, var(--m-acc), color-mix(in srgb, var(--m-acc) 40%, var(--m-ink))); }

/* dashboard */
.mock__screen--dash { grid-template-columns: 18% 1fr; gap: 0; padding: 0; }
.m-side { background: var(--m-soft); padding: 14% 12%; display: grid; gap: 10px; align-content: start; }
.m-side i { display: block; height: 6px; border-radius: 3px; background: var(--m-line); }
.m-side i:first-child { background: var(--m-acc); width: 70%; margin-bottom: 8px; height: 8px; }
.m-main { padding: 6%; display: grid; gap: 10px; align-content: start; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-kpi { border: 1px solid var(--m-line); border-radius: 6px; padding: 10%; display: grid; gap: 6px; }
.m-kpi::before { content: ""; height: 5px; width: 50%; border-radius: 3px; background: var(--m-line); }
.m-kpi::after { content: ""; height: 11px; width: 70%; border-radius: 3px; background: var(--m-ink); }
.m-chart { display: flex; align-items: flex-end; gap: 5%; height: 90px; padding: 12px; border: 1px solid var(--m-line); border-radius: 6px; }
.m-chart i { flex: 1; background: var(--m-soft); border-radius: 3px 3px 0 0; }
.m-chart i:nth-child(1) { height: 40%; } .m-chart i:nth-child(2) { height: 62%; } .m-chart i:nth-child(3) { height: 48%; }
.m-chart i:nth-child(4) { height: 78%; } .m-chart i:nth-child(5) { height: 58%; } .m-chart i:nth-child(6) { height: 92%; background: var(--m-acc); }
.m-chart i:nth-child(7) { height: 70%; }
.m-table { display: grid; gap: 7px; }
.m-table i { display: block; height: 6px; border-radius: 3px; background: var(--m-line); }
.m-table i:nth-child(odd) { width: 92%; } .m-table i:nth-child(even) { width: 78%; }

/* loja */
.m-shop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-prod { display: grid; gap: 5px; }
.m-prod::before { content: ""; aspect-ratio: 1; border-radius: 6px; background: var(--m-soft); }
.m-prod::after { content: ""; height: 5px; width: 70%; border-radius: 3px; background: var(--m-line); }
.m-prod:nth-child(2)::before { background: color-mix(in srgb, var(--m-acc) 30%, var(--m-soft)); }

/* notícias */
.m-news { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.m-news .m-card { aspect-ratio: auto; min-height: 110px; }
.m-news > div { display: grid; gap: 8px; align-content: start; }

/* telefone */
.mock-phone {
  background: #0C141B; border-radius: 22px; padding: 7px;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.6);
}
.mock-phone__screen { background: var(--phone-bg, #fff); border-radius: 16px; aspect-ratio: 9 / 19; padding: 14% 10%; display: grid; gap: 8px; align-content: start; overflow: hidden; }
.mock-phone__screen .m-h { height: 8px; }
.mock-phone__screen .m-p { height: 4px; }
.mock-phone__screen .m-img { aspect-ratio: 4 / 3; margin: 6px 0; }
.mock-phone__screen .m-btn { width: 60%; height: 14px; }

/* servidor (ilustração) */
.rack { width: 70%; max-width: 360px; margin-bottom: 8%; display: grid; gap: 10px; }
.rack__unit { height: 46px; border-radius: 8px; background: #0E171F; border: 1px solid #263646; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.rack__unit i { width: 8px; height: 8px; border-radius: 50%; background: #2B3C4C; }
.rack__unit i.on { background: #58C27D; box-shadow: 0 0 0 3px rgba(88,194,125,.15); }
.rack__unit i.blue { background: var(--blue-highlight); box-shadow: 0 0 0 3px rgba(77,145,198,.18); }
.rack__unit b { flex: 1; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, #22323F 0 6px, transparent 6px 10px); }

/* ---------- 10. Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line-light);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-med), box-shadow var(--t-med);
}
.card:hover { border-color: var(--line-light-strong); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card--dark { background: var(--dark-tertiary); border-color: var(--line-dark); color: #fff; }
.card--dark:hover { border-color: rgba(77,145,198,.55); box-shadow: var(--shadow-dark-lift); }
.card__body { padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card__body p { color: var(--text-dark-secondary); }
.card--dark .card__body p { color: var(--text-light-secondary); }
.card__foot { margin-top: auto; padding-top: var(--s-3); display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; }
.card .stage { border-radius: 0; }
.card:hover .stage > .mock { transform: translateY(-6px); }
.card:hover .stage .mock-phone { transform: translateY(-10px); }
.card:hover .photo img { transform: scale(1.04); }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }  /* card inteiro clicável */
.card a:not(.card__link), .card button { position: relative; z-index: 2; }

/* Bloco de característica — sem caixa, só texto com barra */
.feature { padding-top: var(--s-3); border-top: 2px solid var(--line-light); display: grid; gap: var(--s-2); }
.feature h3 { font-size: 1.45rem; }
.feature p { color: var(--text-dark-secondary); }
.sec--dark .feature, .sec--dark2 .feature { border-top-color: var(--line-dark-strong); }
.sec--dark .feature p, .sec--dark2 .feature p { color: var(--text-light-secondary); }
.feature:hover { border-top-color: var(--blue-primary); }
.feature { transition: border-color var(--t-fast); }
.feature__icon { width: 44px; height: 44px; color: var(--blue-primary); }
.sec--dark .feature__icon, .sec--dark2 .feature__icon { color: var(--blue-highlight); }

/* Tags */
.tag {
  display: inline-flex; align-items: center; height: 32px; padding: 0 .9rem;
  font-size: var(--fs-meta); font-weight: 600; line-height: 1;
  border-radius: var(--r-pill);
  background: rgba(57,119,168,.1); color: var(--blue-primary);
}
.card--dark .tag, .sec--dark .tag, .page-hero .tag { background: rgba(77,145,198,.16); color: #9CC6E8; }
.tag--neutral { background: var(--off-white); color: var(--text-dark-secondary); border: 1px solid var(--line-light); }

/* Chips de filtro */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  height: 44px; padding: 0 1.15rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-light-strong); background: transparent;
  font-weight: 600; font-size: 1rem; color: var(--dark-primary); cursor: pointer;
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--dark-primary); }
.chip[aria-pressed="true"] { background: var(--dark-primary); border-color: var(--dark-primary); color: #fff; }

/* ---------- 11. Grid automático par/ímpar (Produtos e Portfólio) ---------- */
.auto-grid { display: grid; gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); grid-template-columns: 1fr; }
.auto-grid > [hidden] { display: none !important; }

@media (min-width: 700px) {
  .auto-grid { grid-template-columns: repeat(4, 1fr); }
  .auto-grid > * { grid-column: span 2; }
  .auto-grid.is-odd > .is-tail-2 { grid-column: 2 / span 2; }   /* último item centralizado no tablet */
}
@media (min-width: 1101px) {
  .auto-grid.is-even { grid-template-columns: repeat(2, 1fr); }
  .auto-grid.is-even > * { grid-column: auto; }
  .auto-grid.is-odd { grid-template-columns: repeat(6, 1fr); }
  .auto-grid.is-odd > * { grid-column: span 2; }
  .auto-grid.is-odd > .is-tail-2 { grid-column: span 2; }
  .auto-grid.is-odd > .is-rest-1 { grid-column: 3 / span 2; }  /* sobra 1: centro */
  .auto-grid.is-odd > .is-rest-2a { grid-column: 2 / span 2; } /* sobra 2: centralizadas */
  .auto-grid.is-odd > .is-rest-2b { grid-column: 4 / span 2; }
}
/* Em 3 colunas os cards ficam mais compactos */
@media (min-width: 1101px) {
  .auto-grid.is-odd .card__body h3 { font-size: 1.45rem; }
  .auto-grid.is-odd .stage { aspect-ratio: 4 / 3; }
}

/* Painel de simulação do protótipo */
.proto-panel {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3);
  padding: 1rem 1.25rem; margin-bottom: var(--s-6);
  border: 1.5px dashed var(--line-light-strong); border-radius: var(--r-md);
  font-size: var(--fs-small); color: var(--text-dark-secondary);
}
.proto-panel strong { color: var(--dark-primary); }
.proto-panel .chips { gap: .4rem; }
.proto-panel .chip { height: 38px; min-width: 42px; padding: 0 .8rem; font-size: .95rem; }
.proto-panel output { margin-left: auto; font-weight: 600; color: var(--blue-primary); }

/* ---------- 12. Produto / Portfólio ---------- */
.product .card__body h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.product__meta { display: flex; gap: .5rem; flex-wrap: wrap; }
.project .stage { aspect-ratio: 16 / 10.5; }
.project__cat { font-size: var(--fs-small); font-weight: 600; color: var(--blue-primary); }
.card--dark .project__cat { color: var(--blue-highlight); }

/* ---------- 13. Serviços (lista grande) ---------- */
.service-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: center;
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--line-light);
}
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-row:last-child { padding-bottom: 0; }
.service-row:nth-child(even) .service-row__media { order: -1; }
.service-row h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.service-row p { color: var(--text-dark-secondary); margin-top: var(--s-3); max-width: 32em; }
.checklist { display: grid; gap: .8rem; margin: var(--s-4) 0; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; }
.checklist li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: .25em;
  border-radius: 50%; background: rgba(57,119,168,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233977A8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.sec--dark .checklist li::before, .sec--dark2 .checklist li::before { background-color: rgba(77,145,198,.18); }

/* Cartão de serviço compacto (para "outros serviços") */
.svc-card { padding: var(--s-4); gap: var(--s-2); min-height: 220px; }
.svc-card h3 { font-size: 1.4rem; }

/* ---------- 14. Etapas (sequência real → numerada) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); counter-reset: step; }
.step { counter-increment: step; display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line-dark-strong); position: relative; }
.step::before {
  content: counter(step); font-family: var(--font-display); font-stretch: 112%;
  font-size: 3.5rem; font-weight: 800; line-height: 1; color: var(--blue-highlight); margin-bottom: var(--s-2);
}
.step::after { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 3px; background: var(--blue-highlight); }
.step p { color: var(--text-light-secondary); }
.sec--white .step, .sec--light .step { border-top-color: var(--line-light-strong); }
.sec--white .step::before, .sec--light .step::before { color: var(--blue-primary); }
.sec--white .step::after, .sec--light .step::after { background: var(--blue-primary); }
.sec--white .step p, .sec--light .step p { color: var(--text-dark-secondary); }

/* Linha do tempo (Empresa) */
.timeline { display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 7rem 1fr; gap: var(--s-4); padding-block: var(--s-4); border-top: 1px solid var(--line-dark); }
.timeline li:last-child { border-bottom: 1px solid var(--line-dark); }
.timeline time { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.75rem; color: var(--blue-highlight); line-height: 1.2; }
.timeline p { color: var(--text-light-secondary); margin-top: .35rem; }

/* Grande citação/manifesto */
.statement { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; }

/* Números de apoio */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-8); }
.fact { border-left: 2px solid var(--blue-primary); padding-left: var(--s-3); }
.fact strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3.25rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.fact span { display: block; margin-top: .5rem; color: var(--text-dark-secondary); font-size: var(--fs-small); }

/* ---------- 15. FAQ ---------- */
.faq { border-top: 1px solid var(--line-light-strong); }
.faq details { border-bottom: 1px solid var(--line-light-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  padding: var(--s-4) 0; font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--line-light-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23101820' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 5v10M5 10h10'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform var(--t-fast), background-color var(--t-fast);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--off-white); }
.faq summary:hover { color: var(--blue-primary); }
.faq details p { padding-bottom: var(--s-4); color: var(--text-dark-secondary); max-width: 44em; }

/* ---------- 16. CTA ---------- */
.cta-band { display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--s-6); align-items: end; }
.cta-band h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); }
.cta-band .btn-row { justify-content: flex-end; margin-top: 0; }

/* ---------- 17. Blog ---------- */
.post-featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.post-featured h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
.post-featured h2 a:hover { color: var(--blue-primary); }
.post-featured .photo:hover img { transform: scale(1.03); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; font-size: var(--fs-meta); color: var(--text-dark-secondary); }
.post-meta > span { display: inline-flex; align-items: center; gap: .4rem; }
.post-meta svg { width: 16px; height: 16px; opacity: .7; }
.page-hero .post-meta, .sec--dark .post-meta { color: var(--text-light-secondary); }

.post-card .photo { aspect-ratio: 16 / 10; border-radius: 0; }
.post-card h3 { font-size: 1.4rem; line-height: 1.25; }
.post-card .card__body { gap: var(--s-2); }

.blog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-6); }

.pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: var(--s-10); flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 48px; height: 48px; padding: 0 .9rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border-radius: var(--r-sm); border: 1.5px solid var(--line-light-strong); font-weight: 600; transition: all var(--t-fast);
}
.pagination a:hover { border-color: var(--dark-primary); }
.pagination [aria-current] { background: var(--dark-primary); border-color: var(--dark-primary); color: #fff; }
.pagination .is-gap { border: 0; min-width: 24px; }
.pagination svg { width: 16px; height: 16px; }

/* Artigo */
.article-hero { padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.article-hero h1 { max-width: 20ch; font-size: clamp(2.35rem, 1.5rem + 3.3vw, 4.25rem); }
.article-hero .lead { margin-top: var(--s-4); }
.article-hero .post-meta { margin-top: var(--s-5); }
.article-cover { margin-top: calc(clamp(3rem, 2rem + 3vw, 5rem) * -1); position: relative; z-index: 1; }
.article-cover-wrap { background: linear-gradient(var(--dark-primary) 50%, var(--white) 50%); padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.author { display: inline-flex; align-items: center; gap: .8rem; line-height: 1.3; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--blue-primary); color: #fff; font-size: 1rem; flex-shrink: 0; }

.prose { font-size: clamp(1.15rem, 1.1rem + .2vw, 1.25rem); line-height: 1.75; color: #26313B; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.35rem); margin-top: 2.2em; color: var(--dark-primary); }
.prose h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); margin-top: 1.9em; color: var(--dark-primary); }
.prose h2 + p, .prose h3 + p { margin-top: .8em; }
.prose a { color: var(--blue-primary); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--blue-deep); text-decoration-thickness: 2.5px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--blue-primary); font-weight: 700; }
.prose blockquote {
  margin-block: 2em; padding: .2em 0 .2em 1.5em; border-left: 3px solid var(--blue-primary);
  font-family: var(--font-display); font-stretch: 108%; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); font-weight: 700; line-height: 1.3; color: var(--dark-primary);
}
.prose figure { margin-block: 2.4em; }
.prose figcaption { margin-top: .8rem; font-size: var(--fs-small); color: var(--text-dark-secondary); }
.prose .callout { background: var(--off-white); border: 1px solid var(--line-light); border-radius: var(--r-md); padding: 1.5rem 1.75rem; font-size: 1.1rem; }
.prose .callout strong { color: var(--dark-primary); }
.prose code { font-size: .92em; background: var(--off-white); padding: .1em .4em; border-radius: 4px; }

.share { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-8); padding-top: var(--s-4); border-top: 1px solid var(--line-light); }
.share span { font-weight: 600; margin-right: var(--s-1); }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-light-strong); display: inline-grid; place-items: center; transition: all var(--t-fast); background: transparent; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--blue-primary); color: var(--blue-primary); }

.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--blue-highlight); z-index: 101; }

/* ---------- 18. Formulários ---------- */
.form { display: grid; gap: var(--s-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field { display: grid; gap: .5rem; }
.field label { font-weight: 600; font-size: 1rem; }
.field label small { font-weight: 400; color: var(--text-dark-secondary); font-size: .95rem; }
.input, .select, .textarea {
  width: 100%; min-height: 56px; padding: .9rem 1.1rem;
  font-size: 1.0625rem; line-height: 1.4;
  background: var(--white); color: var(--dark-primary);
  border: 1.5px solid var(--line-light-strong); border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 160px; resize: vertical; }
.select { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235F6872' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") right 1rem center / 18px no-repeat; padding-right: 3rem; }
.input::placeholder, .textarea::placeholder { color: #8A949E; }
.input:hover, .select:hover, .textarea:hover { border-color: #9AA5AF; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-primary); box-shadow: 0 0 0 4px rgba(57,119,168,.16); }
.field.is-invalid .input, .field.is-invalid .textarea, .field.is-invalid .select { border-color: #C2413A; box-shadow: 0 0 0 4px rgba(194,65,58,.1); }
.field.is-valid .input, .field.is-valid .textarea { border-color: #3E9A62; }
.field__error { display: none; color: #B23A33; font-size: .95rem; font-weight: 500; }
.field.is-invalid .field__error { display: block; }
.input:disabled { background: var(--off-white); color: #8A949E; cursor: not-allowed; }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: 1rem; color: var(--text-dark-secondary); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--blue-primary); margin-top: .15em; flex-shrink: 0; }
.form-success { display: none; padding: 1.25rem 1.5rem; border-radius: var(--r-md); background: rgba(62,154,98,.1); border: 1px solid rgba(62,154,98,.35); color: #2A6F46; font-weight: 500; }
.form-success.is-visible { display: block; }

/* Contato */
.contact-card { background: var(--white); border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.contact-list { display: grid; gap: 0; }
.contact-item { display: grid; grid-template-columns: 52px 1fr; gap: var(--s-3); align-items: center; padding-block: var(--s-4); border-top: 1px solid var(--line-dark); }
.contact-item:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-item__icon { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(77,145,198,.14); color: var(--blue-highlight); }
.contact-item__icon svg { width: 24px; height: 24px; }
.contact-item small { display: block; font-size: var(--fs-small); color: var(--text-light-secondary); }
.contact-item a, .contact-item strong { font-size: 1.25rem; font-weight: 600; color: #fff; }
.contact-item a:hover { color: var(--blue-highlight); }
.btn--whatsapp { --btn-bg: #1F9D55; --btn-bd: #1F9D55; }
.btn--whatsapp:hover { --btn-bg: #188046; --btn-bd: #188046; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--dark-primary); color: #fff; border-top: 1px solid var(--line-dark); padding-top: clamp(4rem, 3rem + 4vw, 7rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s-6); }
.footer-brand p { color: var(--text-light-secondary); margin-top: var(--s-3); max-width: 24em; }
.footer-col h2 { font-family: var(--font-body); font-stretch: normal; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--text-light-secondary); margin-bottom: var(--s-3); line-height: 1.4; }
.footer-col ul { display: grid; gap: .7rem; list-style: none; padding: 0; margin: 0; }
.footer-col a { color: rgba(255,255,255,.9); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--blue-highlight); }
.footer-bottom { display: flex; justify-content: center; gap: var(--s-3); flex-wrap: wrap; margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-block: var(--s-4); border-top: 1px solid var(--line-dark); color: var(--text-light-secondary); font-size: var(--fs-small);text-align: center; }
.footer-bottom a:hover { color: #fff; }
.socials { display: flex; gap: .6rem; margin-top: var(--s-4); }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark-strong); transition: all var(--t-fast); }
.socials a:hover { border-color: var(--blue-highlight); color: var(--blue-highlight); }
.socials svg { width: 18px; height: 18px; }

/* ---------- 20. Design system (página índice do protótipo) ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s-3); }
.swatch { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-light); background: #fff; }
.swatch i { display: block; height: 110px; }
.swatch div { padding: .9rem 1rem; font-size: .95rem; }
.swatch b { display: block; font-size: 1rem; }
.swatch code { color: var(--text-dark-secondary); }
.type-row { display: grid; grid-template-columns: 11rem 1fr; gap: var(--s-4); align-items: baseline; padding-block: var(--s-4); border-top: 1px solid var(--line-light); }
.type-row > span { color: var(--text-dark-secondary); font-size: var(--fs-small); }
.page-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.page-link {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4); min-height: 190px;
  padding: var(--s-4); border-radius: var(--r-lg); background: var(--dark-tertiary); border: 1px solid var(--line-dark);
  transition: border-color var(--t-fast), transform var(--t-med);
}
.page-link:hover { border-color: var(--blue-highlight); transform: translateY(-3px); }
.page-link h3 { font-size: 1.6rem; }
.page-link p { color: var(--text-light-secondary); font-size: 1rem; }
.page-link svg { width: 22px; height: 22px; color: var(--blue-highlight); }
.ds-demo { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

/* ---------- 21. Movimento discreto (um único momento de entrada) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero-in > * { animation: heroIn .8s var(--ease) both; }
.hero-in > *:nth-child(2) { animation-delay: .08s; }
.hero-in > *:nth-child(3) { animation-delay: .16s; }
.hero-in > *:nth-child(4) { animation-delay: .24s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

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

/* ---------- 22. Breakpoints ---------- */
/* Notebook */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
  .nav__link { padding: 0 .7rem; }
  .nav__link[aria-current="page"]::after { left: .7rem; right: .7rem; }
}

/* Tablet */
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .menu-toggle { display: inline-block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--header-h)); z-index: 99;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: var(--s-4);
    padding: var(--s-4) var(--gutter) calc(var(--s-4) + env(safe-area-inset-bottom));
    background: var(--dark-primary);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s linear .2s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-fast), transform var(--t-fast); }
  .menu-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: flex; width: 100%; height: auto; padding: 1.05rem 0; border-radius: 0; border-bottom: 1px solid var(--line-dark);
    font-family: var(--font-display); font-stretch: 110%; font-weight: 700; font-size: 1.75rem; letter-spacing: -.015em;
  }
  .nav__link:hover { background: none; color: var(--blue-highlight); }
  .nav__link[aria-current="page"] { color: var(--blue-highlight); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__cta { margin: 0; width: 100%; }

  .sec-head, .page-hero__grid, .page-hero--split .page-hero__grid, .split, .split--wide-media, .cta-band, .post-featured { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .cta-band .btn-row { justify-content: flex-start; }
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-6); }
  .grid-3, .page-index { grid-template-columns: repeat(2, 1fr); }
  .photo { aspect-ratio: 16 / 11; }
}

/* Smartphone */
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 1.0625rem; }
  .logo__text { font-size: 1.2rem; }
  .grid-3, .grid-2, .page-index, .steps, .facts, .form__row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-3); }
  .footer-brand, .footer-col--contact { grid-column: 1 / -1; }
  .btn-row .btn { flex: 1 1 100%; }
  .timeline li { grid-template-columns: 1fr; gap: .25rem; }
  .type-row { grid-template-columns: 1fr; gap: .5rem; }
  .proto-panel output { margin-left: 0; width: 100%; }
  .stage { padding: 1.25rem 1.25rem 0; }
  .contact-item a, .contact-item strong { font-size: 1.1rem; word-break: break-word; }
}

/* ---------- 23. Ajustes de variantes ---------- */
.stage--phone { align-items: flex-end; }
.stage.stage--phone .mock-phone { position: relative; right: auto; bottom: auto; width: 34%; max-width: 210px; margin-bottom: -14%; }
.stage > .rack { align-self: center; margin-bottom: 0; }
/* chips sobre fundo escuro */
.sec--dark .chip, .sec--dark2 .chip { color: #fff; border-color: var(--line-dark-strong); }
.sec--dark .chip:hover, .sec--dark2 .chip:hover { border-color: var(--blue-highlight); }
.sec--dark .chip[aria-pressed="true"], .sec--dark2 .chip[aria-pressed="true"] { background: #fff; color: var(--dark-primary); border-color: #fff; }
.service-row h2 a:hover { color: var(--blue-primary); }
.card__link:hover { color: inherit; }
.card:hover h3 { color: var(--blue-primary); }
.card--dark:hover h3 { color: var(--blue-highlight); }
.card h3 { transition: color var(--t-fast); }
/* mockups mantêm proporção fixa, sem crescer com o conteúdo */
.mock__screen { overflow: hidden; }
.stage > .mock { width: 90%; }
.project .stage { aspect-ratio: 16 / 11; }

/* ---------- 24. Topo das páginas internas ---------- */
.page-top {
  background: var(--dark-primary); color: #fff;
  padding-block: clamp(2.25rem, 1.75rem + 2vw, 3.75rem) clamp(2.5rem, 2rem + 2.2vw, 4rem);
  border-top: 1px solid var(--line-dark);
}
.page-top .breadcrumb { margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.page-top h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.25rem); line-height: 1.08; max-width: 24ch; }
.page-top__sub { margin-top: 1rem; max-width: 42em; font-size: clamp(1.1rem, 1.05rem + .25vw, 1.25rem); line-height: 1.55; color: var(--text-light-secondary); }
.page-top.article-hero h1 { max-width: 22ch; font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); }
.page-top.article-hero .lead { color: var(--text-light-secondary); }
.fact strong { color: var(--dark-primary); }
.contact-card .text-mute { color: var(--text-dark-secondary); }


/* WhatsApp flutuante */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    color: #fff;

    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);

    z-index: 9999;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg {
    width: 31px;
    height: 31px;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.32);
}

/* Texto exibido ao passar o mouse */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;

    background: #101820;
    color: #fff;

    padding: 8px 12px;
    border-radius: 6px;

    font-size: 14px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.2s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 29px;
        height: 29px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}
