/**
 * Hero Section — "Revenue Operating System" 2-Column Layout
 * Left: copy + CTA | Right: interactive animation panel
 */

/* ═══════════════════════════════════════════════
   Section Shell
   ═══════════════════════════════════════════════ */

.hero-section {
  padding: 48px 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-section.tc-impact-section {
  background: #132744;
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 64px 0;
  }
}

/* Grid gap: 48px mobile, 64px at lg+ — Bootstrap col-lg-6 handles row direction */
.hero-section .row {
  --bs-gutter-x: 3rem;
  --bs-gutter-y: 3rem;
}

@media (min-width: 1024px) {
  .hero-section .row {
    --bs-gutter-x: 4rem;
    --bs-gutter-y: 4rem;
  }
}

/* Grid pattern via tc-bg-grid (set on element in HTML) */

/* Grid pattern — from Trust-clarity-redesign DESIGN_SYSTEM.md (hero overrides tc-bg-grid) */
.hero-section.tc-bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M0 32V.5H32' fill='none' stroke='%231a2d57' stroke-width='0.5'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* Dark hero: light grid so it's visible on solid dark background */
.hero-section.tc-impact-section.tc-bg-grid::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M0 32V.5H32' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3C/svg%3E");
}

/* Gradient orbs — from Trust-clarity-redesign DESIGN_SYSTEM.md */
/* Top-left accent orb: top-1/4 -left-48 w-96 h-96 bg-accent/5 blur-3xl */
.hero-section .hero-orb-accent {
  position: absolute;
  top: 25%;
  left: -192px;
  width: 384px;
  height: 384px;
  background: rgba(10, 172, 228, 0.05);
  border-radius: 50%;
  filter: blur(48px);
  -webkit-filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

/* Bottom-right primary orb: bottom-1/4 -right-48 w-96 h-96 bg-primary/5 blur-3xl */
.hero-section .hero-orb-primary {
  position: absolute;
  bottom: 25%;
  right: -192px;
  width: 384px;
  height: 384px;
  background: rgba(26, 45, 87, 0.05);
  border-radius: 50%;
  filter: blur(48px);
  -webkit-filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════
   Left Column (copy)
   ═══════════════════════════════════════════════ */

.top-lf-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
  position: relative;
  z-index: 1;
}

/* Reset legacy padding from custom.css (was 270px 200px 150px 100px). Horizontal spacing comes from .container in trustclarity-design-system.css (consistent min padding at all breakpoints). */
.top-lft-content {
  max-width: 560px;
  padding: 0 24px;
}

.top-lft-content h5 {
  /* Legacy eyebrow — hidden when tc-badge-live is used instead */
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text, #0078a8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.top-lft-content h1,
.top-lft-content h3 {
  font-family: var(--font-heading, 'Geist', sans-serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--foreground, #1a2d57);
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

@media (min-width: 1024px) {
  .top-lft-content h1,
  .top-lft-content h3 {
    font-size: 72px;
  }
}

.top-lft-content p {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--muted, #5a7a8a);
  line-height: 1.625;
  margin-bottom: 36px;
}

/* Left column child spacing (space-y-8) */
.top-lft-content > * + * {
  margin-top: 32px;
}

/* Gradient headline span */
.tc-gradient-text {
  background: linear-gradient(135deg, var(--accent, #0aace4) 0%, var(--primary, #1a2d57) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CTA button row */
.hero-cta-group {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}

/* Equal-width buttons: side by side on desktop */
.hero-cta-group .btn,
.hero-cta-group .btn-hero-outline {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

/* Stack full-width on small screens */
@media (max-width: 575.98px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-group .btn,
  .hero-cta-group .btn-hero-outline {
    width: 100%;
    flex: none;
  }
}

/* Primary CTA overrides */
.top-lft-content .btn-primary {
  background-color: var(--cta-blue, #0069d9);
  border-color: var(--cta-blue, #0069d9);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  min-height: 44px;
  padding: 10px 32px;
}

.top-lft-content .btn-primary:hover {
  background-color: var(--cta-blue-hover, #0056b3);
  border-color: var(--cta-blue-hover, #0056b3);
  transform: translateY(-2px);
  color: white;
}

/* Secondary outline CTA */
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 32px;
  min-height: 44px;
  border-radius: var(--radius, 0.375rem);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--primary, #1a2d57);
  background: transparent;
  border: 2px solid var(--border, #d4e6f0);
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-hero-outline:hover {
  border-color: var(--accent, #0aace4);
  color: var(--accent-text, #0078a8);
  background: rgba(10, 172, 228, 0.05);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-hero-outline svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-hero-outline:hover svg {
  transform: translateX(3px);
}

/* Match primary hero CTA arrow styling with secondary */
.hero-cta-group .btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 4px;
}

/* Dark hero: Register button text matches hero text (white) */
.hero-section.tc-impact-section .btn-hero-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}
.hero-section.tc-impact-section .btn-hero-outline:hover {
  color: white;
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════
   Right Column (hero animation panel)
   ═══════════════════════════════════════════════ */

.hero-animation-col {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 50%;
}

/* Desktop: align top of animation panel with "Optimize Sales" heading (below badge) */
@media (min-width: 992px) {
  .hero-animation-col {
    padding-top: 5.5rem; /* badge + gap so panel starts at heading */
  }
}

/* Below lg: show animation, stack below copy, center */
@media (max-width: 991.98px) {
  .hero-animation-col {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .top-lf-slide {
    align-items: center;
  }

  .top-lft-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    align-items: center;
    justify-content: center;
  }

  .hero-animation-col #heroAnimPanel {
    min-height: 360px;
  }
}

/* ═══════════════════════════════════════════════
   Hero Animation Panel  (.ha-*)
   ═══════════════════════════════════════════════ */

#heroAnimPanel {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

#heroAnimPanel .ha-panel-wrap {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  flex: 1;
  min-height: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
}

#heroAnimPanel .ha-panel-wrap .ha-panels {
  flex: 1;
  min-height: 0;
}

.ha-panel-wrap {
  background: #0d1e3a;
  border: 1px solid rgba(10, 172, 228, 0.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 32px 64px rgba(13, 30, 58, 0.5),
    0 0 0 1px rgba(10, 172, 228, 0.1);
  font-family: var(--font-mono, 'Courier New', monospace);
  position: relative;
}

/* Title bar */
.ha-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(10, 172, 228, 0.15);
}

.ha-title-bar .ha-dots {
  display: flex;
  gap: 6px;
}

.ha-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ha-dot--red    { background: #ff5f57; }
.ha-dot--yellow { background: #febc2e; }
.ha-dot--green  { background: #28c840; }

.ha-title-bar .ha-file-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(177, 211, 228, 0.6);
  letter-spacing: 0.05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stage indicators */
.ha-stage-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(10, 172, 228, 0.1);
}

.ha-stage-indicator {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
  color: rgba(177, 211, 228, 0.4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  cursor: default;
}

.ha-stage-indicator.ha-stage--active {
  color: #0aace4;
  background: rgba(10, 172, 228, 0.12);
  border-color: rgba(10, 172, 228, 0.35);
}

/* Progress bar */
.ha-progress-wrap {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.ha-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0aace4, #1a2d57);
  transition: none; /* updated via JS rAF */
}

/* Panel content area */
.ha-panels {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.ha-panel {
  position: absolute;
  inset: 0;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ha-panel--active {
  opacity: 1;
  pointer-events: auto;
}

/* Panel 2: header at top, magnifying glass + badges centered in remaining space */
#haPanel1 {
  display: flex;
  flex-direction: column;
}

#haPanel1 .ha-ai-header {
  flex-shrink: 0;
}

#haPanel1 .ha-ai-center-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Panel 3: center content on y-axis */
#haPanel2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ha-panel--enter {
  animation: tc-panel-enter 0.4s ease forwards;
}

.ha-panel--exit-up {
  animation: tc-panel-exit-up 0.3s ease forwards;
}

/* ── Panel 1: Spreadsheet table ── */
.ha-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.ha-table thead th {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 172, 228, 0.6);
  padding: 0 6px 8px;
  border-bottom: 1px solid rgba(10, 172, 228, 0.15);
  text-align: left;
}

.ha-table tbody tr {
  opacity: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: tc-row-fade 0.2s ease forwards;
}

.ha-table tbody td {
  padding: 7px 6px;
  color: rgba(177, 211, 228, 0.8);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.ha-table td.ha-td-sku { color: rgba(10, 172, 228, 0.9); font-weight: 600; }
.ha-table td.ha-td-status-ok { color: #28c840; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.ha-table td.ha-td-status-pending { color: #febc2e; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* Stagger animation delays for table rows */
.ha-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.ha-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.ha-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.ha-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.ha-table tbody tr:nth-child(5) { animation-delay: 0.5s; }
.ha-table tbody tr:nth-child(6) { animation-delay: 0.6s; }
.ha-table tbody tr:nth-child(7) { animation-delay: 0.7s; }
.ha-table tbody tr:nth-child(8) { animation-delay: 0.8s; }

/* ── Panel 2: AI optimization tags ── */
.ha-ai-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.ha-ai-icon {
  width: 28px;
  height: 28px;
  background: rgba(10, 172, 228, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0aace4;
  flex-shrink: 0;
}

.ha-ai-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(177, 211, 228, 0.9);
  letter-spacing: 0.04em;
}

.ha-ai-subtitle {
  font-size: 9px;
  color: rgba(177, 211, 228, 0.4);
}

.ha-scan-wrap {
  margin-bottom: 14px;
  position: relative;
  animation: tc-lens-float 3s ease-in-out infinite;
  display: flex;
  justify-content: center;
}

.ha-scan-wrap svg {
  width: 88px;
  height: 88px;
  color: #0aace4;
  opacity: 0.7;
}

.ha-tags-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.ha-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(10, 172, 228, 0.12);
  border: 1px solid rgba(10, 172, 228, 0.3);
  color: #0aace4;
  opacity: 0;
  animation: tc-tag-in 0.3s ease forwards;
}

.ha-tag:nth-child(1) { animation-delay: 0.15s; }
.ha-tag:nth-child(2) { animation-delay: 0.30s; }
.ha-tag:nth-child(3) { animation-delay: 0.45s; }
.ha-tag:nth-child(4) { animation-delay: 0.60s; }
.ha-tag:nth-child(5) { animation-delay: 0.75s; }
.ha-tag:nth-child(6) { animation-delay: 0.90s; }

/* ── Panel 3: Revenue deployment ── */
.ha-product-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(10, 172, 228, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ha-product-img {
  width: 48px;
  height: 48px;
  background: rgba(10, 172, 228, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0aace4;
}

.ha-product-img svg {
  width: 24px;
  height: 24px;
}

.ha-product-info {
  flex: 1;
  min-width: 0;
}

.ha-product-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(177, 211, 228, 0.9);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ha-product-price {
  font-size: 14px;
  font-weight: 700;
  color: #28c840;
}

.ha-buy-btn {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--cta-blue, #0069d9);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.ha-buy-btn:hover {
  background: var(--cta-blue-hover, #0056b3);
}

/* Pressed state: brief "click" feedback */
.ha-buy-btn--pressed {
  transform: scale(0.92);
}

/* After click: green to link visually to "REVENUE DEPLOYED" result */
.ha-buy-btn--clicked {
  background: #28c840;
  color: white;
  cursor: default;
}

.ha-buy-btn--clicked:hover {
  background: #28c840;
}

/* Revenue overlay (appears after buy click) */
.ha-revenue-overlay {
  background: rgba(13, 30, 58, 0.96);
  border: 1px solid rgba(40, 200, 64, 0.4);
  border-radius: 8px;
  padding: 14px 12px;
  margin-bottom: 10px;
  display: none;
  animation: tc-panel-enter 0.4s ease;
}

.ha-revenue-overlay.ha-revenue--visible {
  display: block;
}

.ha-revenue-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #28c840;
  margin-bottom: 10px;
}

.ha-revenue-amount {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.ha-revenue-metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ha-metric {
  font-size: 9px;
  color: rgba(177, 211, 228, 0.6);
}

.ha-metric strong {
  color: #0aace4;
  font-weight: 700;
}

/* Particle container */
.ha-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ha-particle {
  position: absolute;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0aace4;
  animation: tc-float-up 2.8s ease-out forwards;
  opacity: 0;
}

/* Replay button */
.ha-replay-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(10, 172, 228, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(177, 211, 228, 0.5);
  transition: all 0.2s ease;
  padding: 0;
}

.ha-replay-btn:hover {
  background: rgba(10, 172, 228, 0.12);
  border-color: rgba(10, 172, 228, 0.4);
  color: #0aace4;
}

.ha-replay-btn svg {
  width: 14px;
  height: 14px;
}

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */

@media (max-width: 767.98px) {
  .hero-section {
    padding: 80px 0;
  }

  .top-lf-slide {
    padding: 40px 0;
  }

  .top-lft-content h3 {
    font-size: 34px;
    margin-bottom: 16px;
  }

  .top-lft-content h5 {
    font-size: 12px;
  }

  .top-lft-content p {
    font-size: 15px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 60px 0;
  }

  .hero-animation-col #heroAnimPanel {
    min-height: 320px;
  }

  .top-lf-slide {
    padding: 30px 0;
  }

  .top-lft-content h3 {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .top-lft-content p {
    font-size: 14px;
    margin-bottom: 24px;
  }
}

/* Legacy: top-slider, top-rt-slide, top-slide, hero-section-wrapper removed */

/* ═══════════════════════════════════════════════
   Light-theme overrides for hero animation panel
   ═══════════════════════════════════════════════ */

.ha-panel-wrap {
  background: #ffffff !important;
  box-shadow: 0 4px 24px rgba(26, 45, 87, 0.08), 0 1px 4px rgba(26, 45, 87, 0.05) !important;
  border: 1px solid #e4edf5 !important;
}

.ha-title-bar {
  background: #f8fafc !important;
  border-bottom: 1px solid #e4edf5 !important;
}

.ha-file-title {
  color: #374151 !important;
}

.ha-stage-indicator {
  color: #6b7280 !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

.ha-stage-indicator.ha-stage--active {
  color: #0078a8 !important;
  background: rgba(10, 172, 228, 0.07) !important;
  border-color: rgba(10, 172, 228, 0.25) !important;
}

.ha-table thead th {
  color: #4b5563 !important;
  border-bottom-color: #e2e8f0 !important;
}

.ha-table tbody td {
  color: #374151 !important;
  border-bottom-color: #f1f5f9 !important;
}

.ha-ai-title {
  color: #1a2d57 !important;
}

.ha-ai-subtitle {
  color: #6b7280 !important;
}

.ha-tag {
  background: rgba(10, 172, 228, 0.08) !important;
  border: 1px solid rgba(10, 172, 228, 0.2) !important;
  color: #0078a8 !important;
}

.ha-product-card {
  background: #f8fafc !important;
  border: 1px solid #e4edf5 !important;
}

.ha-product-name {
  color: #1a2d57 !important;
}

.ha-revenue-overlay {
  background: #ffffff !important;
  border: 1px solid #22c55e !important;
}

.ha-revenue-amount {
  color: #1a2d57 !important;
}

.ha-replay-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #6b7280 !important;
}

/* ─── Hero Video Player ─── */
.hero-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #ffffff; /* Match the card look (no black letterbox bars) */
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

/* If this hero variant is rendered on a dark background, keep the letterbox area dark too. */
.hero-section.tc-impact-section .hero-video-wrap {
  background: #0d1e3a;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  object-fit: contain; /* Keep full frame (no cropping) */
  object-position: center;
}

.hero-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a2d57;
  border: none;
  cursor: pointer;
  color: #fff;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(26, 45, 87, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-video-play-btn:hover {
  background: #143961;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 24px rgba(26, 45, 87, 0.45);
}

.hero-video-play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px; /* optical center for play triangle */
}

.hero-video-play-btn.is-hidden {
  display: none;
}

/* ─── Hero Poster Image (LCP layer) ─── */
.hero-poster-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
  transition: opacity 0.6s ease;
}

.hero-poster-img--fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ─── Hero Video Progressive States ─── */
.hero-video--hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity 0.6s ease;
}

.hero-video--visible {
  opacity: 1;
}


/* ─── Focus-visible (WCAG 2.4.7) ─── */
.hero-video-play-btn:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .hero-poster-img,
  .hero-video--hidden {
    transition: none;
  }
}

/* ─── Guide Page Hero ───
   Right image box same height as left column (top-lft-content). */
.guide-hero .row {
  align-items: stretch;
}

/* Left column: stretch to fill row height so top-lft-content can match */
.guide-hero .top-lf-slide {
  height: 100%;
}

.guide-hero .top-lft-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Badge: match index hero (prevent flex stretch from changing appearance) */
.guide-hero .top-lft-content .tc-badge-live {
  align-self: flex-start;
}

/* Right column: card stretches to match left column height */
.guide-hero .row > .col-lg-6:last-child {
  align-items: stretch;
}

.tc-guide-cover-card {
  max-width: 100%;
}

.tc-guide-cover-card {
  display: flex;
  flex-direction: column;
}

/* Card stretches to fill column height (matches top-lft-content) */
.guide-hero .tc-guide-cover-card {
  flex-grow: 1;
}

.tc-guide-cover-card .card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

/* In guide-hero, card-body wraps content (no extra space) */
.guide-hero .tc-guide-cover-card .card-body {
  flex: 0 0 auto;
}

.tc-guide-cover-wrap {
  height: 100%;
  aspect-ratio: 3 / 4;
  width: auto;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius, 0.375rem);
}

/* Guide hero: wrap sizes to image (container fits content, no stretch) */
.guide-hero .tc-guide-cover-wrap {
  height: auto;
  width: 100%;
}

.tc-guide-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ─── AI Authority Line ───
   Sits below the subline — smaller and muted to establish visual hierarchy:
   Headline (big) → Subline (medium) → Authority signal (small/muted).
   Overrides the default top-lft-content > * + * spacing to reduce gap. */
.hero-authority-line {
  font-size: 14px !important;
  font-weight: 500;
  color: var(--tc-text-muted, #6b7280);
  margin-top: 12px !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-authority-line::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--tc-primary, #0ea5e9), var(--tc-accent, #38bdf8));
  border-radius: 2px;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .hero-authority-line {
    font-size: 13px !important;
  }
}

@media (max-width: 991.98px) {
  .guide-hero .row {
    align-items: center;
  }

  .tc-guide-cover-wrap {
    height: auto;
    width: 100%;
    max-height: min(380px, 50vh);
    margin-left: auto;
    margin-right: auto;
    max-width: 280px;
  }
}
