/* Insured Care v2 (2026-10-26): grouped menu with dropdowns, caregiver sections,
   team, quick start, request form. Uses the same tokens, fonts and components
   as site.css and the homepage. Loaded last on every page. */

/* ---------- Header and menu ---------- */
.topbar-inner { flex-wrap: nowrap; }
.mainnav { display: flex; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--navy); background: none; border: none; cursor: pointer; padding: 10px 12px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
.nav-top:hover, .nav-item.open > .nav-top, .nav-top[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dk); }
.nav-top svg { width: 14px; height: 14px; transition: transform .15s; }
.nav-item.open > .nav-top svg { transform: rotate(180deg); }
.nav-top:focus-visible, .sub a:focus-visible, .menu-btn:focus-visible, .mm-group > button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sub { list-style: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 60; }
.nav-item.open > .sub { display: block; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.sub a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sub a:hover { background: var(--sand); color: var(--navy); }
.sub .sub-lead { font-weight: 800; color: var(--teal-dk); }
.sub .ext::after { content: " \2197"; font-size: 13px; color: var(--muted); }
.top-actions { flex: none; }
.top-actions .btn { white-space: nowrap; }
.menu-btn { display: none; align-items: center; gap: 8px; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; min-height: 46px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 70px); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mm-inner { padding: 10px 0 22px; }
.mm-group { border-bottom: 1px solid var(--line); }
.mm-group > button, .mm-group > a { width: 100%; display: flex; justify-content: space-between; align-items: center; font-family: inherit; font-size: 18px; font-weight: 800; color: var(--navy); background: none; border: none; padding: 16px 4px; min-height: 56px; cursor: pointer; text-decoration: none; text-align: left; }
.mm-group > button svg { width: 18px; height: 18px; transition: transform .15s; }
.mm-group > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.mm-panel { list-style: none; padding: 0 0 12px; margin: 0; }
.mm-panel[hidden] { display: none; }
.mm-panel a { display: block; padding: 12px 14px; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 10px; }
.mm-panel a:hover { background: var(--sand); }
.mm-actions { display: grid; gap: 10px; margin-top: 18px; }
.mm-actions .btn { width: 100%; min-height: 54px; font-size: 18px; }
.cg-strip { display: none; }

@media (max-width: 1100px) {
  .mainnav { display: none !important; }
  .menu-btn { display: inline-flex; }
  .top-actions .btn:not(.join-btn) { display: none; }
}
@media (max-width: 600px) {
  .top-actions .join-btn { display: none !important; }
  .cg-strip { display: block; text-align: center; background: var(--accent-soft); color: #6b4a1a; font-size: 16px; font-weight: 600; padding: 11px 18px; text-decoration: none; border-top: 1px solid #ecd6b6; line-height: 1.4; }
  .cg-strip strong { color: #94601f; text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- Shared section heads ---------- */
.v2-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.v2-head .lede { margin: 0 auto; max-width: 640px; }
.v2-head h2 { margin-bottom: 12px; }

/* ---------- Caregiver band (homepage, right under hero) ---------- */
.join-band { background: var(--navy); color: #fff; padding: 44px 0; }
.join-band .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.join-band .eyebrow { color: #8fd3cf; }
.join-band h2 { color: #fff; margin-bottom: 10px; }
.join-band p { color: rgba(255,255,255,.82); font-size: 17px; margin: 0; }
.band-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 16px 0 0; padding: 0; }
.band-points li { position: relative; padding-left: 26px; color: #fff; font-weight: 600; font-size: 15.5px; }
.band-points li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 11px; height: 6px; border-left: 2.5px solid #8fd3cf; border-bottom: 2.5px solid #8fd3cf; transform: rotate(-45deg); }
.band-cta { display: grid; gap: 10px; justify-items: stretch; }
.band-cta .btn { width: 100%; }
.band-cta .note { color: rgba(255,255,255,.7); font-size: 14px; text-align: center; }

/* ---------- Benefits grid ---------- */
.perk-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; }
.perk-grid li { background: #fff; border: 1px solid var(--sand-dk); border-radius: 16px; padding: 22px 22px 20px; }
.perk-grid strong { display: block; color: var(--navy); font-size: 17.5px; line-height: 1.3; margin-bottom: 6px; }
.perk-grid span { display: block; color: var(--muted); font-size: 15px; line-height: 1.55; }
.perk-grid .tick { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dk); margin-bottom: 12px; }
.perk-grid .tick svg { width: 18px; height: 18px; }

/* ---------- 3 steps for caregivers ---------- */
.cg-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; counter-reset: s; }
.cg-steps li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.cg-steps .n { width: 42px; height: 42px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 800; font-size: 19px; display: grid; place-items: center; margin-bottom: 14px; }
.cg-steps h3 { font-size: 19px; margin-bottom: 6px; }
.cg-steps p { color: var(--muted); font-size: 15.5px; margin: 0; }

.student-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid #ecd6b6; border-radius: 18px; padding: 22px 26px; margin-top: 22px; }
.student-note h3 { font-size: 20px; margin-bottom: 4px; }
.student-note p { margin: 0; color: #6b4a1a; font-size: 16px; }
.student-note .btn { width: auto; }

/* ---------- Team ---------- */
.team-row { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 28px; margin: 0; padding: 0; }
.team-person { text-align: center; }
.team-person img { width: 100%; aspect-ratio: 400 / 460; object-fit: cover; object-position: center 20%; border-radius: 22px; box-shadow: var(--shadow); background: var(--sand); margin-bottom: 14px; }
.team-person h3 { font-size: 20px; margin-bottom: 2px; }
.team-person p { color: var(--muted); font-size: 15.5px; margin: 0; }
.team-contact { text-align: center; margin: 28px auto 0; color: var(--ink); font-size: 16.5px; max-width: 640px; }
.team-contact a { color: var(--teal-dk); font-weight: 700; }

/* ---------- Founding caregivers ---------- */
.founder-row { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; }
.founder { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.founder .avatar { flex: none; }
.founder h3 { font-size: 19px; margin-bottom: 2px; }
.founder p { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.founder p:first-of-type { font-weight: 700; color: var(--ink); }
.founder a { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--teal-dk); font-size: 15px; }

/* ---------- Contact band ---------- */
.contact-band { background: var(--teal-soft); padding: 48px 0; }
.contact-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact-band h2 { margin-bottom: 6px; }
.contact-band p { margin: 0; color: var(--ink); font-size: 17px; }
.contact-band a:not(.btn) { color: var(--teal-dk); font-weight: 700; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-actions .btn { width: auto; }

/* ---------- Draft pages (privacy, terms, job) ---------- */
.doc-sec { padding: 48px 0 80px; }
.doc { max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); color: var(--navy); line-height: 1.15; margin-bottom: 14px; }
.doc h2 { font-size: 23px; margin: 30px 0 10px; }
.doc p, .doc li { font-size: 17px; color: var(--ink); line-height: 1.65; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc li { margin-bottom: 6px; }
.draft-flag { background: var(--accent-soft); color: #6b4a1a; border: 1px solid #ecd6b6; border-radius: 14px; padding: 14px 18px; font-size: 16px; font-weight: 700; margin: 0 0 22px; }
.ph { background: #fff4c7; color: #6b4a1a; border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.job-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 6px; padding: 0; list-style: none; }
.job-facts li { background: var(--sand); border-radius: 14px; padding: 14px 16px; margin: 0; }
.job-facts b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }

/* ---------- Copy line links ---------- */
.copy a { color: rgba(255,255,255,.75); margin-left: 14px; }

@media (max-width: 960px) {
  .join-band .wrap { grid-template-columns: 1fr; }
  .perk-grid, .cg-steps, .founder-row { grid-template-columns: 1fr 1fr; }
  .team-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 600px) {
  .v2-head { margin-bottom: 26px; }
  .v2-head .lede { font-size: 18px; }
  .join-band { padding: 40px 0; text-align: center; }
  .join-band p { font-size: 18px; }
  .band-points { grid-template-columns: 1fr; text-align: left; max-width: 320px; margin: 18px auto 0; }
  .band-points li { font-size: 17px; }
  .band-cta .btn { min-height: 56px; font-size: 18px; }
  .band-cta .note { font-size: 15.5px; }
  .perk-grid, .cg-steps, .founder-row { grid-template-columns: 1fr; }
  .perk-grid li, .cg-steps li { text-align: center; }
  .perk-grid strong, .cg-steps h3 { font-size: 20px; }
  .perk-grid span, .cg-steps p { font-size: 17px; }
  .cg-steps .n { margin: 0 auto 12px; }
  .student-note { flex-direction: column; text-align: center; padding: 22px 20px; }
  .student-note p { font-size: 17px; }
  .student-note .btn { width: 100%; min-height: 54px; }
  .team-row { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; gap: 26px; }
  .team-person h3 { font-size: 21px; }
  .team-person p { font-size: 17px; }
  .team-contact { font-size: 17px; }
  .team-contact a { display: inline-block; padding: 6px 0; }
  .founder { flex-direction: column; align-items: center; text-align: center; }
  .founder h3 { font-size: 21px; }
  .founder p { font-size: 17px; }
  .founder a { font-size: 17px; padding: 8px 0; }
  .contact-band .wrap { flex-direction: column; text-align: center; }
  .contact-band p { font-size: 18px; }
  .contact-actions { flex-direction: column; width: 100%; }
  .contact-actions .btn { width: 100%; min-height: 54px; }
  .doc p, .doc li { font-size: 18px; }
  .doc h1 { text-align: center; }
  .job-facts { grid-template-columns: 1fr; }
  .copy a { display: inline-block; padding: 10px 0; margin: 0 14px 0 0; }
}

/* Homepage additions */
.cg-steps-title { text-align: center; font-size: 24px; margin-bottom: 18px; }
.cg-more { margin-top: 48px; }
.join-band .band-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.join-band .band-ghost:hover { color: #fff; border-color: #fff; }
.home-who { padding: 80px 0; }
@media (max-width: 600px) {
  .cg-steps-title { font-size: 22px; }
  .home-who { padding: 56px 0; }
}
a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 600px) {
  .team-row { max-width: 220px; }
  .hero .eyebrow, .hero h1, .hero .lede, .hero .search-note { text-align: center; }
  .hero .hero-chips .lbl { text-align: center; }
  .hero .hero-chips .chips, .hero .trust-row { justify-content: center; }
  .hero .lede, .hero .search-note { font-size: 18px; }
}

/* Caregiver request dialog */
.req-dialog { overflow-y: auto; overscroll-behavior: contain; }
.req-dialog .f-err { display: block; margin-top: 4px; }
.opt { font-weight: 600; color: var(--muted); font-size: .88em; }
.req-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.req-radios { display: grid; gap: 8px; }
.req-rate-copy { background: var(--teal-soft); color: var(--teal-dk); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 15px; margin: 6px 0 14px; }
.req-submit { width: 100%; }
.req-done { text-align: center; padding: 22px 18px; margin-top: 4px; outline: none; }
.req-done h3 { color: var(--navy); font-size: 21px; margin-bottom: 8px; }
.req-done p { font-weight: 500; color: var(--ink); font-size: 16px; margin-bottom: 16px; }
@media (max-width: 600px) {
  .req-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .req-checks { grid-template-columns: 1fr; }
  .req-checks label, .req-radios label { font-size: 17px; }
  .req-rate-copy { font-size: 16.5px; text-align: center; }
  .req-done h3 { font-size: 22px; }
  .req-done p { font-size: 17px; }
}
.req-dialog .f-err[hidden], .req-dialog [hidden] { display: none !important; }
.team-person p.team-role { color: var(--teal); font-weight: 700; margin-bottom: 2px; }
