/* css/sections.css — credibility, capabilities, methodology, case studies, governance, faq, lead-capture, footer */

/* Stats banner — proof-point band right after the hero. Background is a code-generated dark
   gradient + grid pattern (no photography asset is licensed for this project) built to sit
   visually consistent with the rest of the site's dark, sapphire/emerald palette. */
.stats-banner {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-16);
  background:
    radial-gradient(55% 80% at 12% 15%, rgba(37, 99, 235, 0.28), transparent 60%),
    radial-gradient(50% 70% at 88% 85%, rgba(52, 211, 153, 0.18), transparent 60%),
    linear-gradient(180deg, var(--color-obsidian-900) 75%, #0E2A6B 100%),
    var(--color-obsidian-900);
  border-top: 1px solid var(--color-border-subtle);
}
.stats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
  pointer-events: none;
}
.stats-banner__inner { position: relative; z-index: 1; }
.stats-banner__heading {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  max-width: 40rem;
}
.stats-banner__check {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-emerald-400);
  color: var(--color-emerald-400);
}
.stats-banner__check svg { width: 1.5rem; height: 1.5rem; }
.stats-banner__title { color: var(--color-text-primary); margin: 0; }

.stats-banner__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .stats-banner__grid { grid-template-columns: repeat(4, 1fr); } }
.stats-banner__value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.stats-banner__label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-2);
}

/* Discover SoftSapien — 3 card module (Why Us / Global Insights / Proven Outcomes), styled to
   match the reference layout precisely: light cards, each dominated by a large image panel,
   floating on the section's own dark background for contrast. Each image is a code-generated
   gradient in the site's own sapphire/emerald palette, standing in for stock photography (none
   is licensed for this project). */
.explore {
  position: relative;
  isolation: isolate;
  background: var(--color-bg-primary);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
/* A furling ribbon divider between Hero and this section — a thin curling wave band instead of a
   flat line or a soft glow blob, in the site's own sapphire/emerald accent. Sits behind the
   section's real content (isolation + negative z-index) so it never competes with "Discover More". */
.explore__divider {
  position: absolute;
  z-index: -1;
  top: -1px;
  left: 0;
  width: 100%;
  height: 70px;
  display: block;
}
.explore__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-6);
}
.explore__grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 768px) { .explore__grid { grid-template-columns: repeat(3, 1fr); } }

.explore-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-slate-50);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms ease-out;
}
.explore-card:hover { transform: translateY(-6px); box-shadow: 0 32px 56px rgba(0, 0, 0, 0.48); }

.explore-card__art {
  aspect-ratio: 4 / 3;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  /* Fallback gradient in the card's own color, shown only if its illustration in
     assets/brand/explore/ (set inline per-card from includes/section-explore.php) fails to load. */
  background-color: #12224F;
}

.explore-card__body { padding: var(--space-6); background: var(--color-slate-50); }
.explore-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-obsidian-900);
  margin: 0;
}
.explore-card__desc {
  color: var(--color-slate-600);
  font-size: 0.92rem;
  margin: var(--space-2) 0 0;
}
.explore-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: var(--space-4);
  color: var(--color-obsidian-900);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.explore-card__link svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; }
.explore-card__link:hover { color: var(--color-sapphire-500); }

/* Credibility marquee */
.credibility { border-bottom: 1px solid var(--color-border-subtle); }

/* Bold statement banner — code-generated dark gradient + grid (no stock photo is licensed for
   this project), replacing the old plain "trusted by" label with a real brand statement. */
.credibility__banner {
  position: relative;
  overflow: hidden;
  padding: var(--space-12) var(--space-6);
  background:
    radial-gradient(60% 90% at 20% 20%, rgba(37, 99, 235, 0.4), transparent 60%),
    radial-gradient(55% 80% at 85% 80%, rgba(52, 211, 153, 0.22), transparent 60%),
    linear-gradient(180deg, #0E2A6B 0%, #0E2A6B 15%, #0A0D14 85%);
}
.credibility__banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.credibility__statement {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  color: var(--color-text-primary);
}
.credibility__statement-accent {
  display: block;
  margin-top: var(--space-3);
  color: var(--color-emerald-400);
}
.credibility__statement-accent::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  margin: var(--space-3) auto 0;
  background: var(--color-emerald-400);
  border-radius: 2px;
}

.logo-marquee {
  padding-block: var(--space-8);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  width: max-content;
}
.logo-marquee__item {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-slate-400);
  white-space: nowrap;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.logo-marquee:hover .logo-marquee__item,
.logo-marquee:focus-within .logo-marquee__item { opacity: 1; }

/* Most client marks are dark, single-color logos meant for a light background (as exported from
   the WordPress media library) — a light card behind each one keeps every logo visible on this
   page's dark background regardless of the mark's own color, same technique as the tech-stack
   module's logo badges. */
.logo-marquee__item--image {
  height: auto;
  padding: 0.6rem 1.25rem;
  background: var(--color-slate-50);
  border-radius: var(--radius-md);
  filter: none;
  opacity: 1;
}
.logo-marquee__item--image img {
  height: 1.6rem;
  width: auto;
  object-fit: contain;
}
@media (prefers-reduced-motion: no-preference) {
  .logo-marquee__track {
    animation: marquee-scroll 32s linear infinite;
  }
  .logo-marquee:hover .logo-marquee__track,
  .logo-marquee:focus-within .logo-marquee__track { animation-play-state: paused; }
  @keyframes marquee-scroll {
    to { transform: translateX(-50%); }
  }
}
.award-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  padding-bottom: var(--space-10);
}

/* Methodology */
.methodology-timeline {
  display: grid;
  gap: var(--space-6);
  counter-reset: stage;
}
@media (min-width: 1024px) {
  .methodology-timeline { grid-template-columns: repeat(4, 1fr); }
}
.methodology-stage {
  position: relative;
  padding: var(--space-6);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  counter-increment: stage;
}
.methodology-stage::before {
  content: counter(stage, decimal-leading-zero);
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--color-sapphire-400);
  margin-bottom: var(--space-4);
  font-size: 0.9rem;
}
.methodology-stage h3 { margin-bottom: var(--space-2); }
.methodology-stage p { color: var(--color-text-muted); font-size: 0.95rem; }

/* Case studies — horizontal scroll-snap carousel */
.section-heading--with-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  text-align: left;
  max-width: none;
  margin-inline: 0;
  flex-wrap: wrap;
}
.case-study-carousel__controls { display: flex; gap: var(--space-3); flex-shrink: 0; }
.case-study-carousel__btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  font-size: 1.1rem;
  cursor: pointer;
}
.case-study-carousel__btn:hover { border-color: var(--color-sapphire-400); color: var(--color-sapphire-400); }

.case-study-track {
  display: flex;
  gap: var(--space-8);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--space-6) var(--space-3) var(--space-8);
  margin: 0 calc(var(--space-3) * -1);
  scrollbar-width: none;
  cursor: grab;
}
.case-study-track::-webkit-scrollbar { display: none; }
.case-study-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.case-study-track > .case-study-card {
  scroll-snap-align: start;
  flex: 0 0 min(340px, 85vw);
}
/* A gentle alternating tilt, purely decorative — straightens and lifts on hover. Reserved for
   this one portfolio-style section rather than the site's usual flat card treatment. */
.case-study-track > .case-study-card:nth-child(3n+1) { --tilt: -2.5deg; }
.case-study-track > .case-study-card:nth-child(3n+2) { --tilt: 2deg; }
.case-study-track > .case-study-card:nth-child(3n) { --tilt: -1.5deg; }

.case-study-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  background: var(--cs-bg);
  color: var(--cs-text);
  /* A CSS border on a rotated element rasterizes with a visibly jagged edge in most browsers —
     an outer box-shadow "ring" anti-aliases cleanly at any angle, so this is the smooth
     equivalent of the 1px outline every other card on the site gets from .card's real border. */
  border: none;
  box-shadow: 0 0 0 1px var(--cs-border);
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .case-study-card {
    transform: rotate(var(--tilt, 0deg)) translateZ(0);
    transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms ease-out;
  }
  .case-study-card:hover,
  .case-study-card:focus-within {
    transform: rotate(0deg) translateY(-8px) translateZ(0);
    box-shadow: 0 0 0 1px var(--cs-border), 0 20px 40px rgba(0, 0, 0, 0.35);
  }
}

.case-study-card__top { display: flex; align-items: center; justify-content: space-between; }
.case-study-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--cs-chip-bg);
  color: var(--cs-chip-text);
  font-size: 0.78rem;
  font-weight: 600;
}
.case-study-card__top-icon { width: 1.3rem; height: 1.3rem; color: var(--cs-accent); flex-shrink: 0; }

.case-study-card__metric {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cs-text);
}
.case-study-card dl { display: flex; flex-direction: column; font-size: 0.92rem; }
.case-study-card dl > div { padding-block: var(--space-3); border-top: 1px solid var(--cs-border); }
.case-study-card dl > div:first-child { padding-top: 0; border-top: none; }
.case-study-card dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cs-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.case-study-card dt svg { width: 0.95rem; height: 0.95rem; flex-shrink: 0; }
.case-study-card dd { margin: 0; color: var(--cs-muted); }

.case-study-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: var(--space-3);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cs-text);
}
.case-study-card__cta svg { width: 0.9rem; height: 0.9rem; }
@media (prefers-reduced-motion: no-preference) {
  .case-study-card__cta {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 200ms ease, transform 200ms ease;
  }
  .case-study-card:hover .case-study-card__cta,
  .case-study-card:focus-within .case-study-card__cta { opacity: 1; transform: translateY(0); }
}

/* Per-card color themes — a livelier, more expressive palette than the site's usual dark
   neutral, deliberately scoped to this one portfolio-style section. */
.case-study-card--sapphire {
  --cs-bg: #12224F; --cs-border: rgba(255, 255, 255, 0.12); --cs-text: #F8FAFC;
  --cs-muted: rgba(248, 250, 252, 0.72); --cs-chip-bg: rgba(255, 255, 255, 0.12);
  --cs-chip-text: #F8FAFC; --cs-accent: #7DB2FF;
}
.case-study-card--amber {
  --cs-bg: #E7A947; --cs-border: rgba(10, 13, 20, 0.12); --cs-text: #241705;
  --cs-muted: rgba(36, 23, 5, 0.75); --cs-chip-bg: rgba(10, 13, 20, 0.1);
  --cs-chip-text: #241705; --cs-accent: #8A5A0F;
}
.case-study-card--emerald {
  --cs-bg: #0E4239; --cs-border: rgba(255, 255, 255, 0.14); --cs-text: #F0FDF9;
  --cs-muted: rgba(240, 253, 249, 0.72); --cs-chip-bg: rgba(255, 255, 255, 0.12);
  --cs-chip-text: #F0FDF9; --cs-accent: #5EEAD4;
}
.case-study-card--cream {
  --cs-bg: #F2ECD8; --cs-border: rgba(10, 13, 20, 0.1); --cs-text: #24211A;
  --cs-muted: rgba(36, 33, 26, 0.72); --cs-chip-bg: rgba(10, 13, 20, 0.08);
  --cs-chip-text: #24211A; --cs-accent: #A16207;
}
.case-study-card--plum {
  --cs-bg: #3D2E66; --cs-border: rgba(255, 255, 255, 0.14); --cs-text: #F5F3FF;
  --cs-muted: rgba(245, 243, 255, 0.72); --cs-chip-bg: rgba(255, 255, 255, 0.14);
  --cs-chip-text: #F5F3FF; --cs-accent: #C4B5FD;
}

/* Technology Stack — category tabs above a badge grid. No-JS fallback shows the first category's
   panel (server-rendered with .is-active); JS just swaps which panel/tab is active. */
.tech-stack__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.tech-stack__tab {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-surface);
  color: var(--color-text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.tech-stack__tab:hover { color: var(--color-text-primary); }
.tech-stack__tab.is-active {
  border-color: var(--color-sapphire-400);
  color: var(--color-text-primary);
  background: var(--color-bg-surface-2);
}
/* The "+N" disclosure: a normal <details> flex item sitting at the end of the first tab row.
   Opening it reveals the rest of the tabs as additional wrapped rows underneath, entirely via
   native browser behavior — no JS needed for the open/close itself. */
.tech-stack__more[open] .tech-stack__tab--toggle { display: none; }
.tech-stack__tab--toggle {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  list-style: none;
}
.tech-stack__tab--toggle::-webkit-details-marker { display: none; }
.tech-stack__more-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.tech-stack__panel { display: none; }
.tech-stack__panel.is-active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .tech-stack__panel.is-active { animation: tech-stack-in 280ms ease-out; }
  @keyframes tech-stack-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.tech-stack__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  max-width: 56rem;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}
.tech-stack__badge {
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-surface);
  color: var(--color-slate-200);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: border-color 150ms ease, transform 150ms ease;
}
.tech-stack__badge--logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 8.5rem;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-slate-50);
}
.tech-stack__badge--logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-border-subtle);
}
.tech-stack__badge-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-stack__badge-icon svg,
.tech-stack__badge-icon img { width: 100%; height: 100%; object-fit: contain; }
.tech-stack__badge-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-obsidian-900);
  text-align: center;
}

.tech-stack__badge:hover {
  border-color: var(--color-emerald-400);
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

/* Why SoftSapien differentiator grid */
.differentiator-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 640px) { .differentiator-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .differentiator-grid { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq-accordion { max-width: 48rem; margin-inline: auto; display: grid; gap: var(--space-3); }
.faq-item {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  padding: var(--space-2) var(--space-6);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--color-sapphire-400); font-size: 1.25rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding-bottom: var(--space-5); color: var(--color-text-muted); }

/* Industries */
.industries-grid {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 720px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .industries-grid { grid-template-columns: repeat(3, 1fr); } }

.industry-card__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.industry-card__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.14);
  color: var(--color-sapphire-400);
}
.industry-card__icon svg { width: 1.4rem; height: 1.4rem; }
.industry-card__title { font-size: 1.15rem; margin: 0; }
.industry-card__count {
  margin: 0.2rem 0 0;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.industry-tags .badge {
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.industry-tags .badge:hover {
  border-color: var(--color-sapphire-400);
  color: var(--color-text-primary);
  background: rgba(37, 99, 235, 0.1);
}

/* Lead capture */
.lead-capture__grid {
  display: grid;
  gap: var(--space-10);
  align-items: start;
}
@media (min-width: 1024px) {
  .lead-capture__grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}
.lead-capture__form-wrap {
  max-width: 34rem;
  margin: 0 auto;
}
.lead-capture__form-wrap .nda-banner {
  margin-top: var(--space-6);
}
.proposal-builder__progress-wrap {
  position: relative;
  margin-bottom: var(--space-10);
}
.proposal-builder__progress-track,
.proposal-builder__progress-fill {
  position: absolute;
  top: 1rem;
  left: 10%;
  height: 2px;
  z-index: 0;
}
.proposal-builder__progress-track {
  right: 10%;
  background: var(--color-border-subtle);
}
.proposal-builder__progress-fill {
  width: 0%;
  background: linear-gradient(90deg, var(--color-emerald-500), var(--color-sapphire-500));
  transition: width 400ms ease;
}
.proposal-builder__progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}
.proposal-builder__progress li {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.proposal-builder__step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-surface-2);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.proposal-builder__step-num:hover:not(:disabled) { transform: scale(1.08); }
.proposal-builder__step-num:disabled { cursor: default; }
.proposal-builder__step-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.proposal-builder__progress li.is-active .proposal-builder__step-num {
  background: var(--color-sapphire-500);
  border-color: var(--color-sapphire-500);
  color: #fff;
  box-shadow: 0 0 0 4px var(--color-sapphire-glow);
}
.proposal-builder__progress li.is-active .proposal-builder__step-label { color: var(--color-text-primary); }
.proposal-builder__progress li.is-complete .proposal-builder__step-num {
  background: var(--color-emerald-500);
  border-color: var(--color-emerald-500);
  color: #fff;
}

/* Reset the browser's default fieldset/legend box — left unstyled, it draws a decorative
   groove border that clashed badly with the card, with the legend cutting into it. */
#proposal-builder fieldset.form-step {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.form-step__legend {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: 0 0 var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border-subtle);
}
.form-step__legend-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-surface-2);
  color: var(--color-sapphire-400);
}
.form-step__legend-icon svg { width: 1.2rem; height: 1.2rem; }
.form-step__legend-eyebrow {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.form-step__legend-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text-primary);
  margin-top: 0.15rem;
}

/* Validation feedback on the fields themselves, matching the contact modal's treatment. */
#proposal-builder .form-field input:focus,
#proposal-builder .form-field select:focus,
#proposal-builder .form-field textarea:focus {
  outline: none;
  border-color: var(--color-sapphire-400);
  box-shadow: 0 0 0 3px var(--color-sapphire-glow);
}
#proposal-builder .form-field input:invalid:not(:placeholder-shown),
#proposal-builder .form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #F87171;
}
#proposal-builder .form-field input:valid:not(:placeholder-shown),
#proposal-builder .form-field textarea:valid:not(:placeholder-shown) {
  border-color: var(--color-emerald-400);
}

.form-step { display: none; }
.form-step.is-active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .form-step.is-active { animation: form-step-in 320ms ease-out; }
  @keyframes form-step-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
  }
}

.form-field { margin-bottom: var(--space-5); }
.form-field label { display: block; margin-bottom: var(--space-2); color: var(--color-text-muted); font-size: 0.9rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-field textarea { resize: vertical; min-height: 6rem; }
#scope { resize: none; overflow: hidden; }
.form-field__hint {
  margin: var(--space-2) 0 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: right;
}
.form-field--check { display: flex; align-items: center; gap: var(--space-3); }
.form-field--check input { width: auto; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; }
.select-wrap__chevron {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--color-text-muted);
  pointer-events: none;
}

.form-field--toggle-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.form-field--toggle-card:hover { border-color: var(--color-sapphire-400); }
.form-field--toggle-card:has(input:checked) {
  border-color: var(--color-sapphire-400);
  background: var(--color-bg-surface-2);
}
.form-field--toggle-card input {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  accent-color: var(--color-sapphire-500);
}
.form-field--toggle-card__icon { flex-shrink: 0; font-size: 1.25rem; }
.form-field--toggle-card__title { display: block; font-weight: 600; color: var(--color-text-primary); font-size: 0.92rem; }
.form-field--toggle-card__desc { display: block; color: var(--color-text-muted); font-size: 0.82rem; margin-top: 0.15rem; }

.form-nav { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-8); }
.form-nav .cta { flex: 1; }

.form-status { margin-top: var(--space-4); font-size: 0.9rem; }
.form-status[data-state="success"] { color: var(--color-emerald-400); }
.form-status[data-state="error"] { color: #F87171; }

.nda-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  color: var(--color-slate-200);
  font-size: 0.9rem;
}
.calendar-module {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border-subtle);
}
@media (min-width: 1024px) {
  .calendar-module {
    margin-top: 0;
    padding-top: 0;
    padding-left: var(--space-12);
    border-top: none;
    border-left: 1px solid var(--color-border-subtle);
  }
}
.calendar-module__heading {
  text-align: center;
  margin-bottom: var(--space-6);
}
.calendar-embed {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  min-height: 420px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  overflow: hidden;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border-subtle);
  padding-block: var(--space-16) var(--space-8);
  padding-inline: 1.5rem;
  background: var(--color-obsidian-800);
}
.footer__grid {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.3fr repeat(4, 1fr); }
}
.footer__col h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.footer__col ul { display: grid; gap: var(--space-3); }
.footer__col a { color: var(--color-slate-200); }
.footer__col a:hover { color: var(--color-sapphire-400); }

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-slate-200);
}
.footer__social a:hover { color: var(--color-sapphire-400); border-color: var(--color-sapphire-400); }
.footer__social svg { width: 1.1rem; height: 1.1rem; }

.footer__awards {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
}
.footer__awards-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-2);
}
.footer__awards-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__awards-list img {
  height: 5.5rem;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .footer__awards-list { gap: var(--space-6); }
  .footer__awards-list img { height: 4rem; }
}

.footer__partners-list {
  align-items: center;
}
.footer__partners-list img {
  height: 1.75rem;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.75;
  transition: filter 150ms ease, opacity 150ms ease;
}
.footer__partners-list img:hover {
  filter: none;
  opacity: 1;
}
@media (max-width: 640px) {
  .footer__partners-list img { height: 1.4rem; }
}

.footer__legal-footnotes {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
}
.footer__legal-note {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 60rem;
  margin: 0 0 var(--space-4);
}
.footer__copyright {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer__payment-list img {
  filter: grayscale(1) brightness(1.6);
  opacity: 0.75;
  transition: filter 150ms ease, opacity 150ms ease;
}
.footer__payment-list img:hover {
  filter: none;
  opacity: 1;
}

.footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
address { font-style: normal; }

/* Reset for a <button> standing in for an inline <a> (opens the contact modal instead of
   navigating), so it inherits whatever link color its surrounding context already defines. */
.contact-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.contact-trigger:hover { text-decoration: underline; }
.footer__col .contact-trigger { color: var(--color-slate-200); }
.footer__col .contact-trigger:hover { color: var(--color-sapphire-400); text-decoration: none; }

/* Verified Impact telemetry — a static proof grid (replaces the old interactive ROI calculator)
   styled like a data readout: mono micro-labels, a small pulsing "live" dot, and a grid texture
   background, so it reads as a metrics dashboard rather than another plain stat list. */
.telemetry-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.telemetry-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-6);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
}
.telemetry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.telemetry-card__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.telemetry-card__live {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-emerald-400);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .telemetry-card__live { animation: telemetry-pulse 2.4s ease-out infinite; }
  @keyframes telemetry-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
  }
}
.telemetry-card__chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.telemetry-card__value {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--color-emerald-400);
  line-height: 1;
}
.telemetry-card__label {
  position: relative;
  margin-top: var(--space-2);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.telemetry-card__context {
  position: relative;
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.telemetry-card__source {
  position: relative;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-sapphire-400);
}
.telemetry-cta { text-align: center; margin-top: var(--space-8); }
.telemetry-scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: var(--color-emerald-400);
  transition: background 200ms ease, border-color 200ms ease;
}
.telemetry-scroll-cue svg { width: 1.5rem; height: 1.5rem; }
.telemetry-scroll-cue:hover { background: rgba(52, 211, 153, 0.24); border-color: rgba(52, 211, 153, 0.5); }
@media (prefers-reduced-motion: no-preference) {
  .telemetry-scroll-cue svg { animation: telemetry-bounce 1.8s ease-in-out infinite; }
  @keyframes telemetry-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
  }
}
