/* Bamboo Dusk — evening wellness design system */

:root {
  --color-bg: #F7F3EA;
  --color-bg-secondary: #EFE9DC;
  --color-surface: #FCFAF4;
  --color-text: #123F46;
  --color-muted: #5E6B6B;
  --color-gold: #B39A69;
  --color-botanical: #DCE2D6;
  --color-bamboo-sage: #AAB8A5;
  --color-border: #DED6C7;
  --bamboo-fill-soft: rgba(93, 112, 91, 0.2);
  --bamboo-fill-mid: rgba(170, 184, 165, 0.35);
  --bamboo-fill-warm: rgba(179, 154, 105, 0.25);
  --bamboo-hero-image: url("images/bamboo-hero.jpg");
  --bamboo-leaf-image: url("images/bamboo-card.jpg");
  --color-btn: #174E54;
  --color-btn-hover: #0E3D42;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Arial, Helvetica, sans-serif;
  --max-width: 72rem;
  --max-width-narrow: 42rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 3rem;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-soft: 0 4px 24px rgba(18, 63, 70, 0.06);
  --shadow-card: 0 2px 16px rgba(18, 63, 70, 0.05);
  --text-base: 1.0625rem;
  --line-height: 1.65;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% 0%, var(--bamboo-fill-mid) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 0% 100%, var(--bamboo-fill-warm) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-btn);
  text-decoration: none;
}

a:hover {
  color: var(--color-btn-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Header */
.site-header {
  background: rgba(252, 250, 244, 0.96);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  box-shadow: 0 1px 0 var(--bamboo-fill-warm);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-text);
}

.brand-lockup:hover {
  color: var(--color-btn);
  text-decoration: none;
}

.brand-mark {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--color-btn);
}

.site-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
}

.site-brand:hover {
  color: var(--color-btn);
  text-decoration: none;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1rem;
}

.site-nav a {
  color: var(--color-text);
  white-space: nowrap;
}

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

/* Main layouts */
main {
  flex: 1;
  width: 100%;
}

.main-contained {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  position: relative;
}

.section {
  padding: var(--space-lg) var(--space-md);
  position: relative;
}

.section--cream {
  background: rgba(239, 233, 220, 0.72);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section--with-deco::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: min(140px, 28vw);
  height: min(180px, 35vw);
  opacity: 0.45;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 160' fill='none'%3E%3Cpath stroke='%235D705B' stroke-width='1.2' opacity='0.35' d='M40 155V25M40 55c-18-8-28-8-28-8M40 85c14-10 24-12 32-12M40 115c-16-6-26-6-34-6'/%3E%3Cpath stroke='%23AAB8A5' stroke-width='1' opacity='0.4' d='M70 155V40M70 70c16-6 26-8 34-10M70 100c-12-8-22-10-30-10'/%3E%3Cellipse cx='28' cy='48' rx='8' ry='14' fill='%23AAB8A5' opacity='0.25' transform='rotate(-25 28 48)'/%3E%3Cellipse cx='52' cy='92' rx='9' ry='15' fill='%235D705B' opacity='0.18' transform='rotate(15 52 92)'/%3E%3C/svg%3E") center / contain no-repeat;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  max-width: 12rem;
}

.section-divider__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-bamboo-sage);
  opacity: 0.85;
  flex-shrink: 0;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.page-title {
  font-family: var(--font-serif);
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 400;
}

.page-lead {
  margin: 0 0 var(--space-lg);
  color: var(--color-muted);
  font-size: 1.125rem;
  max-width: var(--max-width-narrow);
}

/* Hero */
.hero {
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  top: -8%;
  right: -8%;
  width: min(72%, 720px);
  height: 115%;
  pointer-events: none;
  z-index: 0;
  background-image: var(--bamboo-hero-image);
  background-size: cover;
  background-position: 72% 28%;
  opacity: 0.28;
  filter: blur(2px) saturate(0.88);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 72% 38%, #000 18%, transparent 72%);
  mask-image: radial-gradient(ellipse 95% 85% at 72% 38%, #000 18%, transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(100deg, rgba(247, 243, 234, 0.98) 0%, rgba(247, 243, 234, 0.88) 38%, rgba(247, 243, 234, 0.45) 58%, rgba(247, 243, 234, 0.08) 78%, transparent 92%),
    linear-gradient(180deg, rgba(247, 243, 234, 0.4) 0%, transparent 35%);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-md);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  padding: var(--space-sm) 0;
  position: relative;
  z-index: 1;
}

.hero__visual {
  position: relative;
  z-index: 1;
}

.section--bamboo-soft,
.section--bamboo-soft-weeks {
  position: relative;
  overflow: hidden;
}

.section--bamboo-soft::before,
.section--bamboo-soft-weeks::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  filter: blur(1.5px) saturate(0.85);
}

.section--bamboo-soft::before {
  background-image: var(--bamboo-leaf-image);
  background-size: min(420px, 55vw) auto;
  background-position: 4% 18%;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at 12% 28%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 65% at 12% 28%, #000 10%, transparent 72%);
}

.section--bamboo-soft-weeks::before {
  background-image: var(--bamboo-hero-image);
  background-size: min(480px, 60vw) auto;
  background-position: 98% 88%;
  opacity: 0.1;
  -webkit-mask-image: radial-gradient(ellipse 50% 55% at 92% 82%, #000 8%, transparent 70%);
  mask-image: radial-gradient(ellipse 50% 55% at 92% 82%, #000 8%, transparent 70%);
}

.section--bamboo-soft .section__inner,
.section--bamboo-soft-weeks .section__inner {
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 var(--space-md);
  font-weight: 400;
}

.hero__text {
  margin: 0 0 var(--space-sm);
  color: var(--color-muted);
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.text-link {
  font-weight: 600;
  color: var(--color-btn);
}

.price-line {
  margin: var(--space-md) 0 0;
  font-size: 1.125rem;
  color: var(--color-text);
}

.price-line strong {
  font-size: 1.35rem;
  color: var(--color-btn);
}

.notice-inline {
  margin-top: var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: 36rem;
}

/* Lesson preview card (hero / course) */
.lesson-preview-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-height: 20rem;
}

.lesson-preview-card__bamboo {
  display: none;
}

.lesson-preview-card__preview-note {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0.25rem 0 0;
  max-width: 16rem;
}

.lesson-preview-card::after {
  content: "";
  position: absolute;
  inset: -8%;
  background-image: var(--bamboo-leaf-image);
  background-size: cover;
  background-position: 68% 42%;
  opacity: 0.22;
  filter: blur(1px) saturate(0.9);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 72% 58%, #000 12%, transparent 68%);
  mask-image: radial-gradient(ellipse 90% 80% at 72% 58%, #000 12%, transparent 68%);
  z-index: 0;
  pointer-events: none;
}

.lesson-preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(252, 250, 244, 0.94) 0%, rgba(252, 250, 244, 0.82) 45%, rgba(252, 250, 244, 0.55) 100%),
    radial-gradient(circle at 88% 12%, rgba(179, 154, 105, 0.12) 0%, transparent 42%);
  z-index: 1;
  pointer-events: none;
}

.lesson-preview-card__moon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5ecd8, #e8dcc4);
  border: 1px solid var(--color-border);
  z-index: 2;
  opacity: 0.9;
}

.lesson-preview-card__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 14rem;
  justify-content: flex-end;
}

.lesson-preview-card__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.35rem;
}

.lesson-preview-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.lesson-preview-card__sub {
  margin: 0 0 var(--space-md);
  color: var(--color-muted);
  font-size: 1rem;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--color-btn);
  color: var(--color-surface);
  border: 2px solid var(--color-gold);
  text-decoration: none;
  transition: background 0.15s ease;
}

.play-button:hover {
  background: var(--color-btn-hover);
  color: var(--color-surface);
  text-decoration: none;
}

.play-button svg {
  width: 1rem;
  height: 1rem;
  margin-left: 0.15rem;
}

/* Cards & grids */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-md);
}

.card h2,
.card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  position: relative;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-bottom-left-radius: var(--radius);
  background: linear-gradient(135deg, transparent 50%, var(--bamboo-fill-mid) 50%);
  pointer-events: none;
}

.feature-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: linear-gradient(145deg, var(--color-botanical), var(--color-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-btn);
  margin-bottom: var(--space-sm);
}

.feature-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.week-grid-wrap {
  position: relative;
}

.week-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.guidance-panel {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  min-height: 10rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.guidance-panel::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='20' cy='40' rx='10' ry='18' fill='%23AAB8A5' opacity='0.3' transform='rotate(-30 20 40)'/%3E%3Cpath stroke='%235D705B' stroke-width='1' opacity='0.25' d='M36 64V20'/%3E%3C/svg%3E") no-repeat;
  pointer-events: none;
}

.guidance-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.guidance-panel p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.week-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.week-card p {
  margin: 0;
  color: var(--color-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  color: var(--color-btn);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.step p {
  margin: 0;
  color: var(--color-muted);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm) var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
}

.trust-list li::before {
  content: "·";
  color: var(--color-gold);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Purchase banner */
.purchase-banner {
  background: var(--color-btn);
  color: var(--color-surface);
  padding: var(--space-lg) var(--space-md);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  isolation: isolate;
}

.purchase-banner--bamboo::before {
  content: "";
  position: absolute;
  left: -5%;
  bottom: -20%;
  width: min(42%, 360px);
  height: 85%;
  pointer-events: none;
  z-index: 0;
  background-image: var(--bamboo-leaf-image);
  background-size: cover;
  background-position: 30% 60%;
  opacity: 0.16;
  filter: blur(2px) saturate(0.75);
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(75deg, #000 5%, transparent 88%);
  mask-image: linear-gradient(75deg, #000 5%, transparent 88%);
}

.purchase-banner__deco {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: min(200px, 22vw);
  height: 80%;
  opacity: 0.2;
  pointer-events: none;
}

.purchase-banner__deco--left {
  left: 0;
}

.purchase-banner__deco--right {
  right: 0;
  transform: translateY(-50%) scaleX(-1);
}

.purchase-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.purchase-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin: 0 0 var(--space-xs);
}

.purchase-banner .price-display {
  font-size: 2rem;
  margin: var(--space-sm) 0;
  color: #f5ecd8;
}

.purchase-banner p {
  margin: 0 0 var(--space-md);
  opacity: 0.92;
  font-size: 1.0625rem;
}

.purchase-banner .btn {
  background: var(--color-surface);
  color: var(--color-btn);
}

.purchase-banner .btn:hover {
  background: var(--color-bg);
  color: var(--color-btn-hover);
}

.purchase-banner .btn-secondary {
  border-color: rgba(252, 250, 244, 0.85);
  color: var(--color-surface);
  background: transparent;
}

.purchase-banner .btn-secondary:hover {
  background: rgba(252, 250, 244, 0.12);
  color: var(--color-surface);
}

.actions--center {
  justify-content: center;
}

.page-quick-links {
  margin-top: var(--space-sm);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--color-surface);
  background: var(--color-btn);
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 2.75rem;
  line-height: 1.35;
}

.btn:hover {
  background: var(--color-btn-hover);
  color: var(--color-surface);
  text-decoration: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--color-btn);
  border: 1px solid var(--color-btn);
}

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

.btn-gold-outline {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.price-tag {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--color-btn);
  margin: 0.5rem 0;
}

.feature-list {
  margin: 0;
  padding-left: 1.25rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.form-placeholder label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 1rem;
}

.form-placeholder input,
.form-placeholder select,
.form-placeholder textarea {
  width: 100%;
  max-width: 24rem;
  padding: 0.75rem;
  margin-bottom: var(--space-sm);
  font: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
}

.form-note {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-top: var(--space-sm);
  line-height: 1.55;
}

.badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius);
  background: var(--color-botanical);
  color: var(--color-btn);
  margin-left: 0.35rem;
}

.badge--muted {
  background: var(--color-bg-secondary);
  color: var(--color-muted);
}

/* Course page layout */
.course-top-grid {
  display: grid;
  grid-template-columns: 1fr min(320px, 100%);
  gap: var(--space-lg);
  align-items: start;
}

.course-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  padding: 0;
  list-style: none;
}

.course-facts li {
  padding: var(--space-sm);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.purchase-card {
  position: sticky;
  top: var(--space-sm);
}

.week-contents {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.week-contents details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
}

.week-contents summary {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.35rem 0;
}

.week-contents ul {
  margin: var(--space-sm) 0 0;
  color: var(--color-muted);
}

/* Lessons */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin-bottom: 0;
}

.stat-box {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
}

.stat-box strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-btn);
  font-weight: 400;
}

.stat-box span {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

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

.lesson-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.0625rem;
}

.lesson-list li:last-child {
  border-bottom: none;
}

.lesson-list a {
  font-weight: 600;
}

/* Course home (28-day catalog) */
.course-home .eyebrow {
  margin-bottom: 0.35rem;
}

.course-progress {
  margin-top: var(--space-md);
}

.course-progress__labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
  gap: var(--space-xs);
}

.course-progress__track {
  height: 0.65rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.course-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-botanical), var(--color-btn));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.course-day-catalog {
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-day-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
}

.course-day-row:last-child {
  border-bottom: none;
}

.course-day-row__day {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--color-btn);
  font-weight: 500;
}

.course-day-row__main {
  min-width: 0;
}

.course-day-row__title {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

a.course-day-row__title:hover {
  color: var(--color-btn);
  text-decoration: underline;
}

.course-day-row__title--locked {
  color: var(--color-muted);
  font-weight: 500;
}

.course-day-row--locked .course-day-row__day {
  color: var(--color-muted);
}

.course-day-row__lock::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
  vertical-align: -0.1em;
  background: currentColor;
  opacity: 0.55;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M18 10h-1V7a5 5 0 0 0-10 0v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2zm-8-3a3 3 0 0 1 6 0v3H10V7z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
}

.course-home__actions {
  margin-top: var(--space-md);
}

@media (max-width: 640px) {
  .course-day-row {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .course-day-row__lock,
  .course-day-row .badge {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.15rem;
  }

  .course-home__actions .btn,
  .course-home__actions .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* Lesson player */
.lesson-header {
  margin-bottom: var(--space-md);
}

.lesson-header .eyebrow {
  margin-bottom: 0.25rem;
}

.media-player {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--color-botanical), var(--color-bg-secondary));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.media-player::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 220'%3E%3Cpath stroke='%235D705B' stroke-width='1' opacity='0.15' d='M320 220V60M320 100c-30-12-50-14-70-14'/%3E%3Cellipse cx='300' cy='80' rx='12' ry='22' fill='%23AAB8A5' opacity='0.2' transform='rotate(-15 300 80)'/%3E%3C/svg%3E") right bottom / 45% no-repeat;
  pointer-events: none;
}

.media-player > * {
  position: relative;
  z-index: 1;
}

.media-player p {
  margin: 0;
  color: var(--color-muted);
  max-width: 22rem;
  font-size: 1rem;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--color-botanical), var(--color-bg-secondary));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--color-muted);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  text-align: center;
}

/* Day lesson player */
.lesson-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.lesson-video-card .lesson-video-wrap,
.lesson-audio-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.lesson-bunny-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  background: #141414;
}

.lesson-bunny-embed__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lesson-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  background: #1a1a1a;
  vertical-align: middle;
}

.lesson-audio {
  display: block;
  width: 100%;
}

.lesson-subtitles-panel {
  margin-top: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius);
  background: var(--color-bg-secondary);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.lesson-subtitles-line {
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

.lesson-subtitles-line:last-child {
  margin-bottom: 0;
}

.lesson-practice-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text);
}

.lesson-practice-steps li {
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.lesson-practice-steps li:last-child {
  margin-bottom: 0;
}

.lesson-completion-status {
  margin: 0 0 var(--space-sm);
  font-weight: 600;
  color: var(--color-muted);
}

.lesson-completion-status--done {
  color: var(--color-btn);
}

#lesson-mark-complete-btn:not(:disabled):not([aria-disabled="true"]) {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
}

.lesson-completion-toast--visible {
  color: var(--color-btn);
  font-weight: 600;
}

.lesson-day__footer-actions {
  margin-top: var(--space-md);
}

@media (max-width: 640px) {
  .lesson-day__footer-actions .btn,
  .lesson-day__footer-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .lesson-video,
  .lesson-bunny-embed {
    max-height: none;
  }
}

.lesson-tabs {
  display: grid;
  gap: var(--space-md);
}

.preview-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
}

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  margin-bottom: var(--space-sm);
}

.footer-nav a {
  font-weight: 600;
  color: var(--color-text);
}

.footer-muted {
  color: var(--color-muted);
}

.footer-brand {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-brand .brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--color-bamboo-sage);
}

.trust-panel {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.page-deco-corner {
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 120px;
  opacity: 0.35;
}

.site-footer a:hover {
  color: var(--color-gold);
}

.admin-banner {
  background: var(--color-bg-secondary);
  border: 1px dashed var(--color-gold);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero::before {
    width: 78%;
    right: -12%;
    opacity: 0.2;
    filter: blur(2.5px) saturate(0.85);
  }

  .hero::after {
    background: linear-gradient(100deg, rgba(247, 243, 234, 0.98) 0%, rgba(247, 243, 234, 0.9) 52%, rgba(247, 243, 234, 0.35) 72%, transparent 88%);
  }

  .section--with-deco::before {
    width: 90px;
    height: 110px;
    opacity: 0.3;
  }

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

  .purchase-card {
    position: static;
  }

  .purchase-banner__deco {
    width: 100px;
    opacity: 0.12;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 2.75rem;
    --space-lg: 1.75rem;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-actions .btn {
    width: 100%;
    text-align: center;
  }

  .main-contained {
    padding-top: var(--space-md);
  }

  .hero::before {
    top: auto;
    bottom: 0;
    height: 55%;
    width: 100%;
    right: 0;
    opacity: 0.14;
    background-position: 85% 100%;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 85% 100%, #000 8%, transparent 68%);
    mask-image: radial-gradient(ellipse 80% 70% at 85% 100%, #000 8%, transparent 68%);
  }

  .section--bamboo-soft::before,
  .section--bamboo-soft-weeks::before {
    opacity: 0.07;
    filter: blur(2px);
  }

  .purchase-banner--bamboo::before {
    width: 55%;
    opacity: 0.1;
  }

  .lesson-preview-card::after {
    opacity: 0.16;
  }
}
