/* ═════════════════════════════════════════════════════════════
   CURLY HAIR LEARNING APP — DESIGN CSS
   ═════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #6e6e6e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Raleway', sans-serif;
}

/* ── iPad shell ── */
.ipad {
  width: 468px;
  height: 638px;
  background: #1c1c1c;
  border-radius: 36px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 0 1px #0a0a0a,
    inset 0 0 0 1px #3a3a3a,
    0 40px 80px rgba(0,0,0,0.55),
    0 10px 20px rgba(0,0,0,0.3);
}

.camera-bar {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 5px; align-items: center; z-index: 20;
}
.cam-dot { width: 5px; height: 5px; background: #2e2e2e; border-radius: 50%; }
.cam-dot.center { width: 7px; height: 7px; background: #252525; }

.side-btn { position: absolute; right: -3px; width: 3px; background: #2a2a2a; border-radius: 2px; }

.screen {
  width: 100%; height: 100%;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}

/* ── Pages ── */
.page {
  position: absolute; inset: 0;
  background: #f2e9e4;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s ease;
  overflow-y: auto;
  overflow-x: hidden;
}
.page.active { opacity: 1; pointer-events: all; }


/* ── Shared buttons ── */
.skip-btn {
  position: absolute; top: 60px; right: 60px;
  font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 500;
  color: #c9ada7; background: none; border: none;
  cursor: pointer; z-index: 5; letter-spacing: 0.02em;
  transition: color 0.2s;
}
.skip-btn:hover { color: #9a8c98; }

.next-btn {
  position: absolute;
  bottom: 18px; right: 60px;
  width: 42px; height: 42px;
  background: #c9ada7; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 6;
  transition: background 0.2s, transform 0.15s;
}
.next-btn:hover { background: #b89b95; transform: scale(1.05); }
.next-btn:active { transform: scale(0.96); }
.next-btn svg { width: 17px; height: 17px; stroke: #22223b; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.back-btn {
  position: absolute; top: 60px; left: 60px;
  width: 42px; height: 42px;
  background: none; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 6;
  transition: transform 0.15s;
}
.back-btn:hover { transform: scale(1.05); }
.back-btn:active { transform: scale(0.96); }
.back-btn svg { width: 17px; height: 17px; stroke: #22223b; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Progress dots (intro) ── */
.dots-row {
  position: absolute;
  bottom: 60px; left: 0; right: 0;
  display: flex; gap: 12px;
  align-items: center; justify-content: center;
  z-index: 5;
}
.dot { width: 16px; height: 16px; border-radius: 50%; background: #e8d5d0; cursor: pointer; transition: background 0.3s; }
.dot.active { background: #c9ada7; }

/* ── Intro pages shared ── */
.text-block {
  position: absolute; top: 18%; left: 60px; right: 60px;
  z-index: 3; display: flex; flex-direction: column; align-items: center;
}
.headline { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 30px; color: #22223b; text-align: center; line-height: 1.2; margin-bottom: 14px; }
.subtitle { font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 600; color: #4a4e69; text-align: center; }

.art-area { position: absolute; top: 42%; left: 0; right: 0; bottom: 100px; z-index: 1; }
.ellipse-6 { position: absolute; width: 168px; height: 168px; border-radius: 50%; background: #c9ada7; opacity: 0.78; left: 30px; top: 10px; z-index: 1; filter: blur(4px); }
.ellipse-7 { position: absolute; width: 158px; height: 158px; border-radius: 50%; background: #9a8c98; opacity: 0.72; right: 30px; bottom: 0; z-index: 1; filter: blur(4px); }
.rect-5 { position: absolute; width: 190px; height: 280px; background: #c9ada7; border-radius: 20px; filter: blur(5px); left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; opacity: 0.55; }

.hero-image { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: 500px; height: auto; object-fit: contain; z-index: 3; }

/* Page 2 art */
.page2-art { top: 38%; left: 60px; right: 60px; bottom: 100px; }
.ellipse-8 { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: #c9ada7; opacity: 0.7; left: -15px; top: 20px; z-index: 1; filter: blur(4px); }
.ellipse-9 { position: absolute; width: 140px; height: 140px; border-radius: 50%; background: #9a8c98; opacity: 0.65; right: -15px; bottom: 15px; z-index: 1; filter: blur(4px); }
.rect-6 { position: absolute; width: 320px; height: 180px; background: #c9ada7; border-radius: 25px; filter: blur(6px); left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; opacity: 0.55; }
.page2-image { width: 300px; left: 50%; top: 42%; }

/* Page 3 art */
.ellipse-10 { position: absolute; width: 168px; height: 168px; border-radius: 50%; background: #c9ada7; opacity: 0.78; left: 30px; top: 10px; z-index: 1; filter: blur(4px); }
.ellipse-11 { position: absolute; width: 158px; height: 158px; border-radius: 50%; background: #9a8c98; opacity: 0.72; right: 30px; bottom: 0; z-index: 1; filter: blur(4px); }
.rect-7 { position: absolute; width: 190px; height: 280px; background: #c9ada7; border-radius: 20px; filter: blur(5px); left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; opacity: 0.55; }
.page3-image { width: 260px; height: 260px; border-radius: 50%; object-fit: cover; left: 50%; top: 48%; }

/* ── Page 4: Enter Name ── */
.page4-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 60px;
  justify-content: center;
}
.page4-inner .headline { text-align: left; margin-bottom: 12px; font-size: 28px; }
.page4-inner .subtitle { text-align: left; font-size: 13px; line-height: 1.6; color: #4a4e69; font-weight: 400; margin-bottom: 32px; }

.name-input {
  width: 100%; height: 56px;
  border: 2px solid #9a8c98; border-radius: 28px;
  background: rgba(201, 173, 167, 0.2);
  font-family: 'Raleway', sans-serif; font-weight: 500; font-size: 15px;
  color: #22223b; padding: 0 24px; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.name-input::placeholder { color: #9a8c98; }
.name-input:focus { border-color: #4a4e69; background: rgba(201, 173, 167, 0.3); }

/* ── Page 4: Let's Get Started ── */
#page-4 {
  background: #9a8c98;
}
.lgs-inner {
  position: absolute; inset: 0;
  padding: 60px;
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.lgs-inner .headline {
  color: #f2e9e4; font-size: 28px;
  text-align: left; width: 100%; margin-bottom: 12px; margin-top: 20px;
}
.lgs-inner .subtitle {
  color: #e6d6d2; font-size: 15px; font-weight: 600;
  text-align: center; line-height: 1.6; margin-bottom: 20px;
}
.lgs-image-placeholder {
  width: 100%; flex: 1;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(242,233,228,0.5); font-size: 13px; font-family: 'Raleway', sans-serif;
  margin-bottom: 24px;
}
.lgs-image-placeholder img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.get-started-btn {
  width: 100%; height: 60px;
  background: #f2e9e4; border: none; border-radius: 22px;
  font-family: 'Raleway', sans-serif; font-weight: 700;
  font-size: 22px; color: #22223b;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.get-started-btn:hover { background: #4a4e69; transform: scale(1.01); }
.get-started-btn svg { width: 18px; height: 18px; stroke: #22223b; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Questionnaire pages shared layout ── */
.q-page {
  background: #f2e9e4;
}
.q-inner {
  position: absolute; inset: 0;
  padding: 24px 30px 20px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}

/* Progress bar (pill-dots) */
.q-progress {
  display: flex; gap: 6px; margin-bottom: 20px; flex-shrink: 0;
}
.q-prog-dot {
  height: 8px; border-radius: 4px; background: #e6d6d2;
  transition: background 0.3s, width 0.3s;
  flex: 1;
}
.q-prog-dot.done { background: #c9ada7; }
.q-prog-dot.active { background: #c9ada7; }

.q-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 22px; color: #22223b; line-height: 1.25;
  margin-bottom: 8px; flex-shrink: 0;
}
.q-title-underline {
  width: 60px; height: 2px; background: #22223b;
  margin-bottom: 16px; flex-shrink: 0;
}

/* Image placeholder */
.q-image-box {
  width: 100%; height: 160px;
  background: #ddd5cc; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; flex-shrink: 0; overflow: hidden;
  border: 2px dashed #c9ada7; position: relative;
}
.q-image-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.q-image-box .img-label {
  font-family: 'Raleway', sans-serif; font-size: 11px;
  color: #9a8c98; letter-spacing: 0.05em;
}

/* ── Page 5 curl grid ── */
.p5-curl-wrap {
  display: flex;
  gap: 4px;
  background: #4a4e69;
  border-radius: 8px;
  overflow: hidden;
  padding: 4px;
  margin-bottom: 10px;
  flex-shrink: 0;
  height: 196px;
}
.p5-side-col {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 26px;
  gap: 3px;
}
.p5-side-label {
  flex: 1;
  background: #c9ada7;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 10px;
  color: #22223b;
  letter-spacing: 0.04em;
}
.p5-side-label.type4 { background: #9a8c98; }
.p5-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  background: #e6d6d2;
  border-radius: 4px;
  overflow: hidden;
}
.p5-cell {
  position: relative;
  overflow: hidden;
  background: #e6d6d2;
}
.p5-cell img { width: 100%; height: 100%; object-fit: contain; object-position: center top; display: block; }
.p5-cell.c3 { border: 1.5px solid #c9ada7; }
.p5-cell.c4 { border: 1.5px solid #9a8c98; }
/* Per-cell scale adjustments */
.p5-grid .p5-cell:nth-child(1) img { transform: scale(1.09); transform-origin: center top; }
.p5-grid .p5-cell:nth-child(2) img { transform: scale(1.5) translateY(-12%); transform-origin: center top; }
.p5-grid .p5-cell:nth-child(3) img { transform: scale(1.5) translateY(-12%); transform-origin: center top; }
.p5-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: #c9ada7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 9px;
  color: #22223b;
  z-index: 2;
}

/* ── Page 5 spacing overrides ── */
#page-5 .q-inner { padding: 42px 30px 20px; overflow: hidden; }

/* ── Page 6 overrides ── */
#page-6 .q-inner { padding: 42px 30px 20px; overflow: hidden; }
#page-6 .q-progress { margin-bottom: 14px; margin-left: 20px; margin-right: 20px; }
#page-6 .q-title { font-size: 22px; margin-bottom: 6px; }
#page-6 .q-title-underline { margin-bottom: 12px; }
#page-6 .q-image-box { border: 2px solid #22223b; border-radius: 4px; height: 196px; margin-bottom: 12px; }
#page-6 .q-image-box img { object-fit: cover; object-position: center 30%; }
#page-6 .q-options { gap: 3px; }
#page-6 .q-option { padding: 6px 16px; font-size: 12px; }
#page-6 .q-nav { margin-top: auto; }

/* ── Page 7 overrides ── */
#page-7 .q-inner { padding: 42px 30px 20px; overflow: hidden; }
#page-7 .q-progress { margin-bottom: 14px; margin-left: 20px; margin-right: 20px; }
#page-7 .q-title { font-size: 22px; margin-bottom: 6px; }
#page-7 .q-title-underline { margin-bottom: 12px; }
#page-7 .q-image-box { border: 2px solid #22223b; border-radius: 4px; height: 196px; margin-top: 16px; margin-bottom: 12px; }
#page-7 .q-image-box img { object-fit: cover; object-position: center center; }
#page-7 .q-options { gap: 3px; }
#page-7 .q-option { padding: 6px 16px; font-size: 12px; }
#page-7 .q-nav { margin-top: auto; }

/* ── Page 8 overrides ── */
#page-8 .q-inner { padding: 42px 30px 20px; overflow: hidden; }
#page-8 .q-progress { margin-bottom: 14px; margin-left: 20px; margin-right: 20px; }
#page-8 .q-title { font-size: 22px; margin-bottom: 6px; }
#page-8 .q-title-underline { margin-bottom: 12px; }
#page-8 .q-image-box { border: 2px solid #22223b; border-radius: 4px; height: 196px; margin-bottom: 12px; background: #e6d6d2; overflow: hidden; }
#page-8 .q-image-box img { object-fit: cover; object-position: center center; }
#page-8 .q-options { gap: 3px; }
#page-8 .q-option { padding: 6px 16px; font-size: 12px; }
#page-8 .q-nav { margin-top: auto; }

/* ── Page 9 overrides ── */
#page-9 .q-inner { padding: 42px 30px 20px; overflow: hidden; }
#page-9 .q-progress { margin-bottom: 14px; margin-left: 20px; margin-right: 20px; }
#page-9 .q-title { font-size: 22px; margin-bottom: 6px; }
#page-9 .q-title-underline { margin-bottom: 12px; }
#page-9 .q-image-box { border: 2px solid #22223b; border-radius: 4px; height: 196px; margin-bottom: 12px; background: #e6d6d2; overflow: hidden; }
#page-9 .q-image-box img { object-fit: cover; object-position: center center; }
#page-9 .q-options { gap: 3px; }
#page-9 .q-option { padding: 6px 16px; font-size: 12px; }
#page-9 .q-nav { margin-top: auto; }

/* ── Page 10 overrides ── */
#page-10 .q-inner { padding: 42px 30px 20px; overflow: hidden; }
#page-10 .q-progress { margin-bottom: 14px; margin-left: 20px; margin-right: 20px; }
#page-10 .q-title { font-size: 22px; margin-bottom: 6px; }
#page-10 .q-title-underline { margin-bottom: 12px; }
#page-10 .q-image-box { border: 2px solid #22223b; border-radius: 4px; height: 196px; margin-bottom: 12px; background: #e6d6d2; overflow: hidden; }
#page-10 .q-image-box img { object-fit: cover; object-position: center center; }
#page-10 .q-options { gap: 3px; }
#page-10 .q-option { padding: 6px 16px; font-size: 12px; }
#page-10 .q-nav { margin-top: auto; }

/* ── Page 11 overrides ── */
#page-11 .q-inner { padding: 42px 30px 20px; overflow: hidden; }
#page-11 .q-progress { margin-bottom: 14px; margin-left: 20px; margin-right: 20px; }
#page-11 .q-title { font-size: 22px; margin-bottom: 6px; }
#page-11 .q-title-underline { margin-bottom: 12px; }
#page-11 .q-image-box { border: 2px solid #22223b; border-radius: 4px; height: 196px; margin-bottom: 12px; background: #e6d6d2; overflow: hidden; }
#page-11 .q-image-box img { object-fit: cover; object-position: center center; }
#page-11 .q-options { gap: 3px; }
#page-11 .q-option { padding: 6px 16px; font-size: 12px; }
#page-11 .q-nav { margin-top: auto; }

/* ── Page 12 overrides ── */
#page-12 .q-inner { padding: 42px 30px 20px; overflow: hidden; }
#page-12 .q-progress { margin-bottom: 14px; margin-left: 20px; margin-right: 20px; }
#page-12 .q-title { font-size: 22px; margin-bottom: 6px; }
#page-12 .q-title-underline { margin-bottom: 12px; }
#page-12 .q-image-box { border: 2px solid #22223b; border-radius: 4px; height: 196px; margin-bottom: 12px; background: #e6d6d2; overflow: hidden; }
#page-12 .q-image-box img { object-fit: cover; object-position: center center; }
#page-12 .q-options { gap: 3px; }
#page-12 .q-option { padding: 6px 16px; font-size: 12px; }
#page-12 .q-nav { margin-top: auto; }
#page-5 .q-progress { margin-bottom: 14px; margin-left: 20px; margin-right: 20px; }
#page-5 .q-title { font-size: 22px; margin-bottom: 6px; }
#page-5 .q-title-underline { margin-bottom: 12px; }
#page-5 .p5-curl-wrap { margin-bottom: 22px; }
#page-5 .q-options { gap: 3px; }
#page-5 .q-option { padding: 6px 16px; font-size: 12px; }
#page-5 .q-nav { margin-top: 18px; justify-content: flex-end; }

/* Answer options */
.q-options { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.q-option {
  width: 100%; padding: 13px 18px;
  background: #e6d6d2; border: 1.5px solid transparent;
  border-radius: 28px; cursor: pointer;
  font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 500;
  color: #22223b; text-align: left;
  transition: background 0.2s, border-color 0.2s;
}
.q-option:hover { background: #c9ada7; }
.q-option.selected {
  background: #c9ada7; border-color: #9a8c98; color: #22223b;
}

/* Next / back row */
.q-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; flex-shrink: 0;
}
.q-back-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: #c9ada7; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.q-back-btn:hover { background: #b89b95; transform: scale(1.05); }
.q-back-btn svg { width: 16px; height: 16px; stroke: #22223b; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.q-next-btn {
  padding: 12px 28px; border-radius: 28px;
  background: #22223b; border: none;
  font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 600;
  color: #f2e9e4; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.q-next-btn:hover { background: #4a4e69; transform: scale(1.02); }
.q-next-btn:disabled { background: #c9ada7; cursor: not-allowed; transform: none; opacity: 0.6; }
.q-next-btn svg { width: 14px; height: 14px; stroke: #f2e9e4; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.q-continue-btn {
  padding: 12px 24px; border-radius: 28px;
  background: #22223b; border: none;
  font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 600;
  color: #f2e9e4; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.q-continue-btn:hover { background: #4a4e69; transform: scale(1.02); }
.q-continue-btn:disabled { background: #c9ada7; cursor: not-allowed; transform: none; opacity: 0.6; }
.q-continue-btn svg { width: 14px; height: 14px; stroke: #f2e9e4; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Curl Profile page ── */
#page-13 { background: #9a8c98; }
.profile-inner {
  position: absolute; inset: 0;
  padding: 28px 24px 20px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.profile-eyebrow {
  font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 600;
  color: #e6d6d2; margin-bottom: 6px; letter-spacing: 0.03em;
}
.profile-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 26px; color: #f2e9e4; margin-bottom: 14px;
}

/* Profile cards */
.profile-cards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.profile-card {
  background: #e6d6d2; border: 2px solid #22223b;
  border-radius: 16px; padding: 10px 14px;
  display: flex; align-items: center; gap: 12px;
}
.profile-card-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.profile-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.profile-card-text { flex: 1; }
.profile-card-title {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 15px;
  color: #22223b; margin-bottom: 2px;
}
.profile-card-sub {
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 11px;
  color: #4a4e69;
}

/* Goals box */
.goals-box {
  background: rgba(34,34,59,0.7); border: 2px solid #e6d6d2;
  border-radius: 16px; padding: 14px 16px; margin-bottom: 14px;
}
.goals-box-title {
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 12px;
  color: #e6d6d2; margin-bottom: 10px; line-height: 1.5;
}
.goals-list { list-style: disc; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.goals-list li {
  font-family: 'Raleway', sans-serif; font-size: 12px; font-weight: 700;
  color: #e6d6d2; line-height: 1.5;
}

.profile-continue-btn {
  padding: 13px 28px;
  background: #22223b; border: none; border-radius: 28px;
  font-family: 'Raleway', sans-serif; font-weight: 600;
  font-size: 15px; color: #f2e9e4;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s; margin-top: auto; flex-shrink: 0; align-self: flex-end;
}
.profile-continue-btn:hover { background: #4a4e69; }
.profile-continue-btn svg { width: 15px; height: 15px; stroke: #f2e9e4; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* scrollbar hidden */
.page::-webkit-scrollbar, .q-inner::-webkit-scrollbar, .profile-inner::-webkit-scrollbar, .p14-inner::-webkit-scrollbar { display: none; }

/* ── Page 14 — Lesson Progress ── */
#page-14 { background: #9a8c98; }
.p14-inner {
  position: absolute; inset: 0;
  padding: 32px 24px 24px;
  display: flex; flex-direction: column;
  overflow-y: auto; -ms-overflow-style: none; scrollbar-width: none;
}
.p14-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 26px; color: #f2e9e4; margin-bottom: 8px;
}
.p14-subtitle {
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 12px;
  color: #e6d6d2; margin-bottom: 12px; line-height: 1.5;
}
.p14-progress-label {
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 11px;
  color: #f2e9e4; margin-bottom: 6px;
}
.p14-progress-bar {
  height: 7px; background: rgba(230,214,210,0.25); border-radius: 4px;
  margin-bottom: 18px; overflow: hidden;
}
.p14-progress-fill { height: 100%; background: #e6d6d2; border-radius: 4px; width: 0%; }
.p14-lessons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  flex: 1; margin-bottom: 16px; min-height: 0;
}
.p14-card {
  background: #e6d6d2; border-radius: 16px;
  padding: 12px 12px 14px;
  box-shadow: 0 3px 5px rgba(34,34,59,0.45);
  display: flex; flex-direction: column; justify-content: space-between;
}
.p14-muted { opacity: 0.65; }
.p14-card-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: #c9ada7;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 16px;
  color: #4a4e69; flex-shrink: 0;
}
.p14-card-title {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 18px;
  color: #22223b; line-height: 1.3; margin-top: 8px;
}
.p14-btn {
  background: #f2e9e4; border: none; border-radius: 28px;
  padding: 13px 20px;
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 13px;
  color: #22223b; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s; flex-shrink: 0;
}
.p14-btn:hover { background: #e6d6d2; }
.p14-btn svg { width: 14px; height: 14px; stroke: #22223b; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Page 28 — Lesson 1 Complete ── */
#page-28 { background: #9a8c98; }
.p28-card-done {
  background: #4a4e69 !important;
  position: relative;
}
.p28-card-num-done {
  background: rgba(230,214,210,0.25) !important;
  color: #e6d6d2 !important;
}
.p28-award-icon {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.p28-badge-wrap {
  position: relative;
  width: 120px; height: 120px;
  flex-shrink: 0;
}
.p28-badge-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
/* Portrait circle: Figma = 114px in 164px badge, offset 25px left / 8px top
   Scaled to 120px wrapper: 114/164*120=83px, 25/164*120=18px, 8/164*120=6px */
.p28-badge-portrait-clip {
  position: absolute;
  top: 6px;
  left: 18px;
  width: 83px;
  height: 83px;
  border-radius: 50%;
  overflow: hidden;
  background: #4a4e69;
}
.p28-badge-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p28-card-title-done { color: #e6d6d2 !important; }

/* ── Pages 30–31: Lesson 2 Q1 — smaller answer font to keep single-line height ── */
#page-30 .p16-answer,
#page-31 .p16-answer,
#page-32 .p16-answer,
#page-33 .p16-answer { font-size: 10.5px; }

/* ── Page 15: Lesson 1 Video Demonstration ── */
#page-15 { background: #f2e9e4; }
.p15-inner {
  position: absolute; inset: 0;
  padding: 28px 22px 20px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.p15-ring {
  position: absolute; top: 76px; right: 72px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid rgba(74,78,105,0.3);
  flex-shrink: 0;
}
.p15-lesson-label {
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 12px;
  color: #4a4e69; margin-bottom: 4px;
}
.p15-title {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 24px;
  color: #22223b; line-height: 1.45; margin-bottom: 10px;
}
.p15-underline {
  height: 3px; width: 120px; background: #22223b;
  border-radius: 10px; margin-bottom: 14px; flex-shrink: 0;
}
.p15-body {
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 11px;
  color: #22223b; line-height: 1.55; margin-bottom: 22px;
}
.p15-video {
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(34,34,59,0.55);
  height: 220px; flex-shrink: 0; margin-bottom: 16px;
  background: #22223b;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.p15-video-el {
  flex: 1; width: 100%; display: block;
  object-fit: cover;
  min-height: 0;
}
.p15-controls {
  background: #22223b;
  display: flex; align-items: center; justify-content: center;
  gap: 32px; padding: 8px 0; flex-shrink: 0;
}
.p15-ctrl-btn {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 4px; transition: opacity 0.15s;
}
.p15-ctrl-btn:hover { opacity: 0.7; }
.p15-nav { display: flex; justify-content: flex-end; flex-shrink: 0; margin-top: auto; }
.p15-continue-btn {
  background: #22223b; color: #f2e9e4;
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 14px;
  border: none; border-radius: 25px; padding: 12px 22px;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.p15-continue-btn:hover { background: #4a4e69; }

/* ── Page 16: Lesson 1 Q1 ── */
#page-16 { background: #f2e9e4; }
.p16-inner {
  position: absolute; inset: 0;
  padding: 34px 30px 20px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.p16-ring {
  position: absolute; top: 20px; right: 110px;
  width: 52px; height: 52px; pointer-events: none;
}
.p16-lesson-label {
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 12px;
  color: #4a4e69; margin-bottom: 5px;
}
.p16-underline {
  height: 3px; width: 130px; background: #22223b;
  border-radius: 10px; margin-bottom: 7px; flex-shrink: 0;
}
.p16-qnum-row {
  display: flex; align-items: center; gap: 28px;
  margin-bottom: 8px; flex-shrink: 0;
}
.p16-qnum-bullet {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 12px;
  color: #22223b; display: list-item; margin-left: 16px;
}
.p16-qnum-of {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 12px;
  color: #22223b;
}
.p16-question {
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 17px;
  color: #22223b; line-height: 1.3; margin-bottom: 10px; flex-shrink: 0;
}
.p16-images {
  display: flex; height: 196px;
  border: 2px solid #22223b; border-radius: 4px; overflow: hidden;
  margin-bottom: 10px; flex-shrink: 0;
}
.p16-img-left {
  width: 30%; flex-shrink: 0; overflow: hidden;
  border-right: 2px solid #22223b;
}
.p16-img-left img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p16-img-right { flex: 1; overflow: hidden; }
.p16-img-right img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p16-answers {
  display: flex; flex-direction: column; gap: 4px;
  flex-shrink: 0; margin-bottom: 8px;
}
.p16-answer {
  width: 100%; padding: 12px 16px;
  background: #e6d6d2; border: 2px solid #22223b;
  border-radius: 20px; cursor: pointer;
  font-family: 'Raleway', sans-serif; font-size: 12px; font-weight: 600;
  color: #22223b; text-align: left;
  transition: background 0.2s;
}
.p16-answer:hover { background: #d4c4bf; }
.p16-answer.selected { background: #c9ada7; border-color: #4a4e69; }
.p16-nav { display: flex; justify-content: flex-end; flex-shrink: 0; margin-top: auto; }
.p16-continue-btn {
  background: #22223b; color: #f2e9e4;
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 14px;
  border: none; border-radius: 25px; padding: 12px 22px;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.p16-continue-btn:disabled { background: #c9ada7; cursor: not-allowed; opacity: 0.6; }
.p16-continue-btn:hover:not(:disabled) { background: #4a4e69; }
.p16-continue-btn svg { width: 14px; height: 14px; stroke: #f2e9e4; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Page 16: Error bar ── */
.p16-error-bar {
  display: none;
  align-items: center; gap: 10px;
  background: #18182b;
  border-radius: 4px;
  padding: 10px 14px;
  flex-shrink: 0;
  margin-bottom: 8px;
}
.p16-error-bar.visible { display: flex; }
.p16-error-bar p {
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 11px;
  color: #ffffff; text-decoration: underline; line-height: 1.4;
}
.p16-error-bar svg { flex-shrink: 0; }

/* ── Page 17: Lesson 1 Q1 Correct Feedback ── */
#page-17 { background: #f2e9e4; }
.p17-correct {
  background: #9a8c98 !important;
  border-color: #4a4e69 !important;
  cursor: default;
}
.p17-correct:hover { background: #9a8c98 !important; }
.p17-feedback {
  flex-shrink: 0; margin-bottom: 8px;
  border-radius: 0; overflow: hidden;
}
.p17-feedback-header {
  background: #4a4e69; padding: 7px 12px;
  display: flex; align-items: center; gap: 8px;
}
.p17-feedback-title {
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 13px;
  color: #e6d6d2; flex: 1;
}
.p17-feedback-body {
  background: #9a8c98; padding: 10px 12px;
}
.p17-feedback-body p {
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 11px;
  color: #ffffff; line-height: 1.6;
}

/* ── Page 18: Hint overrides ── */
#page-18 { background: #f2e9e4; }
.p18-header { background: #22223b !important; }
.p18-body { background: #4a4e69 !important; }
.p18-body p { color: #ffffff !important; }

/* ── Page 19: Incorrect feedback ── */
#page-19 { background: #f2e9e4; }
.p19-answer { cursor: default; pointer-events: none; }
.p19-answer:hover { background: #e6d6d2 !important; }
.p19-correct { background: #c9ada7 !important; border-color: #22223b !important; }
.p19-wrong { background: #22223b !important; border-color: #9a8c98 !important; color: #e6d6d2 !important; }

/* ── Page 20: Q2 Fill in the Blank ── */
#page-20 { background: #f2e9e4; }
#page-21 { background: #f2e9e4; }
#page-22 { background: #f2e9e4; }
#page-23 { background: #f2e9e4; }
#page-24 { background: #f2e9e4; }
#page-25 { background: #f2e9e4; }
#page-26 { background: #f2e9e4; }
#page-27 { background: #f2e9e4; }

.p27-answer-display {
  width: 100%;
  box-sizing: border-box;
  min-height: 110px;
  background: #22223b;
  border: 2px solid #22223b;
  border-radius: 15px;
  padding: 12px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  color: #e6d6d2;
  margin-top: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.p25-answer-display {
  width: 100%;
  box-sizing: border-box;
  min-height: 110px;
  background: #9a8c98;
  border: 2px solid #22223b;
  border-radius: 15px;
  padding: 12px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  color: #22223b;
  margin-top: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.p24-question {
  font-size: 15px;
  line-height: 1.4;
}

.p24-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 110px;
  background: #e6d6d2;
  border: 2px solid #22223b;
  border-radius: 15px;
  padding: 12px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  color: #22223b;
  resize: none;
  margin-top: 14px;
  outline: none;
}

#page-24 .p17-feedback {
  margin-top: 0;
}

#page-24 .p16-error-bar {
  margin-top: 8px;
  margin-bottom: 0;
}

.p24-spacer {
  flex: 1;
  min-height: 120px;
}

.p25-spacer {
  flex: 1;
  min-height: 80px;
}
.p20-q-sub { font-size: 11px; font-weight: 600; color: #4a4e69; display: block; margin-top: 2px; }
.p20-fitb-box {
  background: rgba(154, 140, 152, 0.7);
  border: 2px solid #22223b;
  border-radius: 4px;
  padding: 18px 14px;
  flex-shrink: 0;
  margin-top: 14px;
  margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.p20-fitb-line {
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 12px;
  color: #22223b; display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.p20-blank {
  display: inline-block;
  min-width: 80px; height: 28px;
  background: #e6d6d2; border: 1px solid #22223b;
  border-radius: 2px;
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 12px;
  color: #22223b; text-align: center; line-height: 28px;
  padding: 0 6px;
}

/* ── Page 3: Enter Name — Figma redesign ── */
#page-3 {
  background: #f2e9e4;
}

.p3-body {
  position: absolute;
  top: 34%;
  left: 14%;
  right: 14%;
  display: flex;
  flex-direction: column;
}

.p3-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 28px;
  color: #22223b;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  margin-bottom: 12px;
}

.p3-subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #4a4e69;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 22px;
}

.p3-input {
  width: 100%;
  height: 44px;
  border: 2px solid #9a8c98;
  border-radius: 28px;
  background: rgba(230, 214, 210, 0.5);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #22223b;
  padding: 0 20px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.p3-input::placeholder {
  color: #9a8c98;
  font-weight: 600;
}

.p3-input:focus {
  border-color: #4a4e69;
  background: rgba(230, 214, 210, 0.65);
}

.p3-next-btn {
  position: absolute;
  bottom: 20px;
  right: 30px;
  width: 42px;
  height: 42px;
  background: #c9ada7;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.p3-next-btn:hover { background: #b89b95; transform: scale(1.05); }
.p3-next-btn:active { transform: scale(0.96); }

/* ── Page 3 error bar ── */
.p3-error-bar {
  display: none;
  position: absolute;
  left: 60px;
  right: 60px;
  top: 62%;
  height: 80px;
  background: #18182b;
  border-radius: 10px;
  align-items: center;
  padding: 0 18px;
  gap: 14px;
}
.p3-error-bar.visible {
  display: flex;
}
.p3-error-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.p3-error-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #ffffff;
  text-decoration: underline;
  line-height: 1.45;
  margin: 0;
}
