/* Coaches, Testimonials, Our Story and Members (src/views/inner.tsx, src/routes/members.tsx) in the v2 home page theme:
   a dark hero band, white and #f5f6f8 sections, green accents (#8ee06a on dark, #2b8a1a on light). */
.ip, .ip * { box-sizing: border-box; }
.main.wide:has(> .ip) { padding-bottom: 0; }
.ip { color: #0f1216; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
.ip a { text-decoration: none; }
.ip-wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.ip-grey { background: #f5f6f8; }
.ip-body { padding-top: 56px; padding-bottom: 80px; }
.ip-body-tight { padding-top: 36px; padding-bottom: 72px; }
.ip h2 { margin: 0; }

/* hero bands */
.ip-hero { position: relative; overflow: hidden; background: #0b0d10; color: #e9ebef; }
.ip-hero-grid::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 60% 90% at 80% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 90% at 80% 30%, #000 10%, transparent 70%); }
.ip-hero-glow::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 380px at 85% 0%, rgba(142,224,106,.10), transparent 70%); }
.ip-hero-inner { position: relative; padding-top: 64px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }
.ip-hero h1 { margin: 0; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; color: #fff; }
.ip-hero .ip-h1-sm { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -.035em; }
.ip-lead { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.6; color: #a3a8b3; text-wrap: pretty; }
.ip-lead-sm { max-width: 480px; font-size: 15.5px; line-height: 1.55; }
.ip-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: #8ee06a; }
.ip-pill { width: max-content; max-width: 100%; height: 26px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border-radius: 13px; box-shadow: inset 0 0 0 1px rgba(142,224,106,.35); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #8ee06a; white-space: nowrap; }
.ip-dot { width: 5px; height: 5px; border-radius: 50%; background: #8ee06a; }

/* buttons, cards, closing banner */
.ip .ip-btn { height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; background: #8ee06a; color: #0b1408; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.ip .ip-btn:hover { background: #a2ea82; color: #0b1408; }
.ip-btn-block { width: 100%; height: 40px; }
.ip-card { border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #e6e8ec; }
.ip-banner { margin-top: 40px; display: flex; align-items: center; gap: 16px 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 14px; background: #0f1216; color: #fff; }
.ip-banner > div { display: flex; flex-direction: column; gap: 4px; }
.ip-banner strong { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ip-banner span { font-size: 14px; color: #a3a8b3; }
.ip-banner .ip-btn { margin-left: auto; }

/* Coaches */
.ip-coaches { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ip-coaches > .ip-coach { flex: 0 1 calc((100% - 48px) / 4); min-width: 200px; }
.ip-coach { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 16px 22px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #e6e8ec; color: #0f1216; text-align: center; transition: box-shadow .15s; }
.ip-coach:hover { box-shadow: inset 0 0 0 1px #2b8a1a, 0 10px 24px rgba(16,20,26,.06); color: #0f1216; }
.ip-coach img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: #f2f4f6; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e6e8ec; }
.ip-coach-names { display: flex; flex-direction: column; gap: 3px; }
.ip-coach-names strong { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.ip-coach-names span { font-size: 13.5px; color: #6b7280; }
.ip-tag { height: 22px; padding: 0 9px; display: flex; align-items: center; border-radius: 11px; background: #eef7ea; color: #2b8a1a; font-size: 11.5px; font-weight: 600; }

/* Testimonials */
.ip-hero-compact { position: relative; padding-top: 40px; padding-bottom: 36px; display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.ip-hero-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.ip-stats { flex: none; display: flex; max-width: 100%; border-radius: 12px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ip-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 22px; }
.ip-stats > div + div { box-shadow: inset 1px 0 0 rgba(255,255,255,.08); }
.ip-stats strong { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: #fff; white-space: nowrap; }
.ip-stats span { font-size: 12.5px; color: #8a909c; white-space: nowrap; }
.ip-sep { color: #c3c7cf; }
.ip-loc { display: inline-flex; align-items: center; gap: 6px; }
.ip-flag { flex: none; width: 18px; height: 13px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(16,20,26,.12); }
.ip-rest { overflow: hidden; text-overflow: ellipsis; }

/* Testimonials: the top result as a featured card, then an aligned grid of cards with a green top edge and green results. */
.ip-tc { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px; border-radius: 14px; background: #fff; box-shadow: inset 0 3px 0 #6fc24a, inset 0 0 0 1px #e2e5ea; color: #1f2329; transition: box-shadow .15s; }
.ip-tc:hover { box-shadow: inset 0 3px 0 #6fc24a, inset 0 0 0 1px #cfd4da, 0 8px 22px rgba(16,20,26,.06); color: #1f2329; }
.ip-tc-feat { flex-direction: row; align-items: center; gap: 16px 40px; flex-wrap: wrap; padding: 30px 36px; margin-bottom: 18px; }
.ip-tc-feat-result { flex: 0 0 340px; display: flex; flex-direction: column; gap: 6px; }
.ip-tc-feat-result strong { font-size: clamp(38px, 4.4vw, 54px); line-height: 1; font-weight: 800; letter-spacing: -.04em; color: #2b8a1a; }
.ip-tc-feat-result span { font-size: 15px; font-weight: 600; color: #2b8a1a; }
.ip-tc-feat-body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ip-tc-feat blockquote { margin: 0; font-size: 21px; line-height: 1.45; font-weight: 500; letter-spacing: -.01em; color: #0f1216; text-wrap: pretty; }
.ip-tc-result { font-size: 27px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: #2b8a1a; }
.ip-tc-type { margin-top: -6px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; }
.ip-tc blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: #1f2329; text-wrap: pretty; }
.ip-tc-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #6b7280; }
.ip-tc-who b { color: #0f1216; font-weight: 600; }
.ip-tc-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #eef7ea; color: #2b8a1a; font-size: 13.5px; font-weight: 700; margin-right: 4px; }
.ip-tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.ip-tc-grid .ip-tc-who { margin-top: auto; padding-top: 4px; }
.ip-tc-stacked { flex-wrap: nowrap; }
.ip-tc-who-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ip-tc-who-line { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ip-tc-stacked .ip-rest { font-size: 13px; }
@media (max-width: 640px) {
  .ip-tc-feat { padding: 22px; }
  .ip-tc-feat-result { flex-basis: 100%; }
  .ip-tc-feat blockquote { font-size: 18px; }
}

/* Our Story */
/* Our Story: a compact header, the timeline close under the headline. */
.ip-hero-story { padding-top: 40px; padding-bottom: 36px; gap: 10px; }
.ip-timeline { list-style: none; margin: 22px 0 0; padding: 0; display: flex; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); overflow-x: auto; }
.ip-hero-story .ip-timeline { margin-top: 14px; }
.ip-timeline li { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; box-shadow: inset -1px 0 0 rgba(255,255,255,.08); }
.ip-timeline li:last-child { box-shadow: none; }
.ip-timeline strong { font-size: 12px; font-weight: 700; color: #8ee06a; white-space: nowrap; }
.ip-timeline span { font-size: 13.5px; color: #c9ccd4; }
.ip-story { display: grid; grid-template-columns: 200px minmax(0, 700px); gap: 56px; align-items: start; }
.ip-chapters { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.ip-chapters span { padding: 0 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #9aa0ab; }
.ip-chapters a { padding: 7px 10px; border-radius: 7px; color: #4b5260; }
.ip-chapters a:hover { background: #f5f6f8; color: #0f1216; }
.ip-article { display: flex; flex-direction: column; gap: 44px; }
.ip-chapter { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 84px; }
.ip-chapter h2 { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.ip-chapter p { margin: 0; font-size: 16.5px; line-height: 1.75; color: #2f343d; text-wrap: pretty; }
.ip-chapter img { width: min(100%, 420px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: #f2f4f6; }
.ip-pull { margin: 6px 0 0; padding: 4px 0 4px 20px; box-shadow: inset 3px 0 0 #8ee06a; font-size: 21px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; color: #0f1216; text-wrap: pretty; }
.ip-article .ip-banner { margin-top: 0; }

/* Members */
.ip-members-head { position: relative; padding-top: 44px; padding-bottom: 40px; display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.ip-members-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ip-members-title span { font-size: 13px; color: #8a909c; }
.ip-members-title h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.05; letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-search { width: min(100%, 320px); height: 42px; padding: 0 12px 0 14px; display: flex; align-items: center; gap: 9px; border-radius: 10px; background: #15181d; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: #8a909c; }
.ip-search:focus-within { box-shadow: inset 0 0 0 1px #8ee06a; }
.ip-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: #e9ebef; font-size: 14px; outline: none; }
.ip-search input::placeholder { color: #8a909c; }
.ip-search kbd { font: inherit; font-size: 11.5px; padding: 2px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.ip-members { padding-top: 36px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 32px; }
.ip-members h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.ip-empty { padding: 18px 20px; margin: 0; }
.ip-members-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ip-new { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ip-new-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ip-switch { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #e9ebef; }
.ip-switch button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #6b7280; font: inherit; font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ip-switch button[aria-selected='true'] { background: #fff; color: #0f1216; font-weight: 600; box-shadow: 0 1px 2px rgba(15, 18, 22, .1); }
.ip-switch-n { font-size: 12.5px; font-weight: 600; color: #9aa0ab; }
.ip-switch button[aria-selected='true'] .ip-switch-n { color: #2b8a1a; }
.ip .ip-all { margin-left: auto; font-size: 13.5px; font-weight: 600; color: #2b8a1a; white-space: nowrap; }
.ip .ip-all:hover { color: #1f6b12; }
.ip-lessons { overflow: hidden; }
.ip-lessons[hidden] { display: none; }
.ip-lesson { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto 56px; align-items: center; gap: 16px; padding: 11px 18px; box-shadow: inset 0 -1px 0 #f0f1f4; color: #0f1216; }
.ip-lesson:last-child { box-shadow: none; }
.ip-lesson:hover { background: #fafbfc; color: #0f1216; }
.ip-lesson-thumb { position: relative; width: 78px; height: 47px; border-radius: 7px; overflow: hidden; background: #0f1216; }
.ip-lesson-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ip-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #0f1216; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.ip-play svg { margin-left: 2px; }
.ip-lesson-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ip-lesson-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ip-lesson-title strong { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-new-tag { flex: none; padding: 2px 7px; border-radius: 5px; background: #eaf5e4; color: #2b8a1a; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.ip-lesson-sub { font-size: 13.5px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-lesson-len { font-size: 14px; color: #6b7280; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ip-lesson-date { font-size: 14px; color: #9aa0ab; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.ip-none { margin: 0; padding: 22px 16px; font-size: 14px; color: #6b7280; }
.ip-tools { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ip-mm { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 14px; background: #0f1216; color: #fff; }
.ip-mm-logo { display: block; width: 169px; height: auto; }
.ip-mm > span { font-size: 14px; line-height: 1.55; color: #a3a8b3; text-wrap: pretty; }
.ip-toollist { display: flex; flex-direction: column; overflow: hidden; }
.ip-toollist a { height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 16px; box-shadow: inset 0 -1px 0 #f0f1f4; font-size: 14px; font-weight: 500; color: #0f1216; }
.ip-toollist a:last-child { box-shadow: none; }
.ip-toollist a:hover { background: #fafbfc; color: #0f1216; }
.ip-toollist svg:first-child { color: #2b8a1a; }
.ip-toollist svg:last-child { margin-left: auto; color: #9aa0ab; }
.ip-library { display: flex; flex-direction: column; gap: 12px; }
.ip-library-head { display: flex; align-items: baseline; gap: 10px; }
.ip-library-head span { font-size: 13px; color: #6b7280; }
.ip-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.ip-course { display: flex; align-items: center; gap: 16px; padding: 12px 16px; color: #0f1216; }
.ip-course:hover { box-shadow: inset 0 0 0 1px #2b8a1a; color: #0f1216; }
.ip-course-thumb { padding: 11px 16px 11px 12px; }
.ip-course-thumb img { flex: none; width: 84px; height: 84px; border-radius: 9px; object-fit: cover; background: #0f1216; }
.ip-course-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ip-course strong { font-size: 16.5px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-course-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: #6b7280; }
.ip-pct { color: #2b8a1a; font-weight: 600; }
.ip-pct-0 { color: #9aa0ab; font-weight: 400; }
.ip-bar { display: block; height: 5px; border-radius: 3px; background: #eef0f3; overflow: hidden; }
.ip-bar span { display: block; height: 100%; border-radius: 3px; background: #5fbf3c; }
/* Courses without a thumbnail, behind "Show N more courses". */
.ip-more-courses > summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e2e5ea; font-size: 15px; font-weight: 600; color: #0f1216; cursor: pointer; user-select: none; }
.ip-more-courses > summary::-webkit-details-marker { display: none; }
.ip-more-courses > summary:hover { box-shadow: inset 0 0 0 1px #cfd4da; }
.ip-more-courses > summary svg { transform: rotate(90deg); transition: transform .15s; color: #4b5260; }
.ip-more-courses[open] > summary svg { transform: rotate(-90deg); }
.ip-more-hide, .ip-more-courses[open] .ip-more-show { display: none; }
.ip-more-courses[open] .ip-more-hide { display: inline; }
.ip-more-courses .ip-courses { margin-top: 14px; }
.ip-account { margin: 0; font-size: 14px; }

@media (max-width: 860px) {
  .ip-story { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ip-chapters { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .ip-chapters span { width: 100%; padding-bottom: 2px; }
  .ip-chapters a { padding: 5px 10px; background: #f5f6f8; }
}
@media (max-width: 640px) {
  .ip-wrap { padding: 0 16px; }
  .ip-hero-inner { padding-top: 44px; padding-bottom: 40px; }
  .ip-body { padding-top: 32px; padding-bottom: 56px; }
  .ip-stats { width: 100%; }
  .ip-stats > div { flex: 1; min-width: 0; padding: 12px 14px; }
  .ip-stats strong { font-size: 20px; }
  .ip-stats span { white-space: normal; }
  .ip-banner .ip-btn { margin-left: 0; }
  .ip-members-title h1 { white-space: normal; }
  .ip-search { width: 100%; }
  .ip .ip-all { margin-left: 0; }
  .ip-lesson { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; }
  .ip-lesson-thumb { width: 64px; height: 40px; }
  .ip-lesson-title strong { font-size: 14.5px; }
  .ip-lesson-len { display: none; }
}
