:root{
  /* Section backgrounds */
  --ink: #170B2E;              /* cosmic dark bg — headers, heroes, dark sections */
  --ink-deep: #0D0620;         /* deepest dark — footer */
  --ink-card: #241536;         /* card surface sitting on a dark section */
  --parchment: #FAF6FC;        /* light section bg */
  --parchment-dim: #F1E9FA;    /* alternate light section bg / light cards */

  /* Accents */
  --brass: #FFB629;            /* gold — numerals, highlights, small accents */
  --rust: #FF4E32;             /* flare — primary CTA / energy color */

  /* Text */
  --text-dark: #1B1030;        /* body text on light bg */
  --text-soft: #5B5470;        /* muted text on light bg */
  --cream: #FBF7FF;            /* headline/body text on dark bg */
  --muted-on-dark: rgba(255,255,255,0.62);
  --faint-on-dark: rgba(255,255,255,0.42);

  /* Hairlines */
  --line: rgba(27,16,48,0.12);       /* hairline on light bg */
  --line-dark: rgba(255,255,255,0.1); /* hairline on dark bg */
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family:'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .course-numeral{
  font-family:'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

a{ color: inherit; }

.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- HEADER ---------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(23,11,46,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 16px 28px;
  gap: 24px;
}

.logo{
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img{
  height: 36px;
  width: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: none;
  transform: none;
}

.logo span{ color: var(--brass); }

.site-nav{
  display:flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}

.site-nav a{
  color: rgba(255,255,255,0.66);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover{ color: var(--cream); }

.btn-small{
  padding: 9px 20px;
  font-size: 13.5px;
}

/* ---------- HERO ---------- */

.hero{
  background:
    radial-gradient(ellipse 700px 420px at 84% 10%, rgba(255,78,50,0.16), transparent 60%),
    var(--ink);
  color: var(--parchment);
  padding: 64px 0 88px;
  overflow: hidden;
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-plain{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 20px;
}

.eyebrow-plain::before{
  content:"";
  width:7px; height:7px; border-radius:50%;
  background: var(--rust);
  box-shadow: 0 0 0 4px rgba(255,78,50,0.16);
}

.hero h1{
  font-size: 46px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--cream);
  max-width: 15ch;
}

.hero p.sub{
  font-size: 18px;
  color: var(--muted-on-dark);
  margin-top: 22px;
  max-width: 42ch;
}

.cta-row{
  margin-top: 32px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary{
  display: inline-block;
  background: var(--rust);
  color: #fff;
  text-decoration: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 100px;
  box-shadow: 0 8px 22px rgba(255,78,50,0.32);
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover{
  background: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,78,50,0.42);
}

.btn-outline{
  display:inline-block;
  border: 1.5px solid var(--line);
  color: var(--text-dark);
  text-decoration: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn-outline:hover{ border-color: var(--rust); color: var(--rust); background: rgba(255,78,50,0.06); }

.header-inner .btn-outline{
  color: var(--cream);
  border-color: var(--line-dark);
}

.header-inner .btn-outline:hover{
  border-color: var(--brass);
  color: var(--brass);
  background: rgba(255,182,41,0.08);
}

.price-hint{
  color: var(--muted-on-dark);
  font-size: 14.5px;
  font-weight: 500;
}

.grid9{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  aspect-ratio: 1;
  max-width: 300px;
  margin: 0 auto;
  border: none;
  transform: rotate(-4deg);
}

.grid9 .cell{
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--brass);
  border-radius: 16px;
  border: 1px solid rgba(255,182,41,0.22);
  background: linear-gradient(155deg, rgba(255,182,41,0.10), rgba(255,78,50,0.05));
  opacity: 0;
  transform: scale(0.5);
  animation: tileOn 0.55s cubic-bezier(.2,.8,.3,1.2) forwards, tileGlow 4.5s ease-in-out 2.4s infinite;
}

.grid9 .cell:nth-child(1){ animation-delay: 0.05s, 2.4s; }
.grid9 .cell:nth-child(2){ animation-delay: 0.15s, 2.5s; }
.grid9 .cell:nth-child(3){ animation-delay: 0.25s, 2.6s; }
.grid9 .cell:nth-child(4){ animation-delay: 0.35s, 2.7s; }
.grid9 .cell:nth-child(5){
  animation-delay: 0.45s, 2.8s;
  font-size: 38px;
  color: #fff;
  background: linear-gradient(155deg, var(--rust), #C22B12);
  border-color: transparent;
}
.grid9 .cell:nth-child(6){ animation-delay: 0.55s, 2.9s; }
.grid9 .cell:nth-child(7){ animation-delay: 0.65s, 3.0s; }
.grid9 .cell:nth-child(8){ animation-delay: 0.75s, 3.1s; }
.grid9 .cell:nth-child(9){ animation-delay: 0.85s, 3.2s; }

@keyframes tileOn{ to{ opacity:1; transform: scale(1); } }
@keyframes tileGlow{ 0%,100%{ box-shadow: 0 0 0 rgba(255,182,41,0); } 50%{ box-shadow: 0 0 22px rgba(255,182,41,0.22); } }

@media (prefers-reduced-motion: reduce){
  .grid9 .cell{ animation: none; opacity:1; transform: scale(1); }
}

.grid-caption{
  text-align:center;
  font-size: 13.5px;
  color: var(--faint-on-dark);
  margin-top: 22px;
}

/* ---------- ABOUT ---------- */

.intro-video{
  padding: 84px 0 20px;
  background: var(--parchment);
  text-align: center;
}

.about{
  padding: 88px 0;
  background: var(--parchment);
  overflow: hidden;
}

.about-inner{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
}

.about-photo{
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}

.about-photo::before{
  content:"";
  position: absolute;
  inset: -20px -26px auto auto;
  width: 210px;
  height: 210px;
  background: var(--brass);
  border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%;
  z-index: 0;
  opacity: 0.9;
}

.about-photo img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 6px solid var(--parchment);
}

.photo-placeholder{
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 48px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto;
  border: 6px solid var(--parchment);
}

.photo-note{
  font-size: 12.5px;
  color: var(--text-soft);
  margin-top: 12px;
}

.about-text h2{
  font-size: 32px;
  margin-top: 8px;
}

.badges{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 22px;
}

.badge{
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  border: 1.5px solid var(--line);
  padding: 7px 16px;
  border-radius: 100px;
}

.about-actions{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.about-text p{
  font-size: 16px;
  color: var(--text-soft);
  max-width: 58ch;
}

/* ---------- COURSES ---------- */

.courses{
  background:
    radial-gradient(ellipse 600px 400px at 8% 90%, rgba(255,78,50,0.14), transparent 60%),
    var(--ink);
  border-top: none;
  border-bottom: none;
  padding: 96px 0;
}

.courses h2{
  font-size: 32px;
  color: var(--cream);
  margin-bottom: 40px;
}

.course-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.course-card{
  background:
    linear-gradient(var(--ink-card), var(--ink-card)) padding-box,
    linear-gradient(155deg, rgba(255,182,41,0.55), rgba(255,78,50,0.18)) border-box;
  border: 2px solid transparent;
  padding: 32px;
  border-radius: 20px;
}

.course-numeral{
  font-size: 42px;
  font-weight: 800;
  color: var(--brass);
  margin-bottom: 8px;
  line-height: 1;
}

.course-card h3{
  font-size: 20px;
  color: var(--cream);
}

.course-card p{
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted-on-dark);
  min-height: 66px;
}

.course-footer{
  margin-top: 22px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.course-price{
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: #fff;
}

.course-footer .btn-outline{
  color: var(--brass);
  border-color: rgba(255,182,41,0.4);
  padding: 9px 18px;
  font-size: 13px;
}

.course-footer .btn-outline:hover{
  background: rgba(255,182,41,0.12);
  color: var(--brass);
  border-color: rgba(255,182,41,0.6);
}

.course-footer span[style*="opacity"]{
  opacity: 0.45 !important;
  color: var(--faint-on-dark);
  border-color: var(--line-dark);
}

/* ---------- FOOTER ---------- */

footer{
  padding: 56px 0 40px;
  text-align: center;
  background: var(--ink-deep);
}

.footer-logo{
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 14px;
  display: inline-flex;
  justify-content: center;
}

.footer-logo span{ color: var(--brass); }

footer p{
  font-size: 14px;
  color: var(--muted-on-dark);
  margin: 4px 0;
}

.copyright{
  margin-top: 18px;
  color: var(--faint-on-dark);
  font-size: 12.5px;
}

/* ---------- COURSE DETAIL PAGE ---------- */

.course-hero{
  background:
    radial-gradient(ellipse 700px 420px at 84% 10%, rgba(255,78,50,0.16), transparent 60%),
    var(--ink);
  color: var(--parchment);
  padding: 64px 0 72px;
}

.course-hero .wrap{ max-width: 680px; }

.course-hero .eyebrow-plain{ margin-bottom: 16px; }

.course-hero h1{
  font-size: 40px;
  color: var(--cream);
  line-height: 1.18;
}

.course-hero p.sub{
  color: var(--muted-on-dark);
  font-size: 17px;
  margin-top: 18px;
}

.intro{ padding: 68px 0; background: var(--parchment); }

.intro .wrap{ max-width: 680px; }

.intro h2{ font-size: 27px; }

.intro p{
  font-size: 16px;
  color: var(--text-soft);
  margin-top: 16px;
}

.curriculum{
  background: var(--parchment-dim);
  border-top: none;
  border-bottom: none;
  padding: 68px 0;
}

.curriculum .wrap{ max-width: 680px; }

.curriculum h2{ font-size: 27px; margin-bottom: 12px; }

.curriculum-stat{
  font-size: 14px;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 32px;
}

.curriculum-phase{
  margin-bottom: 32px;
}

.curriculum-phase-label{
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 4px;
}

.module{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.module:last-child{ border-bottom: 1px solid var(--line); }

.module .numeral{
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--brass);
  -webkit-text-stroke: 1px rgba(27,16,48,0.15);
}

.module h3{ font-size: 18px; }

.module p{
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--text-soft);
}

.pricing{ padding: 76px 0; background: var(--parchment); }

.price-card{
  max-width: 440px;
  margin: 0 auto;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(155deg, var(--brass), var(--rust)) border-box;
  padding: 40px 36px;
  text-align: center;
  border-radius: 22px;
  box-shadow: 0 20px 46px rgba(27,16,48,0.1);
}

.price-card .label{ font-size: 14px; color: var(--text-soft); font-weight: 600; }

.price-card .amount{
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 46px;
  margin: 10px 0 4px;
}

.price-card .amount span{
  font-size: 18px;
  color: var(--text-soft);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.price-card .features{
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  text-align: left;
  font-size: 14px;
  color: var(--text-soft);
}

.price-card .features li{
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.price-card .features li:last-child{ border-bottom: 1px solid var(--line); }

.price-card .btn-primary{ width: 100%; }

.edit-note{
  text-align:center;
  font-size: 12.5px;
  color: var(--text-soft);
  margin-top: 16px;
}

.back-link{
  display:inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brass);
  text-decoration: none;
}

/* ---------- APP PROMO (homepage strip) ---------- */

.app-promo{
  padding: 96px 0;
  background: var(--parchment);
  overflow: hidden;
}

.app-promo-inner{
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.app-promo h2{
  font-size: 32px;
  margin: 8px 0 18px;
}

.app-promo p{
  font-size: 16px;
  color: var(--text-soft);
  max-width: 46ch;
}

.app-rating{
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 18px 0 24px;
  font-weight: 500;
}

.app-promo-shot{
  position: relative;
}

.app-promo-shot::before{
  content:"";
  position: absolute;
  inset: 8% -14% auto auto;
  width: 78%;
  height: 84%;
  background: linear-gradient(160deg, var(--rust), var(--brass));
  opacity: 0.16;
  border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
  z-index: 0;
}

.app-promo-shot img{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  border-radius: 20px;
  border: none;
  display: block;
  box-shadow: 0 24px 50px rgba(27,16,48,0.16);
}

/* ---------- APP DETAIL PAGE ---------- */

.app-hero{
  background:
    radial-gradient(ellipse 700px 420px at 84% 10%, rgba(255,78,50,0.16), transparent 60%),
    var(--ink);
  color: var(--parchment);
  padding: 64px 0 68px;
}

.app-hero-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.app-hero h1{
  font-size: 38px;
  color: var(--cream);
  line-height: 1.18;
  margin: 10px 0 16px;
}

.app-hero p.sub{
  color: var(--muted-on-dark);
  font-size: 16px;
  margin-bottom: 20px;
}

.app-badges{
  display:flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted-on-dark);
}

.app-badges strong{ color: var(--cream); }

.app-hero-shot img{
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line-dark);
  display: block;
  box-shadow: 0 24px 56px rgba(0,0,0,0.35);
}

.screenshots{
  padding: 64px 0;
  background: var(--parchment);
}

.screenshot-row{
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.screenshot-row img{
  height: 340px;
  border-radius: 14px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  box-shadow: 0 14px 30px rgba(27,16,48,0.1);
}

.app-features{
  background: var(--parchment-dim);
  border-top: none;
  border-bottom: none;
  padding: 72px 0;
}

.app-features h2{ font-size: 27px; margin-bottom: 34px; }

.feature-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-grid h3{
  font-size: 17px;
  color: var(--rust);
}

.feature-grid p{
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-soft);
}

.app-cta{
  padding: 72px 0;
  text-align: center;
  background: var(--parchment);
}

.app-cta h2{ font-size: 27px; margin-bottom: 14px; }

.app-cta p{
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 26px;
}

.testimonial-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.testimonial-card{
  background: var(--parchment-dim);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 16px;
}

.testimonial-card p{
  font-size: 15px;
  color: var(--text-soft);
  font-style: italic;
}

.testimonial-card .attribution{
  margin-top: 14px;
  font-size: 13px;
  color: var(--rust);
  font-weight: 600;
  font-style: normal;
}

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

.podcast-card{
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.podcast-thumb{
  aspect-ratio: 16/9;
  background: var(--ink);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--brass);
  font-size: 13px;
}

.podcast-card-body{
  padding: 16px;
}

.podcast-card h3{
  font-size: 15px;
}

.podcast-card p{
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

.credentials-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.instructor-strip{
  background: var(--parchment-dim);
  border-top: none;
  border-bottom: none;
  padding: 30px 0;
}

.instructor-strip-inner{
  display:flex;
  align-items:center;
  gap: 20px;
}

.instructor-strip .photo-placeholder{
  width: 64px;
  height: 64px;
  font-size: 20px;
  flex-shrink: 0;
  border-width: 3px;
}

.instructor-strip-text{ flex: 1; }

.instructor-strip-text .name{
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-dark);
}

.instructor-strip-text p{
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-soft);
}

.instructor-strip a.bio-link{
  font-size: 13px;
  font-weight: 600;
  color: var(--rust);
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 600px){
  .instructor-strip-inner{ flex-wrap: wrap; }
  .instructor-strip a.bio-link{ width: 100%; }
}

/* ---------- AUTH PAGES ---------- */

.auth-wrap{
  min-height: 70vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 60px 20px;
  background: var(--parchment);
}

.auth-card{
  max-width: 400px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px 36px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(27,16,48,0.1);
}

.auth-card h1{
  font-size: 25px;
  margin-bottom: 6px;
}

.auth-card .sub{
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 28px;
}

.field{
  margin-bottom: 18px;
}

.field label{
  display:block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.field input{
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--parchment);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
}

.field input:focus{
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(255,78,50,0.12);
}

.btn-block{
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

.auth-divider{
  display:flex;
  align-items:center;
  gap: 12px;
  margin: 22px 0;
  font-size: 12px;
  color: var(--text-soft);
}

.auth-divider::before, .auth-divider::after{
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-google{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.auth-footer-link{
  text-align:center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-soft);
}

.auth-footer-link a{
  color: var(--rust);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- DASHBOARD ---------- */

.dash-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-header h1{ font-size: 27px; }

.dash-header .student-name{
  font-size: 14px;
  color: var(--text-soft);
}

.enrolled-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.enrolled-card{
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(27,16,48,0.06);
}

.enrolled-card .lang-tag{
  font-size: 12px;
  font-weight: 600;
  color: var(--rust);
}

.enrolled-card h3{
  font-size: 18px;
  margin: 8px 0 14px;
}

.progress-track{
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill{
  height: 100%;
  background: linear-gradient(90deg, var(--rust), var(--brass));
}

.progress-label{
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.enrolled-card .card-meta{
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.enrolled-card .card-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.enrolled-card .card-actions .btn-primary,
.enrolled-card .card-actions .btn-outline{
  width: 100%;
  text-align: center;
  display: block;
}

.empty-state{
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.empty-state-icon{
  font-size: 30px;
  color: var(--brass);
  margin-bottom: 14px;
}

.empty-state h3{
  font-size: 19px;
  margin-bottom: 8px;
}

.empty-state p{
  font-size: 14.5px;
  color: var(--text-soft);
  margin-bottom: 22px;
}

/* ---------- COURSE PLAYER ---------- */

.player-layout{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 70vh;
  background: var(--parchment);
}

.player-sidebar{
  background: var(--parchment-dim);
  border-right: 1px solid var(--line);
  padding: 24px 0;
}

.player-sidebar .sidebar-title{
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 0 24px 12px;
}

.sidebar-progress{
  padding: 0 24px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.sidebar-progress-label{
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.sidebar-progress-track{
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.sidebar-progress-fill{
  height: 100%;
  background: linear-gradient(90deg, var(--rust), var(--brass));
  transition: width 0.3s ease;
}

.lecture-item{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 24px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s ease;
}

.lecture-item:hover{ background: rgba(255,78,50,0.06); }

.lecture-item.active{
  background: #fff;
  border-left-color: var(--rust);
}

.lecture-item .status{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  flex-shrink: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  color: var(--brass);
}

.lecture-item.done .status{
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}

.lecture-item .lecture-title{
  font-size: 14px;
  color: var(--text-dark);
}

.player-main{
  padding: 32px 40px;
}

.video-wrap{
  aspect-ratio: 16/9;
  background: var(--ink);
  color: var(--brass);
  border-radius: 18px;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 14px;
  margin-bottom: 24px;
  box-shadow: 0 20px 44px rgba(27,16,48,0.14);
}

.player-main h2{ font-size: 23px; margin-bottom: 10px; }

.player-main .lecture-desc{
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.player-actions{
  display:flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-ghost{
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover{ border-color: var(--rust); color: var(--rust); }

.quiz-box{
  background: var(--parchment-dim);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 18px;
}

.quiz-box h3{ font-size: 17px; margin-bottom: 16px; }

.quiz-question{ margin-bottom: 18px; }

.quiz-question p{
  font-size: 14.5px;
  margin-bottom: 10px;
  font-weight: 500;
}

.quiz-option{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-soft);
}

.certificate-banner{
  background: var(--ink);
  color: var(--cream);
  padding: 26px;
  text-align:center;
  margin-top: 24px;
  border-radius: 18px;
}

.certificate-banner p{
  color: var(--muted-on-dark);
  font-size: 14px;
  margin: 8px 0 16px;
}

.legal-hero{
  background: var(--ink);
  color: var(--parchment);
  padding: 52px 0;
}

.legal-hero h1{
  font-size: 32px;
  color: var(--cream);
}

.legal-hero p{
  color: var(--muted-on-dark);
  font-size: 14px;
  margin-top: 8px;
}

.legal-body{
  padding: 56px 0 72px;
  background: var(--parchment);
}

.legal-body .wrap{ max-width: 720px; }

.legal-body h2{
  font-size: 20px;
  margin: 36px 0 12px;
}

.legal-body h2:first-child{ margin-top: 0; }

.legal-body p, .legal-body li{
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.legal-body ul{
  padding-left: 20px;
}

.footer-links{
  display:flex;
  gap: 18px;
  justify-content:center;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13.5px;
}

.footer-links a{
  color: var(--muted-on-dark);
  text-decoration: none;
}

.footer-links a:hover{ color: var(--brass); }

.social-links{
  display: flex;
  gap: 14px;
  margin-top: 18px;
  justify-content: center;
}

.social-links a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.social-links a svg{
  width: 42px;
  height: 42px;
}

.social-links a:hover{
  transform: translateY(-3px);
}

/* ---------- CARD DEPTH ---------- */

.testimonial-card, .podcast-card, .enrolled-card, .auth-card{
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.enrolled-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(27,16,48,0.1);
}

/* ---------- INSTALL APP FLOATING BUTTON ---------- */

.install-fab{
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--rust);
  color: #fff;
  padding: 13px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255,78,50,0.4);
}

.install-fab-close{
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
  padding: 2px;
}

.install-fab-close:hover{ opacity: 1; }

@media (max-width: 760px){
  .site-header{ position: relative; }
  .header-inner{ flex-wrap: wrap; row-gap: 10px; padding: 14px 20px; }
  .site-nav{
    order: 3; flex: 0 0 100%; justify-content: space-between; gap: 8px;
    padding-top: 10px; border-top: 1px solid var(--line-dark);
  }
  .site-nav a{ font-size: 14px; }
  .dash-header{ align-items: flex-start; }
  .logo{ font-size: 17px; }
  .logo img{ height: 30px; width: 30px; }
  .player-layout{ grid-template-columns: 1fr; }
  .player-sidebar{ border-right:none; border-bottom: 1px solid var(--line); max-height: 240px; overflow-y: auto; }
  .player-main{ padding: 24px 20px; }
  .about-photo{ width: 180px; height: 180px; }
  .about-photo::before{ width: 158px; height: 158px; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 34px; }
  .about-actions{ flex-direction: column; align-items: stretch; }
  .about-actions .btn-outline{ text-align: center; }
  .about-inner{ grid-template-columns: 1fr; text-align:center; }
  .about-text p{ margin-left:auto; margin-right:auto; }
  .course-grid{ grid-template-columns: 1fr; }
  .course-hero h1{ font-size: 30px; }
  .module{ grid-template-columns: 44px 1fr; }
  .app-promo-inner{ grid-template-columns: 1fr; }
  .app-hero-inner{ grid-template-columns: 1fr; }
  .feature-grid{ grid-template-columns: 1fr; }
  .testimonial-grid{ grid-template-columns: 1fr; }
  .podcast-grid{ grid-template-columns: 1fr; }
}

/* Small phones: keep the logo and both header buttons on one row (course pages have two buttons) */
@media (max-width: 480px){
  .header-inner{ gap: 8px; padding: 12px 16px; }
  .logo{ font-size: 15px; gap: 8px; }
  .logo img{ height: 28px; width: 28px; }
  .header-inner .btn-small{ padding: 7px 12px; font-size: 13px; white-space: nowrap; }
  .header-inner .logo{ margin-right: auto; }
}

/* ---------- FAQ (course detail pages) ---------- */

.faq{
  padding: 76px 0 88px;
  background: var(--parchment);
}

.faq h2{
  font-size: 27px;
  margin-bottom: 28px;
}

.faq-item{
  border-top: 1px solid var(--line);
}

.faq-item:last-child{
  border-bottom: 1px solid var(--line);
}

.faq-item summary{
  list-style: none;
  cursor: pointer;
  padding: 20px 34px 20px 0;
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  font-family: 'Bricolage Grotesque', sans-serif;
}

.faq-item summary::-webkit-details-marker{ display: none; }

.faq-item summary::after{
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-size: 22px;
  font-weight: 400;
  color: var(--rust);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after{
  content: "\2212";
}

.faq-item p{
  margin: 0 0 22px;
  padding-right: 34px;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
}

.faq-item p a{
  color: var(--rust);
  font-weight: 600;
}
