/**
 * Marketing — desktop 171:2460; mobile 171:1581 (343 artboard).
 * Layout pattern matches cost-bid.css.
 */

.tf-mkt {
  --mkt-design-width: 1200px;
  --mkt-mobile-width: 343px;
  --mkt-gutter: 16px;
  --mkt-border: 1px solid rgb(255 255 255 / 0.4);
  --mkt-panel-bg: rgb(0 0 0 / 0.2);
  /* Logo chip — visible on black canvas (About embed + marketing page) */
  --mkt-card-bg: #222222;

  padding-top: 0;
  padding-bottom: 64px;
  background: var(--color-canvas);
  color: var(--color-text-default);
}

.tf-mkt__scale-root {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow-x: clip;
}

.tf-mkt__shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 641px) {
  .tf-mkt__shell {
    width: var(--mkt-design-width);
    max-width: var(--mkt-design-width);
    flex-shrink: 0;
    zoom: min(1, calc((100vw - 32px) / var(--mkt-design-width)));
  }
}

.tf-mkt__intro {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 77px;
  padding: 48px 64px 64px;
  background: var(--mkt-panel-bg);
}

.tf-mkt__title {
  margin: 0;
  font-family: var(--font-family-headline);
  font-weight: var(--font-weight-headline);
  font-size: 80px;
  line-height: 0.9;
  color: var(--color-text-default);
  text-transform: uppercase;
}

.tf-mkt__hero {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 115.507px;
  width: 100%;
  min-width: 0;
}

.tf-mkt__copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 57.753px;
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-body);
  line-height: var(--type-body-leading);
  color: var(--color-text-default);
}

.tf-mkt__copy p {
  margin: 0;
  font-size: 28.877px;
}

.tf-mkt__copy ul {
  margin: 0;
  padding-left: 1.35em;
  list-style-type: disc;
  font-size: 19.251px;
}

.tf-mkt__copy li {
  margin: 0 0 1em;
}

.tf-mkt__copy li:last-child {
  margin-bottom: 0;
}

.tf-mkt__copy strong {
  font-weight: 700;
}

.tf-mkt__card {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  overflow: visible;
}

/*
 * Inner frame carries the fill so it stays visible even if the logo is wrapped in
 * .tf-lightbox (transparent, full-size button) or other controls.
 */
/* In-page logo: 60% of 306×374 artboard; padding shows #222 behind transparent lightbox */
.tf-mkt__card-frame {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  padding: 16px;
  border-radius: 16px;
  background-color: #222222;
  background-color: var(--mkt-card-bg, #222222);
}

.tf-mkt__card .tf-lightbox {
  position: relative;
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-mkt__card-frame > img,
.tf-mkt__card-frame .tf-lightbox img {
  display: block;
  width: auto;
  height: auto;
  /* 60% of 306×374 — 40% smaller than full artboard */
  max-width: min(184px, 100%);
  max-height: 224px;
  object-fit: contain;
  object-position: center;
}

.tf-mkt__body {
  box-sizing: border-box;
  width: 100%;
  padding: 0 64px 64px;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.tf-mkt__scoring-heading {
  margin: 0;
  font-family: var(--font-family-headline);
  font-weight: 500;
  font-size: 38.502px;
  line-height: 1.47;
  color: var(--color-text-accent);
}

.tf-mkt__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
  width: 100%;
}

.tf-mkt__cell {
  box-sizing: border-box;
  min-height: 80px;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-body);
  line-height: var(--type-body-leading);
  color: var(--color-white);
}

.tf-mkt__cell--rule {
  background: rgb(255 255 255 / 0.1);
  font-size: 38.502px;
  min-width: 0;
}

.tf-mkt__cell--pts {
  background: rgb(255 255 255 / 0.1);
  justify-content: center;
  font-size: 38.502px;
  text-align: center;
}

.tf-mkt__cell--total {
  background: var(--color-orange);
  border: 1px solid var(--color-orange);
}

.tf-mkt__cell--pts.tf-mkt__cell--total {
  font-weight: 700;
}

.tf-mkt__cell--pts.tf-mkt__cell--total strong {
  font-weight: 700;
}

.tf-mkt__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 32px 0 0;
  width: 100%;
}

.tf-mkt__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-mkt__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85px;
  height: 85px;
  box-sizing: border-box;
  border: 1px solid var(--color-white);
  border-radius: 43px;
  background: var(--color-black);
  transition: background 0.15s ease;
}

.tf-mkt__social a:hover {
  background: rgb(255 255 255 / 0.08);
}

.tf-mkt__social img {
  display: block;
  width: auto;
  height: auto;
  max-width: 48px;
  max-height: 32px;
  object-fit: contain;
}

.tf-mkt__legal {
  margin: 0;
  font-family: var(--font-family-body);
  font-size: var(--type-body-s);
  line-height: var(--type-body-leading);
  text-align: center;
  color: var(--color-text-default);
}

.tf-mkt__legal p {
  margin: 0;
}

@media (max-width: 640px) {
  .tf-mkt {
    padding-top: 0;
    padding-bottom: 48px;
  }

  .tf-mkt__shell {
    width: var(--mkt-mobile-width);
    max-width: var(--mkt-mobile-width);
    flex-shrink: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    zoom: calc((100vw - 2 * var(--mkt-gutter)) / var(--mkt-mobile-width));
  }

  .tf-mkt__intro {
    gap: 32px;
    padding: 24px;
  }

  .tf-mkt__title {
    font-size: 42px;
    line-height: 0.914;
  }

  .tf-mkt__hero {
    flex-direction: column;
    gap: 24px;
  }

  .tf-mkt__card {
    order: -1;
    flex: none;
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .tf-mkt__card-frame {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 280px;
    min-height: 0;
    padding: 16px;
    border-radius: 12px;
  }

  .tf-mkt__card-frame > img,
  .tf-mkt__card-frame .tf-lightbox img {
    width: auto;
    max-width: 100%;
    max-height: 220px;
  }

  .tf-mkt__copy {
    gap: 24px;
  }

  .tf-mkt__copy p {
    font-size: 15.4px;
  }

  .tf-mkt__copy ul {
    font-size: 12.5px;
  }

  .tf-mkt__copy li {
    margin-bottom: 0.75em;
  }

  .tf-mkt__body {
    padding: 0 24px 24px;
    gap: 24px;
  }

  .tf-mkt__scoring-heading {
    font-size: 20.535px;
    line-height: 1.47;
  }

  .tf-mkt__grid {
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 4px;
  }

  .tf-mkt__cell {
    min-height: 43px;
    padding: 4px 8px;
  }

  .tf-mkt__cell--rule {
    font-size: 15px;
    white-space: normal;
  }

  .tf-mkt__cell--pts {
    font-size: 20.535px;
  }

  .tf-mkt__cell--total.tf-mkt__cell--rule {
    font-size: var(--type-body-s);
  }

  .tf-mkt__footer {
    gap: 15px;
    padding-top: 8px;
  }

  .tf-mkt__social {
    gap: 26px;
  }

  .tf-mkt__social a {
    width: 45px;
    height: 45px;
    border-radius: 23px;
  }

  .tf-mkt__social img {
    max-width: 24px;
    max-height: 19px;
  }

  .tf-mkt__legal {
    font-size: var(--type-body-xs);
  }
}
