/* Deploy-critical layout fixes — loaded last */

/* ========== Hero: standalone section (vision overlay removed) ========== */
#hero-section.hero-layer {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  height: auto !important;
  min-height: calc(100vh - 60px) !important;
  padding-top: 60px !important;
}

/* ========== Product cards: unified page theme accent ========== */
#products-mosaic .prod-panel-qam,
#products-mosaic .prod-panel-sygnal,
#products-mosaic .prod-panel-market,
.products-mosaic .prod-panel-qam,
.products-mosaic .prod-panel-sygnal,
.products-mosaic .prod-panel-market {
  --prod-accent: #1a73e8 !important;
  --prod-accent-rgb: 26, 115, 232 !important;
}

#products-mosaic .prod-tag,
.products-mosaic .prod-tag {
  color: #1a73e8 !important;
  -webkit-text-fill-color: #1a73e8 !important;
  background: #e8f0fe !important;
  box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.24) !important;
}

/* ========== Infra stats: five equal boxes, 3+2, no outer shell ========== */
#infrastructure.infra-numbers-only .infra-full-bleed {
  padding: 0 clamp(24px, 4vw, 56px) 72px !important;
}

#infrastructure.infra-numbers-only .infra-stats,
#infrastructure .infra-stats#stats-grid,
html[data-theme="light"] #infrastructure .infra-stats {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-template-rows: auto auto !important;
  gap: 16px !important;
  width: min(100%, 1080px) !important;
  max-width: 1080px !important;
  margin: 12px auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

#infrastructure .infra-stat:nth-child(1) { grid-row: 1 !important; grid-column: 1 / 3 !important; }
#infrastructure .infra-stat:nth-child(2) { grid-row: 1 !important; grid-column: 3 / 5 !important; }
#infrastructure .infra-stat:nth-child(3) { grid-row: 1 !important; grid-column: 5 / 7 !important; }
#infrastructure .infra-stat:nth-child(4) { grid-row: 2 !important; grid-column: 2 / 4 !important; }
#infrastructure .infra-stat:nth-child(5) { grid-row: 2 !important; grid-column: 4 / 6 !important; }

#infrastructure .infra-stat,
html[data-theme="light"] #infrastructure .infra-stat {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: auto !important;
  max-width: none !important;
  min-height: 168px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 28px 18px !important;
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #dadce0 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1) !important;
  position: relative !important;
}

#infrastructure .infra-stat:before,
#infrastructure .infra-stat:after {
  content: none !important;
  display: none !important;
}

#infrastructure .infra-stat-num,
html[data-theme="light"] #infrastructure .infra-stat-num {
  display: block !important;
  font-family: "Newsreader", "Times New Roman", Georgia, serif !important;
  font-weight: 500 !important;
  font-size: clamp(40px, 4.8vw, 60px) !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
  font-variant-numeric: tabular-nums lining-nums !important;
  margin: 0 0 12px !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#infrastructure .infra-stat-label,
#infrastructure .infra-stat-sub {
  font-family: "Albert Sans", "Helvetica Neue", Helvetica, sans-serif !important;
  text-shadow: none !important;
}

#infrastructure .infra-stat-cyan .infra-stat-num { color: #1a73e8 !important; }
#infrastructure .infra-stat-green .infra-stat-num { color: #188038 !important; }
#infrastructure .infra-stat-purple .infra-stat-num { color: #9334e6 !important; }
#infrastructure .infra-stat-gold .infra-stat-num { color: #e37400 !important; }
#infrastructure .infra-stat-blue .infra-stat-num { color: #1a73e8 !important; }

@media (max-width: 900px) {
  #infrastructure.infra-numbers-only .infra-stats,
  #infrastructure .infra-stats#stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #infrastructure .infra-stat:nth-child(n) {
    grid-row: auto !important;
    grid-column: auto !important;
  }

  #infrastructure .infra-stat:nth-child(5) {
    grid-column: 1 / -1 !important;
    max-width: 50%;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  #infrastructure.infra-numbers-only .infra-stats,
  #infrastructure .infra-stats#stats-grid {
    grid-template-columns: 1fr !important;
  }

  #infrastructure .infra-stat:nth-child(5) {
    max-width: 100%;
  }
}

/* ========== Partner capability logos (TT / GHF / NOVA / etc.) ========== */
.partner-logo-capability {
  background: #ffffff !important;
}

.partner-logo-capability img {
  object-fit: contain !important;
  object-position: center !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  opacity: 1 !important;
  padding: 8px 10px !important;
  box-shadow: none !important;
}

.partner-logo-tt img,
.partner-logo-ghf img,
.partner-logo-nova img,
.partner-logo-apex img,
.partner-logo-aws img,
.partner-logo-pwc img {
  object-fit: contain !important;
  background: #ffffff !important;
  padding: 10px 12px !important;
}

/* ========== Product cards: align Key Functionalities ========== */
@media (min-width: 901px) {
  #products-mosaic {
    align-items: stretch !important;
    grid-template-rows: none !important;
    min-height: 0 !important;
  }

  #products-mosaic .prod-panel,
  #products-mosaic .prod-panel-detail {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
  }

  #products-mosaic .prod-detail-accent {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
  }

  #products-mosaic .prod-panel-detail {
    position: relative !important;
    flex: 1 1 auto !important;
  }

  #products-mosaic .prod-detail-inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  #products-mosaic .prod-title {
    flex-shrink: 0 !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.2 !important;
  }

  #products-mosaic .prod-panel-market .prod-title::after,
  #products-mosaic .prod-panel-sygnal .prod-title::after {
    content: "" !important;
    display: block !important;
    height: 1.2em !important;
  }

  #products-mosaic .prod-meta {
    min-height: 0 !important;
    flex-shrink: 0 !important;
  }

  #products-mosaic .prod-lead {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    min-height: calc(1.5em * 4) !important;
  }

  #products-mosaic .prod-cap-text {
    min-height: calc(1.5em * 3) !important;
  }

  #products-mosaic .prod-cap-heading {
    flex-shrink: 0 !important;
  }

  #products-mosaic .prod-keypoints {
    flex-shrink: 0 !important;
  }
}

/* ========== Logo: cropped text-only image mark ========== */
.logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.logo-img-text {
  display: block !important;
  height: 26px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.logo:hover .logo-img-text {
  opacity: 0.85 !important;
}

/* ========== Nav: spacing & slightly larger type ========== */
.nav-links {
  gap: clamp(20px, 2.4vw, 36px) !important;
}

.nav-links a {
  font-size: 14px !important;
  letter-spacing: 0.01em !important;
}

/* ========== Hero: prevent typed line overlapping market visual ========== */
.h1 .line2 {
  white-space: normal !important;
  display: block !important;
  margin-top: 0.12em !important;
  max-width: min(520px, 100%) !important;
}

.h1 .typed-word {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  border-right: 3px solid #1a73e8 !important;
  padding-right: 2px !important;
  animation: caret 0.8s step-end infinite !important;
}

#hero-left .h1 {
  max-width: min(600px, 100%) !important;
}

/* Vision line: display serif, larger than body copy */
#hero-left .hero-sub {
  font-family: "Newsreader", "Times New Roman", Georgia, serif !important;
  font-size: clamp(20px, 2.2vw, 26px) !important;
  /* font-weight: 400 !important; */
  /* font-style: italic !important; */
  line-height: 1.32 !important;
  letter-spacing: -0.018em !important;
  max-width: min(500px, 100%) !important;
  margin: 8px 0 36px !important;
  color: #202124 !important;
  -webkit-text-fill-color: #202124 !important;
}

#hero-left .hero-sub .text-accent {
  font-style: italic !important;
  /* font-weight: 500 !important; */
  color: #1a73e8 !important;
  -webkit-text-fill-color: #1a73e8 !important;
}

@media (max-width: 768px) {
  #hero-left .hero-sub {
    font-size: clamp(18px, 4.6vw, 22px) !important;
    margin-bottom: 28px !important;
  }
}

/* Market hero: single Quant Signal Engine view (no mode tabs) */
.market-mode-switcher[hidden],
#market-mode-switcher {
  display: none !important;
}

.market-hero-footer {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

.market-mode-copy span,
#market-mode-description {
  display: block !important;
  margin-top: 4px !important;
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #3c4043 !important;
  -webkit-text-fill-color: #3c4043 !important;
}

/* ========== Section headers: one line of space before content ========== */
.section-header {
  margin-bottom: clamp(40px, 5vw, 56px) !important;
}

.section-header .sec-h {
  margin-bottom: 0 !important;
}

.section-header + *,
.section-header + .reveal,
.section-header + .reveal-stagger,
.products-section-head + .products-bleed,
.partners-header + .partners-marquee-wrap,
.faq-section-inner > .section-header + .faq-list,
.page-section-inner > .section-header + .team-pillar,
.page-section-inner > .section-header + .infra-full-bleed,
.page-section-inner > .section-header + .gift-city-card,
.page-section-inner > .section-header + .connect-contact,
.connect-section .section-header + .gift-city-card {
  margin-top: 1.25rem !important;
}

#infrastructure .infra-full-bleed {
  margin-top: 1.25rem !important;
}

.partners-header {
  margin-bottom: 1.25rem !important;
}

.products-header {
  margin-bottom: 0 !important;
}

.products-section-head {
  padding-bottom: clamp(24px, 3vw, 36px) !important;
  max-width: 1480px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-left: clamp(20px, 3.5vw, 48px) !important;
  padding-right: clamp(20px, 3.5vw, 48px) !important;
}

.products-bleed {
  max-width: 1480px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-left: clamp(20px, 3.5vw, 48px) !important;
  padding-right: clamp(20px, 3.5vw, 48px) !important;
}

/* ========== Product cards: capped width, equal empty space between ========== */
#products-mosaic,
.products-mosaic {
  --prod-card-max: 440px;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, var(--prod-card-max))) !important;
  justify-content: center !important;
  column-gap: clamp(16px, 1.8vw, 28px) !important;
  row-gap: clamp(20px, 3vw, 28px) !important;
  min-height: 0 !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 1480px !important;
  margin-inline: auto !important;
}

@media (max-width: 900px) {
  #products-mosaic,
  .products-mosaic {
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
    column-gap: 0 !important;
    row-gap: clamp(20px, 3vw, 28px) !important;
  }
}

@media (min-width: 901px) {
  #products-mosaic .prod-panel,
  #products-mosaic .prod-panel-detail,
  .products-mosaic .prod-panel,
  .products-mosaic .prod-panel-detail {
    height: auto !important;
    min-height: 0 !important;
  }

  #products-mosaic .prod-panel,
  #products-mosaic .prod-panel-detail,
  #products-mosaic .prod-detail-inner,
  .products-mosaic .prod-panel,
  .products-mosaic .prod-panel-detail,
  .products-mosaic .prod-detail-inner {
    display: flex !important;
    flex-direction: column !important;
    grid-template-rows: unset !important;
    grid-row: unset !important;
  }

  #products-mosaic .prod-panel,
  .products-mosaic .prod-panel {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
  }

  #products-mosaic .prod-panel:hover,
  .products-mosaic .prod-panel:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(26, 115, 232, 0.35) !important;
    box-shadow: 0 4px 12px rgba(60, 64, 67, 0.12), 0 8px 24px rgba(26, 115, 232, 0.08) !important;
  }

  #products-mosaic .prod-detail-inner,
  .products-mosaic .prod-detail-inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    align-content: start !important;
  }

  #products-mosaic .prod-title,
  .products-mosaic .prod-title {
    min-height: 0 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Extra line under 1-line titles so they match QAM's 2-line title */
  #products-mosaic .prod-panel-market .prod-title::after,
  #products-mosaic .prod-panel-sygnal .prod-title::after,
  .products-mosaic .prod-panel-market .prod-title::after,
  .products-mosaic .prod-panel-sygnal .prod-title::after {
    content: "" !important;
    display: block !important;
    height: 1.2em !important;
  }

  #products-mosaic .prod-lead,
  .products-mosaic .prod-lead {
    flex: 0 0 auto !important;
    min-height: calc(1.5em * 4) !important;
    margin: 0 !important;
  }

  #products-mosaic .prod-cap-text,
  .products-mosaic .prod-cap-text {
    min-height: calc(1.5em * 3) !important;
  }

  #products-mosaic .prod-cap-heading,
  .products-mosaic .prod-cap-heading {
    margin-top: 0.5rem !important;
    padding-top: 0 !important;
    flex-shrink: 0 !important;
  }

  #products-mosaic .prod-keypoints,
  .products-mosaic .prod-keypoints {
    flex-shrink: 0 !important;
  }
}

/* ========== FAQ: IBM Plex typography (investor theme) ========== */
.faq-section,
.faq-page {
  --faq-accent: #1a73e8;
  --faq-heading: #101215;
  --faq-body: #3c4043;
}

.faq-section .sec-eye,
.faq-page .sec-eye,
.faq-hero .sec-eye {
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  color: var(--faq-accent) !important;
  -webkit-text-fill-color: var(--faq-accent) !important;
}

.faq-section .sec-eye:before,
.faq-page .sec-eye:before,
.faq-hero .sec-eye:before {
  background: var(--faq-accent) !important;
}

.faq-section .sec-h,
.faq-page .faq-title {
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 33px !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.3 !important;
  color: var(--faq-heading) !important;
  -webkit-text-fill-color: var(--faq-heading) !important;
}

.faq-section .text-accent,
.faq-page .text-accent {
  color: #1a73e8 !important;
  -webkit-text-fill-color: #1a73e8 !important;
}

.faq-section .faq-q,
.faq-section .faq-q-text,
.faq-page .faq-q,
.faq-page .faq-q-text {
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: -0.008em !important;
  line-height: 1.35 !important;
  color: var(--faq-heading) !important;
  -webkit-text-fill-color: var(--faq-heading) !important;
  transition: color 0.18s ease, font-size 0.18s ease !important;
}

.faq-section .faq-item.is-open .faq-q-text,
.faq-page .faq-item.is-open .faq-q-text {
  font-size: 17.5px !important;
  color: var(--faq-accent) !important;
  -webkit-text-fill-color: var(--faq-accent) !important;
}

.faq-section .faq-item:hover .faq-q-text,
.faq-section .faq-q:hover .faq-q-text,
.faq-page .faq-item:hover .faq-q-text,
.faq-page .faq-q:hover .faq-q-text {
  color: var(--faq-accent) !important;
  -webkit-text-fill-color: var(--faq-accent) !important;
}

.faq-section .faq-a,
.faq-page .faq-a {
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: 1.65 !important;
  color: var(--faq-body) !important;
  -webkit-text-fill-color: var(--faq-body) !important;
}

.faq-item {
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.faq-section .faq-item:hover,
.faq-page .faq-item:hover {
  border-color: rgba(26, 115, 232, 0.28) !important;
}

.faq-section .faq-item.is-open,
.faq-page .faq-item.is-open {
  border-color: rgba(26, 115, 232, 0.35) !important;
}

.faq-section .faq-q-icon,
.faq-page .faq-q-icon {
  color: #1a73e8 !important;
  border-color: rgba(26, 115, 232, 0.25) !important;
}

.faq-section .faq-q:hover .faq-q-icon,
.faq-section .faq-item:hover .faq-q-icon,
.faq-page .faq-q:hover .faq-q-icon,
.faq-page .faq-item:hover .faq-q-icon {
  color: #1a73e8 !important;
  border-color: rgba(26, 115, 232, 0.4) !important;
}

.faq-section .faq-item.is-open .faq-q-icon,
.faq-page .faq-item.is-open .faq-q-icon {
  background: rgba(26, 115, 232, 0.1) !important;
  color: #1a73e8 !important;
}

@media (max-width: 768px) {
  .faq-section .sec-h,
  .faq-page .faq-title {
    font-size: clamp(26px, 7vw, 33px) !important;
  }

  .faq-section .faq-q,
  .faq-section .faq-q-text,
  .faq-page .faq-q,
  .faq-page .faq-q-text {
    font-size: 15px !important;
  }

  .faq-section .faq-item.is-open .faq-q-text,
  .faq-page .faq-item.is-open .faq-q-text {
    font-size: 16px !important;
  }
}

/* ========== Description copy: darker secondary text site-wide ========== */
.sec-p,
.prod-lead,
.prod-cap-text,
.founder-bio,
.gift-city-copy,
.gift-city-features li,
.faq-a,
.team-pod-points li,
.infra-stat-label,
.infra-stat-sub,
.footer-legal,
.footer-legal p,
.footer-copy,
.footer-links a,
.footer-regs p,
.market-mode-copy span,
#market-mode-description,
.contact-val,
.founder-tag,
.team-pod-tags li,
.prod-flow span,
.brand-intro-tagline,
.connect-lead,
.connect-info-copy,
.connect-form-note {
  color: #0f0f0f !important;
  -webkit-text-fill-color: #0f0f0f !important;
}
