:root {
  color-scheme: light;
  --ink: #17151f;
  --muted: #6f6b7b;
  --paper: #ffffff;
  --soft: #f5f4f8;
  --card: #ffffff;
  --line: #e8e5ee;
  --purple: #6547e8;
  --purple-dark: #5033d0;
  --purple-soft: #eee9ff;
  --yellow: #ffd44a;
  --green: #62d49b;
  --shadow: 0 18px 60px rgba(42, 31, 91, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 "Avenir Next", Inter, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
main { min-height: calc(100vh - 188px); }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header { position: relative; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(1240px, calc(100% - 48px)); min-height: 86px; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 15px; font-weight: 800; letter-spacing: -.025em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px 4px 11px 4px; background: var(--purple); color: #fff; font-size: 18px; font-weight: 900; transform: rotate(-4deg); }
.brand-mark + span { transform: translateY(1px); }
.desktop-nav { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 700; }
.desktop-nav a { position: relative; padding: 31px 0 28px; }
.desktop-nav a::after { position: absolute; right: 0; bottom: 19px; left: 0; height: 3px; border-radius: 999px; background: var(--purple); content: ""; opacity: 0; transform: scaleX(.5); transition: .2s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--purple); }
.desktop-nav a.active::after { opacity: 1; transform: scaleX(1); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.language, .user-pill, .header-cta, .header-signout { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12px; font-weight: 800; }
.user-pill { gap: 7px; }
.user-pill span { color: var(--green); font-size: 9px; }
.header-signout { cursor: pointer; color: var(--muted); }
.header-signout:hover { border-color: var(--purple); color: var(--purple); }
.header-cta { border-color: var(--purple); background: var(--purple); color: #fff; }
.header-cta:hover { background: var(--purple-dark); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { margin-bottom: 0; font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 820px; font-size: clamp(48px, 5.7vw, 78px); }
h2 { font-size: clamp(28px, 3.4vw, 48px); }
h3 { font-size: 24px; }
.eyebrow { margin-bottom: 16px; color: var(--purple); font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.lede { max-width: 650px; margin: 25px 0 30px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.muted { color: var(--muted); }
.accent-dot { color: var(--purple); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 50px; padding: 0 22px; border: 1px solid var(--purple); border-radius: 9px; background: var(--purple); color: white; cursor: pointer; font-weight: 800; box-shadow: 0 9px 20px rgba(101, 71, 232, .18); transition: transform .2s ease, background .2s ease; }
.button:hover { background: var(--purple-dark); transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.button.secondary { border-color: var(--line); background: #fff; color: var(--ink); box-shadow: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 14px; font-weight: 800; }

.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); gap: 58px; align-items: center; min-height: 672px; padding: 62px 0 88px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(55px, 6.3vw, 86px); }
.hero-actions { align-items: stretch; }
.hero-proof { display: flex; align-items: center; gap: 15px; margin-top: 38px; }
.hero-proof p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.hero-proof strong { color: var(--ink); font-size: 13px; }
.proof-avatars { display: flex; padding-left: 8px; }
.proof-avatars span { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -8px; border: 3px solid #fff; border-radius: 50%; background: var(--purple-soft); color: var(--purple); font-size: 11px; font-weight: 900; }
.proof-avatars span:nth-child(2) { background: var(--yellow); color: var(--ink); }
.proof-avatars span:nth-child(3) { background: var(--green); color: var(--ink); }
.hero-art { position: relative; min-height: 500px; overflow: hidden; border-radius: 34px 8px 34px 8px; background: var(--purple); box-shadow: var(--shadow); isolation: isolate; }
.hero-art::before, .hero-art::after { position: absolute; border-radius: 50%; background: var(--yellow); content: ""; }
.hero-art::before { top: -70px; right: -65px; width: 200px; height: 200px; }
.hero-art::after { bottom: -110px; left: -80px; width: 260px; height: 260px; background: #8068ef; }
.hero-orbit { position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.orbit-one { top: 52px; left: 55px; width: 365px; height: 365px; }
.orbit-two { top: 101px; left: 103px; width: 270px; height: 270px; }
.hero-dashboard { position: absolute; z-index: 3; top: 92px; left: 50%; width: 62%; min-height: 300px; padding: 28px; border-radius: 20px 6px 20px 6px; background: #fff; box-shadow: 0 26px 60px rgba(25, 15, 80, .28); transform: translateX(-50%) rotate(-2deg); }
.dashboard-top { display: flex; gap: 5px; margin-bottom: 45px; }
.dashboard-top span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.hero-dashboard p { margin-bottom: 10px; color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hero-dashboard strong { display: block; font-size: clamp(24px, 3vw, 37px); line-height: 1.06; letter-spacing: -.045em; }
.dashboard-progress { height: 7px; margin: 34px 0 10px; overflow: hidden; border-radius: 99px; background: var(--purple-soft); }
.dashboard-progress span { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--purple); }
.hero-dashboard small { color: var(--muted); font-size: 10px; }
.floating-note { position: absolute; z-index: 4; display: grid; min-width: 112px; padding: 15px; border-radius: 15px 5px 15px 5px; background: #fff; box-shadow: 0 16px 34px rgba(31, 21, 85, .2); }
.floating-note span { display: grid; place-items: center; width: 27px; height: 27px; margin-bottom: 8px; border-radius: 8px; background: var(--purple-soft); color: var(--purple); font-size: 9px; }
.floating-note strong { font-size: 25px; line-height: 1; }
.floating-note small { color: var(--muted); font-size: 9px; }
.note-one { right: 22px; bottom: 37px; }
.note-two { bottom: 70px; left: 24px; min-width: 142px; }
.note-two span { background: #dff8ec; color: #147349; }

.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 88px; border: 1px solid var(--line); border-radius: 22px 7px 22px 7px; background: var(--soft); }
.feature-strip article { display: flex; gap: 18px; padding: 26px; border-right: 1px solid var(--line); }
.feature-strip article:last-child { border-right: 0; }
.feature-strip article > strong { color: var(--purple); font-size: 12px; }
.feature-strip h2 { margin-bottom: 8px; font-size: 18px; letter-spacing: -.025em; }
.feature-strip p { margin-bottom: 0; color: var(--muted); font-size: 12px; }

.section { padding: 70px 0 105px; }
.section-head { display: flex; justify-content: space-between; gap: 56px; align-items: flex-end; margin-bottom: 38px; }
.section-head h1 { font-size: clamp(47px, 6vw, 75px); }
.section-head > p { max-width: 530px; margin: 0 0 7px; color: var(--muted); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; padding: 13px 15px; border-radius: 13px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 800; }
.catalog-toolbar > div { display: flex; gap: 7px; }
.filter-pill { min-height: 37px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; }
.filter-pill.active { background: #fff; color: var(--purple); box-shadow: 0 5px 20px rgba(48, 37, 94, .08); }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.course-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px 6px 20px 6px; background: var(--card); transition: transform .2s ease, box-shadow .2s ease; }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.course-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--purple-soft); }
.course-cover img, .detail-cover img, .library-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.course-card:hover .course-cover img { transform: scale(1.035); }
.cover-badge { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 7px; background: #fff; color: var(--purple); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.cover-play { position: absolute; right: 15px; bottom: 15px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 11px; box-shadow: 0 8px 18px rgba(26, 21, 34, .16); }
.course-card-body { padding: 23px; }
.card-kicker { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.card-kicker span:last-child { color: var(--muted); }
.course-card h2, .library-item h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.035em; }
.course-card h2 a:hover { color: var(--purple); }
.course-card-body > p { min-height: 51px; margin: 14px 0 18px; color: var(--muted); font-size: 13px; }
.instructor-row { display: flex; align-items: center; gap: 10px; padding-top: 17px; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--purple-soft); color: var(--purple); font-size: 12px; font-weight: 900; }
.instructor-row span:last-child { display: grid; }
.instructor-row small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.instructor-row strong { font-size: 11px; }
.meta { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 18px; font-size: 13px; font-weight: 900; }
.meta span { font-size: 18px; }
.meta a { color: var(--purple); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 66px; align-items: start; padding: 58px 0 112px; }
.breadcrumb { display: inline-flex; margin-bottom: 31px; color: var(--muted); font-size: 12px; font-weight: 800; }
.breadcrumb:hover { color: var(--purple); }
.detail-main h1 { font-size: clamp(46px, 5.7vw, 72px); }
.course-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 40px 0 52px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.course-facts span { display: grid; gap: 3px; padding: 20px 18px; border-right: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.course-facts span:first-child { padding-left: 0; }
.course-facts span:last-child { border-right: 0; }
.course-facts strong { color: var(--ink); font-size: 14px; text-transform: none; }
.course-story { margin: 0 0 52px; }
.course-story h2 { max-width: 690px; font-size: clamp(32px, 3.5vw, 45px); }
.course-story-lede { max-width: 760px; margin: 18px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.course-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.course-info-card { padding: 24px; border: 1px solid var(--line); border-radius: 17px 5px 17px 5px; background: var(--soft); }
.course-info-card h3 { margin: 0 0 14px; font-size: 16px; }
.course-info-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.course-info-card li { position: relative; padding-left: 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.course-info-card li::before { position: absolute; top: .58em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); content: ""; }
.curriculum-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.curriculum-head h2 { font-size: 37px; }
.curriculum-head > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.lesson-list { overflow: hidden; border: 1px solid var(--line); border-radius: 17px 5px 17px 5px; }
.lesson-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 66px; padding: 12px 17px; border-bottom: 1px solid var(--line); background: #fff; font-size: 13px; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: var(--soft); }
.lesson-index { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: var(--purple-soft); color: var(--purple); font-size: 10px; font-weight: 900; }
.lesson-name { font-weight: 800; }
.lesson-row .muted { font-size: 10px; font-weight: 800; }
.course-sidebar { position: sticky; top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px 7px 24px 7px; background: #fff; box-shadow: var(--shadow); }
.detail-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--purple-soft); }
.course-sidebar-body { padding: 27px; }
.price { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.04em; }
.price-note { margin: 4px 0 22px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.sidebar-actions { display: grid; gap: 10px; }
.sidebar-actions .button { width: 100%; }
.google-signin, .google-signin .g_id_signin { width: 100%; min-height: 44px; }
.google-signin .g_id_signin > div { width: 100% !important; }
.google-signin .g_id_signin .nsm7Bb-HzV7m-LgbsSe { position: relative; display: flex; align-items: center; width: 100%; height: 44px; min-height: 44px; padding: 0 12px; overflow: hidden; border: 1px solid #747775; border-radius: 4px; background: #fff; color: #1f1f1f; cursor: pointer; box-shadow: none; font: 500 14px/20px "Google Sans", Roboto, Arial, sans-serif; letter-spacing: 0; }
.google-signin .g_id_signin .nsm7Bb-HzV7m-LgbsSe:hover { border-color: #747775; background: #f8faff; }
.google-signin .g_id_signin .nsm7Bb-HzV7m-LgbsSe:focus-visible { outline: 2px solid #0b57d0; outline-offset: 2px; }
.google-signin .g_id_signin .nsm7Bb-HzV7m-LgbsSe-MJoBVe { position: absolute; inset: 0; }
.google-signin .g_id_signin .nsm7Bb-HzV7m-LgbsSe-bN97Pc-sM5MNb { display: flex; align-items: center; min-width: 0; }
.google-signin .g_id_signin .nsm7Bb-HzV7m-LgbsSe-Bz112c { display: flex; flex: 0 0 20px; width: 20px; height: 20px; margin-right: 10px; }
.google-signin .g_id_signin .LgbsSe-Bz112c { display: block; width: 20px; height: 20px; }
.google-signin .g_id_signin .nsm7Bb-HzV7m-LgbsSe-BPrWId { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.google-signin .g_id_signin .L6cTce { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.sidebar-list { display: grid; gap: 12px; margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.sidebar-list li { position: relative; padding-left: 24px; color: var(--muted); font-size: 12px; }
.sidebar-list li::before { position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #dff8ec; color: #147349; content: "✓"; font-size: 9px; font-weight: 900; }
.purchase-details { margin: 0 0 20px; }
.purchase-details h2 { margin: 0 0 12px; font-size: 15px; }
.purchase-details dl { display: grid; gap: 12px; margin: 0; }
.purchase-details dl > div { display: grid; gap: 3px; }
.purchase-details dt { color: var(--ink); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.purchase-details dd { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.purchase-details dd a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.purchase-details > p { margin: 15px 0 0; font-size: 10px; }
.purchase-details > p a { color: var(--purple); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.source-badge { display: inline-flex; margin: 17px 0 0; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.notice { margin: 0; padding: 12px 14px; border-radius: 9px; background: var(--soft); color: var(--muted); font-size: 10px; }
.status { min-height: 20px; margin: 10px 27px 18px; color: var(--purple); font-size: 11px; }

.library-page .section-head { align-items: end; }
.library-list { display: grid; gap: 18px; }
.library-item { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 20px 6px 20px 6px; background: #fff; }
.library-cover { position: relative; height: 144px; overflow: hidden; border-radius: 14px 4px 14px 4px; }
.library-cover > span { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 7px; background: #fff; color: var(--purple); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.library-copy > p { margin: 10px 0 14px; font-size: 12px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.progress-track { display: block; width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 99px; background: var(--purple-soft); appearance: none; }
.progress-track::-webkit-progress-bar { border-radius: 99px; background: var(--purple-soft); }
.progress-track::-webkit-progress-value { border-radius: 99px; background: var(--purple); }
.progress-track::-moz-progress-bar { border-radius: 99px; background: var(--purple); }
.library-item > .button { min-width: 150px; }

.watch-page { padding-top: 42px; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.watch-main { min-width: 0; }
.video-wrap { overflow: hidden; margin: 0; border-radius: 22px 6px 22px 6px; background: #16131d; box-shadow: var(--shadow); }
video { display: block; width: 100%; aspect-ratio: 16/9; }
.locked-player { display: grid; place-items: center; min-height: 440px; padding: 54px 64px; border: 1px solid var(--line); border-radius: 22px 6px 22px 6px; background: radial-gradient(circle at 50% 0%, rgba(103,65,236,.14), transparent 44%), linear-gradient(145deg, #fbfaff, #f3f0fb); text-align: center; box-shadow: var(--shadow); }
.locked-player-icon { position: relative; display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 18px; border-radius: 22px 7px 22px 7px; background: var(--purple); color: #fff; box-shadow: 0 14px 32px rgba(103,65,236,.25); }
.locked-player-icon::before { position: absolute; top: 13px; width: 24px; height: 21px; border: 4px solid #fff; border-bottom: 0; border-radius: 14px 14px 0 0; content: ""; }
.locked-player-icon span { margin-top: 16px; font-size: 15px; font-weight: 900; }
.locked-player .eyebrow { margin-bottom: 10px; }
.locked-player h2 { max-width: 570px; font-size: clamp(28px, 3.4vw, 43px); }
.locked-player-body { max-width: 590px; margin: 17px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.locked-player-hint { max-width: 560px; margin: 12px 0 0; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.65; }
.locked-player-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.locked-player-actions .button { min-width: 190px; }
.watch-heading { display: flex; justify-content: space-between; gap: 22px; align-items: flex-end; margin-top: 28px; }
.watch-heading h1 { font-size: clamp(34px, 4vw, 52px); }
.watch-heading .eyebrow { margin-bottom: 10px; }
.watch-course-title { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.watch-main > .status { margin: 12px 0 0; }
.watch-sidebar { overflow: hidden; border: 1px solid var(--line); border-radius: 19px 6px 19px 6px; background: #fff; }
.watch-sidebar-head { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 20px; background: var(--purple); color: #fff; }
.watch-sidebar-head p { margin: 0 0 2px; font-size: 11px; opacity: .8; }
.watch-sidebar-head strong { font-size: 14px; }
.watch-sidebar-head > span { padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.16); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.watch-lessons { max-height: 570px; overflow: auto; }
.watch-lesson { display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.watch-lesson:last-child { border-bottom: 0; }
.watch-lesson > span { grid-row: 1 / span 2; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 9px; font-weight: 900; }
.watch-lesson strong { overflow: hidden; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.watch-lesson small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.watch-lesson:hover, .watch-lesson.active { background: var(--purple-soft); }
.watch-lesson.active > span { background: var(--purple); color: #fff; }

footer { display: flex; align-items: flex-end; justify-content: space-between; width: min(1180px, calc(100% - 48px)); margin: auto; padding: 35px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-brand { color: var(--ink); }
footer p { margin: 10px 0 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal-page { max-width: 860px; }
.legal-page h1 { margin-bottom: 18px; }
.legal-intro { color: var(--muted); font-size: 1.08rem; line-height: 1.75; margin-bottom: 34px; }
.legal-section { border-top: 1px solid var(--line); padding: 24px 0; }
.legal-section h2 { font-size: 1.2rem; margin: 0 0 10px; }
.legal-section p, .legal-updated { color: var(--muted); line-height: 1.75; margin: 0; }
.mobile-dock { display: none; }

@media (max-width: 920px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr 420px; gap: 30px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; }
  .watch-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .library-item { grid-template-columns: 180px minmax(0, 1fr); }
  .library-item > .button { grid-column: 2; width: fit-content; }
}

@media (max-width: 700px) {
  body { padding-bottom: 76px; font-size: 15px; }
  main { min-height: auto; }
  .shell { width: min(100% - 34px, 540px); }
  .site-header { width: min(100% - 34px, 540px); min-height: 70px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px 3px 10px 3px; }
  .brand > span:last-child { display: none; }
  .header-cta { display: none; }
  .language, .user-pill, .header-signout { min-height: 36px; padding: 0 11px; }
  .user-pill { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { display: flex; flex-direction: column; gap: 40px; min-height: 0; padding: 39px 0 58px; }
  .hero h1 { font-size: 49px; }
  .hero .lede { margin: 21px 0 25px; font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { min-height: 44px; margin: auto; }
  .hero-proof { margin-top: 25px; }
  .hero-art { width: 100%; min-height: 390px; border-radius: 25px 7px 25px 7px; }
  .hero-dashboard { top: 65px; width: 68%; min-height: 250px; padding: 22px; }
  .hero-dashboard strong { font-size: 27px; }
  .dashboard-top { margin-bottom: 32px; }
  .orbit-one { top: 30px; left: 20px; width: 310px; height: 310px; }
  .orbit-two { top: 72px; left: 62px; width: 228px; height: 228px; }
  .floating-note { min-width: 95px; padding: 12px; }
  .note-one { right: 10px; bottom: 22px; }
  .note-two { bottom: 43px; left: 10px; min-width: 123px; }
  .feature-strip { grid-template-columns: 1fr; margin-bottom: 57px; }
  .feature-strip article { padding: 21px; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-strip article:last-child { border-bottom: 0; }
  .section { padding: 47px 0 75px; }
  .section-head { display: block; margin-bottom: 25px; }
  .section-head h1 { font-size: 46px; }
  .section-head > p { margin-top: 17px; font-size: 13px; }
  .catalog-toolbar { margin-right: -2px; margin-left: -2px; }
  .catalog-toolbar > span { display: none; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card-body { padding: 20px; }
  .detail { display: flex; flex-direction: column; gap: 30px; padding: 38px 0 75px; }
  .detail-main h1 { font-size: 45px; }
  .detail-main .lede { font-size: 15px; }
  .course-sidebar { position: static; order: -1; width: 100%; }
  .detail-main .breadcrumb { display: none; }
  .course-facts { grid-template-columns: 1fr; margin: 33px 0 40px; }
  .course-facts span, .course-facts span:first-child { grid-template-columns: 1fr 1fr; padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .course-facts span:last-child { border-bottom: 0; }
  .course-facts strong { order: 2; text-align: right; }
  .course-story { margin-bottom: 40px; }
  .course-story h2 { font-size: 31px; }
  .course-info-grid { grid-template-columns: 1fr; }
  .curriculum-head h2 { font-size: 31px; }
  .lesson-row { grid-template-columns: 36px minmax(0, 1fr); }
  .lesson-row .muted { grid-column: 2; }
  .library-page .section-head { display: block; }
  .library-item { grid-template-columns: 1fr; gap: 17px; padding: 13px; }
  .library-cover { height: auto; aspect-ratio: 16/9; }
  .library-copy { padding: 4px 7px; }
  .library-item > .button { grid-column: 1; width: 100%; }
  .watch-page { width: 100%; padding-top: 23px; }
  .watch-page > .breadcrumb { margin-left: 17px; }
  .watch-layout { grid-template-columns: 1fr; }
  .video-wrap { border-radius: 0; }
  .locked-player { min-height: 0; margin: 0 17px; padding: 38px 22px; border-radius: 20px 6px 20px 6px; }
  .locked-player h2 { font-size: 29px; }
  .locked-player-actions { width: 100%; }
  .locked-player-actions .button { width: 100%; }
  .watch-heading, .watch-course-title, .watch-main > .status { margin-right: 17px; margin-left: 17px; }
  .watch-heading { display: block; }
  .watch-heading .source-badge { margin-top: 15px; }
  .watch-heading h1 { font-size: 35px; }
  .watch-sidebar { margin: 8px 17px 0; }
  .watch-lessons { max-height: none; }
  footer { display: none; }
  .mobile-dock { position: fixed; z-index: 50; right: 12px; bottom: 10px; left: 12px; display: grid; grid-template-columns: repeat(3, 1fr); min-height: 62px; padding: 7px; border: 1px solid rgba(232,229,238,.9); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 12px 38px rgba(32, 25, 61, .2); backdrop-filter: blur(14px); }
  .mobile-dock a { display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 12px; color: var(--muted); font-size: 9px; font-weight: 800; }
  .mobile-dock a span { font-size: 17px; line-height: 1; }
  .mobile-dock a.active { background: var(--purple-soft); color: var(--purple); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
