/* I Want Better Skin: quiz + plan */
.qwrap { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.qbar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 44px 1fr 64px; align-items: center;
  padding: calc(6px + var(--safe-t)) 14px 6px;
  background: rgba(252, 245, 246, .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.qbar .wordmark { width: 96px; height: 43px; }
.qback { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.qback svg { width: 22px; height: 22px; }
.qcount { font-size: 12px; font-weight: 600; color: var(--mute); text-align: right; }
.qprog { height: 4px; margin: 2px 20px 0; border-radius: 4px; background: var(--line); overflow: hidden; }
.qprog span { display: block; height: 100%; width: 0; background: var(--rose); border-radius: 4px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }

.stage { flex: 1; padding: 22px 20px 40px; }
.step { animation: stepIn .38s cubic-bezier(.2, .8, .2, 1) both; }
.step.from-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.q-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.q-title { margin-top: 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 7.2vw, 33px); line-height: 1.1; letter-spacing: -.01em; }
.q-sub { margin-top: 8px; font-size: 15px; color: var(--ink2); }

.opts { display: grid; gap: 10px; margin-top: 20px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 60px; padding: 14px 16px;
  text-align: left; font-size: 16px; font-weight: 600; line-height: 1.25;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.opt small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--mute); }
.opt .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--blush2); background: #fff; transition: all .15s ease; }
.opt:active { transform: scale(.985); }
.opt.sel { border-color: var(--rose); background: #FDEEF1; }
.opt.sel .dot { border-color: var(--rose); background: var(--rose); box-shadow: inset 0 0 0 4px #FDEEF1; }

.q-note { margin-top: 18px; font-size: 12.5px; color: var(--mute); text-align: center; }

/* loading */
.loading { text-align: center; padding-top: 7svh; }
.ring { width: 64px; height: 64px; margin: 0 auto 18px; }
.ring svg { width: 100%; height: 100%; animation: spin 1.1s linear infinite; }
.ring circle { fill: none; stroke: var(--rose); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 90 200; }
@keyframes spin { to { transform: rotate(360deg); } }
.checklist { list-style: none; display: inline-grid; gap: 10px; margin-top: 22px; text-align: left; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--mute); transition: color .3s ease; }
.checklist li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--blush2); background: #fff center / 12px no-repeat;
  transition: all .3s ease;
}
.checklist li.done { color: var(--ink); }
.checklist li.done::before {
  border-color: var(--rose); background-color: var(--rose);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* results */
.res-title { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 10vw, 46px); line-height: 1.02; letter-spacing: -.02em; }
.res-title em { font-style: italic; color: var(--rose); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span { font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }

.box { margin-top: 18px; padding: 18px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.box h2 { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.2; }
.box p { margin-top: 8px; font-size: 15px; color: var(--ink2); }
.box .q-kicker + h2 { margin-top: 6px; }
.routine-note { padding-top: 12px; border-top: 1px dashed var(--line); margin-top: 12px !important; }
.routine-note b { color: var(--ink); }

.sec-t { margin-top: 30px; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; }
.sec-s { margin-top: 4px; font-size: 14px; color: var(--mute); }

.steps { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.steps li { display: flex; gap: 14px; padding: 16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--blush); color: var(--rose); }
.steps h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.steps h3 em { font-style: italic; font-family: var(--serif); font-weight: 500; color: var(--rose); }
.steps p { margin-top: 4px; font-size: 14.5px; color: var(--ink2); }
.steps li.hl { border: 1.5px solid var(--rose); background: #FDF0F3; }
.steps li.hl .n { background: var(--rose); color: #fff; }
.steps .jump { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--rose); text-decoration: none; }
.steps .jump img { width: 26px; height: 32px; object-fit: contain; }

.pick { margin-top: 26px; border-radius: 24px; overflow: hidden; background: #fff; border: 2px solid var(--rose); box-shadow: 0 24px 40px -28px rgba(120, 40, 60, .55); scroll-margin-top: 80px; }
.pick-badge { padding: 10px 14px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--rose); }
.pick-img { background: linear-gradient(180deg, #F9EDF0, #F2DCE2); }
.pick-img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 50%; }
.pick-body { padding: 18px 18px 20px; }
.pick-body h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; }
.stars { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--ink2); }
.stars b { color: #D99A2B; letter-spacing: 1px; font-size: 15px; }
.pick-why { margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.checks { list-style: none; display: grid; gap: 9px; margin-top: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.4; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--blush) center / 11px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23731B2F' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.offer { margin: 16px 0 12px; padding: 10px 12px; border-radius: 12px; text-align: center; font-size: 14px; font-weight: 700; color: var(--rose-d); background: #FBE8EC; border: 1px dashed var(--blush2); }
.pick-small { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--mute); }

.timeline { list-style: none; margin-top: 14px; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 0 0 16px; }
.timeline li::before { content: ""; position: absolute; left: 86px; top: 7px; bottom: -7px; width: 1.5px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline b { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rose); padding-top: 1px; }
.timeline span { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink2); }
.timeline span::before { content: ""; position: absolute; left: -2px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 3px var(--cream); }

.end-cta { margin-top: 22px; }
.retake { display: block; margin: 14px auto 0; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; }
.res .fine { margin-top: 18px; }

/* sticky offer bar on the plan */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: rgba(255, 253, 251, .97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px -18px rgba(42, 30, 35, .5);
  transform: translateY(115%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.sticky.on { transform: none; }
.sticky-in { max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.sticky img { width: 40px; height: 48px; object-fit: contain; flex: none; }
.sticky-t { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-t b { display: block; font-size: 14px; }
.sticky-t small { display: block; font-size: 12px; color: var(--rose-d); font-weight: 600; }
.sticky .btn { width: auto; min-height: 46px; padding: 10px 18px; font-size: 14.5px; flex: none; }
.has-sticky { padding-bottom: calc(86px + var(--safe-b)); }

/* ---------- v2: personal quiz ---------- */
.q-title em { font-style: italic; color: var(--rose); }
.me { display: grid; gap: 14px; margin-top: 22px; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%; height: 56px; padding: 0 16px;
  border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper);
  font: inherit; font-size: 17px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.field input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(115, 27, 47, .12); }
.field input[type=number] { -moz-appearance: textfield; }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.err { min-height: 18px; font-size: 13.5px; font-weight: 600; color: #B3261E; }
.me .q-note { margin-top: 0; }

.opt.multi .dot { border-radius: 7px; }
.opt.multi.sel .dot {
  box-shadow: none;
  background: var(--rose) center / 14px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.q-actions {
  position: sticky; bottom: 0; z-index: 5;
  margin-top: 6px; padding: 18px 0 calc(14px + var(--safe-b));
  background: linear-gradient(rgba(252, 245, 246, 0), var(--cream) 38%);
}
.btn:disabled { opacity: .4; box-shadow: none; cursor: default; }

.ins-img { margin-bottom: 18px; border-radius: 22px; overflow: hidden; background: var(--blush); }
.ins-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; }
.young-actions { display: grid; gap: 6px; margin-top: 22px; }

.res-head { display: flex; align-items: center; gap: 14px; }
.res-head img {
  flex: none; width: 78px; height: 78px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; background: var(--blush);
  box-shadow: 0 8px 20px -10px rgba(80, 40, 50, .5);
}
.noticed { list-style: none; display: grid; gap: 10px; margin-top: 10px; }
.noticed li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.45; color: var(--ink2); }
.noticed li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.doing { background: linear-gradient(160deg, #F8E3E7, #F2D2DA); border-color: transparent; }
.doing h2 { margin-top: 8px; font-size: 19px; font-weight: 400; line-height: 1.38; }
.ampm-t { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ampm .steps { margin-top: 8px; }
.pick-for { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--rose-d); }
.tried { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.tried li { padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.tried b { display: block; font-size: 15px; }
.tried span { display: block; margin-top: 3px; font-size: 14.5px; color: var(--ink2); }
.habits .box { margin-top: 10px; }
.habits .box:first-child { margin-top: 14px; }
