/* Severina — Main Stylesheet */

/* ─── Design Tokens (copied from logos/tokens.css) ─────────────────────────── */
:root {
  /* Colors */
  --sev-fundo:          #F4EFE7;
  --sev-tinta:          #221D18;
  --sev-brasa:          #E4572E;
  --sev-brasa-profunda: #9C3417;
  --sev-barro:          #B0A088;

  /* Typography */
  --sev-font:              'Inter', 'Helvetica Neue', Arial, sans-serif;
  --sev-font-weight-a:     500;
  --sev-font-weight-b:     900;
  --sev-font-weight-c:     600;

  /* Type scale (reusable, fluid via clamp) */
  --sev-fs-display: clamp(2.75rem, 6vw, 5.5rem);   /* big display headline */
  --sev-fs-h1:      clamp(2.5rem, 5vw, 4rem);
  --sev-fs-h2:      clamp(1.5rem, 3vw, 2.5rem);
  --sev-fs-h3:      clamp(1.1rem, 2vw, 1.4rem);
  --sev-fs-body:    clamp(1.0625rem, 0.6vw + 0.95rem, 1.25rem); /* ~17-20px */

  /* Spacing */
  --sev-section-pad:    80px;
  --sev-section-pad-lg: 120px; /* generous rhythm for full-bleed sections on large screens */
  --sev-max-width:      1200px;

  /* Radius */
  --sev-radius-pill: 999px; /* shared capsule/pill geometry */
  --sev-radius-card: 24px;  /* large rounded card (tabs / proof) */

  /* Motion (coherent "develops into view" timing across nav / reveal / tabs) */
  --sev-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --sev-ease-emphasized: cubic-bezier(0.22, 1, 0.36, 1);
  --sev-duration-nav: 400ms;
  --sev-duration-tab: 320ms;
  --sev-duration-reveal: 560ms;
  --sev-duration-reveal-text: 720ms;
  --sev-duration-ember: 4.8s;
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Keep in-page anchor targets clear of the fixed/sticky nav bar. */
  scroll-padding-top: 72px;
}

body {
  font-family: var(--sev-font);
  background: var(--sev-fundo);
  color: var(--sev-tinta);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Clear fixed footer bar */
  padding-bottom: 64px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Typography ────────────────────────────────────────────────────────────── */
h1 {
  font-size: var(--sev-fs-h1);
  font-weight: var(--sev-font-weight-b);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--sev-fs-h2);
  font-weight: var(--sev-font-weight-c);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--sev-fs-h3);
  font-weight: var(--sev-font-weight-c);
  line-height: 1.3;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sev-tinta);
}

/* ─── Layout Utilities ──────────────────────────────────────────────────────── */
.container {
  max-width: var(--sev-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--sev-section-pad) 0;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--sev-brasa);
  color: var(--sev-fundo);
  padding: 12px 28px;
  font-family: var(--sev-font);
  font-size: 1rem;
  font-weight: var(--sev-font-weight-c);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.18s ease;
  letter-spacing: 0.01em;
}

.btn:hover,
.btn:focus {
  background: var(--sev-brasa-profunda);
  color: var(--sev-fundo);
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--sev-tinta);
  outline-offset: 3px;
}

/* Pill button variant (additive; does not change default .btn geometry) */
.btn--pill {
  border-radius: var(--sev-radius-pill);
}

/* ─── Navigation ────────────────────────────────────────────────────────────── */
/* Base nav: in-flow sticky light bar (used as-is by secondary pages). */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sev-fundo);
  border-bottom: 1px solid var(--sev-barro);
  box-shadow: 0 1px 4px rgba(34, 29, 24, 0.06);
}

/* Overlay variant (home): fixed, translucent, color-flips over light/dark
   sections. Opt-in per page so in-flow pages keep the readable sticky bar. */
.nav--overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  /* Isolate so scrim layers (z-index: -1) stay behind chrome without forcing
     .nav__inner into a positioning context (mobile menu needs full-bleed). */
  isolation: isolate;
}

.nav--overlay::before,
.nav--overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--sev-duration-nav) var(--sev-ease-standard);
}

/* Dark scrim: light chrome over dark sections (also the safe JS-off default,
   since the home page opens on the dark hero). */
.nav--overlay::before {
  background: rgba(34, 29, 24, 0.72);
  border-bottom: 1px solid rgba(176, 160, 136, 0.18);
  /* Perf: solid scrim only (no backdrop-filter). Bare nav already disables these layers. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
}

/* Light / paper scrim: dark chrome over light sections. */
.nav--overlay::after {
  background: rgba(244, 239, 231, 0.94);
  border-bottom: 1px solid var(--sev-barro);
  box-shadow: 0 1px 4px rgba(34, 29, 24, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
}

.nav--overlay.nav--over-dark::before {
  opacity: 1;
}

.nav--overlay.nav--over-dark::after {
  opacity: 0;
}

.nav--overlay.nav--over-light::before {
  opacity: 0;
}

.nav--overlay.nav--over-light::after {
  opacity: 1;
}

/* Wonderful bare chrome: no glass header bar; logo + links float on the hero */
.nav--overlay.nav--bare::before,
.nav--overlay.nav--bare::after {
  opacity: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom-color: transparent;
}

.nav__inner {
  max-width: var(--sev-max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

/* Logo + menu clustered top-left (Wonderful) */
.nav__cluster {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.nav__wordmark {
  font-size: 1.25rem;
  font-weight: var(--sev-font-weight-c);
  color: var(--sev-tinta);
  letter-spacing: -0.01em;
}

/* Nav CTA pill: solid brasa reads on both light and dark scrims (no flip). */
.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.75rem;
  font-weight: var(--sev-font-weight-c);
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: normal;
  max-width: 11.5rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(34, 29, 24, 0.14);
  transition:
    background var(--sev-duration-nav) var(--sev-ease-standard),
    box-shadow var(--sev-duration-nav) var(--sev-ease-standard),
    transform var(--sev-duration-nav) var(--sev-ease-standard);
}

.nav__cta:hover,
.nav__cta:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(156, 52, 23, 0.32);
}

.nav__cta:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(34, 29, 24, 0.14);
}

/* Right-side cluster: lang selector + toggle + CTA */
.nav__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Language switcher (small, beside RESOLVE CTA) */
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(244, 239, 231, 0.35);
  border-radius: 4px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  flex-shrink: 0;
}

.nav__lang a,
.nav__lang span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  min-width: 26px;
  padding: 2px 7px;
  color: var(--sev-fundo);
  text-decoration: none;
  box-sizing: border-box;
}

.nav__lang .lang-active {
  background: var(--sev-brasa);
  color: var(--sev-fundo);
}

.nav__lang a:hover,
.nav__lang a:focus {
  background: rgba(244, 239, 231, 0.12);
  color: var(--sev-fundo);
}

/* Color flip for overlay nav over light sections */
.nav--over-light .nav__lang {
  border-color: rgba(34, 29, 24, 0.35);
}

.nav--over-light .nav__lang a,
.nav--over-light .nav__lang span {
  color: var(--sev-tinta);
}

.nav--over-light .nav__lang .lang-active {
  background: var(--sev-tinta);
  color: var(--sev-fundo);
}

.nav--over-light .nav__lang a:hover,
.nav--over-light .nav__lang a:focus {
  background: rgba(34, 29, 24, 0.08);
  color: var(--sev-tinta);
}

/* Brand lockup: cairn + severina wordmark (SVG assets from logos/) */
.brand-lockup {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  line-height: 0;
  flex-shrink: 0;
}

.brand-lockup__img {
  display: block;
  height: 18px;
  width: auto;
}

/* Overlay nav: swap light/dark lockups with color-flip */
.brand-lockup__img--on-light {
  display: none;
}

.nav--overlay.nav--over-light .brand-lockup__img--on-dark {
  display: none;
}

.nav--overlay.nav--over-light .brand-lockup__img--on-light {
  display: block;
}

/* Footer: same logo height as nav; Resolve. sits beside, not stacked */
.brand-lockup--footer {
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}

.brand-lockup--footer .brand-lockup__img {
  height: 18px;
}

.brand-lockup__tech {
  font-size: 0.75rem;
  font-weight: var(--sev-font-weight-c);
  color: var(--sev-brasa);
  line-height: 1;
  margin-left: -6px;
}

.brand-lockup__resolve {
  font-size: 0.5625rem;
  font-weight: var(--sev-font-weight-c);
  color: #FFFFFF;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0.9;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sev-tinta);
  transition: color 0.15s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--sev-brasa);
}

/* Desktop 3-column: logo left | centered links | right group */
@media (min-width: 769px) {
  .nav__cluster nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Hamburger (mobile only) */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--sev-tinta);
}

/* Three CSS bars (not Lucide menu/x). Color via currentColor so overlay
   light-on-dark / in-flow tinta chrome stays on the existing toggle rules. */
.nav__toggle-bars {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.nav__toggle-bar {
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  border-radius: 1px;
  transition:
    transform var(--sev-duration-nav) var(--sev-ease-standard),
    opacity var(--sev-duration-nav) var(--sev-ease-standard);
}

.nav__toggle-bar:nth-child(1) {
  transform: translateY(-6px);
}

.nav__toggle-bar:nth-child(3) {
  transform: translateY(6px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1),
.nav:has(.nav__links.is-open) .nav__toggle .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2),
.nav:has(.nav__links.is-open) .nav__toggle .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3),
.nav:has(.nav__links.is-open) .nav__toggle .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg);
}

/* ── Color-flip: overlay-nav chrome text inverts between dark/light sections ── */
/* Overlay base (no flip class, e.g. JS off) is light chrome: the home page opens
   on the dark hero, so light text is the safe, always-readable default. */
.nav--overlay .nav__links a,
.nav--overlay .nav__toggle {
  color: var(--sev-fundo);
  transition: color var(--sev-duration-nav) var(--sev-ease-standard);
}

.nav--overlay.nav--over-light .nav__links a,
.nav--overlay.nav--over-light .nav__toggle {
  color: var(--sev-tinta);
}

.nav--overlay.nav--over-dark .nav__links a,
.nav--overlay.nav--over-dark .nav__toggle {
  color: var(--sev-fundo);
}

/* Hover/current keeps the brasa accent on either background. */
.nav--overlay .nav__links a:hover,
.nav--overlay .nav__links a[aria-current="page"] {
  color: var(--sev-brasa);
}

@media (prefers-reduced-motion: reduce) {
  .nav--overlay::before,
  .nav--overlay::after,
  .nav--overlay .nav__links a,
  .nav--overlay .nav__toggle,
  .nav__cta,
  .nav__toggle-bar {
    transition: none;
  }

  .nav__cta:hover,
  .nav__cta:focus,
  .nav__cta:active {
    transform: none;
  }
}

/* ─── Hero (full-bleed cinematic: dark gradient + brasa ember, no photography) ─ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* headline band sits at the bottom */
  align-items: stretch;
  overflow: hidden;
  /* clear the fixed nav on top; leave room for fixed footer + cinematic bottom */
  padding-top: 96px;
  padding-bottom: calc(clamp(48px, 8vh, 120px) + 56px);
  color: var(--sev-fundo);
  /* Always-present base (fallback behind poster/video): dark gradient over
     --sev-tinta with a brasa ember glow anchored bottom-left. */
  background-color: var(--sev-tinta);
  background-image:
    radial-gradient(
      115% 90% at 12% 96%,
      rgba(228, 87, 46, 0.42) 0%,   /* --sev-brasa */
      rgba(156, 52, 23, 0.16) 34%,  /* --sev-brasa-profunda */
      rgba(34, 29, 24, 0) 68%
    ),
    linear-gradient(155deg, #2a231c 0%, var(--sev-tinta) 58%, #17130f 100%);
}

/* Background video: muted/looping/playsinline, native autoplay (no JS needed).
   The .hero gradient above covers the no-autoplay / failed-load / absent cases. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Legibility scrim over the video: darkens top (nav) and bottom (headline),
   carries the brasa ember so the hero keeps its Terra signature. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      120% 100% at 12% 96%,
      rgba(228, 87, 46, 0.30) 0%,
      rgba(34, 29, 24, 0) 55%
    ),
    linear-gradient(
      180deg,
      rgba(23, 19, 15, 0.55) 0%,
      rgba(23, 19, 15, 0.12) 38%,
      rgba(23, 19, 15, 0.78) 100%
    );
}

/* Animated ember layer sits above scrim, below copy (Terra signature). */
.hero__ember {
  position: absolute;
  z-index: 1;
  left: -4%;
  bottom: -8%;
  width: min(72vw, 520px);
  height: min(48vw, 340px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--sev-max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Reduced motion: drop the moving video, keep the cinematic gradient hero. */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

/* Wonderful bottom band: title left, subtitle + CTAs right */
.hero__band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  width: 100%;
}

.hero__title-col,
.hero__action-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sev-brasa);
}

.hero__heading {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.08;
  color: var(--sev-fundo);
  max-width: 22ch;
  min-height: 2.8em; /* reserve space while typing cycles */
}

.hero__heading--statement {
  max-width: 28ch;
  min-height: 0;
  font-size: clamp(1.65rem, 3.6vw, 3.15rem);
  line-height: 1.12;
}

.hero__typing {
  display: inline;
}

.hero__cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.08em;
  background: var(--sev-brasa);
  vertical-align: -0.05em;
  animation: hero-cursor-blink 1s steps(1) infinite;
}

@keyframes hero-cursor-blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero__subhead {
  font-size: clamp(0.9375rem, 0.4vw + 0.85rem, 1.0625rem);
  line-height: 1.55;
  color: rgba(244, 239, 231, 0.82);
  max-width: 36rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__cta {
  margin-top: 8px;
}

/* Ghost pill: outline on dark surfaces (Wonderful secondary CTA) */
.btn--ghost {
  background: transparent;
  color: var(--sev-fundo);
  border: 1px solid rgba(244, 239, 231, 0.55);
}

.btn--ghost:hover,
.btn--ghost:focus {
  background: rgba(244, 239, 231, 0.1);
  color: var(--sev-fundo);
  border-color: var(--sev-fundo);
}

@media (max-width: 900px) {
  .hero__band {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__heading {
    max-width: none;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cursor {
    animation: none;
    opacity: 0.7;
  }
}

/* ─── How It Works ──────────────────────────────────────────────────────────── */
.como-funciona {
  background: var(--sev-tinta);
  color: var(--sev-fundo);
}

.como-funciona h2 {
  color: var(--sev-fundo);
  margin-bottom: 48px;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step__icon {
  width: 40px;
  height: 40px;
  color: var(--sev-brasa);
}

.step__number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sev-barro);
}

.step__title {
  font-size: 1.1rem;
  font-weight: var(--sev-font-weight-c);
  color: var(--sev-fundo);
}

.step__desc {
  font-size: 0.9375rem;
  color: var(--sev-barro);
  line-height: 1.65;
}

/* ─── Resoluções (O que Severina resolve) ─────────────────────────────────── */
.resolucoes h2 {
  margin-bottom: 16px;
  text-align: center;
}

.resolucoes__subhead {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--sev-barro);
  font-size: 1.125rem;
}

.resolucoes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.resolucao-card {
  border: 1px solid var(--sev-barro);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.18s ease;
  background: var(--sev-fundo);
}

.resolucao-card:hover {
  border-color: var(--sev-brasa);
}

.resolucao-card__icon {
  width: 36px;
  height: 36px;
  color: var(--sev-brasa);
}

.resolucao-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sev-barro);
}

.resolucao-card__title {
  font-size: 1.25rem;
  font-weight: var(--sev-font-weight-c);
  color: var(--sev-tinta);
  line-height: 1.3;
}

.resolucao-card__desc {
  font-size: 0.9375rem;
  color: var(--sev-tinta);
  line-height: 1.6;
}

.resolucao-card__result {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sev-brasa-profunda);
  border-top: 1px solid rgba(176, 160, 136, 0.3);
  padding-top: 12px;
  margin-top: auto;
}

/* ─── Manifesto ─────────────────────────────────────────────────────────────── */
.manifesto {
  background: var(--sev-fundo);
}

.manifesto__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.manifesto__quote {
  border-left: 4px solid var(--sev-brasa);
  padding-left: 32px;
  text-align: left;
}

.manifesto__quote p {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--sev-font-weight-c);
  line-height: 1.5;
  color: var(--sev-tinta);
}

/* ─── Contact (legacy secondary pages; home uses .cta-close) ────────────────── */
.contato {
  background: var(--sev-barro);
  color: var(--sev-tinta);
  text-align: center;
}

.contato h2 {
  margin-bottom: 16px;
}

.contato__intro {
  font-size: 1.125rem;
  margin-bottom: 32px;
  color: var(--sev-tinta);
}

.contato__email {
  font-size: 1.25rem;
  font-weight: var(--sev-font-weight-c);
  color: var(--sev-tinta);
  border-bottom: 2px solid var(--sev-brasa);
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

.contato__email:hover {
  color: var(--sev-brasa-profunda);
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--sev-tinta);
  color: var(--sev-fundo);
  padding: 48px 0 0;
  overflow: hidden;
}

/* Compact fixed bar: logo + Severina Resolve. on every page */
.footer--fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0;
  border-top: 1px solid rgba(176, 160, 136, 0.22);
  background: rgba(34, 29, 24, 0.97);
  /* Perf: opaque bar; drop backdrop-filter blur cost on sticky footer. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

.footer--fixed .footer__inner {
  padding: 10px 24px;
  align-items: center;
  gap: 16px;
}

/* Widen the fixed-bar lockup tap area to 44px without growing the bar. */
.footer--fixed .brand-lockup {
  padding-top: 13px;
  padding-bottom: 13px;
  margin-top: -13px;
  margin-bottom: -13px;
}

.footer__inner {
  max-width: var(--sev-max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--sev-barro);
}

.footer__tagline {
  font-size: 1.125rem;
  font-weight: var(--sev-font-weight-a);
  color: var(--sev-fundo);
  max-width: 28rem;
  font-style: normal;
  line-height: 1.4;
}

/* ─── Page header (como-funciona.html) ──────────────────────────────────────── */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--sev-barro);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.page-header__desc {
  font-size: 1.125rem;
  color: var(--sev-barro);
  max-width: 560px;
}

/* ─── Steps — expanded (como-funciona.html) ─────────────────────────────────── */
.steps-expanded {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.step-expanded {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--sev-barro);
}

.step-expanded:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-expanded__icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.step-expanded__icon {
  width: 40px;
  height: 40px;
  color: var(--sev-brasa);
}

.step-expanded__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sev-barro);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.step-expanded__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-expanded__title {
  font-size: 1.3rem;
  font-weight: var(--sev-font-weight-c);
}

.step-expanded__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sev-tinta);
  max-width: 620px;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .resolucoes__grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --sev-section-pad: 56px;
  }

  /* Nav: collapse links to hamburger menu */
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--sev-fundo);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--sev-barro);
    padding: 8px 0;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(176, 160, 136, 0.3);
  }

  .nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* In-flow (non-overlay) nav needs an explicit positioning context for the
     absolute dropdown; the overlay nav stays fixed and cinematic on mobile. */
  .nav:not(.nav--overlay) {
    position: relative;
  }

  /* Overlay dropdown sits on the light panel, so its links must be dark
     regardless of the current flip state. Scope to the open panel so
     desktop overlay-on-dark can keep light chrome.
     Specificity 0,4,1 beats .nav--overlay.nav--over-dark .nav__links a (0,3,1). */
  .nav--overlay.nav--over-dark .nav__links.is-open a,
  .nav--overlay.nav--over-light .nav__links.is-open a,
  .nav--overlay .nav__links.is-open a {
    color: var(--sev-tinta);
  }

  .nav--overlay.nav--over-dark .nav__links.is-open a:hover,
  .nav--overlay.nav--over-dark .nav__links.is-open a[aria-current="page"],
  .nav--overlay.nav--over-light .nav__links.is-open a:hover,
  .nav--overlay.nav--over-light .nav__links.is-open a[aria-current="page"],
  .nav--overlay .nav__links.is-open a:hover,
  .nav--overlay .nav__links.is-open a[aria-current="page"] {
    color: var(--sev-brasa);
  }

  /* Mobile tap targets for the lang selector (SurGenTec lesson) */
  .nav__lang a,
  .nav__lang span {
    min-height: 44px;
    min-width: 44px;
    padding: 2px 10px;
  }
}

/* Tablet band (769-1024): touch devices show the full nav but still need
   44px tap targets on the lang selector and the nav CTA. */
@media (max-width: 1024px) {
  .nav__lang a,
  .nav__lang span {
    min-height: 44px;
    min-width: 44px;
    padding: 2px 10px;
  }

  .nav__cta {
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  /* Nav CTA: hide on mobile to avoid crowding the hamburger; hero CTA remains. */
  .nav__cta {
    display: none;
  }

  /* In-flow pages (como-funciona) have no hero CTA, so keep the nav CTA
     visible on mobile: the hamburger alone leaves no above-fold action. */
  .nav:not(.nav--overlay) .nav__cta {
    display: inline-flex;
  }

  /* Hamburger: 44x44 touch target (icon stays 24px inside). */
  .nav__toggle {
    min-width: 44px;
    min-height: 44px;
  }

  /* Footer: stack meta above giant wordmark */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer--fixed .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* Expanded steps: single column */
  .step-expanded {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-expanded__icon-col {
    flex-direction: row;
    writing-mode: initial;
  }

  .step-expanded__num {
    writing-mode: initial;
  }
}

/* Order flow: Problema → Dono → ... → Resultado */
.order-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sev-tinta);
}

.order-flow li + li::before {
  content: '\2192';
  margin-right: 4px;
  color: var(--sev-brasa);
}

/* Conviction list */
.conviction__list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.conviction__list li {
  padding-left: 20px;
  border-left: 3px solid var(--sev-brasa);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--sev-tinta);
}

@media (max-width: 480px) {
  .manifesto__quote {
    padding-left: 20px;
  }

  /* Fixed footer wraps to ~76px on narrow phones; clear it fully. */
  body {
    padding-bottom: 84px;
  }
}

/* ─── Eyebrow utility ───────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sev-brasa);
  margin-bottom: 8px;
}

.eyebrow--light {
  color: var(--sev-barro);
}

/* ─── Skeleton / Placeholder shimmer ────────────────────────────────────────── */
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    #EAE3D8 25%,
    #D9D0C3 50%,
    #EAE3D8 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 2s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton--dark {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 25%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 2s ease-in-out infinite;
}

.skeleton--video {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 240px;
}

.skeleton--ui {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 280px;
}

.skeleton--dashboard {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 280px;
}

/* ─── Conviction list variant (light text for dark sections) ────────────────── */
.conviction__list--light li {
  color: var(--sev-barro);
  border-left-color: var(--sev-brasa);
}

/* ─── Problema: dark full-bleed statement ───────────────────────────────────── */
.problema {
  background: var(--sev-tinta);
  color: var(--sev-fundo);
}

.problema__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.problema__eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: var(--sev-font-weight-c);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sev-barro);
}

.problema__statement {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: var(--sev-font-weight-a);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--sev-fundo);
  max-width: 40rem;
}

.problema__mission {
  margin-top: 20px;
  padding: 32px 28px;
  border: 1px solid var(--sev-barro);
  border-radius: var(--sev-radius-card);
  max-width: 40rem;
  text-align: center;
}

.problema__mission-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: var(--sev-font-weight-c);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sev-brasa);
}

.problema__mission-text {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: var(--sev-font-weight-a);
  line-height: 1.6;
  color: var(--sev-fundo);
}

.porque-grid {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: var(--sev-max-width);
  text-align: left;
}

.porque-card {
  padding: 24px 22px;
  border: 1px solid rgba(176, 160, 136, 0.35);
  border-radius: var(--sev-radius-card);
  background: rgba(244, 239, 231, 0.04);
}

.porque-card__title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--sev-fundo);
}

.porque-card__body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--sev-barro);
}

.faz {
  background: var(--sev-fundo);
}

.faz__inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.faz--wide .faz__inner {
  max-width: var(--sev-max-width);
}

.faz__desc {
  margin: 0;
  font-size: var(--sev-fs-body);
  color: var(--sev-tinta);
  line-height: 1.7;
}

.faz__tagline {
  margin: 0;
  font-size: 1rem;
  font-weight: var(--sev-font-weight-c);
  color: var(--sev-brasa-profunda);
  border-left: 3px solid var(--sev-brasa);
  padding-left: 16px;
  line-height: 1.5;
}

.implant-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 46rem;
}

.implant-steps li {
  margin: 0;
  font-size: var(--sev-fs-body);
  color: var(--sev-tinta);
  line-height: 1.65;
}

.implant-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: var(--sev-font-weight-c);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sev-tinta);
}

.anatomy {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 8px;
  padding: 0;
}

.anatomy__item {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--sev-barro);
  border-radius: var(--sev-radius-pill);
  font-size: 0.8125rem;
  font-weight: var(--sev-font-weight-c);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sev-tinta);
}

/* ─── Especialista: govern-split (list left, floating trace card right) ──────── */
.especialista {
  background: var(--sev-fundo);
}

.especialista__inner {
  max-width: var(--sev-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.especialista__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.especialista__desc {
  font-size: var(--sev-fs-body);
  color: var(--sev-tinta);
  line-height: 1.7;
}

.especialista__tagline {
  font-size: 1rem;
  font-weight: var(--sev-font-weight-c);
  color: var(--sev-brasa-profunda);
  border-left: 3px solid var(--sev-brasa);
  padding-left: 16px;
  line-height: 1.5;
}

/* Four layers as stacked capability list (Wonderful govern pattern) */
.camadas {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--sev-barro);
}

.camada {
  display: grid;
  grid-template-columns: minmax(7rem, 0.4fr) 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--sev-barro);
}

.camada__name {
  font-size: 0.875rem;
  font-weight: var(--sev-font-weight-c);
  letter-spacing: 0.06em;
  color: var(--sev-tinta);
  text-transform: uppercase;
}

.camada__desc {
  font-size: 0.9375rem;
  color: var(--sev-barro);
  line-height: 1.45;
  text-align: right;
}

/* Dark stage + floating TraceCard mock */
.especialista__stage {
  position: relative;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(228, 87, 46, 0.22) 0%, transparent 62%),
    linear-gradient(160deg, #2a221c 0%, #1c1714 48%, #14110f 100%);
}

.especialista__stage-glow {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 11px,
      rgba(242, 233, 222, 0.02) 11px,
      rgba(242, 233, 222, 0.02) 12px
    );
  pointer-events: none;
}

.trace-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  border-radius: 16px;
  background: #1c1714;
  border: 1px solid rgba(242, 233, 222, 0.08);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

.trace-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.trace-card__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sev-brasa);
  flex-shrink: 0;
  animation: sev-brasa-pulse 2.4s ease-in-out infinite;
}

.trace-card__label {
  font-family: var(--sev-font);
  font-size: 0.6875rem;
  font-weight: var(--sev-font-weight-c);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f2e9de;
}

.trace-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trace-card__row {
  display: grid;
  grid-template-columns: 3.25rem 1fr auto;
  gap: 10px;
  align-items: start;
  font-size: 0.78125rem;
  line-height: 1.4;
  color: rgba(242, 233, 222, 0.75);
}

.trace-card__time {
  opacity: 0.55;
  flex: 0 0 auto;
}

.trace-card__action {
  color: #f2e9de;
}

.trace-card__status {
  color: rgba(242, 233, 222, 0.5);
  white-space: nowrap;
}

.trace-card__status--ok {
  color: var(--sev-brasa);
}

@keyframes sev-brasa-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .trace-card__pulse {
    animation: none;
  }
}

/* ─── Entrada: copy on solid dark bg, full cairn loop below (no side/bottom crop) ─ */
.entrada.section--dark {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-block: 0;
  background-color: var(--sev-tinta);
  color: var(--sev-fundo);
}

/* Copy sits on the section background, above the video block. */
.entrada__inner {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 200px) 24px clamp(40px, 6vh, 72px);
}

/* Video stage: full width, natural height, pinned to the section bottom. */
.entrada__stage {
  position: relative;
  margin-top: auto;
  width: 100%;
  line-height: 0;
}

/* Full frame at full width; soft lens fade into the dark bg above (no hard seam). */
.entrada__bg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  /* Elliptical reveal: deep top dissolve, fuller center/bottom (lens, not a hard bar). */
  -webkit-mask-image:
    radial-gradient(
      ellipse 155% 115% at 50% 100%,
      #000 38%,
      rgba(0, 0, 0, 0.92) 52%,
      rgba(0, 0, 0, 0.55) 68%,
      rgba(0, 0, 0, 0.18) 82%,
      transparent 96%
    );
  mask-image:
    radial-gradient(
      ellipse 155% 115% at 50% 100%,
      #000 38%,
      rgba(0, 0, 0, 0.92) 52%,
      rgba(0, 0, 0, 0.55) 68%,
      rgba(0, 0, 0, 0.18) 82%,
      transparent 96%
    );
}

/* Brasa + tinta lens veil: kills the video top edge into section bg. */
.entrada__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      120% 100% at 12% 96%,
      rgba(228, 87, 46, 0.30) 0%,
      rgba(34, 29, 24, 0) 55%
    ),
    radial-gradient(
      ellipse 150% 72% at 50% -8%,
      rgba(34, 29, 24, 1) 0%,
      rgba(34, 29, 24, 0.92) 32%,
      rgba(34, 29, 24, 0.55) 55%,
      rgba(34, 29, 24, 0.18) 72%,
      transparent 86%
    ),
    linear-gradient(
      to bottom,
      rgba(34, 29, 24, 0.97) 0%,
      rgba(34, 29, 24, 0.62) 18%,
      rgba(34, 29, 24, 0.22) 40%,
      transparent 62%
    ),
    linear-gradient(
      to top,
      rgba(23, 19, 15, 0.08) 0%,
      rgba(23, 19, 15, 0.22) 55%,
      rgba(23, 19, 15, 0.12) 100%
    );
}

.entrada__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.entrada h2 {
  color: var(--sev-fundo);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

.entrada__desc {
  font-size: var(--sev-fs-body);
  color: var(--sev-barro);
  line-height: 1.7;
}

.entrada__cta {
  align-self: flex-start;
  margin-top: 4px;
}

/* Reduced motion: drop the moving video, keep the poster in the stage. */
@media (prefers-reduced-motion: reduce) {
  .entrada__bg { display: none; }

  .entrada__stage {
    background-image: url("/assets/video/entrada-poster.jpg");
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: bottom center;
    min-height: 36vh;
    -webkit-mask-image:
      radial-gradient(
        ellipse 155% 115% at 50% 100%,
        #000 38%,
        rgba(0, 0, 0, 0.92) 52%,
        rgba(0, 0, 0, 0.55) 68%,
        rgba(0, 0, 0, 0.18) 82%,
        transparent 96%
      );
    mask-image:
      radial-gradient(
        ellipse 155% 115% at 50% 100%,
        #000 38%,
        rgba(0, 0, 0, 0.92) 52%,
        rgba(0, 0, 0, 0.55) 68%,
        rgba(0, 0, 0, 0.18) 82%,
        transparent 96%
      );
  }
}

/* ─── Terra ember signature motif (brasa glow; not an orb / sphere clone) ───── */
.ember-motif {
  position: relative;
  width: min(70vw, 420px);
  height: min(48vw, 280px);
  margin: 0 auto;
  pointer-events: none;
}

.ember-motif__glow,
.ember-motif__core {
  position: absolute;
  display: block;
  /* Irregular coal / ember shapes (asymmetric), never a clean sphere. */
  border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%;
}

.ember-motif__glow--a {
  inset: 8% 18% 22% 6%;
  background: radial-gradient(
    ellipse 70% 60% at 42% 58%,
    rgba(228, 87, 46, 0.55) 0%,
    rgba(156, 52, 23, 0.22) 42%,
    transparent 72%
  );
  filter: blur(8px);
  animation: sev-ember-breathe var(--sev-duration-ember) var(--sev-ease-standard) infinite;
}

.ember-motif__glow--b {
  inset: 18% 4% 6% 28%;
  background: radial-gradient(
    ellipse 65% 55% at 58% 40%,
    rgba(228, 87, 46, 0.38) 0%,
    rgba(156, 52, 23, 0.14) 48%,
    transparent 74%
  );
  filter: blur(12px);
  animation: sev-ember-breathe var(--sev-duration-ember) var(--sev-ease-standard) infinite;
  animation-delay: -1.6s;
}

.ember-motif__glow--c {
  inset: 28% 22% 12% 18%;
  background: radial-gradient(
    ellipse 80% 50% at 50% 70%,
    rgba(191, 101, 58, 0.28) 0%,
    transparent 68%
  );
  filter: blur(14px);
  opacity: 0.85;
  animation: sev-ember-breathe calc(var(--sev-duration-ember) * 1.15) var(--sev-ease-standard) infinite;
  animation-delay: -3.1s;
}

.ember-motif__core {
  inset: 34% 36% 30% 32%;
  background: radial-gradient(
    ellipse 55% 48% at 48% 52%,
    rgba(244, 239, 231, 0.55) 0%,
    rgba(228, 87, 46, 0.85) 28%,
    rgba(156, 52, 23, 0.35) 62%,
    transparent 100%
  );
  filter: blur(2px);
  opacity: 0.9;
  animation: sev-ember-core var(--sev-duration-ember) var(--sev-ease-standard) infinite;
}

.ember-motif--hero {
  margin: 0;
}

.ember-motif--hero .ember-motif__glow--a {
  filter: blur(10px);
  opacity: 0.9;
}

.ember-motif--hero .ember-motif__core {
  opacity: 0.55;
}

.ember-motif--cta {
  position: absolute;
  inset: auto;
  left: 50%;
  bottom: -18%;
  width: min(90vw, 640px);
  height: min(42vw, 280px);
  transform: translateX(-50%);
  opacity: 0.55;
  z-index: 0;
}

@keyframes sev-ember-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1) translateY(0); }
  50% { opacity: 1; transform: scale(1.06) translateY(-2%); }
}

@keyframes sev-ember-core {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .ember-motif__glow,
  .ember-motif__core {
    animation: none;
  }
}

/* ─── Resolve: use-case pill tabs + large card ──────────────────────────────── */
.resolve__inner {
  max-width: var(--sev-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.resolve__header {
  text-align: center;
  margin-bottom: 40px;
}

.resolve__header h2 {
  margin: 0 0 12px;
}

.resolve__subhead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: var(--sev-fs-body);
  color: var(--sev-barro);
  line-height: 1.6;
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.tabs__tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--sev-barro);
  background: transparent;
  color: var(--sev-tinta);
  font-family: var(--sev-font);
  font-size: 0.9375rem;
  font-weight: var(--sev-font-weight-c);
  line-height: 1;
  padding: 10px 20px;
  border-radius: var(--sev-radius-pill);
  cursor: pointer;
  transition:
    background var(--sev-duration-tab) var(--sev-ease-standard),
    color var(--sev-duration-tab) var(--sev-ease-standard),
    border-color var(--sev-duration-tab) var(--sev-ease-standard);
}

.tabs__tab:hover,
.tabs__tab:focus-visible {
  border-color: var(--sev-brasa);
  outline: none;
}

.tabs__tab:focus-visible {
  outline: 2px solid var(--sev-brasa);
  outline-offset: 3px;
}

.tabs__tab.is-active {
  background: var(--sev-tinta);
  border-color: var(--sev-tinta);
  color: var(--sev-fundo);
}

.tabs__panels {
  position: relative;
  display: grid;
}

/* Without JS: every panel stays readable (stacked). With JS: stacked in one cell for crossfade. */
.tabs__panel + .tabs__panel {
  margin-top: 20px;
}

.js .tabs__panel {
  grid-area: 1 / 1;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity var(--sev-duration-tab) var(--sev-ease-emphasized),
    transform var(--sev-duration-tab) var(--sev-ease-emphasized),
    visibility var(--sev-duration-tab) var(--sev-ease-emphasized);
}

.js .tabs__panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .js .tabs__panel {
    transition: none;
    transform: none;
  }

  .tabs__tab {
    transition: none;
  }
}

.resolve-card {
  border-radius: var(--sev-radius-card);
  background: rgba(176, 160, 136, 0.12);
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 240px;
}

.resolve-card__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: var(--sev-font-weight-c);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--sev-tinta);
  max-width: 40rem;
}

.resolve-card__body {
  margin: 0;
  font-size: var(--sev-fs-body);
  line-height: 1.65;
  color: var(--sev-tinta);
  max-width: 40rem;
  opacity: 0.88;
}

.resolve-card__tags {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resolve-card__tag {
  background: var(--sev-fundo);
  color: var(--sev-tinta);
  border: 1px solid rgba(176, 160, 136, 0.45);
  font-size: 0.8125rem;
}

/* ─── Prova: blocked carousel skeleton ──────────────────────────────────────── */
.prova {
  background: var(--sev-fundo);
}

.prova__inner {
  max-width: var(--sev-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.prova__header {
  margin-bottom: 28px;
}

.prova__header h2 {
  margin: 0 0 8px;
}

.prova__note {
  margin: 0;
  font-size: var(--sev-fs-body);
  font-weight: var(--sev-font-weight-a);
  color: var(--sev-barro);
}

/* ─── Closing CTA (black / dark) ────────────────────────────────────────────── */
.cta-close {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-close__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-close__inner h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: var(--sev-font-weight-b);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta-close__intro {
  margin: 0;
  font-size: var(--sev-fs-body);
  color: var(--sev-barro);
  line-height: 1.6;
  max-width: 32rem;
}

.btn--on-dark {
  background: var(--sev-fundo);
  color: var(--sev-tinta);
}

.btn--on-dark:hover,
.btn--on-dark:focus {
  background: var(--sev-brasa);
  color: var(--sev-fundo);
}

.cta-close__email {
  font-size: 1rem;
  font-weight: var(--sev-font-weight-c);
  color: var(--sev-barro);
  border-bottom: 1px solid rgba(176, 160, 136, 0.5);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cta-close__email:hover,
.cta-close__email:focus {
  color: var(--sev-fundo);
  border-bottom-color: var(--sev-brasa);
}

/* ─── Responsive: narrative sections ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .especialista__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .especialista__stage {
    min-height: 360px;
  }

  .camada {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .camada__desc {
    text-align: left;
  }
}

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

@media (max-width: 768px) {
  .problema__statement {
    font-size: 1.05rem;
  }

  .especialista__stage {
    order: -1;
    min-height: 320px;
  }
}

/* ═══ Design system: Wonderful-grade foundation (Terra) ═══════════════════════ */
/* Reusable layer only. Section-level application happens in later phases.        */

/* ─── Display type utility (big headline scale) ─────────────────────────────── */
.display {
  font-size: var(--sev-fs-display);
  font-weight: var(--sev-font-weight-b);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Large body / lead copy utility (~17-20px) */
.text-lead {
  font-size: var(--sev-fs-body);
  line-height: 1.6;
}

/* ─── Full-bleed section system (light / dark pairing) ──────────────────────── */
/* Full-bleed helper: break an element out to the viewport edges. */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.section--light {
  background: var(--sev-fundo);
  color: var(--sev-tinta);
  padding-block: var(--sev-section-pad);
}

.section--dark {
  background: var(--sev-tinta);
  color: var(--sev-fundo);
  padding-block: var(--sev-section-pad);
}

/* Headings and paragraphs inherit the pairing text color inside the modifiers. */
.section--light :is(h1, h2, h3, p),
.section--dark :is(h1, h2, h3, p) {
  color: inherit;
}

/* Generous vertical rhythm on large screens. */
@media (min-width: 1024px) {
  .section--light,
  .section--dark {
    padding-block: var(--sev-section-pad-lg);
  }
}

/* ─── Capsule / pill geometry (shared interactive-element language) ─────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--sev-radius-pill);
  font-size: 0.9375rem;
  font-weight: var(--sev-font-weight-c);
  line-height: 1;
}

/* ─── Reveal utility: fade + rise (no blur; cheaper than blur-to-focus) ─────── */
/* Progressive enhancement: the hidden state applies ONLY when <html> has        */
/* the `js` class (set by assets/app.js). With JS off or IntersectionObserver     */
/* unsupported, `.reveal` elements are never hidden, so content reads fully.       */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--sev-duration-reveal) var(--sev-ease-emphasized),
    transform var(--sev-duration-reveal) var(--sev-ease-emphasized);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Progressive text-reveal variant: dim statement sharpens to full contrast. */
.js .reveal-text {
  opacity: 0.5;
  color: var(--sev-barro);
  transition:
    opacity var(--sev-duration-reveal-text) var(--sev-ease-emphasized),
    color var(--sev-duration-reveal-text) var(--sev-ease-emphasized);
}

.js .reveal-text.is-visible {
  opacity: 1;
  color: inherit;
}

/* Narrative: muted eyebrow on dark statement stays secondary (overrides section--dark inherit). */
.problema.section--dark .problema__eyebrow {
  color: var(--sev-barro);
}

.entrada.section--dark .entrada__desc {
  color: var(--sev-barro);
}

.resolve.section--light .resolve__subhead {
  color: var(--sev-barro);
}

.cta-close.section--dark .cta-close__intro {
  color: var(--sev-barro);
}

.prova.section--light .prova__note {
  color: var(--sev-barro);
}

/* Respect reduced-motion: no blur/transform/opacity animation, always visible. */
@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.is-visible,
  .js .reveal-text,
  .js .reveal-text.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    color: inherit;
    transition: none;
  }
}

/* ─── Nav: longer canvas labels never wrap (canvas copy lock 2026-08-19) ────── */
.nav__links a {
  white-space: nowrap;
}

/* ─── Section eyebrow + statement (canvas copy lock 2026-08-19) ─────────────── */
.sec-eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: var(--sev-font-weight-c);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sev-brasa-profunda);
}

.section--dark .sec-eyebrow {
  color: var(--sev-brasa);
}

.sec-statement {
  margin: 0;
  font-size: var(--sev-fs-h2);
  font-weight: var(--sev-font-weight-b);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--sev-tinta);
  max-width: 46rem;
}

/* Muted tint background (implantação) */
.section--tint {
  background: rgba(176, 160, 136, 0.14);
  border-top: 1px solid rgba(176, 160, 136, 0.4);
}

/* Left-aligned variant of the resolve header (Começando) */
.resolve__header--start {
  text-align: left;
}

.resolve__header--start .sec-statement {
  margin: 12px 0 0;
}

/* ─── O que Severina faz: three-column cards ────────────────────────────────── */
.faz-grid {
  list-style: none;
  margin: 16px 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.faz-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  border-top: 3px solid var(--sev-barro);
  background: rgba(176, 160, 136, 0.12);
}

.faz-card--accent {
  border-top-color: var(--sev-brasa);
}

.faz-card__title {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: var(--sev-font-weight-c);
  color: var(--sev-tinta);
}

.faz-card__body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--sev-tinta);
}

/* ─── Anatomia do Especialista Digital: label cards ─────────────────────────── */
.anatomy-cards {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.anatomy-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--sev-barro);
  border-radius: 16px;
}

.anatomy-card__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: var(--sev-font-weight-c);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sev-tinta);
}

.anatomy-card__body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--sev-tinta);
}

/* ─── Portas de entrada: door cards ─────────────────────────────────────────── */
.door-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.door-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  border: 1px solid var(--sev-barro);
  border-radius: var(--sev-radius-card);
  background: rgba(176, 160, 136, 0.1);
}

.door-card--dark {
  border-color: var(--sev-tinta);
  background: var(--sev-tinta);
  color: var(--sev-fundo);
}

.door-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.door-card__title {
  margin: 0;
  font-size: 1.3125rem;
  font-weight: var(--sev-font-weight-c);
  color: var(--sev-tinta);
}

.door-card--dark .door-card__title {
  color: var(--sev-fundo);
}

.door-card__badge {
  font-size: 0.625rem;
  font-weight: var(--sev-font-weight-c);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sev-fundo);
  background: var(--sev-brasa);
  padding: 4px 10px;
  border-radius: var(--sev-radius-pill);
  white-space: nowrap;
}

.door-card__body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--sev-tinta);
}

.door-card--dark .door-card__body {
  color: rgba(244, 239, 231, 0.8);
}

/* ─── Como a implantação acontece: steps rail ───────────────────────────────── */
.steps-grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 18px;
  background: var(--sev-fundo);
  border: 1px solid rgba(176, 160, 136, 0.5);
  border-radius: 16px;
}

.step-card__num {
  font-size: 0.75rem;
  font-weight: var(--sev-font-weight-b);
  color: var(--sev-brasa);
}

.step-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: var(--sev-font-weight-c);
  color: var(--sev-tinta);
}

.step-card__body {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--sev-tinta);
}

/* ─── New-component responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .faz-grid,
  .door-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anatomy-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── Agendador de diagnóstico (substitui o chat; canvas copy lock 2026-08-19) ─ */
/* Uses --sev-* tokens exclusively. Progressive enhancement: hidden without JS. */

.sev-agenda {
  --_ag-bg: #1c1714;
  --_ag-fg: #f2e9de;
  --_ag-muted: var(--sev-barro);
  --_ag-border: rgba(242, 233, 222, 0.18);
  --_ag-w: min(380px, calc(100vw - 32px));

  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 900;
  font-family: var(--sev-font);
}

.sev-agenda__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 48px;
  background: var(--_ag-bg);
  color: var(--_ag-fg);
  border: 1px solid rgba(176, 160, 136, 0.25);
  border-radius: var(--sev-radius-pill);
  font-family: var(--sev-font);
  font-size: 0.875rem;
  font-weight: var(--sev-font-weight-c);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 24px rgba(34, 29, 24, 0.25);
}

.sev-agenda__trigger:hover,
.sev-agenda__trigger:focus-visible {
  background: var(--sev-brasa);
  border-color: var(--sev-brasa);
  transform: translateY(-2px);
}

.sev-agenda__trigger svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--sev-brasa);
}

.sev-agenda__trigger:hover svg,
.sev-agenda__trigger:focus-visible svg {
  color: var(--_ag-fg);
}

.sev-agenda.is-open .sev-agenda__trigger {
  display: none;
}

.sev-agenda__panel {
  display: none;
  flex-direction: column;
  width: var(--_ag-w);
  max-height: min(640px, calc(100vh - 120px));
  overflow-y: auto;
  background: var(--_ag-bg);
  border: 1px solid rgba(242, 233, 222, 0.08);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  animation: sev-agenda-rise 0.32s var(--sev-ease-emphasized) both;
}

.sev-agenda.is-open .sev-agenda__panel {
  display: flex;
}

@keyframes sev-agenda-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sev-agenda__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(242, 233, 222, 0.1);
}

.sev-agenda__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sev-agenda__brand-mark {
  display: block;
  width: 22px;
  height: 22px;
}

.sev-agenda__brand-name {
  font-size: 0.875rem;
  font-weight: var(--sev-font-weight-c);
  color: var(--_ag-fg);
}

.sev-agenda__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--_ag-border);
  border-radius: 8px;
  color: var(--_ag-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  font-family: var(--sev-font);
}

.sev-agenda__close:hover,
.sev-agenda__close:focus-visible {
  color: var(--_ag-fg);
  border-color: var(--_ag-muted);
}

.sev-agenda__close svg {
  width: 16px;
  height: 16px;
}

.sev-agenda__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 20px;
}

.sev-agenda__title {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: var(--sev-font-weight-b);
  line-height: 1.25;
  color: var(--_ag-fg);
}

.sev-agenda__intro {
  margin: 0;
  font-size: 0.84375rem;
  line-height: 1.55;
  color: var(--_ag-muted);
}

.sev-agenda__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sev-agenda__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sev-agenda__label {
  font-size: 0.6875rem;
  font-weight: var(--sev-font-weight-c);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--_ag-muted);
}

.sev-agenda__input {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--_ag-border);
  border-radius: 10px;
  background: rgba(242, 233, 222, 0.05);
  color: var(--_ag-fg);
  font-family: var(--sev-font);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.sev-agenda__input:focus {
  border-color: var(--_ag-muted);
}

.sev-agenda__submit {
  margin-top: 6px;
  min-height: 48px;
  width: 100%;
}

.sev-agenda__alt {
  font-size: 0.78125rem;
  color: var(--_ag-muted);
  text-align: center;
  transition: color 0.15s ease;
}

.sev-agenda__alt:hover,
.sev-agenda__alt:focus-visible {
  color: var(--_ag-fg);
}

/* ─── Agendador: responsive ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .sev-agenda {
    right: 8px;
    bottom: 72px;
  }

  .sev-agenda__panel {
    max-height: calc(100vh - 100px);
  }

  .sev-agenda__trigger {
    padding: 10px 18px;
    font-size: 0.8125rem;
  }
}

/* Progressive enhancement: agendador is hidden without JS */
.sev-agenda {
  display: none;
}

.js .sev-agenda {
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.36s var(--sev-ease-emphasized),
    transform 0.36s var(--sev-ease-emphasized);
}

.js .sev-agenda.sev-agenda--revealed {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .sev-agenda__panel { animation: none; }

  .js .sev-agenda {
    transition: none;
    transform: none;
  }
}
