/* CA1: align captions, separate the method and the included bonus. */
@media (min-width: 901px) {
  .team-page .portrait figcaption { width: 100%; left: 0; right: auto; text-align: center; }
}
.team-page .method-band .method-section { align-items: center; }
.team-page .method-band .method-heading { text-align: center; }
.team-page .method-band .method-heading h2 { max-width: none; }
.team-page #second-opinion {
  margin-block: 40px 72px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 20px;
  background: var(--navy);
  color: #f5fbf8;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}
.team-page #second-opinion h2 { max-width: none; font-size: clamp(28px, 3vw, 38px); }
.team-page #second-opinion .method-heading > p:not(.bonus-label) { line-height: 1.55; color: #dce9fc; }
.team-page #second-opinion .method-part p { color: #e8eff9; }
.team-page #second-opinion .method-part + .method-part { border-color: #6e8fc1; }
.team-page .bonus-label {
  display: inline-block; margin: 0 0 18px; padding: 7px 12px;
  border-radius: 6px; background: #dce9fc; color: #162744;
  font-size: 14px; font-weight: 700;
}
.team-page .work-example > .section-label { margin-bottom: 12px; color: var(--accent); font-weight: 650; }
.team-page .experts-preview .expert-bio p + p { margin-top: 12px; }
#refund-details { scroll-margin-top: 24px; }
@media (max-width: 900px) {
  .team-page #second-opinion { grid-template-columns: 1fr; }
}

/* Editorial hierarchy and layouts for the first-hire page. */
.team-page :is(.audience-section h2, .program-heading h2, .experts-preview #experts-title, .pricing-preview #pricing-title, .faq-preview h2, .application h2) {
  font-size: clamp(28px, 3vw, 40px); line-height: 1.18; letter-spacing: -.035em;
}
.team-page a:not(.cta, .button, .hero-secondary) { color: var(--accent); text-underline-offset: .2em; }
.team-page .method-band:has(.method-roadmap) {
  background: #eef3fa;
}
.team-page .method-band .method-roadmap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: 28px clamp(32px, 5vw, 72px);
  padding-block: clamp(42px, 6vw, 84px);
}
.team-page .method-band .method-roadmap .method-heading {
  text-align: left;
}
.team-page .method-roadmap .method-heading .section-label {
  margin: 0 0 12px;
  color: #2c4e99;
  font-size: .875rem;
}
.team-page .method-roadmap .method-heading h2 {
  max-width: 19ch;
  font-size: clamp(2rem, 4vw, 3.625rem);
  line-height: 1.06;
  text-wrap: balance;
}
.team-page .method-roadmap > .method-intro {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.team-page .method-roadmap .method-support {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.team-page .method-roadmap .method-support p {
  margin: 0;
  padding: 21px 24px;
  border-top: 2px solid #7798ce;
  background: #f9fbff;
  color: var(--navy);
  font-size: .9375rem;
  line-height: 1.6;
}
.team-page .method-roadmap .method-support strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.0625rem;
  color: var(--accent);
}
.team-page .method-roadmap .method-support + .method-intro {
  grid-column: 1 / -1;
  padding: 19px 23px;
  border-left: 3px solid #3155a5;
  background: #e1eafa;
  color: var(--navy);
}
.team-page .method-roadmap .roadmap-steps {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  gap: 0 clamp(23px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.team-page .method-roadmap .roadmap-steps li,
.team-page .method-roadmap .roadmap-steps li + li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-content: start;
  align-items: baseline;
  gap: 6px 12px;
  padding: 18px 0 15px;
  border: 0;
  border-top: 1px solid #bccbe0;
}
.team-page .method-roadmap .step-number {
  display: block;
  grid-row: span 2;
  margin: 0;
  font-size: .875rem;
  font-weight: 650;
  color: #3155a5;
  font-variant-numeric: tabular-nums;
}
.team-page .method-roadmap .roadmap-steps h3 {
  margin: 0;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.25;
  text-wrap: pretty;
}
.team-page .method-roadmap .roadmap-steps p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.55;
}
@media (max-width: 740px) {
  .team-page .method-band .method-roadmap {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .team-page .method-roadmap .method-heading h2 {
    text-wrap: pretty;
  }
  .team-page .method-roadmap .method-support,
  .team-page .method-roadmap .roadmap-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-page .method-roadmap .method-support {
    gap: 8px;
  }
  .team-page .method-roadmap .method-support p {
    padding: 14px 16px;
  }
  .team-page .method-roadmap .method-support + .method-intro {
    padding: 14px 16px;
  }
  .team-page .method-roadmap .roadmap-steps li,
  .team-page .method-roadmap .roadmap-steps li + li {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 5px 8px;
    padding-block: 13px;
  }
}
.team-page .case-study { max-width: none; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
.team-page .case-study h3 { font-size: clamp(24px, 2.4vw, 32px); max-width: 38ch; line-height: 1.25; margin-bottom: 28px; }







.team-page #second-opinion { margin-block: 56px 64px; }
.team-page #second-opinion .method-part p { font-size: 16px; line-height: 1.6; }
.team-page #second-opinion h3 { font-size: 21px; }
.team-page .program-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; list-style: none; padding: 22px 0; margin: 28px 0 0; border-block: 1px solid var(--rule); }
.team-page .program-facts strong, .team-page .program-facts span { display: block; }
.team-page .program-facts strong { font-size: 18px; margin-bottom: 5px; }
.team-page .program-facts span { font-size: 14px; color: var(--muted); }
.team-page .program-results > h3 { font-size: 25px; }
.team-page .program-schedule { max-width: none; }
.team-page .program-section { padding-bottom: 32px; }
.team-page .experts-preview { padding-block: 48px 64px; }
.team-page .experts-preview .grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 16px 48px; }
.team-page .experts-preview article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px; border: 1px solid var(--rule); border-radius: 16px; background: white; }
.team-page .experts-preview .profile, .team-page .experts-preview .profile > div { display: contents; }
.team-page .experts-preview .profile > .expert-photo { display: block; width: 180px; height: 200px; justify-self: center; align-self: end; border-radius: 10px; background: var(--soft-blue); overflow: hidden; }
.team-page .experts-preview .expert-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; grid-row: auto; }
.team-page .experts-preview .expert-photo--ekaterina img { transform: scale(1.18); transform-origin: 50% 28%; }
.team-page .experts-preview .profile header { text-align: center; align-self: start; }
.team-page .experts-preview h3 { font-size: clamp(22px,2.2vw,28px); line-height: 1.2; }
.team-page .experts-preview .role { margin: 8px 0 0; }
.team-page .experts-preview .profile p { grid-column: auto; font-size: 16px; line-height: 1.6; margin: 0; }
.team-page .experts-preview .profile .expert-bio + p { margin: 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.team-page .pricing-preview { width: min(100% - 96px, 880px); display: block; padding-block: 56px; }
.team-page .pricing-preview #pricing-title { margin-bottom: 24px; }
.team-page .pricing-preview .pricing-intro { max-width: 65ch; font-size: 15px; color: var(--muted); }
.team-page .pricing-preview > div { padding: clamp(24px,4vw,40px); }
.team-page .pricing-preview .button { min-width: 230px; }
.team-page .format-guide { padding-block: 40px; border-top: 0; margin-top: 0; }
.team-page .format-guide h3 { font-size: 23px; margin: 0 0 20px; }
.team-page .format-guide ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; }
.team-page .format-guide li { padding-top: 16px; border-top: 1px solid var(--rule); line-height: 1.6; font-size: 15px; }
.team-page .format-guide li strong { display: block; margin-bottom: 7px; font-size: 17px; line-height: 1.35; }
.team-page .format-guide > p { margin: 24px 0 0; line-height: 1.55; }
@media (max-width: 800px) {
  .team-page .format-guide ul { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 650px) {
  .team-page .program-facts { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .team-page .program-facts strong { font-size: 16px; }
  .team-page .experts-preview .grid { grid-template-columns: 1fr; gap: 28px; }
  .team-page .experts-preview .profile > .expert-photo { width: 160px; height: 180px; }
  .team-page .experts-preview h3 { font-size: 23px; }
  .team-page .pricing-preview { width: calc(100% - 40px); padding-block: 40px; }
}


.team-page .hero-band .lead { color: #dce9fc; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; font-weight: 500; margin-bottom: 24px; text-wrap: balance; }
.team-page .hero-band .lead strong { color: #c3d9f7; font-weight: 750; }
.team-page #second-opinion { color: #f5f8fc; }
.team-page .program-schedule > h3 { margin: 18px 0 6px; font-size: clamp(22px, 2.5vw, 30px); }
.team-page .program-schedule > p { margin: 0 0 14px; }
.team-page .pricing-preview .bonus { background: white; }
.team-page .refund a, .team-page .bonus a { display: inline-block; padding-block: 10px; }

.team-page .faq-band {
  background: #e4ecf8;
  border-block: 1px solid #cbd9ed;
}
.team-page .faq-band .faq-preview { padding-block: clamp(44px, 5.5vw, 72px); }
.team-page .faq-band .faq-preview details {
  border: 1px solid #cbd9ed;
  background: #fcfdff;
}
.team-page .faq-band .faq-preview details[open] { border-color: #91a8cc; }
.team-page .faq-band .faq-preview details + details { margin-top: 8px; }

.team-page .contact-band {
  background: var(--navy);
  color: #f8faff;
}
.team-page .contact-band .contact-section {
  width: min(100% - 96px, 1100px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px 56px;
  padding: clamp(46px, 6vw, 80px) 0;
  background: transparent;
  border: 0;
}
.team-page .contact-band .contact-copy p {
  max-width: 45ch;
  margin: 0;
  color: #dce7f8;
}
.team-page .contact-band .contact-options { margin: 0; }
.team-page .contact-band .contact-options > a {
  min-height: 48px;
  border-color: #98acd0;
  border-radius: 8px;
  background: #f8faff;
  color: var(--navy);
  text-decoration: none;
}
.team-page .contact-band .contact-options > a:hover { background: #dce7f8; }
.team-page .contact-band .contact-options > a:focus-visible { outline-color: #fff; }
@media (max-width: 820px) {
  .team-page .contact-band .contact-section {
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

.team-page .program-section > .case-study {
  padding: clamp(22px, 4vw, 52px);
  border-left: 3px solid #7c9aca;
  background: #eaf0f8;
}
.team-page .program-section > #second-opinion {
  margin-block: clamp(22px, 3.5vw, 48px) clamp(48px, 6vw, 88px);
}
.team-page .program-section > .program-heading {
  margin-bottom: clamp(28px, 4vw, 58px);
  padding-top: clamp(22px, 3vw, 42px);
  border-top: 1px solid #a3b7d4;
}
.team-page .program-heading #program-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
}
.team-page .program-heading .program-facts {
  margin-top: 24px;
  padding: clamp(16px, 2.5vw, 28px);
  border: 0;
  background: #eaf0f8;
}
@media (max-width: 650px) {
  .team-page .program-section > .case-study {
    padding: 18px 16px;
  }
}

.team-page .program-section > .program-results {
  margin: 0;
  padding: clamp(20px, 4vw, 46px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
}
.team-page .program-results > h3,
.team-page .program-schedule > h3 {
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  line-height: 1.13;
  letter-spacing: -.035em;
}
.team-page .program-results > ul {
  column-gap: clamp(20px, 4vw, 52px);
  row-gap: 18px;
}
.team-page .program-results > ul > li {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.team-page .program-results > ul > li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.team-page .program-results > ul > li:last-child:nth-child(odd) p {
  max-width: 86ch;
}
.team-page .program-section > .program-schedule {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: start;
  align-content: start;
  column-gap: clamp(24px, 5vw, 72px);
  margin-top: clamp(36px, 5.5vw, 78px);
  padding: clamp(20px, 4vw, 46px);
  border: 0;
  border-radius: 12px;
  background: #eaf0f8;
}
.team-page .program-section > .program-schedule > h3 {
  scroll-margin-top: 24px;
  grid-column: 1;
  margin: 0;
}
.team-page .program-section > .program-schedule > p {
  grid-column: 1;
  align-self: start;
  margin: 12px 0 0;
  color: var(--muted);
}
.team-page .program-schedule > .program-weeks {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
}
.team-page .program-schedule > .program-weeks .program-week {
  background: #f8fafd;
}
.team-page .program-schedule > .program-weeks .program-week[open] {
  background: #fff;
}
@media (max-width: 760px) {
  .team-page .program-section > .program-schedule {
    display: block;
  }
  .team-page .program-schedule > .program-weeks {
    margin-top: 18px;
  }
}
@media (max-width: 430px) {
  .team-page .program-section > :is(.program-results, .program-schedule) {
    padding-inline: 15px;
  }
}

.team-page .pricing-options {
  width: min(100% - 96px, 1100px);
  padding-block: 58px;
  border: 0;
}
.team-page .pricing-options #pricing-title { margin-bottom: 10px; }
.team-page .pricing-options .pricing-intro { margin-bottom: 28px; font-size: 16px; }
.team-page .pricing-options > .pricing-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  column-gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.pricing-options .price-option {
  min-width: 0;
  padding: clamp(22px, 3.2vw, 36px);
  border: 1px solid #ccd8e9;
  border-radius: 16px;
  background: #fff;
}
.pricing-options .price-option--personal { background: #edf3fd; border-color: #8fa7d4; }
.pricing-options .price-option h3 { margin-bottom: 12px; font-size: 22px; line-height: 1.2; }
.pricing-options .option-price {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(36px, 4.3vw, 58px);
  line-height: 1;
  font-weight: 720;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.pricing-options .option-summary { color: var(--muted); }
.pricing-options .price-option ul { margin: 18px 0 0; padding: 17px 0 0 18px; border-top: 1px solid #d3ddec; }
.pricing-options .price-option li { margin: 0 0 10px; }
.pricing-options .price-option li:last-child { margin-bottom: 0; }
.pricing-options .shared-resources { margin-top: 16px; color: var(--muted); font-size: 15px; }
.team-page .pricing-options .shared-bonus {
  margin-top: 22px;
  padding: 18px 22px;
  border: 1px solid #ccd8e9;
  border-left: 3px solid #6c8dc6;
  border-radius: 10px;
  background: #f8fafd;
}
.pricing-options .shared-bonus h3 { margin-bottom: 5px; font-size: 19px; line-height: 1.3; }
.pricing-options .pricing-action { margin-top: 22px; display: flex; align-items: center; gap: 12px 24px; }
.pricing-options .pricing-action .button { flex: none; min-width: 0; width: auto; }
.pricing-options .pricing-action .refund { margin: 0; max-width: 69ch; }
.pricing-options .pricing-action .refund a { padding: 0; }
@media (width > 700px) {
  .pricing-options .price-option {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
  }
}
@media (max-width: 700px) {
  .team-page .pricing-options { width: calc(100% - 36px); padding-block: 36px; }
  .team-page .pricing-options > .pricing-comparison { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pricing-options .pricing-action { flex-direction: column; align-items: stretch; }
}
