/* =========================
   SONOSEASON DESIGN TOKENS
   ========================= */

:root {
  --main: #686058;
  --sub-01: #C6A291;
  --sub-02: #D2C6C3;
  --white: #FFFFFF;
  --black: #1C1C1B;

  --bg-soft: #F7F5F3;
  --line: rgba(28, 28, 27, 0.14);
  --line-light: rgba(255, 255, 255, 0.24);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow: 0 18px 50px rgba(28, 28, 27, 0.07);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--white);
  color: var(--black);
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
}

.screen.active {
  display: flex;
}

/* =========================
   START
   ========================= */

.start-screen {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  overflow: hidden;
  background: var(--main);
  color: var(--white);
}

.start-screen::before,
.start-screen::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.start-screen::before {
  width: 420px;
  height: 420px;
  top: -220px;
  right: -210px;
  border: 1px solid rgba(255,255,255,.12);
}

.start-screen::after {
  width: 320px;
  height: 320px;
  bottom: -220px;
  left: -180px;
  background: rgba(198,162,145,.14);
}

.start-inner {
  width: min(100%, 520px);
  position: relative;
  z-index: 1;
  text-align: center;
}

.brand {
  margin-bottom: 34px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .18em;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  opacity: .76;
}

.eyebrow.dark {
  color: var(--main);
  opacity: 1;
}

.start-inner h1 {
  margin: 0;
  font-size: clamp(40px, 10.5vw, 62px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.055em;
}

.lead {
  margin: 28px auto 38px;
  max-width: 350px;
  font-size: 15px;
  line-height: 1.85;
  font-weight: 400;
  color: rgba(255,255,255,.80);
}

.primary-btn,
.product-btn,
.outline-btn {
  width: 100%;
  min-height: 60px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-weight: 600;
  transition: transform .18s ease, opacity .18s ease;
}

.primary-btn {
  max-width: 340px;
  background: var(--white);
  color: var(--black);
}

.primary-btn:hover,
.product-btn:hover,
.outline-btn:hover {
  transform: translateY(-2px);
}

.primary-btn.compact {
  max-width: 280px;
}

.micro {
  margin: 16px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,.62);
}

.disclaimer {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  margin: 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255,255,255,.48);
}

/* =========================
   QUIZ
   ========================= */

.quiz-screen {
  background: var(--white);
}

.quiz-shell {
  width: min(100%, 720px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px 22px 50px;
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: max(4px, env(safe-area-inset-top));
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  color: var(--black);
  font-size: 22px;
}

.progress-track {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--sub-02);
}

.progress-track span {
  display: block;
  width: 14.28%;
  height: 100%;
  background: var(--main);
  transition: width .25s ease;
}

.count {
  min-width: 40px;
  text-align: right;
  font-size: 11px;
  font-weight: 500;
  color: var(--main);
}

.question-wrap {
  padding-top: 13vh;
}

.question-kicker {
  margin: 0 0 22px;
  color: var(--sub-01);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.question-index {
  margin: 0 0 10px;
  color: var(--main);
  font-size: 14px;
  font-weight: 700;
}

.question-wrap h2 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: -.045em;
}

.question-sub {
  margin: 16px 0 34px;
  max-width: 560px;
  color: rgba(28,28,27,.60);
  font-size: 14px;
  line-height: 1.65;
}

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

.answer {
  width: 100%;
  min-height: 70px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--black);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  transition:
    border-color .15s ease,
    background .15s ease,
    transform .15s ease;
}

.answer:hover {
  border-color: var(--sub-01);
  background: rgba(210,198,195,.18);
  transform: translateY(-1px);
}

.answer:active {
  background: rgba(198,162,145,.16);
}

.answer .arrow {
  flex: 0 0 auto;
  color: var(--sub-01);
  font-size: 18px;
}

/* =========================
   LOADING
   ========================= */

.loading-screen {
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background: var(--main);
  color: var(--white);
}

.loading-inner h2 {
  margin: 0;
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.04em;
}

.loader {
  width: 48px;
  height: 48px;
  margin: 0 auto 30px;
  border: 2px solid rgba(255,255,255,.20);
  border-top-color: var(--sub-01);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.loading-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.loading-tags span {
  padding: 8px 11px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: rgba(255,255,255,.70);
  font-size: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================
   RESULT
   ========================= */

.result-screen {
  background: var(--bg-soft);
}

.result-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 56px 22px 60px;
}

.result-header {
  padding-bottom: 34px;
}

.result-label {
  margin: 0 0 12px;
  color: rgba(28,28,27,.60);
  font-size: 14px;
}

.result-header h1 {
  margin: 0;
  color: var(--main);
  font-size: clamp(46px, 12vw, 72px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.065em;
}

.result-desc {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgba(28,28,27,.68);
  font-size: 15px;
  line-height: 1.8;
}

.profile-card,
.why-card,
.store-card {
  margin-top: 16px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.section-head {
  margin-bottom: 20px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--sub-01);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.section-head h2,
.why-card h2,
.store-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.035em;
}

.profile-list {
  display: grid;
}

.profile-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.profile-row:first-child {
  border-top: 0;
}

.profile-row .label {
  color: rgba(28,28,27,.50);
  font-size: 12px;
}

.profile-row .value {
  text-align: right;
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
}

.why-card {
  background: var(--sub-02);
  box-shadow: none;
}

.why-card .section-label {
  color: var(--main);
}

.why-card p:last-child {
  margin: 14px 0 0;
  color: rgba(28,28,27,.68);
  font-size: 14px;
  line-height: 1.75;
}

.recommend-section {
  margin-top: 40px;
}

.best-product {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--main);
  color: var(--white);
}

.rank {
  margin-bottom: 30px;
  color: var(--sub-01);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.product-copy h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.04em;
}

.product-copy p {
  margin: 18px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.75;
}

.product-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: rgba(255,255,255,.84);
  font-size: 10px;
  font-weight: 600;
}

.product-btn {
  margin-top: 26px;
  background: var(--white);
  color: var(--black);
}

.also-title {
  margin: 30px 0 12px;
  color: rgba(28,28,27,.45);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.also-products {
  display: grid;
  gap: 10px;
}

.also-product {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
}

.also-product .num {
  color: var(--sub-01);
  font-size: 11px;
  font-weight: 700;
}

.also-product strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.also-product small {
  display: block;
  margin-top: 5px;
  color: rgba(28,28,27,.50);
  font-size: 10px;
}

.also-product .arrow {
  color: var(--main);
  font-size: 17px;
}

.store-card {
  margin-top: 40px;
}

.store-steps {
  margin-top: 22px;
}

.store-steps > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.store-steps span {
  color: var(--sub-01);
  font-size: 11px;
  font-weight: 700;
}

.store-steps p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.result-actions {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

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

.text-btn {
  min-height: 46px;
  background: transparent;
  color: rgba(28,28,27,.60);
  font-size: 12px;
  font-weight: 600;
}

/* =========================
   PLACEHOLDER
   ========================= */

.placeholder-screen {
  align-items: center;
  justify-content: center;
  padding: 30px 22px;
  background: var(--white);
  color: var(--black);
}

.placeholder-inner {
  width: min(100%, 500px);
  text-align: center;
}

.placeholder-inner h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.placeholder-inner > p:not(.eyebrow) {
  margin: 16px 0 28px;
  color: rgba(28,28,27,.60);
  font-size: 14px;
  line-height: 1.75;
}

/* =========================
   DESKTOP
   ========================= */

@media (min-width: 720px) {
  .quiz-shell,
  .result-shell {
    padding-left: 34px;
    padding-right: 34px;
  }

  .question-wrap {
    padding-top: 15vh;
  }

  .answer {
    min-height: 78px;
    padding-left: 24px;
    padding-right: 24px;
    font-size: 16px;
  }

  .result-actions {
    grid-template-columns: 1fr 1fr;
  }
}


/* =========================
   V4 BRAND / DESKTOP FIX
   ========================= */

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo-white {
  height: 23px;
  margin: 0 auto 34px;
}

.brand-logo-dark {
  height: 20px;
}

.quiz-brand-row {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
}

.store-find-btn {
  width: 100%;
  min-height: 58px;
  margin-top: 22px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--sub-01);
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .18s ease, opacity .18s ease;
}

.store-find-btn:hover {
  transform: translateY(-2px);
}

/* PC에서도 모바일 UX를 넓게 늘리지 않고 중앙에 배치 */
@media (min-width: 720px) {
  .quiz-screen {
    align-items: flex-start;
    justify-content: center;
  }

  .quiz-shell {
    width: min(100%, 620px);
    min-height: 100dvh;
    margin: 0 auto;
    padding: 34px 34px 64px;
  }

  .question-wrap {
    padding-top: 11vh;
  }

  .result-shell {
    width: min(100%, 720px);
    margin: 0 auto;
  }

  .quiz-brand-row {
    margin-bottom: 16px;
  }
}

.also-product {
  color: inherit;
  text-decoration: none;
}
