/* iOS-inspired presentation for the existing rules-based skin-fit analyzer. */
.product-analyzer { max-width: 720px; margin: 0 auto; }
.skin-fit-frame { max-width: 510px; margin: 0 auto; border: 1px solid rgba(140,117,172,.26); border-radius: 22px; padding: clamp(22px,4vw,32px); background: radial-gradient(circle at 92% 7%, rgba(220,208,239,.82), transparent 32%), var(--white); box-shadow: 0 22px 54px rgba(56,43,68,.12); }
.skin-fit-topline { display: flex; align-items: center; justify-content: space-between; }
.skin-fit-wordmark { font-family: var(--serif); font-size: 20px; letter-spacing: -.04em; }
.skin-fit-wordmark span { color: var(--coral); }
.skin-fit-demo { border-radius: 99px; padding: 6px 9px; background: #fee1da; color: #a54836; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.skin-fit-frame h2 { margin: 22px 0 0; font-family: var(--serif); font-size: clamp(39px,7vw,54px); font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.skin-fit-intro { margin: 11px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.analyzer-profile { display: flex; min-height: 31px; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.profile-chip { display: inline-flex; min-height: 31px; align-items: center; gap: 6px; border: 1px solid rgba(140,117,172,.26); border-radius: 99px; padding: 0 11px; background: rgba(220,208,239,.48); color: #55426f; font-size: 10px; font-weight: 800; }
.profile-chip svg { width: 14px; height: 14px; }
.analyzer-profile-empty { align-self: center; color: var(--ink-soft); font-size: 10px; }
.analyzer-profile-link { align-self: center; color: #5d477a; font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.analyzer-empty { margin-top: 22px; border: 1px dashed rgba(140,117,172,.42); border-radius: 16px; padding: 20px; background: rgba(245,241,233,.58); }
.analyzer-empty h3 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.analyzer-empty p { margin: 7px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.analyzer-result { margin-top: 21px; }
.skin-match-card { display: flex; min-height: 176px; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; border-radius: 19px; padding: 23px; background: radial-gradient(circle at 75% 52%, rgba(140,117,172,.22), transparent 31%), linear-gradient(135deg, #ebe3f6, #d8caec); box-shadow: inset 0 1px 0 rgba(255,255,255,.66), 0 12px 26px rgba(98,75,131,.14); }
.skin-match-score { display: block; font-family: var(--serif); font-size: clamp(63px,13vw,82px); font-weight: 400; letter-spacing: -.08em; line-height: .75; }
.skin-match-label { display: block; margin-top: 14px; font-family: var(--serif); font-size: 17px; }
.skin-match-ring { --score: 0; position: relative; display: grid; width: 112px; height: 112px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: conic-gradient(var(--lavender-deep) calc(var(--score) * 1%), rgba(255,255,255,.56) 0); box-shadow: 0 0 26px rgba(112,87,154,.36); }
.skin-match-ring::before { content: ""; position: absolute; inset: 10px; border-radius: inherit; background: rgba(241,235,248,.95); box-shadow: 0 0 24px 8px rgba(140,117,172,.3); }
.skin-match-ring span { position: relative; z-index: 1; color: #5d477a; font-size: 16px; font-weight: 850; }
.skin-metrics { display: grid; gap: 13px; margin-top: 22px; }
.skin-metric { display: grid; gap: 7px; }
.skin-metric-top { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; color: var(--ink); font-size: 11px; font-weight: 750; }
.skin-metric-top span:last-child { color: var(--ink-soft); font-size: 10px; }
.skin-metric-bar { overflow: hidden; height: 8px; border-radius: 99px; background: #ecebe4; }
.skin-metric-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b5c499, var(--sage)); box-shadow: 0 1px 4px rgba(73,96,59,.18); transition: width .45s ease; }
.analyzer-product-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 23px; border-top: 1px solid var(--line); padding: 17px 1px 0; }
.analyzer-product-line > span { font-family: var(--serif); font-size: 19px; line-height: 1.12; }
.analyzer-product-line a { flex: 0 0 auto; color: var(--ink-soft); font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.analyzer-product-line #analyzerSourceNote { color: var(--ink-soft); font-family: var(--sans); font-size: 10px; line-height: 1.45; }
.analyzer-notes { display: grid; gap: 9px; margin-top: 14px; }
.analyzer-note { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: rgba(245,241,233,.63); color: var(--ink); font-size: 11px; line-height: 1.55; }
.analyzer-note-marker { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--lavender); color: #5d477a; font-size: 12px; font-weight: 850; }
.analyzer-note.flag .analyzer-note-marker { background: #fee1da; color: #974333; }
.analyzer-note.positive .analyzer-note-marker { background: #e4ead8; color: #49603b; }
.analyzer-note small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 9px; font-weight: 700; }
.analyzer-brand-alternatives { margin-top: 16px; border: 1px solid rgba(140,117,172,.3); border-radius: 15px; padding: 14px; background: rgba(220,208,239,.28); }
.analyzer-brand-alternatives h3 { margin: 0 0 9px; color: #55426f; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.analyzer-brand-alternatives > div { display: grid; gap: 7px; }
.analyzer-brand-alternative { display: grid; gap: 3px; width: 100%; border: 1px solid rgba(29,29,27,.1); border-radius: 10px; padding: 10px; background: var(--white); color: var(--ink); text-align: left; cursor: pointer; }
.analyzer-brand-alternative:hover { border-color: rgba(140,117,172,.5); background: #faf8fc; }
.analyzer-brand-alternative strong { font-size: 11px; }
.analyzer-brand-alternative span { color: var(--ink-soft); font-size: 9px; }
.analyzer-photo-fallback { display: grid; gap: 10px; margin-top: 16px; border: 1px dashed rgba(140,117,172,.48); border-radius: 16px; padding: 16px; background: rgba(245,241,233,.58); }
.analyzer-photo-fallback h3 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.analyzer-photo-fallback > p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.analyzer-photo-picker { display: grid; min-height: 48px; place-items: center; border: 1px solid rgba(140,117,172,.34); border-radius: 12px; background: rgba(220,208,239,.52); color: #55426f; cursor: pointer; }
.analyzer-photo-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.analyzer-photo-picker strong { font-size: 10px; font-weight: 850; }
.analyzer-photo-status { min-height: 28px; color: var(--ink-soft) !important; font-size: 9px !important; }
.analyzer-photo-status.is-working { color: #5d477a !important; font-weight: 750; }
.analyzer-photo-status.is-error { color: #9a4434 !important; font-weight: 750; }
.analyzer-photo-label { color: var(--ink-soft); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.analyzer-photo-fallback textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 11px; padding: 10px; outline: 0; background: var(--white); color: var(--ink); font-size: 11px; line-height: 1.5; }
.analyzer-photo-fallback textarea:focus { border-color: var(--lavender-deep); box-shadow: 0 0 0 3px rgba(140,117,172,.14); }
.analyzer-photo-analyze { min-height: 43px; border: 0; border-radius: 99px; background: var(--lavender-deep); color: var(--white); font-size: 10px; font-weight: 850; cursor: pointer; }
.analyzer-photo-analyze:disabled { cursor: not-allowed; opacity: .48; }
.skin-fit-rescore { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; border: 1px solid rgba(140,117,172,.3); border-radius: 99px; background: rgba(220,208,239,.65); color: #55426f; font-size: 11px; font-weight: 850; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.skin-fit-rescore:hover { transform: translateY(-1px); background: var(--lavender); }
.skin-fit-rescore svg { width: 17px; height: 17px; }
.analyzer-disclaimer { max-width: 510px; margin: 15px auto 0; color: var(--ink-soft); font-size: 9px; line-height: 1.5; }
@media (max-width: 430px) { .skin-fit-frame { border-radius: 18px; padding: 20px; } .skin-match-card { min-height: 157px; padding: 20px; } .skin-match-ring { width: 96px; height: 96px; } .analyzer-product-line { flex-direction: column; } }
