/* First-screen landing (hero + search + trust), scoped to avoid home.html collisions. */
.tb-landing {
  --blue: #4A67A3;
  --blue-2: #405D98;
  --blue-dark: #0b245f;
  --text: #0c2057;
  --muted: #60709d;
  --line: #e7ebf5;
  --soft: #f7f9ff;
  --card: #ffffff;
  --shadow: 0 14px 35px rgba(37, 69, 140, .10);
  --radius: 20px;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  z-index: 5;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 18%, rgba(74, 103, 163, .10), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #fff 68%, #fbfcff 100%);
}

.tb-landing *,
.tb-landing *::before,
.tb-landing *::after {
  box-sizing: border-box;
}

.tb-landing a {
  text-decoration: none;
  color: inherit;
}

.tb-landing button,
.tb-landing input {
  font: inherit;
}

.tb-landing button:focus,
.tb-landing input:focus {
  outline: none;
  box-shadow: none;
}

.tb-landing .hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(16px, 2.5vh, 28px) 70px 24px;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 70px;
  align-items: center;
  min-height: 565px;
  position: relative;
  overflow: visible;
}

.tb-landing .audience-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(41, 69, 132, .08);
  padding: 3px;
  margin-bottom: 46px;
  overflow: hidden;
}

.tb-landing .audience-switch button {
  border: 0;
  background: transparent;
  color: #5b6788;
  padding: 13px 28px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  transition: .2s ease;
}

.tb-landing .audience-switch button.active {
  color: var(--blue);
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(74, 103, 163, .20), 0 5px 16px rgba(37, 82, 174, .08);
}

.tb-landing .eyebrow {
  font-size: 23px;
  font-weight: 750;
  margin: 0 0 14px;
  color: #0f2252;
}

.tb-landing h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.18;
  letter-spacing: -1.8px;
  max-width: 610px;
  color: #10245d;
  text-shadow: none;
  font-weight: 700;
}

.tb-landing h1 .accent {
  color: var(--blue);
}

.tb-landing .hero-copy {
  margin: 20px 0 0;
  color: #2a417c;
  font-size: 19px;
  line-height: 1.7;
  max-width: 570px;
}

.tb-landing .benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 34px;
  align-items: center;
  color: #18306f;
  font-size: 15px;
  font-weight: 600;
}

.tb-landing .benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-right: 1px solid #cfd7ea;
}

.tb-landing .benefit:first-child {
  padding-left: 0;
}

.tb-landing .benefit:last-child {
  border-right: 0;
}

.tb-landing #companyContent h1 {
  color: #17191D;
}

.tb-landing #companyContent h1 .accent {
  color: var(--blue);
}

.tb-landing #companyContent .hero-copy {
  color: #292D33;
}

.tb-landing .line-doodle {
  display: none;
}

.tb-landing .visual {
  min-height: 515px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.tb-landing .search-connections {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 0;
  height: 235px;
  pointer-events: none;
}

.tb-landing .search-connections svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tb-landing .search-connections path {
  fill: none;
  stroke: #6f7d91;
  stroke-width: 2;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .72;
}

.tb-landing .search-connections circle {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 1.5;
  opacity: .95;
}

.tb-landing .blob {
  width: 560px;
  height: 560px;
  position: absolute;
  right: -50px;
  top: -10px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .72) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 50%, rgba(74, 103, 163, .14), rgba(74, 103, 163, .05) 58%, transparent 59%);
  border-radius: 44% 56% 54% 46% / 45% 47% 53% 55%;
}

.tb-landing .top-search {
  position: absolute;
  left: 28px;
  right: 36px;
  top: 10px;
  height: 64px;
  background: #fff;
  border-radius: 34px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  padding: 0 26px;
  color: #6a769b;
  font-size: 14px;
  z-index: 8;
}

.tb-landing .top-search span {
  flex: 1;
}

.tb-landing .search-icon {
  width: 23px;
  height: 23px;
  border: 2px solid #0d2459;
  border-radius: 50%;
  position: relative;
}

.tb-landing .search-icon:after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  background: #0d2459;
  right: -6px;
  bottom: 0;
  transform: rotate(45deg);
}

.tb-landing .results-card {
  position: absolute;
  width: 250px;
  left: 0;
  top: 102px;
  padding: 16px;
  background: #fff;
  border: 1px solid #edf0f7;
  border-radius: 11px;
  box-shadow: 0 10px 28px rgba(35, 65, 130, .08);
  z-index: 6;
}

.tb-landing .results-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 12px;
}

.tb-landing .results-head span:last-child {
  color: #9098ad;
  font-weight: 600;
}

.tb-landing .result-row {
  display: grid;
  grid-template-columns: 28px 1fr 12px;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid #eef1f7;
  font-size: 10px;
  line-height: 1.25;
}

.tb-landing .result-row:first-of-type {
  border-top: 0;
}

.tb-landing .result-row b {
  display: block;
  font-size: 10px;
}

.tb-landing .result-row small {
  color: #687595;
}

.tb-landing .result-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(145deg, #EEF1F7, #DDE3EF);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.tb-landing .arrow {
  color: var(--blue);
  font-size: 18px;
}

.tb-landing .all-results {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.tb-landing .trainer-card {
  position: absolute;
  z-index: 6;
  width: 164px;
  background: #fff;
  border: 1px solid #eef1f8;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(29, 61, 128, .08);
  padding: 10px;
  text-align: left;
}

.tb-landing .trainer-card.main {
  left: 267px;
  top: 128px;
}

.tb-landing .trainer-card.secondary {
  right: 36px;
  top: 164px;
  width: 134px;
}

.tb-landing .portrait {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  border-radius: 4px;
  background: linear-gradient(180deg, #dfe8f7, #fafcff);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: #223b78;
  font-size: 52px;
  font-weight: 800;
}

.tb-landing .secondary .portrait {
  font-size: 42px;
}

.tb-landing .portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.tb-landing .trainer-card h3 {
  font-size: 16px;
  margin: 8px 0 2px;
  color: #10245d;
  text-shadow: none;
}

.tb-landing .secondary h3 {
  font-size: 13px;
}

.tb-landing .trainer-card p {
  font-size: 9px;
  margin: 2px 0;
  color: #304272;
}

.tb-landing .rating {
  font-size: 10px;
  color: #ff9e00;
  margin: 3px 0;
}

.tb-landing .mini-actions {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.tb-landing .mini-actions button {
  border-radius: 5px;
  height: 23px;
  border: 1px solid var(--tb-primary, #456fb8);
  background: #fff;
  color: var(--tb-primary, #456fb8);
  font-size: 9px;
  font-weight: 700;
  padding: 0;
  line-height: 1;
}

.tb-landing .mini-actions button.primary {
  background: var(--tb-primary, #456fb8);
  border-color: var(--tb-primary, #456fb8);
  color: #fff;
}

.tb-landing .filter-card {
  position: absolute;
  right: -92px;
  width: 148px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(36, 66, 130, .08);
  border: 1px solid #eef1f8;
  padding: 18px 14px;
  z-index: 6;
  font-size: 10px;
}

.tb-landing .filter-card.availability {
  top: 224px;
}

.tb-landing .availability-calendar {
  min-height: 104px;
  padding: 12px 14px 13px;
}

.tb-landing .availability-calendar .filter-title {
  margin-bottom: 10px;
  color: #253044;
}

.tb-landing .availability-calendar .filter-title span {
  color: #789783;
}

.tb-landing .fused-calendar .calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px 5px;
  width: 100%;
}

.tb-landing .fused-calendar .calendar-grid i {
  display: block;
  height: 7px;
  border-radius: 2px;
  background: #E7EBE8;
}

.tb-landing .fused-calendar .calendar-grid i.available {
  background: #789783;
}

.tb-landing .fused-calendar .calendar-grid i.available:nth-child(4n+2),
.tb-landing .fused-calendar .calendar-grid i.available:nth-child(5n+1) {
  background: #8EA997;
}

.tb-landing .filter-card.location {
  top: 382px;
  right: -132px;
  width: 145px;
  padding: 12px 13px;
}

.tb-landing .location-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tb-landing .location-pin {
  width: 12px;
  height: 15px;
  display: inline-flex;
  flex: 0 0 auto;
}

.tb-landing .location-pin svg {
  width: 100%;
  height: 100%;
}

.tb-landing .location-pin path {
  fill: #789783;
}

.tb-landing .location-pin circle {
  fill: #fff;
}

.tb-landing .filter-card.location .filter-value {
  padding-left: 19px;
  padding-right: 0;
}

.tb-landing .filter-title {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.tb-landing .filter-value {
  font-size: 9px;
  text-align: center;
  color: #304272;
}

.tb-landing .dots {
  position: absolute;
  right: -90px;
  bottom: 30px;
  width: 190px;
  height: 190px;
  opacity: .24;
  background-image: radial-gradient(var(--blue) 1.2px, transparent 1.2px);
  background-size: 15px 15px;
}

.tb-landing .search-section {
  max-width: 1320px;
  margin: -4px auto 0;
  padding: 0 42px 24px;
  position: relative;
  z-index: 20;
  overflow: visible;
  scroll-margin-top: var(--tb-scroll-anchor-offset, calc(var(--tb-layout-top, 70px) + 8px));
}

.tb-landing .search-tabs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.tb-landing .search-tab {
  min-width: 260px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding: 18px 22px;
  color: #263b73;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.tb-landing .search-tab.active {
  color: #0d2b75;
  font-weight: 800;
  box-shadow: 0 -7px 20px rgba(37, 69, 140, .06);
  position: relative;
}

.tb-landing .search-tab.active:after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: var(--blue);
}

.tb-landing .search-box {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 0 16px 16px 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1.15fr 1.15fr auto;
  align-items: center;
  gap: 12px;
  overflow: visible;
}

.tb-landing .field {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  color: #59698f;
  border: 1px solid #eef1f7;
  border-radius: 999px;
  margin: 0;
  background: #fff;
}

.tb-landing .field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f346c;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.tb-landing .field input[type="search"]::-webkit-search-decoration,
.tb-landing .field input[type="search"]::-webkit-search-cancel-button,
.tb-landing .field input[type="search"]::-webkit-search-results-button,
.tb-landing .field input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.tb-landing .location-combo {
  position: relative;
  z-index: 8;
  overflow: visible;
}

.tb-landing .location-combo .field {
  width: 100%;
}

.tb-landing .location-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e6ebf5;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(28, 55, 110, .12);
  padding: 8px;
}

.tb-landing .location-menu.is-above {
  top: auto;
  bottom: calc(100% + 6px);
}

.tb-landing .location-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  color: #243868;
  font-size: 15px;
  cursor: pointer;
}

.tb-landing .location-option:hover,
.tb-landing .location-option.is-active {
  background: #eef4fb;
}

.tb-landing .location-menu-icon {
  display: inline-flex;
  color: #2d4d8c;
  flex: 0 0 18px;
}

.tb-landing .search-btn {
  height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  background: var(--tb-primary-gradient, linear-gradient(135deg, #456fb8, #5f86c7));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(69, 111, 184, .18);
}

.tb-landing .search-btn:hover,
.tb-landing .mini-actions button.primary:hover {
  background: var(--tb-primary-gradient-hover, linear-gradient(135deg, #365f9f, #456fb8));
  color: #fff;
  border-color: var(--tb-primary-hover, #3a5f9e);
}

.tb-landing .search-btn:active {
  background: var(--tb-primary-active, #2f5088);
}

.tb-landing .trust-row {
  max-width: 1080px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 32px;
  scroll-margin-top: var(--tb-scroll-anchor-offset, calc(var(--tb-layout-top, 70px) + 8px));
}

.tb-landing .trust {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: none;
}

.tb-landing .trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5f7fc;
  color: #6680ba;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex: 0 0 34px;
}

.tb-landing .trust b {
  display: block;
  font-size: 13px;
  margin-bottom: 1px;
  font-weight: 650;
  color: #31436f;
}

.tb-landing .trust span {
  font-size: 12px;
  color: #8792ad;
}

@media (min-width: 981px) {
  .tb-landing .hero {
    min-height: 0;
    height: calc(100vh - 302px);
    max-height: 610px;
    padding-top: clamp(18px, 3vh, 44px);
    padding-bottom: 8px;
    align-items: center;
  }

  .tb-landing .audience-switch {
    margin-bottom: clamp(18px, 3vh, 38px);
  }

  .tb-landing h1 {
    font-size: clamp(40px, 3.2vw, 52px);
  }

  .tb-landing .hero-copy {
    margin-top: 14px;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.55;
  }

  .tb-landing .benefits {
    margin-top: 22px;
  }

  .tb-landing .line-doodle {
    height: 70px;
    margin-top: 2px;
  }

  .tb-landing .visual {
    min-height: 0;
    height: 100%;
    transform: scale(.92);
    transform-origin: center center;
  }

  .tb-landing .search-section {
    margin-top: 0;
    padding-bottom: 12px;
  }

  .tb-landing .search-tab {
    padding: 14px 22px;
  }

  .tb-landing .search-box {
    padding: 14px 18px;
  }

  .tb-landing .field {
    height: 52px;
  }

  .tb-landing .trust-row {
    margin-bottom: 12px;
    gap: 30px;
  }

  .tb-landing .trust {
    padding: 8px 10px;
  }

  .tb-landing .trust-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 16px;
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .tb-landing .hero {
    height: calc(100vh - 278px);
    padding-top: 12px;
  }

  .tb-landing .audience-switch {
    margin-bottom: 14px;
  }

  .tb-landing .hero-copy {
    margin-top: 10px;
    line-height: 1.45;
  }

  .tb-landing .visual {
    transform: scale(.82);
  }

  .tb-landing .line-doodle {
    display: none;
  }

  .tb-landing .search-tab {
    padding: 11px 20px;
  }

  .tb-landing .search-box {
    padding: 10px 16px;
  }

  .tb-landing .field {
    height: 46px;
  }

  .tb-landing .search-btn {
    height: 42px;
  }

  .tb-landing .trust {
    padding: 7px 9px;
  }

  .tb-landing .trust-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 15px;
  }

  .tb-landing .trust-row {
    margin-bottom: 8px;
  }
}

@media (min-width: 981px) and (max-height: 700px) {
  .tb-landing .hero {
    height: calc(100vh - 252px);
    padding-top: 6px;
  }

  .tb-landing .audience-switch {
    margin-bottom: 8px;
  }

  .tb-landing .audience-switch button {
    padding: 9px 24px;
  }

  .tb-landing .eyebrow {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .tb-landing h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .tb-landing .hero-copy {
    font-size: 15px;
    line-height: 1.35;
  }

  .tb-landing .benefits {
    margin-top: 12px;
    font-size: 13px;
  }

  .tb-landing .visual {
    transform: scale(.72);
  }

  .tb-landing .search-tab {
    padding: 9px 18px;
  }

  .tb-landing .search-box {
    padding: 8px 14px;
  }

  .tb-landing .field {
    height: 42px;
  }

  .tb-landing .search-btn {
    height: 38px;
  }

  .tb-landing .trust-row {
    gap: 18px;
  }

  .tb-landing .trust {
    padding: 6px 8px;
  }

  .tb-landing .trust b {
    font-size: 12px;
  }

  .tb-landing .trust span {
    font-size: 11px;
  }
}

@media (max-width: 1200px) {
  .tb-landing .hero {
    grid-template-columns: 1fr 1fr;
    padding: 50px 44px 24px;
    gap: 30px;
  }

  .tb-landing h1 {
    font-size: 44px;
  }

  .tb-landing .filter-card {
    right: -25px;
  }
}

@media (max-width: 980px) {
  .tb-landing .hero {
    grid-template-columns: 1fr;
    padding: 42px 28px 10px;
  }

  .tb-landing .visual {
    min-height: 500px;
  }

  .tb-landing .search-connections {
    display: none;
  }

  .tb-landing .line-doodle {
    display: none;
  }

  .tb-landing .search-section {
    padding: 0 22px 22px;
  }

  .tb-landing .search-box {
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 16px;
  }

  .tb-landing .field,
  .tb-landing .field:first-child,
  .tb-landing .field:nth-child(2),
  .tb-landing .location-combo .field {
    border: 1px solid #eef1f7;
    border-radius: 999px;
  }

  .tb-landing .search-btn {
    justify-content: center;
  }

  .tb-landing .trust-row {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 700px;
  }
}

@media (max-width: 620px) {
  .tb-landing .hero {
    padding: 28px 18px 8px;
  }

  .tb-landing .audience-switch {
    margin-bottom: 30px;
    width: 100%;
  }

  .tb-landing .audience-switch button {
    justify-content: center;
    padding: 12px 14px;
  }

  .tb-landing .eyebrow {
    font-size: 18px;
  }

  .tb-landing h1 {
    font-size: 38px;
    letter-spacing: -1px;
  }

  .tb-landing .hero-copy {
    font-size: 17px;
  }

  .tb-landing .benefits {
    display: grid;
    gap: 12px;
  }

  .tb-landing .benefit {
    border-right: 0;
    padding: 0;
  }

  .tb-landing .visual {
    transform: scale(.82);
    transform-origin: top left;
    width: 122%;
    margin-bottom: -70px;
  }

  .tb-landing .top-search {
    right: 10px;
  }

  .tb-landing .results-card {
    left: 0;
  }

  .tb-landing .trainer-card.main {
    left: 230px;
  }

  .tb-landing .trainer-card.secondary {
    display: none;
  }

  .tb-landing .filter-card {
    display: none;
  }

  .tb-landing .search-tabs {
    width: 100%;
  }

  .tb-landing .search-tab {
    min-width: 0;
    flex: 1;
    padding: 14px 12px;
    font-size: 13px;
  }

  .tb-landing .trust-row {
    padding: 0 18px;
  }
}
