:root {
  --pink: #fd3297;
  --pink-strong: #f20879;
  --pink-dark: #c80060;
  --pink-light: #fedaec;
  --panel: #fff4fb;
  --white: #ffffff;
  --soft-bg: #efefef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ffeef7 0%, #ffffff 100%);
  font-family: "Manjari", sans-serif;
  color: var(--pink-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px 10px;
}

#app {
  width: 100%;
  max-width: 402px;
}

.screen {
  width: 100%;
  min-height: 874px;
  background: var(--pink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.display {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero {
  padding: 76px 24px 24px;
  color: var(--white);
}

.welcome-intro {
  margin: 0 0 14px;
  max-width: 332px;
  color: #ffffff;
  font-family: "Manjari", sans-serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.hero .title {
  font-size: 60px;
  max-width: 332px;
}

.wave {
  width: 100%;
  height: 84px;
  display: block;
  flex: 0 0 auto;
  background: linear-gradient(170deg, var(--wave-top) 49.7%, var(--wave-bottom) 50.3%);
}

.loading-screen {
  background: var(--pink);
  min-height: 964px;
  justify-content: center;
  align-items: center;
}

.loading-content {
  position: relative;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
}

.loading-star {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 82px;
  line-height: 1;
  z-index: 1;
}

.loading-ring {
  position: absolute;
  top: 46.5%;
  left: 50%;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 9px solid rgba(255, 255, 255, 0.24);
  border-top-color: #ffffff;
  animation: loading-spin 0.55s linear infinite;
}

.loading-label {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  text-align: center;
  color: #ffffff;
  font-family: "Manjari", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

@keyframes loading-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.section-soft {
  background: var(--pink-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.section-white {
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.section-white.center {
  align-items: center;
}

.card {
  background: var(--panel);
  border-radius: 30px;
  padding: 22px;
  position: relative;
}

.demo-video-card {
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 1062 / 597;
  background: #1e1e1e;
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-video-launch {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.demo-video-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 0, 0, 0.88);
  transform: translate(-50%, -50%);
}

.demo-play-icon::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #ffffff;
}

.card .star {
  position: absolute;
  font-size: 40px;
  color: var(--pink);
  line-height: 1;
}

.card .star.top {
  top: 20px;
  left: 28px;
  transform: rotate(-10deg);
}

.card .star.bottom {
  bottom: 20px;
  right: 28px;
  transform: rotate(9deg);
}

.chat-copy {
  padding-top: 52px;
  font-size: 22px;
  line-height: 1.18;
  color: var(--pink-dark);
  font-weight: 700;
}

.chat-copy p {
  margin: 0 0 10px;
}

.h2 {
  margin: 0;
  font-size: 56px;
  color: var(--pink-dark);
}

.h2.small {
  font-size: 44px;
}

.h3 {
  margin: 0;
  font-size: 34px;
  color: var(--pink-dark);
}

.subhead {
  margin: 0;
  font-size: 25px;
  color: var(--pink-strong);
}

.question-copy {
  font-size: 30px;
  line-height: 1.16;
}

.progress {
  height: 18px;
  border-radius: 25px;
  background: #ffdef2;
  width: 100%;
  overflow: hidden;
}

.progress.white {
  background: #ffffff;
}

.progress .fill {
  height: 100%;
  background: var(--pink-strong);
  border-radius: inherit;
  min-width: 18px;
}

.stack {
  display: grid;
  gap: 12px;
}

.pill {
  height: 56px;
  border-radius: 40px;
  border: 1.5px solid var(--pink-strong);
  background: transparent;
  color: var(--pink-dark);
  font-size: 23px;
  line-height: 1;
  font-family: "Manjari", sans-serif;
  cursor: pointer;
}

.pill,
.cta,
.nav-btn,
.quiz-btn,
.practice-check {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
  will-change: transform;
}

.pill:focus-visible,
.cta:focus-visible,
.nav-btn:focus-visible,
.quiz-btn:focus-visible {
  outline: 2px solid var(--pink-dark);
  outline-offset: 2px;
}

.pill.active {
  background: var(--pink);
  color: #ffffff;
  border-color: #c80060;
}

.pill:hover {
  background: var(--pink);
  color: #ffffff;
  border-color: #c80060;
  transform: translateY(-2px) scale(1.01);
}

.pill.active:hover {
  background: var(--pink);
  border-color: #c80060;
}

.cta {
  border: none;
  border-radius: 50px;
  background: var(--pink);
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-size: 31px;
  font-weight: 600;
  padding: 8px 30px;
  cursor: pointer;
}

.cta.large {
  width: 310px;
  height: 57px;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  margin: 0 auto;
}

.right {
  display: flex;
  justify-content: flex-end;
}

.between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.bottom-actions {
  margin-top: auto;
  padding-top: 24px;
}

.nav-btn {
  width: 126px;
  height: 44px;
  border-radius: 999px;
  border: none;
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.nav-btn.prev {
  background: #ffffff;
  color: var(--pink-strong);
  border: 1.5px solid var(--pink-strong);
}

.nav-btn.prev.soft {
  background: #ffffff;
  color: var(--pink-strong);
  border: 1.5px solid var(--pink-strong);
}

.nav-btn.next {
  background: var(--pink);
  color: #fff;
}

.nav-btn.solo {
  width: 126px;
}

.nav-btn.next.wide {
  width: 170px;
  font-size: 16px;
}

.nav-btn.prev:hover {
  background: var(--pink);
  color: #ffffff;
  transform: translateY(-2px) scale(1.01);
}

.nav-btn.next:hover {
  background: #c80060;
  color: #ffffff;
  transform: translateY(-2px) scale(1.01);
}

.cta:hover {
  background: #c80060;
  color: #ffffff;
  transform: translateY(-2px) scale(1.01);
}

.spacer-24 {
  height: 24px;
}

.spacer-36 {
  height: 36px;
}

.text {
  font-size: 33px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
}

.text.regular {
  font-weight: 400;
}

.bullets {
  margin: 0;
  padding-left: 28px;
  display: grid;
  gap: 8px;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 700;
}

.badge-list {
  display: grid;
  gap: 24px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 36px;
  line-height: 1.15;
}

.quiz-intro-copy {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.quiz-metric {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.quiz-fail-copy {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  max-width: 320px;
  margin: 0;
}

.quiz-retry-hero {
  background: var(--pink);
  color: #ffffff;
  padding: 60px 24px 24px;
}

.quiz-retry-title {
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
  max-width: 332px;
  color: #ffffff;
}

.quiz-retry-score {
  margin: 16px 0 0;
  font-family: "Manjari", sans-serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
}

.quiz-retry-body {
  background: #fedaec;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quiz-retry-next {
  margin: 0;
  color: #c80060;
  font-family: "Manjari", sans-serif;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.quiz-retry-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 26px;
}

.quiz-retry-list li {
  position: relative;
  padding-left: 34px;
  color: #c80060;
  font-family: "Manjari", sans-serif;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 700;
}

.quiz-retry-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  font-family: "Fredoka", sans-serif;
  color: #f20879;
  font-size: 22px;
  line-height: 1;
}

.quiz-retry-footer {
  background: #ffffff;
  padding-top: 24px;
  padding-bottom: 36px;
}

.badge-star {
  color: var(--pink);
  font-size: 36px;
  line-height: 1;
}

.instruction-grid {
  display: grid;
  gap: 10px;
}

.instruction-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
}

.instruction-row .text,
.instruction-row .practice-instruction {
  font-size: 22px;
  line-height: 1.16;
}

.num-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink-strong);
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.quiz-actions {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.quiz-btn {
  width: 126px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--pink-dark);
  background: #ffffff;
  color: var(--pink-dark);
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

.quiz-btn.active {
  background: var(--pink);
  color: #ffffff;
  border-color: #c80060;
  transform: translateY(-2px) scale(1.01);
}

.quiz-btn:hover {
  background: var(--pink);
  color: #ffffff;
  border-color: #c80060;
  transform: translateY(-2px) scale(1.01);
}

.photo-wrap {
  border-radius: 46px;
  overflow: hidden;
  height: 257px;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.practice-step-image {
  object-fit: cover;
  object-position: center;
  background: #f5f1ee;
}

.center {
  text-align: center;
}

.phase-list {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.phase-item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.check {
  font-size: 24px;
  color: var(--pink-strong);
  line-height: 1;
  margin-top: 2px;
}

.phase-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.18;
}

.phase-copy {
  font-size: 18px;
  margin: 2px 0 0;
  line-height: 1.2;
}

.congrats-hero {
  padding-top: 42px;
  padding-bottom: 18px;
  text-align: center;
  align-items: center;
}

.congrats-star {
  font-size: 86px;
  line-height: 1;
}

.congrats-hero .title.congrats-title {
  font-size: 35px;
  line-height: 1.12;
  margin-top: 8px;
  max-width: 332px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.congrats-body {
  align-items: center;
  text-align: left;
}

.congrats-intro {
  font-size: 20px;
  line-height: 1.2;
  max-width: 293px;
  margin: 0;
}

.demo-subheading {
  font-size: 25px;
  line-height: 1.2;
}

.phase-item > div {
  text-align: left;
}

.tall {
  min-height: 566px;
}

.grow {
  flex: 1;
}

.practice-photo-placeholder {
  background: var(--panel);
  display: grid;
  align-content: center;
  justify-items: center;
  color: #ff66b5;
  gap: 6px;
}

.practice-photo-frame {
  width: 46px;
  height: 46px;
  border: 2px solid #f8add7;
  border-radius: 4px;
}

.practice-photo-label {
  margin: 0;
  font-family: "Manjari", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.practice-photo-note {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f08dc5;
}

.practice-instruction-grid {
  gap: 12px;
}

.practice-instruction {
  margin: 0;
  color: var(--pink-dark);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.tip-jenn-card {
  min-height: 240px;
}

.tip-copy {
  padding-top: 52px;
}

.practice-check {
  border: 1.5px solid var(--pink-strong);
  border-radius: 24px;
  background: var(--panel);
  color: var(--pink-strong);
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 12px 16px;
  cursor: pointer;
  width: 100%;
}

.practice-check-main {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
}

.practice-check-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--pink-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  line-height: 1;
}

.practice-check-copy {
  display: grid;
  gap: 0;
}

.practice-check strong {
  font-family: "Fredoka", sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.16;
  color: #c8004d;
}

.practice-check.active {
  background: var(--pink);
  border-color: #c80060;
  transform: translateY(-2px) scale(1.01);
}

.practice-check.active .practice-check-mark {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.practice-check.active .practice-check-copy strong {
  color: #ffffff;
}

.practice-check:hover {
  background: var(--pink);
  border-color: #c80060;
  transform: translateY(-2px) scale(1.01);
}

.practice-check:hover .practice-check-copy strong {
  color: #ffffff;
}

.practice-check:hover .practice-check-mark {
  border-color: #ffffff;
  color: #ffffff;
}

.practice-check + .between.bottom-actions {
  padding-top: 38px;
}

.nav-placeholder {
  width: 126px;
  height: 44px;
}

.nav-btn.is-disabled,
.nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  filter: saturate(0.55);
  transform: none !important;
  box-shadow: none !important;
}

.nav-btn.is-disabled:hover,
.nav-btn:disabled:hover {
  background: var(--pink);
  color: #ffffff;
  border-color: #c80060;
  transform: none !important;
}

.certificate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 120;
}

.certificate-modal {
  width: 100%;
  max-width: 402px;
  position: relative;
}

.certificate-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 74px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #c8004d;
  color: #ffffff;
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 0 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 8px 22px rgba(40, 0, 20, 0.2);
}

.certificate-card {
  min-height: min(874px, calc(100vh - 28px));
  background: var(--pink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0;
}

.certificate-band-top {
  height: 133px;
  background: linear-gradient(168deg, var(--pink) 61%, #ffffff 61.7%);
  flex-shrink: 0;
}

.certificate-body {
  background: #ffffff;
  padding: 24px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.certificate-heading-wrap {
  text-align: center;
}

.certificate-script {
  margin: 0;
  color: var(--pink);
  font-family: "Dancing Script", cursive;
  font-size: clamp(56px, 14vw, 64px);
  font-weight: 400;
  line-height: 0.95;
}

.certificate-kicker {
  margin: 16px 0 0;
  color: var(--pink);
  font-family: "Manjari", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.certificate-copy {
  margin-top: 20px;
  text-align: center;
  max-width: 360px;
}

.certificate-presented {
  margin: 0;
  color: #101010;
  font-family: "Manjari", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
}

.certificate-name {
  margin: 18px 0 0;
  color: #c8004d;
  font-family: "Fredoka", sans-serif;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 600;
}

.certificate-description {
  margin: 20px auto 0;
  max-width: 291px;
  color: #101010;
  font-family: "Manjari", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
}

.certificate-seal {
  margin-top: 26px;
  width: 166px;
  height: 40px;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-seal-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fd3297;
  border: 10px solid #c8004d;
}

.certificate-signature-wrap {
  width: 100%;
  max-width: 221px;
  margin-top: 26px;
  text-align: center;
}

.certificate-signature-line {
  width: 100%;
  border-top: 1px solid #151515;
}

.certificate-signature-label {
  margin: 8px 0 0;
  color: #151515;
  font-family: "Manjari", sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
}

.certificate-band-bottom {
  display: none;
}

.certificate-obtained {
  height: 190px;
  background: #ffffff;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px 36px;
  color: #ffffff;
  font-family: "Manjari", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
}

.certificate-obtained::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pink);
  clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.certificate-obtained-text {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.certificate-close:hover {
  background: var(--pink-strong);
  color: #ffffff;
}

.pill:active,
.cta:active,
.nav-btn:active,
.quiz-btn:active,
.practice-check:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .pill,
  .cta,
  .nav-btn,
  .quiz-btn,
  .practice-check {
    transition: none;
  }

  .loading-ring {
    animation: none;
  }
}

@media (max-width: 460px) {
  body {
    padding: 0;
  }

  .screen {
    min-height: 100vh;
  }

  .certificate-card {
    min-height: 100vh;
  }

  .certificate-overlay {
    padding: 0;
    background: rgba(10, 10, 10, 0.35);
  }

  .certificate-close {
    top: 14px;
    right: 12px;
  }

  .certificate-kicker {
    font-size: 16px;
  }

  .certificate-presented {
    font-size: 16px;
  }

  .certificate-name {
    font-size: clamp(42px, 12vw, 48px);
  }

  .certificate-description {
    font-size: 16px;
  }

  .certificate-signature-label,
  .certificate-obtained {
    font-size: 16px;
  }

  .quiz-retry-title {
    font-size: clamp(38px, 9.8vw, 48px);
  }

  .quiz-retry-score {
    font-size: 20px;
  }

  .quiz-retry-next {
    font-size: 20px;
  }

  .quiz-retry-list li {
    font-size: 20px;
  }

  .hero .title,
  .h2,
  .h2.small,
  .h3,
  .subhead,
  .text,
  .pill,
  .badge-item,
  .phase-title,
  .phase-copy,
  .chat-copy,
  .quiz-btn,
  .cta,
  .nav-btn {
    font-size: clamp(18px, 7vw, 46px);
  }

  .welcome-intro {
    font-size: 20px;
  }
}
