/* Bill V2 homepage presentation, adapted to the TeamAI theme tokens. */

/* Controls and reading measure. */
.home .wp-block-button__link,
.home .wp-element-button,
.home .tai-btn-outline,
.home .tai-btn-lg,
.home .tai-btn-outline--lg,
.home .tai-header a[class*="btn"],
.home .tai-nav-anchor {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home .gl-sub,
.home .gl-lead,
.home .gl-section p:not([class]) {
  max-width: 36em;
}

.home .tai-logo-by {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.home .tai-logo-by-label,
.home .tai-logo-plus {
  color: var(--gray-600);
}

.home .tai-logo-plus {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-1px);
}

.home .tai-hero::after {
  content: none;
}

/* Bill's denser homepage rhythm. */
@media (min-width: 981px) {
  .home .gl-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .home .tai-hero {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .home .gl-section[data-section="partner-badges"] {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .home .gl-section[data-section="bottom-cta"] {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .home .gl-section .gl-head {
    margin-bottom: 26px;
  }
}

@media (max-width: 980px) {
  .home .gl-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .home .gl-section[data-section="partner-badges"] {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .home .gl-section[data-section="bottom-cta"] {
    padding-top: 52px;
    padding-bottom: 52px;
  }
}

/* Left-aligned section heads and token-based eyebrow marker. */
.home .gl-head {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.home .gl-head h2 {
  max-width: 15em;
}

.home .gl-head .gl-sub {
  margin-left: 0;
  margin-right: 0;
  max-width: 34em;
}

.home .gl-head .eyebrow {
  font-family: var(--font-teamai);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
}

.home .gl-head .eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  background: var(--teamai-yellow);
}

.home .gl-dark .gl-head .eyebrow {
  color: var(--green-300);
}

/* Figures and small labels use the existing TeamAI type family. */
.home .gl-fig {
  font-family: var(--font-teamai);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.home .gl-fig--gain {
  color: var(--green-700);
}

.home .gl-dark .gl-fig--gain {
  color: var(--green-300);
}

.home .gl-lbl {
  font-family: var(--font-teamai);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Rule-topped scope columns. */
.home .gl-col {
  display: flex;
  flex-direction: column;
}

.home .gl-col__rule {
  height: 3px;
  background: var(--ink);
  margin-bottom: 20px;
}

.home .gl-col__num {
  font-family: var(--font-teamai);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.home .gl-col h3 {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}

.home .gl-col p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--color-text-muted);
  flex-grow: 1;
}

.home .gl-colgrid {
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.home .gl-grid > * {
  min-width: 0;
}

.home .gl-compare-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.home .gl-compare-scroll:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* DRIVE methodology band. */
.home .gl-driveband {
  background: var(--surface-navy);
  color: var(--white);
  margin: 0 0 44px;
  padding: 76px 0 68px;
  box-shadow: 0 0 0 100vmax var(--surface-navy);
  clip-path: inset(0 -100vmax);
}

.home .gl-driveband h2,
.home .gl-driveband h3 {
  color: var(--white);
}

.home .gl-driveband .gl-sub {
  color: var(--blue-200);
}

.home .gl-driveband .gl-sub strong {
  color: var(--white);
}

/* Illustrative dashboard sparklines. */
.home .gl-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 52px;
  flex: 0 0 auto;
  max-width: 46%;
}

.home .gl-spark > i {
  display: block;
  width: 6px;
  transform-origin: bottom;
  animation: gl-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes gl-grow {
  from {
    transform: scaleY(0.12);
    opacity: 0.35;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .gl-spark > i {
    animation: none;
  }
}

/* Connected channel and platform list. */
.home .gl-chanlist {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
}

.home .gl-chanrow {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--blue-100);
}

.home .gl-chanlist__col > .gl-chanrow:last-child {
  border-bottom: 1px solid var(--blue-100);
}

.home .gl-chanrow__name {
  flex: 0 0 128px;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.35;
  color: var(--ink);
}

.home .gl-chanrow__desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Agents grouped by plan entitlement. */
.home .gl-agentband {
  margin-top: 44px;
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.home .gl-agentband__title {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}

.home .gl-agentband__tiers {
  font-family: var(--font-teamai);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.home .gl-agentrows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
}

.home .gl-agentrow {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--blue-100);
  color: inherit;
  text-decoration: none;
}

.home .gl-agentrow:hover .gl-agentrow__head,
.home .gl-agentrow:focus-visible .gl-agentrow__head {
  color: var(--color-primary);
}

.home .gl-agentrow__icon {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .gl-agentrow__icon img {
  display: block;
  width: 30px;
  height: 30px;
}

.home .gl-agentrow__body {
  flex: 1 1 auto;
  min-width: 0;
}

.home .gl-agentrow__role {
  display: block;
  font-family: var(--font-teamai);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.home .gl-agentrow__head {
  display: block;
  margin-top: 10px;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.home .gl-agentrow__desc {
  display: block;
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.home .gl-agents-stats {
  border-radius: 0;
  padding: 12px 34px 36px;
  margin-top: 46px;
}

.home .gl-agents-stats .tai-stat {
  align-items: flex-start;
  text-align: left;
  border-top: 1px solid color-mix(in srgb, var(--white) 16%, transparent);
  padding-top: 28px;
}

.home .gl-agents-stats .tai-stat-value {
  font-size: 38px;
  font-variant-numeric: tabular-nums;
}

.home .gl-agents-stats .tai-stat:last-child .tai-stat-value {
  color: var(--green-300);
}

/* Responsive behavior for Bill's inline grid templates. */
@media (max-width: 1180px) {
  .home .tai-logo-plus,
  .home .tai-logo-by img[alt="WebFX"] {
    display: none;
  }
}

@media (max-width: 980px) {
  .home .gl-section[data-section="scope"] .gl-grid,
  .home .gl-section[data-section="drive"] .gl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home .gl-driveband {
    padding-top: 52px;
    padding-bottom: 48px;
  }
}

@media (max-width: 860px) {
  .home .gl-chanlist,
  .home .gl-agentrows {
    grid-template-columns: 1fr;
  }

  .home .gl-chanlist__col:first-child > .gl-chanrow:last-child {
    border-bottom: 0;
  }

  .home .gl-agents-stats {
    padding: 12px 22px 30px;
  }
}

@media (max-width: 760px) {
  .home .gl-dash-split {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 620px) {
  .home .gl-section[data-section="scope"] .gl-grid,
  .home .gl-section[data-section="drive"] .gl-grid {
    grid-template-columns: 1fr !important;
  }

  .home .gl-head h2,
  .home .gl-head .gl-sub {
    max-width: none;
  }

  .home .gl-hero-proof {
    gap: 26px !important;
  }

  .home .gl-spark {
    height: 40px;
    gap: 2px;
  }

  .home .gl-spark > i {
    width: 5px;
  }
}

@media (max-width: 460px) {
  .home .gl-chanrow {
    flex-direction: column;
    gap: 3px;
  }

  .home .gl-chanrow__name {
    flex: none;
  }
}
