:root {
  --color-primary: #f28482;
  --color-secondary: #3d3d4d;
  --color-bg: #fdf8f1;
  --color-surface: #fff9f4;
  --color-muted: #776f6f;
  --color-ok: #35a86f;
  --color-border: #ead8cc;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(61, 61, 77, 0.08);
  --button-shape-svg: url("https://www.figma.com/api/mcp/asset/0d070b10-2417-4b65-b216-9c2ecf466181");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #fff7ef 0%, #fdf8f1 100%);
  color: var(--color-secondary);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 12px;
}

.phone-shell {
  width: min(100%, 420px);
  min-height: min(94vh, 900px);
  max-height: 96vh;
  background: var(--color-bg);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #f6e7da;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px 94px;
}

.hidden {
  display: none !important;
}

h1,
h2,
h3 {
  margin: 0 0 8px;
  line-height: 1.2;
  font-weight: 800;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.3rem;
}

h3 {
  font-size: 1rem;
}

p,
li,
small,
label {
  font-family: "Playfair Display", Georgia, serif;
  color: #141414;
}

p {
  margin: 8px 0;
}

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 14px;
  margin-top: 12px;
}

.home-figma {
  padding-top: 6px;
}

.home-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.home-title {
  max-width: 230px;
  font-size: 1.8rem;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0;
}

.home-date {
  margin-top: 8px;
  margin-bottom: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #222;
}

.home-profile-wrap {
  width: 116px;
  display: grid;
  justify-items: start;
  align-content: start;
}

.home-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #214ea6;
  justify-self: end;
}

.home-level {
  font-family: "Inter", sans-serif;
  margin: 8px 0 0;
  font-size: 0.94rem;
  line-height: 1.2;
  color: #111;
}

.home-goal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.mini-ring {
  --p: 80;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(#111 calc(var(--p) * 1%), #0000 0);
  display: grid;
  place-items: center;
}

.mini-ring::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  background: var(--color-bg);
  border-radius: 50%;
}

.mini-ring span {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}

.home-goal-label {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
}

.home-goal-target {
  margin: 2px 0 0;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}

.home-subhead {
  margin: 20px 0 10px;
  font-family: "Inter", sans-serif;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #121212;
}

.course-block {
  position: relative;
  width: 100%;
  min-height: 122px;
  margin-top: 14px;
  border: none;
  padding: 10px 12px;
}

.course-main {
  min-height: 211px;
  background: #e6a0a2;
}

.course-alt-1 {
  background: #f27a8d;
}

.course-alt-2 {
  background: #de5d76;
}

.course-title {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: #111;
}

.course-overlay-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: 0;
  opacity: 0;
  margin: 0;
}

.course-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: #9fa0a6;
}

.course-progress-track span {
  display: block;
  height: 100%;
  width: 38%;
  background: #67686f;
}

.logo {
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 10px auto 18px;
  background: radial-gradient(circle at 30% 30%, #ffd0cf 0, #f59f9d 65%, #ee7674 100%);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.35);
}

.btn,
button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-family: "Coming Soon", cursive;
  font-weight: 400;
  cursor: pointer;
}

button:not(.nav-btn):not(.onboard-signup-link):not(.onboard-back):not(.lesson-intro-back):not(.journal-back):not(.course-overlay-btn):not(.explore-category):not(.explore-view-all):not(.quiz-one-option) {
  background-color: #3f3b4b;
  background-image: var(--button-shape-svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  border-radius: 0;
  color: #fff;
}

.btn {
  width: 100%;
  margin-top: 10px;
}

.btn-primary {
  background: var(--color-secondary);
  color: #fff;
}

.btn-accent {
  background: var(--color-primary);
  color: #fff;
}

.btn-soft {
  background: #f9e2e1;
  color: var(--color-secondary);
}

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

/* Onboarding splash (Figma 18:8) */
.onboard-splash {
  padding: 0;
}

.onboard-frame {
  min-height: calc(100vh - 120px);
  border: 2px solid #111;
  padding: 112px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.onboard-title {
  width: 100%;
  max-width: 309px;
  font-family: "Inter", sans-serif;
  font-size: 32px;
  line-height: 38px;
  font-weight: 500;
  letter-spacing: -0.3125px;
  margin: 0;
}

.onboard-title-line {
  width: 100%;
  max-width: 309px;
  height: 2px;
  background: #111;
  margin: 10px 0 46px;
}

.onboard-subtitle {
  width: 100%;
  max-width: 286px;
  text-align: right;
  font-family: "Inter", sans-serif;
  font-size: 32px;
  line-height: 38px;
  font-weight: 500;
  letter-spacing: -0.3125px;
  margin: 0 0 92px;
}

.onboard-cookie {
  width: 210px;
  height: 205px;
  object-fit: cover;
  margin: 0 0 44px;
}

.onboard-login-btn {
  width: 219px;
  height: 62px;
  border-radius: 0;
  margin-top: 0;
  background: #3f3b4b;
  color: #fff;
  font-family: "Coming Soon", cursive;
  font-size: 24px;
  font-weight: 400;
  line-height: 38px;
  letter-spacing: -0.3125px;
}

.onboard-signup-copy {
  margin: 20px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 38px;
  letter-spacing: -0.3125px;
  color: #737373;
  display: flex;
  align-items: center;
  gap: 4px;
}

.onboard-signup-link {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  border-radius: 6px;
}

.onboard-frame-2 {
  align-items: stretch;
  padding-top: 22px;
}

.onboard-back {
  border: 0;
  background: transparent;
  color: #111;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 500;
  padding: 0;
  width: fit-content;
  border-radius: 8px;
  margin-left: 2px;
}

.onboard-title-2 {
  margin: 78px 0 0;
  max-width: 260px;
  font-size: 3.05rem;
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.onboard-frame-2 .onboard-title-line {
  max-width: 309px;
  margin: 12px 0 0;
}

.onboard-body-2 {
  margin: 136px 0 0;
  max-width: 330px;
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.onboard-continue-btn {
  margin: auto auto 98px;
}

.onboard-frame-3 {
  align-items: stretch;
  padding-top: 33px;
}

.onboard-title-3 {
  margin: 84px 0 0;
  max-width: 300px;
  font-size: 2.95rem;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.onboard-frame-3 .onboard-title-line {
  max-width: 309px;
  margin: 18px 0 0;
}

.onboard-body-3 {
  margin: 42px 0 0;
  max-width: 330px;
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.onboard-continue-btn-3 {
  margin-bottom: 82px;
}

.onboard-blank {
  min-height: calc(100vh - 120px);
  background: #fffaf2;
}

.onboard-frame-4 {
  align-items: stretch;
  padding-top: 22px;
}

.onboard-title-4 {
  margin: 94px 0 14px;
  font-size: 2.9rem;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.onboard-title-4b {
  margin-top: 74px;
}

.onboard-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.onboard-pill {
  width: 251px;
  height: 43px;
  border: 0;
  border-radius: 22px;
  margin: 0 auto;
  font-family: "coming soon";
  font-size: 2.8rem;
  line-height: 1;
  color: #111;
  background: #f2a9a9;
}

.onboard-pill.level-2,
.onboard-pill.goal-2 {
  background: #ff8695;
}

.onboard-pill.level-3,
.onboard-pill.goal-3 {
  background: #e66076;
}

.onboard-pill.active {
  outline: 2px solid #2f2b3a;
  outline-offset: 1px;
}

.onboard-next-btn {
  margin: auto auto 92px;
}

/* Lesson intro (Figma 18:27) */
.lesson-intro {
  padding: 0;
}

.lesson-intro-frame {
  min-height: calc(100vh - 120px);
  border: 2px solid #111;
  padding: 22px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lesson-intro-back {
  border: 0;
  background: transparent;
  color: #111;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 500;
  padding: 0;
  border-radius: 8px;
  width: fit-content;
  align-self: flex-start;
  margin-left: 8px;
}

.lesson-intro-title {
  width: 100%;
  max-width: 309px;
  margin: 48px 0 0;
  font-size: 3.05rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.lesson-intro-line {
  width: 100%;
  max-width: 309px;
  height: 2px;
  background: #111;
  margin: 20px 0 10px;
}

.lesson-intro-level {
  width: 100%;
  max-width: 309px;
  margin: 0;
  text-align: right;
  font-family: "Inter", sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 200;
  color: #383838;
}

.lesson-intro-image {
  width: 210px;
  height: 205px;
  object-fit: cover;
  margin-top: 186px;
}

.lesson-start-btn {
  width: 219px;
  height: 62px;
  border-radius: 30px;
  margin-top: 108px;
  background: #3f3b4b;
  color: #fff;
  font-family: "Coming soon";
  font-size: 2.05rem;
  font-weight: 400;
  line-height: 1;
}

/* Lesson prep (Figma 18:29) */
.lesson-prep {
  padding: 0;
}

.lesson-prep-frame {
  min-height: calc(100vh - 120px);
  border: 2px solid #111;
  padding: 52px 18px 18px;
}

.lesson-prep-title {
  margin: 0 0 28px 14px;
  font-family: "Inter", sans-serif;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.1;
}

.lesson-prep-card {
  width: 302px;
  margin: 0 auto 12px;
  border: 1px solid #111;
  color: #120d37;
}

.lesson-prep-definition {
  background: #f2a9a9;
  padding: 16px 12px;
}

.lesson-prep-definition p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 1.42rem;
  line-height: 1.5;
  color: #120d37;
}

.lesson-prep-definition p + p {
  margin-top: 18px;
}

.lesson-prep-compatibility {
  background: #ff869f;
  padding: 8px 0 10px;
}

.lesson-prep-compatibility h3,
.lesson-prep-materials h3 {
  margin: 0;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.lesson-prep-columns {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.lesson-prep-columns > div {
  padding: 0 14px;
}

.lesson-prep-columns > div + div {
  border-left: 1px solid #111;
}

.lesson-prep-columns h4 {
  margin: 0 0 8px;
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

.lesson-prep-columns ul,
.lesson-prep-materials ul {
  margin: 0;
  padding-left: 18px;
}

.lesson-prep-columns li,
.lesson-prep-materials li {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #111;
}

.lesson-prep-materials {
  background: #e66076;
  padding: 10px 14px 8px;
  margin-bottom: 24px;
}

.lesson-prep-actions {
  width: 302px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.lesson-mini-btn {
  height: 39px;
  border-radius: 20px;
  font-family: "Comic Sans MS", "Marker Felt", cursive;
  font-size: 1.1rem;
  padding: 0;
  margin: 0;
}

.lesson-back-btn {
  background: #b5b5b5;
  color: #111;
}

.lesson-next-btn {
  background: #3f3b4b;
  color: #fff;
}

/* Lesson overview video (Figma 18:31) */
.lesson-overview {
  padding: 0;
}

.lesson-overview-frame {
  min-height: calc(100vh - 120px);
  border: 2px solid #111;
  padding: 54px 18px 18px;
}

.lesson-overview-title {
  margin: 0 0 38px 14px;
  font-family: "Inter", sans-serif;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.1;
}

.lesson-video-wrap {
  width: 284px;
  height: 228px;
  margin: 0 auto 76px;
  background: #d9d9d9;
}

.lesson-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lesson-steps-card {
  width: 302px;
  margin: 0 auto 92px;
  border: 1.664px solid #99a1af;
  background: #e66076;
  color: #fff;
  padding: 16px 16px 14px;
}

.lesson-steps-label {
  margin: 0 0 6px;
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #fff;
}

.lesson-steps-card ol {
  margin: 0;
  padding-left: 20px;
}

.lesson-steps-card li {
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  line-height: 1.55;
  color: #fff;
}

.lesson-overview-actions {
  width: 302px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Lesson step 1 (Figma 18:37) */
.lesson-step-one {
  padding: 0;
}

.lesson-step-frame {
  min-height: calc(100vh - 120px);
  border: 2px solid #111;
  padding: 42px 18px 18px;
}

.lesson-step-label {
  margin: 0 0 8px 16px;
  font-family: "Inter", sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.lesson-step-title {
  margin: 0 0 26px 16px;
  font-family: "Inter", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
}

.lesson-step-photo {
  width: 272px;
  height: 202px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.lesson-step-text {
  width: 271px;
  margin: 14px auto 30px;
  font-family: "Inter", sans-serif;
  font-size: 1.7rem;
  line-height: 1.15;
}

.lesson-step-tip {
  width: 293px;
  margin: 12px auto 22px;
  border: 1px solid #111;
  background: #f2a9a9;
  padding: 10px 8px;
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  line-height: 1.2;
  color: #111;
}

.lesson-step-actions {
  width: 302px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.lesson-step-two .lesson-step-text {
  margin-bottom: 22px;
}

.lesson-step-two .lesson-step-tip {
  width: 281px;
  margin-top: 8px;
  margin-bottom: 18px;
}

.lesson-next-practice {
  font-size: 0.9rem;
}

.lesson-step-three .lesson-step-text {
  margin-bottom: 22px;
}

.lesson-step-three .lesson-step-tip {
  width: 260px;
  margin-top: 8px;
  margin-bottom: 18px;
}

.lesson-step-four .lesson-step-text {
  margin-bottom: 18px;
}

.lesson-step-four .lesson-step-text-small {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.lesson-step-four .lesson-step-tip-final {
  width: 260px;
  font-size: 1.1rem;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 18px;
  padding: 10px 12px;
}

/* Lesson practice prompt (Figma 5:764) */
.lesson-practice {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.lesson-practice-modal {
  width: 100%;
  max-width: 361px;
  border: 1.664px solid #111;
  background: #fffaf2;
}

.lesson-practice-head {
  height: 58px;
  border-bottom: 1.664px solid #111;
  background: #e66076;
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.lesson-practice-body {
  padding: 24px;
}

.lesson-practice-card {
  border: 1.664px solid #111;
  background: #f2a9a9;
  padding: 18px;
}

.lesson-practice-card p {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: #111;
}

.lesson-practice-card p:first-child {
  font-size: 1.3rem;
  line-height: 1.5;
}

.lesson-practice-card p + p {
  margin-top: 16px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.lesson-practice-actions {
  margin-top: 24px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.lesson-practice-btn {
  width: 190px;
  height: 62px;
  border: 0;
  border-radius: 30px;
  background: #3f3b4b;
  color: #fff;
  font-family: "Comic Sans MS", "Marker Felt", cursive;
  font-size: 1.7rem;
  line-height: 1;
  padding: 0;
}

/* Quiz screen 1 (Figma 5:602) */
.quiz-one {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.quiz-one-frame {
  width: 100%;
  max-width: 361px;
  border: 1.664px solid #111;
  background: #fffaf2;
}

.quiz-one-head {
  height: 82px;
  border-bottom: 1.664px solid #111;
  background: #e66076;
  padding: 14px 16px 8px;
}

.quiz-one-head h2 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.quiz-one-head p {
  margin: 4px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  color: #530000;
}

.quiz-one-body {
  padding: 24px;
}

.quiz-one-question {
  border: 1.664px solid #111;
  background: #ff8695;
  padding: 14px 16px;
  font-family: "Inter", sans-serif;
  font-size: 1.45rem;
  line-height: 1.4;
  margin-bottom: 16px;
}

.quiz-one-options {
  display: grid;
  gap: 12px;
}

.quiz-one-option {
  width: 100%;
  border: 1.664px solid #111;
  border-radius: 0;
  background: #f2a9a9;
  text-align: left;
  padding: 14px 16px;
  font-family: "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.35;
  color: #111;
}

.quiz-one-option.selected {
  background: #ea7689;
}

.quiz-one-progress {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.quiz-one-progress span {
  height: 8px;
  border: 0.555px solid #d1d5dc;
  background: #fff;
}

.quiz-one-progress span.active {
  background: #d1d5dc;
  border-color: #99a1af;
}

/* Quiz screen 2 tweaks (Figma 5:627) */
.quiz-two .quiz-one-question {
  min-height: 59px;
}

.quiz-two-progress span.done {
  background: #000;
  border-color: #000;
}

.quiz-two-progress span:last-child {
  background: #000;
  border-color: #d1d5dc;
}

/* Quiz screen 3 tweaks (Figma 5:652) */
.quiz-three .quiz-one-question {
  min-height: 83px;
}

.quiz-three .quiz-one-option {
  white-space: normal;
}

.quiz-three-progress span.done {
  background: #000;
  border-color: #000;
}

/* Quiz results (Figma 5:677) */
.quiz-results-page {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 10px;
}

.quiz-results-frame {
  width: 100%;
  max-width: 362px;
  border: 1.664px solid #111;
  background: #fffaf2;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 140px);
}

.quiz-results-head {
  height: 58px;
  background: #e66076;
  border-bottom: 1.664px solid #111;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-family: "Inter", sans-serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.quiz-results-scroll {
  padding: 16px;
  overflow-y: auto;
}

.quiz-results-card {
  border: 1.664px solid #111;
  background: #f2a9a9;
  padding: 12px;
  margin-bottom: 12px;
}

.quiz-results-score {
  background: #e66076;
}

.quiz-results-score p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
}

.quiz-results-score h3 {
  margin: 6px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 1.9rem;
  font-weight: 400;
}

.quiz-results-feedback p,
.quiz-results-review-card p,
.quiz-results-cert {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 1.12rem;
  line-height: 1.35;
}

.quiz-results-mini-title {
  font-size: 0.92rem !important;
  margin-bottom: 4px !important;
}

.quiz-results-section-title {
  margin: 6px 0 8px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

.quiz-results-question {
  margin-bottom: 6px !important;
}

.quiz-results-answer {
  margin-bottom: 6px !important;
}

.quiz-results-divider {
  border-top: 1.755px solid #99a1af;
  margin: 8px 0 10px;
}

.quiz-results-checklist {
  display: grid;
  gap: 8px;
}

.quiz-results-check-item {
  border: 1.755px solid #111;
  background: #f2a9a9;
  padding: 10px;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.25;
}

.quiz-results-check-box {
  width: 16px;
  height: 16px;
  background: #000;
  border: 1.755px solid #000;
  margin-top: 2px;
}

.quiz-results-cert {
  background: #ff8695;
}

.quiz-results-footer {
  border-top: 1.664px solid #111;
  padding: 14px 16px;
  display: flex;
  justify-content: center;
}

.quiz-results-cta {
  width: 190px;
  height: 62px;
  border: 0;
  border-radius: 30px;
  background: #3f3b4b;
  color: #fff;
  font-family: "Comic Sans MS", "Marker Felt", cursive;
  font-size: 1.35rem;
  line-height: 1;
}

/* Lesson complete screen (Figma 5:565) */
.lesson-complete-page {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.lesson-complete-frame {
  width: 100%;
  max-width: 361px;
  border: 1.755px solid #111;
  background: #fffaf2;
  padding: 24px;
}

.lesson-complete-head {
  border-bottom: 1.755px solid #111;
  padding-bottom: 14px;
  margin-bottom: 24px;
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  color: #0a0a0a;
}

.lesson-complete-card {
  border: 1.755px solid #111;
  background: #ff8695;
  padding: 16px;
  margin-bottom: 22px;
}

.lesson-complete-card p,
.lesson-complete-card li {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: #0a0a0a;
}

.lesson-complete-congrats p:first-child {
  font-size: 1.75rem;
  line-height: 1.25;
}

.lesson-complete-congrats p + p {
  margin-top: 12px;
  font-size: 1.45rem;
  line-height: 1.35;
}

.lesson-complete-mini-title {
  font-size: 1rem;
  color: #4a5565 !important;
  margin-bottom: 8px !important;
}

.lesson-complete-skills ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}

.lesson-complete-skills li {
  font-size: 1.45rem;
  line-height: 1.35;
}

.lesson-complete-actions {
  margin-top: 8px;
  display: grid;
  justify-items: center;
  gap: 20px;
}

.lesson-complete-btn {
  width: 190px;
  height: 62px;
  border: 0;
  border-radius: 30px;
  background: #3f3b4b;
  color: #fff;
  font-family: "Comic Sans MS", "Marker Felt", cursive;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
  padding: 0;
}

.row {
  display: flex;
  gap: 10px;
}

.row > * {
  flex: 1;
}

.input,
.search-input {
  width: 100%;
  border: 1px solid #f1cccb;
  background: #fff0ef;
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--color-secondary);
}

.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.chip {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  background: #fff;
}

.chip.active {
  border-color: transparent;
  background: var(--color-primary);
  color: #fff;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ring {
  --p: 45;
  width: 84px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--color-primary) calc(var(--p) * 1%), #f0e4de 0);
  display: grid;
  place-items: center;
}

.ring::before {
  content: "";
  width: 62px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-surface);
  position: absolute;
}

.ring > span {
  font-weight: 800;
  font-size: 0.95rem;
  z-index: 1;
}

.lesson-card {
  border-radius: var(--radius-xl);
  padding: 14px;
  margin-top: 10px;
  border: 1px solid #f0dbd0;
  background: linear-gradient(140deg, #fff6f5, #ffefee);
}

.lesson-card h3 {
  margin-bottom: 4px;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--color-secondary);
}

.step-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.placeholder-img {
  height: 90px;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(
    -45deg,
    #f7d5d4 0,
    #f7d5d4 10px,
    #fce9e8 10px,
    #fce9e8 20px
  );
  border: 1px solid #f2c7c6;
}

.tip {
  margin-top: 10px;
  border-left: 4px solid var(--color-primary);
  padding: 8px 10px;
  background: #fff0ef;
  border-radius: 0 12px 12px 0;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #f0e4de;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 2px;
}

.progress-bar > span {
  display: block;
  height: 100%;
  background: var(--color-primary);
}

.option {
  margin-top: 10px;
  width: 100%;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid #f0d9d0;
  padding: 12px;
  background: #fff;
}

.option.selected {
  background: #ffd8d7;
  border-color: #f0aead;
}

.option.correct {
  border-color: #35a86f;
  background: #e9f7ef;
}

.option.wrong {
  border-color: #dc5f5f;
  background: #ffe8e8;
}

.journal-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: center;
}

.journal-thumb {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  border: 1px solid #efd3c6;
  background: linear-gradient(130deg, #fdd9d8, #fbeee3);
}

.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #efdfd5;
  background: #fffaf5;
  padding: 8px;
}

.nav-btn {
  border-radius: 12px;
  padding: 10px 6px;
  background: transparent;
  color: #6d6670;
  font-size: 12px;
  border: none;
}

.nav-btn.active {
  background: #ffe5e4;
  color: var(--color-secondary);
  font-weight: 800;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.checklist li {
  margin: 8px 0;
}

@media (max-width: 370px) {
  .screen {
    padding-inline: 14px;
  }

  h1 {
    font-size: 1.45rem;
  }
}

/* Final home+nav overrides (Figma node 18:16) */
.bottom-nav {
  border-top: 2px solid #2a1830;
  padding: 8px;
}

.nav-btn {
  color: #4f1247;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 8px 6px;
}

.nav-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.nav-btn.active {
  color: #2d0b2c;
}

.home-title {
  font-size: 2.8rem;
  line-height: 1.04;
}

.home-subhead {
  font-size: 2.15rem;
  line-height: 1.12;
  font-family: "Inter", sans-serif;
}

.home-date,
.home-level,
.home-goal-label,
.home-goal-target,
.course-title {
  font-family: "Inter", sans-serif;
}

@media (max-width: 370px) {
  .home-title {
    font-size: 2.35rem;
  }

  .home-subhead {
    font-size: 1.9rem;
  }
}

/* Explore page */
.explore-page {
  padding-top: 4px;
}

.explore-title {
  font-size: 2rem;
  line-height: 1.05;
  margin-bottom: 14px;
}

.explore-search {
  height: 24px;
  background: #f2a9a9;
  width: min(100%, 255px);
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0;
}

.explore-search-icon {
  font-size: 0.95rem;
  color: #737373;
  line-height: 1;
}

.explore-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-style: italic;
  text-align: center;
  color: #737373;
  font-size: 0.88rem;
  padding: 0 8px;
}

.explore-section-title {
  font-size: 0.96rem;
  font-weight: 500;
  margin: 0 0 12px;
}

.explore-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.explore-category {
  height: 62px;
  border: 0;
  border-radius: 8px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #111;
  font-family: "Inter", sans-serif;
}

.explore-category-icon {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}

.explore-category-label {
  font-size: 0.56rem;
  line-height: 1;
}

.category-materials { background: #f1b2e1; }
.category-styles { background: #aeedf1; }
.category-difficulty { background: #a2e6af; }
.category-time { background: #f1dd7b; }

.explore-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.explore-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.explore-section-head h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
}

.explore-view-all {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: #6f6f6f;
}

.explore-course-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.explore-course-row {
  display: grid;
  grid-template-columns: 109px 1fr;
  gap: 14px;
  align-items: start;
}

.explore-course-thumb {
  width: 109px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: #ddd;
}

.explore-course-copy h4 {
  margin: 0 0 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.83rem;
  line-height: 1.2;
  font-weight: 500;
}

.explore-course-copy p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.63rem;
  line-height: 1.35;
  color: #808080;
}

@media (max-width: 370px) {
  .explore-category-grid {
    gap: 10px;
  }

  .explore-category {
    height: 58px;
  }

  .explore-course-row {
    grid-template-columns: 102px 1fr;
  }

  .explore-course-thumb {
    width: 102px;
    height: 74px;
  }
}

/* Journal two-view flow */
.journal-page {
  position: relative;
  padding-top: 6px;
  padding-bottom: 70px;
}

.journal-grid-title {
  width: 210px;
  font-size: 2.2rem;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
}

.journal-grid-subtitle {
  margin: 10px 0 18px;
  font-family: "Comic Sans MS", "Marker Felt", cursive;
  font-size: 0.95rem;
  line-height: 1.35;
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 24px;
}

.journal-tile {
  border: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  width: 100%;
  height: 177px;
}

.journal-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.journal-grid-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 24px;
  margin-top: 6px;
}

.journal-grid-meta-item {
  text-align: center;
}

.journal-grid-meta-item p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 300;
}

.journal-tile:nth-child(5) {
  height: 140px;
}

.journal-tile:nth-child(6) {
  height: 129px;
}

.journal-add {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ff9587;
  color: #111;
  font-family: "Inter", sans-serif;
  font-size: 3rem;
  line-height: 1;
  font-weight: 300;
  padding: 0;
}

.journal-detail-page {
  padding-top: 6px;
}

.journal-detail-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 16px;
}

.journal-detail-head h1 {
  text-align: center;
  margin: 0;
  font-size: 2rem;
}

.journal-back {
  border: 0;
  background: transparent;
  font-size: 2rem;
  font-weight: 500;
  color: #111;
  padding: 0;
}

.journal-detail-image {
  display: block;
  width: min(100%, 181px);
  height: 222px;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.journal-detail-date {
  margin: 16px 0 18px;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.3;
}

.journal-detail-lines {
  margin-top: 6px;
}

.journal-detail-lines p {
  min-height: 62px;
  margin: 0;
  border-bottom: 1px solid #8d8d8d;
  font-family: "Comic Sans MS", "Marker Felt", cursive;
  font-size: 1.65rem;
  line-height: 1.15;
  color: #111;
  padding: 10px 0 6px;
}

@media (max-width: 370px) {
  .journal-grid-title {
    font-size: 2rem;
  }

  .journal-tile {
    height: 162px;
  }

  .journal-grid-meta-item p,
  .journal-detail-date {
    font-size: 0.94rem;
  }

  .journal-detail-head h1 {
    font-size: 1.75rem;
  }

  .journal-detail-lines p {
    font-size: 1.45rem;
  }
}
