:root{
  --black:#070604;
  --black-2:#0d0b08;
  --panel:#131009;
  --line:#2a2216;
  --gold:#d4af37;
  --gold-bright:#f4d775;
  --gold-deep:#8b6f1f;
  --cream:#ede6d6;
  --cream-dim:#a89f8c;
  --shed:#7a3b2e;
  --grow:#5f8b4c;
  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Manrope', -apple-system, sans-serif;
  --font-mono:'IBM Plex Mono', monospace;
}
*{box-sizing:border-box; margin:0; padding:0;}
@font-face{font-family:'Fraunces';src:local('Georgia');}
html{scroll-behavior:smooth;}
body{
  background:radial-gradient(ellipse at top, #14100a 0%, var(--black) 55%);
  color:var(--cream);
  font-family:var(--font-body);
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  padding-bottom:70px;
}
a{color:inherit;}
::selection{background:var(--gold-deep); color:var(--cream);}

/* ---------- NAV ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(7,6,4,0.96);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
  padding:12px 18px;
}
.header-top{display:flex; align-items:center; justify-content:space-between;}
.brand{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:2px;
  font-size:20px;
  background:linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.header-actions{display:flex; align-items:center; gap:10px;}
.hamburger{
  width:38px; height:34px; border:1px solid var(--gold-deep); border-radius:6px; background:var(--panel);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; cursor:pointer;
}
.hamburger span{width:18px; height:2px; background:var(--gold);}
nav{
  display:none; flex-direction:column; gap:2px; margin-top:12px;
  border-top:1px solid var(--line); padding-top:10px;
}
nav.open{display:flex;}
nav button{
  background:none; border:1px solid transparent; color:var(--cream-dim);
  font-family:var(--font-body); font-size:14px; letter-spacing:.3px;
  padding:12px 14px; border-radius:6px; cursor:pointer; text-align:left;
  transition:.2s;
}
nav button.active, nav button:hover{
  color:var(--gold-bright); border-color:var(--gold-deep); background:rgba(212,175,55,0.08);
}
.cart-pill{
  font-family:var(--font-mono); font-size:11px; color:var(--black);
  background:var(--gold); border-radius:20px; padding:8px 12px; cursor:pointer; border:none;
  display:flex; align-items:center; gap:6px; font-weight:700;
}

/* ---------- SECTIONS ---------- */
main{max-width:900px; margin:0 auto; padding:0 20px;}
.section{display:none; animation:fadeUp .5s ease;}
.section.active{display:block;}
@keyframes fadeUp{from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);}}

.eyebrow{
  font-family:var(--font-mono); font-size:11px; letter-spacing:3px; color:var(--gold);
  text-transform:uppercase; margin-bottom:10px;
}
h1{font-family:var(--font-display); font-size:38px; line-height:1.15; font-weight:600; color:var(--cream); margin-bottom:14px;}
h1 em{font-style:italic; color:var(--gold-bright);}
h2{font-family:var(--font-display); font-size:26px; font-weight:600; margin-bottom:10px; color:var(--cream);}
p.lead{color:var(--cream-dim); font-size:15.5px; line-height:1.7; max-width:560px;}

/* ---------- HERO ---------- */
.hero{padding:48px 0 30px; text-align:center;}
.hero .brand-big{
  font-family:var(--font-display); font-weight:700; font-size:64px; letter-spacing:4px;
  background:linear-gradient(180deg, var(--gold-bright) 10%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow:0 0 40px rgba(212,175,55,0.25);
  margin-bottom:6px;
}
.hero p.tag{color:var(--cream-dim); font-size:14px; letter-spacing:1px; margin-bottom:34px; font-family:var(--font-mono);}
.hero-cta{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:26px;}
.btn{
  font-family:var(--font-body); font-weight:600; font-size:14px; padding:13px 26px;
  border-radius:4px; cursor:pointer; letter-spacing:.3px; transition:.2s; border:1px solid var(--gold);
}
.btn-gold{background:var(--gold); color:#100c04; border:none;}
.btn-gold:hover{background:var(--gold-bright);}
.btn-ghost{background:transparent; color:var(--gold-bright);}
.btn-ghost:hover{background:rgba(212,175,55,0.08);}

/* ---------- HAIR CYCLE RING (signature element) ---------- */
.ring-wrap{display:flex; justify-content:center; padding:20px 0 8px;}
.ring{position:relative; width:280px; height:280px;}
.ring svg{width:100%; height:100%; transform:rotate(-90deg);}
.ring-center{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
}
.ring-center .phase-name{font-family:var(--font-display); font-size:20px; color:var(--gold-bright); transition:.3s;}
.ring-center .phase-desc{font-size:11px; color:var(--cream-dim); max-width:150px; margin-top:6px; line-height:1.4;}
.follicle-dot{transform-origin:140px 140px;}
.ring-legend{display:flex; justify-content:center; gap:18px; margin-top:14px; flex-wrap:wrap;}
.ring-legend span{font-family:var(--font-mono); font-size:10.5px; display:flex; align-items:center; gap:6px; color:var(--cream-dim);}
.dot{width:9px; height:9px; border-radius:50%; display:inline-block;}

/* ---------- ASSESSMENT / QUIZ ---------- */
.quiz-card{border:1px solid var(--line); border-radius:8px; padding:26px; background:var(--panel); margin:26px 0;}
.quiz-progress{display:flex; gap:5px; margin-bottom:22px;}
.quiz-progress i{flex:1; height:3px; background:var(--line); border-radius:2px;}
.quiz-progress i.done{background:var(--gold);}
.quiz-q{font-family:var(--font-display); font-size:19px; color:var(--cream); margin-bottom:16px;}
.quiz-options{display:flex; flex-direction:column; gap:10px;}
.quiz-opt{
  border:1px solid var(--line); border-radius:6px; padding:14px 16px; background:var(--black-2);
  color:var(--cream); cursor:pointer; text-align:left; font-family:var(--font-body); font-size:14px; transition:.2s;
}
.quiz-opt:hover{border-color:var(--gold-deep);}
.quiz-opt.gender-opt{display:inline-block; width:calc(50% - 5px); text-align:center;}
.quiz-gender-row{display:flex; gap:10px;}
.quiz-back{margin-top:18px; background:none; border:none; color:var(--cream-dim); font-family:var(--font-mono); font-size:12px; cursor:pointer;}
.quiz-result{text-align:center;}
.quiz-result .badge{
  display:inline-block; padding:6px 14px; border-radius:20px; font-family:var(--font-mono); font-size:11px;
  letter-spacing:1px; margin-bottom:16px;
}
.badge.ok{background:rgba(95,139,76,0.15); color:var(--grow); border:1px solid var(--grow);}
.badge.warn{background:rgba(122,59,46,0.15); color:#c4694f; border:1px solid var(--shed);}
.badge.info{background:rgba(212,175,55,0.12); color:var(--gold-bright); border:1px solid var(--gold-deep);}
.quiz-result h3{font-family:var(--font-display); font-size:22px; color:var(--cream); margin-bottom:12px;}
.quiz-result p{color:var(--cream-dim); font-size:14px; line-height:1.7; max-width:480px; margin:0 auto 20px;}
.quiz-result .btn{margin:4px;}

/* ---------- REASSURANCE STRIP ---------- */
.reassure{
  margin:34px 0; padding:22px; border:1px solid var(--gold-deep); border-left:3px solid var(--gold);
  background:rgba(212,175,55,0.05); border-radius:2px;
}
.reassure .eyebrow{margin-bottom:6px;}
.reassure p{color:var(--cream); font-size:14.5px; line-height:1.7;}
.reassure p b{color:var(--gold-bright);}

/* timeline */
.timeline{display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:30px 0;}
.tl-step{border:1px solid var(--line); border-radius:6px; padding:14px 10px; text-align:center; background:var(--panel);}
.tl-step .wk{font-family:var(--font-mono); color:var(--gold); font-size:11px; letter-spacing:1px;}
.tl-step .desc{font-size:12.5px; color:var(--cream-dim); margin-top:6px; line-height:1.5;}

/* comparison bars */
.compare{margin:30px 0;}
.bar-row{display:flex; align-items:center; gap:12px; margin-bottom:14px;}
.bar-label{width:120px; font-size:12.5px; color:var(--cream-dim); font-family:var(--font-mono);}
.bar-track{flex:1; height:14px; background:var(--panel); border-radius:8px; overflow:hidden; border:1px solid var(--line);}
.bar-fill{height:100%; border-radius:8px; width:0%; transition:width 1.4s cubic-bezier(.2,.8,.2,1);}
.bar-fill.gold{background:linear-gradient(90deg, var(--gold-deep), var(--gold-bright));}
.bar-fill.dim{background:#4a463c;}
.bar-pct{width:40px; text-align:right; font-family:var(--font-mono); font-size:12px; color:var(--gold-bright);}

/* ---------- APPLICATION STEPS ---------- */
.steps-nav{display:flex; gap:8px; margin:22px 0; flex-wrap:wrap;}
.step-dot{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--gold-deep); background:var(--panel);
  color:var(--cream-dim); font-family:var(--font-mono); font-size:13px; display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.step-dot.active{background:var(--gold); color:#100c04; border-color:var(--gold);}
.step-stage{
  border:1px solid var(--line); border-radius:8px; padding:26px; background:var(--panel); min-height:260px;
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px;
}
.step-stage .anim{width:180px; height:180px; position:relative;}
.step-stage h3{font-family:var(--font-display); color:var(--gold-bright); font-size:19px;}
.step-stage p{color:var(--cream-dim); font-size:13.5px; max-width:380px; line-height:1.6;}
.step-controls{display:flex; gap:10px; margin-top:16px;}

/* scalp / dropper animation */
.scalp{width:160px;height:110px;border-radius:50% 50% 45% 45%;background:linear-gradient(180deg,#c9a06a,#a97c4b);position:relative;overflow:hidden;}
.hair-line{position:absolute;top:0;width:2px;height:14px;background:#3a2a18;}
.dropper{position:absolute; width:10px; height:46px; background:linear-gradient(180deg,#dfe6e6,#9fb0b0); border-radius:4px 4px 2px 2px; left:50%; top:-50px; transform:translateX(-50%);}
.droplet{position:absolute; width:6px; height:8px; border-radius:50% 50% 50% 0; background:var(--gold-bright); opacity:0; left:50%; top:0;}
@keyframes dropFall{0%{opacity:0; transform:translate(-50%,-10px);} 20%{opacity:1;} 100%{opacity:0; transform:translate(-50%,90px);}}
.massage-hand{position:absolute; width:34px; height:34px; border-radius:50%; border:2px solid var(--gold); left:50%; top:40%; transform:translate(-50%,-50%); animation:massageMove 2.4s ease-in-out infinite;}
@keyframes massageMove{0%,100%{left:40%; top:35%;} 25%{left:60%; top:45%;} 50%{left:50%; top:55%;} 75%{left:35%; top:45%;}}
.clock-face{width:90px;height:90px;border-radius:50%;border:2px solid var(--gold-deep);position:relative;}
.clock-hand{position:absolute; width:2px; background:var(--gold-bright); left:50%; bottom:50%; transform-origin:bottom; transform:translateX(-50%) rotate(0deg); animation:tick 3s linear infinite;}
@keyframes tick{to{transform:translateX(-50%) rotate(360deg);}}

/* ---------- TRACKER ---------- */
.tracker-card{border:1px solid var(--line); border-radius:8px; padding:22px; background:var(--panel); margin-bottom:18px;}
.tracker-top{display:flex; justify-content:space-between; align-items:center; margin-bottom:16px;}
.streak{font-family:var(--font-mono); color:var(--gold-bright); font-size:13px;}
.dose-row{display:flex; gap:14px; margin-bottom:16px;}
.dose-btn{
  flex:1; padding:16px; border-radius:6px; border:1px solid var(--line); background:var(--black-2);
  color:var(--cream-dim); cursor:pointer; text-align:center; font-family:var(--font-body); font-size:13.5px;
  transition:.2s;
}
.dose-btn.done{border-color:var(--gold); background:rgba(212,175,55,0.1); color:var(--gold-bright);}
.dose-btn .big{display:block; font-size:20px; margin-bottom:4px;}
.cal-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:5px; margin-top:6px;}
.cal-cell{aspect-ratio:1; border-radius:3px; background:var(--black-2); border:1px solid var(--line);}
.cal-cell.hit{background:var(--gold-deep); border-color:var(--gold);}
.photo-note{font-size:12.5px; color:var(--cream-dim); margin-top:14px; line-height:1.6;}
.photo-note b{color:var(--gold);}

/* ---------- SHOP ---------- */
.product-card{
  border:1px solid var(--gold-deep); border-radius:10px; padding:24px; background:linear-gradient(160deg, var(--panel), var(--black-2));
  display:flex; gap:22px; flex-wrap:wrap; margin-bottom:22px;
}
.product-visual{width:130px; height:170px; border-radius:8px; background:linear-gradient(180deg,#1a1508,#0a0805); border:1px solid var(--gold-deep); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.product-visual .bottle-label{font-family:var(--font-display); color:var(--gold-bright); writing-mode:vertical-rl; font-size:13px; letter-spacing:2px;}
.product-info{flex:1; min-width:220px;}
.product-info h3{font-family:var(--font-display); font-size:22px; color:var(--gold-bright); margin-bottom:4px;}
.product-info .sub{font-size:12px; color:var(--cream-dim); font-family:var(--font-mono); margin-bottom:12px;}
.price-row{display:flex; align-items:baseline; gap:10px; margin-bottom:14px;}
.price-now{font-family:var(--font-mono); font-size:24px; color:var(--gold);}
.price-old{font-family:var(--font-mono); font-size:14px; color:var(--cream-dim); text-decoration:line-through;}
.qty-row{display:flex; align-items:center; gap:10px; margin-bottom:14px;}
.qty-btn{width:30px; height:30px; border-radius:4px; border:1px solid var(--gold-deep); background:var(--black-2); color:var(--gold-bright); cursor:pointer;}
.scheme-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:20px 0;}
.scheme-card{border:1px solid var(--line); border-radius:6px; padding:14px; text-align:center; background:var(--panel); cursor:pointer; transition:.2s;}
.scheme-card:hover, .scheme-card.selected{border-color:var(--gold); background:rgba(212,175,55,0.08);}
.scheme-card .n{font-family:var(--font-display); font-size:20px; color:var(--gold-bright);}
.scheme-card .save{font-family:var(--font-mono); font-size:11px; color:var(--gold); margin-top:4px;}
.scheme-card .desc{font-size:11px; color:var(--cream-dim); margin-top:4px;}
.coupon-row{display:flex; gap:8px; margin:18px 0;}
.coupon-row input{
  flex:1; background:var(--black-2); border:1px solid var(--line); color:var(--cream); padding:11px 14px; border-radius:4px;
  font-family:var(--font-mono); font-size:13px;
}
.coupon-msg{font-size:12.5px; margin-top:6px; font-family:var(--font-mono);}
.coupon-msg.ok{color:var(--grow);}
.coupon-msg.err{color:var(--shed);}

/* cart drawer */
.drawer-overlay{position:fixed; inset:0; background:rgba(0,0,0,.6); display:none; z-index:90;}
.drawer-overlay.open{display:block;}
.drawer{
  position:fixed; right:0; top:0; bottom:0; width:360px; max-width:92vw; background:var(--black-2);
  border-left:1px solid var(--gold-deep); z-index:91; transform:translateX(100%); transition:.3s; padding:22px; overflow-y:auto;
}
.drawer.open{transform:translateX(0);}
.drawer h3{font-family:var(--font-display); color:var(--gold-bright); margin-bottom:16px;}
.cart-line{display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--line); font-size:13px;}
.cart-total{display:flex; justify-content:space-between; padding:14px 0; font-family:var(--font-mono); color:var(--gold-bright); font-size:16px;}
.close-drawer{background:none; border:none; color:var(--cream-dim); float:right; font-size:20px; cursor:pointer;}
.checkout-block{margin-top:16px; border-top:1px solid var(--line); padding-top:16px;}
.field{margin-bottom:10px;}
.field label{font-size:11px; color:var(--cream-dim); display:block; margin-bottom:4px; font-family:var(--font-mono);}
.field input{width:100%; background:var(--black); border:1px solid var(--line); color:var(--cream); padding:9px 10px; border-radius:4px; font-size:13px;}

/* ---------- CHATBOT ---------- */
.chat-fab{
  position:fixed; bottom:22px; right:22px; z-index:80; background:var(--gold); color:#100c04; border:none;
  border-radius:30px; padding:13px 18px; font-family:var(--font-body); font-weight:700; font-size:13px; cursor:pointer;
  box-shadow:0 6px 22px rgba(212,175,55,0.35); display:flex; align-items:center; gap:8px;
}
.chat-panel{
  position:fixed; bottom:78px; right:22px; z-index:80; width:340px; max-width:90vw; height:440px;
  background:var(--black-2); border:1px solid var(--gold-deep); border-radius:10px; display:none; flex-direction:column; overflow:hidden;
  box-shadow:0 10px 40px rgba(0,0,0,.6);
}
.chat-panel.open{display:flex;}
.chat-head{padding:12px 16px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center;}
.chat-head span{font-family:var(--font-display); color:var(--gold-bright); font-size:15px;}
.chat-body{flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px;}
.msg{max-width:85%; padding:9px 12px; border-radius:8px; font-size:13px; line-height:1.5;}
.msg.bot{background:var(--panel); border:1px solid var(--line); align-self:flex-start; color:var(--cream);}
.msg.user{background:var(--gold-deep); color:var(--cream); align-self:flex-end;}
.chat-input{display:flex; border-top:1px solid var(--line);}
.chat-input input{flex:1; background:var(--black); border:none; color:var(--cream); padding:12px; font-size:13px;}
.chat-input button{background:var(--gold); border:none; color:#100c04; padding:0 16px; cursor:pointer; font-weight:700;}
.typing{font-size:12px; color:var(--cream-dim); font-style:italic;}

footer{text-align:center; padding:40px 20px 10px; color:var(--cream-dim); font-family:var(--font-mono); font-size:11px;}
footer .g{color:var(--gold);}

@media(max-width:640px){
  .timeline{grid-template-columns:repeat(2,1fr);}
  .scheme-grid{grid-template-columns:1fr;}
  h1{font-size:29px;}
  .hero .brand-big{font-size:44px;}
}
