:root {
  color-scheme: light;
  --ink: #101915;
  --muted: #59645f;
  --paper: #ffffff;
  --white: #ffffff;
  --line: #d9e0dc;
  --green: #087c69;
  --green-dark: #07584d;
  --orange: #ea663e;
  --blue: #316ca6;
  --shadow: 0 18px 50px rgba(13, 24, 19, 0.14);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(16, 25, 21, 0.09);
  backdrop-filter: blur(14px);
}

.brand, .auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-lockup-logo {
  display: block;
  width: 196px;
  height: auto;
  border-radius: 6px;
}

.auth-brand-lockup {
  display: block;
  width: 154px;
  height: auto;
  border-radius: 6px;
}

nav { display: flex; gap: 34px; font-size: 14px; color: #39443f; }
nav a:hover { color: var(--green); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 20px;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-1px); }
.button svg { width: 18px; height: 18px; }
.button-primary { background: #2f68bd; color: white; }
.button-primary:hover { background: #25579f; }
.button-light { color: var(--ink); background: rgba(255,255,255,.92); border-color: rgba(255,255,255,.7); }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: #26322c; }
.button-quiet { color: var(--ink); background: transparent; border-color: var(--line); }

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  background: transparent;
}
.icon-button:hover { background: #edf1ef; }
.icon-button svg { width: 20px; height: 20px; }
.mobile-menu { display: none; }

.hero {
  height: calc(88vh - 96px);
  min-height: 520px;
  max-height: 840px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background-color: #dceefa;
  background-image: url("/assets/hdai-home-background.webp?v=20260912-1");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(600px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 128px);
  padding: 52px 0 72px;
  color: #172844;
}

.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  color: #dce9e3;
}
.eyebrow.dark { color: var(--green-dark); }
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #35d5a8;
  box-shadow: 0 0 0 5px rgba(53, 213, 168, .14);
}

.hero-brand-lockup {
  margin: 0;
  display: block;
  line-height: 1;
  letter-spacing: 0;
}

.hero-brand-image {
  display: block;
  width: min(600px, 100%);
  height: auto;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(13, 10, 54, .2);
}

.hero-copy {
  max-width: 540px;
  margin: 26px 0 30px;
  font-size: 24px;
  font-weight: 500;
  color: #29466f;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button-light { color: #172844; background: rgba(255, 255, 255, .72); border-color: rgba(255, 255, 255, .92); }
.release-line { margin: 17px 0 0; color: #4d688e; font-size: 13px; }
.hero-promo {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(24px, 8vw, 150px);
  width: min(360px, calc(100% - 40px));
  padding: 28px 30px 26px;
  transform: translateY(-50%);
  border: 1px solid rgba(91, 111, 177, .24);
  border-radius: 10px;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 16px 42px rgba(38, 53, 110, .11);
  color: #172844;
  backdrop-filter: blur(8px);
}
.promo-kicker { display: flex; align-items: center; gap: 8px; color: #8d4d9b; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.promo-kicker svg { width: 16px; height: 16px; }
.hero-promo h2 { margin: 16px 0 9px; font-size: 26px; line-height: 1.25; }
.hero-promo p { margin: 0; color: #4d688e; font-size: 14px; line-height: 1.7; }
.promo-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(91, 111, 177, .2); color: #657397; font-size: 12px; }
.promo-meta strong { color: #8d4d9b; font-size: 13px; }
.promo-action { display: inline-flex; align-items: center; gap: 7px; margin-top: 19px; color: #2f68bd; font-size: 13px; font-weight: 800; }
.promo-action svg { width: 16px; height: 16px; }
.promo-action-disabled { color: #8791a5; cursor: default; }

.coming-soon {
  padding: 76px 20px 82px;
  border-bottom: 1px solid var(--line);
  background: #f7fbff;
}
.coming-soon-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(42px, 8vw, 112px);
}
.coming-soon-copy { position: relative; width: 100%; min-height: 627px; display: grid; align-items: center; }
.coming-soon-message { position: relative; z-index: 2; width: min(420px, 100%); margin: 0 auto; }
.coming-soon-message h2 { margin: 0 0 18px; color: var(--ink); font-size: 48px; line-height: 1.12; }
.coming-soon-message > p:last-child { max-width: 360px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.desk-photo { position: absolute; z-index: 1; width: 178px; margin: 0; padding: 8px 8px 24px; border: 1px solid rgba(132, 153, 166, .22); border-radius: 3px; background: #fff; box-shadow: 0 15px 32px rgba(45, 78, 99, .2); }
.desk-photo img { display: block; width: 100%; height: auto; }
.desk-photo-plush { top: 12px; left: 4px; transform: rotate(-7deg); }
.desk-photo-foam { right: 2px; bottom: 10px; transform: rotate(8deg); }
.coming-soon-figure { width: min(100%, 420px); margin: 0 auto; overflow: hidden; border: 1px solid #d8e6ef; border-radius: 8px; background: #eaf5fc; box-shadow: 0 18px 44px rgba(39, 97, 138, .14); }
.coming-soon-figure img { display: block; width: 100%; height: auto; }

.portal-band { background: var(--white); border-bottom: 1px solid var(--line); }
.portal-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.portal-item {
  position: relative;
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease;
}
.portal-item:last-child { border-right: 1px solid var(--line); }
.portal-item:disabled { opacity: 1; cursor: default; }
.portal-item:disabled:hover { color: var(--ink); background: var(--white); }
.portal-item-active:hover { color: var(--green-dark); background: #f4faf7; }
.portal-item:focus-visible { z-index: 1; outline: 3px solid rgba(89, 80, 210, .28); outline-offset: -3px; }
.portal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d8d7ee;
  border-radius: 6px;
  color: #5c52cf;
  background: #f2f1fb;
}
.portal-item:nth-child(2) .portal-icon { color: #266ba8; background: #edf5fb; border-color: #d3e5f2; }
.portal-item:nth-child(3) .portal-icon { color: #c65034; background: #fff2ed; border-color: #f2d8cf; }
.portal-item:nth-child(4) .portal-icon { color: #a33f70; background: #fbf0f6; border-color: #edd5e2; }
.portal-item:nth-child(5) .portal-icon { color: #15745f; background: #edf7f3; border-color: #d1e8df; }
.portal-icon svg { width: 20px; height: 20px; }
.portal-copy { min-width: 0; display: block; }
.portal-copy strong { display: block; font-size: 15px; line-height: 1.35; }
.portal-copy small { display: block; margin-top: 5px; color: #88938d; font-size: 12px; line-height: 1.3; }

.courses-section {
  padding: 96px 20px 104px;
  background: #f5f8f6;
  border-bottom: 1px solid #dfe7e2;
}
.learning-section { padding: 96px 20px 104px; background: var(--white); border-bottom: 1px solid #dfe7e2; }
.learning-section .course-card-icon { color: #a33f70; background: #fbf0f6; border-color: #edd5e2; }
.learning-release { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.learning-release span { min-width: 0; display: grid; gap: 5px; }
.learning-release strong { font-size: 14px; }
.learning-release small { color: var(--muted); font-size: 12px; }
.learning-release > svg { flex: 0 0 auto; color: #a33f70; }
.course-grid {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.course-maintenance {
  margin: 0;
  padding: 13px 16px;
  color: #7b4d16;
  background: #fff8e8;
  border: 1px solid #ead6ad;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.course-grid > .course-maintenance { grid-column: 1 / -1; margin-bottom: 4px; text-align: center; }
.course-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid #d4ded9;
  border-radius: 7px;
}
.course-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #266ba8;
  background: #edf5fb;
  border: 1px solid #d3e5f2;
  border-radius: 6px;
}
.course-card-icon svg { width: 22px; height: 22px; }
.course-card-copy { min-width: 0; }
.course-status {
  display: inline-block;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}
.course-card h3 { margin: 4px 0 4px; font-size: 19px; line-height: 1.35; }
.course-card p { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 14px; }
.course-card small { display: block; margin-top: 9px; color: #78857e; font-size: 12px; }

.product-section { padding: 108px 20px 120px; overflow: hidden; background: var(--white); }
.section-heading { width: min(720px, 100%); margin: 0 auto 58px; text-align: center; }
.section-heading.align-left { margin: 0; text-align: left; }
.section-heading h2, .download-section h2, .account-dialog h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.22;
  letter-spacing: 0;
}
.section-heading > p:last-child { margin: 18px auto 0; color: var(--muted); font-size: 17px; }
.align-left > p:last-child { margin-left: 0; }

.product-figure { width: min(1280px, 100%); margin: 0 auto; }
.product-figure img { display: block; width: 100%; border: 1px solid #cfd9d4; border-radius: 7px; box-shadow: var(--shadow); }
.product-figure figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 12px; }

.cloud-section { background: var(--white); border-block: 1px solid #e2e8e5; }
.cloud-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 230px; padding: 28px 24px; background: var(--white); border: 1px solid #d2dcd7; border-radius: 7px; }
.feature-card svg { width: 27px; height: 27px; color: var(--green); }
.feature-card:nth-child(2) svg { color: var(--blue); }
.feature-card:nth-child(3) svg { color: var(--orange); }
.feature-card h3 { margin: 38px 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

.download-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.download-section p:last-child { margin: 14px 0 0; color: var(--muted); }

footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 64px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
footer span:first-child { color: var(--ink); font-weight: 800; }
footer span:last-child { margin-left: auto; }

dialog {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(11, 19, 15, .58); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 16px; right: 16px; }
.auth-brand { margin-bottom: 26px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: #edf1ef; border-radius: 6px; }
.segment { min-height: 36px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-weight: 700; }
.segment.active { color: var(--ink); background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
form { display: grid; gap: 16px; margin-top: 24px; }
label { display: grid; gap: 7px; color: #344139; font-size: 13px; font-weight: 700; }
input { width: 100%; min-height: 44px; border: 1px solid #cbd5d0; border-radius: 5px; padding: 0 12px; color: var(--ink); background: white; outline: none; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8, 124, 105, .12); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 44px; }
.password-toggle { position: absolute; right: 2px; top: 2px; }
.form-error { min-height: 20px; margin: 0; color: #b32929; font-size: 13px; }
.form-submit { width: 100%; }

.account-dialog { width: min(700px, calc(100% - 32px)); }
.announcement-dialog { width: min(560px, calc(100% - 32px)); }
.announcement-heading { padding-right: 38px; }
.announcement-heading .eyebrow { margin-bottom: 8px; }
.announcement-heading h2 { margin: 0; font-size: 30px; line-height: 1.22; }
.announcement-heading p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.announcement-list { display: grid; gap: 12px; margin-top: 26px; }
.announcement-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 13px; padding: 16px; border: 1px solid #dce5e1; border-radius: 7px; background: #fbfdfc; }
.announcement-item-action { position: relative; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.announcement-item-action:hover { border-color: #cbb5d8; background: #f8f2fb; box-shadow: 0 8px 20px rgba(73, 43, 91, .08); transform: translateY(-1px); }
.announcement-item-action:focus-visible { outline: 3px solid rgba(89, 80, 210, .28); outline-offset: 2px; }
.announcement-item-arrow { position: absolute; top: 16px; right: 16px; color: #8d4d9b; }
.announcement-item-arrow svg { width: 18px; height: 18px; }
.announcement-item-highlight { border-color: #e4d8ed; background: #fbf8fd; }
.announcement-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #d5e3df; border-radius: 6px; color: var(--green); background: #edf7f3; }
.announcement-item-highlight .announcement-icon { border-color: #e5d2eb; color: #8d4d9b; background: #f6eef9; }
.announcement-icon svg { width: 19px; height: 19px; }
.announcement-item strong { display: block; font-size: 14px; }
.announcement-item p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.announcement-video-item { align-items: start; }
.announcement-video-copy { min-width: 0; }
.announcement-video-copy video { display: block; width: 100%; max-width: 100%; margin-top: 12px; aspect-ratio: 16 / 9; border-radius: 6px; background: #16211e; object-fit: contain; }
.account-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-right: 38px; }
.account-heading .eyebrow { margin-bottom: 8px; }
.account-heading h2 { font-size: 30px; }
.account-heading p:last-child { margin: 6px 0 0; color: var(--muted); }
.membership-badge { flex: 0 0 auto; padding: 5px 10px; border: 1px solid #cfe0d9; border-radius: 5px; color: var(--green-dark); background: #f0f8f5; font-size: 12px; font-weight: 800; }
.billing-summary { display: grid; grid-template-columns: 1.45fr 1fr 1fr; margin-top: 28px; border-block: 1px solid var(--line); }
.billing-summary section { min-width: 0; padding: 20px; border-left: 1px solid var(--line); }
.billing-summary section:first-child { padding-left: 0; border-left: 0; }
.billing-summary span, .billing-summary small { display: block; color: var(--muted); font-size: 12px; }
.billing-summary strong { display: block; margin-top: 7px; font-size: 20px; line-height: 1.2; }
.billing-summary .balance-primary strong { font-size: 28px; color: #205f9b; }
.billing-summary small { margin-top: 5px; color: var(--green); }
.billing-summary small.low { color: #ba4b32; }
.recharge-panel { display: grid; margin-top: 24px; padding: 18px 0; border-block: 1px solid var(--line); background: #fff; }
.recharge-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.recharge-heading strong { display: block; font-size: 15px; }
.recharge-heading small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.recharge-status { flex: 0 0 auto; color: #9a6a2f; font-size: 12px; font-weight: 700; }
.recharge-actions { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 16px; }
.recharge-amounts { display: grid; grid-template-columns: repeat(4, minmax(56px, 1fr)); gap: 6px; }
.recharge-amounts button { min-width: 56px; min-height: 42px; padding: 0 10px; border: 1px solid #cfd9d5; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.recharge-amounts button:hover, .recharge-amounts button:focus-visible { border-color: #3374ca; }
.recharge-amounts button.is-selected { border-color: #3374ca; background: #edf5ff; color: #205f9b; box-shadow: inset 0 0 0 1px #3374ca; }
.recharge-entry { display: inline-flex; align-items: center; justify-content: center; gap: 9px; justify-self: end; width: 122px; min-height: 42px; margin-top: 16px; border: 1px solid #2e68b7; border-radius: 6px; background: #3374ca; box-shadow: 0 2px 0 #24599d; color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; transition: background .16s ease, transform .08s ease, box-shadow .08s ease; }
.recharge-actions .recharge-entry { flex: 0 0 122px; margin-top: 0; }
.recharge-entry-button:hover, .recharge-entry-button:focus-visible { background: #2868bd; transform: translateY(-1px); box-shadow: 0 3px 0 #24599d; }
.recharge-entry-button:active { transform: translateY(2px); box-shadow: none; }
.recharge-entry-button svg { width: 16px; height: 16px; }
.alert-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-top: 22px; }
.alert-form label { max-width: 260px; }
.alert-form .button { min-height: 44px; }
.profile-name-form { display: grid; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-name-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.profile-name-heading small { color: var(--muted); font-size: 12px; }
.profile-name-form label { display: grid; gap: 6px; }
.profile-name-form label span { color: var(--muted); font-size: 13px; }
.profile-name-form input { min-height: 42px; }
.profile-name-form .form-error { min-height: 18px; margin: 0; }
.profile-name-form .button { justify-self: start; min-height: 42px; }
.password-change-form { display: grid; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.password-change-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.password-change-heading small { color: var(--muted); font-size: 12px; }
.password-change-form label { display: grid; gap: 6px; }
.password-change-form label span { color: var(--muted); font-size: 13px; }
.password-change-form input { min-height: 42px; }
.password-change-form .form-error { min-height: 18px; margin: 0; }
.password-reset-notice { margin: 0; padding: 10px 12px; border-left: 3px solid #ba4b32; background: #fff6f3; color: #8f3826; font-size: 13px; }
.password-change-form .button { justify-self: start; min-height: 42px; }
.money-input { position: relative; display: block; }
.money-input b { position: absolute; left: 12px; top: 11px; color: var(--muted); font-weight: 500; }
.money-input input { padding-left: 30px; }
.transaction-heading { display: flex; justify-content: space-between; margin-top: 28px; padding-bottom: 10px; color: var(--muted); font-size: 13px; }
.transaction-heading strong { color: var(--ink); }
.transaction-list { max-height: 210px; overflow: auto; border-top: 1px solid var(--line); }
.transaction-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #edf0ee; }
.transaction-row span { min-width: 0; display: grid; gap: 2px; }
.transaction-row strong { font-size: 14px; }
.transaction-row small { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.transaction-row > b { flex: 0 0 auto; font-size: 14px; }
.transaction-row .credit { color: var(--green); }
.transaction-row .debit { color: #ba4b32; }
.empty-state { margin: 0; padding: 24px 0; color: var(--muted); text-align: center; font-size: 13px; }
.account-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }

.course-dialog { width: min(780px, calc(100% - 32px)); }
.dialog-back { position: absolute; top: 16px; left: 16px; }
.course-dialog.series-view .course-dialog-heading { padding-left: 34px; }
.course-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-right: 34px;
}
.course-dialog-heading .eyebrow { margin-bottom: 8px; }
.course-dialog-heading h2 { font-size: 30px; }
.course-dialog-heading p:last-child { margin: 7px 0 0; color: var(--muted); }
.course-price { flex: 0 0 auto; color: #205f9b; font-size: 24px; }
.course-access-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.course-access-line .button { flex: 0 0 auto; }
.lesson-heading, .transaction-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-bottom: 11px;
  color: var(--muted);
  font-size: 12px;
}
.lesson-heading strong { color: var(--ink); font-size: 14px; }
.lesson-list { border-top: 1px solid var(--line); }
.series-row {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 10px 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  text-align: left;
  cursor: pointer;
}
.series-row:not(:disabled):hover { background: #f7faf8; }
.series-row:disabled { color: var(--muted); cursor: default; }
.series-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #266ba8;
  background: #edf5fb;
  border-radius: 5px;
}
.series-icon svg { width: 18px; height: 18px; }
.series-copy { min-width: 0; display: grid; gap: 4px; }
.series-copy strong, .series-copy small { overflow-wrap: anywhere; }
.series-copy strong { font-size: 14px; }
.series-copy small { color: var(--muted); font-size: 12px; }
.series-action { display: inline-flex; align-items: center; justify-content: flex-end; color: var(--muted); font-size: 12px; }
.series-action svg { width: 18px; height: 18px; }
.lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  border-bottom: 1px solid #edf0ee;
}
.lesson-row > span:first-child { min-width: 0; display: grid; gap: 3px; }
.lesson-row strong { overflow-wrap: anywhere; font-size: 14px; }
.lesson-row small { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.lesson-play { flex: 0 0 auto; color: var(--green-dark); background: #edf7f3; }
.lesson-play:disabled { color: #8a958f; background: #f0f3f1; cursor: default; }
.lesson-lock { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; color: #8a958f; font-size: 12px; }
.lesson-lock svg { width: 15px; height: 15px; }
.course-player { margin-top: 22px; }
.course-player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #13221d; border-radius: 6px; }
.course-player p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 26px;
  max-width: min(440px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 6px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; height: 96px; }
  nav { display: none; position: absolute; top: 96px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 20px 18px; background: white; border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  nav a { padding: 12px 0; }
  .mobile-menu { display: inline-grid; }
  .hero { display: block; height: auto; min-height: 540px; padding-bottom: 42px; }
  .hero-content { margin: 0 auto; padding-inline: 20px; }
  .hero-promo { position: relative; top: auto; right: auto; width: min(600px, calc(100% - 40px)); margin: 0 auto; transform: none; }
  .hero-brand-image { width: min(520px, 100%); }
  .hero-copy { font-size: 21px; }
  .coming-soon-inner { grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); gap: 36px; }
  .portal-grid { grid-template-columns: repeat(3, 1fr); }
  .portal-item:nth-child(3) { border-right: 1px solid var(--line); }
  .portal-item:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .cloud-inner { grid-template-columns: 1fr; gap: 50px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .course-card { grid-template-columns: 48px minmax(0, 1fr); }
  .course-card > .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 640px) {
  .site-header { height: 92px; padding-inline: 16px; }
  nav { top: 92px; }
  .header-actions .button { min-height: 38px; padding-inline: 13px; }
  .hero { min-height: 0; padding-bottom: 28px; }
  .hero-content { width: 100%; margin: 0; padding: 38px 20px 46px; }
  .brand-lockup-logo { width: 148px; }
  .hero-brand-image { width: 100%; max-width: 350px; border-radius: 7px; }
  .hero-copy { font-size: 19px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-promo { width: calc(100% - 32px); padding: 22px 20px 20px; }
  .hero-promo h2 { font-size: 22px; }
  .coming-soon { padding: 64px 16px 70px; }
  .coming-soon-inner { grid-template-columns: 1fr; gap: 30px; }
  .coming-soon-copy { min-height: 500px; display: block; padding-top: 218px; }
  .coming-soon-message { width: 100%; }
  .coming-soon-message h2 { font-size: 34px; }
  .desk-photo { width: 146px; padding: 6px 6px 18px; }
  .desk-photo-plush { top: 8px; left: 8px; }
  .desk-photo-foam { top: 42px; right: 10px; bottom: auto; }
  .coming-soon-figure { width: min(100%, 360px); }
  .portal-grid { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .portal-item { min-height: 94px; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
  .portal-item:nth-child(3) { border-right: 0; }
  .portal-item:nth-child(4) { border-right: 1px solid var(--line); }
  .portal-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .portal-item:nth-child(5) { grid-column: 1 / -1; }
  .portal-icon { width: 38px; height: 38px; }
  .courses-section { padding: 76px 16px 84px; }
  .learning-section { padding: 76px 16px 84px; }
  .course-card { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 16px; }
  .course-card-icon { width: 40px; height: 40px; }
  .course-card > .button { grid-column: 2; }
  .section-heading h2, .download-section h2, .account-dialog h2 { font-size: 30px; }
  .product-section { padding: 76px 16px 88px; }
  .product-figure img { width: 160%; max-width: none; transform: translateX(-18%); }
  .cloud-inner { width: calc(100% - 32px); padding: 80px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 180px; }
  .feature-card h3 { margin-top: 24px; }
  .download-section { width: calc(100% - 32px); padding: 72px 0; align-items: stretch; flex-direction: column; }
  footer { flex-wrap: wrap; padding-block: 24px; }
  footer span:last-child { width: 100%; margin: 0; }
  dialog { padding: 28px 22px; }
  .account-heading { display: grid; gap: 12px; }
  .billing-summary { grid-template-columns: 1fr 1fr; }
  .billing-summary section { padding: 15px 0; border-left: 0; }
  .billing-summary section:nth-child(2) { padding-left: 16px; border-left: 1px solid var(--line); }
  .billing-summary .balance-primary { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .recharge-actions { align-items: stretch; flex-direction: column; }
  .recharge-amounts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .recharge-actions .recharge-entry { align-self: end; flex-basis: auto; width: 122px; }
  .alert-form { grid-template-columns: 1fr; }
  .alert-form label { max-width: none; }
  .account-actions { display: grid; }
  .course-dialog-heading { display: grid; gap: 9px; }
  .course-dialog.series-view .course-dialog-heading { padding-left: 30px; }
  .series-row { grid-template-columns: 34px minmax(0, 1fr); }
  .series-action { grid-column: 2; justify-content: flex-start; }
  .course-price { font-size: 21px; }
  .course-access-line { align-items: stretch; flex-direction: column; }
  .course-access-line .button { width: 100%; }
}

@media (max-width: 640px) and (max-height: 620px) {
  .hero-brand-image { max-width: 300px; }
  .hero-copy { margin: 16px 0 18px; font-size: 15px; }
  .hero-content { padding-block: 22px 28px; }
  .eyebrow { margin-bottom: 10px; }
  .release-line { margin-top: 9px; }
}

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