/* Karibo — sistem desain storefront.
   Warna diambil dari logo: emas #B89555 & cokelat #35231C. Font sementara (ganti sesuai brandbook):
   Fraunces (judul) + Plus Jakarta Sans (isi). */
:root {
  /* Palet resmi brandbook (hal. 31): Espresso Brown, Antique Gold, Black, White */
  --gold: #B89555;
  --gold-deep: #8A6C36;
  --brown: #35231C;
  --bg: #FBF6EE;
  --surface: #FFFFFF;
  --surface-2: #F3E9DA;
  --ink: #2A1A12;
  --muted: #6F5B4C;
  --line: #E7D9C4;
  --primary: var(--brown);
  --on-primary: #FBF3E6;
  --accent: var(--gold);
  --accent-text: var(--gold-deep);
  --ok: #2E7650; --ok-bg: #E3F1E8;
  --warn: #9A6410; --warn-bg: #FBEFD9;
  --bad: #A93D2B; --bad-bg: #F8E3DE;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(56, 32, 23, .06), 0 8px 24px rgba(56, 32, 23, .07);
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #160D09; --surface: #21140E; --surface-2: #2B1B13; --ink: #F4E9DA; --muted: #BFA992; --line: #3C2A1F;
    --primary: var(--gold); --on-primary: #24130C; --accent: #C9A465; --accent-text: #D6B57A;
    --ok: #7FCB9F; --ok-bg: #1B3326; --warn: #E8B45C; --warn-bg: #3A2A12; --bad: #F09886; --bad-bg: #3D1C16;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #160D09; --surface: #21140E; --surface-2: #2B1B13; --ink: #F4E9DA; --muted: #BFA992; --line: #3C2A1F;
  --primary: var(--gold); --on-primary: #24130C; --accent: #C9A465; --accent-text: #D6B57A;
  --ok: #7FCB9F; --ok-bg: #1B3326; --warn: #E8B45C; --warn-bg: #3A2A12; --bad: #F09886; --bad-bg: #3D1C16;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.section { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 900px) { .section { padding-top: 84px; padding-bottom: 84px; } }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; display: inline-block; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--brown); color: #F3E3C8; text-align: center; font-size: .85rem; padding: 8px 16px; }
:root[data-theme="dark"] .announce { background: #2B1B13; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; letter-spacing: .01em; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; } :root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
.nav { display: none; gap: 2px; }
.header-cta { display: none !important; }
@media (min-width: 1100px) { .header-cta { display: inline-flex !important; } }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn { display: none !important; } }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #24130C; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(20, 10, 6, .5); }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); overflow-y: auto; }
.drawer .panel a { padding: 12px 10px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.drawer .panel a:hover { background: var(--surface-2); }

/* ---------- Buttons, chips, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font: 600 .97rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { opacity: .92; }
.btn-gold { background: var(--gold); color: #24130C; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: #FBF3E6; color: var(--brown); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 .9rem var(--font-body); cursor: pointer; text-decoration: none; }
.chip.active { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; background: var(--surface-2); color: var(--muted); }
.badge-gold { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--accent-text); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
@media (min-width: 900px) { .hero .grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding-top: 72px; padding-bottom: 88px; } }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.hero-art { max-width: 460px; width: 100%; justify-self: center; position: relative; aspect-ratio: 4 / 5; border-radius: 28px; background: var(--brown); overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow); }
.hero-art img.logo-mark { width: 72%; height: auto; }
.hero-art img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(184, 149, 85, .35); border-radius: 20px; pointer-events: none; }

/* ---------- Cards & grids ---------- */
.grid-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (max-width: 520px) { .grid-cards.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-pad { padding: 22px; }
.p-card { display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.p-cover { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-cover .ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--brown); }
.p-cover .ph img { width: 46%; height: auto; object-fit: contain; opacity: .9; }
.p-cover .tag { position: absolute; top: 10px; left: 10px; }
.p-card.soon .p-cover img:not(.keep) { filter: blur(10px) saturate(.7); transform: scale(1.1); }
.p-card.soon .p-cover::after { content: ''; position: absolute; inset: 0; background: rgba(56, 32, 23, .35); }
.p-card.soon .soon-label { position: absolute; inset: auto 0 14px; text-align: center; z-index: 1; color: #FBF3E6; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.p-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-body .t { font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.p-body .s { font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 700; margin-top: auto; padding-top: 8px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price s { color: var(--muted); font-weight: 400; font-size: .85rem; }
.post-card { display: grid; gap: 0; text-decoration: none; }
.post-card .p-cover { aspect-ratio: 16 / 10; }

/* ---------- Values / feature list ---------- */
.values { display: grid; gap: 16px; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value .num { font-family: var(--font-head); color: var(--accent-text); font-size: 1.5rem; margin-bottom: 6px; }

/* ---------- Membership ---------- */
.band { background: var(--brown); color: #F4E7D3; }
:root[data-theme="dark"] .band { background: #24150E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #24150E; } }
.band .muted { color: #CDB79C; }
.band .eyebrow { color: var(--gold); }
.plans { display: grid; gap: 16px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(var(--n, 3), 1fr); } }
.plan { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.plan.hl { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.plan .ribbon { position: absolute; top: -12px; left: 22px; }
.plan .amount { font-family: var(--font-head); font-size: 2rem; font-weight: 600; }
.plan .per { color: var(--muted); font-size: .9rem; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.perks li { position: relative; padding-left: 30px; }
.perks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 999px; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2324130C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Forms ---------- */
label.field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
label.field small { font-weight: 400; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 400 1rem var(--font-body); }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form { display: grid; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brown); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 220px; }
.alert { padding: 12px 16px; border-radius: 12px; font-size: .93rem; }
.alert-bad { background: var(--bad-bg); color: var(--bad); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-info { background: var(--surface-2); color: var(--ink); }

/* ---------- Product detail / reading ---------- */
.detail { display: grid; gap: 28px; padding: 28px 0 64px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1fr 1fr; gap: 56px; padding: 48px 0 96px; align-items: start; } .detail .buybox { position: sticky; top: 92px; } }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 64px; height: 80px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: none; }
.thumbs button.active { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.big-price { font-family: var(--font-head); font-size: 2rem; font-weight: 600; }
.lessons { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lessons li { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.lessons li:first-child { border-top: 0; }
.lessons li .n { flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--surface-2); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.lessons li .d { margin-left: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.lessons li.clickable { cursor: pointer; }
.lessons li.clickable:hover, .lessons li.active { background: var(--surface-2); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 3px solid var(--gold); color: var(--muted); }
.prose a { color: var(--accent-text); }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lock-box { padding: 28px; border-radius: var(--radius); background: var(--surface-2); text-align: center; display: grid; gap: 12px; justify-items: center; }
.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 64px; padding: 10px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.countdown b { display: block; font-family: var(--font-head); font-size: 1.6rem; }
.countdown span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Lists, tabs, rows ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs button { flex: none; padding: 12px 16px; border: 0; background: none; font: 600 .95rem var(--font-body); color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.tabs button.active { color: var(--ink); border-color: var(--accent); }
.rows { display: grid; gap: 10px; }
.row { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.row .thumb { flex: none; width: 58px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--brown); display: grid; place-items: center; }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row .thumb img.mark { width: 60%; height: auto; object-fit: contain; }
.row .grow { flex: 1; min-width: 0; }
.row .grow b { display: block; overflow: hidden; text-overflow: ellipsis; }
.summary { display: grid; gap: 10px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { font-weight: 700; font-size: 1.15rem; padding-top: 10px; border-top: 1px solid var(--line); }
.pay-opt { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.pay-opt input { accent-color: var(--brown); width: 18px; height: 18px; }
.split { display: grid; gap: 24px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; align-items: start; } .split > aside { position: sticky; top: 92px; } }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.empty img { width: 64px; opacity: .5; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; min-height: 18px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: var(--brown); color: #E9D9C2; }
:root[data-theme="dark"] .site-footer { background: #0F0805; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #0F0805; } }
.site-footer .cols { display: grid; gap: 28px; padding: 48px 0 28px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.4fr repeat(var(--fcols, 2), minmax(0, 1fr)); } }
.site-footer a { color: #E9D9C2; text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--gold); }
.site-footer .links { display: grid; gap: 8px; font-size: .93rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.site-footer .legal { border-top: 1px solid rgba(233, 217, 194, .15); padding: 18px 0 28px; font-size: .82rem; opacity: .7; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; border: 1px solid rgba(233, 217, 194, .25); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Toast ---------- */
.toast-host { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast { padding: 13px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); font-size: .93rem; animation: up .2s ease-out; }
.toast.bad { background: var(--bad); color: #fff; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }

.page-head { padding-top: 40px; padding-bottom: 8px; }
@media (min-width: 900px) { .page-head { padding-top: 64px; padding-bottom: 12px; } }
.stack > * + * { margin-top: 14px; }
.gap-lg > * + * { margin-top: 28px; }

/* ---------- Hair Test & Hair Profile (brandbook hal. 48–49) ---------- */
.ht-wrap { position: relative; padding: 36px 0 72px; background:
  radial-gradient(120% 60% at 100% 100%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%),
  radial-gradient(90% 50% at 0% 100%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 60%); }
.ht-head { text-align: center; max-width: 720px; margin: 0 auto 24px; }
.ht-head h1 { margin-bottom: 8px; }
.ht-head p { color: var(--muted); margin: 0; }
.ht-card { max-width: 780px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .ht-card { padding: 28px 32px; } }
.ht-progress { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 6px; margin: 8px 0 22px; }
.ht-progress i { height: 7px; border-radius: 99px; background: var(--surface-2); }
.ht-progress i.on { background: var(--primary); }
.ht-step-label { font-size: .82rem; } .ht-step-label b { font-weight: 700; }
.ht-q { padding-top: 20px; border-top: 1px solid var(--line); }
.ht-q + .ht-q { margin-top: 22px; }
.ht-q h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 0 0 4px; }
.ht-q .hint { font-size: .88rem; color: var(--muted); margin: 0 0 14px; }
.ht-opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ht-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.ht-opt:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.ht-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--gold) 13%, var(--surface)); }
.ht-opt input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--muted); border-radius: 5px; background: var(--surface); display: grid; place-items: center; }
.ht-opt input[type="radio"] { border-radius: 99px; }
.ht-opt input:checked { background: var(--primary); border-color: var(--primary); }
.ht-opt input:checked::after { content: ''; width: 10px; height: 6px; border: solid var(--on-primary); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.ht-opt input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 99px; background: var(--on-primary); transform: none; }
.ht-opt span b { display: block; font-weight: 600; font-size: .95rem; }
.ht-opt span small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.ht-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.ht-foot { text-align: center; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.ht-intro ul { text-align: left; max-width: 460px; margin: 18px auto; }

.hp-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
/* Posisi kotak Ringkasan Rambut diatur admin: kiri, kanan, atas, atau bawah. */
@media (min-width: 900px) {
  .hp-grid.sum-left { grid-template-columns: 330px minmax(0, 1fr); align-items: start; }
  .hp-grid.sum-right { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
  .hp-grid.sum-left > aside, .hp-grid.sum-right > aside { position: sticky; top: 92px; }
}
.hp-summary.wide .hp-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); column-gap: 24px; }
.hp-summary.wide .hp-item:last-of-type { border-bottom: 1px solid rgba(244, 231, 211, .12); }
.hp-summary { background: var(--brown); color: #F4E7D3; border-radius: 18px; padding: 22px; position: relative; overflow: hidden; }
:root[data-theme="dark"] .hp-summary { background: #2B1B13; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hp-summary { background: #2B1B13; } }
.hp-summary h2 { font-size: 1.45rem; padding-bottom: 14px; border-bottom: 1px solid rgba(244, 231, 211, .18); margin-bottom: 4px; }
.hp-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(244, 231, 211, .12); }
.hp-item:last-of-type { border-bottom: 0; }
.hp-item .ic { flex: none; width: 34px; height: 34px; border-radius: 99px; background: rgba(184, 149, 85, .22); color: var(--gold); display: grid; place-items: center; }
.hp-item .ic svg { width: 18px; height: 18px; }
.hp-item small { display: block; font-size: .76rem; opacity: .7; }
.hp-item b { font-weight: 600; font-size: .95rem; }
.hp-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.hp-panel h2 { font-size: 1.45rem; }
.hp-prio { display: grid; gap: 10px; }
.hp-prio details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.hp-prio summary { display: flex; gap: 14px; align-items: center; padding: 13px 14px; cursor: pointer; list-style: none; }
.hp-prio summary::-webkit-details-marker { display: none; }
.hp-prio summary::after { content: '›'; margin-left: auto; font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
.hp-prio details[open] summary::after { transform: rotate(90deg); }
.hp-prio .num { flex: none; width: 40px; height: 40px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--accent-text); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; }
.hp-prio summary b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.hp-prio summary span span { display: block; font-size: .85rem; color: var(--muted); }
.hp-prio .body { padding: 0 16px 16px 68px; font-size: .93rem; }
.hp-prio .body ol { margin: 0 0 8px; padding-left: 1.1em; }
.hp-prio .why { font-size: .8rem; color: var(--muted); font-style: italic; }
.hp-mats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.hp-mat { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); text-decoration: none; }
.hp-mat .th { flex: none; width: 88px; height: 100px; border-radius: 10px; overflow: hidden; background: var(--brown); display: grid; place-items: center; }
.hp-mat .th img { width: 100%; height: 100%; object-fit: cover; }
.hp-mat .th img.mark { width: 55%; height: auto; }
.hp-mat b { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.25; margin: 4px 0; }
.hp-mat p { font-size: .82rem; color: var(--muted); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-mat .go { font-size: .82rem; font-weight: 600; color: var(--accent-text); }
.hp-note { font-size: .82rem; font-style: italic; color: var(--muted); }

/* Pintu masuk admin di footer — hanya dirender untuk akun admin, sengaja dibuat samar. */
.admin-entry { text-align: center; padding: 0 0 18px; }
.admin-entry a { font-size: .74rem; opacity: .35; letter-spacing: .04em; }
.admin-entry a:hover, .admin-entry a:focus-visible { opacity: 1; }
