:root {
  --tb-vertical-bg: #f8fafc;
  --tb-vertical-bg-alt: #f1f5f9;
  --tb-vertical-surface: #ffffff;
  --tb-vertical-surface-soft: #f8fafc;
  --tb-vertical-text: #1e293b;
  --tb-vertical-muted: #475569;
  --tb-vertical-primary: #004e6c;
  --tb-vertical-accent: #f8ab00;
  --tb-vertical-accent-alt: #e59a00;
  --tb-vertical-border: rgba(0, 78, 108, 0.1);
  --tb-vertical-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tb-vertical-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tb-vertical-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tb-vertical-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tb-vertical-radius-sm: 8px;
  --tb-vertical-radius-md: 12px;
  --tb-vertical-radius-lg: 24px;
  --tb-vertical-radius-pill: 9999px;
}

.tb-vertical-page {
  font-family: 'Roboto', sans-serif;
  color: var(--tb-vertical-text);
  line-height: 1.6;
  background-color: var(--tb-vertical-bg);
  overflow-x: hidden;
}

.tb-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.tb-section {
  padding: clamp(50px, 8vw, 100px) 0;
}

.tb-section[id] {
  scroll-margin-top: 100px;
}

/* Kicker / Eyebrow */
.tb-kicker {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tb-vertical-accent);
  margin-bottom: 12px;
}

/* Hero Section */
.tb-vertical-hero {
  position: relative;
  /* Optimized top padding for tight alignment without feeling cramped */
  padding: clamp(30px, 5vw, 60px) 0 clamp(60px, 8vw, 100px);
  background: linear-gradient(135deg, #fff 0%, var(--tb-vertical-bg-alt) 100%);
  overflow: hidden;
}

.tb-vertical-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(248, 171, 0, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.tb-vertical-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tb-hero-title {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--tb-vertical-primary);
  margin: 0 0 24px;
  text-transform: uppercase;
}

.tb-hero-title span {
  color: var(--tb-vertical-accent);
  display: block;
}

.tb-hero-lede {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--tb-vertical-muted);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.tb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.tb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--tb-vertical-radius-pill);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-align: center;
}

.tb-button--primary {
  background-color: var(--tb-vertical-accent);
  color: #fff;
  box-shadow: 0 8px 15px -3px rgba(248, 171, 0, 0.3);
}

.tb-button--primary:hover {
  background-color: var(--tb-vertical-accent-alt);
  transform: translateY(-2px);
  box-shadow: 0 15px 20px -5px rgba(248, 171, 0, 0.4);
}

.tb-button--secondary {
  background-color: var(--tb-vertical-primary);
  color: #fff;
  box-shadow: 0 8px 15px -3px rgba(0, 78, 108, 0.2);
}

.tb-button--secondary:hover {
  background-color: #003a52;
  transform: translateY(-2px);
  box-shadow: 0 15px 20px -5px rgba(0, 78, 108, 0.3);
}

.tb-hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tb-hero-points li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  color: var(--tb-vertical-muted);
  font-weight: 500;
  line-height: 1.5;
}

.tb-hero-points li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--tb-vertical-accent);
}

/* Hero Media */
.tb-vertical-hero__media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tb-media-card {
  position: relative;
  border-radius: var(--tb-vertical-radius-lg);
  overflow: hidden;
  box-shadow: var(--tb-vertical-shadow-xl);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.tb-media-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tb-media-card:hover .tb-media-image {
  transform: scale(1.03);
}

.tb-media-card__caption {
  position: relative;
  padding: 24px 28px;
  background: #fff;
  color: var(--tb-vertical-text);
  border-top: 1px solid var(--tb-vertical-border);
  z-index: 2; /* Ensure it stays above scaled image */
}

.tb-media-card__eyebrow {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tb-vertical-accent);
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.05em;
}

.tb-media-card__caption p {
  margin: 0;
  font-size: 15px;
  color: var(--tb-vertical-muted);
  line-height: 1.6;
}

/* Stats */
.tb-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tb-stat-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--tb-vertical-radius-md);
  box-shadow: var(--tb-vertical-shadow-md);
  border: 1px solid var(--tb-vertical-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tb-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tb-vertical-shadow-lg);
  border-color: var(--tb-vertical-accent);
}

.tb-stat-card__label {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--tb-vertical-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.tb-stat-card__value {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--tb-vertical-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.tb-stat-card__detail {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tb-vertical-muted);
  margin-top: auto; /* Push to bottom if heights vary */
}

/* Benefits Section */
.tb-section--benefits {
  background-color: var(--tb-vertical-surface);
}

.tb-section-heading {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.tb-section-heading h2 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--tb-vertical-primary);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

.tb-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tb-benefit-card {
  background: var(--tb-vertical-bg-alt);
  padding: 36px 30px;
  border-radius: var(--tb-vertical-radius-lg);
  border: 1px solid var(--tb-vertical-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tb-benefit-card:hover {
  background: #fff;
  box-shadow: var(--tb-vertical-shadow-xl);
  transform: translateY(-6px);
  border-color: var(--tb-vertical-accent);
}

.tb-benefit-card h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--tb-vertical-primary);
  margin: 0 0 20px;
  text-transform: uppercase;
  line-height: 1.2;
}

.tb-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.tb-benefit-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--tb-vertical-muted);
  line-height: 1.5;
}

.tb-benefit-list li:last-child {
  margin-bottom: 0;
}

.tb-benefit-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 14px;
  color: var(--tb-vertical-accent);
}

/* Video / Process Section */
.tb-video-section {
  background-color: var(--tb-vertical-bg-alt);
}

.tb-video-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.tb-video-copy h2 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 900;
  color: var(--tb-vertical-primary);
  text-transform: uppercase;
  margin: 0 0 16px;
  line-height: 1.1;
}

.tb-video-copy p {
  font-size: 18px;
  color: var(--tb-vertical-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

.tb-process-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tb-process-card {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: var(--tb-vertical-radius-md);
  box-shadow: var(--tb-vertical-shadow-sm);
  transition: all 0.3s ease;
  align-items: flex-start; /* Keep number at the top if text wraps */
}

.tb-process-card:hover {
  box-shadow: var(--tb-vertical-shadow-lg);
  transform: translateX(8px);
}

.tb-process-card__step {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--tb-vertical-accent);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.tb-process-card div h4 {
  margin: 0 0 6px;
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--tb-vertical-primary);
  text-transform: uppercase;
  line-height: 1.2;
}

.tb-process-card div p {
  margin: 0;
  font-size: 15px;
  color: var(--tb-vertical-muted);
  line-height: 1.5;
}

.tb-video-card {
  position: relative;
  border-radius: var(--tb-vertical-radius-lg);
  overflow: hidden;
  box-shadow: var(--tb-vertical-shadow-xl);
  aspect-ratio: 16/9;
}

.tb-video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* CTA Section */
.tb-cta-section {
  padding-bottom: clamp(60px, 8vw, 100px);
  margin-bottom: 0;
  background-color: var(--tb-vertical-bg-alt); /* Blend with previous section */
}

.tb-cta-card {
  background: var(--tb-vertical-primary);
  border-radius: var(--tb-vertical-radius-lg); /* Floating card effect */
  padding: clamp(40px, 6vw, 60px) clamp(30px, 5vw, 60px);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--tb-vertical-shadow-xl);
}

.tb-cta-card::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.tb-cta-card__copy {
  position: relative;
  z-index: 1;
}

.tb-cta-card__copy .tb-kicker {
  color: var(--tb-vertical-accent);
}

.tb-cta-card__copy h2 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  margin: 0 0 16px;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
}

.tb-cta-card__copy p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0;
  line-height: 1.5;
}

.tb-cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.tb-cta-card .tb-button--primary {
  background-color: var(--tb-vertical-accent);
  color: #fff;
  box-shadow: none;
}

.tb-cta-card .tb-button--primary:hover {
  background-color: var(--tb-vertical-accent-alt);
}

.tb-cta-card .tb-button--secondary {
  background-color: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: none;
}

.tb-cta-card .tb-button--secondary:hover {
  background-color: #fff;
  color: var(--tb-vertical-primary);
  border-color: #fff;
}

/* Animations */
.tb-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.2, 1, 0.3, 1), transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.tb-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .tb-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive fixes */
@media (max-width: 1100px) {
  .tb-vertical-hero__grid {
    gap: 40px;
  }
  .tb-benefit-grid {
    gap: 20px;
  }
  .tb-benefit-card {
    padding: 30px 24px;
  }
}

@media (max-width: 1024px) {
  .tb-vertical-hero {
    padding-top: 40px;
  }
  .tb-vertical-hero__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .tb-vertical-hero__media {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
  }

  .tb-video-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tb-benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tb-cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .tb-cta-card__copy p {
    margin: 0 auto;
  }
  
  .tb-cta-card__actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .tb-vertical-hero {
    padding-top: 30px;
  }
  
  .tb-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tb-button {
    width: 100%;
  }

  .tb-benefit-grid {
    grid-template-columns: 1fr;
  }

  .tb-stat-grid {
    grid-template-columns: 1fr;
  }

  .tb-cta-card__actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .tb-section {
    padding: 50px 0;
  }
  
  .tb-media-card__caption {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .tb-stat-grid {
    gap: 12px;
  }
  .tb-stat-card {
    padding: 16px;
  }
  .tb-benefit-card {
    padding: 24px 20px;
  }
  .tb-cta-card {
    padding: 30px 20px;
    border-radius: var(--tb-vertical-radius-md);
  }
  .tb-hero-title {
    font-size: clamp(36px, 10vw, 42px);
  }
  .tb-shell {
    width: calc(100% - 30px);
  }
}
