
:root {
  --pink: #ef4398;
  --ink: #332b36;
  --muted: #877b84;
  --background: #fff9f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: system-ui, -apple-system, sans-serif;
}

.container {
  width: min(100% - 32px, 540px);
  margin: auto;
  padding: 24px 0 55px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.logo {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1.3px;
  color: var(--pink);
  text-decoration: none;
}

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

.header-icon { font-size: 26px; color: var(--pink); }

.hero {
  padding: 27px 24px;
  background: #ffe5ef;
  border-radius: 26px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #a74675;
}

h1 {
  font-size: 34px;
  line-height: 1.12;
  margin: 12px 0;
  letter-spacing: -1px;
}

h2 { font-size: 21px; margin-top: 0; }

p { line-height: 1.6; }

.panel {
  padding: 22px;
  background: white;
  border-radius: 24px;
  margin-top: 18px;
  border: 1px solid #f5e9e7;
}

.panel > p { color: var(--muted); }

.progress-head {
  display: flex;
  justify-content: space-between;
  margin: 24px 0 8px;
  font-size: 13px;
}

.progress-track {
  background: #edc5d5;
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--pink);
  border-radius: 20px;
  transition: width .35s;
}

.button {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: center;
  background: var(--pink);
  color: white;
  font-size: 15px;
  font-weight: 750;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
}

input {
  width: 100%;
  padding: 16px;
  border: 2px solid #f1dce7;
  border-radius: 14px;
  margin: 8px 0 14px;
  font-size: 17px;
}

.lesson-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid #f4edef;
  text-decoration: none;
  color: var(--ink);
}

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

.lesson-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  background: #ffe7f1;
  color: #d92c83;
  border-radius: 14px;
  font-weight: 800;
}

.lesson-number.completed {
  background: #dff6e9;
  color: #218653;
}

.lesson-info { flex: 1; }

.lesson-info strong,
.lesson-info small { display: block; }

.lesson-info small {
  color: var(--muted);
  margin-top: 4px;
}

.lesson-arrow {
  font-size: 25px;
  color: var(--muted);
}

.resources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.resource-card {
  background: white;
  padding: 18px;
  border-radius: 19px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid #f5e9e7;
}

.resource-card span { font-size: 26px; }

.resource-card strong,
.resource-card small {
  display: block;
  margin-top: 7px;
}

.resource-card small { color: var(--muted); }

.video-placeholder {
  background: #302a34;
  min-height: 210px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 16px;
}

.video-placeholder span { font-size: 40px; }
.video-placeholder small { opacity: .65; }

.back-link, .next-link, .footer-link a {
  color: var(--pink);
  text-decoration: none;
}

.next-link {
  display: block;
  text-align: center;
  padding: 18px;
}

.back-link { display: inline-block; margin-bottom: 18px; }

.achievement-icon { font-size: 42px; }
.achievement-icon, #achievement { text-align: center; }
.hidden { display: none; }
.error { color: #d32655 !important; }

footer {
  color: #aa9aa3;
  text-align: center;
  font-size: 12px;
  margin-top: 36px;
}
