/* /teams/: what a team plan does, what it costs (one flat price, Basecamp style) and the waitlist */
.tm-hero-btn { min-height: 60px; font-size: 19px; padding: 0 30px; }
.tm-sec { padding-top: 56px; }
.tm-sec .band-head { text-align: center; }
.tm-sec .band-sub { text-align: center; }

/* how it works: three numbered steps */
.tm-steps, .tm-feats { list-style: none; max-width: 1160px; margin: 0 auto; padding: 0 20px; display: grid; gap: 14px; }
.tm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: none; }
.tm-steps li { background: var(--paper); border-radius: 24px; padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.tm-n {
  width: 56px; height: 56px; border-radius: 50%; background: var(--c); color: var(--ink);
  display: grid; place-items: center; font-family: var(--display); font-size: 30px; line-height: 1; margin-bottom: 4px;
}
.tm-steps h3, .tm-feats h3 { font-size: 21px; font-weight: 800; line-height: 1.25; }
.tm-steps p, .tm-feats p { font-size: 17px; line-height: 1.5; color: #3A3F47; text-wrap: pretty; }

/* what you're paying for: six small cards */
.tm-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm-feats li { background: var(--white); border: 2px solid #E3E3E1; border-radius: 22px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.tm-emoji {
  width: 54px; height: 54px; border-radius: 16px; background: var(--c); display: grid; place-items: center;
  font-size: 28px; line-height: 1; margin-bottom: 6px;
}

/* the price */
.tm-plans { max-width: 900px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.tm-plan { position: relative; border-radius: 28px; padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 6px; }
.tm-plan h3 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.tm-for { font-size: 17px; font-weight: 600; color: var(--muted); }
.tm-amount { display: flex; align-items: flex-start; margin-top: 14px; font-family: var(--display); line-height: .9; }
.tm-cur { font-size: 40px; margin: 6px 4px 0 0; }
.tm-num { font-size: 104px; font-variant-numeric: tabular-nums; }
.tm-per { font-size: 16px; font-weight: 600; color: var(--muted); min-height: 1.5em; }
.tm-list { list-style: none; margin: 16px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1 0 auto; }
.tm-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; font-weight: 600; line-height: 1.4; }
.tm-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.4' fill='none' stroke='%2315181D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.tm-team .tm-list li::before {
  background-color: rgba(226, 166, 43, .2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.4' fill='none' stroke='%23E2A62B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tm-btn { min-height: 60px; font-size: 18px; font-weight: 800; width: 100%; }
.tm-note { margin-top: 12px; font-size: 14px; font-weight: 600; text-align: center; }

.tm-free { background: var(--white); border: 2px solid #E3E3E1; }
.tm-free .tm-btn { border-color: var(--ink); color: var(--ink); }

.tm-team { background: var(--ink); color: var(--white); box-shadow: 0 14px 40px rgba(21, 24, 29, .22); }
.tm-team .tm-for, .tm-team .tm-per { color: #C9CED6; }
.tm-team .tm-note { color: var(--muted-dark); }
.tm-flag {
  position: absolute; top: 22px; right: 22px; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.tm-join {
  border: 0; background: var(--gold); color: var(--ink); box-shadow: 0 6px 0 #9A6C10;
  animation: btnbounce 2.8s ease-in-out 1.2s infinite; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.tm-join::after { content: "\2192"; display: inline-block; margin-left: 4px; transition: transform .15s ease; }
.tm-join:hover { background: #F0B83C; transform: translateY(-3px) scale(1.02); box-shadow: 0 9px 0 #9A6C10; animation: none; }
.tm-join:hover::after { transform: translateX(4px); }
.tm-join:active { transform: translateY(5px); box-shadow: 0 1px 0 #9A6C10; animation: none; }

/* the team size slider: the live bit */
.tm-calc { margin: 18px 0 2px; padding: 18px 18px 16px; border-radius: 22px; background: #252A33; display: flex; flex-direction: column; gap: 10px; }
.tm-calc[hidden] { display: none; }
.tm-calc-label { font-size: 15px; font-weight: 800; color: #C9CED6; text-align: center; }
.tm-size-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tm-step {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #4A515D; background: transparent; color: var(--white);
  font: inherit; font-size: 26px; font-weight: 600; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, color .15s ease, transform .1s ease;
}
.tm-step:hover { border-color: var(--gold); color: var(--gold); }
.tm-step:active { transform: scale(.94); }
.tm-step:disabled { opacity: .3; cursor: default; border-color: #4A515D; color: var(--white); }
.tm-step:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tm-size { text-align: center; font-size: 16px; font-weight: 700; color: #C9CED6; }
.tm-size b { display: block; font-family: var(--display); font-weight: 400; font-size: 56px; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.tm-range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; --fill: 18%; touch-action: pan-y; }
.tm-range::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(to right, var(--gold) var(--fill), #4A515D var(--fill)); }
.tm-range::-moz-range-track { height: 10px; border-radius: 999px; background: #4A515D; }
.tm-range::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--gold); }
.tm-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 32px; height: 32px; margin-top: -11px; border-radius: 50%; background: var(--white); border: 5px solid var(--gold); box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.tm-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 5px solid var(--gold); box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.tm-range:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 12px; }
.tm-total { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; column-gap: 8px; font-size: 16px; font-weight: 700; color: #C9CED6; }
.tm-total b { font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1.05; letter-spacing: .01em; color: var(--gold); font-variant-numeric: tabular-nums; }
.tm-total b.is-bump { animation: tmbump .28s ease-out; }
.tm-big { font-size: 15px; font-weight: 600; line-height: 1.45; color: #C9CED6; text-align: center; text-wrap: balance; }
@keyframes tmbump { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tm-total b.is-bump { animation: none; } }

/* questions */
.tm-faqs { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.faq { border-bottom: 2px solid var(--line); }
.faq:first-of-type { border-top: 2px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 60px; padding: 12px 0; font-size: 18px; font-weight: 800; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 24px; text-align: center; font-size: 26px; font-weight: 600; line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 38px 18px 0; font-size: 17px; line-height: 1.5; color: #3A3F47; text-wrap: pretty; }

.teams-page .teams-join { margin-top: 56px; }

@media (max-width: 960px) {
  .tm-steps, .tm-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-steps li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .tm-plans { grid-template-columns: minmax(0, 1fr); }
  .tm-team { order: -1; }
}
@media (max-width: 640px) {
  .tm-sec { padding-top: 40px; }
  .tm-steps, .tm-feats, .tm-plans, .tm-faqs { padding: 0 16px; }
  .tm-steps, .tm-feats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tm-steps li { padding: 20px; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; }
  .tm-steps .tm-n { width: 48px; height: 48px; font-size: 26px; grid-row: span 2; margin: 0; }
  .tm-feats li { padding: 18px 18px 20px; display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; }
  .tm-feats .tm-emoji { grid-row: span 2; margin: 0; }
  .tm-plan { padding: 26px 22px 24px; }
  .tm-num { font-size: 92px; }
  .tm-hero-btn { width: 100%; max-width: 420px; }
  .teams-page .teams-join { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .tm-join { animation: none; } }

/* what you're paying for: we watch, we check, we train */
.tm-groups { max-width: 1160px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.tm-group { background: var(--white); border: 2px solid #E3E3E1; border-radius: 24px; padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.tm-group h3 { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.tm-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tm-items li { font-size: 16.5px; line-height: 1.5; color: #3A3F47; text-wrap: pretty; }
.tm-items b { color: var(--ink); font-weight: 800; }
@media (max-width: 960px) { .tm-groups { grid-template-columns: minmax(0, 1fr); max-width: 680px; } }
@media (max-width: 640px) { .tm-groups { padding: 0 16px; gap: 10px; } .tm-group { padding: 20px 20px 22px; } .tm-group h3 { font-size: 32px; } }
.tm-try { color: var(--ink); font-weight: 800; white-space: nowrap; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tm-try::after { content: " \2192"; }

/* what we fix: four gaps, two by two on a big screen */
.tm-groups.tm-fixes { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; }
@media (max-width: 760px) { .tm-groups.tm-fixes { grid-template-columns: minmax(0, 1fr); max-width: 680px; } }
.tm-fixes .tm-group h3 { font-size: clamp(30px, 6vw, 36px); }
.tm-fixes .tm-items li { font-size: 17px; }
.tm-honest { max-width: 680px; margin: 22px auto 0; padding: 0 20px; text-align: center; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--muted); text-wrap: balance; }
