:root {
  --bg: #050810;
  --bg-elevated: #0c1222;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-strong: #60a5fa;
  --accent-secondary: #8b5cf6;
  --enroll: #22c55e;
  --enroll-bright: #4ade80;
  --enroll-dark: #15803d;
  --enroll-glow: rgba(34, 197, 94, 0.5);
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --danger: #f87171;
  --success: #34d399;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.75);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 999px;
  --transition-fast: 0.28s ease-out;
  --transition-smooth: 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-page: 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1120px;
  --hero-subtitle-color: #ffffff;
  --body-bg: radial-gradient(circle at top left, #1e3a5f 0, #050810 45%, #020408 100%);
  --curtain-bg: radial-gradient(circle at top left, #1e3a5f 0, #050810 50%, #020408 100%);
  --surface-card: rgba(5, 8, 16, 0.9);
  --surface-elevated: rgba(5, 8, 16, 0.96);
  --surface-muted: rgba(12, 18, 34, 0.6);
  --surface-nav-hover: rgba(255, 255, 255, 0.06);
  --surface-nav-active: rgba(255, 255, 255, 0.12);
  --surface-input: rgba(2, 4, 10, 0.98);
  --header-bg: linear-gradient(to bottom, rgba(5, 8, 16, 0.96), rgba(5, 8, 16, 0.8), transparent);
  --header-border: rgba(255, 255, 255, 0.04);
  --logo-border: rgba(255, 255, 255, 0.14);
  --logo-bg: radial-gradient(circle at top left, rgba(59, 130, 246, 0.15), rgba(12, 18, 34, 0.95));
  --btn-secondary-bg: rgba(255, 255, 255, 0.02);
  --btn-secondary-border: rgba(255, 255, 255, 0.16);
  --btn-secondary-hover: rgba(255, 255, 255, 0.08);
  --footer-border: rgba(255, 255, 255, 0.06);
  --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.65);
  --input-border: rgba(255, 255, 255, 0.18);
  --lesson-hover: rgba(255, 255, 255, 0.04);
  --lesson-dot: rgba(255, 255, 255, 0.14);
  --theme-toggle-bg: rgba(12, 18, 34, 0.92);
  --theme-toggle-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --eyebrow-bg: rgba(0, 0, 0, 0.45);
  --eyebrow-border: rgba(255, 255, 255, 0.12);
  --eyebrow-text: #f1f5f9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: var(--body-bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.25s ease;
}

body.is-loading {
  overflow: hidden;
}

.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--curtain-bg);
  opacity: 1;
  transition: opacity var(--transition-page);
  pointer-events: all;
}

body.is-ready .page-curtain {
  opacity: 0;
  pointer-events: none;
}

body.is-exiting .page-curtain {
  opacity: 1;
  pointer-events: all;
  transition-duration: 0.75s;
}

.reveal-on-load {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--transition-smooth) var(--reveal-delay, 0s),
    transform var(--transition-smooth) var(--reveal-delay, 0s);
}

body.is-ready .reveal-on-load {
  opacity: 1;
  transform: translateY(0);
}

body.is-exiting .reveal-on-load {
  opacity: 0;
  transform: translateY(-12px);
  transition-duration: 0.55s;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--logo-border);
  background: var(--logo-bg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover {
  background-color: var(--surface-nav-hover);
  color: var(--text-primary);
}

.nav-link.is-active {
  color: var(--text-primary);
  background-color: var(--surface-nav-active);
}

.header-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
  flex-shrink: 0;
}

.nav-cta {
  margin-left: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn:not(.btn-enroll) {
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #f8fafc;
  box-shadow: 0 18px 45px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 24px 65px rgba(59, 130, 246, 0.5);
}

a.btn.btn-enroll,
button.btn.btn-enroll,
.btn.btn-enroll {
  display: inline-grid !important;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 6px;
  white-space: normal !important;
  box-sizing: border-box;
  max-width: 100%;
  background-color: #16a34a;
  background-image: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow:
    0 4px 0 #15803d,
    0 16px 40px rgba(34, 197, 94, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 2px solid #86efac;
  opacity: 1 !important;
  visibility: visible !important;
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    filter var(--transition-smooth);
}

a.btn.btn-enroll:hover,
button.btn.btn-enroll:hover,
.btn.btn-enroll:hover {
  color: #ffffff !important;
  background-color: #22c55e;
  background-image: linear-gradient(180deg, #86efac 0%, #4ade80 50%, #22c55e 100%);
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 6px 0 #15803d,
    0 22px 50px rgba(74, 222, 128, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  filter: brightness(1.05);
}

.btn-enroll-label,
.btn-enroll-sub {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}

.btn-enroll-label {
  grid-row: 1;
  font-weight: 800;
}

.btn-enroll-sub {
  grid-row: 2;
  font-size: 0.7em;
  font-weight: 600;
  opacity: 0.95;
  letter-spacing: 0.01em;
}

.btn-enroll-lg {
  font-size: 1.45rem;
  padding: 22px 40px;
  min-height: 72px;
  border-radius: 16px;
  line-height: 1.2;
}

.btn-enroll-lg .btn-enroll-sub {
  font-size: 0.68em;
}

.hero-actions .btn-enroll-lg {
  width: 100%;
  max-width: 420px;
  padding: 18px 24px;
  min-height: auto;
}

.pricing-card .btn-enroll-lg {
  width: 100%;
  font-size: 1.35rem;
  padding: 20px 28px;
  min-height: auto;
  margin-top: 12px;
}

.nav-cta.btn-enroll {
  display: inline-flex !important;
  grid-template-rows: none;
  font-size: 1rem;
  padding: 12px 24px;
  min-height: 44px;
  white-space: nowrap;
  border-radius: 12px;
  box-shadow:
    0 3px 0 #15803d,
    0 12px 28px rgba(34, 197, 94, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.floating-cta.btn-enroll {
  font-size: 1.1rem;
  padding: 16px 28px;
  min-height: auto;
  max-width: min(360px, calc(100vw - 32px));
  border-radius: 16px;
  z-index: 100;
  animation: enroll-float-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

@keyframes enroll-float-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 420px;
}

.pricing-period--onetime {
  font-size: 1rem;
  color: var(--enroll-bright);
  font-weight: 500;
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  border-color: var(--btn-secondary-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.site-footer {
  border-top: 1px solid var(--footer-border);
  padding: 18px 0 26px;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 55%);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 14px;
}

.footer-right a {
  opacity: 0.9;
}

.footer-right a:hover {
  opacity: 1;
}

.hero {
  padding: 72px 0 56px;
}

.top-banner {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  color: var(--hero-subtitle-color);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 36rem;
}

.hero p {
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 24px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--eyebrow-border);
  background-color: var(--eyebrow-bg);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--eyebrow-text);
  margin-bottom: 14px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at center, #fff, var(--accent));
}

.hero-lifestyle img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 360px;
  box-shadow: var(--shadow-soft);
}

.section {
  padding: 40px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
}

.section-title {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 0;
}

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

.feature-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  padding: 16px 16px 18px;
}

.feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background-color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.feature-title {
  font-size: 1rem;
  margin: 0 0 6px;
}

.feature-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.about-card,
.pricing-card,
.faq-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-card);
}

.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.about-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.about-title {
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.about-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.coach-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
}

.about-meta {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-coach-video {
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-placeholder-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
  justify-content: center;
}

.pricing-amount {
  font-size: 2.6rem;
  font-weight: 700;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: left;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.check-dot {
  margin-top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at center, #fff, var(--success));
  flex-shrink: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background-color: var(--eyebrow-bg);
  border: 1px solid var(--eyebrow-border);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--eyebrow-text);
}

.faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
}

.faq-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-question {
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.curriculum-preview {
  display: grid;
  gap: 12px;
}

.curriculum-part {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  background: var(--surface-muted);
}

.curriculum-part h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.curriculum-part .part-meta {
  font-size: 0.8rem;
  color: var(--accent-strong);
  margin-bottom: 6px;
}

.curriculum-part p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.course-layout {
  min-height: calc(100vh - 140px);
  padding: 20px 0 0;
}

.course-content {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  padding: 0 20px 20px;
}

.course-sidebar {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-elevated);
  padding: 10px 12px 12px;
  overflow-y: auto;
  max-height: calc(100vh - 160px);
}

.course-main {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-elevated);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
}

.course-video-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lesson-video {
  width: 100%;
  max-height: 420px;
  display: block;
  background-color: #000;
}

.lesson-meta {
  margin-top: 12px;
}

.lesson-meta h1 {
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.lesson-meta p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.lesson-takeaways {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 8px 0 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.course-section {
  margin-bottom: 8px;
}

.course-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lesson-item {
  margin-bottom: 4px;
}

.lesson-button {
  width: 100%;
  text-align: left;
  border-radius: 10px;
  padding: 7px 8px;
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.lesson-button:hover {
  background-color: var(--lesson-hover);
  color: var(--text-primary);
}

.lesson-button.is-active {
  background-color: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--text-primary);
}

.lesson-label {
  font-size: 0.87rem;
}

.lesson-meta-small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lesson-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: var(--lesson-dot);
  flex-shrink: 0;
}

.course-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.course-locked-card {
  max-width: 480px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-elevated);
  padding: 22px 20px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.course-locked-card h1 {
  margin: 0 0 8px;
}

.course-locked-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.course-locked-card .btn {
  margin: 4px;
}

.account-main {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.account-card {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-elevated);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-soft);
}

.account-title {
  font-size: 1.4rem;
  margin: 0 0 4px;
}

.account-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 0.85rem;
}

.field input {
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background-color: var(--surface-input);
  padding: 9px 10px;
  color: var(--text-primary);
  outline: none;
  font-size: 0.92rem;
}

.field input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.45);
}

.helper-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.muted-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.muted-link button {
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.status-pill.active {
  background-color: rgba(52, 211, 153, 0.1);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.5);
}

.status-pill.inactive {
  background-color: rgba(248, 113, 113, 0.08);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.5);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: currentColor;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.spacer {
  height: 12px;
}

.hidden {
  display: none !important;
}

.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 50;
}

@media (prefers-reduced-motion: reduce) {
  .page-curtain,
  .reveal-on-load,
  .floating-cta.btn-enroll {
    animation: none;
    transition: none;
  }

  body.is-loading .page-curtain {
    display: none;
  }

  .reveal-on-load {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .course-content {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .course-sidebar {
    max-height: 240px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .main-nav .header-cta-group .nav-cta {
    display: none;
  }

  .main-nav .header-cta-group {
    margin-left: auto;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 40px;
  }

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

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .lesson-nav {
    flex-direction: column;
  }

  .account-card {
    padding-inline: 18px;
  }
}

/* Blog & SEO content */
.blog-hero {
  padding: 48px 0 32px;
}

.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  max-width: 40rem;
}

.blog-hero .lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 38rem;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  padding-bottom: 48px;
}

.blog-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.blog-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}

.blog-card-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
}

.blog-card h2 {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.35;
}

.blog-card h2 a:hover {
  color: var(--accent-strong);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-card-link {
  font-size: 0.9rem;
  color: var(--accent-strong);
  font-weight: 500;
}

.article-main {
  padding: 40px 0 56px;
}

.article-layout {
  max-width: 720px;
  margin: 0 auto;
}

.article-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-breadcrumb a {
  color: var(--accent-strong);
}

.article-header h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

.article-body p,
.article-body li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.article-body p {
  margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.article-body a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body strong {
  color: var(--text-primary);
}

.blog-cta {
  margin-top: 40px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(34, 197, 94, 0.4);
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.12), rgba(5, 8, 16, 0.95));
  text-align: center;
}

.blog-cta h2 {
  font-size: 1.45rem;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.blog-cta p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta .btn-enroll-lg {
  margin: 0 auto;
}

.related-posts {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.related-posts h2 {
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-posts li {
  margin-bottom: 10px;
}

.related-posts a {
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.blog-article {
  max-width: 720px;
  margin: 0 auto 28px;
}

.blog-article h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.blog-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-body h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.blog-body p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.blog-body ul,
.blog-body ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.blog-body li {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 8px;
}

.blog-body strong {
  color: var(--text-primary);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-item a {
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.related-item a:hover {
  text-decoration: underline;
}

/* Theme toggle (in header, right of Enroll) */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--theme-toggle-bg);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--theme-toggle-shadow);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.theme-toggle svg {
  display: block;
}

/* Light mode */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --text-primary: #0f172a;
  --text-muted: #475569;
  --border-subtle: rgba(15, 23, 42, 0.12);
  --accent-strong: #2563eb;
  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.12);
  --hero-subtitle-color: #0f172a;
  --body-bg: radial-gradient(circle at top left, #dbeafe 0, #f8fafc 42%, #e2e8f0 100%);
  --curtain-bg: radial-gradient(circle at top left, #dbeafe 0, #f8fafc 50%, #e2e8f0 100%);
  --surface-card: #ffffff;
  --surface-elevated: #ffffff;
  --surface-muted: #f1f5f9;
  --surface-nav-hover: rgba(15, 23, 42, 0.06);
  --surface-nav-active: rgba(15, 23, 42, 0.1);
  --surface-input: #ffffff;
  --header-bg: linear-gradient(to bottom, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.9), transparent);
  --header-border: rgba(15, 23, 42, 0.08);
  --logo-border: rgba(15, 23, 42, 0.12);
  --logo-bg: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.98));
  --btn-secondary-bg: #ffffff;
  --btn-secondary-border: rgba(15, 23, 42, 0.16);
  --btn-secondary-hover: #f1f5f9;
  --footer-border: rgba(15, 23, 42, 0.08);
  --shadow-card: 0 16px 48px rgba(15, 23, 42, 0.08);
  --input-border: rgba(15, 23, 42, 0.18);
  --lesson-hover: rgba(15, 23, 42, 0.05);
  --lesson-dot: rgba(15, 23, 42, 0.2);
  --theme-toggle-bg: #ffffff;
  --theme-toggle-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  --eyebrow-bg: #ffffff;
  --eyebrow-border: rgba(15, 23, 42, 0.14);
  --eyebrow-text: #0f172a;
}

[data-theme="light"] .about-eyebrow {
  color: var(--text-primary);
  font-weight: 600;
}

[data-theme="light"] .top-banner {
  border-bottom-color: var(--header-border);
}

[data-theme="light"] .faq-list {
  border-top-color: var(--border-subtle);
}

[data-theme="light"] .faq-item {
  border-bottom-color: var(--border-subtle);
}

[data-theme="light"] .blog-cta {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.14), rgba(255, 255, 255, 0.98));
  border-color: rgba(34, 197, 94, 0.45);
}

[data-theme="light"] .course-video-wrapper {
  border-color: var(--border-subtle);
}

[data-theme="light"] .site-footer {
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.08), transparent 55%);
}

[data-theme="light"] .pricing-period--onetime {
  color: var(--enroll-dark);
}
