/* /mentor (web/mentor.html): Whizply for mentors, sold as its own product (owner-approved option A, R4.1, 14 Nov).
 *
 * ONE TYPE SCALE, the site's tokens; a title is always bigger than its sub-line, the sub-line bigger than body,
 * and nothing small sits above a bigger heading (owner, 14 Nov):
 *   H1 the page name     --fs-h1 (40 -> 30)    800   .ml-h1       "Whizply for mentors": the largest text
 *   hero subheading      --fs-sub (24 -> 20)   600   .ml-tagline  the owner's punch line ("Get discovered by ...")
 *   H2 section           --fs-h2 (28 -> 24)    700   .ml-h2       (also the closing band)
 *   sub-line / lede      --fs-lead 16          500   .ml-sub
 *   H3 card / step       --fs-lead 16          700   .ml-h3
 *   body                 --fs-md 14.5          500
 *   meta, chips, fine    --fs-sm 13.5          600   (the Sample pill --fs-xs caps)
 *   figures              --fs-figure (26 -> 22) 800
 * RHYTHM: a section is 32px top and bottom (24 on phones); a head sits 16px above its content.
 * COLOUR: the six hue pairs of /free-courses (light + dark); bands use the palette's violet / mint band tokens;
 * text is always an ink token (no grey). Numbers are product facts only (no mentor counts or earnings). */

.ml-page { --ml-pad: 32px; }
.ml-wrap { max-width: 1180px; margin: 0 auto; }

/* ---- hues (same values as Free courses) ---- */
.ml-page {
  --ml-h0-bg: #EEE7FF; --ml-h0-ink: #3B1F91; --ml-h0-mark: #6A45E0;
  --ml-h1-bg: #E1EBFF; --ml-h1-ink: #183577; --ml-h1-mark: #2F64D9;
  --ml-h2-bg: #DCF4E8; --ml-h2-ink: #134A36; --ml-h2-mark: #1E8C62;
  --ml-h3-bg: #FBE2F0; --ml-h3-ink: #721A51; --ml-h3-mark: #C53D8E;
  --ml-h4-bg: #FFF0CB; --ml-h4-ink: #573A00; --ml-h4-mark: #C28A00;
  --ml-h5-bg: #D8F1F5; --ml-h5-ink: #0F4E59; --ml-h5-mark: #1B8DA0;
  --ml-art-tile: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ml-page {
    --ml-h0-bg: #2B1E55; --ml-h0-ink: #ECE4FF; --ml-h0-mark: #A88BFF;
    --ml-h1-bg: #172A55; --ml-h1-ink: #DFE9FF; --ml-h1-mark: #7EA6FF;
    --ml-h2-bg: #113629; --ml-h2-ink: #D5F6E7; --ml-h2-mark: #4FD49D;
    --ml-h3-bg: #3C1530; --ml-h3-ink: #FCDFEF; --ml-h3-mark: #F07DC0;
    --ml-h4-bg: #372A09; --ml-h4-ink: #FFEDC4; --ml-h4-mark: #F2C04A;
    --ml-h5-bg: #0E3540; --ml-h5-ink: #D4F2F7; --ml-h5-mark: #5BCFE2;
    --ml-art-tile: #F6F3FF;
  }
}
:root[data-theme="dark"] .ml-page {
  --ml-h0-bg: #2B1E55; --ml-h0-ink: #ECE4FF; --ml-h0-mark: #A88BFF;
  --ml-h1-bg: #172A55; --ml-h1-ink: #DFE9FF; --ml-h1-mark: #7EA6FF;
  --ml-h2-bg: #113629; --ml-h2-ink: #D5F6E7; --ml-h2-mark: #4FD49D;
  --ml-h3-bg: #3C1530; --ml-h3-ink: #FCDFEF; --ml-h3-mark: #F07DC0;
  --ml-h4-bg: #372A09; --ml-h4-ink: #FFEDC4; --ml-h4-mark: #F2C04A;
  --ml-h5-bg: #0E3540; --ml-h5-ink: #D4F2F7; --ml-h5-mark: #5BCFE2;
  --ml-art-tile: #F6F3FF;
}
.ml-c0 { --tile-mark: #6A45E0; --bg: var(--ml-h0-bg); --ink-h: var(--ml-h0-ink); --mark: var(--ml-h0-mark); }
.ml-c1 { --tile-mark: #2F64D9; --bg: var(--ml-h1-bg); --ink-h: var(--ml-h1-ink); --mark: var(--ml-h1-mark); }
.ml-c2 { --tile-mark: #1A7F59; --bg: var(--ml-h2-bg); --ink-h: var(--ml-h2-ink); --mark: var(--ml-h2-mark); }
.ml-c3 { --tile-mark: #B8327F; --bg: var(--ml-h3-bg); --ink-h: var(--ml-h3-ink); --mark: var(--ml-h3-mark); }
.ml-c4 { --tile-mark: #946400; --bg: var(--ml-h4-bg); --ink-h: var(--ml-h4-ink); --mark: var(--ml-h4-mark); }
.ml-c5 { --tile-mark: #16808F; --bg: var(--ml-h5-bg); --ink-h: var(--ml-h5-ink); --mark: var(--ml-h5-mark); }

/* ---- type ---- */
.ml-h1 { margin: 0; font-family: var(--font-display); font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 800; letter-spacing: var(--ls-h1); color: var(--ink-heading); text-wrap: balance; }
.ml-tagline { margin: 12px 0 0; font-family: var(--font-display); font-size: var(--fs-sub); line-height: var(--lh-h2); font-weight: 600; letter-spacing: var(--ls-h2); color: var(--ink-heading); text-wrap: balance; }
.ml-h2 { margin: 0; font-family: var(--font-display); font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; letter-spacing: var(--ls-h2); color: var(--ink-heading); text-wrap: balance; }
.ml-h3 { margin: 0; font-size: var(--fs-lead); line-height: 1.35; font-weight: 700; color: inherit; }
.ml-sub { margin: 8px 0 0; font-size: var(--fs-lead); line-height: 1.5; font-weight: 500; color: var(--ink); max-width: 62ch; }
:where(.ml-page p) { font-size: var(--fs-md); line-height: 1.55; }
.ml-fine { margin: 14px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.ml-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--pill); font-size: var(--fs-sm); font-weight: 700;
  background: var(--accent-soft); color: var(--accent-ink); }
.ml-sample { display: inline-block; padding: 1px 8px; border-radius: var(--pill); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ml-h4-bg); color: var(--ml-h4-ink); }

/* ---- sections, bands, heads ---- */
.ml-sec { padding: var(--ml-pad) 24px; }
.ml-band--violet { background: var(--band-violet-bg); }
.ml-band--mint { background: var(--band-mint-bg); }
.ml-band--violet .ml-h2 { color: var(--band-violet-heading); }
.ml-band--mint .ml-h2 { color: var(--band-mint-heading); }
.ml-band--violet .ml-sub { color: var(--band-violet-ink); }
.ml-band--mint .ml-sub { color: var(--band-mint-ink); }
.ml-head { margin-bottom: 16px; }
.ml-split .ml-checks { margin-top: 16px; }
.ml-sec--tight { padding-top: 0; }
.ml-mcard__head .ml-sample { margin-left: auto; font-size: var(--fs-xs); font-weight: 800; }
.ml-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--fs-md); font-weight: 700; color: var(--accent-deep);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.ml-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; }

/* ---- hero ---- */
.ml-hero { padding: 32px 24px; background: var(--wash-hero); }
.ml-hero .ml-tagline + .ml-sub { margin-top: 12px; }
.ml-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px 40px; align-items: center; }
.ml-hero__art { position: relative; display: grid; place-items: center; padding: 28px 8px; }
.ml-blob { position: absolute; inset: 0 6%; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 35% 30%, var(--ml-h5-bg), transparent 60%), radial-gradient(circle at 70% 70%, var(--ml-h3-bg), transparent 60%), var(--ml-h0-bg); }
.ml-float { position: absolute; z-index: 2; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--ml-art-tile);
  box-shadow: var(--shadow), inset 0 0 0 2px var(--tile-mark); }
.ml-float img { width: 36px; height: 36px; }
.ml-float--1 { left: 0; top: 12%; transform: rotate(-6deg); }
.ml-float--2 { right: 0; bottom: 12%; transform: rotate(5deg); }
/* the sample mentor page: a browser bar, the head in the violet pair, plans in three hue pairs, a week and times */
.ml-pm { position: relative; z-index: 1; pointer-events: none; user-select: none; width: 100%; max-width: 380px; margin: 0; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); color: var(--ink); }
.ml-pm__bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ml-pm__dots { display: flex; gap: 4px; }
.ml-pm__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.ml-pm__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); font-weight: 600; color: var(--ink); }
.ml-pm__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ml-h0-bg); color: var(--ml-h0-ink); }
.ml-pm__avatar { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--ml-art-tile); color: var(--ml-h0-mark); font-weight: 800; font-size: var(--fs-md); }
/* the sample page's one-line title ("Product manager · 8 years") never wraps (Inter is wider than the old face): the Verified pill
   drops to its own row when the card is too narrow for both */
.ml-pm__head { flex-wrap: wrap; }
.ml-pm__who { display: grid; min-width: max-content; }
.ml-pm__who > span { white-space: nowrap; }
.ml-pm__who b { font-size: var(--fs-lead); }
.ml-pm__who > span { font-size: var(--fs-sm); font-weight: 600; }
.ml-pm__verified { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 10px; border-radius: var(--pill); background: var(--ok); color: var(--ok-ink); font-size: var(--fs-xs); font-weight: 800; white-space: nowrap; }
.ml-pm__body { display: grid; gap: 8px; padding: 14px 16px 16px; }
.ml-pm__label { margin: 4px 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-heading, var(--ink)); }
.ml-pm__plans, .ml-pm__days, .ml-pm__slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ml-pm__plans { display: grid; }
.ml-pm__plans li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: var(--r-md); background: var(--bg); color: var(--ink-h); font-size: var(--fs-sm); }
.ml-pm__plans li span { font-weight: 600; }
.ml-pm__days li, .ml-pm__slots li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--pill); border: 1px solid var(--line-strong); font-size: var(--fs-xs); font-weight: 700; color: var(--ink); }
/* the picked day and time are tinted, not filled: only "Apply to mentor" is a solid button on the page */
.ml-pm__days li.is-on, .ml-pm__slots li.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.ml-pm__meet { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.ml-pm__meet svg { flex: none; color: var(--ml-h2-mark); }

/* stat tiles: real product numbers only */
.ml-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.ml-stats li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--bg); color: var(--ink-h); }
.ml-stats__ic { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--ml-art-tile); color: var(--tile-mark); }
.ml-stats li > span:last-child { display: grid; }
.ml-stats b { font-size: var(--fs-figure); line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.ml-stats li > span:last-child > span { font-size: var(--fs-sm); font-weight: 600; }

/* ---- what you get: 6 hue cards with our spot art ---- */
.ml-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ml-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; align-content: start; padding: 16px; border-radius: var(--r-lg); background: var(--bg); color: var(--ink-h); }
.ml-card__art { grid-row: 1 / span 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--ml-art-tile); }
.ml-card__art img { width: 44px; height: 44px; }
.ml-card .ml-h3 { color: var(--ink-h); align-self: end; }
.ml-card p { margin: 0; color: var(--ink-h); font-weight: 500; }

/* ---- steps: apply -> verify -> set up -> get booked -> get paid ---- */
.ml-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ml-steps li { position: relative; display: grid; align-content: start; gap: 6px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ml-steps__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--btn-accent); color: var(--btn-accent-ink); font-size: var(--fs-sm); font-weight: 800; }
.ml-steps .ml-h3 { color: var(--ink-heading); }
.ml-steps p { margin: 0; color: var(--ink); font-weight: 500; }

/* ---- privacy split: sample card + checks ---- */
.ml-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 40px; align-items: center; }
.ml-mcard { max-width: 400px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); }
.ml-mcard__head { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--ml-h0-bg); color: var(--ml-h0-ink); }
.ml-mcard__logo { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--ml-art-tile); color: var(--ml-h0-mark); font-weight: 800; font-size: var(--fs-md); }
.ml-mcard__head b { display: block; font-size: var(--fs-lead); }
.ml-mcard__head span { font-size: var(--fs-sm); font-weight: 600; }
.ml-mcard__body { display: grid; gap: 10px; padding: 16px; }
.ml-mcard__body p { margin: 0; font-weight: 500; }
.ml-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ml-chips li { padding: 3px 10px; border-radius: var(--pill); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); background: var(--surface); }
.ml-mcard__hidden { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px dashed var(--line-strong); font-size: var(--fs-sm); font-weight: 700; color: var(--ink); background: var(--surface-2); }
.ml-checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ml-checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; align-items: start; }
.ml-checks__ic { grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--btn-accent); color: var(--btn-accent-ink); }
.ml-checks b { font-size: var(--fs-lead); font-weight: 700; color: var(--ink-heading); }
.ml-checks span:not(.ml-checks__ic) { font-size: var(--fs-md); line-height: 1.5; font-weight: 500; color: var(--ink); }

/* ---- who it is for: two sides ---- */
.ml-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ml-side { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: var(--r-lg); background: var(--bg); color: var(--ink-h); }
.ml-side .ml-h3 { color: var(--ink-h); }
.ml-side p { margin: 0; color: var(--ink); font-weight: 500; }
.ml-side .ml-chips li { background: var(--ml-art-tile); border-color: transparent; color: #1B1B2A; }
.ml-side .ml-link { color: var(--accent-deep); margin-top: auto; }

/* ---- FAQ ---- */
.ml-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; align-items: start; }
.ml-faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.ml-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; cursor: pointer; list-style: none;
  font-size: var(--fs-md); font-weight: 700; color: var(--ink-heading); }
.ml-faq summary::-webkit-details-marker { display: none; }
.ml-faq summary::after { content: "+"; font-size: var(--fs-lead); font-weight: 800; color: var(--accent-deep); }
.ml-faq details[open] summary::after { content: "\2212"; }
.ml-faq details p { margin: 0; padding: 0 16px 14px; color: var(--ink); font-weight: 500; }

/* ---- closing band ---- */
.ml-cta { display: flex; align-items: center; gap: 24px; padding: 20px 28px; border-radius: 24px; background: var(--band-violet-bg); }
.ml-cta .ml-h2 { color: var(--band-violet-heading); }
.ml-cta .ml-sub { color: var(--band-violet-ink); }
.ml-cta__bot { width: 140px; height: auto; flex-shrink: 0; }
.ml-cta__text { flex: 1; }

/* ---- smaller screens ---- */
@media (max-width: 1100px) {
  .ml-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ml-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ml-page { --ml-pad: 24px; }
  .ml-sec { padding-left: 16px; padding-right: 16px; }
  .ml-hero { padding: 24px 16px 28px; }
  .ml-hero__grid, .ml-split, .ml-sides, .ml-faq { grid-template-columns: minmax(0, 1fr); }
  .ml-hero__art { padding: 24px 0 8px; }
  .ml-blob { inset: 0 2%; }
  .ml-float { width: 44px; height: 44px; border-radius: 12px; }
  .ml-float img { width: 26px; height: 26px; }
  .ml-float--1 { top: 0; } .ml-float--2 { bottom: 0; }
  .ml-stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ml-stats li { gap: 12px; padding: 10px 12px; }
  .ml-cards, .ml-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ml-card { padding: 12px; grid-template-columns: 52px minmax(0, 1fr); }
  .ml-card__art { width: 52px; height: 52px; border-radius: 12px; }
  .ml-card__art img { width: 36px; height: 36px; }
  .ml-steps li { grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding: 12px; }
  .ml-steps__n { grid-row: 1 / span 2; }
  .ml-ctas .xbtn { width: 100%; justify-content: center; }
  .ml-pm__head { gap: 10px; padding: 14px 12px; }
  .ml-pm__verified { padding: 3px 8px; }
  .ml-cta { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .ml-cta__bot { width: 110px; }
}
