/* ==========================================================================
   White label portal home — "Option A / 01 Homepage · Logged out" (Figma: GenAInstein 2.0)
   Tokens mirror the Figma style guide variables.
   ========================================================================== */
:root {
  --brand-navy-950: #091142;
  --brand-navy-900: #0e1a5c;
  --brand-teal-100: #e2f1f6;
  --brand-teal-700: #00587c;
  --accent-yellow-100: #fff3d1;
  --accent-yellow-400: #ffc83d;
  --accent-yellow-800: #6e4e00;
  --habit-green-100: #f2fefd;
  --habit-green-600: #0d967b;
  --habit-green-800: #0a6b58;
  --surface-page: #ffffff;
  --surface-subtle: #f4f6fa;
  --border-default: #e2e5ee;
  --border-strong: #c9cedb;
  --border-on-dark: #2a3672;
  --text-primary: #141a33;
  --text-secondary: #4f566b;
  --text-tertiary: #5f657b;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #b9c0dd;
  --shadow-card: 0 2px 6px rgba(14, 26, 92, .05), 0 18px 40px -10px rgba(14, 26, 92, .12);
  --shadow-photo: 0 20px 40px -12px rgba(9, 17, 66, .22);
  --shadow-float: 0 18px 20px rgba(14, 26, 92, .12), 0 2px 3px rgba(14, 26, 92, .05);
  --page-pad: 80px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
:where(.pv2) *, :where(.pv2) *::before, :where(.pv2) *::after { box-sizing: border-box; }
.pv2 { margin: 0; font-family: var(--font); color: var(--text-primary); background: var(--surface-page);
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:where(.pv2) :where(h1, h2, h3, h4, p) { margin: 0; }
:where(.pv2) a { color: inherit; text-decoration: none; }
:where(.pv2) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.pv2) img { display: block; max-width: 100%; }
.pv2-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--page-pad); padding-right: var(--page-pad); }
.pv2-ico { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.pv2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px;
           border-radius: 12px; font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap;
           background: var(--brand-navy-900); color: var(--text-on-dark) !important; transition: background .15s, transform .15s; }
.pv2-btn:hover { background: var(--brand-navy-950); }
.pv2-btn:disabled { opacity: .5; cursor: not-allowed; }
.pv2-btn--block { width: 100%; }
.pv2-btn--outline { background: var(--surface-page); color: var(--brand-navy-900) !important; border: 1px solid var(--border-strong); }
.pv2-btn--outline:hover { background: var(--surface-subtle); }

.pv2-arrow { width: 48px; height: 48px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
             background: var(--surface-page); border: 1px solid var(--brand-navy-900); flex-shrink: 0; transition: opacity .15s, border-color .15s; }
.pv2-arrow img { width: 20px; height: 20px; }
.pv2-arrow:disabled { border-color: var(--border-default); cursor: default; }
.pv2-arrow:disabled img { opacity: .35; }
.pv2-arrow--float { box-shadow: var(--shadow-float); }
.pv2-arrow--float.is-prev { border-color: var(--border-strong); }

/* ---------- Header ---------- */
.pv2-header { position: sticky; top: 0; z-index: 60; background: var(--surface-page); border-bottom: 1px solid var(--border-default); }
.pv2-header .pv2-wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pv2-logo img { height: 40px; width: auto; max-width: 179px; object-fit: contain; }
.pv2-header-right { display: flex; align-items: center; gap: 24px; }
.pv2-stats { display: flex; align-items: center; background: var(--surface-subtle); border-radius: 16px; padding: 12px 8px; }
.pv2-stat { display: flex; align-items: center; gap: 12px; padding: 0 24px; white-space: nowrap; }
.pv2-stat strong { font-size: 20px; line-height: 28px; font-weight: 800; color: var(--brand-navy-900); letter-spacing: -.05px; }
.pv2-stat span { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-secondary); letter-spacing: .2px; }
.pv2-stat-divider { width: 1px; height: 28px; background: var(--border-strong); }
.pv2-menu-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong) !important;
                background: var(--surface-page); display: inline-flex; align-items: center; justify-content: center; }
.pv2-menu-btn img { width: 22px; height: 22px; }
.pv2-menu-btn .pv2-close-ico { display: none; }
.pv2-menu-open .pv2-menu-btn { background: var(--brand-navy-900); border-color: var(--brand-navy-900) !important; }
.pv2-menu-open .pv2-menu-btn .pv2-open-ico { display: none; }
.pv2-menu-open .pv2-menu-btn .pv2-close-ico { display: block; }

/* Menu panel (Figma 01c) */
.pv2-menu-overlay { position: fixed; inset: 88px 0 0; background: rgba(14, 26, 92, .5); opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 50; }
.pv2-menu { position: absolute; z-index: 55; top: calc(100% + 12px); left: 50%; transform: translate(-50%, -8px); width: calc(100% - 140px); max-width: 1280px;
            background: var(--surface-page); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-card);
            opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s; }
.pv2-menu-open .pv2-menu-overlay { opacity: 1; visibility: visible; }
.pv2-menu-open .pv2-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.pv2-menu-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pv2-menu-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 16px; transition: background .15s; }
.pv2-menu-item:hover, .pv2-menu-item:focus-visible { background: var(--surface-subtle); }
.pv2-menu-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: center; }
.pv2-menu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv2-menu-thumb.t-train { background: linear-gradient(90deg, #00587c, #138bb0); }
.pv2-menu-thumb.t-habit { background: linear-gradient(90deg, #0a6b58, #0d967b); }
.pv2-menu-thumb.t-chal { background: linear-gradient(90deg, #0e1a5c, #24357e); }
.pv2-menu-thumb.t-jobs { background: #e0a91a; }
.pv2-menu-item h4 { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--brand-navy-900); }
.pv2-menu-item p { font-size: 14px; line-height: 20px; color: var(--text-secondary); margin-top: 4px; }
.pv2-menu-foot { border-top: 1px solid var(--border-default); margin-top: 16px; padding: 16px 16px 0; display: flex; gap: 24px; }
.pv2-menu-foot a, .pv2-menu-foot span { font-size: 13px; font-weight: 500; color: var(--brand-teal-700); text-decoration: underline; }
.pv2-menu-login { display: none; }

/* ---------- Section shell ---------- */
.pv2-section { padding: 72px 0; scroll-margin-top: 88px; }
.pv2-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.pv2-section-head h2 { font-size: 40px; line-height: 48px; font-weight: 700; color: var(--brand-navy-900); letter-spacing: -.6px; }
.pv2-section-head p { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--text-secondary); }
.pv2-row-arrows { display: flex; gap: 12px; }

/* Horizontal card rows (Trainings, Challenges) */
.pv2-track { display: grid; grid-auto-flow: column; gap: var(--gap, 32px); overflow-x: auto; scroll-snap-type: x mandatory;
             scrollbar-width: none; padding: 8px 24px 48px; margin: -8px -24px -48px; scroll-padding: 0 24px; }
.pv2-track::-webkit-scrollbar { display: none; }
.pv2-track > * { scroll-snap-align: start; }

/* ---------- Hero ---------- */
.pv2-hero { background: linear-gradient(180deg, #e2f1f6 0%, #fff 75%); padding: 48px 0 56px; }
.pv2-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.pv2-carousel { display: flex; align-items: center; gap: 32px; flex: 0 1 910px; min-width: 0; }
.pv2-slide-area { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.pv2-slides { position: relative; width: 100%; height: 460px; }
.pv2-slide { position: absolute; inset: 0; display: flex; align-items: center; gap: 32px; opacity: 0; visibility: hidden;
             transform: translateX(24px); transition: opacity .45s ease, transform .45s ease, visibility .45s; }
.pv2-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.pv2-slide.is-leaving { transform: translateX(-24px); }
.pv2-slide-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.pv2-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px;
            font-size: 15px; line-height: 20px; font-weight: 700; }
.pv2-pill img, .pv2-pill svg { width: 18px; height: 18px; }
.pv2-pill--challenge { background: var(--accent-yellow-400); color: var(--brand-navy-950); box-shadow: 0 8px 18px rgba(255, 200, 61, .35); }
.pv2-pill--training_program { background: var(--brand-teal-700); color: #fff; box-shadow: 0 8px 18px rgba(0, 88, 124, .3); }
.pv2-pill--habitgym { background: var(--habit-green-800); color: #fff; box-shadow: 0 8px 18px rgba(10, 107, 88, .3); }
.pv2-pill--job, .pv2-pill--custom { background: var(--brand-navy-900); color: #fff; box-shadow: 0 8px 18px rgba(14, 26, 92, .25); }
.pv2-slide-title { font-size: 40px; line-height: 48px; font-weight: 700; color: var(--brand-navy-900); letter-spacing: -.66px;
                   display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv2-slide-desc { font-size: 18px; line-height: 28px; color: var(--text-secondary);
                  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pv2-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pv2-fact { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-primary); }
.pv2-highlight { display: inline-flex; align-items: center; gap: 16px; padding: 16px 24px 16px 16px; border-radius: 18px; background: var(--accent-yellow-100); }
.pv2-highlight-badge { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-yellow-400); display: flex; align-items: center; justify-content: center; }
.pv2-highlight-badge img { width: 22px; height: 22px; }
.pv2-highlight small { display: block; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--accent-yellow-800); }
.pv2-highlight strong { display: block; font-size: 26px; line-height: 34px; font-weight: 800; color: var(--brand-navy-900); letter-spacing: -.13px; }
.pv2-slide-cta { margin-top: -4px; }
.pv2-visual { position: relative; width: 280px; height: 440px; flex-shrink: 0; }
.pv2-visual .d-grid { position: absolute; left: 0; top: 0; width: 144px; height: 144px; }
.pv2-visual .d-spark { position: absolute; left: 248px; top: 6px; width: 44px; height: 44px; }
.pv2-visual .d-spark-sm { position: absolute; left: 6px; top: 396px; width: 22px; height: 22px; }
.pv2-visual .photo { position: absolute; left: 28px; top: 40px; width: 250px; height: 370px; border-radius: 20px; object-fit: cover;
                     box-shadow: var(--shadow-photo); background: var(--brand-teal-100); }
.pv2-progress { display: flex; gap: 8px; }
.pv2-progress button { width: 40px; height: 8px; border-radius: 4px; background: var(--border-default); transition: width .3s, background .3s; }
.pv2-progress button.is-done { background: var(--accent-yellow-400); }
.pv2-progress button.is-active { width: 96px; background: var(--accent-yellow-400); }

/* Explore tiles */
.pv2-explore { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.pv2-explore > h3 { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--brand-navy-900); }
.pv2-tile { position: relative; display: block; height: 140px; overflow: hidden; border-radius: 48px 20px 20px 20px; color: #fff; text-align: left;
            transition: transform .2s, box-shadow .2s; }
.pv2-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.pv2-tile.t-train { background: linear-gradient(90deg, #00587c, #138bb0); }
.pv2-tile.t-habit { background: linear-gradient(90deg, #0a6b58, #0d967b); }
.pv2-tile.t-chal { background: linear-gradient(90deg, #0e1a5c, #24357e); }
.pv2-tile.t-jobs { background: linear-gradient(90deg, #b07d00, #e0a91a); }
.pv2-tile .cut { position: absolute; left: 130px; top: 6px; width: 180px; height: 140px; object-fit: cover; }
.pv2-tile .txt { position: absolute; left: 24px; top: 0; height: 140px; width: 150px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pv2-tile h4 { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.05px; }
.pv2-tile p { font-size: 14px; line-height: 20px; font-weight: 500; opacity: .85; }
.pv2-tile .go { margin-top: 8px; width: 32px; height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .22); display: flex; align-items: center; justify-content: center; }
.pv2-tile .go img { width: 16px; height: 16px; }

/* ---------- Trainings ---------- */
.pv2-trainings { background: var(--surface-page); }
.pv2-trainings .pv2-track { --gap: 24px; grid-auto-columns: calc((100% - 72px) / 4); }   /* 4 per row, like Challenges */
.pv2-tcard { display: flex; flex-direction: column; min-height: 358px; background: var(--surface-page); border-radius: 56px 20px 20px 20px;
             box-shadow: var(--shadow-card); overflow: hidden; }
.pv2-tcard-photo { height: 170px; width: 100%; object-fit: cover; background: var(--brand-teal-100); }
.pv2-tcard-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.pv2-tcard-body h3 { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--brand-navy-900); letter-spacing: -.05px;
                     display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* In the narrower card the three facts stack: icon + label on the left, value on the right */
.pv2-tcard .pv2-details { flex-direction: column; padding: 6px 4px; gap: 0; border-radius: 14px; }
.pv2-tcard .pv2-detail { padding: 7px 12px; gap: 10px; }
.pv2-tcard .pv2-detail .pv2-ico { width: 18px; height: 18px; flex-shrink: 0; }
.pv2-tcard .pv2-detail > div { flex: 1; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.pv2-tcard .pv2-detail small { font-size: 13px; line-height: 18px; letter-spacing: 0; }
.pv2-tcard .pv2-detail strong { font-size: 14px; line-height: 18px; text-align: right; }
.pv2-details { display: flex; padding: 4px; border-radius: 16px; background: var(--surface-subtle); }
.pv2-detail { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.pv2-detail small { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-tertiary); letter-spacing: .2px; }
.pv2-detail strong { display: block; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv2-detail > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pv2-tcard-action { padding-top: 8px; margin-top: auto; }

/* ---------- HabitGym ---------- */
.pv2-habit { background: var(--habit-green-100); }
.pv2-hg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pv2-hg-card { display: flex; flex-direction: column; background: var(--surface-page); border-radius: 24px; box-shadow: var(--shadow-card); overflow: hidden; min-height: 619px; }
.pv2-hg-photo { height: 180px; width: 100%; object-fit: cover; }
.pv2-hg-body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.pv2-hg-head { display: flex; align-items: center; gap: 12px; }
.pv2-hg-badge { width: 48px; height: 48px; border-radius: 14px; background: var(--habit-green-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pv2-hg-badge img { width: 29px; height: 29px; }
.pv2-hg-badge.is-img { background: none; }
.pv2-hg-badge.is-img img { width: 48px; height: 48px; }
.pv2-hg-head h3 { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--brand-navy-900); letter-spacing: -.05px; }
.pv2-hg-head span { display: block; font-size: 14px; line-height: 20px; color: var(--text-tertiary); }
.pv2-hg-q { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--text-primary); }
.pv2-hg-text { font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.pv2-hg-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.pv2-hg-options { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pv2-hg-option { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-default);
                 background: var(--surface-page); cursor: pointer; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-primary);
                 transition: border-color .15s, background .15s; }
.pv2-hg-option:hover { border-color: var(--habit-green-600); }
.pv2-hg-option input { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; flex-shrink: 0; border-radius: 50%;
                       border: 2px solid var(--habit-green-600); background: #fff; position: relative; cursor: pointer; }
.pv2-hg-option input:checked::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--habit-green-600); }
.pv2-hg-option:has(input:checked) { border-color: var(--habit-green-600); background: var(--habit-green-100); }
.pv2-hg-spacer { flex: 1; }
.pv2-hg-feedback { font-size: 14px; min-height: 0; }
.pv2-hg-feedback:empty { display: none; }
.pv2-hg-empty { font-size: 15px; line-height: 22px; color: var(--text-tertiary); }

/* ---------- Challenges ---------- */
.pv2-challenges .pv2-track { --gap: 24px; grid-auto-columns: calc((100% - 72px) / 4); }
.pv2-ccard { display: flex; flex-direction: column; min-height: 358px; background: var(--surface-page); border-radius: 56px 20px 20px 20px;
             box-shadow: var(--shadow-card); overflow: hidden; transition: transform .2s; }
.pv2-ccard:hover { transform: translateY(-3px); }
.pv2-ccard-photo { height: 170px; width: 100%; object-fit: cover; background: var(--brand-teal-100); }
.pv2-ccard-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.pv2-ccard-body h3 { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--brand-navy-900); letter-spacing: -.05px;
                     display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv2-ccard .pv2-fact { font-size: 14px; line-height: 20px; }
.pv2-ccard .pv2-fact img { width: 16px; height: 16px; }
.pv2-open { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 12px; background: var(--accent-yellow-100); }
.pv2-open-badge { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-yellow-400); display: flex; align-items: center; justify-content: center; }
.pv2-open-badge img { width: 16px; height: 16px; }
.pv2-open small { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--accent-yellow-800); }
.pv2-open strong { display: block; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--brand-navy-900); }

/* ---------- Jobs ---------- */
.pv2-jobs { background: linear-gradient(180deg, #fff 0%, #eaf4f8 100%); }
.pv2-job-list { background: var(--surface-page); border-radius: 24px; box-shadow: var(--shadow-card); padding: 8px 32px; }
.pv2-job { display: flex; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border-default); }
.pv2-job:last-child { border-bottom: 0; }
.pv2-job-logo { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--border-default); flex-shrink: 0; overflow: hidden;
                display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 24px; font-weight: 800; color: var(--brand-navy-900); background: #fff; }
.pv2-job-logo img { width: 100%; height: 100%; object-fit: contain; }
.pv2-job-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pv2-job-info h3 { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--brand-navy-900); letter-spacing: -.05px;
                   white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Row 1: role · company · location; row 2: description */
.pv2-job-line { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.pv2-job-line h3 { flex: 0 1 auto; min-width: 0; }
.pv2-job-co { flex-shrink: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-primary); white-space: nowrap; }
.pv2-job-co::before { content: ''; display: inline-block; width: 1px; height: 16px; margin-right: 16px; vertical-align: -2px; background: var(--border-default); }
.pv2-job-line .pv2-job-loc { flex-shrink: 0; white-space: nowrap; align-self: center; }
.pv2-job-loc { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-tertiary); }
.pv2-job-loc img { width: 14px; height: 14px; }
.pv2-job-desc { font-size: 14px; line-height: 20px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv2-job-pay { width: 180px; flex-shrink: 0; text-align: right; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--text-primary); }

/* ---------- Testimonials ---------- */
.pv2-testimonials { background: linear-gradient(180deg, #eaf4f8 0%, #c7e1eb 74%); }
.pv2-t-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pv2-tm { display: flex; flex-direction: column; gap: 24px; min-height: 365px; padding: 32px; border-radius: 24px; background: var(--surface-page); box-shadow: var(--shadow-card); }
.pv2-tm-top { display: flex; align-items: center; justify-content: space-between; }
.pv2-stars { display: flex; gap: 4px; }
.pv2-stars img { width: 18px; height: 18px; }
.pv2-tm-top .quote { width: 28px; height: 28px; }
.pv2-tm > p { font-size: 16px; line-height: 24px; color: var(--text-primary); }
.pv2-person { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.pv2-avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--brand-teal-100); color: var(--brand-teal-700); flex-shrink: 0; overflow: hidden;
              display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 20px; font-weight: 600; }
.pv2-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pv2-person strong { display: block; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--text-primary); }
.pv2-person strong + span { display: block; font-size: 14px; line-height: 20px; color: var(--text-tertiary); }

/* ---------- Footer ---------- */
.pv2-footer { background: var(--brand-navy-950); color: var(--text-on-dark-muted); padding: 72px 0 32px; }
.pv2-footer-top { display: flex; justify-content: space-between; gap: 48px; }
.pv2-footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.pv2-footer-logo { height: 40px; width: 179px; background: #fff; -webkit-mask: var(--logo) left center / contain no-repeat; mask: var(--logo) left center / contain no-repeat; }
.pv2-footer-logo-img { height: 40px; width: auto; max-width: 179px; object-fit: contain; }
.pv2-footer-name { font-size: 28px; line-height: 40px; font-weight: 800; color: #fff; }
.pv2-footer-brand p { font-size: 16px; line-height: 24px; }
.pv2-social { display: flex; gap: 12px; }
.pv2-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.pv2-social img { width: 18px; height: 18px; object-fit: contain; }
.pv2-footer-cols { display: flex; gap: 96px; }
.pv2-footer-col { display: flex; flex-direction: column; gap: 16px; white-space: nowrap; }
.pv2-footer-col h4 { font-size: 15px; line-height: 20px; font-weight: 600; color: #fff; }
.pv2-footer-col a, .pv2-footer-col span { font-size: 14px; line-height: 20px; color: var(--text-on-dark-muted); }
.pv2-footer-col a:hover { color: #fff; }
.pv2-footer-divider { height: 1px; background: var(--border-on-dark); margin: 56px 0 32px; }
.pv2-footer-bottom { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  :root { --page-pad: 48px; }
  .pv2-stat { padding: 0 16px; }
  .pv2-carousel { gap: 20px; }
}
@media (max-width: 1240px) {
  .pv2-stats { display: none; }
  .pv2-hero-row { flex-direction: column; align-items: stretch; }
  .pv2-carousel { flex: 1 1 auto; }
  .pv2-explore { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .pv2-explore > h3 { grid-column: 1 / -1; }
  .pv2-challenges .pv2-track, .pv2-trainings .pv2-track { grid-auto-columns: calc((100% - 48px) / 3); }
  .pv2-t-grid { grid-template-columns: repeat(2, 1fr); }
  .pv2-tm { min-height: 0; }
}
@media (max-width: 1024px) {
  .pv2-hg-grid { grid-template-columns: 1fr 1fr; }
  .pv2-hg-card { min-height: 0; }
  .pv2-trainings .pv2-track, .pv2-challenges .pv2-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .pv2-menu-items { grid-template-columns: 1fr 1fr; }
  .pv2-footer-top { flex-direction: column; }
  .pv2-job-pay { width: auto; }
}
@media (max-width: 767px) {
  :root { --page-pad: 16px; }
  .pv2-header .pv2-wrap { height: 72px; }
  .pv2-menu-overlay { top: 72px; }
  .pv2-logo img { height: 32px; }
  .pv2-header-right { gap: 12px; }
  .pv2-header-login { display: none; }
  .pv2-menu-login { display: inline-flex; margin: 8px 16px 0; }
  .pv2-menu { width: calc(100% - 24px); padding: 12px; border-radius: 20px; max-height: calc(100vh - 100px); overflow: auto; }
  .pv2-menu-items { grid-template-columns: 1fr; gap: 0; }
  .pv2-menu-thumb { width: 56px; height: 56px; }
  .pv2-section { padding: 48px 0; scroll-margin-top: 72px; }
  .pv2-section-head { margin-bottom: 28px; }
  .pv2-section-head h2 { font-size: 28px; line-height: 36px; letter-spacing: -.4px; }
  .pv2-section-head p { font-size: 16px; line-height: 24px; margin-top: 8px; }
  .pv2-row-arrows { display: none; }
  .pv2-hero { padding: 24px 0 40px; }
  .pv2-carousel > .pv2-arrow { display: none; }
  .pv2-slides { height: auto; display: grid; }
  .pv2-slide { position: relative; grid-area: 1 / 1; flex-direction: column-reverse; align-items: stretch; gap: 20px; }
  .pv2-visual { width: 100%; height: 200px; }
  .pv2-visual .d-grid, .pv2-visual .d-spark, .pv2-visual .d-spark-sm { display: none; }
  .pv2-visual .photo { position: static; width: 100%; height: 200px; }
  .pv2-slide-text { gap: 16px; }
  .pv2-slide-title { font-size: 30px; line-height: 38px; }
  .pv2-slide-desc { font-size: 16px; line-height: 24px; }
  .pv2-highlight strong { font-size: 20px; line-height: 28px; }
  .pv2-explore { grid-template-columns: 1fr; }
  .pv2-tile .cut { left: auto; right: -10px; }
  .pv2-trainings .pv2-track, .pv2-challenges .pv2-track { grid-auto-columns: 86%; --gap: 16px; }
  .pv2-tcard { min-height: 0; border-radius: 48px 20px 20px 20px; }
  .pv2-tcard-photo { height: 160px; }
  .pv2-tcard-body { padding: 20px; }
  .pv2-tcard-body h3 { font-size: 19px; line-height: 26px; }
  .pv2-details { flex-direction: column; }
  .pv2-detail { padding: 8px 12px; }
  .pv2-hg-grid, .pv2-t-grid { grid-template-columns: 1fr; }
  .pv2-job-list { padding: 4px 16px; }
  .pv2-job { flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; padding: 20px 0; }
  .pv2-job-info { flex-basis: calc(100% - 72px); }
  .pv2-job-info h3 { font-size: 17px; line-height: 24px; white-space: normal; }
  .pv2-job-line { flex-wrap: wrap; gap: 4px 12px; }
  .pv2-job-line h3 { flex-basis: 100%; }
  .pv2-job-co { white-space: normal; }
  .pv2-job-co::before { display: none; }
  .pv2-job-desc { white-space: normal; }
  .pv2-job-pay { margin-left: 72px; text-align: left; flex: 1; }
  .pv2-footer { padding-top: 48px; }
  .pv2-footer-cols { flex-wrap: wrap; gap: 32px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv2-slide, .pv2-tile, .pv2-ccard, .pv2-progress button { transition: none; }
}

/* ==========================================================================
   Training details (Figma "05 Training details" + "05b I'm interested")
   ========================================================================== */
.pv2-btn--lg { padding: 16px 32px; }

.pd-hero { background: linear-gradient(180deg, #e2f1f6 0%, #fff 75%); padding: 32px 0 56px; }
.pd-hero .pv2-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.pd-back { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 12px 12px; border-radius: 999px; background: #fff;
           border: 1px solid var(--border-strong); box-shadow: var(--shadow-float); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--brand-navy-900) !important; }
.pd-back img { width: 18px; height: 18px; }
.pd-intro { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.pd-title-group { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: 13px; line-height: 16px; font-weight: 600; }
.pd-pill img { width: 14px; height: 14px; }
.pd-pill--cat { background: var(--brand-teal-100); color: var(--brand-teal-700); }
.pd-pill--level { background: var(--accent-yellow-100); color: var(--accent-yellow-800); }
.pd-pill--plain { background: var(--surface-subtle); color: var(--text-secondary); }
.pd-title { font-size: 52px; line-height: 60px; font-weight: 700; letter-spacing: -1px; color: var(--brand-navy-900); }
.pd-subtitle { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--text-secondary); letter-spacing: -.05px; max-width: 760px; }
.pd-master { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; max-width: 560px; }
.pd-master > p { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text-secondary); }
.pd-skills { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-skills span { padding: 12px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border-default); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--brand-navy-900); }

.pd-card { width: 100%; display: flex; align-items: center; background: #fff; border-radius: 24px; box-shadow: var(--shadow-card); overflow: hidden; }
.pd-card-photo { width: 300px; height: 150px; object-fit: cover; flex-shrink: 0; background: var(--brand-teal-100); }
.pd-card-details { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 24px 32px; }
.pd-detail { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; }
.pd-detail-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-teal-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pd-detail-badge img { width: 20px; height: 20px; }
.pd-detail > span:last-child { min-width: 0; }
.pd-detail small { display: block; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .2px; color: var(--text-tertiary); }
.pd-detail strong { display: block; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-card-action { padding-right: 32px; flex-shrink: 0; }

.pd-split .pv2-wrap { display: flex; align-items: flex-start; gap: 40px; }
.pd-split h2, .pd-content h2, .pd-instructors h2 { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -.6px; color: var(--brand-navy-900); }
.pd-split h2 { width: 400px; flex-shrink: 0; }
.pd-overview { padding: 72px 0 56px; }
.pd-overview p { flex: 1; font-size: 18px; line-height: 28px; color: var(--text-secondary); white-space: pre-line; }
.pd-learn { padding: 56px 0 72px; }
.pd-learn .pv2-wrap { gap: 80px; }
.pd-learn h2 { width: 400px; margin-right: -40px; }
.pd-points { flex: 1; list-style: none; margin: 0; padding: 0; }
.pd-points li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border-default); }
.pd-check { width: 28px; height: 28px; border-radius: 999px; background: var(--habit-green-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pd-check img { width: 16px; height: 16px; }
.pd-points strong { display: block; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--brand-navy-900); margin-top: 2px; }
.pd-points li > span > span { display: block; margin-top: 4px; font-size: 16px; line-height: 24px; color: var(--text-secondary); }

.pd-content { padding: 72px 0 56px; }
.pd-content .pv2-wrap { display: flex; flex-direction: column; gap: 24px; }
.pd-content-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pd-content-head p { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--text-secondary); }
.pd-expand { display: flex; gap: 8px; }
.pd-module { background: #fff; border-radius: 24px; box-shadow: var(--shadow-card); overflow: hidden; }
.pd-module-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 32px 24px 40px;
                  background: var(--brand-navy-900) !important; color: #fff !important; text-align: left; font-size: 26px; line-height: 34px; font-weight: 700; letter-spacing: -.13px; }
.pd-chev { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s; }
.pd-module.is-open > .pd-module-head .pd-chev, .pd-day.is-open .pd-day-head .pd-chev { transform: rotate(180deg); }
.pd-days { display: none; padding: 8px 32px; }
.pd-module.is-open > .pd-days { display: block; }
.pd-days.is-clipped .pd-day.is-extra { display: none; }
.pd-day { border-bottom: 1px solid var(--border-default); }
.pd-day:last-of-type { border-bottom: 0; }
.pd-days.is-clipped .pd-day:nth-child(8) { border-bottom: 1px solid var(--border-default); }
.pd-day-head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 24px 0; text-align: left; }
.pd-day-head:disabled { cursor: default; }
.pd-day-badge { padding: 8px 12px; border-radius: 10px; background: var(--surface-subtle); font-size: 13px; line-height: 16px; font-weight: 600; color: var(--brand-navy-900); white-space: nowrap; flex-shrink: 0; }
.pd-day.is-open .pd-day-badge { background: var(--accent-yellow-400); color: var(--brand-navy-950); }
.pd-day-title { flex: 1; min-width: 0; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--text-primary); }
.pd-day-body { display: none; padding: 0 0 24px 64px; }
.pd-day.is-open .pd-day-body { display: block; }
.pd-topic { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--brand-navy-900); margin-top: 12px !important; }
.pd-topic:first-child { margin-top: 0 !important; }
.pd-day-body ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pd-day-body li { position: relative; padding-left: 18px; font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.pd-day-body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #138bb0; }
.pd-more { display: flex; justify-content: center; padding: 24px 0; }
.pd-more button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--brand-teal-700); }
.pd-more img { width: 18px; height: 18px; }
.pd-days:not(.is-clipped) .pd-more { display: none; }

.pd-instructors { padding: 24px 0 72px; }
.pd-instructors .pv2-wrap { display: flex; flex-direction: column; gap: 32px; }
.pd-inst-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 24px; }
.pd-inst { display: flex; align-items: center; gap: 24px; padding: 24px 32px 24px 24px; border-radius: 24px; background: var(--surface-subtle); }
.pd-inst-avatar { width: 96px; height: 96px; border-radius: 48px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
                  background: var(--brand-teal-100); color: var(--brand-teal-700); font-size: 26px; line-height: 34px; font-weight: 800; }
.pd-inst-avatar.is-yellow { background: var(--accent-yellow-100); color: var(--accent-yellow-800); }
.pd-inst-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-inst-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pd-inst-text strong { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--brand-navy-900); }
.pd-inst-text em { font-style: normal; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--brand-teal-700); }
.pd-inst-text > span { font-size: 14px; line-height: 20px; color: var(--text-secondary); }

/* I'm interested modal */
.pd-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(14, 26, 92, .5); }
.pd-modal[hidden] { display: none; }
.pd-modal-box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow-card); }
.pd-modal-close { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 999px; background: var(--surface-subtle) !important; display: flex; align-items: center; justify-content: center; }
.pd-modal-close img { width: 18px; height: 18px; }
.pd-modal-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--brand-teal-100); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pd-modal-icon img { width: 24px; height: 24px; }
.pd-modal h3 { font-size: 26px; line-height: 34px; font-weight: 700; color: var(--brand-navy-900); letter-spacing: -.13px; }
.pd-modal-lead { margin-top: 8px !important; font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.pd-modal-lead strong { color: var(--brand-navy-900); font-weight: 700; }
.pd-modal form { margin-top: 24px; display: flex; flex-direction: column; }
.pd-modal label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-primary); margin-bottom: 8px; }
.pd-input { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px; margin-bottom: 20px; border: 1px solid var(--border-strong); border-radius: 12px; background: #fff; }
.pd-input:focus-within { border-color: var(--brand-teal-700); box-shadow: 0 0 0 3px rgba(0, 88, 124, .12); }
.pd-input img { width: 18px; height: 18px; flex-shrink: 0; }
.pd-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--text-primary); }
.pd-input input::placeholder { color: var(--text-tertiary); }
.pd-form-error { margin: -8px 0 16px !important; font-size: 14px; color: #c0392b; }
.pd-modal-done .pv2-btn { margin-top: 24px; }
/* Short windows (laptops, zoomed-in browsers): tighten the popup so it fits without a scrollbar */
@media (max-height: 760px) {
  .pd-modal-box { padding: 24px 28px; scrollbar-width: thin; }
  .pd-modal-close { top: 18px; right: 18px; width: 36px; height: 36px; }
  .pd-modal-icon { width: 44px; height: 44px; margin-bottom: 12px; }
  .pd-modal-icon img { width: 20px; height: 20px; }
  .pd-modal h3 { font-size: 22px; line-height: 30px; }
  .pd-modal-lead { margin-top: 4px !important; font-size: 14px; line-height: 21px; }
  .pd-modal form { margin-top: 16px; }
  .pd-modal label { margin-bottom: 6px; }
  .pd-input { height: 46px; margin-bottom: 14px; border-radius: 10px; }
  .pd-input input { font-size: 15px; }
  .pd-modal .pv2-btn--lg { height: 48px; min-height: 48px; padding-top: 0; padding-bottom: 0; }
  .pd-modal-done .pv2-btn { margin-top: 18px; }
}

@media (max-width: 1240px) {
  .pd-intro { flex-direction: column; align-items: flex-start; }
  .pd-card { flex-wrap: wrap; }
  .pd-card-photo { width: 100%; height: 200px; }
  .pd-card-details { flex-basis: 100%; flex-wrap: wrap; }
  .pd-detail { flex: 1 1 40%; }
  .pd-card-action { padding: 0 32px 24px; width: 100%; }
  .pd-split h2, .pd-learn h2 { width: 300px; }
}
@media (max-width: 900px) {
  .pd-split .pv2-wrap, .pd-learn .pv2-wrap { flex-direction: column; gap: 24px; }
  .pd-split h2, .pd-learn h2 { width: auto; margin: 0; }
}
@media (max-width: 767px) {
  .pd-hero { padding: 20px 0 40px; }
  .pd-hero .pv2-wrap { gap: 24px; }
  .pd-title { font-size: 32px; line-height: 40px; letter-spacing: -.6px; }
  .pd-subtitle { font-size: 17px; line-height: 24px; }
  .pd-skills { gap: 8px; }
  .pd-skills span { padding: 8px 12px; font-size: 13px; }
  .pd-card-details { padding: 20px; gap: 16px; }
  .pd-detail { flex: 1 1 100%; }
  .pd-card-action { padding: 0 20px 20px; }
  .pd-card-action .pv2-btn { width: 100%; }
  .pd-split h2, .pd-content h2, .pd-instructors h2 { font-size: 28px; line-height: 36px; letter-spacing: -.4px; }
  .pd-overview, .pd-learn, .pd-content { padding: 40px 0; }
  .pd-overview p { font-size: 16px; line-height: 24px; }
  .pd-content-head { flex-direction: column; align-items: flex-start; }
  .pd-content-head p { font-size: 16px; line-height: 24px; }
  .pd-module-head { padding: 20px; font-size: 19px; line-height: 26px; }
  .pd-days { padding: 4px 20px; }
  .pd-day-head { gap: 12px; padding: 18px 0; align-items: flex-start; }
  .pd-day-title { font-size: 16px; }
  .pd-day-body { padding-left: 0; }
  .pd-inst-list { grid-template-columns: 1fr; }
  .pd-inst { flex-direction: column; align-items: flex-start; padding: 24px; }
  .pd-modal-box { padding: 24px; }
}

/* HabitGym quiz popups: the partial asks for CircularStd, which this page doesn't load */
.pv2 :is(.hg-quiz-overlay, .hgfb-overlay, .hgm-overlay),
.pv2 :is(.hg-quiz-overlay, .hgfb-overlay, .hgm-overlay) * { font-family: var(--font, 'Manrope', system-ui, sans-serif) !important; }

/* Hero slides are clickable as a whole: an invisible link covers the slide (the title link stays for keyboard users) */
.pv2-slide.is-link { cursor: pointer; }
.pv2-slide-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pv2-slide.is-link .pv2-slide-text, .pv2-slide.is-link .pv2-visual { position: relative; pointer-events: none; }
.pv2-slide.is-link .pv2-slide-title a { pointer-events: auto; position: relative; z-index: 2; }
.pv2-slide-title a, .pv2-slide-title a:hover { text-decoration: none; }   /* no underline: the whole slide is the link (pointer + photo zoom show it) */
.pv2-slide.is-link:hover .pv2-visual .photo { transform: scale(1.015); }
.pv2-visual .photo { transition: transform .3s ease; }
