/* Professional Teams mini-site (teams/*.html).
   Loads after assets/site.css and reuses its tokens and components. Page-specific rules only.
   The Teams header carries four menu items in .teams-nav__main (on purpose, not .site-nav__main) so the
   main site's four-item header rules stay with the main site; the Teams bar keeps one row at every width. */

/* ---------- 1. Header ---------- */
/* the wide gap is for the one-row desktop bar only; below 1024 the base header grid keeps its own 16px column gap */
@media (min-width: 1024px) { .site-header.teams-header .site-header__inner { gap: 3rem; } }
.teams-nav__main { gap: 2.25rem; }
.teams-nav__side { gap: 20px; }
.site-nav .teams-nav__members a { font-size: 15px; color: rgba(255, 255, 255, .85); }
.site-nav a.teams-cta {
  min-height: 44px; padding: 10px 20px; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none;
}
.site-nav a.teams-cta:hover { color: #fff; text-decoration: none; }

/* "Who it is for": a menu button on wide screens, an open list inside the phone drawer */
.teams-menu { position: relative; }
.teams-menu__label { display: none; }
.teams-menu__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: transparent;
  color: rgba(255, 255, 255, .85); font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.teams-menu__btn:hover, .teams-menu__btn[aria-expanded="true"] { color: #fff; }
.teams-menu__btn svg { width: 12px; height: 12px; transition: transform var(--ease); }
.teams-menu__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.teams-menu.is-current > .teams-menu__btn { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

@media (min-width: 1024px) {
  .site-nav .teams-menu__list {
    display: none; position: absolute; top: calc(100% + 10px); left: -18px; z-index: 101; min-width: 280px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    background: var(--panel-dark); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  }
  .site-nav .teams-menu__list::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .site-nav .teams-menu__list a { display: flex; width: 100%; padding: 10px 14px; border-radius: 8px; font-size: 15px; }
  .site-nav .teams-menu__list a:hover, .site-nav .teams-menu__list a:focus-visible { background: rgba(255, 255, 255, .08); text-decoration: none; color: #fff; }
  .teams-menu.is-open .teams-menu__list,
  .no-js .teams-menu:hover .teams-menu__list,
  .no-js .teams-menu:focus-within .teams-menu__list { display: flex; }
}

/* 1023 and below: one row (wordmark, crisis link, menu); the menu opens as the main site's dark drawer */
@media (max-width: 1023px) {
  :root.js:has(.teams-header) { --header-h: 64px; }
  .js .site-header.teams-header .site-header__inner { grid-template-areas: "brand crisis toggle"; row-gap: 0; padding: 10px 20px; }
  .teams-menu__btn { display: none; }
  .teams-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
  .teams-menu__label { display: block; color: rgba(255, 255, 255, .6); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  .site-nav .teams-menu__list { display: flex; gap: 14px; }
  .site-nav .teams-menu__list a { font-size: 1rem; color: rgba(255, 255, 255, .8); }
  .teams-nav__side { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .22); }
  .site-nav .teams-nav__members a { font-size: 1rem; }
}
@media (max-width: 767px) {
  .js .site-header.teams-header .site-header__inner { padding-inline: 16px; }
}
@media (max-width: 374px) {
  .js .site-header.teams-header .site-header__inner { padding-inline: 12px; column-gap: 8px; }
}

/* ---------- 2. Shared page pieces ---------- */
.t-eyebrow {
  display: inline-block; margin-bottom: 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
}
.on-dark .t-eyebrow, .t-hero .t-eyebrow, .t-close .t-eyebrow { color: var(--blue-on-dark); }
.t-lead { font-size: 1.125rem; line-height: var(--lh-body); color: var(--text-2); max-width: 560px; }
.t-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.t-note { margin-top: 14px; font-size: .875rem; line-height: 1.5; color: var(--text-2); }
.t-center { display: block; text-align: center; }
.t-nowrap { white-space: nowrap; }
.section.t-wash { background: var(--blue-wash); }
.t-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; }

/* Index hero: full-bleed still, copy bottom left */
/* From 768 up the still runs under the translucent fixed header, as on the main site's still heroes */
.hero-still-block.t-hero {
  height: 100svh; min-height: 640px; max-height: 960px;
  margin-top: calc(-1 * var(--header-h)); place-items: end start; text-align: left;
  padding: 0 max(var(--gutter), (100% - var(--container)) / 2) clamp(40px, 7svh, 72px);
}
/* without script the bar sits in flow up to 1024, so the still starts below it */
@media (max-width: 1024px) {
  .no-js .hero-still-block.t-hero { margin-top: 0; height: calc(100svh - var(--header-h)); }
}
.hero-still-block.t-hero > img { object-position: 62% 30%; }
.hero-still-block.t-hero--hs > img { object-position: 50% 40%; }
.hero-still-block.t-hero::after { background: var(--scrim-hero); }
.t-hero__copy { max-width: 600px; }
.hero-still-block.t-hero h1 { font-size: var(--hero); line-height: var(--lh-head); font-weight: 400; letter-spacing: -.01em; padding: 0; margin: 0; filter: none; text-shadow: none; }
.hero-still-block.t-hero h1 .grad { font-weight: 500; }
.t-hero p { margin-top: 14px; font-size: 1.125rem; line-height: var(--lh-body); color: #fff; }
.t-hero .arrow-link { color: #fff; }

/* Inner-page intro: framed image first, copy beside it */
.t-intro { background: var(--blue-wash); padding-block: clamp(40px, 6vw, 96px); }
.t-intro__grid, .t-split__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  max-width: 1160px; margin-inline: auto;
}
.t-intro h1 { font-size: var(--h1); line-height: var(--lh-head); font-weight: 500; letter-spacing: -.01em; color: var(--text); margin-bottom: 18px; }
.t-split h2 { font-size: var(--h2); line-height: var(--lh-head); font-weight: 500; letter-spacing: -.005em; color: var(--text); margin-bottom: 18px; }
.t-split--flip .t-split__grid > .frame { order: 2; }
.t-intro .frame--4x5, .t-split .frame--4x5 { width: 100%; max-width: 440px; justify-self: center; }
.t-split .t-lead + .t-list, .t-split .t-lead + .t-steps { margin-top: 24px; }

/* Checked list and numbered steps */
.t-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 560px; }
.t-list li { display: flex; gap: 12px; align-items: flex-start; line-height: var(--lh-body); color: var(--text); }
.t-list li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--action); }
.t-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; max-width: 560px; counter-reset: t-step; }
.t-steps li { position: relative; padding-left: 52px; line-height: var(--lh-body); color: var(--text-2); counter-increment: t-step; }
.t-steps li::before {
  content: counter(t-step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); font-weight: 600; font-size: .9375rem;
}
.t-steps strong { display: block; color: var(--text); font-weight: 600; }

/* Register B line, set as a quiet pull quote */
.t-quote {
  max-width: 760px; margin: 48px auto 0; padding: 24px 28px; border-radius: var(--r-md); background: var(--blue-wash);
  border-left: 4px solid var(--action); color: var(--text); font-size: 1.0625rem; line-height: var(--lh-body);
}
.t-quote strong { font-weight: 600; }

/* ---------- 3. How it works (index) ---------- */
.t-flow { max-width: 1040px; margin: 0 auto; }
.t-flow svg { display: block; width: 100%; height: auto; }
.t-flow text { font-family: var(--font); }
.t-flow .t-flow__tall { display: none; max-width: 400px; margin-inline: auto; }
@media (max-width: 767px) {
  .t-flow .t-flow__wide { display: none; }
  .t-flow .t-flow__tall { display: block; }
}

/* ---------- 4. Cards ---------- */
.t-aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.t-aud__card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-md); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: box-shadow var(--ease), transform var(--ease);
}
.t-aud__card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.t-aud__media { position: relative; aspect-ratio: 3 / 2; background: var(--grad-hero-fallback); }
.t-aud__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-aud__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; flex: 1; }
.t-aud__body h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 600; color: var(--text); }
.t-aud__body p { font-size: .9375rem; line-height: var(--lh-body); color: var(--text-2); flex: 1; }
.t-aud__body .arrow-link { font-size: .9375rem; }

.t-agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1080px; margin-inline: auto; }
.t-agent { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.t-agent__media { position: relative; aspect-ratio: 4 / 3; background: var(--grad-hero-fallback); }
.t-agent__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.t-agent__body { padding: 22px 22px 24px; display: grid; gap: 8px; }
.t-agent__name { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 600; color: var(--text); }
.t-agent__name .orb { --s: 16px; flex: none; }
.t-agent__body p { font-size: .9375rem; line-height: var(--lh-body); color: var(--text-2); }

.t-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.t-principles li { padding: 26px 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.t-principles svg { width: 40px; height: 40px; color: var(--blue); margin-bottom: 14px; }
.t-principles h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.t-principles p { font-size: .9375rem; line-height: var(--lh-body); color: var(--text-2); }
.t-principles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; margin-inline: auto; }

/* ---------- 5. Plans (pricing, get started) ---------- */
.t-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1160px; margin-inline: auto; align-items: stretch; }
.t-plan.plan-card { max-width: none; margin: 0; outline: 0; border: 1px solid var(--line); box-shadow: var(--sh-sm); padding: 0 28px 28px; display: flex; flex-direction: column; overflow: hidden; }
.t-plan__media { position: relative; aspect-ratio: 16 / 9; margin: 0 -28px 24px; background: var(--grad-hero-fallback); }
.t-plan__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-plan.t-plan--lead { border: 2px solid var(--action); }
.t-plan__name { font-size: 1.375rem; font-weight: 600; color: var(--text); }
.t-plan__who { margin: 6px 0 20px; color: var(--text-2); font-size: .9375rem; line-height: var(--lh-body); }
.t-plan .plan-card__price { font-size: 2.5rem; }
.t-plan .plan-card__price--text { font-size: 1.75rem; line-height: 1.2; }
.t-plan ul { margin: 22px 0 26px; flex: 1; align-content: start; }
.t-plan li { font-size: .9375rem; line-height: var(--lh-body); }
.t-plan li svg { color: var(--action); }
/* Get started page: cards without a list keep the action at the foot of the card, aligned across the row */
.t-plan .t-path__go { margin-top: auto; padding-top: 24px; }
.t-terms { margin-top: 12px; font-size: .8125rem; line-height: 1.5; color: var(--text-2); }
.t-plans-foot { max-width: 760px; margin: 32px auto 0; text-align: center; color: var(--text-2); font-size: .9375rem; line-height: var(--lh-body); }
.t-plans-foot p + p { margin-top: 8px; }

/* FAQ beside an image */
.t-faq .accordion { max-width: none; gap: 12px; }
.t-faq .accordion summary { font-size: 1.125rem; padding: 18px 20px; }
.t-faq .accordion .answer { padding: 0 20px 20px; font-size: .9375rem; }
.t-faq .t-split__grid { align-items: start; }

/* ---------- 6. Closing band ---------- */
.t-close { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px); color: #fff; background: #1c2230; max-width: 1160px; margin-inline: auto; }
.t-close > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.t-close::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0, rgba(0, 0, 0, .66) 50%, rgba(0, 0, 0, .40) 100%); }
.t-close h2 { font-size: var(--h2); line-height: var(--lh-head); font-weight: 500; max-width: 620px; }
.t-close p { margin-top: 14px; max-width: 560px; font-size: 1.0625rem; line-height: var(--lh-body); color: rgba(255, 255, 255, .92); }
.t-close .t-terms { color: rgba(255, 255, 255, .85); }
.t-close .arrow-link { color: #fff; }

/* ---------- 7. Responsive ---------- */
@media (max-width: 1100px) {
  .t-aud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .t-plans { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
}
@media (max-width: 899px) {
  .t-intro__grid, .t-split__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .t-split--flip .t-split__grid > .frame { order: 0; }
  .t-agents, .t-principles--3 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 767px) {
  .hero-still-block.t-hero { margin-top: 0; min-height: 560px; height: calc(100svh - var(--header-h)); }
  .hero-still-block.t-hero > img { object-position: 68% 30%; }
  .t-hero p { font-size: 1.0625rem; }
  .t-aud, .t-principles { grid-template-columns: minmax(0, 1fr); }
  .t-actions .btn { flex: 1 1 100%; }
  .t-close { border-radius: var(--r-md); }
  .t-close::after { background: rgba(0, 0, 0, .70); }
  .t-close .btn { width: 100%; }
  .t-quote { margin-top: 32px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .t-aud__card:hover { transform: none; }
  .teams-menu__btn svg { transition: none; }
}

/* Teams prices are proposed until a practice agreement confirms them. */
[data-proposed-price]::after { content: " proposed"; font-size: .8em; opacity: .75; }
