
:root {
  --bg: #f5f8ff;
  --card: #ffffff;
  --text: #172033;
  --muted: #5f6f86;
  --primary: #2f5bea;
  --primary-dark: #2244c7;
  --line: #e5ebf5;
  --soft: #eef4ff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

header.site-header,
.site-header,
.topbar,
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  overflow: visible;
}

.nav,
header > div,
.site-header > div,
.topbar > div,
.navbar > div {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.logo,
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  color: var(--text);
}

.logo-badge,
.brand-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #5b5ff4, #2456e8);
  color: white;
  font-weight: 900;
}

nav,
.navlinks,
.menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

nav button,
nav a,
.lang,
.btn,
button {
  border: 1px solid #c8d5ff;
  background: white;
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

nav button:hover,
nav a:hover,
.lang:hover,
.btn:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(47, 91, 234, 0.14);
}

.btn.primary,
button.primary,
.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn.secondary,
.secondary {
  background: white;
  color: var(--primary);
  border-color: #c8d5ff;
}

.page {
  padding: 48px 24px 80px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, #edf5ff, #f7fbff);
  padding: 70px 0;
}

h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 18px 0 20px;
  color: var(--text);
}

h2 {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

h3 {
  font-size: 22px;
  margin: 0 0 12px;
}

p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 16px;
}

.lead {
  font-size: 20px;
  color: var(--muted);
}

.panel,
.card,
.pricing,
.practice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.panel {
  margin-bottom: 24px;
}

.card {
  min-height: 150px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--soft);
  color: var(--primary);
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 14px;
}

.tag.free {
  background: #e9fff3;
  color: #11864b;
}

.premiumtag {
  background: #fff4da;
  color: #9a6500;
}

.price {
  font-size: 28px;
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}

.price-nowrap,
.price-token,
.course-price-amount {
  white-space: nowrap;
}

.price-currency-note,
.home-price-currency-note {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
  white-space: normal;
}

.home-price-currency-note {
  margin-top: 12px;
  text-align: center;
}

.home-price-amount {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  max-width: 100%;
}

.course-price-block {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
}

.course-price-block.is-compact {
  padding: 12px 14px;
  margin: 10px 0 14px;
}

.course-price-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
}

.course-price-amount {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  color: var(--primary);
  font-weight: 900;
}

.course-price-amount.is-free {
  color: #11864b;
  font-size: 24px;
}

.course-price-amount.is-earlybird {
  font-size: 28px;
}

.course-price-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
}

.course-price-original {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 14px;
}

.course-price-original s {
  color: #94a3b8;
  text-decoration-thickness: 1px;
}

.course-price-save {
  margin: 6px 0 0;
  color: #0f766e;
  font-size: 14px;
  font-weight: 800;
}

.course-price-meta {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.course-price-includes,
.course-price-facts {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.course-price-includes li,
.course-price-facts li {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.course-price-facts li {
  display: grid;
  gap: 2px;
}

.course-price-facts span {
  color: #64748b;
  font-size: 12px;
}

.course-price-facts strong {
  color: #0f172a;
  font-weight: 700;
}

.course-price-coming-soon {
  margin: 8px 0 0;
  font-size: 12px;
  color: #64748b;
}

.home-price-teaser {
  margin: 14px 0 0;
}

.home-price-teaser-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #334155;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  max-width: 100%;
  line-height: 1.5;
}

.home-price-teaser-link:hover {
  color: var(--primary);
}

.home-price-amount.is-free {
  color: #11864b;
}

.home-price-original {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.4;
  max-width: 100%;
}

.home-price-note {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  max-width: 100%;
  white-space: normal;
}

.map-card-desc {
  color: #475569;
  line-height: 1.6;
}

.map-all-access-card .course-price-amount.is-earlybird {
  font-size: 30px;
}

@media (max-width: 430px) {
  .course-price-amount,
  .course-price-amount.is-earlybird,
  .map-all-access-card .course-price-amount.is-earlybird,
  .home-price-amount {
    font-size: 22px;
  }

  .course-price-block,
  .course-price-block.is-compact {
    padding: 12px;
  }

  .home-price-teaser-link {
    font-size: 13px;
    line-height: 1.5;
  }
}

.promptbox,
pre {
  white-space: pre-wrap;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  overflow-x: auto;
  font-size: 16px;
  line-height: 1.7;
}

textarea {
  width: 100%;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  font: inherit;
  resize: vertical;
  background: #fbfdff;
  margin: 12px 0;
}

details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--primary);
}

.btnrow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

ol,
ul {
  font-size: 17px;
  color: var(--muted);
}

li {
  margin: 8px 0;
}

/* V23 safe compact sticky header */
header.site-header,
.site-header,
.topbar,
.navbar {
  min-height: 72px;
}

header a,
header button,
.site-header a,
.site-header button,
.topbar a,
.topbar button,
.navbar a,
.navbar button {
  font-size: 14px;
  padding-top: 8px;
  padding-bottom: 8px;
}

main,
.page {
  scroll-margin-top: 96px;
}

@media (max-width: 900px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .nav,
  header > div,
  .site-header > div,
  .topbar > div,
  .navbar > div {
    padding: 10px 14px;
  }

  h1 {
    font-size: 44px;
  }

  .panel,
  .card,
  .pricing,
  .practice {
    padding: 22px;
  }
}


/* V24 Dynamic Shrinking Header */
header.site-header.asb-dynamic-header,
.site-header.asb-dynamic-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  transition: all 0.24s ease !important;
  overflow: visible !important;
}

.asb-dynamic-header,
.asb-dynamic-header * {
  transition: all 0.24s ease !important;
}

.asb-dynamic-header.asb-shrink {
  min-height: 54px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}

.asb-dynamic-header.asb-shrink > div,
.asb-dynamic-header.asb-shrink .nav,
.asb-dynamic-header.asb-shrink .navbar,
.asb-dynamic-header.asb-shrink .topbar {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.asb-dynamic-header.asb-shrink a,
.asb-dynamic-header.asb-shrink button,
.asb-dynamic-header.asb-shrink .lang,
.asb-dynamic-header.asb-shrink .btn {
  font-size: 12px !important;
  padding: 5px 9px !important;
  line-height: 1.2 !important;
}

.asb-dynamic-header.asb-shrink .logo,
.asb-dynamic-header.asb-shrink .brand,
.asb-dynamic-header.asb-shrink [class*="logo"],
.asb-dynamic-header.asb-shrink [class*="brand"] {
  transform: scale(0.76) !important;
  transform-origin: left center !important;
}

.asb-page-scrolled .page {
  padding-top: 28px !important;
}

@media (max-width: 900px) {
  .asb-dynamic-header.asb-shrink {
    min-height: 48px !important;
  }

  .asb-dynamic-header.asb-shrink a,
  .asb-dynamic-header.asb-shrink button,
  .asb-dynamic-header.asb-shrink .lang,
  .asb-dynamic-header.asb-shrink .btn {
    font-size: 11px !important;
    padding: 4px 7px !important;
  }
}



/* V27 Value Sections */
.panel ul li {
  line-height: 1.8;
}



/* V28 Application Package */
textarea[id^="application-package-"] {
  min-height: 220px;
}



/* V29 Compact Navigation */
.compact-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap !important;
  min-height: 64px;
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 1;
  overflow: visible;
}

header.site-header > .nav,
header.site-header > .compact-nav,
header.site-header .nav-actions,
header.site-header .nav-main,
header.site-header .desktop-nav {
  overflow: visible;
}

.compact-nav .brand {
  flex: 0 0 auto;
  white-space: nowrap;
}

.compact-nav .nav-link-btn,
.compact-nav .lang,
.compact-nav .nav-main-links > button,
.compact-nav .more-wrap > button {
  white-space: nowrap;
  flex: 0 0 auto;
}

.desktop-nav,
.nav-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  overflow: visible;
}

.nav-main-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
  flex-wrap: nowrap;
}

.nav-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.nav-account {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: min(280px, 42vw);
}

.account-identity {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}

.account-identity-name {
  font-size: 13px;
  font-weight: 650;
  color: #0f172a;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}

.account-role-badge-creator {
  color: #312e81;
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.22);
}

.account-role-badge-queen {
  color: #92400e;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 1px 2px rgba(146, 64, 14, 0.06);
}

.account-role-crown {
  font-size: 11px;
  line-height: 1;
  color: #b45309;
}

.account-membership-summary {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.account-membership-summary p {
  margin: 0 0 8px;
  color: #334155;
  font-size: 14px;
}

.account-membership-summary p:last-child {
  margin-bottom: 0;
}

.account-access-banner-meta {
  margin: 10px 0 12px;
}

.more-menu-account {
  padding: 10px 12px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid #e8eef8;
}

.more-menu-access {
  margin: 8px 0 0;
  font-size: 12px;
  color: #64748b;
}

.home-preview-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 0;
}

.more-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1100;
  overflow: visible;
  pointer-events: auto;
  flex: 0 0 auto;
}

.more-menu,
.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1200;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--line, #e5ebf5);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  pointer-events: auto;
}

/* Closed by default — never participate in header document flow */
.more-menu,
.more-menu[hidden],
.mobile-nav-panel,
.mobile-nav-panel[hidden] {
  display: none !important;
}

.more-menu.open:not([hidden]),
.mobile-nav-panel.is-open:not([hidden]),
.mobile-nav-panel.open:not([hidden]) {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}

.more-menu {
  min-width: 240px;
}

.more-menu button,
.mobile-nav-panel button {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  white-space: nowrap;
  pointer-events: auto;
}

.compact-nav button.active,
.compact-nav .nav-link-btn.active {
  background: var(--primary, #2f5bea);
  color: #fff;
  border-color: var(--primary, #2f5bea);
}

.more-menu-grouped {
  min-width: 240px;
  gap: 12px;
}

.more-menu-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.more-menu-group + .more-menu-group {
  padding-top: 10px;
  border-top: 1px solid var(--line, #e5ebf5);
}

.more-menu-group-label {
  margin: 0 0 4px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.mobile-nav-wrap {
  position: relative;
  z-index: 1100;
  flex: 0 0 auto;
  overflow: visible;
}

.mobile-nav-btn,
.mobile-nav-toggle {
  display: none;
}

.mobile-nav-panel {
  width: min(320px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
}

.mobile-nav-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-more {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line, #e5ebf5);
}

.map-section-title {
  margin: 0 0 14px;
  font-size: 18px;
  color: #0f172a;
}

.home-onboarding-card {
  padding: 0 0 8px;
}

.home-onboarding-panel {
  position: relative;
  margin: -12px auto 24px;
  padding: 22px 24px;
  border: 1px solid #dbe4f5;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.home-onboarding-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
}

.home-onboarding-panel ol {
  margin: 12px 0 18px;
  padding-left: 20px;
  color: #475569;
}

.home-onboarding-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* Pull hero closer under nav than a full home-section */
.home-page .home-hero {
  padding-bottom: 40px;
}

.home-text-link {
  display: inline-flex;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: transparent;
  color: #2f5bea;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary,
.home-btn-primary {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
}

.btn.secondary,
.home-btn-secondary {
  background: #fff;
  border: 1.5px solid #2f5bea;
  color: #1e3a8a;
}

/* Desktop: only desktop nav */
@media (min-width: 900px) {
  .desktop-nav,
  .nav-main-desktop {
    display: flex !important;
  }

  .mobile-nav-wrap,
  .mobile-nav-btn,
  .mobile-nav-toggle,
  .mobile-nav-panel,
  .mobile-nav-panel.is-open,
  .mobile-nav-panel.open {
    display: none !important;
  }
}

/* Mobile: only menu toggle; panel closed unless is-open */
@media (max-width: 899px) {
  header.site-header,
  header.site-header.asb-dynamic-header,
  .compact-nav {
    overflow: visible;
  }

  .compact-nav {
    align-items: center;
    flex-wrap: nowrap !important;
    min-height: 56px;
  }

  .desktop-nav,
  .nav-main-desktop {
    display: none !important;
  }

  .mobile-nav-wrap {
    display: inline-flex !important;
  }

  .mobile-nav-btn,
  .mobile-nav-toggle {
    display: inline-flex !important;
    white-space: nowrap;
  }

  .mobile-nav-panel,
  .mobile-nav-panel[hidden] {
    display: none !important;
  }

  .mobile-nav-panel.is-open:not([hidden]),
  .mobile-nav-panel.open:not([hidden]) {
    display: flex !important;
  }

  .nav-actions {
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .account-identity-name {
    max-width: 72px;
  }
}

@media (max-width: 430px) {
  .compact-nav .brand span:last-child {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-nav-panel {
    right: -8px;
  }

  .nav-account {
    max-width: min(160px, 42vw);
  }
}

@media (max-width: 700px) {
  .compact-nav .brand span:last-child {
    display: none;
  }
}



/* V31 Application Package Save + Progress */
.package-progress-track {
  height: 16px;
  background: #e5ebf5;
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 8px;
}

.package-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2f5bea, #5b5ff4);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.application-package-item textarea {
  min-height: 240px;
}



/* V32 Instant Progress + Clipboard Fallback */
.package-progress-track {
  height: 16px;
  background: #e5ebf5;
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 8px;
}

.package-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2f5bea, #5b5ff4);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.application-package-item textarea {
  min-height: 240px;
}

#final-review-prompt-box {
  width: 100%;
}



/* V33 Clickable Scorecard + Course Progress */
.scorecard-list {
  display: grid;
  gap: 18px;
}

.score-row {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line, #e5ebf5);
  border-radius: 18px;
  background: #fbfdff;
}

.score-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.score-btn {
  width: 38px;
  height: 38px;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
}

.score-btn.selected {
  background: var(--primary, #2f5bea) !important;
  color: #fff !important;
  border-color: var(--primary, #2f5bea) !important;
}



/* V35 Completion Toggle Button */
button[onclick^="toggleLessonComplete"] {
  min-width: 180px;
}



/* V36 Free Bootcamp */
.card .btn {
  margin-top: 8px;
}



/* V37 Free Portfolio + Quiz + Certificate */
.certificate-card {
  border: 2px solid #d7b56d;
  border-radius: 24px;
  padding: 36px;
  background: linear-gradient(135deg, #fffaf0, #ffffff);
  text-align: center;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.quiz-option.correct {
  background: #e9fff3 !important;
  color: #11864b !important;
  border-color: #86efac !important;
}

.quiz-option.wrong {
  background: #fff1f2 !important;
  color: #be123c !important;
  border-color: #fecdd3 !important;
}

textarea[id^="free-portfolio-"] {
  min-height: 220px;
}



/* V38 Clean Learning Center */
.certificate-card {
  border: 2px solid #d7b56d;
  border-radius: 24px;
  padding: 36px;
  background: linear-gradient(135deg, #fffaf0, #ffffff);
  text-align: center;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.panel .btnrow {
  margin-top: 14px;
}



/* V39 Free Course Quality */
.panel ul li {
  line-height: 1.85;
}

.free-quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef6ff;
  color: #1d4ed8;
  font-weight: 800;
}

#free-note-0,
textarea[id^="free-note-"] {
  min-height: 160px;
}



/* V40 Premium Lesson Quality */
.panel ol li,
.panel ul li {
  line-height: 1.85;
}

.premium-quality-grid {
  display: grid;
  gap: 16px;
}

.promptbox {
  white-space: pre-wrap;
}



/* Homepage — AI Skill Platform SaaS */
@keyframes hp-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hp-glow-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -12px); }
}

.home-page {
  --hp-r: 16px;
  --hp-r-lg: 22px;
  --hp-border: rgba(15, 23, 42, 0.08);
  --hp-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 48px rgba(15, 23, 42, 0.06);
  --hp-shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.08), 0 28px 70px rgba(37, 99, 235, 0.12);
  --hp-indigo: #3730a3;
  --hp-blue: #1d4ed8;
  --hp-violet: #5b21b6;
  background: #f7f8fc;
  color: #0f172a;
  overflow-x: hidden;
}

.home-page h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  font-weight: 700;
  color: #0b1220;
}

.home-page h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #0b1220;
  margin: 0;
}

.home-page h3 {
  font-size: 18px;
  font-weight: 650;
  color: #0b1220;
  margin: 0;
}

.home-page p { color: #64748b; }

.hp-animate { animation: hp-fade-up 0.7s ease both; }
.hp-delay { animation-delay: 0.12s; }

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(37, 99, 235, 0.08), transparent 55%),
    linear-gradient(180deg, #f4f7ff 0%, #f7f8fc 55%, #ffffff 100%);
}

.home-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: hp-glow-drift 12s ease-in-out infinite;
}

.home-hero-glow-a { width: 480px; height: 480px; top: -160px; right: 4%; background: rgba(79, 70, 229, 0.16); }
.home-hero-glow-b { width: 360px; height: 360px; bottom: -80px; left: -60px; background: rgba(29, 78, 216, 0.1); animation-delay: -4s; }
.home-hero-glow-c { width: 240px; height: 240px; top: 42%; left: 48%; background: rgba(91, 33, 182, 0.08); animation-delay: -7s; }

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.home-tagline {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hp-indigo);
  margin: 0 0 16px;
}

.home-lead {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 0 28px;
}

.home-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.home-btn-compact {
  padding: 11px 18px;
  font-size: 14px;
}

.home-btn-primary {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #312e81 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(30, 58, 138, 0.28);
}

.home-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(30, 58, 138, 0.34);
}

.home-btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border: 1px solid var(--hp-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.home-btn-secondary:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--hp-shadow);
}

.home-text-link {
  display: inline-flex;
  margin-top: 18px;
  padding: 0;
  border: none;
  background: none;
  color: var(--hp-blue);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: none;
}

.home-text-link:hover {
  color: var(--hp-violet);
  transform: none;
  box-shadow: none;
}

.home-trust-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

.home-trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 16px 0 0;
  padding: 0;
}

.home-trust-list li {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.home-trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #6366f1);
}

.home-hero-content { min-width: 0; }
.home-hero-visual { min-width: 0; }

.home-product-preview {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--hp-r-lg);
  box-shadow: var(--hp-shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-product-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(30, 58, 138, 0.16);
}

.home-preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hp-border);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.home-preview-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e2e8f0;
}

.home-preview-chrome span:nth-child(1) { background: #fda4af; }
.home-preview-chrome span:nth-child(2) { background: #fcd34d; }
.home-preview-chrome span:nth-child(3) { background: #86efac; }

.home-preview-chrome strong {
  margin-left: 8px;
  font-size: 13px;
  color: #0f172a;
}

.home-preview-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.home-preview-badge-live {
  color: #065f46;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.home-preview-body {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 14px;
  padding: 18px;
}

.home-preview-main {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8faff);
  border: 1px solid var(--hp-border);
}

.home-preview-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.home-preview-main h3 {
  font-size: 16px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.home-preview-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 8px;
}

.home-preview-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #6366f1 55%, #7c3aed);
  transition: width 0.6s ease;
}

.home-preview-meta {
  margin: 0 0 14px;
  font-size: 12px;
  color: #64748b;
}

.home-preview-side {
  display: grid;
  gap: 10px;
}

.home-preview-side article {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--hp-border);
}

.home-preview-side span {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: #94a3b8;
  margin-bottom: 6px;
}

.home-preview-side strong {
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.home-preview-side small {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
}

.home-preview-caps {
  padding: 0 18px 18px;
}

.home-preview-caps > p {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.home-preview-caps ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.home-preview-caps li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--hp-border);
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}

.home-preview-caps em {
  font-style: normal;
  font-size: 11px;
  color: #94a3b8;
}

.home-preview-caps li.is-unlocked em { color: #059669; }

.home-stats-bar {
  padding: 18px 0 8px;
}

.home-stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-radius: var(--hp-r-lg);
  background: #fff;
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
}

.home-stat-chip {
  min-width: 0;
  padding: 8px 6px;
  text-align: center;
}

.home-stat-chip strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 4px;
}

.home-stat-chip span {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.home-section { padding: 96px 0; }
.home-section-alt { background: #eef2ff1a; }

.home-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.home-section-header h2 { margin-bottom: 14px; }

.home-section-lead {
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

.home-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-cap-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--hp-r-lg);
  background: #fff;
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  min-width: 0;
}

.home-cap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hp-shadow-lg);
}

.home-cap-top {
  display: grid;
  gap: 10px;
}

.home-cap-status {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.home-cap-status.is-on {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.home-cap-course {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: #334155;
}

.home-cap-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.home-cap-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.home-cap-meta li {
  margin: 0;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.home-cap-price {
  color: var(--primary);
  font-weight: 800;
  white-space: normal;
  max-width: 100%;
}

.home-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-process-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--hp-r-lg);
  background: #fff;
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
}

.home-process-num {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: #c7d2fe;
  margin-bottom: 14px;
}

.home-process-card h3 { margin-bottom: 10px; }
.home-process-card p { margin: 0; font-size: 15px; line-height: 1.65; }

.home-process-line {
  display: none;
}

.home-pkg-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.home-pkg-feature {
  padding: 32px;
  border-radius: var(--hp-r-lg);
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 45%),
    #fff;
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow-lg);
}

.home-pkg-feature h3 {
  margin: 14px 0 12px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.home-pkg-feature > p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  max-width: 46ch;
}

.home-pkg-list {
  display: grid;
  gap: 10px;
}

.home-pkg-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--hp-border);
  background: #fff;
  box-shadow: var(--hp-shadow);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-pkg-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow-lg);
}

.home-pkg-list-title {
  font-size: 14px;
  font-weight: 650;
  color: #0f172a;
}

.home-pkg-list-meta {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.home-pkg-list-item.is-locked .home-pkg-list-meta { color: #94a3b8; }

.home-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.home-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px 24px;
  border-radius: var(--hp-r-lg);
  background: #fff;
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  overflow: visible;
}

.home-price-card h3 {
  margin: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  max-width: 100%;
}

.home-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hp-shadow-lg);
}

.home-price-featured {
  border-color: rgba(79, 70, 229, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.14);
}

.home-price-badge {
  position: static;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 0 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #6366f1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transform: none;
}

.home-price-amount {
  margin: 0 !important;
  font-size: clamp(20px, 2.4vw, 28px) !important;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #0f172a !important;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  max-width: 100%;
  line-height: 1.25;
}

.home-price-card ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.home-price-card li {
  position: relative;
  margin: 0;
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #475569;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.home-price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.home-price-card .home-btn {
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}

.home-price-card .course-price-coming-soon {
  margin: 12px 0 0;
  flex-shrink: 0;
  max-width: 100%;
  white-space: normal;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.home-price-owned,
.course-price-owned {
  margin: 12px 0 0;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: #166534;
}

.home-price-card .home-price-owned {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f0fdf4;
}

.home-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-audience-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--hp-border);
  background: #fff;
  box-shadow: var(--hp-shadow);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-audience-card span {
  font-size: 15px;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.4;
}

.home-audience-card em {
  font-style: normal;
  color: #6366f1;
  font-weight: 700;
}

.home-audience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hp-shadow-lg);
  border-color: rgba(99, 102, 241, 0.25);
}

.home-cta-banner {
  padding: 96px 0;
  background: linear-gradient(135deg, #0b1220 0%, #1e3a8a 48%, #312e81 100%);
  position: relative;
  overflow: hidden;
}

.home-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(129, 140, 248, 0.28), transparent 46%);
  pointer-events: none;
}

.home-cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.home-cta-banner h2 {
  color: #fff;
  margin-bottom: 12px;
}

.home-cta-banner .home-section-lead {
  color: #c7d2fe;
  max-width: 520px;
}

.home-btn-light {
  background: #fff;
  color: #0f172a;
}

.home-btn-light:hover { background: #f8fafc; }

.home-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.home-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Site-wide footer — public customer support (ECPay) */
.site-footer {
  background: #f4f7fb;
  color: #334155;
  border-top: 1px solid #dbeafe;
  padding: 48px 0 0;
  margin-top: auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr 1fr;
  gap: 28px 32px;
  padding-bottom: 32px;
}

.site-footer-link-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.site-footer-link-list li {
  margin: 0 0 6px;
}

.site-footer-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: #1d4ed8;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.site-footer-link-btn:hover,
.site-footer-link-btn:focus-visible {
  text-decoration: underline;
  outline: none;
}

.course-price-policy-link {
  margin: 10px 0 0;
}

.course-price-policy-link .linkish {
  font-size: 13px;
}

/* Phase 4A public policy pages */
.public-info-page {
  padding-bottom: 24px;
}

.public-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: start;
}

.public-info-article {
  max-width: 760px;
}

.public-info-body {
  color: #334155;
  line-height: 1.7;
  font-size: 16px;
}

.public-info-section {
  margin-top: 28px;
}

.public-info-section h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #0f172a;
}

.public-info-section p {
  margin: 0 0 12px;
}

.public-info-list {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.public-info-list li {
  margin: 0 0 8px;
}

.public-info-note {
  margin-top: 10px;
  color: #64748b;
  font-size: 14px;
}

.public-info-nav {
  position: sticky;
  top: 88px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.public-info-nav-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.public-info-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-info-nav li {
  margin: 0 0 6px;
}

.public-info-nav-link {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1d4ed8;
  cursor: pointer;
}

.public-info-nav-link:hover,
.public-info-nav-link:focus-visible,
.public-info-nav-link.is-active {
  background: #eff6ff;
  outline: none;
}

@media (max-width: 900px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .public-info-layout {
    grid-template-columns: 1fr;
  }

  .public-info-nav {
    position: static;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 36px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.site-footer-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.site-footer-tagline,
.site-footer-meta p {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 10px;
}

.site-footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.site-footer-subheading {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 12px;
}

.site-footer-line {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 8px;
  color: #334155;
}

.site-footer-link {
  color: #2563eb;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-footer-link:hover {
  text-decoration: underline;
}

.site-footer-bottom {
  border-top: 1px solid #dbeafe;
  padding: 16px 0 24px;
}

.site-footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 36px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.home-footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 72px 0 32px;
}

.home-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-footer-brand p {
  font-size: 14px;
  margin: 14px 0 0;
  color: #64748b;
  max-width: 280px;
  line-height: 1.6;
}

.home-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.home-footer-logo span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  font-size: 12px;
}

.home-footer h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  margin: 0 0 16px;
}

.home-footer button {
  display: block;
  background: none;
  border: none;
  padding: 6px 0;
  font-size: 14px;
  color: #94a3b8;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
  box-shadow: none;
  font-weight: 500;
}

.home-footer button:hover {
  color: #fff;
  transform: none;
  box-shadow: none;
}

.home-footer-bottom {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.home-footer-bottom p {
  margin: 18px 0 0;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.home-footer-tagline {
  margin-top: 4px !important;
}

@media (max-width: 1100px) {
  .home-cap-grid,
  .home-audience-grid,
  .home-pricing-grid,
  .home-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-stats-bar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-pkg-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .home-hero { padding: 64px 0 48px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .home-preview-body { grid-template-columns: 1fr; }
  .home-preview-caps ul { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .home-section { padding: 72px 0; }
  .home-cap-grid,
  .home-audience-grid,
  .home-pricing-grid,
  .home-process-grid,
  .home-stats-bar-grid {
    grid-template-columns: 1fr;
  }
  .home-hero-cta { flex-direction: column; }
  .home-hero-cta .home-btn,
  .home-cta-inner .home-btn {
    width: 100%;
  }
  .home-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .home-cta-inner .home-hero-cta { width: 100%; }
  .home-cta-banner .home-section-lead { margin-left: auto; margin-right: auto; }
  .home-footer-grid { grid-template-columns: 1fr; }
  .home-page h1 { font-size: clamp(32px, 9vw, 40px); }
  .home-hero-clarity { padding: 40px 0 32px; }
  .home-hero-clarity h1 { font-size: clamp(28px, 8vw, 36px); }
  .home-hero-steps { grid-template-columns: 1fr; gap: 12px; }
  .home-hero-goal-block { padding: 18px 16px 14px; }
  .home-solution-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-animate,
  .hp-delay,
  .home-hero-glow {
    animation: none !important;
  }

  .home-btn,
  .home-cap-card,
  .home-price-card,
  .home-audience-card,
  .home-pkg-list-item,
  .home-product-preview,
  .home-preview-bar {
    transition: none !important;
  }

  .home-btn:hover,
  .home-cap-card:hover,
  .home-price-card:hover,
  .home-audience-card:hover,
  .home-pkg-list-item:hover,
  .home-product-preview:hover {
    transform: none !important;
  }
}

/* Course result packages */
.course-result-label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 600;
}

.course-result-url-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7deea;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.course-result-meta {
  margin: 10px 0 0;
  color: #667085;
  font-size: 0.92rem;
}

.course-result-save-panel textarea,
.course-result-item textarea {
  min-height: 160px;
}

.course-result-grid {
  gap: 18px;
}

.course-result-item h3 {
  margin: 8px 0 12px;
  font-size: 1.05rem;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .course-result-save-panel .btnrow,
  .course-result-item .btnrow {
    flex-direction: column;
  }

  .course-result-save-panel .btnrow .btn,
  .course-result-item .btnrow .btn {
    width: 100%;
  }
}

.map-path-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-path-arrow {
  text-align: center;
  font-size: 1.4rem;
  color: #667085;
  line-height: 1;
}

.map-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 40px;
}

.map-hero {
  padding: 8px 0 4px;
}

.map-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #0b1220;
  max-width: 22ch;
}

.map-hero-lead {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  max-width: 58ch;
}

.map-free-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.map-free-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #4338ca;
}

.map-free-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #0b1220;
}

.map-free-card p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.map-free-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.map-free-meta li {
  font-size: 13px;
  color: #334155;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
}

.map-free-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.map-path-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
  max-width: 100%;
}

.map-path-filter {
  appearance: none;
  border: 1px solid #dbe3f0;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.map-path-filter:hover,
.map-path-filter:focus-visible {
  border-color: #a5b4fc;
  outline: none;
}

.map-path-filter.is-active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.map-paths {
  display: flex;
  flex-direction: column;
  gap: 36px;
  scroll-margin-top: 88px;
}

.map-path-section {
  scroll-margin-top: 88px;
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #fff;
  position: relative;
}

.map-path-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: #93c5fd;
}

.map-path-accent-study {
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 48%);
}

.map-path-accent-study::before {
  background: #818cf8;
}

.map-path-accent-career {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 48%);
}

.map-path-accent-career::before {
  background: #38bdf8;
}

.map-path-accent-startup {
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 48%);
}

.map-path-accent-startup::before {
  background: #6366f1;
}

.map-path-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0 0 16px;
  padding-left: 8px;
}

.map-path-number {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #4338ca;
}

.map-path-header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: #0b1220;
}

.map-path-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  max-width: 62ch;
}

.map-path-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  padding-left: 8px;
}

.map-path-grid-career {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

.map-path-grid-startup {
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  max-width: 820px;
}

.map-path-aside {
  padding: 18px 18px;
  border-radius: 14px;
  border: 1px dashed #c7d2fe;
  background: rgba(255, 255, 255, 0.75);
  align-self: stretch;
}

.map-path-aside h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #312e81;
}

.map-path-aside p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.map-path-aside-note {
  margin-top: 10px !important;
  font-size: 12px !important;
  color: #64748b !important;
}

.map-course-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: none;
}

.map-course-card.is-locked {
  border-style: dashed;
}

.map-course-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.map-capability-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  color: #3730a3;
  background: #eef2ff;
  border-radius: 999px;
  padding: 4px 9px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.map-course-card h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #0b1220;
  overflow-wrap: anywhere;
}

.map-course-value,
.map-course-fit,
.map-course-package,
.map-course-lessons,
.map-course-progress {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  overflow-wrap: anywhere;
}

.map-course-value {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.map-course-fit span,
.map-course-package span {
  font-weight: 700;
  color: #334155;
}

.map-course-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-top: 4px;
}

.map-course-price strong {
  font-size: 1.15rem;
  color: #0f172a;
}

.map-course-price span {
  font-size: 12px;
  color: #64748b;
}

.map-course-card .btnrow {
  margin-top: auto;
  padding-top: 8px;
}

.map-course-card .course-price-coming-soon {
  margin: 0;
  font-size: 12px;
}

.map-all-access-section {
  scroll-margin-top: 88px;
}

.map-all-access-card {
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 55%);
  max-width: 720px;
}

.map-all-access-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #4338ca;
}

.map-all-access-card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: #0b1220;
}

.map-all-access-lead {
  margin: 0 0 12px;
  font-size: 15px;
  color: #334155;
}

.map-all-access-includes {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.map-all-access-includes li {
  font-size: 13px;
  color: #334155;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e2e8f0;
}

.map-all-access-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
}

.map-all-access-prices p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-all-access-prices span {
  font-size: 12px;
  color: #64748b;
}

.map-service-note {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.map-service-note h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.map-service-note ul {
  margin: 0 0 12px;
  padding-left: 1.1rem;
  color: #475569;
  line-height: 1.7;
  font-size: 14px;
}

.map-service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.map-service-links .linkish {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 1024px) {
  .map-path-grid,
  .map-path-grid-career,
  .map-path-grid-startup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .map-path-grid-startup .map-path-aside {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .map-page-wrap {
    gap: 22px;
  }

  .map-hero h1 {
    max-width: none;
  }

  .map-free-card {
    grid-template-columns: 1fr;
  }

  .map-free-cta {
    min-width: 0;
    width: 100%;
  }

  .map-path-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .map-path-grid,
  .map-path-grid-career,
  .map-path-grid-startup {
    grid-template-columns: 1fr;
  }

  .map-all-access-includes {
    grid-template-columns: 1fr;
  }

  .map-path-section {
    padding: 16px 14px;
  }

  .map-path-header,
  .map-path-grid {
    padding-left: 6px;
  }
}

.map-path-card-locked,
.result-package-card-locked {
  opacity: 0.92;
  border: 1px dashed #c9d3e5;
}

.result-package-overview-grid {
  margin-top: 24px;
}

.result-package-detail-header h2 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
}

.result-package-progress-line {
  margin: 10px 0 4px;
  font-size: 1.15rem;
  font-weight: 750;
  color: #0f172a;
}

.result-package-percent {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
}

.result-package-summary-list {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  color: #334155;
  line-height: 1.7;
}

.result-package-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.result-package-filter-row .lang.active {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

.result-package-intro-list {
  margin: 12px 0 18px;
  padding-left: 1.1rem;
  line-height: 1.7;
  color: #334155;
}

.result-package-lesson-grid {
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .result-package-lesson-grid {
    grid-template-columns: 1fr;
  }
}

.result-package-lesson-item,
.course-result-item {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: normal;
}

.result-package-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.result-package-lesson-label {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.04em;
}

.result-package-empty-note {
  margin: 8px 0 12px;
  color: #64748b;
  font-size: 14px;
}

.result-package-result-details {
  margin: 8px 0 12px;
}

.result-package-result-body {
  margin-top: 10px;
  max-width: 100%;
}

.result-package-result-text {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font: inherit;
  color: #0f172a;
  box-sizing: border-box;
}

.result-package-lesson-item h3,
.course-result-item h3 {
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
}

.tag.result-status-completed,
.tag.hub-state-completed {
  background: #ecfdf5;
  color: #047857;
}

.tag.result-status-saved,
.tag.hub-state-progress {
  background: #eff6ff;
  color: #1d4ed8;
}

.tag.result-status-empty,
.tag.hub-state-idle {
  background: #f1f5f9;
  color: #64748b;
}

.tag.hub-state-locked {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

@media (max-width: 430px) {
  .result-package-lesson-item .btnrow,
  .course-result-item .btnrow,
  .result-package-continue-row {
    flex-direction: column;
  }

  .result-package-lesson-item .btnrow .btn,
  .course-result-item .btnrow .btn,
  .result-package-continue-row .btn {
    width: 100%;
  }
}

.auth-gate-panel {
  max-width: 720px;
  margin: 0 auto;
}

.auth-gate-panel .btnrow {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.auth-gate-hint {
  margin-top: 12px;
  color: #4a5a73;
}

@media (max-width: 900px) {
  .result-package-overview-grid {
    grid-template-columns: 1fr;
  }

  .auth-gate-panel .btnrow .btn {
    width: 100%;
  }
}

/* Professional course / lesson system */
.course-pro-page,
.lesson-pro-page {
  --course-max: 1120px;
  --course-read: 760px;
  background: #f7f8fc;
}

.course-pro-wrap,
.lesson-pro-wrap {
  max-width: var(--course-max);
}

.course-pro-hero,
.course-pro-panel,
.lesson-pro-header,
.lesson-pro-nav,
.course-pro-aside-card,
.lesson-pro-sidebar-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: none;
}

.course-pro-hero {
  padding: 28px 28px 24px;
  margin: 18px 0 20px;
}

.course-pro-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.course-pro-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3730a3;
}

.course-pro-hero h1,
.lesson-pro-header h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0b1220;
}

.course-pro-lead,
.lesson-pro-value {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.7;
  color: #475569;
  max-width: 62ch;
}

.course-pro-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.course-pro-meta-grid div {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.course-pro-meta-grid span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.course-pro-meta-grid strong {
  font-size: 14px;
  color: #0f172a;
  line-height: 1.45;
  font-weight: 650;
}

.course-pro-progress {
  margin-bottom: 16px;
}

.course-pro-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #334155;
}

.course-pro-panel {
  padding: 24px;
  margin-bottom: 20px;
}

.course-pro-panel h2,
.lesson-pro-nav h2,
.course-pro-aside-card h2,
.lesson-pro-sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #0b1220;
}

.course-pro-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.course-pro-checklist li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 22px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  line-height: 1.65;
}

.course-pro-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0f172a;
}

.course-pro-layout,
.lesson-pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

.lesson-pro-layout {
  grid-template-columns: 260px minmax(0, 1fr);
}

.course-pro-aside-card,
.lesson-pro-sidebar-card {
  position: sticky;
  top: 88px;
  padding: 18px;
}

.course-pro-aside-card ul,
.lesson-pro-sidebar-card ol {
  margin: 0 0 16px;
  padding-left: 18px;
  color: #475569;
  line-height: 1.55;
}

.course-curriculum-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.course-curriculum-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fbfcfe;
}

.course-curriculum-item.is-current {
  border-color: rgba(79, 70, 229, 0.35);
  background: #f5f3ff;
}

.course-curriculum-item.is-complete {
  border-color: rgba(16, 185, 129, 0.28);
}

.course-curriculum-item.is-locked {
  opacity: 0.72;
}

.course-curriculum-index {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
}

.course-curriculum-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.4;
  color: #0f172a;
}

.course-curriculum-outcome {
  margin: 0 0 8px;
  font-size: 13px;
  color: #64748b;
}

.course-curriculum-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-curriculum-meta span {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #eef2ff;
  border-radius: 999px;
  padding: 3px 8px;
}

.course-product-highlights {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.course-product-highlights li {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  min-width: 0;
}

.course-product-highlights span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.course-product-highlights strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.course-product-section + .course-product-section,
.course-product-section + .course-pro-layout,
.course-pro-layout + .course-product-section {
  margin-top: 16px;
}

.course-product-muted {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.course-product-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.course-product-steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.course-product-step-num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #eef2ff;
  color: #3730a3;
}

.course-product-steps h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #0f172a;
}

.course-product-steps p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.course-all-access-value {
  margin: 16px 0 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.course-all-access-value h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.course-all-access-price {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 12px;
}

.course-all-access-price p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.course-all-access-price span {
  font-size: 12px;
  color: #64748b;
}

.course-compare-table-wrap {
  overflow-x: auto;
  margin: 12px 0 8px;
  -webkit-overflow-scrolling: touch;
}

.course-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.course-compare-table th,
.course-compare-table td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
}

.course-compare-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

.course-compare-table tbody th {
  font-weight: 600;
  color: #334155;
  background: #fff;
  width: 28%;
}

.course-compare-cards {
  display: none;
  gap: 12px;
  margin-top: 12px;
}

.course-compare-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.course-compare-card.is-featured {
  border-color: #c7d2fe;
  background: #f8fafc;
}

.course-compare-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.course-compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-compare-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.course-compare-card li span {
  color: #64748b;
  flex: 0 1 42%;
}

.course-compare-card li strong {
  color: #0f172a;
  text-align: right;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.course-product-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}

.course-product-policy-links .linkish {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.course-curriculum-locked-note {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f1f5f9;
}

.course-curriculum-item.is-preview {
  opacity: 1;
}

.map-card-capability {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #3730a3;
}

.home-price-diff {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .course-product-highlights {
    grid-template-columns: 1fr;
  }

  .course-compare-table-wrap {
    display: none;
  }

  .course-compare-cards {
    display: grid;
  }
}

@media (min-width: 768px) {
  .course-compare-cards {
    display: none !important;
  }
}

.lesson-pro-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.lesson-pro-nav,
.lesson-pro-header {
  padding: 22px 24px;
}

/* Lesson title card must scroll away with the page — never sticky/fixed.
   Global `header { position: sticky }` previously trapped .lesson-pro-header. */
.lesson-pro-header {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  min-height: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none !important;
}

.lesson-tab-panel {
  max-width: var(--course-read);
  padding: 8px 4px 28px;
}

.lesson-block {
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.lesson-block h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #0b1220;
  line-height: 1.3;
}

.lesson-block h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #0f172a;
}

.lesson-block p,
.lesson-block li {
  color: #334155;
  line-height: 1.7;
  font-size: 15px;
}

.lesson-block p + p {
  margin-top: 10px;
}

.lesson-pro-nav-row,
.lesson-pro-nav-status,
.lesson-pro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.lesson-pro-nav-status span,
.lesson-pro-chips span {
  font-size: 12px;
  font-weight: 650;
  color: #334155;
  background: #eef2f7;
  border-radius: 8px;
  padding: 5px 10px;
}

.lesson-pro-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
}

.lesson-pro-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.lesson-pro-objectives {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  line-height: 1.7;
  display: grid;
  gap: 8px;
}

.lesson-pro-why-grid,
.lesson-pro-concept-grid,
.lesson-pro-rubric {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.lesson-pro-why-grid > div,
.lesson-pro-concept-grid > div {
  padding: 0;
  background: transparent;
  border: 0;
}

.lesson-scenario-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.lesson-scenario-steps > div {
  padding: 0 0 0 12px;
  border-left: 2px solid #cbd5e1;
}

.lesson-scenario-steps > div > span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.lesson-callout,
.lesson-pro-quiz-card,
.course-result-save-panel.panel {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.lesson-callout-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.lesson-accordion {
  margin: 10px 0 0;
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}

.lesson-accordion summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: #0f172a;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-accordion summary::-webkit-details-marker {
  display: none;
}

.lesson-accordion summary::before {
  content: "▸";
  color: #64748b;
  font-size: 12px;
}

.lesson-accordion[open] summary::before {
  content: "▾";
}

.lesson-accordion[open] summary {
  margin-bottom: 8px;
}

.lesson-pro-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  margin: 0;
  scrollbar-width: thin;
  position: sticky;
  top: 72px;
  z-index: 40;
  background: rgba(247, 248, 252, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5ebf5;
}

.lesson-tab-btn {
  flex: 0 0 auto;
  border: 1px solid #dbe3f0;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.lesson-tab-btn.is-active,
.lesson-tab-btn[aria-selected="true"] {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.lesson-tab-cta {
  margin-top: 8px;
  padding-top: 8px;
}

.lesson-rubric-summary {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.lesson-rubric-summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid #e8eef5;
}

.lesson-rubric-summary span {
  color: #64748b;
  font-size: 13px;
}

.lesson-pro-prompt .promptbox {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.lesson-pro-muted {
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.lesson-pro-workflow,
.lesson-pro-practice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.lesson-pro-workflow li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
}

.lesson-pro-workflow-index {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
}

.lesson-pro-workflow h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.lesson-pro-practice-list > li {
  padding: 0 0 14px;
  border-bottom: 1px solid #e8eef5;
}

.lesson-pro-mistake-list {
  display: grid;
  gap: 14px;
}

.lesson-pro-quiz-options {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.lesson-pro-sidebar-card ol {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: grid;
  gap: 6px;
}

.lesson-pro-sidebar-card li button {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  box-shadow: none;
}

.lesson-pro-sidebar-card li.is-active button {
  border-color: rgba(15, 23, 42, 0.14);
  background: #f1f5f9;
}

.lesson-pro-sidebar-card li.is-complete button span {
  color: #059669;
}

.lesson-pro-sidebar-card button span {
  font-size: 12px;
  font-weight: 750;
  color: #0f172a;
}

.lesson-pro-sidebar-card button em {
  font-style: normal;
  font-size: 12px;
  color: #334155;
  line-height: 1.35;
}

.lesson-toc-toggle {
  display: none;
}

.lesson-pro-complete .btnrow {
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .course-pro-layout,
  .lesson-pro-layout {
    grid-template-columns: 1fr;
  }

  .course-pro-aside-card,
  .lesson-pro-sidebar-card {
    position: static;
  }

  .lesson-pro-sidebar {
    display: none;
  }

  .lesson-pro-layout.sidebar-open .lesson-pro-sidebar {
    display: block;
  }

  .lesson-toc-toggle {
    display: inline-flex;
  }

  .lesson-pro-sidebar-card {
    position: static;
  }

  .lesson-pro-tabs {
    position: static;
    top: auto;
    z-index: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
    padding: 4px 0;
  }

  .lesson-tab-btn {
    white-space: normal;
    border-radius: 12px;
    text-align: center;
  }

  .course-curriculum-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .course-curriculum-action {
    grid-column: 1 / -1;
  }

  .course-curriculum-action .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .course-pro-meta-grid,
  .lesson-pro-why-grid,
  .lesson-pro-concept-grid,
  .lesson-scenario-steps,
  .lesson-pro-rubric {
    grid-template-columns: 1fr;
  }

  .course-pro-hero,
  .course-pro-panel,
  .lesson-pro-nav,
  .lesson-pro-header {
    padding: 18px;
  }

  .course-pro-cta .btn,
  .lesson-pro-complete .btnrow .btn {
    width: 100%;
  }
}

@media (max-width: 375px) {
  .lesson-pro-page,
  .lesson-pro-wrap,
  .lesson-pro-layout,
  .lesson-pro-content {
    max-width: 100%;
    overflow-x: hidden;
  }

  .lesson-pro-tabs {
    gap: 6px;
  }

  .lesson-tab-btn {
    padding: 9px 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-pro-page *,
  .lesson-pro-page * {
    scroll-behavior: auto !important;
  }
}

/* Course learning guidance system */
.course-guide-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 24px 26px;
  margin: 0 0 20px;
}

.course-guide-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #0b1220;
}

.course-guide-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.course-guide-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  align-items: start;
}

.course-guide-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.course-guide-steps h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #0f172a;
}

.course-guide-steps p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}

.course-guide-cta {
  display: flex;
  justify-content: flex-start;
}

.course-criteria-list {
  margin: 0 0 16px;
  padding-left: 20px;
  color: #334155;
  line-height: 1.7;
}

.course-criteria-status {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.course-criteria-status li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e8eef5;
  margin: 0;
  color: #334155;
  font-size: 14px;
}

.course-criteria-status strong {
  color: #0f172a;
  font-weight: 700;
}

.lesson-onboarding-card {
  border: 1px solid #c7d2fe;
  background: #f8faff;
  border-radius: 14px;
  padding: 16px 18px;
}

.lesson-onboarding-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.lesson-onboarding-card ol {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #334155;
}

.lesson-learning-flow {
  padding: 14px 0 4px;
}

.lesson-learning-flow-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
}

.lesson-learning-flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.lesson-flow-step {
  position: relative;
  margin: 0;
  min-width: 0;
}

.lesson-flow-connector {
  position: absolute;
  left: -12%;
  top: 18px;
  width: 24%;
  height: 2px;
  background: #cbd5e1;
  z-index: 0;
}

.lesson-flow-step.is-done .lesson-flow-connector {
  background: #64748b;
}

.lesson-flow-step-btn {
  width: 100%;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  color: inherit;
}

.lesson-flow-step.is-current .lesson-flow-step-btn {
  border-color: rgba(47, 91, 234, 0.28);
  background: #eef4ff;
}

.lesson-flow-step.is-todo .lesson-flow-step-btn {
  opacity: 0.62;
}

.lesson-flow-step.is-done .lesson-flow-step-btn {
  opacity: 0.92;
}

.lesson-flow-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.lesson-flow-step.is-current .lesson-flow-mark {
  background: #2f5bea;
  color: #fff;
}

.lesson-flow-step.is-done .lesson-flow-mark {
  background: #0f172a;
  color: #fff;
}

.lesson-flow-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lesson-flow-copy strong {
  font-size: 13px;
  color: #0f172a;
  line-height: 1.35;
}

.lesson-flow-copy em,
.lesson-flow-copy small {
  font-style: normal;
  font-size: 11px;
  color: #64748b;
}

.lesson-now-tip {
  margin: 0 0 18px;
  padding: 10px 0 12px;
  border-bottom: 1px solid #e8eef5;
}

.lesson-now-tip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #0f172a;
}

.lesson-now-tip p {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.lesson-skip-hint {
  margin: 0 0 14px;
  padding: 8px 0;
  font-size: 13px;
  color: #64748b;
}

.lesson-completion-gaps {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #b45309;
  line-height: 1.6;
}

.lesson-deliverable-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.lesson-deliverable-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

.lesson-check-box {
  flex: 0 0 auto;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.lesson-prompt-reminder {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #94a3b8;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.lesson-next-step-block p {
  margin: 0 0 8px;
  line-height: 1.6;
}

@media (max-width: 430px) {
  .lesson-pro-prompt .promptbox {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .lesson-deliverable-checklist li {
    font-size: 13px;
  }
}

.lesson-complete-celebration {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}

.lesson-complete-meta {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.lesson-complete-meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 14px;
  color: #475569;
}

.lesson-complete-meta strong {
  color: #0f172a;
}

.learning-continue-guide p {
  margin: 0 0 8px;
  color: #334155;
}

.learning-continue-guide .btn {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .course-guide-steps,
  .lesson-learning-flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .lesson-flow-connector {
    display: none;
  }

  .course-criteria-status {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .course-guide-steps {
    grid-template-columns: 1fr;
  }

  .lesson-learning-flow-list {
    grid-template-columns: 1fr;
  }

  .course-guide-panel {
    padding: 18px;
  }
}

/* Single-path accordion lesson flow */
.lesson-path-hint {
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid #e8eef5;
}

.lesson-path-hint > p {
  margin: 0 0 6px;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.lesson-path-hint-details {
  margin: 0;
}

.lesson-path-hint-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: #2f5bea;
  list-style: none;
}

.lesson-path-hint-details summary::-webkit-details-marker {
  display: none;
}

.lesson-path-hint-details ol {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.lesson-current-step-line {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
}

.lesson-path-accordion {
  display: grid;
  gap: 0;
  max-width: var(--course-read, 760px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.lesson-path-stage {
  border-bottom: 1px solid #e2e8f0;
}

.lesson-path-stage:last-child {
  border-bottom: 0;
}

.lesson-path-stage-header {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  background: #fff;
  cursor: pointer;
  color: inherit;
}

.lesson-path-stage.is-todo .lesson-path-stage-header {
  opacity: 0.72;
}

.lesson-path-stage.is-current .lesson-path-stage-header,
.lesson-path-stage.is-open .lesson-path-stage-header {
  background: #f8fafc;
  opacity: 1;
}

.lesson-path-stage.is-done .lesson-path-stage-header {
  opacity: 0.95;
}

.lesson-path-stage-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.lesson-path-stage.is-current .lesson-path-stage-mark,
.lesson-path-stage.is-open .lesson-path-stage-mark {
  background: #2f5bea;
  color: #fff;
}

.lesson-path-stage.is-done .lesson-path-stage-mark {
  background: #0f172a;
  color: #fff;
}

.lesson-path-stage-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lesson-path-stage-copy strong {
  font-size: 14px;
  color: #0f172a;
  line-height: 1.35;
}

.lesson-path-stage-copy em {
  font-style: normal;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.lesson-path-stage-status {
  font-size: 11px;
  font-weight: 650;
  color: #64748b;
  white-space: nowrap;
}

.lesson-path-stage-chevron {
  color: #94a3b8;
  font-size: 12px;
}

.lesson-path-stage-body {
  padding: 4px 16px 18px;
  max-width: var(--course-read, 760px);
}

.lesson-stage-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.lesson-stage-meta-row span {
  font-size: 12px;
  font-weight: 650;
  color: #334155;
  background: #eef2f7;
  border-radius: 8px;
  padding: 5px 10px;
}

.lesson-stage-cta {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.lesson-complete-card {
  max-width: var(--course-read, 760px);
  padding: 18px 0 8px;
}

.lesson-complete-card h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: #0b1220;
}

/* Hide legacy tab/stepper chrome if leftover markup appears */
.lesson-pro-tabs,
.lesson-learning-flow,
.lesson-now-tip,
.lesson-onboarding-card,
.lesson-tab-cta {
  display: none !important;
}

@media (max-width: 768px) {
  .lesson-path-stage-header {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas:
      "mark copy chevron"
      "mark status chevron";
  }

  .lesson-path-stage-mark { grid-area: mark; }
  .lesson-path-stage-copy { grid-area: copy; }
  .lesson-path-stage-status {
    grid-area: status;
    justify-self: start;
  }
  .lesson-path-stage-chevron { grid-area: chevron; }

  .lesson-path-stage-body {
    padding: 4px 12px 16px;
  }
}

/* ========== Phase 3C: Result Package Showcase ========== */
.showcase-page {
  max-width: 100%;
}

.showcase-toolbar .btnrow,
.showcase-controls .btnrow {
  flex-wrap: wrap;
  gap: 10px;
}

.showcase-privacy-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.showcase-input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
}

.showcase-select-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.showcase-select-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.showcase-select-row input {
  margin-top: 3px;
  flex-shrink: 0;
}

.showcase-document {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 24px;
  box-sizing: border-box;
  max-width: 100%;
}

.showcase-cover {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.showcase-brand {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #334155;
  text-transform: uppercase;
}

.showcase-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.25;
  color: #0f172a;
  overflow-wrap: break-word;
}

.showcase-package-name,
.showcase-course,
.showcase-display-name,
.showcase-progress,
.showcase-prepared {
  margin: 6px 0 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.5;
}

.showcase-section-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: #0f172a;
}

.showcase-item {
  margin: 0 0 18px;
  padding: 16px 0 18px;
  border-bottom: 1px solid #eef2f7;
  break-inside: avoid;
  page-break-inside: avoid;
}

.showcase-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.showcase-item-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #64748b;
}

.showcase-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #0f172a;
  overflow-wrap: break-word;
}

.showcase-item-meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: #64748b;
}

.showcase-item-body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
  font: inherit;
  color: #0f172a;
  line-height: 1.65;
}

.showcase-item-link {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 430px) {
  .showcase-document {
    padding: 20px 16px;
  }

  .showcase-toolbar .btnrow .btn,
  .showcase-controls .btnrow .btn {
    width: 100%;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 14mm 12mm;
  }

  body {
    background: #fff !important;
    color: #111 !important;
  }

  body.route-showcase header,
  body.route-showcase .site-footer,
  body.route-showcase .no-print,
  body.route-showcase .toast,
  body.route-showcase #toast,
  .no-print {
    display: none !important;
  }

  body.route-showcase .page,
  body.route-showcase .wrap,
  body.route-showcase .showcase-page,
  body.route-showcase .showcase-document {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  body.route-showcase .showcase-document {
    font-size: 11pt;
    line-height: 1.55;
    color: #111;
  }

  body.route-showcase .showcase-title {
    font-size: 18pt;
    color: #111;
  }

  body.route-showcase .showcase-item {
    break-inside: avoid;
    page-break-inside: avoid;
    border-bottom: 1px solid #ddd;
  }

  body.route-showcase .showcase-item-body {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    color: #111;
  }

  body.route-showcase a {
    color: #111;
    text-decoration: none;
  }

  body.route-showcase .showcase-cover {
    border-bottom: 1px solid #ccc;
  }
}

/* DEV ONLY — localhost Creator order test panel (Phase 5A) */
.dev-order-panel {
  margin: 1.5rem auto 0;
  max-width: 640px;
  padding: 1rem 1.25rem;
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  font-size: 0.95rem;
}

.dev-order-panel-badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #92400e;
  background: #fde68a;
  border-radius: 4px;
}

.dev-order-panel-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.dev-order-panel-note {
  margin: 0 0 0.75rem;
  color: #78716c;
  font-size: 0.85rem;
}

.dev-order-panel-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  background: #d97706;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.dev-order-panel-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dev-order-panel-error {
  margin: 0.75rem 0 0;
  color: #b91c1c;
}

.dev-order-panel-result {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(245, 158, 11, 0.35);
}

.dev-order-panel-result h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.dev-order-id {
  font-size: 0.8rem;
  word-break: break-all;
}

/* Campus partnership (V1.1) */
.campus-page .campus-redeem-panel {
  max-width: 720px;
}

.campus-code-label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
}

.campus-code-input {
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.campus-code-input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  border-color: rgba(37, 99, 235, 0.5);
}

.campus-error-msg {
  margin-top: 12px;
  color: #b91c1c;
}

.campus-login-note {
  margin-top: 12px;
  color: #4a5a73;
}

.campus-success-panel {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(240, 253, 244, 0.6);
}

.campus-status-card.is-expired {
  opacity: 0.85;
}

.campus-status-panel {
  margin-top: 16px;
}

/* Logged-in homepage dashboard (V1.1 personalization) */
.home-dashboard {
  padding: 72px 0 56px;
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: start;
}

.home-dashboard-main {
  min-width: 0;
}

.home-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0 12px;
}

.home-dashboard-stats article {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(30, 58, 138, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.home-dashboard-stats span {
  display: block;
  font-size: 0.82rem;
  color: #4a5a73;
  margin-bottom: 4px;
}

.home-dashboard-stats strong {
  font-size: 1.25rem;
  color: #1e3a8a;
}

.home-dashboard-meta {
  margin: 8px 0 18px;
  color: #4a5a73;
}

.home-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.home-dashboard-footnote {
  margin-top: 10px;
  font-size: 0.92rem;
}

.home-cap-card.is-unlocked {
  border-color: rgba(34, 197, 94, 0.28);
}

@media (max-width: 899px) {
  .home-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* V1.1 UI simplification */
.ui-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.ui-badge-success {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.ui-badge-primary {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.24);
}

.ui-badge-muted {
  color: #4a5a73;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.ui-badge-campus {
  color: #92400e;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.account-wrap {
  position: relative;
  z-index: 1100;
  overflow: visible;
}

.nav-account-btn {
  max-width: min(140px, 34vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 1200;
}

.account-menu.open {
  display: block;
}

.account-menu-identity {
  padding: 4px 6px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 8px;
}

.account-menu button[role="menuitem"] {
  width: 100%;
  text-align: left;
}

.home-dashboard-compact {
  padding: 48px 0 32px;
}

.home-dashboard-main-only {
  max-width: 760px;
}

.home-dashboard-course {
  font-size: 1.15rem;
  font-weight: 650;
  color: #0f172a;
  margin: 8px 0;
}

.home-hero-cta-single {
  margin-top: 18px;
}

.home-hero-cta-single .home-btn {
  min-width: 180px;
}

.home-hero-secondary-link {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.home-hero-secondary-link .linkish {
  font-size: 14px;
  font-weight: 600;
  color: #4a5a73;
}

.home-hero-secondary-link .linkish:hover {
  color: var(--primary);
}

/* Guest clarity hero — 10-second value prop */
.home-hero-clarity {
  padding: 56px 0 40px;
}

.home-hero-guest {
  padding-bottom: 24px;
}

.home-hero-clarity-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.home-hero-clarity h1 {
  max-width: 820px;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.home-lead-clarity {
  max-width: 100%;
  margin-bottom: 0;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.65;
}

.home-hero-eyebrow,
.home-section-kicker {
  margin: 0 0 14px;
  color: var(--hp-indigo);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.home-hero-cta-left {
  justify-content: flex-start;
  margin-top: 24px;
}

.home-hero-proof {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 14px;
}

.home-hero-photo {
  position: relative;
  margin: 0;
}

.home-hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
}

.home-hero-photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  backdrop-filter: blur(12px);
}

.home-section-header-centered {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.home-audience-promise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-audience-promise-card {
  padding: 20px;
  border: 1px solid var(--hp-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--hp-shadow);
}

.home-audience-promise-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.home-audience-promise-heading span {
  font-size: 24px;
}

.home-audience-promise-heading h3,
.home-audience-promise-card p {
  margin: 0;
}

.home-audience-promise-card p {
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .home-hero-clarity-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-hero-photo img {
    aspect-ratio: 16 / 9;
  }

  .home-audience-promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .home-hero-clarity {
    padding-top: 36px;
  }

  .home-hero-clarity h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .home-hero-cta-left .home-btn {
    width: 100%;
  }

  .home-hero-photo img {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .home-audience-promise-grid {
    grid-template-columns: 1fr;
  }
}

.home-hero-goal-block {
  margin: 28px 0 20px;
  padding: 22px 22px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
}

.home-hero-goal-label {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.home-hero-goal-input {
  width: 100%;
  min-height: 96px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #c8d5ff;
  font-size: 16px;
  line-height: 1.55;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 14px;
  box-sizing: border-box;
  color: #0f172a;
  background: #fff;
}

.home-hero-goal-input:focus {
  outline: 2px solid rgba(47, 91, 234, 0.25);
  border-color: var(--primary);
}

.home-hero-goal-cta {
  width: 100%;
}

.home-hero-audience {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-hero-audience span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 91, 234, 0.08);
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 650;
}

.home-hero-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.home-hero-step {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.home-hero-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(47, 91, 234, 0.12);
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.home-hero-step h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
  color: #0f172a;
}

.home-hero-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

.home-hero-steps-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.home-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-solution-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--hp-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--hp-shadow);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-solution-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow-lg);
}

.home-solution-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.home-solution-label {
  flex: 1;
  font-size: 15px;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.35;
}

.home-solution-arrow {
  color: #94a3b8;
  font-weight: 700;
}

.home-free-entry-card {
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid var(--hp-border);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  text-align: center;
  box-shadow: var(--hp-shadow);
}

.home-free-entry-kicker {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 650;
  color: var(--hp-indigo);
}

.home-free-entry-card h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 28px);
}

.home-premium-feature-card {
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--hp-border);
  background: #fff;
  box-shadow: var(--hp-shadow);
}

.home-premium-feature-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.home-premium-feature-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.home-premium-feature-card p {
  margin: 0 0 16px;
  max-width: 62ch;
}

.tutor-access-gate {
  margin-top: 8px;
}

.tutor-access-gate-lead {
  margin: 12px 0 8px;
  font-size: 16px;
  line-height: 1.6;
  color: #334155;
}

.tutor-access-gate-note {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
}

.home-campus-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
}

.home-section-compact {
  padding-top: 40px;
  padding-bottom: 40px;
}

.course-card-simple {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 18px;
}

.course-card-simple h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.course-card-outcome {
  margin: 0;
  color: #4a5a73;
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.course-card-lessons,
.course-card-price {
  margin: 0;
  font-size: 0.9rem;
  color: #4a5a73;
}

.course-card-simple .home-btn,
.course-card-simple .btn {
  margin-top: auto;
  align-self: flex-start;
}

.home-cap-grid .course-card-simple,
.map-path-grid .course-card-simple {
  height: 100%;
}

.page,
main,
.home-dashboard,
.learning-page,
.learning-page-header,
.panel,
.card {
  z-index: auto;
}

.learning-page-header {
  position: static;
  margin: 0 0 16px;
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.learning-page-header h1 {
  margin: 0;
}

.learning-section {
  margin-bottom: 16px;
}

.learning-continue-card {
  padding: 4px 0;
}

.learning-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.learning-course-card h3 {
  margin: 8px 0;
}

.learning-plan-panel {
  margin-top: 8px;
}

.learning-results-grid {
  display: grid;
  gap: 12px;
}

@media (max-width: 899px) {
  .nav-account-btn {
    max-width: 110px;
  }

  .home-hero-cta-single .home-btn {
    width: 100%;
  }

  .home-campus-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .learning-course-grid {
    grid-template-columns: 1fr;
  }

  .favorites-prompt-grid,
  .favorites-tool-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact tool / prompt cards + favorites */
.btn-compact {
  padding: 8px 14px;
  font-size: 14px;
}

.tools-grid-compact {
  gap: 16px;
}

.tool-card-compact,
.prompt-card-compact,
.favorite-card {
  min-height: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.tool-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}

.tool-logo-sm {
  width: 40px;
  height: 40px;
  font-size: 18px;
  margin-bottom: 10px;
}

.tool-card-compact h3,
.favorite-card-tool h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.tool-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
  line-height: 1.5;
  font-size: 15px;
  color: #4a5a73;
  flex: 1;
}

.tool-card-actions,
.prompt-card-actions,
.favorite-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.prompt-card-compact .promptbox {
  flex: 1;
  max-height: 120px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.favorites-layout {
  display: grid;
  gap: 24px;
}

.favorites-group h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.favorites-prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.favorites-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.favorite-prompt-preview {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  margin: 8px 0 12px;
  max-height: 100px;
  overflow: hidden;
}

.favorites-empty {
  padding: 4px 0;
  color: #4a5a73;
}

.favorites-empty p {
  margin: 0 0 10px;
}

.favorites-sub-empty {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

.learning-muted {
  margin: 0;
  color: #64748b;
}

.learning-completed-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

/* Prompt Tutor — chat-style coach */
.tutor-coach-page {
  padding-top: 12px;
  padding-bottom: 64px;
}

.tutor-coach-wrap {
  max-width: 960px;
}

/* Page hero — normal document flow; never sticky (see lesson-pro-header pattern). */
.tutor-coach-header {
  position: static;
  margin: 0 0 18px;
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tutor-coach-header h1 {
  margin: 0 0 8px;
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.tutor-coach-lead {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.5;
  color: #1e293b;
}

.tutor-coach-sublead {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #64748b;
}

.tutor-coach-panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

.tutor-coach-thread {
  padding: 20px 20px 8px;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tutor-msg {
  display: flex;
  max-width: 92%;
}

.tutor-msg-user {
  align-self: flex-end;
  justify-content: flex-end;
}

.tutor-msg-coach {
  align-self: flex-start;
  gap: 10px;
}

.tutor-msg-prompt {
  max-width: 100%;
  width: 100%;
}

.tutor-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(180deg, #eef5fc 0%, #e0ecff 100%);
  border: 1px solid #dbe7f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tutor-msg-bubble {
  background: #f8fbff;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  padding: 12px 14px;
  line-height: 1.55;
  font-size: 15px;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
}

.tutor-msg-user .tutor-msg-bubble {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tutor-msg-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.tutor-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tutor-chip {
  border: 1px solid #c8d5ff;
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.tutor-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(47, 91, 234, 0.12);
}

.tutor-chip.is-used,
.tutor-chip:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.tutor-prompt-card {
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06);
}

.tutor-prompt-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--primary);
}

.tutor-prompt-body {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  max-height: 280px;
  overflow-y: auto;
}

.tutor-prompt-actions {
  margin-top: 0;
}

.tutor-explanation {
  margin-top: 4px;
  font-size: 14px;
  color: #475569;
}

.tutor-explanation summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
}

.tutor-explanation-list {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.tutor-coach-composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}

.tutor-coach-input {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 1px solid #c8d5ff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
}

.tutor-coach-input:focus {
  outline: 2px solid rgba(47, 91, 234, 0.25);
  border-color: var(--primary);
}

.tutor-coach-send {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 12px;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .tutor-coach-header h1 {
    font-size: clamp(36px, 5vw, 48px);
  }
}

@media (max-width: 899px) {
  .tutor-coach-page {
    padding-top: 8px;
    padding-bottom: 48px;
  }

  .tutor-coach-header {
    margin-bottom: 14px;
  }

  .tutor-coach-header h1 {
    font-size: clamp(30px, 7vw, 38px);
  }

  .tutor-coach-lead {
    font-size: 16px;
  }

  .tutor-coach-wrap {
    max-width: 100%;
  }

  .tutor-coach-thread {
    max-height: none;
    min-height: 240px;
  }

  .tutor-msg {
    max-width: 100%;
  }

  .tutor-coach-composer {
    flex-direction: row;
  }

  .tutor-coach-input {
    width: 100%;
  }

  .tutor-prompt-actions .btn {
    flex: 1 1 auto;
  }
}
