:root {
  --bg: #f6efe5;
  --panel: rgba(255, 252, 247, 0.84);
  --panel-strong: #fffdf9;
  --text: #26211d;
  --muted: #6a6159;
  --accent: #b7562a;
  --accent-dark: #8f3d18;
  --line: rgba(38, 33, 29, 0.1);
  --shadow: 0 18px 60px rgba(95, 64, 34, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 196, 154, 0.45), transparent 30%),
    radial-gradient(circle at right center, rgba(226, 150, 107, 0.22), transparent 26%),
    linear-gradient(180deg, #f9f2e9 0%, #f4ece2 48%, #efe5da 100%);
}

button,
a {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

button:hover,
a:hover {
  transform: translateY(-1px);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.92), rgba(255, 243, 232, 0.86)),
    #fff;
  box-shadow: var(--shadow);
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.panel h2 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.hero-copy,
.lead,
.day-content,
.info-list {
  color: var(--muted);
}

.hero-copy {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 1.06rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn {
  color: #fff8f2;
  background: linear-gradient(135deg, var(--accent), #d26e40);
  box-shadow: 0 12px 30px rgba(183, 86, 42, 0.24);
}

.primary-btn:hover {
  box-shadow: 0 18px 40px rgba(183, 86, 42, 0.3);
}

.secondary-btn,
.ghost-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}

.hero-stats div,
.panel {
  backdrop-filter: blur(16px);
}

.hero-stats div {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 248, 0.7);
}

.hero-stats dt {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-stats dd {
  margin: 8px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 18px;
  margin-top: 18px;
}

.course-panel {
  grid-column: 1 / -1;
}

.panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(183, 86, 42, 0.1);
  color: var(--accent-dark);
  font-weight: 700;
}

.lead {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.6;
}

.day-content {
  display: grid;
  gap: 12px;
}

.day-card-copy,
.day-note {
  margin: 0;
  line-height: 1.6;
}

.message-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(183, 86, 42, 0.12);
  background: rgba(255, 253, 249, 0.9);
}

.message-title {
  margin: 0;
  font-size: 1rem;
}

.message-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.message-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(183, 86, 42, 0.14);
  color: var(--accent-dark);
  background: rgba(183, 86, 42, 0.06);
  text-decoration: none;
  font-weight: 600;
}

.day-checklist {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.day-checklist li + li {
  margin-top: 8px;
}

.video-links {
  display: grid;
  gap: 12px;
}

.video-link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(183, 86, 42, 0.12);
  background: var(--panel-strong);
  color: var(--text);
  text-decoration: none;
}

.video-platform,
.video-arrow {
  font-size: 0.86rem;
  color: var(--muted);
}

.info-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  line-height: 1.55;
}

.ghost-btn {
  margin-top: 8px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.course-day-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.85);
}

.course-day-card[role="button"] {
  cursor: pointer;
}

.course-day-card.is-today {
  border-color: rgba(183, 86, 42, 0.42);
  box-shadow: 0 16px 30px rgba(183, 86, 42, 0.12);
}

.course-day-card.is-locked {
  opacity: 0.6;
}

.course-day-card h3,
.course-day-card p {
  margin: 0;
}

.course-day-card h3 {
  margin-top: 6px;
  font-size: 1.12rem;
}

.course-day-meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.course-day-summary {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.course-day-card[role="button"]:hover,
.course-day-card[role="button"]:focus-visible {
  transform: translateY(-2px);
  outline: none;
  border-color: rgba(183, 86, 42, 0.42);
  box-shadow: 0 16px 30px rgba(183, 86, 42, 0.12);
}

.empty-state {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.hidden {
  display: none;
}

@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 10px;
  }

  .hero,
  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    width: 100%;
  }
}
