:root {
  --bg: #FBF6F2;
  --card: #FFFFFF;
  --ink: #241B1D;
  --muted: #6E6469;
  --accent: #C81E3A;
  --accent-dark: #A3172F;
  --tint: #FCE7EA;
  --tint-2: #F6D4DA;
  --line: #EADFDA;
  --radius: 18px;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
em { font-style: italic; color: var(--accent); }

.view { display: none; min-height: 100vh; max-width: 560px; margin: 0 auto; padding: 0 16px 40px; }
.view.is-active { display: block; }

/* buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; font: 600 16px/1 var(--sans);
  background: var(--accent); color: #fff; border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 1px 2px rgba(36, 27, 29, 0.16); transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(200, 30, 58, 0.6); }
.btn:active { transform: translateY(0); }
.btn-big { width: 100%; padding: 18px 20px; font-size: 17px; border-radius: 16px; }
.btn-small { padding: 10px 14px; font-size: 14px; border-radius: 12px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-2); }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* landing */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.logo { font: 700 22px/1 var(--serif); color: var(--accent); }
.hero { padding: 18px 0 8px; text-align: center; }
.eyebrow { margin: 0 0 10px; font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(32px, 9vw, 44px); }
.lead { color: var(--muted); font-size: 17px; margin: 14px auto 22px; max-width: 440px; }
.micro { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.phones { position: relative; height: 330px; margin: 28px auto 0; max-width: 420px; }
.phone { position: absolute; width: 38%; border-radius: 22px; box-shadow: 0 24px 50px -24px rgba(36, 27, 29, 0.45); border: 5px solid #fff; }
.phone-center { left: 31%; top: 0; z-index: 2; }
.phone-left { left: 2%; top: 40px; transform: rotate(-6deg); }
.phone-right { right: 2%; top: 40px; transform: rotate(6deg); }

.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 26px 0 8px; }
.proof div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; }
.proof b { display: block; font: 600 18px/1.2 var(--serif); }
.proof span { font-size: 12px; color: var(--muted); }

.block { margin-top: 40px; }
.block h2 { font-size: 28px; text-align: center; margin-bottom: 18px; }
.cards { display: grid; gap: 14px; }
.card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card img { width: 96px; height: 150px; object-fit: cover; object-position: top; border-radius: 12px; }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.steps ol { list-style: none; counter-reset: s; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 56px; position: relative; color: var(--muted); }
.steps li b { color: var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--accent); font: 700 14px/28px var(--sans); text-align: center; }

.quotes figure { margin: 0 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.quotes blockquote { margin: 0 0 10px; font: 500 17px/1.45 var(--serif); }
.quotes figcaption { color: var(--muted); font-size: 13px; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 8px 0 0; }

.final { margin: 44px 0 10px; text-align: center; background: var(--tint); border-radius: 22px; padding: 26px 18px; }
.final h2 { font-size: 26px; margin-bottom: 16px; }

.legal { margin-top: 34px; color: var(--muted); font-size: 12px; text-align: center; }
.legal p { margin: 6px 0; }

/* quiz */
.quiz-top { display: grid; grid-template-columns: 36px 1fr 48px; align-items: center; gap: 10px; padding: 14px 0; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.back { appearance: none; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--ink); padding: 4px; }
.back[hidden] { visibility: hidden; display: block; }
.progress { height: 6px; background: var(--tint-2); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s ease; }
.step-count { font-size: 13px; color: var(--muted); text-align: right; }
.quiz-body { padding-top: 10px; animation: fade .25s ease; }
.quiz-body h2 { font-size: 26px; text-align: center; margin: 8px 0 6px; }
.quiz-body .hint { text-align: center; color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.options { display: grid; gap: 10px; }
.options.grid-2 { grid-template-columns: 1fr 1fr; }
.opt {
  appearance: none; width: 100%; text-align: left; cursor: pointer; font: 500 16px/1.35 var(--sans); color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 16px; display: flex; gap: 12px; align-items: center;
  transition: border-color .15s ease, background .15s ease;
}
.opt:hover { border-color: var(--tint-2); }
.opt.is-on { border-color: var(--accent); background: var(--tint); }
.opt .ico { font-size: 22px; width: 28px; text-align: center; flex: none; }
.opt small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 2px; }
.grid-2 .opt { flex-direction: column; text-align: center; padding: 18px 10px; }
.swatches { display: flex; gap: 4px; justify-content: center; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; display: block; border: 1px solid rgba(0,0,0,.06); }
.field { display: grid; gap: 8px; }
.field input { font: 500 17px/1 var(--sans); padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--accent); }
.field .note { color: var(--muted); font-size: 12.5px; }
.quiz-next { margin-top: 18px; }
.interstitial { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px 18px; }
.interstitial .big { font: 600 44px/1 var(--serif); color: var(--accent); margin: 6px 0 10px; }
.interstitial p { color: var(--muted); }

/* analysing */
.analysing { text-align: center; padding-top: 18vh; }
.ring { width: 130px; height: 130px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) var(--p, 0%), var(--tint-2) 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 10px; background: var(--bg); border-radius: 50%; }
.ring span { position: relative; font: 700 26px/1 var(--serif); }
.analysing h2 { font-size: 24px; margin-bottom: 16px; }
.analysing ul { list-style: none; padding: 0; margin: 0 auto; max-width: 320px; text-align: left; display: grid; gap: 8px; }
.analysing li { color: var(--muted); padding-left: 28px; position: relative; }
.analysing li.done { color: var(--ink); }
.analysing li::before { content: '○'; position: absolute; left: 4px; color: var(--tint-2); }
.analysing li.done::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* result + paywall */
.result { text-align: center; padding-top: 22px; }
.result h1 { font-size: clamp(30px, 8vw, 40px); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.result-grid div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; }
.result-grid span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.result-grid b { font: 600 15px/1.3 var(--serif); }
.plans-wrap { margin-top: 30px; }
.plans-wrap h2 { font-size: 26px; text-align: center; margin-bottom: 14px; }
.includes { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.includes li { padding-left: 28px; position: relative; }
.includes li::before { content: '✓'; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.plans { display: grid; gap: 10px; margin-bottom: 16px; }
.plan { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; text-align: left; font: inherit; color: inherit; width: 100%; }
.plan.is-on { border-color: var(--accent); background: var(--tint); }
.plan .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--tint-2); }
.plan.is-on .dot { border: 6px solid var(--accent); }
.plan .name { font-weight: 700; }
.plan .price { color: var(--muted); font-size: 13.5px; }
.plan .price s { margin-right: 6px; }
.plan .perday { text-align: right; }
.plan .perday b { display: block; font: 700 20px/1 var(--serif); }
.plan .perday span { font-size: 12px; color: var(--muted); }
.plan .badge { position: absolute; top: -10px; right: 14px; background: var(--accent); color: #fff; font: 700 11px/1 var(--sans); padding: 5px 8px; border-radius: 99px; letter-spacing: .04em; text-transform: uppercase; }
.terms { color: var(--muted); font-size: 12.5px; text-align: center; margin: 10px 0 0; }
.guarantee { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: center; }
.guarantee p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* consent */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 540px; margin: 0 auto; z-index: 50;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 18px 40px -18px rgba(36,27,29,.4); }
.consent p { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.consent div { display: flex; gap: 8px; }
.consent .btn { flex: 1; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* image cards (body shapes, style archetypes) */
.grid-2 .opt-card { padding: 10px 8px 12px; gap: 2px; }
.opt-card .pic { display: block; width: 100%; height: 170px; border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.opt-card .pic img { width: 100%; height: 100%; object-fit: contain; }
.opt-shape .pic { background: #fff; }
.opt-photo .pic { height: 200px; background: radial-gradient(120% 80% at 50% 100%, var(--tint-2), var(--tint) 60%, #fff); }
.opt-photo .pic img { object-fit: cover; object-position: top; }
.opt-card b { font: 600 16px/1.2 var(--serif); }
.opt-card small { color: var(--muted); font-size: 12.5px; }
.opt-card.is-on .pic { box-shadow: inset 0 0 0 2px var(--accent); }

/* stylist note, education, photo upload */
.tag { margin: 0 0 6px; font: 700 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.note-card { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.note-card img { width: 110px; height: 220px; object-fit: contain; }
.note-card h2 { text-align: left !important; font-size: 24px; margin: 0 0 8px !important; }
.note-card p { color: var(--muted); margin: 0; }
.note-card .sign { margin-top: 10px; font: italic 500 14px/1.3 var(--serif); color: var(--ink); }
.edu { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px; }
.edu h2 { margin-bottom: 14px !important; }
.edu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.edu li { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--tint-2); }
.edu li span { color: var(--muted); font-size: 14.5px; }
.upload { display: grid; justify-items: center; gap: 6px; background: var(--card); border: 1.5px dashed var(--tint-2); border-radius: 22px; padding: 22px 16px; cursor: pointer; text-align: center; }
.upload-pic { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--tint); }
.upload-pic img { width: 100%; height: 100%; object-fit: cover; }
.upload .cam { font-size: 40px; }
.upload small { color: var(--muted); }
.privacy { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.skip { margin-top: 10px; }

/* photo scan */
.scan { position: relative; width: 200px; height: 250px; margin: 0 auto 22px; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(36,27,29,.5); }
.scan img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.scan-line { position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 18px 4px rgba(200,30,58,.55); animation: scanline 1.8s ease-in-out infinite; }
.scan .dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(200,30,58,.6); animation: blip 1.6s ease-in-out infinite; }
.scan .d1 { top: 28%; left: 34%; } .scan .d2 { top: 28%; left: 62%; animation-delay: .3s; } .scan .d3 { top: 46%; left: 48%; animation-delay: .6s; }
.scan .d4 { top: 60%; left: 40%; animation-delay: .9s; } .scan .d5 { top: 60%; left: 58%; animation-delay: 1.2s; }
.scan-pct { position: absolute; bottom: 10px; right: 12px; background: rgba(36,27,29,.7); color: #fff; font: 700 13px/1 var(--sans); padding: 6px 8px; border-radius: 99px; }
.quote { margin: 22px auto 0; max-width: 340px; font: italic 500 16px/1.45 var(--serif); color: var(--ink); min-height: 48px; }
@keyframes scanline { 0% { top: 4%; } 50% { top: 94%; } 100% { top: 4%; } }
@keyframes blip { 0%, 100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1); opacity: 1; } }

/* result visual */
.result-visual { display: grid; justify-items: center; gap: 10px; margin-bottom: 12px; }
.avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--tint); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--tint-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.palette { display: flex; gap: 6px; }
.palette i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.mini-quotes { display: grid; gap: 8px; margin-top: 18px; }
.mini-quotes figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.mini-quotes blockquote { margin: 0 0 6px; font: 500 15px/1.4 var(--serif); }
.mini-quotes figcaption { color: var(--muted); font-size: 12.5px; }

.ring[hidden], .scan[hidden] { display: none; }
