/* Landing + chrome: approximate React public marketing look */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header: translucent over hero; avoid backdrop-filter (flickers / vanishes on resize) */
.tb-shell {
  position: relative;
}

.tb-site-header {
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.52);
  color: #fff;
  /* Stable paint layer during continuous resize */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.tb-site-header--overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

.tb-site-header--sticky {
  position: sticky;
  top: 0;
}

.tb-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem; /* h-16: chrome height SSOT */
  padding: 0 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .tb-site-header__inner {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .tb-site-header__inner {
    padding: 0 2rem;
  }
}

.tb-site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
  color: #fff;
  text-decoration: none;
  /* React: text-xl font-semibold (sans, not display/serif) */
  font-family: var(--tb-font);
  font-size: 1.25rem; /* text-xl */
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.tb-site-header__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; /* h-9 w-9 */
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 999px;
  /* Circle outline so the mark reads on bright sky / dark chrome */
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(2, 6, 23, 0.35);
  background: rgba(15, 23, 42, 0.35);
}

.tb-site-header__brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.tb-site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tb-site-header__nav a {
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

@media (min-width: 640px) {
  .tb-site-header__nav a {
    padding: 0.5rem 1rem;
  }
}

.tb-site-header__nav a:hover,
.tb-site-header__nav a.is-active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Hero: grow with width; hard min height so copy never rides into the header */
:root {
  --tb-hero-chrome: 4rem;
  /* Floor ≈ the “good” short viewport: further shrink crops the photo, not the type */
  --tb-hero-min: 28rem;
  --tb-hero-max: 36rem;
  --tb-hero-height: clamp(var(--tb-hero-min), 48vw, var(--tb-hero-max));
}

@supports (height: min(1vh, 1rem)) {
  :root {
    --tb-hero-height: clamp(var(--tb-hero-min), min(48vw, 75vh), var(--tb-hero-max));
  }
}

.tb-hero {
  position: relative;
  display: flex;
  align-items: center; /* vertically center copy in the band below the header */
  height: var(--tb-hero-height);
  min-height: var(--tb-hero-min);
  max-height: var(--tb-hero-max);
  color: #f8fafc;
  overflow: hidden; /* crop photo when viewport is shorter than the floor */
  /* Reserve header strip so centering is optical (below chrome), not under it */
  padding-top: var(--tb-hero-chrome, 4rem);
  box-sizing: border-box;
}

.tb-hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.tb-hero__scrim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* Darkest under the header, eases mid-hero, darkens again at the bottom */
  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.82) 0%,
      rgba(7, 30, 48, 0.58) 18%,
      rgba(7, 30, 48, 0.42) 42%,
      rgba(7, 30, 48, 0.55) 70%,
      rgba(7, 30, 48, 0.78) 100%
    ),
    radial-gradient(ellipse 70% 50% at 20% 40%, rgba(12, 74, 110, 0.28), transparent 60%);
}

.tb-hero__glow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 78%, rgba(253, 224, 71, 0.12), transparent 28%);
}

/*
 * Inner pages: header-height strip; image fills the strip with cover so width
 * changes reflow crop immediately (matches React PublicSiteChrome compactBand).
 */
.tb-hero.tb-hero--chrome {
  display: block;
  height: 4rem;
  min-height: 4rem;
  max-height: 4rem;
  padding-top: 0;
  align-items: stretch;
  overflow: hidden;
  flex-shrink: 0;
}

.tb-hero.tb-hero--chrome .tb-hero--chrome__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tb-hero.tb-hero--chrome .tb-hero__photo,
.tb-hero.tb-hero--chrome .tb-hero__scrim,
.tb-hero.tb-hero--chrome .tb-hero__glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tb-hero.tb-hero--chrome .tb-hero__photo {
  object-fit: cover;
  object-position: center 20%;
}

.tb-hero__content {
  position: relative;
  z-index: 1;
  /* 8rem total horizontal inset → 4rem min each side (2× previous 2rem) */
  width: min(100% - 8rem, 48rem);
  margin-inline: auto;
  padding: 0.5rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  /* Optical center in the band below the header, then a touch lower */
  transform: translateY(1.25rem);
}

@media (max-width: 480px) {
  .tb-hero__content {
    /* Keep readable column on very narrow phones; still ≥2× old 1rem gutter */
    width: min(100% - 4rem, 48rem);
    transform: translateY(0.75rem);
  }
}

.tb-hero__brand {
  margin: 0;
  font-family: var(--tb-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.tb-hero__headline {
  margin: 1rem 0 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: #f1f5f9;
}

.tb-hero__subhead {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.tb-hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.tb-hero__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e0f2fe;
  text-underline-offset: 4px;
}

.tb-hero__link:hover {
  color: #fff;
}


/* Below fold: follows light/dark tokens (landing width unchanged via --wide) */
.tb-below {
  padding: 2rem 0 2.5rem;
  background: var(--tb-elevated);
  color: var(--tb-text);
}

.tb-below--faq {
  padding-top: 2rem;
}

.tb-below .tb-container,
.tb-below .tb-container--wide,
.tb-below .tb-container--content,
.tb-below .tb-container--faq {
  width: min(100% - 2rem, var(--tb-content-max, 60rem));
  padding-inline: 0.5rem;
}

@media (min-width: 640px) {
  .tb-below .tb-container,
  .tb-below .tb-container--wide,
  .tb-below .tb-container--content,
  .tb-below .tb-container--faq {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .tb-below .tb-container,
  .tb-below .tb-container--wide,
  .tb-below .tb-container--content,
  .tb-below .tb-container--faq {
    padding-inline: 2rem;
  }
}

.tb-section {
  padding: 2.5rem 0 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--tb-border);
  border-bottom: 0;
}

.tb-section:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0.5rem;
}

.tb-section--center {
  text-align: center;
}

.tb-section--disclaimer {
  border-top: 1px solid var(--tb-border);
  text-align: center;
  color: var(--tb-text-secondary);
  font-size: 0.875rem; /* text-sm floor; AA on white */
  line-height: 1.55;
}

.tb-section--disclaimer p {
  margin: 0;
}

.tb-disclosure-link {
  font: inherit;
  font-weight: 600;
  color: var(--tb-link);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tb-disclosure-link:hover {
  color: var(--tb-brand-strong);
}

.tb-disclosure-modal .tb-modal__panel {
  max-width: 32rem;
}

.tb-disclosure-modal .tb-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--tb-text-secondary);
}

.tb-disclosure-modal .tb-modal__body p {
  margin: 0;
}

/* Minimal modal chrome if marketing waitlist CSS is not loaded */
.tb-modal[hidden] {
  display: none !important;
}

.tb-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  cursor: pointer;
}

.tb-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  max-height: 90vh;
  overflow: auto;
  background: var(--tb-elevated);
  color: var(--tb-text);
  border-radius: 0.75rem;
  border: 1px solid var(--tb-border);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.2);
}

.tb-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--tb-border);
}

.tb-modal__header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tb-text);
}

.tb-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--tb-text-muted);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.tb-modal__body {
  padding: 1rem 1.15rem 1.25rem;
}

.tb-section h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tb-text);
}

.tb-section__lead {
  margin: 0.5rem auto 0;
  max-width: 40rem;
  color: var(--tb-text-secondary);
  font-size: 0.975rem;
  line-height: 1.55;
}

/* Sourced facts carousel */
.tb-facts__viewport {
  position: relative;
  margin: 1.5rem auto 0;
  max-width: 36rem;
  min-height: 11rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .tb-facts__viewport {
    min-height: 9.5rem;
  }
}

.tb-facts__track {
  display: flex;
  transition: transform 0.5s ease-out;
}

.tb-facts__slide {
  flex-shrink: 0;
  padding: 0 0.25rem;
  box-sizing: border-box;
  min-height: 11rem;
}

@media (min-width: 640px) {
  .tb-facts__slide {
    min-height: 9.5rem;
  }
}

.tb-facts__kicker {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tb-text-muted);
}

.tb-facts__stat {
  margin: 0.5rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--tb-link);
  line-height: 1.15;
}

.tb-facts__body {
  margin: 0.75rem 0 0;
  color: var(--tb-text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

.tb-facts__source {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--tb-text-muted);
  text-underline-offset: 2px;
}

.tb-facts__source:hover {
  color: var(--tb-text);
}

.tb-facts__controls {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.tb-facts__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--tb-border);
  background: var(--tb-elevated);
  color: var(--tb-text-muted);
  cursor: pointer;
}

.tb-facts__nav:hover {
  border-color: var(--tb-link);
  color: var(--tb-link);
}

.tb-facts__dots {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.tb-facts__dot {
  width: 0.375rem;
  height: 0.375rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--tb-text-muted);
  cursor: pointer;
}

.tb-facts__dot.is-active {
  background: var(--tb-brand);
}

.tb-facts__dot:hover:not(.is-active) {
  background: var(--tb-text-secondary);
}

/* Educational illustrations */
.tb-edu {
  text-align: left;
}

.tb-edu-pair {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .tb-edu-pair {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0;
    align-items: start;
  }
}

.tb-edu-divider {
  display: none;
}

@media (min-width: 1024px) {
  .tb-edu-divider {
    display: block;
    width: 1px;
    height: 9rem;
    margin: 3rem 1.5rem 0;
    background: #e2e8f0;
    align-self: center;
  }
}

.tb-edu-panel__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: start;
}

.tb-edu-panel h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--tb-text);
}

.tb-badge {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tb-text-secondary);
  border: 1px solid var(--tb-border);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  background: var(--tb-subtle);
}

.tb-edu-panel__intro {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--tb-text-secondary);
  line-height: 1.5;
}

/* Horizontal stacked asset-mix (account rows + total portfolio) */
.tb-mix-chart {
  margin-top: 1.15rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tb-mix-chart__row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.25rem) minmax(0, 1fr);
  gap: 0.55rem 0.75rem;
  align-items: center;
}

.tb-mix-chart__row--total {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--tb-border);
}

.tb-mix-chart__label {
  min-width: 0;
}

.tb-mix-chart__label-main {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tb-text);
  line-height: 1.25;
}

.tb-mix-chart__row--total .tb-mix-chart__label-main {
  font-weight: 700;
}

.tb-mix-chart__label-sub {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8125rem;
  color: var(--tb-text-muted);
  line-height: 1.25;
}

.tb-mix-chart__track {
  display: flex;
  height: 1.375rem; /* ~22px product bar width */
  min-width: 0;
  overflow: hidden;
  border-radius: 0.15rem;
  background: var(--tb-subtle);
}

.tb-mix-chart__seg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-right: 1px solid #fff;
}

.tb-mix-chart__seg:last-child {
  border-right: 0;
}

.tb-mix-chart__seg-label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 2px rgba(2, 6, 23, 0.45);
  font-variant-numeric: tabular-nums;
}

.tb-mix-chart__seg--light .tb-mix-chart__seg-label {
  color: #0f172a;
  text-shadow: none;
}

.tb-mix-chart__legend {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.8125rem;
  color: var(--tb-text-secondary);
}

.tb-mix-chart__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tb-mix-chart__legend span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 0.15rem;
  flex-shrink: 0;
}

.tb-edu-chart-wrap {
  margin: 0.75rem auto 0;
  width: 100%;
  max-width: 28rem;
}

.tb-edu-chart {
  display: block;
  width: 100%;
  height: auto;
}

.tb-edu-chart-legend {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--tb-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: center;
  font-size: 0.8125rem;
}

.tb-edu-chart-legend__base {
  color: var(--tb-text-secondary);
}

.tb-edu-chart-legend__base::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 0;
  margin-right: 0.4rem;
  vertical-align: middle;
  border-top: 2px dashed var(--tb-text-muted);
}

.tb-edu-chart-legend__opt {
  color: var(--tb-link);
  font-weight: 600;
}

.tb-edu-chart-legend__opt::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
  background: #0284c7;
}

.tb-objectives {
  list-style: none;
  /* Match centered lead width so the 2×2 doesn’t sit left of a narrow heading */
  width: 100%;
  max-width: 42rem;
  margin: 1.5rem auto 0;
  padding: 0;
  display: grid;
  gap: 1.25rem 2rem;
  text-align: left;
  justify-items: stretch;
}

@media (min-width: 640px) {
  .tb-objectives {
    grid-template-columns: 1fr 1fr;
  }
}

.tb-objective {
  display: flex;
  gap: 0.75rem;
  align-items: start;
}

.tb-objective__icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  color: var(--tb-link);
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tb-objective__icon svg {
  display: block;
}

.tb-objective h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tb-text);
}

.tb-objective p {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--tb-text-secondary);
  line-height: 1.5;
}

.tb-section__cta {
  margin-top: 2rem;
}

.tb-section__cta-label {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--tb-text);
}

.tb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: var(--tb-brand);
  color: #fff;
}

/* Hero CTAs stay high-contrast on the photo (not theme elevated) */
.tb-cta--hero,
.tb-hero .tb-cta,
.tb-hero .tb-cta--hero {
  background: #ffffff;
  color: #0c4a6e;
}

.tb-cta--hero:hover,
.tb-hero .tb-cta:hover {
  background: #f0f9ff;
  color: #0c4a6e;
}

.tb-site-footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--tb-border);
  text-align: center;
  color: var(--tb-text-secondary);
  background: var(--tb-elevated);
}

.tb-site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.tb-site-footer__nav a {
  color: var(--tb-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
}

.tb-site-footer__nav a:hover {
  color: var(--tb-link);
  text-decoration: underline;
}

.tb-site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--tb-text-muted);
}

.tb-faq-fallback {
  padding: 2rem 0;
}


/* Dark mode: remaining below-fold / chrome surfaces that still use fixed fills */
@media (prefers-color-scheme: dark) {
  .tb-modal__panel {
    background: var(--tb-elevated);
    color: var(--tb-text);
    border-color: var(--tb-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  }

  .tb-cta:not(.tb-cta--hero) {
    background: var(--tb-brand);
    color: #0b1220;
  }

  .tb-edu-card,
  .tb-edu__panel,
  .tb-edu-illustration,
  .tb-compare__card,
  .tb-facts__slide {
    background: var(--tb-subtle);
    border-color: var(--tb-border);
    color: var(--tb-text);
  }

  .tb-facts__dot {
    background: var(--tb-text-muted);
  }

  .tb-facts__dot.is-active,
  .tb-facts__btn:hover {
    background: var(--tb-brand);
  }
}
