/* Buys team page, built on the Webcassa Design Language (storefront identity).
   Tokens: css/wdl/tokens.css. Only semantic --wdl-* tokens are used for colour. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/Inter.var.woff2') format('woff2');
}

html {
  color-scheme: light;
}

body {
  min-height: 100vh;
  background: var(--wdl-color-bg-canvas);
}

.bt-container {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
}

.bt-skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: var(--wdl-radius-control);
  background: var(--wdl-color-bg-inverse);
  color: var(--wdl-color-text-inverse);
  font-weight: 600;
}

.bt-skip:focus {
  top: 12px;
}

.bt-icon {
  flex: none;
  width: var(--wdl-density-iconSize);
  height: var(--wdl-density-iconSize);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */
.bt-header {
  border-bottom: 1px solid var(--wdl-color-border-subtle);
  background: var(--wdl-color-bg-surface);
}

.bt-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.bt-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--wdl-size-targetTouch);
  color: var(--wdl-color-text-default);
  font-size: var(--wdl-font-size-xl);
  font-weight: var(--wdl-font-weight-semibold);
  text-decoration: none;
}

.bt-btn {
  min-height: var(--wdl-size-targetTouch);
}

/* Hero */
.bt-hero {
  padding: clamp(48px, 10vw, 112px) 0 clamp(32px, 6vw, 64px);
}

.bt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--wdl-radius-full);
  background: var(--wdl-color-bg-accent-subtle);
  color: var(--wdl-color-text-accent);
  font-size: var(--wdl-font-size-md);
  font-weight: var(--wdl-font-weight-semibold);
}

.bt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

h1 {
  max-width: 16ch;
  margin: 0 0 20px;
  font-size: clamp(var(--wdl-font-size-5xl), 8vw, var(--wdl-font-size-7xl));
  font-weight: var(--wdl-font-weight-bold);
  line-height: var(--wdl-font-lineHeight-tight);
  letter-spacing: -0.02em;
}

.bt-lede {
  max-width: 560px;
  margin: 0 0 32px;
  color: var(--wdl-color-text-muted);
  font-size: var(--wdl-font-size-xl);
  line-height: var(--wdl-font-lineHeight-relaxed);
}

.bt-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* The one primary action on the page */
.bt-main-btn {
  min-height: 56px;
  padding-inline: 28px;
  font-size: var(--wdl-font-size-xl);
}

.bt-note,
.bt-muted {
  margin: 0;
  color: var(--wdl-color-text-muted);
  font-size: var(--wdl-font-size-md);
}

.bt-note {
  max-width: 480px;
  margin-top: 16px;
}

.bt-nowrap {
  white-space: nowrap;
}

.bt-tabular {
  font-variant-numeric: tabular-nums;
}

.bt-contact {
  max-width: 480px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--wdl-color-border-subtle);
}

.bt-contact-title {
  margin: 0 0 4px;
  font-weight: var(--wdl-font-weight-semibold);
}

.bt-contact-sub {
  margin: 0 0 12px;
  color: var(--wdl-color-text-muted);
}

.bt-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Decorative picture; colours come from tokens */
.bt-art svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 360px;
  margin-inline: auto;
}

.bt-art-bg { fill: var(--wdl-color-bg-accent-subtle); }
.bt-art-dot { fill: var(--wdl-color-border-accent); opacity: 0.5; }
.bt-art-dot2 { fill: var(--wdl-color-bg-accent); opacity: 0.35; }
.bt-bubble-a { fill: var(--wdl-color-bg-surface); stroke: var(--wdl-color-border-default); stroke-width: 2; }
.bt-bubble-b { fill: var(--wdl-color-bg-accent); }
.bt-line-a { fill: var(--wdl-color-border-default); }
.bt-line-b { fill: var(--wdl-color-text-on-accent); opacity: 0.85; }

/* How to join */
.bt-steps {
  padding: 24px 0 40px;
}

.bt-steps h2,
.bt-more h2 {
  margin: 0 0 16px;
  font-size: var(--wdl-font-size-3xl);
  font-weight: var(--wdl-font-weight-semibold);
  line-height: var(--wdl-font-lineHeight-snug);
}

.bt-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bt-step {
  padding: 24px;
}

.bt-step h3 {
  margin: 16px 0 6px;
  font-size: var(--wdl-font-size-xl);
  font-weight: var(--wdl-font-weight-semibold);
  line-height: var(--wdl-font-lineHeight-snug);
}

.bt-step p {
  margin: 0;
  color: var(--wdl-color-text-muted);
}

.bt-step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--wdl-radius-full);
  background: var(--wdl-color-bg-accent-subtle);
  color: var(--wdl-color-text-accent);
  font-weight: var(--wdl-font-weight-bold);
  font-variant-numeric: tabular-nums;
}

/* More groups */
.bt-more {
  padding: 16px 0 40px;
}

.bt-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
}

.bt-item-name {
  margin: 0;
  font-weight: var(--wdl-font-weight-semibold);
}

.bt-item-host {
  margin: 2px 0 0;
  color: var(--wdl-color-text-muted);
  font-size: var(--wdl-font-size-md);
  overflow-wrap: anywhere;
}

.bt-risk {
  padding: 24px 0 64px;
  border-top: 1px solid var(--wdl-color-border-subtle);
}

.bt-risk .bt-muted {
  max-width: 680px;
}

@media (max-width: 800px) {
  .bt-hero {
    padding: 32px 0 24px;
  }

  .bt-hero-grid {
    grid-template-columns: 1fr;
  }

  /* Keep the join button above the fold on phones */
  .bt-art {
    display: none;
  }

  h1 {
    max-width: none;
    margin-bottom: 16px;
    font-size: var(--wdl-font-size-5xl);
  }

  .bt-lede {
    margin-bottom: 24px;
    font-size: var(--wdl-font-size-lg);
    line-height: var(--wdl-font-lineHeight-normal);
  }

  .bt-header-row {
    min-height: 60px;
  }

  .bt-steps {
    padding: 8px 0 32px;
  }

  .bt-step-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Number beside the text so the cards stay short */
  .bt-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 16px;
    padding: 16px;
  }

  .bt-step-num {
    grid-row: span 2;
  }

  .bt-step h3 {
    margin: 0 0 2px;
    font-size: var(--wdl-font-size-lg);
  }

  .bt-risk {
    padding-bottom: 40px;
  }
}

@media (max-width: 520px) {
  .bt-main-btn,
  .bt-contact-actions .wdl-btn {
    width: 100%;
  }
}
