/* Self-hosted fonts */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Size-adjusted fallback fonts — eliminates CLS during font swap */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  ascent-override: 94.47%;
  descent-override: 24.13%;
  line-gap-override: 0%;
  size-adjust: 103.52%;
}
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial");
  ascent-override: 88.57%;
  descent-override: 23.56%;
  line-gap-override: 0%;
  size-adjust: 105.04%;
}

:root {
  --bg: #f8f9fa;
  --bg-elevated: rgba(255, 255, 255, 0.74);
  --bg-strong: #ffffff;
  --text: #0a1b3f;
  --text-soft: #49566f;
  --text-muted: rgba(10, 27, 63, 0.32);
  --border: rgba(10, 27, 63, 0.09);
  --border-strong: rgba(10, 27, 63, 0.18);
  --accent: #5e17eb;
  --accent-text: var(--accent);
  --accent-soft: rgba(94, 23, 235, 0.12);
  --highlight: #00e5ff;
  --success: #25d366;
  --success-soft: rgba(37, 211, 102, 0.28);
  --shadow: 0 20px 60px rgba(10, 27, 63, 0.1);
  --shadow-soft: 0 10px 24px rgba(10, 27, 63, 0.06);
  --shadow-xs: 0 2px 10px rgba(10, 27, 63, 0.05);
  --shadow-sm: 0 8px 18px rgba(10, 27, 63, 0.08);
  --shadow-accent: 0 18px 40px color-mix(in srgb, var(--accent) 24%, transparent);
  --shadow-accent-soft: 0 12px 28px color-mix(in srgb, var(--accent) 14%, transparent);
  --radius: 28px;
  --radius-sm: 18px;
  --radius-md: 22px;
  --radius-pill: 999px;
  --container: min(1180px, calc(100vw - 40px));
  --section-py: 72px;
  --card-pad: 32px;
  --font-sm: 0.85rem;
  --font-base: 0.92rem;
  --font-md: 0.95rem;
  --font-lg: 1.05rem;
  --font-xl: 1.15rem;
  --font-2xl: 1.35rem;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --line-height-tight: 1.04;
  --line-height-snug: 1.2;
  --line-height-body: 1.75;
  --line-height-relaxed: 1.82;
}

html[data-theme="dark"] {
  --bg: #071127;
  --bg-elevated: rgba(10, 27, 63, 0.74);
  --bg-strong: #0c1836;
  --text: #f8f9fa;
  --text-soft: #b7c5e0;
  --text-muted: rgba(248, 249, 250, 0.32);
  --border: rgba(248, 249, 250, 0.12);
  --border-strong: rgba(248, 249, 250, 0.22);
  --accent-text: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.13);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 12px 26px rgba(0, 0, 0, 0.2);
  --shadow-xs: 0 2px 10px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(94, 23, 235, 0.15), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(0, 229, 255, 0.14), transparent 22%),
    radial-gradient(circle at 50% 0%, rgba(94, 23, 235, 0.06), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 94%, #ffffff 6%), var(--bg));
  color: var(--text);
  font-family: "Manrope", "Manrope Fallback", sans-serif;
}

html:not([data-theme="dark"]) body {
  background:
    radial-gradient(circle at top left, rgba(94, 23, 235, 0.22), transparent 30%),
    radial-gradient(circle at 92% 6%, rgba(0, 229, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 0%, rgba(94, 23, 235, 0.10), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 90%, #e8e0ff 10%), var(--bg));
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.button:focus-visible,
.button-ghost:focus-visible,
.nav-insights-link:focus-visible,
.floating-whatsapp:focus-visible {
  outline-offset: 4px;
  border-radius: var(--radius-pill);
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.logo {
  height: 46px;
  width: auto;
}

.logo-dark,
html[data-theme="dark"] .logo-light {
  display: none;
}

html[data-theme="dark"] .logo-dark {
  display: block;
}

.primary-nav,
.primary-nav ul,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-insights-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--bg-strong)), color-mix(in srgb, var(--bg-soft) 86%, transparent));
  color: var(--text);
  font-size: var(--font-base);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.nav-actions-divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--border-strong);
  vertical-align: middle;
}

.nav-insights-link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  box-shadow: var(--shadow);
}

.primary-nav {
  justify-content: center;
}

.primary-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav li {
  position: relative;
}

.nav-mobile-insights {
  display: none;
}

.primary-nav li > a {
  position: relative;
  color: var(--text-soft);
  font-size: var(--font-md);
  font-weight: var(--font-weight-semibold);
  transition: color 180ms ease;
  padding-bottom: 3px;
}

.primary-nav li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  transition: width 200ms ease;
}

.primary-nav li > a:hover {
  color: var(--text);
}

.primary-nav li > a:hover::after {
  width: 100%;
}

.primary-nav li:hover > a,
.primary-nav li.active > a {
  color: var(--text);
}

.primary-nav li.active > a::after {
  width: 100%;
}

.has-mega:hover .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 18px);
  width: min(920px, 82vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 180ms ease;
}

.mega-column {
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  border: 1px solid var(--border);
}

.mega-title {
  display: inline-block;
  font-family: "Space Grotesk", "Space Grotesk Fallback", sans-serif;
  font-weight: var(--font-weight-bold);
  margin-bottom: 8px;
}

.mega-column p,
.mega-column li a {
  color: var(--text-soft);
  font-size: var(--font-base);
}

.mega-column ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.button,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-bold);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, var(--highlight)));
  color: white;
  box-shadow: var(--shadow-accent);
}

.button-ghost {
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg-strong) 78%, transparent);
  color: var(--accent-text);
  box-shadow: none;
  filter: none;
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
}

.button-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.button-icon-whatsapp {
  width: 17px;
  height: 17px;
  color: currentColor;
  filter: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
  opacity: 1;
}

.button:hover,
.button-ghost:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.button:active,
.button-ghost:active {
  transform: translateY(0) scale(0.98);
  transition: transform 80ms ease;
}

.button:disabled,
.button-ghost:disabled,
.button[aria-disabled="true"],
.button-ghost[aria-disabled="true"] {
  opacity: 0.46;
  pointer-events: none;
  box-shadow: none;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border-strong));
  filter: none;
}

.theme-toggle,
.menu-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.theme-toggle:hover {
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border-color: var(--border);
  box-shadow: none;
}

.theme-toggle-track {
  width: 56px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--bg-strong) 86%, transparent);
  border: 1px solid var(--border);
}

.theme-toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--highlight));
  transition: transform 180ms ease;
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(24px);
}

.theme-toggle-fab-shell {
  position: fixed;
  left: 3px;
  bottom: 24px;
  z-index: 60;
  transform: translateX(-20px) scale(0.88);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.theme-toggle-fab-shell.is-visible {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.theme-toggle-fab {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.theme-toggle-fab:hover,
.theme-toggle-fab:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.theme-toggle-fab .theme-toggle-track {
  transform: rotate(90deg);
}

.theme-toggle-fab:hover .theme-toggle-track,
.theme-toggle-fab:focus-visible .theme-toggle-track {
  box-shadow: var(--shadow-sm);
}

.nav-theme-toggle {
  display: none;
}

@keyframes theme-toggle-breathe {
  0%, 100% {
    box-shadow: var(--shadow-sm);
  }
  50% {
    box-shadow: var(--shadow-accent-soft);
  }
}

.hero,
.section {
  padding: var(--section-py) 0;
}

.hero {
  padding-top: 92px;
}

.hero-home {
  padding-bottom: 52px;
}

.hero-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 36px;
  align-items: start;
}

.hero-home-copy {
  max-width: 760px;
}

.hero-home-copy h1 {
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 75%, color-mix(in srgb, var(--highlight) 60%, var(--accent)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme="dark"] .hero-home-copy h1 {
  background: linear-gradient(135deg, var(--text) 20%, color-mix(in srgb, var(--accent) 80%, var(--highlight)) 70%, var(--highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-home-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.hero-home-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hero-home-note {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-strong) 88%, transparent), color-mix(in srgb, var(--accent-soft) 58%, transparent));
  box-shadow: var(--shadow-soft);
}

.hero-home-note p {
  margin: 16px 0 0;
  color: var(--text-soft);
  line-height: 1.72;
}

.hero-home-note ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.hero-home-note li {
  margin-top: 10px;
  color: var(--text-soft);
}

.hero-grid,
.section-grid,
.contact-layout,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
}

.hero-grid-solo {
  grid-template-columns: 1fr;
  text-align: center;
}

.hero-grid-solo h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-grid-solo .lead {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-grid-solo .hero-actions {
  justify-content: center;
}

.hero-grid-solo .eyebrow {
  margin-bottom: 20px;
}

.eyebrow,
.section-label,
.pill,
.timeline-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent-text) 28%, transparent);
  color: var(--accent-text);
  font-size: var(--font-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.01em;
}

.cta-band .section-label {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, var(--accent-soft)), color-mix(in srgb, var(--highlight) 10%, transparent) 72%, transparent 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Space Grotesk Fallback", sans-serif;
  line-height: var(--line-height-tight);
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: var(--font-2xl);
  letter-spacing: -0.03em;
}

.lead,
.section-copy,
.info-card p,
.stack-card p,
.feature-card p,
.contact-sidebar p,
.hero-signal p,
.site-footer p,
.site-footer li,
.timeline-card p,
.mega-column p {
  color: var(--text-soft);
  line-height: var(--line-height-body);
}

.lead {
  max-width: 62ch;
  margin: 22px 0 0;
  font-size: 1.12rem;
  line-height: 1.82;
}

.section-copy,
.info-card p,
.stack-card p,
.feature-card p,
.timeline-card p,
.context-card p {
  margin-top: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-panel,
.info-card,
.feature-card,
.metric-card,
.stack-card,
.timeline-card,
.cta-band,
.contact-sidebar article {
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--bg-elevated) 96%, transparent),
      color-mix(in srgb, var(--accent-soft) 18%, var(--bg-elevated)));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  padding: 28px 30px;
}

.hero-panel-context {
  display: grid;
  gap: 18px;
  align-content: start;
}

/* Hero panel por tipo de página */
.hero-panel-about {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--bg-elevated)), color-mix(in srgb, var(--bg-elevated) 92%, transparent));
}

.hero-panel-conversion {
  border-color: color-mix(in srgb, var(--highlight) 30%, var(--border));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--highlight) 8%, var(--bg-elevated)), color-mix(in srgb, var(--bg-elevated) 94%, transparent));
}

.hero-panel-editorial {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent-soft) 80%, transparent), color-mix(in srgb, var(--bg-elevated) 92%, transparent));
}

.hero-panel-solution {
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, var(--bg-elevated)), color-mix(in srgb, var(--highlight) 4%, var(--bg-elevated)));
}

.hero-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-soft);
  line-height: 1.6;
}

.hero-breadcrumbs a {
  color: var(--text-soft);
}

.hero-breadcrumbs strong {
  color: var(--text);
}

.hero-context-grid {
  display: grid;
  gap: 12px;
}

.context-card {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-strong) 86%, transparent), color-mix(in srgb, var(--accent-soft) 54%, transparent));
}

.context-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.context-card strong {
  display: block;
  font-family: "Space Grotesk", "Space Grotesk Fallback", sans-serif;
  font-size: var(--font-xl);
  line-height: 1.2;
}

.context-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.72;
}

.hero-panel-grid,
.card-grid {
  display: grid;
  gap: 18px;
}

.image-placeholder {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg-strong) 84%, transparent);
}

.image-placeholder.has-asset {
  padding: 0;
  border: 0;
  background: transparent;
}

.image-placeholder-visual {
  display: grid;
  place-items: center;
  min-height: 280px;
  border-radius: 18px;
  border: 1px dashed var(--border-strong);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 80%, transparent), color-mix(in srgb, var(--highlight) 10%, transparent));
  color: var(--text-soft);
  font-weight: var(--font-weight-bold);
  overflow: hidden;
}

.image-placeholder.has-asset .image-placeholder-visual {
  min-height: 420px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.image-placeholder-photo {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-placeholder p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.section-media {
  padding-top: 18px;
}

.media-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 26px;
  align-items: center;
}

.media-showcase:has(.image-placeholder.has-asset):not(:has(.media-showcase-copy)) {
  grid-template-columns: 1fr;
}

.media-showcase-copy {
  display: grid;
  gap: 16px;
}

.media-showcase-copy h2 {
  max-width: 14ch;
}

.media-showcase-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.78;
}

.media-caption {
  padding-top: 6px;
  border-top: 1px solid var(--border);
  font-size: var(--font-md);
}

.media-caption:empty {
  display: none;
}

.media-showcase-visual .image-placeholder {
  margin-top: 0;
}

.media-showcase-visual .image-placeholder.has-asset .image-placeholder-visual {
  min-height: 340px;
}

.media-showcase-visual .image-placeholder-photo {
  aspect-ratio: 16 / 10;
}

.media-showcase-visual img[src="/assets/webp/clepian-automacao-de-processos-operacao-digital.webp"] {
  object-position: 38% center;
}

.image-specs {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.image-specs li {
  margin-top: 8px;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.editorial-sidekick {
  display: grid;
  gap: 18px;
}

.editorial-feature {
  min-height: 100%;
}

.statement-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.statement-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 68%);
}

.statement-card-primary {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg-strong) 88%, transparent), color-mix(in srgb, var(--accent-soft) 70%, transparent));
}

.statement-card-accent {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--bg-strong)), color-mix(in srgb, var(--highlight) 8%, var(--bg-strong)));
}

.statement-card h2,
.statement-card h3 {
  margin-top: 14px;
}

.statement-card p {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.editorial-card {
  position: relative;
  padding-top: 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-heading h2 {
  margin: 0;
}

.section-symbol {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 74%, transparent), color-mix(in srgb, var(--bg-strong) 92%, transparent));
  color: var(--accent-text);
  font-family: "Space Grotesk", "Space Grotesk Fallback", sans-serif;
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

.editorial-card-strong {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 70%, transparent), color-mix(in srgb, var(--bg-elevated) 92%, transparent));
}

.editorial-index {
  display: none;
  position: absolute;
  top: 24px;
  left: 26px;
  font-family: "Space Grotesk", "Space Grotesk Fallback", sans-serif;
  font-size: var(--font-md);
  font-weight: var(--font-weight-bold);
  color: var(--accent-text);
  line-height: 1;
}

.emphasis-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg-elevated)), color-mix(in srgb, var(--highlight) 6%, var(--bg-elevated)));
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-strip-hero {
  justify-content: center;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--bg-strong) 88%, transparent);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: var(--font-weight-bold);
  box-shadow: var(--shadow-soft);
}

/* ── Client Marquee ─────────────────────────────────────────────────────── */

.client-marquee-section {
  padding-block: 80px;
  overflow: hidden;
}

.client-marquee-intro {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}

.client-marquee-intro h2 {
  max-width: none;
}

.client-marquee-intro p {
  max-width: 54ch;
  margin: 0;
  color: var(--text-soft);
}

.client-marquee-wrap {
  display: grid;
  gap: 14px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.client-marquee-row {
  overflow: hidden;
}

.client-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marqueeLeft 36s linear infinite;
}

.client-marquee-row[data-dir="right"] .client-marquee-track {
  animation-direction: reverse;
}

@media (prefers-reduced-motion: reduce) {
  .client-marquee-track {
    animation: none;
  }
}

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-logo-card {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 178px;
  height: 92px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #cdd8ec;
  border-color: rgba(255, 255, 255, 0.25);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.client-marquee-row:hover .client-marquee-track {
  animation-play-state: paused;
}

.client-logo-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 14%, transparent);
}

html:not([data-theme="dark"]) .client-logo-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-xs);
}

html[data-theme="dark"] .client-logo-card {
  border-color: rgba(255, 255, 255, 0.18);
}

html:not([data-theme="dark"]) .client-logo-card:hover {
  box-shadow:
    0 10px 28px color-mix(in srgb, var(--accent) 14%, transparent),
    var(--shadow-xs);
}

.client-logo-image {
  display: block;
  max-width: 100%;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.82;
  transition: opacity 200ms ease;
}

.client-logo-card:hover .client-logo-image {
  opacity: 1;
}

@media (max-width: 768px) {
  .client-marquee-section {
    padding-block: 56px;
  }

  .client-marquee-intro {
    padding-inline: 20px;
    margin-bottom: 36px;
  }

  .client-logo-card {
    width: 150px;
    height: 80px;
  }

  .client-marquee-track {
    gap: 12px;
    animation-duration: 28s;
  }
}

.home-proof-section {
  position: relative;
  padding-top: 28px;
}

.home-proof-shell {
  display: grid;
  gap: 20px;
}

.home-proof-shell .section-media {
  padding: 0;
}

.home-proof-shell .media-showcase {
  gap: 22px;
}

.about-proof-section {
  padding-top: 24px;
}

.about-proof-shell {
  gap: 24px;
}

.cases-proof-section {
  padding-top: 24px;
}

.cases-proof-shell {
  gap: 24px;
}

.about-editorial-hero {
  gap: 28px;
  align-items: stretch;
}

.about-editorial-hero .statement-card,
.about-editorial-hero .info-card {
  min-height: 100%;
}

.about-editorial-hero .info-card {
  padding: 38px;
}

.cases-proof-shell .editorial-hero {
  gap: 28px;
  align-items: stretch;
}

.cases-proof-shell .editorial-sidekick {
  align-content: stretch;
}

.cases-proof-shell .editorial-sidekick .info-card {
  min-height: 100%;
  padding: 42px;
}

.cases-proof-shell .editorial-sidekick .info-card h3 {
  margin-top: 18px;
  font-size: clamp(1.45rem, 1.65vw, 1.82rem);
  line-height: 1.12;
  max-width: none;
}

.cases-proof-shell .editorial-sidekick .info-card p {
  margin-top: 18px;
  line-height: 1.82;
  max-width: none;
}

.cases-proof-shell .editorial-feature {
  min-height: 100%;
}

.cases-portfolio-section {
  padding-top: 40px;
}

.cases-portfolio-intro {
  row-gap: 26px;
  margin-bottom: 34px;
}

.cases-portfolio-intro h2 {
  margin-top: 20px;
}

.cases-portfolio-intro .section-copy {
  margin-top: 8px;
}

.case-study-grid {
  align-items: stretch;
  margin-top: 0;
}

.case-study-card {
  display: grid;
  gap: 16px;
  align-content: start;
  overflow: hidden;
}

.case-study-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, var(--bg-soft) 90%, white 10%);
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}

.case-study-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 320ms ease;
}

.case-study-card:hover .case-study-image {
  transform: scale(1.02);
}

.case-study-top {
  display: grid;
  gap: 10px;
}

.case-study-domain {
  color: var(--text-soft);
  font-size: var(--font-base);
  line-height: 1.5;
  word-break: break-word;
}

.case-study-card h3 {
  max-width: none;
  font-size: clamp(1.3rem, 1.5vw, 1.6rem);
  line-height: 1.15;
}

.case-study-card p {
  margin: 0;
  line-height: 1.7;
}

.case-study-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 4px;
}

.insights-access-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.insights-access-card p strong {
  color: var(--text);
}

.insights-proof-section {
  padding-top: 24px;
}

/* Portal insights section */
.insights-portal-section {
  padding-top: var(--section-gap, 80px);
  padding-bottom: var(--section-gap, 80px);
}

.insights-portal-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
  padding: 72px 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 12%, var(--bg-elevated)),
    color-mix(in srgb, var(--highlight) 8%, var(--bg-elevated))
  );
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  position: relative;
  overflow: hidden;
}

.insights-portal-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%,
    color-mix(in srgb, var(--accent) 8%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.insights-portal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insights-portal-label {
  margin-bottom: 16px;
}

.insights-portal-title {
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: 16px;
}

.insights-portal-desc {
  color: var(--text-soft);
  font-size: var(--font-md);
  line-height: 1.65;
  max-width: 46ch;
  margin-bottom: 24px;
}

.insights-portal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insights-portal-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--font-md);
  color: var(--text-soft);
  line-height: 1.5;
}

.insights-portal-features li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
}

.insights-portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.insights-portal-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 340px;
  background-image: url('/assets/webp/clepian-insights-conteudo-estrategico.webp');
  background-size: auto 130%;
  background-position: center center;
  background-repeat: no-repeat;
}

@media (max-width: 860px) {
  .insights-portal-shell {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    gap: 40px;
  }
  .insights-portal-visual {
    display: none;
  }
}

.insights-proof-shell {
  gap: 24px;
}

.insights-proof-shell .editorial-hero {
  gap: 28px;
  align-items: stretch;
}

.insights-proof-shell .editorial-sidekick {
  align-content: stretch;
}

.insights-proof-shell .editorial-sidekick .info-card {
  min-height: 100%;
  padding: 40px;
}

.insights-proof-shell .editorial-sidekick .info-card h3 {
  margin-top: 22px;
  font-size: clamp(1.55rem, 1.7vw, 1.95rem);
  line-height: 1.12;
  max-width: none;
}

.insights-proof-shell .editorial-sidekick .info-card p {
  margin-top: 20px;
  line-height: 1.78;
  max-width: none;
}

.insights-proof-shell .image-placeholder {
  background: transparent;
  border-color: transparent;
}

.insights-proof-shell .image-placeholder.has-asset .image-placeholder-visual {
  background: transparent;
  position: relative;
  overflow: hidden;
}

.insights-proof-shell .media-showcase-visual .image-placeholder-photo {
  aspect-ratio: unset;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.methodology-roadmap-shell {
  display: grid;
  gap: 28px;
}

.home-proof-grid {
  margin-top: 0;
}

.proof-card {
  position: relative;
  padding-top: 28px;
}

.proof-index {
  display: none !important;
}

.hero-panel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.info-card,
.feature-card,
.stack-card,
.timeline-card,
.contact-sidebar article {
  padding: var(--card-pad);
}

.stack-card h2,
.info-card h3,
.feature-card h2,
.feature-card h3,
.timeline-card h2 {
  max-width: 18ch;
}

.info-card,
.feature-card,
.stack-card,
.timeline-card,
.context-card,
.related-link,
.strategy-step,
.metric-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.info-card:hover,
.feature-card:hover,
.stack-card:hover,
.timeline-card:hover,
.related-link:hover,
.strategy-step:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.metric-card strong {
  display: block;
  font-family: "Space Grotesk", "Space Grotesk Fallback", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  flex: 0 0 86px;
}

.metric-card span {
  color: var(--text-soft);
  font-size: var(--font-md);
  line-height: 1.55;
}

.hero-home-metrics .metric-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  min-height: 0;
  border-radius: calc(var(--radius) - 6px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg-elevated) 96%, transparent), color-mix(in srgb, var(--accent-soft) 36%, transparent));
  border-left: 3px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.hero-home-metrics .metric-card strong {
  color: var(--accent-text);
}

.hero-signal {
  margin-top: 18px;
  padding: 22px;
  border-radius: calc(var(--radius) - 8px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
}

.hero-signal ul,
.detail-list,
.mini-list,
.site-footer ul {
  margin: 0;
  padding-left: 18px;
}

.hero-signal li,
.detail-list li,
.mini-list li,
.site-footer li {
  margin-top: 10px;
  color: var(--text-soft);
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.feature-card-home {
  position: relative;
  overflow: hidden;
}

.feature-card-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--highlight)));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0.7;
  transition: opacity 200ms ease;
}

.feature-card-home:hover::before {
  opacity: 1;
}

.feature-card-home::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  transform: translate(30%, -30%);
}

.feature-card-home h3 {
  margin-bottom: 10px;
}

.feature-card-home .text-link,
.feature-head a {
  font-weight: var(--font-weight-bold);
}

.feature-title-pill {
  min-height: 58px;
  padding: 0 24px;
  font-size: var(--font-lg);
  font-weight: var(--font-weight-extrabold);
}

.home-solution-grid {
  margin-top: 38px;
}

.home-solution-grid .feature-card {
  padding: 36px;
}

.mini-list li a {
  color: var(--text-soft);
}

.mini-list li a:hover {
  color: var(--text);
}

.card-footer-link {
  margin-top: 28px;
}

.stack-layout,
.timeline {
  display: grid;
  gap: 18px;
}

.roadmap-shell {
  display: grid;
  gap: 30px;
}

.roadmap-intro {
  align-items: end;
}

.roadmap-intro .section-label {
  margin-bottom: 18px;
}

.roadmap-timeline {
  position: relative;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 18px 0 0;
  align-items: start;
}

.roadmap-card {
  position: relative;
  z-index: 1;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  width: min(100%, 780px);
}

.roadmap-card:nth-child(odd) {
  justify-self: start;
  padding-left: 112px;
}

.roadmap-card:nth-child(even) {
  justify-self: end;
  padding-right: 112px;
}

.roadmap-node {
  position: relative;
  z-index: 1;
  position: absolute;
  top: 28px;
  width: 48px;
  height: 48px;
}

.roadmap-node::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--highlight));
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--accent-soft) 72%, transparent),
    0 12px 28px color-mix(in srgb, var(--accent) 24%, transparent);
}

.roadmap-card:nth-child(odd) .roadmap-node {
  left: 30px;
}

.roadmap-card:nth-child(even) .roadmap-node {
  right: 30px;
}

.roadmap-curve {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: 100%;
  width: 220px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.roadmap-curve path {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 76%, var(--highlight));
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 24%, transparent));
}

.roadmap-card-body {
  padding: 28px 30px 28px;
  min-height: 100%;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.roadmap-card:hover .roadmap-card-body {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.roadmap-card-body h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: var(--line-height-tight);
}

.roadmap-card-body p {
  margin-top: 16px;
  color: var(--text-soft);
  line-height: var(--line-height-body);
}

.roadmap-step {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  justify-content: center;
  padding: 0;
  background: transparent;
  color: white;
  font-size: var(--font-md);
  font-weight: var(--font-weight-extrabold);
}

.section-alt {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 72%, transparent), transparent);
}

.text-link {
  color: var(--accent-text);
  font-weight: var(--font-weight-extrabold);
}

.cta-shell {
  display: grid;
  gap: 0;
}

.cta-visual {
  position: relative;
  overflow: hidden;
  max-height: 240px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0;
  box-shadow: var(--shadow-soft);
}

.cta-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg-strong) 8%, transparent) 0%,
      color-mix(in srgb, var(--bg-strong) 72%, transparent) 100%),
    linear-gradient(90deg,
      color-mix(in srgb, var(--accent) 14%, transparent) 0%,
      transparent 40%,
      color-mix(in srgb, var(--highlight) 18%, transparent) 100%);
  pointer-events: none;
}

.cta-visual-image {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) contrast(1.04) brightness(0.96);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: 42px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent-soft) 40%, transparent) 0%,
      transparent 60%);
}

.cta-copy {
  display: grid;
  gap: 14px;
}

.cta-copy h2 {
  max-width: none;
  margin: 0;
}

.cta-copy p {
  max-width: none;
  margin: 0;
}

.cta-actions {
  display: grid;
  justify-items: end;
  justify-self: end;
  gap: 16px;
}

.cta-actions .button {
  min-width: 0;
}

.cta-actions .button-ghost {
  min-width: 0;
  justify-content: center;
}

.strategic-band {
  display: grid;
  gap: 24px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg-strong) 84%, transparent), color-mix(in srgb, var(--accent-soft) 74%, transparent));
  box-shadow: var(--shadow);
}

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

.solution-overview-grid {
  margin-top: 32px;
  gap: 24px;
}

.section-grid > div > .section-label {
  margin-bottom: 14px;
}

.solution-overview-grid .feature-card h2 {
  font-size: clamp(1.55rem, 2.15vw, 2rem);
  line-height: 1.14;
  max-width: 22ch;
  margin-top: 18px;
}

.solution-overview-grid .feature-card {
  padding: 30px 32px 28px;
}

.solution-card-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  margin: -6px -8px 20px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: calc(var(--radius) - 10px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-strong) 90%, transparent), color-mix(in srgb, var(--accent-soft) 65%, transparent));
}

.solution-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.solution-card-visual-fallback {
  display: grid;
  place-items: center;
}

.solution-card-visual-fallback span {
  font-family: "Space Grotesk", "Space Grotesk Fallback", sans-serif;
  font-size: var(--font-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text);
  opacity: 0.9;
}

.solution-overview-grid .section-label {
  margin-bottom: 6px;
}

.solution-overview-grid .detail-list {
  margin-top: 18px;
}

.solution-overview-grid .detail-list li {
  margin-top: 12px;
}

.solution-overview-grid .text-link {
  display: inline-flex;
  margin-top: 20px;
}

.solution-strategy-grid {
  align-items: stretch;
}

.solution-strategy-grid .stack-card {
  min-height: 100%;
}

.deliverable-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.deliverable-item {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-strong) 86%, transparent);
}

.deliverable-item h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}

.deliverable-item p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.solution-architecture-card {
  position: relative;
  padding-top: 28px;
}

.subsolution-card {
  min-height: 100%;
  padding: 0;
  overflow: hidden;
}

.subsolution-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.subsolution-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.subsolution-card:hover .subsolution-card-img img {
  transform: scale(1.04);
}

.subsolution-card h3,
.subsolution-card p,
.subsolution-card .text-link {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.subsolution-card h3 {
  padding-top: 1.5rem;
  margin-bottom: 0.5rem;
  max-width: none;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.3;
}

.subsolution-card p {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.subsolution-card .text-link {
  display: inline-block;
  padding-bottom: 1.75rem;
}

.related-band {
  display: grid;
  gap: 32px;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-strong) 88%, transparent), color-mix(in srgb, var(--accent-soft) 54%, transparent));
  box-shadow: var(--shadow);
}

.related-band h2 {
  margin-bottom: 0;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.related-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 72px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-strong) 88%, transparent);
  font-weight: var(--font-weight-bold);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  overflow: hidden;
}

.related-link-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}

.related-link-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.related-link:hover .related-link-img img {
  transform: scale(1.04);
}

.related-link span {
  display: block;
  padding: 16px 20px;
  font-size: 0.95rem;
}

.related-link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.related-link.is-current {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--bg-strong)), color-mix(in srgb, var(--highlight) 8%, var(--bg-strong)));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.floating-whatsapp {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease;
}

.floating-whatsapp.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.floating-whatsapp-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 14px 26px var(--success-soft));
}

.contact-intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.form-shell {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-elevated) 92%, transparent), color-mix(in srgb, var(--accent-soft) 48%, transparent));
}

.strategy-step {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg-strong) 86%, transparent);
}

.strategy-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-family: "Space Grotesk", "Space Grotesk Fallback", sans-serif;
  font-weight: var(--font-weight-bold);
}

.strategy-step h3 {
  margin-top: 18px;
}

.strategy-step p {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: var(--line-height-body);
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-form-two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.contact-form .field-full,
.contact-form .button,
.contact-form .form-note {
  grid-column: 1 / -1;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-weight: var(--font-weight-semibold);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-strong);
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 60%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.form-note {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--font-base);
}

.contact-support-grid .info-card {
  min-height: 100%;
}

.contact-sidebar-compact {
  display: grid;
  gap: 18px;
}

.contact-sidebar-compact .info-card {
  min-height: 100%;
}

/* ================================================
   MOBILE FAB + BOTTOM SHEET
   ================================================ */

body.mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* --- Overlay --- */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 72;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  transition: background 350ms ease, backdrop-filter 350ms ease;
}

.mobile-overlay.open {
  background: rgba(4, 10, 28, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

/* --- Bottom Sheet --- */
.mobile-sheet {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 74;
  max-height: 86vh;
  border-radius: 28px 28px 0 0;
  background: var(--bg-strong);
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.32);
  transform: translateY(110%);
  transition: transform 420ms cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-sheet.open {
  transform: translateY(0);
}

.mobile-sheet-bar {
  display: flex;
  justify-content: center;
  padding: 14px 0 2px;
  position: sticky;
  top: 0;
  background: var(--bg-strong);
  z-index: 1;
}

.mobile-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
}

.mobile-sheet-body {
  padding: 8px 20px 110px;
}

/* Nav list */
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.mobile-nav-item {
  border-radius: 16px;
  overflow: hidden;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  font-size: var(--font-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
  font-family: "Manrope", "Manrope Fallback", sans-serif;
}

.mobile-nav-link:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.mobile-nav-item.is-active > .mobile-nav-link {
  color: var(--accent-text);
  background: var(--accent-soft);
  font-weight: var(--font-weight-bold);
}

/* Staggered entrance */
.mobile-sheet.open .mobile-nav-item {
  animation: mobileNavIn 320ms ease both;
}
.mobile-sheet.open .mobile-nav-item:nth-child(1) { animation-delay: 60ms; }
.mobile-sheet.open .mobile-nav-item:nth-child(2) { animation-delay: 90ms; }
.mobile-sheet.open .mobile-nav-item:nth-child(3) { animation-delay: 115ms; }
.mobile-sheet.open .mobile-nav-item:nth-child(4) { animation-delay: 135ms; }
.mobile-sheet.open .mobile-nav-item:nth-child(5) { animation-delay: 155ms; }
.mobile-sheet.open .mobile-nav-item:nth-child(6) { animation-delay: 170ms; }
.mobile-sheet.open .mobile-nav-item:nth-child(7) { animation-delay: 185ms; }
.mobile-sheet.open .mobile-nav-item:nth-child(8) { animation-delay: 200ms; }

@keyframes mobileNavIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Chevron */
.mobile-sol-chevron {
  flex-shrink: 0;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-sol-trigger[aria-expanded="true"] .mobile-sol-chevron {
  transform: rotate(180deg);
}

/* Solutions accordion panel */
.mobile-sol-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-sol-panel > div {
  overflow: hidden;
}

.mobile-sol-panel.open {
  grid-template-rows: 1fr;
}

.mobile-sol-groups {
  display: grid;
  gap: 10px;
  padding: 8px 2px 12px;
}

.mobile-sol-group {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 72%, transparent), transparent 60%);
  overflow: hidden;
}

.mobile-sol-group-title {
  display: block;
  padding: 14px 16px 10px;
  font-family: "Space Grotesk", "Space Grotesk Fallback", sans-serif;
  font-weight: var(--font-weight-bold);
  font-size: 0.98rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color 150ms ease;
}

.mobile-sol-group-title:hover {
  color: var(--accent-text);
}

.mobile-sol-items {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.mobile-sol-items li a {
  display: block;
  padding: 9px 16px;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color 150ms ease, background 150ms ease;
}

.mobile-sol-items li a:hover {
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
}

/* Sheet footer */
.mobile-sheet-foot {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.mobile-sheet-foot .button {
  justify-content: center;
}

.theme-toggle-sheet {
  width: 100%;
  justify-content: space-between;
}

/* --- FAB --- */
.mobile-fab {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(0) scale(1);
  z-index: 76;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  font-family: "Manrope", "Manrope Fallback", sans-serif;
  font-weight: var(--font-weight-bold);
  font-size: 0.94rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 58%, var(--highlight)));
  box-shadow:
    0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent),
    0 8px 28px color-mix(in srgb, var(--accent) 46%, transparent),
    0 2px 8px rgba(0, 0, 0, 0.18);
  will-change: transform, box-shadow;
  transition:
    transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 250ms ease;
  overflow: hidden;
}

.mobile-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, color-mix(in srgb, var(--highlight) 40%, var(--accent)), var(--accent));
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.mobile-fab:hover {
  transform: translateX(-50%) translateY(-3px) scale(1);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent),
    0 14px 40px color-mix(in srgb, var(--accent) 52%, transparent),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-fab:active {
  transform: translateX(-50%) translateY(0) scale(0.95);
  transition: transform 100ms ease;
}

.mobile-fab.open {
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--accent) 16%, transparent),
    0 8px 24px color-mix(in srgb, var(--accent) 38%, transparent),
    0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-fab.open::before {
  opacity: 1;
}

/* FAB ring pulse (idle state) */
.mobile-fab-ring {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-pill);
  border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  animation: fabRingPulse 2.6s ease-in-out infinite;
  pointer-events: none;
}

.mobile-fab.open .mobile-fab-ring {
  animation: none;
  opacity: 0;
}

@keyframes fabRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.18); opacity: 0; }
}

/* FAB hamburger icon */
.mobile-fab-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.mobile-fab-lines span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease;
  transform-origin: center;
}

.mobile-fab.open .mobile-fab-lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-fab.open .mobile-fab-lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-fab.open .mobile-fab-lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Show on mobile */
@media (max-width: 960px) {
  .mobile-fab,
  .mobile-overlay,
  .mobile-sheet {
    display: block;
  }

  .mobile-fab {
    display: inline-flex;
  }

  /* Hide the old hamburger in the header since FAB replaces it */
  .nav-actions .menu-toggle {
    display: none;
  }

  /* If nav-actions only has CTA now, shrink grid gap */
  .nav-shell {
    grid-template-columns: auto 1fr auto;
  }
}

.site-footer {
  padding: 32px 0 28px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.footer-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-strong) 88%, transparent);
  box-shadow: var(--shadow-soft);
}

.footer-brand,
.footer-title {
  font-family: "Space Grotesk", "Space Grotesk Fallback", sans-serif;
  font-weight: var(--font-weight-bold);
  color: var(--text);
}

.footer-brand {
  margin: 0;
}

.footer-copy {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: var(--font-base);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-soft);
  font-weight: var(--font-weight-semibold);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

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

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

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-shell {
    grid-template-columns: auto 1fr auto;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 3;
    grid-row: 1;
  }

  .nav-actions-divider,
  .nav-insights-link {
    display: none;
  }

  .nav-actions .button.button-small {
    padding: 0 14px;
    min-height: 38px;
    font-size: 0.88rem;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    padding: 18px;
    border-radius: 26px;
    background: var(--bg-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    grid-column: 1 / -1;
  }

  .primary-nav.open {
    display: grid;
  }

  .primary-nav ul {
    display: grid;
    gap: 14px;
  }

  .nav-mobile-insights {
    display: list-item;
  }

  .nav-theme-toggle {
    display: none;
  }

  .mega-panel {
    position: static;
    width: 100%;
    margin-top: 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    grid-template-columns: 1fr;
    display: none;
  }

  .has-mega:hover .mega-panel,
  .has-mega.open .mega-panel {
    display: grid;
  }

  .hero-grid,
  .hero-home-grid,
  .section-grid,
  .media-showcase,
  .contact-layout,
  .footer-bar,
  .home-intro-grid,
  .editorial-hero,
  .editorial-grid,
  .contact-intro-band,
  .related-links,
  .three-up,
  .two-up,
  .hero-panel-grid,
  .strategic-steps,
  .deliverable-list,
  .roadmap-timeline {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-items: center;
    justify-self: center;
  }

  .cta-actions .button,
  .cta-actions .button-ghost {
    margin-inline: auto;
  }

  .contact-form-two-up {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero,
  .section {
    padding: 56px 0;
  }

  .nav-shell {
    grid-template-columns: auto auto;
  }

  .footer-bar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .hero-home-metrics .metric-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-home-metrics .metric-card strong {
    flex-basis: auto;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .roadmap-timeline {
    padding-top: 0;
  }

  .roadmap-curve {
    left: 24px;
    transform: none;
    width: 64px;
  }

  .roadmap-card,
  .roadmap-card:nth-child(odd),
  .roadmap-card:nth-child(even) {
    justify-self: stretch;
    width: 100%;
    padding-left: 86px;
    padding-right: 0;
  }

  .roadmap-node,
  .roadmap-card:nth-child(odd) .roadmap-node,
  .roadmap-card:nth-child(even) .roadmap-node {
    left: 0;
    right: auto;
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    padding: 40px 0;
  }

  h1 {
    font-size: 2.4rem;
  }

  .lead {
    font-size: 1rem;
  }

  .logo {
    height: 36px;
  }

  .container {
    width: min(100vw - 24px, 1180px);
  }

  .nav-theme-toggle .theme-toggle {
    min-height: 50px;
  }

  .hero-panel,
  .hero-home-note,
  .info-card,
  .feature-card,
  .stack-card,
  .timeline-card,
  .contact-sidebar article,
  .cta-band,
  .statement-card,
  .strategic-band,
  .strategy-step {
    padding: 20px;
  }

  .proof-card,
  .editorial-card,
  .solution-architecture-card {
    padding-top: 24px;
  }

  .proof-index,
  .editorial-index {
    top: 20px;
    left: 20px;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
  }

  .image-placeholder-visual,
  .image-placeholder.has-asset .image-placeholder-visual {
    min-height: 260px;
  }

  .media-showcase-visual .image-placeholder-photo {
    aspect-ratio: 4 / 3;
  }
}

/* ── Testimonials ──────────────────────────────────────────────────────────── */

.testimonials-section {
  background: var(--surface-alt);
}

.testimonials-grid {
  align-items: stretch;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
}

.testimonial-card blockquote {
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.25rem;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  flex: 1;
  margin: 0;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.testimonial-author strong {
  font-size: 0.875rem;
  color: var(--text);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Case study before/after ──────────────────────────────────────────────── */

.case-study-before-after {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-study-problem,
.case-study-result {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.case-study-problem {
  color: var(--text-muted);
}

.case-study-result {
  color: var(--text);
}

.case-study-result strong,
.case-study-problem strong {
  color: var(--accent-text);
  font-weight: 600;
}

/* ── Diagnostico offer badge ──────────────────────────────────────────────── */

.contact-sidebar .section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* ── Insights hub ─────────────────────────────────────────────────────────── */

.insights-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.insights-rest-grid {
  margin-top: 0;
}

.insights-featured-card {
  background: var(--surface-alt);
}

.insights-featured-meta,
.insights-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.insights-meta-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.insights-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.insights-card h3 a:hover {
  color: var(--accent-text);
}

/* ── Article body ─────────────────────────────────────────────────────────── */

.article-body-section {
  background: var(--bg);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.article-body {
  max-width: 72ch;
}

.article-intro {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-section {
  margin-bottom: 2rem;
}

.article-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.article-section p {
  color: var(--text-secondary, var(--text));
  line-height: 1.7;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-sidebar {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.article-sidebar .button {
  display: inline-block;
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .insights-rest-grid {
    grid-template-columns: 1fr;
  }
}
