/* Version 2 — "How to get involved". Layout (1440px): 46px headline, step
   tabs 191px wide with a 60px gap and a 2px underline (#eee, active line on top), then an 883px #f9f9f9 box (16px
   radius, 20px padding, 1px #eee) holding a coloured block (12px radius) with "Step N" at 46px/500 and a 22px/500 line
   in white, and a mock screen on the right. Client additions: two audience tabs above the steps that switch the
   section colour — individuals and families = navy teal #0A4550, healthcare and wellness partners = orange #FB5612. */
.how2 { --tone: #0a4550; --tone-soft: #e3eef0; --tone-ink: #0a4550; padding: var(--sec-y) 15px; background: #fff; font-family: var(--v2-sans); color: var(--ink-900); transition: --tone .5s; }
.how2[data-aud="partner"] { --tone: #fb5612; --tone-soft: #fff0e8; --tone-ink: #b33a05; }
.how2__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.how2__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px; background: #fff; box-shadow: 0 1px 2px rgba(10,69,80,.06), 0 6px 18px -12px rgba(10,69,80,.3), inset 0 0 0 1px #eef1f1; font-size: 14px; font-weight: 500; line-height: 1; }
.how2__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--tone); transition: background-color .5s; }
.how2__title { margin-top: 20px; font-size: 46px; font-weight: 500; line-height: 1.04; letter-spacing: -.03em; }
.how2__title em { font-family: var(--v2-serif); font-style: italic; font-weight: 500; color: var(--tone); transition: color .5s; }

/* audience switch */
.aud { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 34px; padding: 5px; border-radius: 100px; background: #f2f4f4; box-shadow: inset 0 0 0 1px #e8ecec; }
.aud__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 100px; background: var(--tone); box-shadow: 0 8px 20px -10px var(--tone); transition: transform .6s var(--v2-ease), background-color .5s; }
.how2[data-aud="partner"] .aud__pill { transform: translateX(100%); }
.aud__b { position: relative; z-index: 1; min-height: 46px; padding: 0 22px; border: 0; border-radius: 100px; background: none; font: 500 15px/1.2 var(--v2-sans); color: var(--ink-500); cursor: pointer; transition: color .4s; white-space: nowrap; }
.aud__b[aria-selected="true"] { color: #fff; }

/* step tabs */
.how2__steps { display: flex; justify-content: center; align-items: flex-end; gap: 60px; margin-top: 34px; }
.stab { position: relative; width: 191px; min-height: 44px; padding: 10px 0 12px; border: 0; border-bottom: 2px solid #eee; background: none; text-align: left; font: 400 16px/1.35 var(--v2-sans); color: var(--ink-500); cursor: pointer; transition: color .3s; }
.stab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--tone); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--v2-ease), background-color .5s; }
.stab[aria-selected="true"] { color: var(--ink-900); }
.stab[aria-selected="true"]::after { transform: none; }
.stab:hover { color: var(--ink-900); }

/* the box and the coloured block */
.how2__box { width: min(100%, 883px); margin: 40px auto 0; padding: 20px; border-radius: 16px; background: #f9f9f9; box-shadow: inset 0 0 0 1px #eee; }
.sblock { display: grid; grid-template-columns: 1fr 380px; gap: 30px; min-height: 470px; padding: 25px 25px 25px 40px; border-radius: 12px; background: var(--tone); color: #fff; transition: background-color .5s; overflow: hidden; }
.sblock[hidden] { display: none; }
.sblock__copy { padding-top: 34px; }
.sblock__n { font-size: 46px; font-weight: 500; line-height: 1.04; letter-spacing: -.03em; }
.sblock__t { margin-top: 44px; font-size: 22px; font-weight: 500; line-height: 1.15; max-width: 15ch; }
.sblock__d { margin-top: 12px; font-size: 16px; line-height: 1.4; opacity: .85; max-width: 26ch; }
.sblock.is-enter .sblock__copy > *, .sblock.is-enter .mock { animation: sIn .7s var(--v2-ease) both; }
.sblock.is-enter .sblock__t { animation-delay: .06s; } .sblock.is-enter .sblock__d { animation-delay: .12s; } .sblock.is-enter .mock { animation-delay: .08s; }
@keyframes sIn { from { opacity: 0; transform: translateY(18px); } }

/* mock screens (CrysMed, drawn in HTML/CSS) */
.mock { align-self: start; padding: 20px; border-radius: 14px; background: #fff; color: var(--ink-900); font-size: 13px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.mock__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.mock__brand img { height: 22px; width: auto; }
.mock__h { margin-top: 18px; font-size: 16px; font-weight: 600; }
.mock__s { margin-top: 3px; font-size: 11.5px; color: var(--ink-500); }
.mock__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.mock__opt { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: #f6f7f7; font-size: 11.5px; font-weight: 500; }
.mock__opt i { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.mock__opt i svg { width: 14px; height: 14px; }
.mock__opt.is-on { background: var(--tone); color: #fff; } .mock__opt.is-on i { color: var(--tone); }
.mock__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mock__f { display: grid; gap: 5px; font-size: 11.5px; font-weight: 500; }
.mock__f.full { grid-column: 1 / -1; }
.mock__in { padding: 9px 12px; border-radius: 99px; background: #f6f7f7; color: #8a9090; font-weight: 400; }
.mock__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mock__chip { padding: 5px 10px; border-radius: 99px; background: #f6f7f7; font-size: 11px; }
.mock__chip.is-on { background: var(--tone-soft); color: var(--tone-ink); font-weight: 600; }
.mock__btn { margin-top: 14px; padding: 11px; border-radius: 99px; background: var(--tone); color: #fff; text-align: center; font-weight: 600; font-size: 12.5px; }
/* chat */
.mock__chat { display: grid; gap: 10px; margin-top: 16px; }
.mock__who { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #eef1f1; }
.mock__ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tone); }
.mock__ava img { width: 16px; }
.mock__on { font-size: 11px; color: #1d7654; }
.bub { max-width: 86%; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; }
.bub--me { justify-self: end; background: var(--tone); color: #fff; border-bottom-right-radius: 4px; }
.bub--them { background: #f2f4f4; border-bottom-left-radius: 4px; }
.bub small { display: block; margin-top: 4px; font-size: 10px; opacity: .7; text-align: right; }
.mock__typing { display: flex; gap: 4px; padding: 10px 12px; width: max-content; border-radius: 12px; background: #f2f4f4; }
.mock__typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3a3; animation: typing 1.2s infinite; }
.mock__typing i:nth-child(2) { animation-delay: .15s; } .mock__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .5; } }
/* updates */
.mock__list { display: grid; gap: 8px; margin-top: 14px; }
.mock__row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; background: #f6f7f7; font-weight: 500; }
.mock__row i { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #fff; color: var(--tone); }
.mock__row i svg { width: 15px; height: 15px; }
.mock__tag { margin-left: auto; padding: 4px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.mock__tag--ok { background: #e3f3ec; color: #1d7654; } .mock__tag--soon { background: #fff4dc; color: #8a5a00; } .mock__tag--tone { background: var(--tone-soft); color: var(--tone-ink); }
.mock__bell { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--tone-soft); color: var(--tone-ink); font-size: 12px; font-weight: 500; }
.mock__bell svg { width: 18px; height: 18px; flex: none; }

/* entrances */
.js .how2 [data-up] { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--v2-ease), transform .95s var(--v2-ease); transition-delay: var(--d, 0s); }
.js .how2.is-in [data-up] { opacity: 1; transform: none; }

@media (max-width: 991px) {
  .how2__steps { gap: 24px; }
  .stab { width: auto; flex: 1; max-width: 200px; }
  .sblock { grid-template-columns: 1fr 340px; padding-left: 28px; }
}
@media (max-width: 760px) {

  .how2__title { font-size: 36px; }
  .aud { display: grid; width: 100%; max-width: 420px; }
  .aud__b { padding: 0 10px; font-size: 13px; white-space: normal; line-height: 1.2; min-height: 52px; }
  .how2__steps { gap: 10px; margin-top: 32px; }
  .stab { font-size: 13.5px; }
  .how2__box { padding: 10px; }
  .sblock { grid-template-columns: 1fr; min-height: 0; padding: 26px 18px 18px; gap: 22px; }
  .sblock__copy { padding-top: 0; }
  .sblock__n { font-size: 36px; }
  .sblock__t { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .how2 [data-up] { opacity: 1; transform: none; transition: none; }
  .sblock.is-enter .sblock__copy > *, .sblock.is-enter .mock, .mock__typing i { animation: none; }
  .aud__pill, .stab::after { transition: none; }
}
