/* ==========================================================================
   Eng.ª Mónica Leal — Design system
   Técnico, fino, moderno. Hairlines, mono para metadados, serif só para ênfase.
   ========================================================================== */

:root {
  /* Cor */
  --paper: #f4f3ee;
  --paper-2: #ebe9e2;
  --paper-3: #e2e0d7;
  --white: #fbfaf7;
  --ink: #121413;
  --ink-2: #464a48;
  --ink-3: #7d817e;
  --line: rgba(18, 20, 19, 0.12);
  --line-2: rgba(18, 20, 19, 0.22);
  /* Teal da marca (#00a098) escurecido para contraste AA sobre papel */
  --accent: #00756f;
  --accent-ink: #0a4e4a;
  --accent-soft: #d9ece9;
  --brand-teal: #00a098;
  --brand-amber: #f9b233;
  --night: #0e1311;
  --night-2: #18201d;
  --night-line: rgba(244, 243, 238, 0.12);
  --signal: #f9b233;
  --danger: #b4432f;

  /* Tipografia */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;

  /* Espaço */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1320px;
  --section: clamp(80px, 11vw, 160px);
  --radius: 4px;

  /* Movimento (Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
* { -webkit-tap-highlight-color: transparent; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); --section-bg: var(--paper); --hover-bg: var(--white); }
.section + .section { border-top: 1px solid var(--line); }

/* Sections pares em branco, para criar divisão visual entre blocos.
   Conta apenas as .section (ignora hero, marquee, etc.) e não mexe nas secções escuras. */
main > .section:nth-child(even of .section):not(.on-dark) {
  --section-bg: #ffffff;
  --hover-bg: var(--paper);
  background: var(--section-bg);
}
/* Com fundos alternados, a hairline entre secções deixa de ser necessária */
main > .section + .section { border-top-color: transparent; }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); }

/* ---------- Tipografia ---------- */
/* Etiquetas e metadados: Geist em maiúsculas pequenas, com tracking e algarismos tabulares */
.mono, .eyebrow, .meta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.on-dark .eyebrow { color: rgba(244, 243, 238, 0.7); }

.display {
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 400;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 400;
  text-wrap: balance;
}
.h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
.display em, .h2 em, .h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.06em;
}
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(16px, 2vw, 32px); margin-bottom: clamp(40px, 5vw, 72px); align-items: end; }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head .h2 { grid-column: 1 / span 7; }
.section-head .lead, .section-head .head-aside { grid-column: 9 / -1; }
@media (max-width: 900px) {
  .section-head .h2, .section-head .lead, .section-head .head-aside { grid-column: 1 / -1; }
}

/* ---------- Botões ---------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: var(--h);
  padding: 0 20px 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .arr { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
.btn-accent { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-sm { --h: 40px; padding: 0 16px 0 18px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-ink); }
  .btn-accent:hover { background: var(--accent-ink); }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
  .btn-light:hover { background: var(--signal); }
  .btn:hover .arr { transform: translateX(3px); }
}

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color 200ms ease, gap 200ms var(--ease-out); }
.link-arrow svg { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { border-color: var(--ink); gap: 12px; } }

.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 12.5px; letter-spacing: 0; color: var(--ink-2); white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Header: barra em vidro flutuante, contida no container (todas as páginas) ---------- */
:root {
  --hero-offset: clamp(8px, 1.2vw, 16px);   /* margem do hero (home) ao topo e às laterais */
  --pill-inset: clamp(8px, 1vw, 12px);       /* folga extra entre o topo e a barra */
  --pill-h: 72px;                            /* altura da barra */
  --header-top: calc(var(--hero-offset) + var(--pill-inset));
  --header-h: calc(var(--header-top) + var(--pill-h));
  --content-w: calc(min(100vw, var(--max)) - 2 * var(--gutter));
}
@media (max-width: 700px) { :root { --pill-h: 64px; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  padding-top: var(--header-top);
  pointer-events: none;                      /* só a barra recebe cliques; o resto deixa passar */
}
.site-header .wrap {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: var(--content-w); max-width: none; height: var(--pill-h);
  padding-inline: clamp(14px, 2vw, 24px) clamp(10px, 1.2vw, 14px);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px -22px rgba(18, 20, 19, 0.3);
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease, color 240ms ease;
}
.site-header.is-scrolled .wrap { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 36px -20px rgba(18, 20, 19, 0.38); }

/* Logótipo com troca claro/escuro (crossfade) */
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; transition: transform 160ms var(--ease-out); }
.brand:active { transform: scale(0.97); }
.brand img { height: 70px; width: auto; }
.site-header .brand img { height: 60px; }
.drawer .brand img { height: 56px; }
.brand-light img { height: 124px; }
@media (max-width: 700px) { .site-header .brand img { height: 52px; } }
.brand-swap { display: grid; }
.brand-swap img { grid-area: 1 / 1; transition: opacity 240ms ease; }
.brand-swap .logo-on-dark { opacity: 0; }

/* ── Home: hero fluid com offsets; a barra sobrepõe-se ao vídeo em vidro escuro ── */
.header-overlay {
  /* dentro do hero, o conteúdo mantém pelo menos 20px de folga */
  --content-w: min(calc(min(100vw, var(--max)) - 2 * var(--gutter)), calc(100vw - 2 * var(--hero-offset) - 40px));
}
.header-overlay .site-header { margin-bottom: calc(-1 * var(--header-h)); }
.header-overlay .site-header:not(.is-solid) { color: var(--paper); }
.header-overlay .site-header:not(.is-solid) .wrap {
  background: rgba(14, 19, 17, 0.26);
  border-color: rgba(244, 243, 238, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header-overlay .hero-fluid {
  margin: var(--hero-offset) var(--hero-offset) 0;
  border-radius: 18px;
  min-height: max(600px, calc(100svh - 2 * var(--hero-offset)));
}
.header-overlay .hero-content {
  width: var(--content-w);
  max-width: none;
  padding-inline: 0;
  padding-top: calc(var(--pill-inset) + var(--pill-h) + clamp(80px, 12vw, 160px));
}
@media (min-width: 1101px) { .header-overlay .hero-tag { right: 0; } }
@media (max-width: 700px) { .header-overlay .hero-fluid { border-radius: 14px; } }
.header-overlay .site-header:not(.is-solid) .logo-on-light { opacity: 0; }
.header-overlay .site-header:not(.is-solid) .logo-on-dark { opacity: 1; }
.header-overlay .site-header:not(.is-solid) .nav-link { color: rgba(244, 243, 238, 0.78); }
.header-overlay .site-header:not(.is-solid) .has-mega.is-open > .nav-link { color: var(--paper); background: rgba(244, 243, 238, 0.12); }
.header-overlay .site-header:not(.is-solid) .header-cta .btn { background: var(--paper); color: var(--ink); }
.header-overlay .site-header:not(.is-solid) .menu-btn { box-shadow: inset 0 0 0 1px rgba(244, 243, 238, 0.4); }
.header-overlay .site-header:not(.is-solid) .menu-btn span { background: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .header-overlay .site-header:not(.is-solid) .nav-link:hover { color: var(--paper); background: rgba(244, 243, 238, 0.12); }
  .header-overlay .site-header:not(.is-solid) .header-cta .btn:hover { background: var(--signal); }
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.brand-sub { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 14.5px; color: var(--ink-2);
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-link[aria-current='page'] { color: var(--ink); }
.nav-link[aria-current='page']::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav-link .caret { width: 10px; height: 10px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { color: var(--ink); background: var(--paper-2); } }
.header-cta { display: flex; align-items: center; gap: 8px; }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: min(760px, 90vw);
  translate: -50% 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 24px 60px -24px rgba(18, 20, 19, 0.25);
  padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top center;
  visibility: hidden; pointer-events: none;
  transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 0s linear 150ms;
}
.has-mega.is-open .mega {
  opacity: 1; transform: none; visibility: visible; pointer-events: auto;
  transition: opacity 200ms ease, transform 220ms var(--ease-out), visibility 0s;
}
.has-mega.is-open .caret { transform: rotate(180deg); }
.mega-item { display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; padding: 14px; border-radius: 6px; transition: background-color 150ms ease; }
.mega-item .meta { color: var(--ink-3); padding-top: 3px; grid-row: span 2; }
.mega-item strong { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.mega-item span:last-child { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding: 14px; border-top: 1px solid var(--line); font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .mega-item:hover { background: var(--paper); } }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 160ms var(--ease-out); }
.menu-btn:active { transform: scale(0.95); }
.menu-btn span { position: relative; width: 16px; height: 1.5px; background: var(--ink); }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; width: 100%; height: 100%; background: inherit; }
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

/* Drawer mobile */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s linear 260ms; }
.drawer.is-open { visibility: visible; transition: visibility 0s; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(14, 19, 17, 0.4); opacity: 0; transition: opacity 260ms ease; }
.drawer.is-open .drawer-backdrop { opacity: 1; transition-duration: 400ms; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 260ms var(--ease-out);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
}
.drawer.is-open .drawer-panel { transform: none; transition: transform 460ms var(--ease-drawer); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; height: 52px; margin-bottom: 16px; }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; }
.drawer-close svg { width: 14px; height: 14px; }
.drawer nav a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 22px; letter-spacing: -0.02em; }
.drawer nav a .meta { color: var(--ink-3); }
.drawer-sub { padding: 8px 0 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-sub a { font-size: 16px !important; padding: 9px 0 !important; border: 0 !important; color: var(--ink-2); }
.drawer .btn { margin-top: 24px; justify-content: space-between; width: 100%; }

@media (max-width: 1060px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) { .header-cta .btn { display: none; } }

/* ---------- Hero (home) ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

/* Hero fluid — vídeo a toda a largura */
.hero-fluid {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: max(560px, calc(100svh - var(--header-h)));
  background: var(--night); color: var(--paper);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 1800ms var(--ease-out) both; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14,19,17,0.9) 0%, rgba(14,19,17,0.45) 45%, rgba(14,19,17,0.2) 100%),
    linear-gradient(to right, rgba(14,19,17,0.55) 0%, rgba(14,19,17,0) 65%);
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: none; } }
.hero-content {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
  padding-top: clamp(96px, 14vw, 180px); padding-bottom: clamp(40px, 6vw, 80px);
}
.hero-fluid .hero-copy { min-width: 0; }
.hero-fluid .display { font-size: clamp(42px, 6.2vw, 96px); }
.hero-fluid .display .l { display: block; }
@media (min-width: 768px) { .hero-fluid .display .l { white-space: nowrap; } }
.hero-fluid .lead { margin-top: 28px; color: rgba(244,243,238,0.8); max-width: 52ch; }
.btn-ghost-light { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(244,243,238,0.45); }
.hero-tag {
  display: block; min-width: 240px; padding: 14px 16px; border-radius: 8px;
  background: rgba(244,243,238,0.08); border: 1px solid rgba(244,243,238,0.18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.hero-tag:active { transform: scale(0.98); }
.hero-tag .meta { display: flex; align-items: center; gap: 8px; color: rgba(244,243,238,0.6); }
.hero-tag strong { display: block; margin-top: 6px; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost-light:hover { background: var(--paper); color: var(--ink); box-shadow: none; }
  .hero-tag:hover { background: rgba(244,243,238,0.16); }
}
.hero-content { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1101px) {
  .hero-tag { position: absolute; right: var(--gutter); bottom: clamp(40px, 6vw, 80px); }
}
@media (max-width: 1100px) { .hero-tag { justify-self: start; } }
.hero-stats .stats { margin-top: 0; border-top: 0; }
.hero-stats { padding-block: clamp(24px, 3vw, 40px) clamp(48px, 6vw, 80px); }

/* Moldura técnica com marcas de corte */
.frame { position: relative; isolation: isolate; }
.frame-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); aspect-ratio: 4 / 5; }
.frame-media img, .frame-media video { width: 100%; height: 100%; object-fit: cover; }
.frame-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,19,17,0.55), transparent 45%); pointer-events: none; }
.frame .crop { position: absolute; width: 14px; height: 14px; border-color: var(--ink); border-style: solid; border-width: 0; z-index: 2; }
.crop.tl { top: -8px; left: -8px; border-top-width: 1px; border-left-width: 1px; }
.crop.tr { top: -8px; right: -8px; border-top-width: 1px; border-right-width: 1px; }
.crop.bl { bottom: -8px; left: -8px; border-bottom-width: 1px; border-left-width: 1px; }
.crop.br { bottom: -8px; right: -8px; border-bottom-width: 1px; border-right-width: 1px; }
.frame-caption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; display: flex; justify-content: space-between; gap: 12px; color: rgba(244,243,238,0.85); font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.frame-tag {
  position: absolute; z-index: 3; left: -24px; top: 32px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; min-width: 210px;
  box-shadow: 0 18px 40px -20px rgba(18,20,19,0.35);
}
.frame-tag .meta { color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.frame-tag strong { display: block; font-weight: 500; font-size: 15px; margin-top: 6px; letter-spacing: -0.01em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-teal); box-shadow: 0 0 0 0 rgba(0,160,152,0.5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,160,152,0.45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(0,160,152,0); } }
@media (max-width: 960px) { .frame-media { aspect-ratio: 16 / 11; } .frame-tag { left: 12px; top: 12px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 96px); }
.stat { padding: 24px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-n { font-size: clamp(40px, 4.4vw, 64px); letter-spacing: -0.045em; line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; }
/* Contador: o valor final invisível reserva a largura, para nada saltar durante a contagem */
.count { display: inline-grid; text-align: left; }
.count > span { grid-area: 1 / 1; }
.count-ghost { visibility: hidden; }
.js .count.is-pending + sup { opacity: 0; transform: translateY(4px); }
.count + sup { display: inline-block; transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.stat-n sup { font-size: 0.45em; vertical-align: top; position: relative; top: 0.3em; margin-left: 2px; color: var(--accent); }
.stat p { margin-top: 12px; font-size: 14px; color: var(--ink-2); max-width: 24ch; line-height: 1.45; }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}

/* ---------- Marquee de referenciais ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
.marquee-item { display: inline-flex; align-items: center; gap: 28px; padding: 22px 28px 22px 0; font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -0.02em; color: var(--ink-2); white-space: nowrap; }
.marquee-item::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Índice de áreas (assinatura) ---------- */
.area-index { border-top: 1px solid var(--ink); }
.area-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 4.2fr) minmax(0, 3.4fr) minmax(0, 3fr) 48px;
  gap: 24px; align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: color 200ms ease;
}
.area-row::before {
  content: ''; position: absolute; inset: -1px 0 -1px; background: var(--hover-bg, var(--white)); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform 300ms var(--ease-out);
}
.area-row .meta { color: var(--ink-3); }
.area-row h3 { font-size: clamp(22px, 2.3vw, 32px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; transition: transform 300ms var(--ease-out); }
.area-row .area-hook { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.area-row .chips { justify-content: flex-start; }
.area-go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms var(--ease-out); }
.area-go svg { width: 14px; height: 14px; }
.area-thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .area-row:hover::before { transform: scaleY(1); }
  .area-row:hover h3 { transform: translateX(8px); }
  .area-row:hover .area-go { background: var(--ink); color: var(--paper); box-shadow: none; transform: rotate(-45deg); }
}
.area-preview {
  position: fixed; top: 0; left: 0; z-index: 40; pointer-events: none;
  width: 280px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  opacity: 0; scale: 0.92;
  transition: opacity 200ms ease, scale 260ms var(--ease-out);
  box-shadow: 0 30px 60px -30px rgba(18,20,19,0.5);
}
.area-preview.is-on { opacity: 1; scale: 1; }
.area-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 220ms ease; }
.area-preview img.is-active { opacity: 1; }
@media (max-width: 960px) {
  .area-row { grid-template-columns: 1fr auto; gap: 14px 16px; padding: 20px 0; }
  .area-row > .meta { grid-column: 1; grid-row: 1; }
  .area-row h3 { grid-column: 1; grid-row: 2; }
  .area-row .area-hook { grid-column: 1 / -1; grid-row: 3; }
  .area-row .chips { grid-column: 1 / -1; grid-row: 4; }
  .area-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .area-preview { display: none; }
}

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 28px 24px 24px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: 420px;
  transition: background-color 240ms ease;
}
.service .meta { color: var(--ink-3); display: flex; justify-content: space-between; }
.service h3 { font-size: 26px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.service p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.service ul { margin-top: auto; display: grid; gap: 0; }
.service li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px; }
.service li::before { content: '+'; font-family: var(--sans); font-variant-numeric: tabular-nums; color: var(--accent); }
.service-icon { width: 36px; height: 36px; color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .service:hover { background: var(--hover-bg, var(--white)); } }
/* Variante fluid: a toda a largura, com o mesmo offset lateral do hero */
.services-fluid { margin-inline: var(--hero-offset, 0); }
.services-fluid .service { padding: clamp(28px, 2.6vw, 40px) clamp(20px, 2.2vw, 36px) clamp(24px, 2.2vw, 32px); min-height: 460px; }
.services-fluid .service h3 { font-size: clamp(26px, 2.2vw, 32px); }
@media (max-width: 1060px) { .services { grid-template-columns: 1fr 1fr; } .service, .services-fluid .service { min-height: 0; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 24px 0 0; }
.step-top { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 13px; flex: none; background: var(--section-bg, var(--paper)); position: relative; z-index: 1; }
.step-line { flex: 1; height: 1px; background: var(--line-2); }
.step:last-child .step-line { background: linear-gradient(to right, var(--line-2), transparent); }
.step h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 30ch; }
.step .meta { display: inline-block; margin-top: 16px; color: var(--accent); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 40px 1fr; gap: 0 20px; padding: 0 0 32px; }
  .step-top { grid-row: span 3; flex-direction: column; margin: 0; height: 100%; }
  .step-line { width: 1px; height: auto; flex: 1; }
  .step:last-child .step-line { background: linear-gradient(to bottom, var(--line-2), transparent); }
}

/* ---------- Secções escuras ---------- */
.on-dark { background: var(--night); color: var(--paper); }
.on-dark .muted, .on-dark .lead { color: rgba(244,243,238,0.66); }
.on-dark .meta { color: rgba(244,243,238,0.5); }
.on-dark .chip { border-color: var(--night-line); color: rgba(244,243,238,0.75); }
.section.on-dark + .section { border-top: 0; }

/* Radar */
.radar-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(16px, 2vw, 32px); }
.radar-intro { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.radar-intro .h2 { margin: 24px 0; }
.radar-list { grid-column: 6 / -1; border-top: 1px solid var(--night-line); }
.radar-item { border-bottom: 1px solid var(--night-line); }
.radar-item > a, .radar-item > button { width: 100%; text-align: left; display: grid; grid-template-columns: 96px 1fr 28px; gap: 20px; align-items: baseline; padding: 20px 0; }
.radar-item .r-title { font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; }
.radar-item .r-tag { display: inline-block; margin-top: 8px; }
.radar-item svg { width: 12px; height: 12px; opacity: 0.6; transition: transform 200ms var(--ease-out), opacity 200ms ease; }
@media (hover: hover) and (pointer: fine) { .radar-item > a:hover svg { transform: translateX(4px); opacity: 1; } }
@media (max-width: 960px) { .radar-intro, .radar-list { grid-column: 1 / -1; position: static; } }
@media (max-width: 560px) { .radar-item > a, .radar-item > button { grid-template-columns: 1fr 24px; } .radar-item .r-date { grid-column: 1 / -1; } }

/* Newsletter */
.newsletter { display: flex; gap: 8px; margin-top: 28px; max-width: 440px; }
.field-inline { flex: 1; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 16px; min-width: 0; transition: border-color 200ms ease; }
.field-inline::placeholder { color: var(--ink-3); }
.on-dark .field-inline { border-color: var(--night-line); color: var(--paper); }
.on-dark .field-inline::placeholder { color: rgba(244,243,238,0.45); }
.field-inline:focus { outline: none; border-color: var(--accent); }
.on-dark .field-inline:focus { border-color: var(--signal); }
.form-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.on-dark .form-note { color: rgba(244,243,238,0.45); }
.form-success { display: none; align-items: center; gap: 10px; margin-top: 28px; font-size: 15px; }
.form-success svg { width: 18px; height: 18px; color: var(--signal); }
.is-sent .form-success { display: flex; animation: fadeUp 300ms var(--ease-out) both; }
.is-sent .newsletter, .is-sent .form-note { display: none; }

/* ---------- Cards de artigo ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(16px, 2vw, 32px); }
.post-card { display: flex; flex-direction: column; gap: 16px; }
.post-media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--paper-3); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.post-meta { display: flex; gap: 12px; align-items: center; color: var(--ink-3); }
.post-meta .cat { color: var(--accent); }
.post-card h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.025em; line-height: 1.2; text-wrap: balance; }
.post-card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .post-card:hover .post-media img { transform: scale(1.03); } .post-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post-card.is-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 3vw, 48px); align-items: center; }
.post-card.is-feature .post-media { aspect-ratio: 16 / 10; }
.post-card.is-feature h3 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.035em; }
@media (max-width: 860px) { .post-card.is-feature { grid-template-columns: 1fr; } }

/* ---------- Sobre (teaser) ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(16px, 2vw, 32px); align-items: start; }
.about-media { grid-column: 1 / span 5; }
.about-copy { grid-column: 7 / -1; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, var(--line) 11px 12px),
    var(--paper-2);
  display: grid; place-items: center; text-align: center; color: var(--ink-3);
}
.portrait .meta { background: var(--paper); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.creds { margin-top: 36px; border-top: 1px solid var(--line); }
.creds li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.creds li .meta { color: var(--ink-3); padding-top: 3px; }
.creds li span:last-child small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
@media (max-width: 900px) { .about-media, .about-copy { grid-column: 1 / -1; } .about-media { max-width: 460px; } }
@media (max-width: 520px) { .creds li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- CTA final ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 32px); align-items: end; }
.cta-inner .display { grid-column: 1 / span 8; font-size: clamp(40px, 5.6vw, 84px); }
.cta-inner .cta-side { grid-column: 9 / -1; }
.cta-side p { margin-bottom: 24px; }
.cta-contacts { margin-top: 24px; display: grid; gap: 8px; }
.cta-contacts a { display: inline-flex; gap: 10px; align-items: center; font-size: 15px; }
@media (max-width: 900px) { .cta-inner .display, .cta-inner .cta-side { grid-column: 1 / -1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--paper); padding-top: clamp(64px, 8vw, 112px); }
.footer-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 2fr 2fr; gap: 40px 32px; padding-bottom: 64px; }
.footer-grid h4 { font-family: var(--sans); font-variant-numeric: tabular-nums; font-weight: 400; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(244,243,238,0.45); margin-bottom: 18px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { color: rgba(244,243,238,0.82); font-size: 15px; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-grid a:hover { color: var(--signal); } }
.footer-brand .brand-name { font-size: 22px; }
.footer-brand .brand-sub { color: rgba(244,243,238,0.45); }
.footer-brand p { margin-top: 20px; color: rgba(244,243,238,0.6); font-size: 15px; max-width: 34ch; }
/* "MÓNICA LEAL" com as letras do logótipo, a toda a largura do container, em marca d'água */
/* Fluid e colado aos cantos: de margem a margem do ecrã, assente no fundo da página */
.footer-word { color: rgba(244, 243, 238, 0.07); user-select: none; padding-bottom: env(safe-area-inset-bottom); line-height: 0; }
.footer-word svg { display: block; width: 100%; height: auto; fill: currentColor; overflow: visible; }
.footer-word .w2 { fill-opacity: 0.6; }   /* LEAL mais claro, como no logótipo */
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 0 clamp(28px, 4vw, 56px); border-top: 1px solid var(--night-line); color: rgba(244,243,238,0.45); }
.footer-bottom a { color: rgba(244,243,238,0.6); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.social { display: flex; gap: 8px; margin-top: 24px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--night-line); transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.social a:active { transform: scale(0.95); }
.social svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .social a:hover { background: var(--paper); color: var(--ink); } }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ==========================================================================
   Páginas interiores
   ========================================================================== */
.page-hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-3); margin-bottom: 32px; }
.crumbs a { color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--ink); } }
.crumbs span[aria-hidden] { opacity: 0.5; }
.page-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 32px); align-items: end; }
.page-hero-grid .display { grid-column: 1 / span 8; font-size: clamp(40px, 5.8vw, 84px); }
.page-hero-grid .lead { grid-column: 9 / -1; }
@media (max-width: 900px) { .page-hero-grid .display, .page-hero-grid .lead { grid-column: 1 / -1; } }

/* Área */
.area-hero { padding-top: clamp(32px, 5vw, 72px); }
.area-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(16px, 2vw, 32px); }
.area-hero-copy { grid-column: 1 / span 7; }
.area-hero-copy .display { font-size: clamp(38px, 5.2vw, 76px); margin: 24px 0 28px; }
.area-hero-copy .who { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 20px; font-size: 15px; }
.area-hero-copy .who .meta { color: var(--ink-3); padding-top: 3px; }
.area-hero-copy .hero-actions { margin-top: 32px; }
.spec { grid-column: 9 / -1; align-self: start; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.spec-head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.spec-row { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row .meta { color: var(--ink-3); display: block; margin-bottom: 10px; }
.spec-row ul.laws li { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 12.5px; padding: 5px 0; border-top: 1px dashed var(--line); }
.spec-row ul.laws li:first-child { border-top: 0; padding-top: 0; }
.spec-row .svc-links { display: grid; gap: 6px; }
.spec-row .svc-links a { display: flex; justify-content: space-between; font-size: 14.5px; padding: 4px 0; }
.spec-row .svc-links a svg { width: 12px; height: 12px; opacity: 0.5; }
@media (max-width: 960px) { .area-hero-copy, .spec { grid-column: 1 / -1; } }
@media (min-width: 961px) { .spec { position: sticky; top: calc(var(--header-h) + 24px); } }

.area-banner { margin-top: clamp(48px, 6vw, 88px); }
.area-banner .frame-media { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .area-banner .frame-media { aspect-ratio: 4 / 3; } }

/* Imagens fluid com o mesmo aspeto do hero: toda a largura, offset lateral e cantos de 18px */
.media-fluid { margin-inline: var(--hero-offset); }
.media-fluid .frame-media { border-radius: 18px; }
.media-fluid .frame-media::after { content: none; }
@media (max-width: 700px) { .media-fluid .frame-media { border-radius: 14px; } }

.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pain { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 0 12px; }
.pain:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.pain .meta { color: var(--accent); padding-top: 6px; }
.pain h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.pain p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 760px) { .pains { grid-template-columns: 1fr; } .pain, .pain:nth-child(even) { padding: 24px 0; border-left: 0; } }

.help-list { border-top: 1px solid var(--ink); }
.help-item { display: grid; grid-template-columns: 72px 3fr 5fr 140px; gap: 24px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.help-item .meta { color: var(--ink-3); padding-top: 6px; }
.help-item h3 { font-size: 26px; font-weight: 400; letter-spacing: -0.03em; }
.help-item ul li { padding: 6px 0; font-size: 15px; color: var(--ink-2); display: flex; gap: 10px; }
.help-item ul li::before { content: '—'; color: var(--ink-3); }
.help-item .link-arrow { justify-self: end; margin-top: 6px; font-size: 14px; }
@media (max-width: 900px) { .help-item { grid-template-columns: 1fr; gap: 12px; } .help-item .link-arrow { justify-self: start; } }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(16px, 2vw, 32px); }
.split > :first-child { grid-column: 1 / span 5; }
.split > :last-child { grid-column: 7 / -1; }
@media (max-width: 900px) { .split > :first-child, .split > :last-child { grid-column: 1 / -1; } }

.checklist { counter-reset: chk; border-top: 1px solid var(--line); }
.checklist li { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; counter-increment: chk; }
.checklist li::before { content: ''; width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--white); }
.checklist li::after { content: counter(chk, decimal-leading-zero); font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-3); }
.checklist li.is-checked::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f4f3ee' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--accent); }
.checklist li { cursor: pointer; user-select: none; }
.checklist-score { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.meter { flex: 1; height: 2px; background: var(--line); margin-right: 16px; position: relative; overflow: hidden; }
.meter span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 400ms var(--ease-out); }

/* FAQ / acordeão */
.faq { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; text-align: left; font-size: 18px; letter-spacing: -0.015em; }
.acc-icon { position: relative; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); flex: none; transition: transform 250ms var(--ease-out), background-color 200ms ease; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: currentColor; translate: -50% -50%; }
.acc-icon::after { rotate: 90deg; transition: rotate 250ms var(--ease-out); }
.acc-item.is-open .acc-icon::after { rotate: 0deg; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 64px 24px 0; color: var(--ink-2); max-width: 70ch; opacity: 0; transition: opacity 200ms ease; }
.acc-item.is-open .acc-panel p { opacity: 1; transition-delay: 60ms; }
@media (hover: hover) and (pointer: fine) { .acc-btn:hover .acc-icon { background: var(--hover-bg, var(--white)); } }

/* Serviços (página) */
.svc-tabs { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.svc-tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.svc-tabs .wrap::-webkit-scrollbar { display: none; }
.svc-tabs a { flex: none; display: inline-flex; gap: 10px; align-items: center; height: 52px; padding: 0 16px; font-size: 14.5px; color: var(--ink-2); border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color 160ms ease, border-color 160ms ease; }
.svc-tabs a .meta { color: var(--ink-3); }
.svc-tabs a.is-active { color: var(--ink); border-color: var(--ink); }
.svc-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(16px, 2vw, 32px); }
.svc-block-head { grid-column: 1 / span 5; }
.svc-block-head .h2 { margin: 20px 0 24px; }
.svc-block-head .frame { margin-top: 40px; }
.svc-block-head .frame-media { aspect-ratio: 4 / 3; }
.svc-block-body { grid-column: 7 / -1; }
.svc-items { border-top: 1px solid var(--ink); }
.svc-items li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.svc-items li .meta { color: var(--ink-3); padding-top: 4px; grid-row: span 2; }
.svc-items h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.svc-items p { color: var(--ink-2); font-size: 15px; }
.svc-formats { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.svc-formats .meta { color: var(--ink-3); margin-right: 8px; }
.svc-areas { margin-top: 28px; padding: 18px; border-radius: 8px; background: var(--paper-2); }
.svc-areas .meta { color: var(--ink-3); display: block; margin-bottom: 10px; }
.svc-areas .chips a.chip { transition: background-color 160ms ease, color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .svc-areas a.chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } }
@media (max-width: 960px) { .svc-block-head, .svc-block-body { grid-column: 1 / -1; } .svc-block-head .frame { display: none; } }

/* Áreas (página índice) — cards */
.area-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area-card { position: relative; display: flex; flex-direction: column; background: var(--paper); padding: 20px; gap: 16px; transition: background-color 200ms ease; }
.area-card .post-media { aspect-ratio: 16 / 10; }
.area-card .top { display: flex; justify-content: space-between; color: var(--ink-3); }
.area-card h3 { font-size: 24px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; }
.area-card p { color: var(--ink-2); font-size: 15px; }
.area-card .chips { margin-top: auto; }
@media (hover: hover) and (pointer: fine) { .area-card:hover { background: var(--white); } .area-card:hover .post-media img { transform: scale(1.03); } }
@media (max-width: 960px) { .area-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .area-cards { grid-template-columns: 1fr; } }

/* Seletor rápido */
.finder { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.finder button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out); }
.finder button:active { transform: scale(0.97); }
.finder button[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.finder-result { margin-top: 24px; min-height: 28px; font-size: 15px; color: var(--ink-2); }
.finder-result a { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* Blog */
.blog-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.filters button:active { transform: scale(0.97); }
.filters button[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button .n { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 11px; margin-left: 6px; opacity: 0.6; }
.search { position: relative; width: min(320px, 100%); }
.search input { width: 100%; height: 40px; padding: 0 16px 0 40px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 16px; }
.search input:focus { outline: none; border-color: var(--accent); }
.search svg { position: absolute; left: 14px; top: 50%; width: 15px; height: 15px; translate: 0 -50%; color: var(--ink-3); }
.blog-empty { display: none; padding: 48px 0; color: var(--ink-2); }
.blog-empty.is-on { display: block; }
.posts [hidden] { display: none !important; }
.post-card.is-entering { animation: fadeUp 260ms var(--ease-out) both; }

.radar-acc { border-top: 1px solid var(--ink); }
.radar-acc .acc-btn { display: grid; grid-template-columns: 110px 1fr 120px 28px; gap: 20px; align-items: center; }
.radar-acc .acc-btn .meta { color: var(--ink-3); }
.radar-acc .acc-btn .r-title { font-size: 17px; }
.radar-acc .acc-btn .chip { justify-self: start; }
.radar-acc .acc-panel .r-body { display: grid; grid-template-columns: 110px 1fr 1fr 28px; gap: 20px; padding-bottom: 24px; }
.radar-acc .acc-panel .r-body p { padding: 0; }
.radar-acc .r-body h4 { font-family: var(--sans); font-variant-numeric: tabular-nums; font-weight: 400; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
@media (max-width: 860px) {
  .radar-acc .acc-btn { grid-template-columns: 1fr 28px; gap: 8px 16px; }
  .radar-acc .acc-btn .meta { grid-column: 1; }
  .radar-acc .acc-btn .r-title { grid-column: 1; }
  .radar-acc .acc-btn .chip { grid-column: 1; }
  .radar-acc .acc-btn .acc-icon { grid-column: 2; grid-row: 1 / span 3; }
  .radar-acc .acc-panel .r-body { grid-template-columns: 1fr; }
  .radar-acc .acc-panel .r-body > span { display: none; }
}

/* Artigo */
.article-hero { padding-top: clamp(32px, 5vw, 72px); }
.article-hero .crumbs { margin-bottom: 40px; }
.article-head { max-width: 900px; }
.article-head .display { font-size: clamp(36px, 5vw, 72px); margin: 24px 0 32px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 18px 0; border-block: 1px solid var(--line); color: var(--ink-3); }
.article-meta b { font-weight: 400; color: var(--ink); }
.article-cover { margin-top: 48px; }
.article-cover .frame-media { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .article-cover .frame-media { aspect-ratio: 4 / 3; } }
.article-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(16px, 2vw, 32px); padding-top: clamp(48px, 6vw, 88px); }
.toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.toc .meta { color: var(--ink-3); display: block; margin-bottom: 14px; }
.toc ol { border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; color: var(--ink-3); transition: color 150ms ease, border-color 150ms ease; }
.toc a.is-active { color: var(--ink); border-color: var(--ink); }
.prose { grid-column: 4 / span 7; font-size: 18px; line-height: 1.7; color: #262a28; }
.prose > * + * { margin-top: 1.1em; }
.prose .lede { font-size: 22px; line-height: 1.55; color: var(--ink); letter-spacing: -0.01em; }
.prose h2 { font-size: 30px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; margin-top: 2em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: 0.75em; width: 6px; height: 1px; background: var(--ink); }
.prose ol { counter-reset: ol; }
.prose ol li { position: relative; padding-left: 44px; counter-increment: ol; }
.prose ol li::before { content: counter(ol, decimal-leading-zero); position: absolute; left: 0; top: 0.3em; font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--accent); }
.prose li + li { margin-top: 0.6em; }
.prose strong { font-weight: 500; color: var(--ink); }
.prose em { font-style: italic; }
.prose a { border-bottom: 1px solid var(--accent); }
.prose .callout { border: 1px solid var(--line); border-left: 2px solid var(--accent); background: var(--white); padding: 20px 24px; border-radius: 0 6px 6px 0; margin-block: 2em; }
.prose .callout-k { display: block; font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.prose .callout p { font-size: 16.5px; line-height: 1.6; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; margin-block: 2em; display: block; overflow-x: auto; }
.prose th { text-align: left; font-family: var(--sans); font-variant-numeric: tabular-nums; font-weight: 400; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink); }
.prose td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td.mono { font-size: 12.5px; white-space: nowrap; }
.prose .note { font-size: 14px; color: var(--ink-3); }
.article-aside { grid-column: 1 / span 3; }
.author { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); grid-column: 4 / span 7; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--paper); display: grid; place-items: center; font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 13px; }
.author strong { font-weight: 500; display: block; }
.author span { font-size: 14px; color: var(--ink-3); }
@media (max-width: 960px) { .toc { display: none; } .prose, .author { grid-column: 1 / -1; } .prose { font-size: 17px; } .prose .lede { font-size: 20px; } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px clamp(16px, 2vw, 32px); }
.contact-form { grid-column: 1 / span 7; }
.contact-aside { grid-column: 9 / -1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { display: flex; flex-direction: column; gap: 8px; padding: 18px 0 14px; border-bottom: 1px solid var(--line-2); transition: border-color 200ms ease; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .label { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea { border: 0; background: transparent; padding: 4px 0; font-size: 18px; letter-spacing: -0.01em; outline: none; width: 100%; resize: vertical; }
.field textarea { min-height: 120px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23121413' stroke-width='1.2'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5'/%3E%3C/svg%3E") right center / 12px no-repeat; padding-right: 24px; cursor: pointer; }
.field:focus-within { border-color: var(--ink); }
.field.is-invalid { border-color: var(--danger); }
.field .err { display: none; font-size: 13px; color: var(--danger); }
.field.is-invalid .err { display: block; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice input:active + span { transform: scale(0.97); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 14px; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.consent a { border-bottom: 1px solid var(--line-2); }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.form-actions .small { color: var(--ink-3); }
.form-done { display: none; padding: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.form-done svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 20px; }
.form-done h3 { font-size: 28px; font-weight: 400; letter-spacing: -0.03em; margin-bottom: 10px; }
.contact-form.is-sent form { display: none; }
.contact-form.is-sent .form-done { display: block; animation: fadeUp 360ms var(--ease-out) both; }
.next-steps { border-top: 1px solid var(--ink); }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.next-steps .meta { color: var(--accent); padding-top: 3px; grid-row: span 2; }
.next-steps strong { font-weight: 500; }
.next-steps p { font-size: 14.5px; color: var(--ink-2); }
.contact-card { margin-top: 32px; padding: 24px; background: var(--night); color: var(--paper); border-radius: 8px; }
.contact-card .meta { color: rgba(244,243,238,0.5); display: block; margin-bottom: 6px; }
.contact-card a { font-size: 18px; letter-spacing: -0.01em; border-bottom: 1px solid var(--night-line); }
.contact-card .social { margin-top: 20px; }
@media (max-width: 960px) { .contact-form, .contact-aside { grid-column: 1 / -1; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Diagnóstico — formulário por passos */
.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.stepper li { padding-top: 12px; border-top: 2px solid var(--line); font-size: 14.5px; color: var(--ink-3); transition: border-color 240ms ease, color 240ms ease; }
.stepper li .meta { display: block; margin-bottom: 4px; }
.stepper li.is-current, .stepper li.is-done { border-color: var(--accent); color: var(--ink); }
.stepper li.is-done .meta { color: var(--accent); }
.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step[hidden] { display: none; }
.form-step.is-entering { animation: stepIn 280ms var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(var(--dx, 14px)); } }
.form-nav { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-nav .step-count { margin-left: auto; color: var(--ink-3); }
.form-nav [hidden] { display: none; }
@media (max-width: 520px) { .stepper li { font-size: 13px; } .stepper li .meta { font-size: 10.5px; } }

.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 6px; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-card > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out); }
.choice-card strong { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.choice-card small { font-size: 13.5px; color: var(--ink-3); line-height: 1.4; }
.choice-card input:checked + span { border-color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-card input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice-card input:active + span { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .choice-card:hover > span { border-color: var(--ink-3); } }
@media (max-width: 520px) { .choice-cards { grid-template-columns: 1fr; } }

/* Contacto — cartão que encaminha para o diagnóstico */
.diag-promo { display: grid; gap: 8px; margin-top: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); transition: border-color 200ms ease; }
.diag-promo .meta { color: var(--ink-3); }
.diag-promo strong { font-size: 24px; font-weight: 400; letter-spacing: -0.025em; }
.diag-promo .muted { font-size: 15px; }
.diag-promo .link-arrow { justify-self: start; margin-top: 8px; }
@media (hover: hover) and (pointer: fine) { .diag-promo:hover { border-color: var(--ink-3); } }

/* Sobre */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 28px 28px 8px 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line); }
.value .meta { color: var(--accent); }
.value h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 16px 0 10px; }
.value p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } .value, .value + .value { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); } }
.ref-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ref-grid div { background: var(--paper); padding: 22px 18px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; }
.ref-grid strong { font-weight: 400; font-size: 20px; letter-spacing: -0.02em; }
.ref-grid .meta { color: var(--ink-3); }
@media (max-width: 900px) { .ref-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Movimento
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* O recorte vai no filho (.frame-media), nunca no elemento observado:
   um elemento com clip-path a 100% tem área visível zero e o IntersectionObserver
   (e o loading="lazy") nunca o dão como visível. */
.js .clip-reveal .frame-media { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
.js .clip-reveal.is-in .frame-media { clip-path: inset(0 0 0 0); }
.js .clip-reveal .frame-caption { opacity: 0; transition: opacity 400ms ease 700ms; }
.js .clip-reveal.is-in .frame-caption { opacity: 1; }
.js .clip-reveal img, .js .clip-reveal video { scale: 1.08; transition: scale 1400ms var(--ease-out); }
.js .clip-reveal.is-in img, .js .clip-reveal.is-in video { scale: 1; }

/* Entrada do hero (primeira visita) */
.js .hero-in { opacity: 0; transform: translateY(16px); animation: fadeUp 900ms var(--ease-out) forwards; animation-delay: calc(120ms + var(--i, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero-in { opacity: 1; transform: none; animation: none; transition: opacity 200ms ease; }
  .js .clip-reveal .frame-media { clip-path: none; transition: none; }
  .js .clip-reveal .frame-caption { opacity: 1; transition: none; }
  .js .clip-reveal img, .js .clip-reveal video { scale: 1; transition: none; }
  .hero-media video { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-group[aria-hidden] { display: none; }
  .live-dot { animation: none; }
  .area-preview { display: none; }
  .drawer-panel, .drawer.is-open .drawer-panel { transition: none; }
  html { scroll-behavior: auto; }
}
