/* ========================================
   sleep-fit-test
   ======================================== */

.sleep-fit-test {
  position: relative;
  width: 100%;
  max-width: 120rem; /* 1920px */
  margin-inline: auto;
}

.sleep-fit-test.is-started .sleep-fit-test__intro {
  display: none;
}

.sleep-fit-test__intro {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.sleep-fit-test__media {
  position: absolute;
  inset: 0;
}

.sleep-fit-test__background {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.sleep-fit-test__container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.sleep-fit-test__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sleep-fit-test__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem; /* 10px */
}

.sleep-fit-test__title {
  margin: 0;
  font-family: var(--font-paperlogy);
  font-weight: 900;
  font-size: var(--fs-extra-large); /* 64px */
  line-height: 1.3;
  letter-spacing: 0.1em;
  color: var(--color-white);
  text-align: center;
}

.sleep-fit-test__desc {
  margin: 0;
  font-family: var(--font-suit);
  font-weight: 400;
  font-size: var(--fs-body-02); /* 22px */
  line-height: 1.3;
  color: var(--color-white);
  text-align: center;
}

.sleep-fit-test__features {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 45rem; /* 720px */
  margin-top: 2.5rem; /* 40px */
  padding: 1.875rem 4.375rem; /* 30px 70px */
  border-radius: 0.625rem; /* 10px */
  background-color: rgb(255 255 255 / 25%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.sleep-fit-test__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem; /* 12px */
}

.sleep-fit-test__icon {
  display: block;
  width: 4.0625rem; /* 65px */
  height: 4.0625rem; /* 65px */
}

.sleep-fit-test__feature-text {
  margin: 0;
  font-family: var(--font-suit);
  font-weight: 400;
  font-size: var(--fs-body-04); /* 18px */
  line-height: 1.3;
  color: var(--color-white);
  text-align: center;
}

.sleep-fit-test__divider {
  flex-shrink: 0;
  width: 1px;
  height: 6.25rem; /* 100px */
  background-color: var(--color-white);
}

.sleep-fit-test__button {
  margin-top: 2.5rem; /* 40px */
  background-color: var(--color-brand-dark);
  font-size: var(--fs-subtitle-md); /* 28px */
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-brand-light-2);
  padding: 1.25rem 3.125rem; /* 20px 50px */
}

.sleep-fit-test__note {
  margin: 1.25rem 0 0; /* 20px */
  font-family: var(--font-suit);
  font-weight: 400;
  font-size: var(--fs-body-05); /* 16px */
  line-height: 1.3;
  color: var(--color-white);
  text-align: center;
}

.sleep-fit-test__questions {
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  padding-top: 5rem; /* header 80px */
  background-color: var(--color-brand-light-2);
}

.sleep-fit-test__questions-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-inline: 15rem; /* 240px */
  padding-bottom: 5rem; /* 80px */
}

.sleep-fit-test__progress {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sleep-fit-test__progress::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  z-index: 0;
  height: 1px;
  background-color: var(--color-brand-dark);
}

.sleep-fit-test__step {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem; /* 10px */
  border: 1px solid var(--color-brand-dark);
  border-radius: 6.25rem; /* 100px */
  background-color: var(--color-white);
  font-family: var(--font-suit);
  font-weight: var(--fw-suit-bold); /* 600 */
  font-size: 0.875rem; /* 14px */
  line-height: 1;
  color: var(--color-brand-dark);
}

.sleep-fit-test__step.is-active {
  border-color: var(--color-brand-point);
  background-color: var(--color-brand-point);
  color: var(--color-brand-light-2);
}

.sleep-fit-test__step.is-complete {
  border-color: var(--color-brand-dark);
  background-color: var(--color-brand-dark);
  color: var(--color-brand-light-2);
}

.sleep-fit-test__panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.sleep-fit-test__panel[hidden] {
  display: none;
}

.sleep-fit-test__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.125rem; /* 50px — heading ↔ choices */
  flex: 1;
  min-height: 0;
  margin-top: 5rem; /* 80px */
}

.sleep-fit-test__question-heading {
  width: 100%;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.sleep-fit-test__question-heading .heading-3tier__sub-title {
  font-size: var(--fs-body-03); /* 20px */
}

.sleep-fit-test__question-heading .heading-3tier__title {
  font-weight: 400;
  font-size: var(--fs-subtitle-md); /* 28px */
}

.sleep-fit-test__question-heading .heading-3tier__desc {
  font-size: var(--fs-body-04); /* 18px */
}

.sleep-fit-test__choices {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  gap: 3.125rem; /* 50px */
}

.sleep-fit-test__choices--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 2rem; /* 32px */
}

.sleep-fit-test__choice {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  height: 7.5rem; /* 120px */
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 1.875rem; /* 30px */
  background-color: var(--color-white);
  cursor: pointer;
}

.sleep-fit-test__choice--grid {
  width: 100%;
  max-width: none;
  height: 7.5rem; /* 120px */
}

.sleep-fit-test__choice.is-selected {
  width: 100%;
  max-width: 100%;
  border-color: var(--color-brand-dark);
  background-color: color-mix(in srgb, var(--color-brand-point) 20%, var(--color-white));
}

.sleep-fit-test__choice-label {
  font-family: var(--font-suit);
  font-weight: 400;
  font-size: var(--fs-body-01); /* 24px, pc/body01 */
  line-height: 1.3;
  color: var(--color-brand-dark);
  text-align: center;
}

.sleep-fit-test__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sleep-fit-test__prev[hidden] {
  display: none;
}

.sleep-fit-test__next {
  margin-left: auto;
}

/* ========================================
   sleep-fit-test loading
   ======================================== */

.sleep-fit-test__loading {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  padding-top: 5rem; /* header 80px */
  background-color: var(--color-brand-light-2);
}

.sleep-fit-test__loading[hidden] {
  display: none;
}

.sleep-fit-test__loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 105rem; /* 1680px */
  gap: 6.25rem; /* 100px */
}

.sleep-fit-test__loading-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem; /* 10px */
  text-align: center;
}

.sleep-fit-test__loading-title {
  margin: 0;
  font-family: var(--font-suit);
  font-weight: var(--fw-suit-bold); /* 600 */
  font-size: var(--fs-title); /* 40px */
  line-height: 1.3;
  color: var(--color-brand-dark);
}

.sleep-fit-test__loading-desc {
  margin: 0;
  font-family: var(--font-suit);
  font-weight: 400;
  font-size: var(--fs-body-05); /* 16px */
  line-height: 1.3;
  color: var(--color-brand-dark);
}

.sleep-fit-test__loading-bar {
  overflow: hidden;
  width: 100%;
  max-width: 105rem; /* 1680px */
  height: 0.625rem; /* 10px */
  background-color: var(--color-brand-light-1);
}

.sleep-fit-test__loading-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--color-brand-dark);
  transform-origin: left center;
}

@media (prefers-reduced-motion: reduce) {
  .sleep-fit-test__loading-bar-fill {
    transition: none;
  }
}

.sleep-fit-cta[hidden] {
  display: none;
}

@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .sleep-fit-test__heading {
    gap: 0.375rem; /* 6px */
  }

  .sleep-fit-test__title {
    font-weight: 900;
    font-size: 2rem; /* 32px, Paperlogy Black */
  }

  .sleep-fit-test__desc {
    font-size: var(--fs-body-02); /* 20px, tab/body02 */
  }

  .sleep-fit-test__features {
    width: 100%;
    max-width: 28.125rem;
    margin-top: 1.25rem; /* 20px */
    padding: 1.25rem 1.5rem;
  }

  .sleep-fit-test__icon {
    width: 2.1875rem; /* 35px */
    height: 2.1875rem; /* 35px */
  }

  .sleep-fit-test__feature-text {
    font-size: 0.875rem; /* 14px, mo/body04 */
  }

  .sleep-fit-test__divider {
    height: 3.125rem; /* 50px */
  }

  .sleep-fit-test__button {
    margin-top: 1.25rem; /* 20px */
    padding: 0.625rem 2.5rem; /* 10px 40px */
  }

  .sleep-fit-test__note {
    margin-top: 0.625rem; /* 10px */
    font-size: 0.875rem; /* 14px, mo/body04 */
  }

  .sleep-fit-test__questions {
    height: auto;
    min-height: 100vh;
  }

  .sleep-fit-test__questions-container {
    padding-inline: 3.75rem; /* 60px */
  }

  .sleep-fit-test__body {
    flex: 0 0 auto;
    gap: 2.5rem; /* 40px — heading ↔ choices */
    margin-top: 2.5rem;
  }

  .sleep-fit-test__question-heading .heading-3tier__sub-title {
    font-weight: var(--fw-suit-bold);
    font-size: var(--fs-body-01); /* 22px, tab/body01 Bold */
  }

  .sleep-fit-test__question-heading .heading-3tier__title {
    font-weight: var(--fw-suit-bold);
    font-size: var(--fs-subtitle-md); /* 26px, tab/subtitle03 */
  }

  .sleep-fit-test__question-heading .heading-3tier__desc {
    font-size: var(--fs-body-05); /* 14px, tab/body05 */
  }

  .sleep-fit-test__choices,
  .sleep-fit-test__choices--grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    gap: 0.75rem;
  }

  .sleep-fit-test__choice,
  .sleep-fit-test__choice--grid {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: 3.375rem; /* 54px */
  }

  .sleep-fit-test__choice.is-selected {
    width: 100%;
    max-width: 100%;
  }

  .sleep-fit-test__choice-label {
    font-size: var(--fs-body-03); /* 18px, tab/body03 */
  }

  .sleep-fit-test__actions {
    margin-top: 2.5rem; /* 40px */
  }
}

@media (max-width: 47.9375rem) {
  .sleep-fit-test__heading {
    gap: 0.375rem; /* 6px */
  }

  .sleep-fit-test__title {
    font-weight: 900;
    font-size: var(--fs-hero-title); /* 30px, mo/hero-title Black */
  }

  .sleep-fit-test__desc {
    font-size: var(--fs-body-02); /* 18px, mo/body02 */
  }

  .sleep-fit-test__features {
    width: 100%;
    max-width: 21.875rem;
    margin-top: 1.25rem; /* 20px */
    padding: 1rem 1.25rem;
  }

  .sleep-fit-test__icon {
    width: 2.1875rem; /* 35px */
    height: 2.1875rem; /* 35px */
  }

  .sleep-fit-test__feature-text {
    font-size: var(--fs-body-04); /* 14px, mo/body04 */
  }

  .sleep-fit-test__divider {
    height: 3.125rem;
  }

  .sleep-fit-test__button {
    margin-top: 1.25rem; /* 20px */
    padding: 0.625rem 2.25rem; /* 10px 36px */
  }

  .sleep-fit-test__note {
    margin-top: 0.625rem; /* 10px */
    font-size: var(--fs-body-04); /* 14px, mo/body04 */
  }

  .sleep-fit-test__questions {
    height: auto;
    min-height: 100vh;
  }

  .sleep-fit-test__questions-container {
    padding-inline: var(--grid-margin); /* 20px */
  }

  .sleep-fit-test__body {
    flex: 0 0 auto;
    gap: 2.5rem; /* 40px — heading ↔ choices */
    margin-top: 2rem;
  }

  .sleep-fit-test__question-heading .heading-3tier__sub-title {
    font-weight: var(--fw-suit-bold);
    font-size: var(--fs-body-01); /* 20px, mo/body01 Bold */
  }

  .sleep-fit-test__question-heading .heading-3tier__title {
    font-weight: var(--fw-suit-bold);
    font-size: var(--fs-subtitle-md); /* 20px, mo/subtitle03 */
  }

  .sleep-fit-test__question-heading .heading-3tier__desc {
    font-size: var(--fs-body-03); /* 16px, mo/body03 */
  }

  .sleep-fit-test__choices,
  .sleep-fit-test__choices--grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    gap: 0.75rem;
  }

  .sleep-fit-test__choice,
  .sleep-fit-test__choice--grid {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: 3.375rem; /* 54px */
  }

  .sleep-fit-test__choice.is-selected {
    width: 100%;
    max-width: 100%;
  }

  .sleep-fit-test__choice-label {
    font-size: var(--fs-body-04); /* 14px, mo/body04 */
  }

  .sleep-fit-test__actions {
    margin-top: 3.75rem; /* 60px */
  }
}
