/* ===== Gaya Cantik — tokens ===== */
/* Kuis gaya personal */
.style-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 28px; align-items: start; }
.style-layout > .panel { margin-top: 0; }
.style-intro.panel { background: var(--plum); color: var(--powder); }
.style-intro .muted { color: #D9C8D8; font-size: .875rem; }
.style-intro ul { padding-left: 20px; margin: 24px 0; }
.style-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; margin-bottom: 16px; }
.style-quiz h2 { margin: 16px 0; line-height: 1.25; }
.style-quiz h3 { margin-top: 26px; }
.style-quiz progress { display: block; width: 100%; height: 8px; accent-color: var(--lipstick); }
.style-options { border: 0; padding: 0; margin: 24px 0; display: grid; gap: 12px; min-width: 0; }
.style-options label { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--mist); padding: 16px; border-radius: 14px; cursor: pointer; }
.style-options label:has(:checked) { background: var(--lipstick-tint); border-color: var(--lipstick); }
.style-options input { flex: none; width: 18px; height: 18px; accent-color: var(--lipstick); }
.style-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.style-palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-size: .875rem; }
.style-palette span { display: block; height: 64px; border-radius: 12px; border: 1px solid var(--mist); margin: 10px 0 6px; }
.style-outfits { padding-left: 24px; }
.style-outfits li { padding: 10px 0; }
.style-outfits strong { font-size: .8rem; color: var(--plum-soft); }
.style-tip { padding: 18px; border-radius: 14px; background: var(--pandan-tint); }
@media (max-width: 760px) { .style-layout { grid-template-columns: 1fr; } }

:root {
  --powder: #F7F0F4;      /* latar utama: bedak tabur */
  --white: #FFFCFD;
  --mist: #E6D8E2;        /* garis & batas */
  --plum: #2A1430;        /* tinta utama */
  --plum-soft: #5E4463;   /* teks sekunder */
  --lipstick: #C8213F;    /* aksi */
  --lipstick-dark: #A3172F;
  --turmeric: #EFAE2F;    /* perhatian */
  --turmeric-tint: #FCEFD2;
  --pandan: #2E6B52;      /* aman / cocok */
  --pandan-tint: #DDEEE5;
  --lipstick-tint: #F8DDE3;

  --display: "Gloock", Georgia, serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 5.6vw, 4.2rem);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--powder);
  color: var(--plum);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-family: var(--body); font-weight: 700; font-size: var(--step-0); }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--lipstick); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 var(--step-0)/1 var(--body);
  padding: 14px 22px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--lipstick); color: var(--white); }
.btn-primary:hover { background: var(--lipstick-dark); }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: var(--white); }

/* ===== Top bar (di atas hero gelap) ===== */
.topbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter);
  color: var(--powder);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: var(--step-1); }
.brand-mark { width: 22px; height: 28px; }
.brand-mark path:first-child { fill: var(--lipstick); }
.brand-mark .glint { stroke: var(--powder); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.topbar nav { display: flex; gap: 28px; font-weight: 500; font-size: var(--step--1); }
.topbar nav a { text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; opacity: .85; }
.topbar nav a:hover { border-bottom-color: var(--lipstick); opacity: 1; }
@media (max-width: 760px) { .topbar nav { display: none; } }

/* ===== Hero 3D ===== */
.hero3d {
  position: relative; overflow: hidden; color: var(--powder);
  background:
    radial-gradient(60% 70% at 78% 45%, #5A2550 0%, rgba(90,37,80,0) 70%),
    radial-gradient(50% 60% at 10% 100%, #3B1838 0%, rgba(59,24,56,0) 70%),
    var(--plum);
}
.hero3d::after { /* butiran halus agar latar tidak datar */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero3d-grid {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(16px, 4vw, 40px) var(--gutter) clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(16px, 4vw, 48px); align-items: center;
  min-height: min(760px, calc(100svh - 80px));
}
.hero3d h1 { font-size: var(--step-4); max-width: 14ch; color: #FFF7FA; }
.hero3d .lede { font-size: var(--step-1); line-height: 1.6; color: #DCC8D9; margin-top: 24px; max-width: 40ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.assurances { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--step--1); font-weight: 500; }
.assurances li { display: flex; align-items: center; gap: 8px; }
.assurances li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.hero3d .assurances { margin-top: 32px; color: #E9DCE7; }
.hero3d .assurances li::before { background: var(--turmeric); }

.stage { position: relative; height: clamp(420px, 52vw, 640px); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.stage canvas.ready { opacity: 1; }
.stage-glow { position: absolute; left: 12%; right: 8%; top: 12%; bottom: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(239,174,47,.22), rgba(200,33,63,.12) 55%, transparent); filter: blur(10px); }
.stage-floor { position: absolute; left: 20%; right: 16%; bottom: 9%; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10,2,10,.55), transparent); filter: blur(6px); }
.no-webgl .stage { display: none; }
.no-webgl .hero3d-grid { grid-template-columns: 1fr; }

@media (max-width: 900px) {
  .hero3d-grid { grid-template-columns: 1fr; min-height: 0; }
  .stage { height: 380px; margin-top: -8px; order: -1; }
  .hero3d .lede { font-size: 1.08rem; }
}
@media (max-width: 480px) {
  .stage { height: 320px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

.btn-lg { padding: 17px 28px; font-size: 1.02rem; }
.btn-light { background: rgba(255,247,250,.06); color: #FFF7FA; border-color: rgba(255,247,250,.45); backdrop-filter: blur(6px); }
.btn-light:hover { background: #FFF7FA; color: var(--plum); }
.btn-primary { box-shadow: 0 10px 24px -10px rgba(200,33,63,.7); }

/* ===== Kuis ===== */
.quiz-sec { padding: clamp(72px, 9vw, 120px) 0; }
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.quiz-copy h2 { font-size: var(--step-3); max-width: 16ch; }
.quiz-lede { color: var(--plum-soft); font-size: 1.08rem; margin-top: 16px; max-width: 42ch; }
.howto { list-style: none; counter-reset: h; padding: 0; margin: 36px 0 0; display: grid; gap: 4px; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 16px 0; border-top: 1.5px solid var(--mist); }
.howto li::before { content: counter(h); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--plum); display: grid; place-items: center; font-family: var(--display); font-size: 1.1rem; }
.howto span { color: var(--plum-soft); }
@media (max-width: 860px) { .quiz-grid { grid-template-columns: 1fr; } }

/* ===== The mirror ===== */
.mirror-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 460px; justify-self: center; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .mirror-wrap { transform: none; } }
.mirror {
  position: relative; width: 100%;
  border: 14px solid var(--plum);
  border-radius: 999px 999px 28px 28px;
  background:
    radial-gradient(120% 70% at 30% 10%, #FFFFFF 0%, rgba(255,255,255,0) 60%),
    linear-gradient(170deg, #F3E9F2 0%, #EADCE9 55%, #E2D0E2 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), inset 0 -30px 60px -30px rgba(42,20,48,.25), 0 40px 70px -30px rgba(42,20,48,.55);
  overflow: hidden;
  min-height: 560px;
}
.mirror-stand { width: 46%; height: 18px; background: var(--plum); border-radius: 0 0 18px 18px; }
.mirror-stand::after { content: ""; display: block; width: 140%; margin-left: -20%; height: 10px; margin-top: 18px; background: var(--plum); border-radius: 999px; opacity: .9; }

.sheen {
  position: absolute; inset: -20% -60%; pointer-events: none;
  background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.75) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: sweep 1.6s .4s cubic-bezier(.5,0,.2,1) forwards;
}
@keyframes sweep { to { transform: translateX(70%); } }
@media (prefers-reduced-motion: reduce) { .sheen { display: none; } }

.mirror-inner { position: relative; padding: 112px 28px 32px; }
@media (max-width: 420px) { .mirror { border-width: 10px; min-height: 540px; } .mirror-inner { padding: 92px 18px 24px; } }

.q-progress { display: flex; gap: 6px; margin: 0 6% 12px; }
.q-progress span { flex: 1; height: 4px; border-radius: 4px; background: rgba(42,20,48,.15); }
.q-progress span.done { background: var(--lipstick); }
.q-count { font-size: var(--step--1); color: var(--plum-soft); margin-bottom: 10px; }
.q-text { font-family: var(--display); font-size: var(--step-2); line-height: 1.2; margin-bottom: 20px; }
.q-options { display: grid; gap: 10px; }
.q-option {
  text-align: left; font: 500 var(--step-0)/1.35 var(--body); color: var(--plum);
  background: rgba(255,252,253,.85); border: 1.5px solid var(--mist); border-radius: 14px;
  padding: 13px 16px; cursor: pointer; transition: border-color .12s, background-color .12s;
}
.q-option:hover { border-color: var(--plum); background: var(--white); }
.q-option[aria-pressed="true"] { border-color: var(--lipstick); background: var(--lipstick-tint); }
.q-back { margin-top: 14px; background: none; border: 0; font: 500 var(--step--1) var(--body); color: var(--plum-soft); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }

.q-done { text-align: center; padding-top: 24px; }
.q-done .q-text { margin-bottom: 8px; }
.q-done p { color: var(--plum-soft); margin-bottom: 24px; }
.q-done .btn { margin: 4px; }

/* ===== Result ===== */
.result { background: var(--white); padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--mist); outline: none; }
.result-head { max-width: 60ch; }
.result-head h2 { font-size: var(--step-3); }
.result-desc { font-size: var(--step-1); line-height: 1.55; color: var(--plum-soft); margin-top: 16px; }

.routines { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.routine { border: 1.5px solid var(--mist); border-radius: 20px; padding: 28px; }
.routine:first-child { background: #FFF6E6; border-color: #F4DFB4; }
.routine:last-child { background: #F1EAF6; border-color: #DCCDE8; }
.routine h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); margin-bottom: 16px; }
.routine ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.routine li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(42,20,48,.1); }
.routine li:first-child { border-top: 0; }
.routine li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--plum); color: var(--white); font-weight: 700; font-size: var(--step--1); display: grid; place-items: center; }
.routine li strong { display: block; }
.routine li span { color: var(--plum-soft); font-size: .95rem; }
@media (max-width: 760px) { .routines { grid-template-columns: 1fr; } .routine { padding: 22px; } }

.ingredients-advice { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: 48px; }
.ingredients-advice h3 { margin-bottom: 12px; }
@media (max-width: 760px) { .ingredients-advice { grid-template-columns: 1fr; } }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; font-size: var(--step--1); font-weight: 600; }
.chips-good li { background: var(--pandan-tint); color: var(--pandan); }
.chips-avoid li { background: var(--turmeric-tint); color: #7A5200; }

.notes { margin-top: 40px; display: grid; gap: 12px; max-width: 70ch; }
.note { padding: 16px 20px; border-left: 4px solid var(--turmeric); background: var(--powder); border-radius: 0 12px 12px 0; }
.note.sun { border-left-color: var(--lipstick); }

.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ===== Section heads ===== */
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--plum-soft); margin-top: 14px; max-width: 58ch; font-size: 1.05rem; }
.section-head .fine { font-size: var(--step--1); margin-top: 10px; }

/* ===== Checker ===== */
.checker { padding: clamp(64px, 9vw, 112px) 0; }
.checker-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; margin-top: 40px; align-items: start; }
@media (max-width: 860px) { .checker-grid { grid-template-columns: 1fr; } }
.checker-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.checker-form textarea, .chat-form input, .waitlist input {
  width: 100%; font: 400 var(--step-0)/1.5 var(--body); color: var(--plum);
  background: var(--white); border: 1.5px solid var(--mist); border-radius: 16px; padding: 14px 16px;
}
.checker-form textarea { resize: vertical; min-height: 200px; }
.checker-form textarea:focus, .chat-form input:focus, .waitlist input:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(200,33,63,.25); }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

.checker-out { background: var(--white); border: 1.5px solid var(--mist); border-radius: 20px; padding: 24px; min-height: 260px; }
.checker-out .empty { color: var(--plum-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--step--1); color: var(--plum-soft); margin-bottom: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ing-list { list-style: none; padding: 0; margin: 0; }
.ing-list li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--mist); }
.ing-list li:first-child { border-top: 0; }
.ing-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.t-aktif { background: var(--lipstick); }
.t-rawat { background: var(--pandan); }
.t-awas { background: var(--turmeric); }
.ing-list strong { display: block; }
.ing-list small { color: var(--plum-soft); font-size: .92rem; }
.warn-block { margin-bottom: 20px; display: grid; gap: 10px; }
.warn { padding: 14px 16px; border-radius: 14px; background: var(--turmeric-tint); }
.warn.ok { background: var(--pandan-tint); }
.warn strong { display: block; margin-bottom: 2px; }
.summary-line { font-weight: 600; margin-bottom: 14px; }

/* ===== Ask (dark) ===== */
.ask { background: var(--plum); color: var(--powder); padding: clamp(64px, 9vw, 112px) 0; }
.ask .section-head p { color: #D9C8D8; }
.ask-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .ask-grid { grid-template-columns: 1fr; gap: 32px; } }
.chat { background: var(--powder); color: var(--plum); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-log { position: relative; height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 18px; line-height: 1.5; }
.msg.bot { background: var(--white); border: 1px solid var(--mist); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.user { background: var(--lipstick); color: var(--white); border-bottom-right-radius: 6px; align-self: flex-end; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: 8px; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
.msg a { color: var(--lipstick); font-weight: 600; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--plum-soft); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-suggest button { font: 500 var(--step--1) var(--body); color: var(--plum); background: transparent; border: 1.5px solid var(--mist); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.chat-suggest button:hover { border-color: var(--plum); }
.chat-form { display: flex; gap: 8px; }
.chat-form input { border-radius: 999px; }

/* ===== Soon ===== */
.soon { padding: clamp(64px, 9vw, 112px) 0; }
.soon-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .soon-grid { grid-template-columns: 1fr; gap: 40px; } }
.soon h2 { font-size: var(--step-3); margin-bottom: 24px; }
.soon-list { margin: 0; }
.soon-list div { padding: 18px 0; border-top: 1.5px solid var(--mist); }
.soon-list dt { font-weight: 700; font-size: 1.05rem; }
.soon-list dd { margin: 4px 0 0; color: var(--plum-soft); }
.waitlist { background: var(--white); border-radius: 24px; padding: 28px; border: 1.5px solid var(--mist); }
.waitlist h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.2; margin-bottom: 20px; }
.waitlist label { display: block; font-weight: 600; margin-bottom: 8px; }
.waitlist .btn { width: 100%; margin-top: 12px; }
.waitlist-msg { margin-top: 12px; font-weight: 600; color: var(--pandan); min-height: 1.6em; }

/* ===== Footer ===== */
.footer { background: var(--plum); color: #D9C8D8; padding: 48px 0; font-size: var(--step--1); }
.footer .wrap { display: grid; gap: 10px; }
.footer p { max-width: 70ch; }
.footer-brand { font-family: var(--display); font-size: var(--step-1); color: var(--powder); }

/* =========================================================
   HALAMAN DALAM & KOMPONEN BERSAMA
   ========================================================= */
.topbar.light { color: var(--plum); border-bottom: 1px solid var(--mist); max-width: none; }
.topbar.light .brand-mark .glint { stroke: var(--powder); }
.topbar nav a[aria-current="page"] { border-bottom-color: var(--lipstick); opacity: 1; }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar.light { padding: 18px var(--gutter); }

.page-head { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 24px; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 20ch; }
.page-head .lede { font-size: var(--step-1); color: var(--plum-soft); margin-top: 18px; max-width: 56ch; line-height: 1.55; }
.crumbs { font-size: var(--step--1); color: var(--plum-soft); margin-bottom: 18px; }
.crumbs a { color: inherit; }
.page-body { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) clamp(64px, 8vw, 104px); }

.panel { background: var(--white); border: 1.5px solid var(--mist); border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: var(--step-2); margin-bottom: 12px; }
.panel h3 { margin-bottom: 10px; }
.muted { color: var(--plum-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.field { margin-top: 20px; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 10px; padding: 0; }
fieldset.field { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--mist); background: var(--white); font-weight: 500; font-size: .95rem; }
.choice input:checked + span { border-color: var(--lipstick); background: var(--lipstick-tint); }
.choice input:focus-visible + span { outline: 3px solid var(--lipstick); outline-offset: 2px; }
select, input[type=number], input[type=date], .field textarea, .field input[type=text] {
  font: 400 var(--step-0)/1.4 var(--body); color: var(--plum); background: var(--white);
  border: 1.5px solid var(--mist); border-radius: 14px; padding: 12px 14px; width: 100%;
}
input[type=range] { width: 100%; accent-color: var(--lipstick); }

.form-msg { margin-top: 12px; font-weight: 600; min-height: 1.6em; }
.form-msg.ok { color: var(--pandan); }
.form-msg.err { color: var(--lipstick-dark); }

.shop-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--lipstick); text-decoration: none; }
.shop-link:hover { text-decoration: underline; }
.shop-link::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 7h12l-1 13H7L6 7zm3 0a3 3 0 0 1 6 0' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 7h12l-1 13H7L6 7zm3 0a3 3 0 0 1 6 0' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button { font: 600 .95rem var(--body); color: var(--plum); background: var(--white); border: 1.5px solid var(--mist); border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--plum); color: var(--white); border-color: var(--plum); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.checklist input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--pandan); flex: none; }
.checklist input:checked + span { color: var(--plum-soft); text-decoration: line-through; }

/* Kalender rutinitas */
.cal-wrap { margin-top: 48px; }
.cal-wrap h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); }
.cal-block { margin-top: 18px; }
.cal-block p { font-weight: 600; margin-bottom: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal div { border-radius: 12px; padding: 10px 8px; font-size: .82rem; line-height: 1.3; background: var(--powder); border: 1px solid var(--mist); min-height: 70px; }
.cal div b { display: block; font-size: .75rem; color: var(--plum-soft); font-weight: 600; margin-bottom: 4px; }
.cal div.on { background: var(--plum); color: var(--white); border-color: var(--plum); }
.cal div.on b { color: #D9C8D8; }
@media (max-width: 560px) { .cal { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Pratinjau kartu Story */
.story-preview { margin-top: 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.story-preview img { width: 140px; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(42,20,48,.6); }

/* Alat lainnya (beranda) */
.tools { padding: clamp(64px, 9vw, 112px) 0; background: var(--white); border-top: 1px solid var(--mist); }
.tools h2 { font-size: var(--step-3); }
.tools-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.tools-list li { border-top: 1.5px solid var(--mist); }
.tools-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 0; text-decoration: none; }
.tools-list strong { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.2; }
.tools-list span { grid-column: 1; color: var(--plum-soft); }
.tools-list a::after { content: ""; grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--plum);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13m-5-5 5 5-5 5' fill='none' stroke='%232A1430' stroke-width='2'/%3E%3C/svg%3E") center/18px no-repeat; transition: background-color .15s; }
.tools-list a:hover::after { background-color: var(--lipstick-tint); }
@media (max-width: 760px) { .tools-list { grid-template-columns: 1fr; } }

/* Shade */
.depths { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.depths label { cursor: pointer; text-align: center; font-size: .82rem; font-weight: 500; }
.depths input { position: absolute; opacity: 0; }
.depths i { display: block; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 1.5px var(--mist); margin-bottom: 6px; }
.depths input:checked + i { box-shadow: 0 0 0 3px var(--lipstick); }
.depths input:focus-visible + i { outline: 3px solid var(--plum); outline-offset: 3px; }
@media (max-width: 560px) { .depths { grid-template-columns: repeat(3, 1fr); } }
.shade-result { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
@media (max-width: 700px) { .shade-result { grid-template-columns: 1fr; } }
.face { width: 100%; max-width: 220px; aspect-ratio: 3/4; border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%; position: relative; box-shadow: inset -18px -24px 40px rgba(0,0,0,.12), inset 14px 18px 30px rgba(255,255,255,.25); }
.face .lip { position: absolute; left: 34%; right: 34%; top: 70%; height: 9%; border-radius: 50% 50% 60% 60%; }
.lip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.lip-row button { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--mist); background: var(--white); border-radius: 999px; padding: 6px 14px 6px 6px; font: 500 .9rem var(--body); color: var(--plum); cursor: pointer; }
.lip-row button i { width: 24px; height: 24px; border-radius: 50%; }
.lip-row button[aria-pressed="true"] { border-color: var(--plum); }
.code-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.code-chips span { font-weight: 700; padding: 6px 12px; border-radius: 10px; background: var(--plum); color: var(--white); }

/* Budget */
.budget-out table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.budget-out th, .budget-out td { text-align: left; padding: 12px 8px; border-top: 1px solid var(--mist); vertical-align: top; }
.budget-out th { font-size: .85rem; color: var(--plum-soft); font-weight: 600; border-top: 0; }
.budget-out td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-left: 6px; }
.tag.must { background: var(--lipstick-tint); color: var(--lipstick-dark); }
.tag.later { background: var(--turmeric-tint); color: #7A5200; }
.meter { height: 12px; border-radius: 999px; background: var(--powder); border: 1px solid var(--mist); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; background: var(--pandan); }
.meter.over i { background: var(--lipstick); }
.big-num { font-family: var(--display); font-size: var(--step-3); line-height: 1.1; }

/* Jurnal */
.entries { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.entry { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: start; padding: 16px; border: 1.5px solid var(--mist); border-radius: 18px; background: var(--white); }
.entry img, .entry .noimg { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; background: var(--powder); }
.entry .meta { font-size: .85rem; color: var(--plum-soft); }
.entry .scores { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.entry .scores span { font-size: .78rem; font-weight: 600; background: var(--powder); padding: 3px 8px; border-radius: 6px; }
.entry button { background: none; border: 0; color: var(--plum-soft); text-decoration: underline; cursor: pointer; font: 500 .85rem var(--body); }
.compare { position: relative; aspect-ratio: 3/4; max-width: 420px; border-radius: 18px; overflow: hidden; background: var(--powder); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.compare .bar { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 3px; background: var(--white); box-shadow: 0 0 8px rgba(0,0,0,.4); }
.compare-labels { display: flex; justify-content: space-between; max-width: 420px; font-size: .85rem; color: var(--plum-soft); margin-top: 6px; }
.range-row { display: grid; grid-template-columns: 130px 1fr 28px; gap: 12px; align-items: center; margin-top: 10px; }
.range-row output { font-weight: 700; text-align: right; }

/* Artikel & kamus */
.prose { max-width: 68ch; font-size: 1.06rem; line-height: 1.75; }
.prose h2 { font-size: var(--step-2); margin: 2em 0 .5em; line-height: 1.2; }
.prose h3 { margin: 1.6em 0 .4em; font-size: 1.08rem; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--lipstick); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .97rem; }
.prose th, .prose td { border-top: 1px solid var(--mist); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose th { font-weight: 700; }
.callout { background: var(--white); border: 1.5px solid var(--mist); border-left: 5px solid var(--lipstick); border-radius: 0 16px 16px 0; padding: 18px 22px; margin: 1.5em 0; }
.callout p:last-child { margin: 0; }
.article-meta { font-size: var(--step--1); color: var(--plum-soft); margin-top: 14px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.article-aside { position: sticky; top: 24px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }
.cta-box { background: var(--plum); color: var(--powder); border-radius: 24px; padding: 28px; }
.cta-box h2 { font-size: var(--step-2); color: #FFF7FA; margin-bottom: 10px; }
.cta-box p { color: #D9C8D8; margin-bottom: 18px; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-top: 1.5px solid var(--mist); }
.link-list a { display: block; padding: 20px 0; text-decoration: none; }
.link-list a strong { display: block; font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.2; }
.link-list a span { color: var(--plum-soft); display: block; margin-top: 6px; }
.link-list a:hover strong { color: var(--lipstick); }
.ing-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 40px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 2em; }
.facts div { background: var(--white); border: 1.5px solid var(--mist); border-radius: 16px; padding: 14px 16px; }
.facts b { display: block; font-size: .8rem; color: var(--plum-soft); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* Footer lengkap */
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { margin: 0 0 10px; font-size: .95rem; color: var(--powder); font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #D9C8D8; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(217,200,216,.2); display: grid; gap: 8px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Scan & AI */
.ai-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.ai-note { font-size: var(--step--1); color: var(--plum-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-top: 14px; }
.consent input { margin-top: 4px; accent-color: var(--lipstick); }

.ing-list strong a { color: inherit; text-decoration: underline; text-decoration-color: var(--mist); text-underline-offset: 3px; }
.ing-list strong a:hover { text-decoration-color: var(--lipstick); }
.routine li .shop-link { display: flex; width: fit-content; }

/* Dashboard personal */
[hidden] { display: none !important; }
.nav-toggle { display: none; }
.workspace { padding: 72px 0; background: #F4EDE7; }
.workspace-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:32px; }
.workspace-heading h2 { font-size:clamp(2rem,4vw,3rem); margin-bottom:14px; }
.workspace-kicker { font-size:.68rem; font-weight:700; letter-spacing:.13em; margin-bottom:12px; }
.workspace-date { white-space:nowrap; font-size:.85rem; border:1px solid var(--mist); border-radius:999px; padding:10px 16px; }
.workspace-grid { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:28px; align-items:start; }
.workspace-main input[type=search] { width:100%; padding:18px 20px; border:1px solid var(--mist); border-radius:16px; font:inherit; background:var(--white); color:var(--plum); }
.workspace-filters { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.workspace-filters button { border:1px solid var(--mist); background:transparent; border-radius:999px; padding:10px 16px; font:500 .85rem var(--body); color:var(--plum); cursor:pointer; }
.workspace-filters button[aria-pressed=true] { background:var(--plum); color:var(--white); border-color:var(--plum); }
#tool-count { font-size:.8rem; margin-bottom:12px; }
.workspace-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.workspace-card { padding:24px; background:var(--white); border:1px solid var(--mist); border-radius:20px; }
.workspace-card-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.workspace-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:14px; background:var(--powder); font-family:var(--display); }
.workspace-card-top button { border:0; background:transparent; color:var(--lipstick); font-size:1.7rem; cursor:pointer; width:44px; height:44px; border-radius:50%; }
.workspace-card h3 { font-family:var(--display); font-size:1.4rem; margin-bottom:10px; font-weight:400; }
.workspace-card h3 a { text-decoration:none; }
.workspace-card h3 a:hover { text-decoration:underline; }
.workspace-card .muted { font-size:.9rem; }
.workspace-empty { grid-column:1/-1; padding:28px; border:1px dashed var(--plum-soft); border-radius:16px; }
.workspace-sidebar { display:grid; gap:20px; }
.workspace-note { background:var(--plum); color:var(--powder); border-radius:22px; padding:28px; }
.workspace-note h3 { font-family:var(--display); font-size:1.7rem; font-weight:400; line-height:1.25; margin-bottom:14px; }
.workspace-note .btn { margin-top:20px; }
.workspace-sidebar .panel { margin:0; padding:24px; }
.daily-panel .muted { font-size:.8rem; }
#daily-count { margin-top:16px; font-size:.8rem; }
#daily-progress { width:100%; height:8px; accent-color:var(--pandan); }
#daily-list { list-style:none; padding:0; margin:16px 0; }
#daily-list li { display:flex; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid var(--mist); }
#daily-list label { display:flex; gap:10px; align-items:center; flex:1; min-width:0; font-size:.9rem; }
#daily-list span { overflow-wrap:anywhere; }
#daily-list input { accent-color:var(--pandan); width:18px; height:18px; flex:none; }
#daily-list input:checked + span { text-decoration:line-through; color:var(--plum-soft); }
#daily-list button { width:36px; height:36px; border:0; background:transparent; color:var(--plum-soft); cursor:pointer; font-size:1.4rem; }
#daily-form { display:grid; gap:10px; margin-bottom:16px; }
#daily-input { min-width:0; width:100%; border:1px solid var(--mist); border-radius:12px; padding:12px; font:inherit; }
.workspace-storage { display:flex; align-items:center; justify-content:space-between; gap:20px; border-top:1px solid var(--mist); margin-top:28px; padding-top:20px; font-size:.8rem; color:var(--plum-soft); }
.workspace-storage p { max-width:65ch; }
@media (max-width:960px) { .workspace-grid { grid-template-columns:1fr; } .workspace-sidebar { grid-template-columns:1fr 1fr; align-items:start; } .topbar nav { gap:14px; } }
@media (max-width:760px) {
  .topbar, .topbar-inner { flex-wrap:wrap; }
  .nav-toggle { display:block; margin-left:auto; border:1px solid currentColor; background:transparent; color:inherit; font:600 .875rem var(--body); padding:10px 16px; border-radius:999px; cursor:pointer; }
  .topbar nav.is-open { display:flex; flex-basis:100%; flex-direction:column; gap:6px; padding:12px 0; }
  .topbar nav a { padding:10px; }
  .workspace-heading, .workspace-storage { flex-direction:column; }
  .workspace-sidebar { grid-template-columns:1fr; }
}
@media (max-width:480px) { .workspace-cards { grid-template-columns:1fr; } .workspace { padding:48px 0; } }
