/* =========================================================
   Clareza Lab — Design System (v2, "The Examination Surface")
   ========================================================= */

:root {
  --color-primary: #8f282d;
  --color-primary-dark: #6e1f23;
  --color-blush: #e8b0a8;
  --color-ink: #000000;
  --color-ink-soft: #141210;
  --color-bg: #ece2d4;        /* canvas — the page field, edge to edge */
  --color-canvas-deep: #e2d6c5;
  --color-paper: #ffffff;     /* surface laid onto the canvas */
  --color-text: #1a1512;
  --color-text-muted: #5a4f48;
  --color-border: #cbbba4;         /* rule — hairline on canvas */
  --color-border-strong: #a8927a;  /* rule-strong — section boundaries, diagram line */
  --color-on-dark: #ece2d4;
  --color-on-dark-muted: #c9beb2;

  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container-width: 1240px;
  --section-pad: clamp(5rem, 10vw, 9rem);
  --section-tight: clamp(3rem, 6vw, 5rem);
  --section-loose: clamp(7rem, 14vw, 12rem);
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --shadow-card-hover: 0 1px 2px rgba(26, 21, 18, 0.06), 0 18px 30px -16px rgba(26, 21, 18, 0.22);
  /* Reserved for the hero's floating/overlapping composition only — every
     other card still ships flat and earns its shadow on hover. */
  --shadow-float: 0 2px 6px rgba(26, 21, 18, 0.07), 0 28px 50px -22px rgba(26, 21, 18, 0.3);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-ink);
  color: var(--color-on-dark);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

html {
  scrollbar-color: var(--color-text-muted) var(--color-bg);
  scrollbar-width: thin;
}
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--color-bg); }
html::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-bg);
}
html::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: var(--section-pad); scroll-margin-top: 5rem; }

/* The Three-Level Rule: canvas is the default field. .section-deep marks a
   section change without leaving the cream family (used at most twice).
   .section-dark and .section-oxblood are the two full-bleed statements. */
.section-deep { background: var(--color-canvas-deep); }
.section-dark { background: var(--color-ink); color: var(--color-on-dark); }
.section-oxblood { background: var(--color-primary); color: #fff; }
.section-oxblood .lede { color: rgba(255, 255, 255, 0.82); }
.section-oxblood .eyebrow { color: rgba(255, 255, 255, 0.85); }
.section-oxblood :focus-visible { outline-color: #fff; }
.section-oxblood .btn-primary { background: #fff; color: var(--color-primary); }
.section-oxblood .btn-primary:hover { background: var(--color-bg); }

.pt-tight { padding-top: var(--section-tight); }
.pb-tight { padding-bottom: var(--section-tight); }
.pt-loose { padding-top: var(--section-loose); }

/* ---------- Ledger grid: the second section pattern (Sec 3, 6, 7, 10) ----------
   Narrow metadata column (number + eyebrow) at left, hairline rule between
   the two, wide content column at right. Everything inside .ledger-content
   is the same h2/eyebrow/prose/grid markup used by full-width sections —
   only the outer arrangement differs. */
.section-ledger .container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.ledger-meta {
  border-right: 1px solid var(--color-border);
}
.ledger-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-border);
}
.ledger-meta .eyebrow { display: block; margin-top: 0.75rem; margin-bottom: 0; }
.ledger-content h2 + * { margin-top: 1.5rem; }
/* A meta column with only the number (no eyebrow, e.g. Sec 6) baseline-aligns
   with the H2's first line instead of top-aligning, so the number doesn't
   float orphaned above empty space. */
.section-ledger-solo .container { align-items: baseline; }

@media (max-width: 900px) {
  .section-ledger .container { grid-template-columns: 1fr; gap: 1.25rem; }
  .ledger-meta {
    border-right: none;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
  }
  .ledger-meta .eyebrow { margin-top: 0; }
  .section-ledger-solo .container { align-items: start; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.section-dark .eyebrow { color: var(--color-blush); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.6vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.032em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
/* A handful of deliberate rhetorical peaks (not every H2) get the full
   headline treatment, so the scroll has real high points. */
.h2-xl {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.0;
  letter-spacing: -0.024em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.9vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
}

.lede {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 42rem;
}
.section-dark .lede {
  color: var(--color-on-dark-muted);
  letter-spacing: 0.01em;
}

.prose p + p { margin-top: 1.1em; }
.prose { max-width: 42rem; color: var(--color-text-muted); font-size: 1.0625rem; line-height: 1.65; }
.prose strong { color: var(--color-text); }
.section-dark .prose {
  color: var(--color-on-dark-muted);
  letter-spacing: 0.01em;
}
.section-dark .prose strong { color: var(--color-on-dark); }

/* A single elevated line inside a prose block — breaks paragraph rhythm
   without adding new copy; reuses an existing sentence at display scale. */
.prose p.prose-emphasis {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text);
  max-width: 32rem;
  margin-block: 1.75rem;
}

/* Scroll reveal: progressive enhancement only. Content is fully visible
   without JS or with prefers-reduced-motion — main.js adds .js-ready before
   wiring the observer, so a page with JS disabled never hides anything. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js-ready .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Mono metadata (delivery times, artifact labels) ---------- */
.mono-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* ---------- Object Set (closed drawn imagery, annex to Imagery) ---------- */
.obj { display: block; overflow: visible; }
.obj-lg { width: 260px; height: 182px; margin-bottom: 1.5rem; }
.obj-stroke,
.obj-mark {
  fill: none;
  stroke: var(--color-border-strong);
  stroke-width: 1.5px;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}
.obj-mark { stroke: var(--color-primary); }
.obj-cream { fill: var(--color-bg); stroke: none; }
.section-dark .obj-stroke,
.section-oxblood .obj-stroke { stroke: rgba(236, 226, 212, 0.4); }
.section-dark .obj-mark,
.section-oxblood .obj-mark { stroke: var(--color-blush); }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: var(--color-on-dark); }

.section-dark .btn-outline { color: var(--color-on-dark); }
.section-dark .btn-outline:hover { background: var(--color-on-dark); color: var(--color-ink); }

.btn-lg { padding: 1.1rem 2.25rem; font-size: 1.05rem; }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 1.1rem;
  background: rgba(236, 226, 212, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-border);
  padding-block: 0.75rem;
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: var(--scroll-progress, 0%);
  background: var(--color-primary);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 24px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-cta-mobile { display: none; }
.brand-logo-compact { display: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}
.main-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--color-text); }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(1.5rem, 4vw, 2.5rem);
}
.hero-inner { max-width: 74rem; }
.hero-eyebrow { margin-bottom: 1.25rem; }
.hero-headline { margin-bottom: 1.5rem; }

/* The one orchestrated moment: each display line is masked and reveals in
   sequence, then the lede and buttons fade in together. Nothing else on the
   page animates on entry. */
.line-mask { display: block; overflow: hidden; }
.line-inner {
  display: block;
  text-wrap: balance;
  transform: translateY(0.6em);
  opacity: 0;
  animation: line-reveal 0.5s var(--ease) forwards;
}
.line-mask:nth-child(1) .line-inner { animation-delay: 0s; }
.line-mask:nth-child(2) .line-inner { animation-delay: 0.09s; }
@keyframes line-reveal {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .lede,
.hero-ctas {
  animation: hero-in 0.6s var(--ease) 0.55s backwards;
}

.hero .lede { margin-bottom: 2.25rem; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.hero-support {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-support-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-paper);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
}

/* ---------- Hero product demo ----------
   The studio has no software UI to show, so the "product" on display is the
   real deliverable: a compact preview of the visibility check (same visual
   language as the full Examination Artifact in Sec 9), plus two floating
   facts already published elsewhere on the page — nothing here is invented. */
.hero-demo {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  margin-bottom: -3rem;
}
.hero-demo-panel {
  position: relative;
  z-index: 2;
  background: var(--color-paper);
  border-radius: var(--radius-sm);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-float);
}
.hero-demo-panel-head {
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
.hero-demo-row {
  display: grid;
  grid-template-columns: 3px auto 1fr;
  align-items: center;
  gap: 0.85rem;
}
.hero-demo-row + .hero-demo-row { margin-top: 0.9rem; }
.hero-demo-mark {
  width: 3px;
  height: 1.3rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}
.hero-demo-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.hero-demo-redact {
  height: 0.8rem;
  width: 100%;
  max-width: 8rem;
  background: var(--color-bg);
  border-radius: 2px;
  justify-self: end;
}
.hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--color-paper);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-float);
}
.hero-float strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}
.hero-float-a { top: -1.5rem; right: -1.25rem; }
.hero-float-b { bottom: -1.25rem; left: -1.5rem; }

@media (max-width: 680px) {
  .hero-demo { margin-bottom: 0; }
  .hero-float { position: static; flex-direction: row; align-items: baseline; gap: 0.5rem; margin-top: 0.75rem; width: fit-content; }
}

/* ---------- Recognition cards (Sec 2) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.rec-card {
  background: var(--color-paper);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.rec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.rec-card:active { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.rec-card .quote-mark {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.rec-card h3 { font-size: clamp(1.05rem, 1.3vw, 1.2rem); margin-bottom: 0.6rem; }
.rec-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- Numbered feature blocks (Sec 3) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-block {
  background: var(--color-paper);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.feature-num {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
  font-weight: 700;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}
.feature-block h3 { margin-bottom: 0.6rem; }
.feature-block p { color: var(--color-text-muted); font-size: 0.95rem; }
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}
.feature-link:hover { text-decoration: underline; }

/* ---------- Method diagram (Sec 4) ---------- */
.method-head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }

.method-diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.method-diagram-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 3.35rem;
  width: 100%;
  height: 1px;
  overflow: visible;
  z-index: 0;
}
/* Draw-on-scroll: the connector is the only thing in the diagram that
   animates; the nodes themselves are static. */
.method-connector {
  stroke: var(--color-border-strong);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--len, 0px);
  stroke-dashoffset: var(--len, 0px);
  transition: stroke-dashoffset 900ms var(--ease);
}
.method-connector.is-visible { stroke-dashoffset: 0; }
.method-node {
  position: relative;
  z-index: 1;
  background: var(--color-paper);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.method-node-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.4vw, 3.4rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-primary);
}
.method-node h3 { font-size: clamp(1.1rem, 1.4vw, 1.3rem); }
.method-node p { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.55; }

@media (max-width: 900px) {
  .method-diagram {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .method-diagram-line {
    left: 0;
    right: auto;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    height: auto;
  }
  .method-node { margin-left: 1.75rem; }
}

/* ---------- Services (Sec 5) ---------- */
.services-note {
  max-width: 40rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.98rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.service-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-paper);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.service-card:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
/* Scope bar: a plain progression signal, not a data label — no number, no
   legend. Depth of the offering, filled left to right. */
.service-scope-bar {
  height: 3px;
  width: 100%;
  background: var(--color-canvas-deep);
  flex-shrink: 0;
}
.service-scope-fill { display: block; height: 100%; background: var(--color-primary); }
.service-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 2rem;
  flex: 1 1 auto;
}
.service-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.service-card p { color: var(--color-text-muted); font-size: 0.95rem; }
.service-card .service-caveat {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: normal;
  font-weight: 500;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}
/* Continuidade: a different axis (recurring, not deeper scope) — a
   full-width band below the ladder, deliberately without a scope bar. */
.service-continuity {
  margin-top: 1.5rem;
  padding: 2rem;
  background: var(--color-paper);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.service-continuity-body { display: flex; flex-direction: column; gap: 0.5rem; max-width: 34rem; }
.service-continuity-body p { color: var(--color-text-muted); font-size: 0.95rem; }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .service-grid { grid-template-columns: 1fr; }
}
/* Mosaic hierarchy on desktop: two small tiers stacked at left, Presença
   Clareza (the card with the drawn object) as the tall featured middle card,
   Projeto Clareza and Projeto Clareza Completo as a matched pair below —
   all five real cards, just arranged with the asymmetry a flat 3-up grid
   doesn't have. */
@media (min-width: 901px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "diag    presenca"
      "pagina  presenca"
      "projeto completo";
  }
  .service-card:nth-child(1) { grid-area: diag; }
  .service-card:nth-child(2) { grid-area: pagina; }
  .service-card:nth-child(3) { grid-area: presenca; }
  .service-card:nth-child(4) { grid-area: projeto; }
  .service-card:nth-child(5) { grid-area: completo; }
  .service-card:nth-child(3) .service-card-body { justify-content: center; padding-block: 2.5rem; }
}

.services-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--color-paper);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.services-cta p { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

/* ---------- For whom (Sec 6) ---------- */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.fit-col {
  border-radius: var(--radius-sm);
  padding: 2rem;
}
.fit-col.is-yes { background: var(--color-paper); }
.fit-col.is-no { background: var(--color-ink); color: var(--color-on-dark); }
.fit-col h3 { margin-bottom: 1.25rem; }
.fit-col ul { display: grid; gap: 0.9rem; }
.fit-col li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.98rem;
}
.fit-col.is-no li { color: var(--color-on-dark-muted); line-height: 1.7; letter-spacing: 0.01em; }
.fit-icon { flex-shrink: 0; margin-top: 0.2rem; }
.fit-col.is-yes .fit-icon { color: var(--color-primary); }
.fit-col.is-no .fit-icon { color: var(--color-blush); }

/* ---------- Not-a-promise (Sec 8, ink) ---------- */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.promise-card {
  background: var(--color-ink-soft);
  border: 1px solid rgba(236, 226, 212, 0.18);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  transition: border-color 0.3s var(--ease);
}
.promise-card:hover { border-color: var(--color-primary); }
.promise-card p.lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-on-dark);
  margin-bottom: 0.75rem;
}
.promise-card p.sub { color: var(--color-on-dark-muted); font-size: 0.95rem; line-height: 1.7; letter-spacing: 0.01em; }
.promise-closing { max-width: 42rem; color: var(--color-on-dark-muted); font-size: 1.05rem; line-height: 1.7; letter-spacing: 0.01em; }
.promise-closing strong { color: var(--color-on-dark); }

/* ---------- Visibility check (Sec 9) ---------- */
.check-intro { max-width: 42rem; }
.check-cta { margin-top: 2rem; }
.check-cta .btn { margin-bottom: 1rem; }
.check-cta-note { font-size: 0.9rem; color: var(--color-text-muted); }
.check-cta-note + .check-cta-note { margin-top: 0.5rem; }

/* The Examination Artifact: a redacted sample of the actual deliverable.
   Structural placeholder only — swap the redaction blocks for a real,
   de-identified checagem output before shipping. Nothing here is fabricated
   finding text. */
.exam-artifact {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 44rem;
  background: var(--color-paper);
  border-radius: var(--radius-sm);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.exam-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.exam-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.exam-field-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.exam-redact {
  display: block;
  height: 0.8rem;
  width: 5rem;
  background: var(--color-bg);
  border-radius: 2px;
}
.exam-rows { display: grid; gap: 1.1rem; }
.exam-row {
  display: grid;
  grid-template-columns: 3px auto 1fr;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}
.exam-mark {
  width: 3px;
  height: 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
/* Cascade: rows settle in sequence, each row's margin mark trailing 120ms
   behind its own row. */
.exam-rows.is-visible .exam-row { opacity: 1; transform: translateY(0); }
.exam-rows.is-visible .exam-row:nth-child(1) { transition-delay: 0ms; }
.exam-rows.is-visible .exam-row:nth-child(2) { transition-delay: 70ms; }
.exam-rows.is-visible .exam-row:nth-child(3) { transition-delay: 140ms; }
.exam-rows.is-visible .exam-row:nth-child(4) { transition-delay: 210ms; }
.exam-rows.is-visible .exam-row:nth-child(1) .exam-mark { opacity: 1; transition-delay: 120ms; }
.exam-rows.is-visible .exam-row:nth-child(2) .exam-mark { opacity: 1; transition-delay: 190ms; }
.exam-rows.is-visible .exam-row:nth-child(3) .exam-mark { opacity: 1; transition-delay: 260ms; }
.exam-rows.is-visible .exam-row:nth-child(4) .exam-mark { opacity: 1; transition-delay: 330ms; }
.exam-row-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.exam-redact-line {
  height: 0.9rem;
  width: 100%;
  max-width: 24rem;
  background: var(--color-bg);
  border-radius: 2px;
}

/* ---------- FAQ (Sec 10) ---------- */
.faq-list { max-width: 50rem; }
.faq-group + .faq-group { margin-top: 2.5rem; }
.faq-group-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.faq-item[open] .faq-icon {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-bottom: 1.5rem;
  color: var(--color-text-muted);
  max-width: 42rem;
  transition: max-height 0.4s var(--ease), opacity 0.35s var(--ease);
}
/* max-height is measured and set inline by main.js so the reveal is
   proportional to the answer's real height, not a fixed ceiling. */
.faq-item[open] .faq-answer { opacity: 1; }
.faq-answer p + p { margin-top: 1em; }
.faq-answer-with-obj {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem 2rem;
  max-width: none;
}
.faq-answer-with-obj .obj-lg { flex-shrink: 0; margin-bottom: 0; }
.faq-answer-with-obj p { flex: 1 1 16rem; max-width: 32rem; }

/* ---------- Final CTA (Sec 11) — the one oxblood field ---------- */
.final-cta {
  text-align: center;
  padding-block: clamp(4rem, 10vw, 7rem);
}
.final-cta .container { max-width: 42rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.final-cta .eyebrow { margin-bottom: 0; }
.final-cta .lede { text-align: center; }
.final-cta h2 { color: #fff; }

/* ---------- Footer (statement 2, ink) ---------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-on-dark-muted);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer :focus-visible { outline-color: var(--color-blush); }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(236, 226, 212, 0.15);
}
.footer-brand .brand-logo { height: 28px; }
.footer-brand p { margin-top: 0.9rem; max-width: 24rem; font-size: 0.95rem; }
.footer-col-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
  margin-bottom: 1.1rem;
}
.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-nav-links a { font-size: 0.92rem; color: var(--color-on-dark-muted); transition: color 0.2s var(--ease); }
.footer-nav-links a:hover { color: var(--color-on-dark); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}
.footer-links a {
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(236, 226, 212, 0.25);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-links a:hover { border-color: var(--color-on-dark); color: var(--color-on-dark); }
.footer-links a.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--color-on-dark); }

/* ---------- Policy page ---------- */
.policy-hero {
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
  max-width: 46rem;
}
.policy-updated {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.policy-content {
  padding-bottom: var(--section-pad);
}
.policy-content .container { max-width: 46rem; }
.policy-section { padding-block: 2rem; border-top: 1px solid var(--color-border); }
.policy-section:first-child { border-top: none; padding-top: 0; }
.policy-section h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.policy-section p, .policy-section li { color: var(--color-text-muted); font-size: 1rem; }
.policy-section p + p, .policy-section ul + p, .policy-section p + ul { margin-top: 1em; }
.policy-section ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.policy-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.92rem;
}
.policy-section th, .policy-section td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  text-align: left;
  color: var(--color-text-muted);
}
.policy-section th { font-family: var(--font-display); color: var(--color-text); }
.pending-flag {
  display: inline-block;
  background: var(--color-paper);
  color: var(--color-primary);
  border: 1px dashed var(--color-primary);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    inset: 4.2rem 1rem auto 1rem;
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a:not(.btn) {
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-xs);
  }
  .main-nav a:not(.btn):hover { background: var(--color-bg); }
  .main-nav .btn { margin-top: 0.5rem; }
  .main-nav .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }

  .header-cta-mobile {
    display: inline-flex;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .brand-logo-full { display: none; }
  .brand-logo-compact { display: block; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}

/* Below ~420px, the compact CTA + hamburger no longer both fit next to the
   logo at their 760px sizing — shrink further so the menu toggle stays
   reachable instead of being pushed off the visible header. */
@media (max-width: 420px) {
  .site-header .container { gap: 0.5rem; }
  .header-actions { gap: 0.4rem; }
  .header-cta-mobile { padding: 0.5rem 0.65rem; font-size: 0.72rem; }
  .nav-toggle { width: 2.1rem; height: 2.1rem; }
}
