@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Mulish:wght@400;600;700&display=swap");

/* dr soap design system tokens (Paper = default, Bark = dark sections) */
:root {
  --leaf: #88a034; --moss: #5e6738; --sage: #87966e; --forest: #4e5b31; --bark: #3d322c; --clay: #654534;
  --sand: #cdc4aa; --stone: #d1ccbd; --white: #ffffff; --ink: #333333; --black: #000000; --paper: #efeeea;

  --surface: var(--paper); --surface-raised: var(--white); --surface-tint: var(--stone); --surface-inverse: var(--bark);
  --text: var(--ink); --text-muted: var(--clay); --text-inverse: var(--white);
  --accent: var(--forest); --on-accent: var(--white); --accent-text: var(--forest);
  --highlight: var(--leaf); --on-highlight: var(--black);
  --line: var(--sand); --line-strong: var(--moss); --focus: var(--forest);

  --font-display: "Helvetica Neue LT Std", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-label: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: Mulish, Muli, "Helvetica Neue", Arial, sans-serif;
  --font-scent: Roadblock, Georgia, "Times New Roman", serif;
  --font-mono: Consolas, "SFMono-Regular", Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --radius-none: 0; --radius-sm: 4px; --radius-md: 12px; --radius-full: 9999px;
}
[data-theme="dark"] {
  --surface: var(--bark); --surface-raised: var(--clay); --surface-tint: var(--forest); --surface-inverse: var(--sand);
  --text: var(--white); --text-muted: var(--stone); --text-inverse: var(--bark);
  --accent: var(--leaf); --on-accent: var(--black); --accent-text: var(--sand);
  --line: var(--moss); --line-strong: var(--sage); --focus: var(--sand);
  background: var(--surface); color: var(--text);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 24px; }
img { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--on-accent); padding: var(--space-3) var(--space-4); z-index: 10; }
.skip:focus { left: var(--space-4); top: var(--space-4); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* type roles */
.t-display { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 8vw, 64px); line-height: 1.0; letter-spacing: -0.04em; }
.t-h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 5vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.t-h2 { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 32px; letter-spacing: -0.02em; }
.t-h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
.t-label { font-family: var(--font-label); font-size: 16px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; }
.t-lg { font-size: 18px; line-height: 28px; }
.t-sm { font-size: 14px; line-height: 20px; }
.t-data { font-family: var(--font-mono); font-size: 13px; line-height: 18px; }
.muted { color: var(--text-muted); }

/* components */
.dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: var(--radius-full); background: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 48px; padding: 4px var(--space-5) 0; border: 0; border-radius: var(--radius-full); cursor: pointer; text-decoration: none; font-family: var(--font-label); font-size: 18px; line-height: 18px; letter-spacing: 0.06em; text-transform: uppercase; transition: filter .15s ease, background-color .15s ease; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-secondary:hover { background: var(--surface-tint); }
.btn-ghost { background: transparent; color: var(--accent-text); padding-left: var(--space-2); padding-right: var(--space-2); }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-sm { height: 40px; padding: 3px var(--space-4) 0; font-size: 16px; line-height: 16px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: none; }
.tag { display: inline-flex; align-items: center; padding: 5px var(--space-2) 3px; border-radius: var(--radius-sm); font-family: var(--font-label); font-size: 13px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.tag-new { background: var(--surface-inverse); color: var(--text-inverse); }
.tag-best { background: var(--highlight); color: var(--on-highlight); }
.badge { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3) 6px; border-radius: var(--radius-full); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-family: var(--font-label); font-size: 16px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.badge .dot { margin-top: -2px; color: var(--accent); }

.trustbar { list-style: none; margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-4); background: var(--surface-inverse); color: var(--text-inverse); font-family: var(--font-label); font-size: 16px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.trustbar li { padding-top: 2px; white-space: nowrap; display: flex; align-items: center; gap: var(--space-2); }
.trustbar .dot { background: var(--highlight); }

/* layout */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-4); }
.narrow { max-width: 720px; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: var(--space-4); }
.logo { width: 168px; height: auto; }
.section { padding-block: var(--space-7); }
@media (min-width: 800px) { .section { padding-block: var(--space-8); } }
.tint { background: var(--surface-tint); }

/* hero */
.hero { padding-block: var(--space-7) var(--space-8); }
.hero-grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-8); } .hero { padding-block: var(--space-8) var(--space-9); } }
.hero .t-label { margin-bottom: var(--space-4); display: block; color: var(--accent-text); }
.hero .t-display { margin-bottom: var(--space-5); }
.hero .t-lg { max-width: 520px; margin-bottom: var(--space-5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.hero-tile { background: var(--surface-tint); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-tile img { width: 86%; height: 86%; object-fit: contain; }
[data-theme="dark"] .hero-tile { background: var(--paper); }
[data-theme="dark"] .hero-tile:nth-child(n) { background: var(--paper); }
.hero-tile:nth-child(2) { background: var(--leaf); }
.hero-tile:nth-child(3) { background: var(--sand); }

/* packshots yang punya latar putih menyatu dengan panel berwarna */
.hero-tile img, .qimg img, .pick .ph img { mix-blend-mode: multiply; }
.nb { white-space: nowrap; }

/* position cards */
.sec-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.cards { display: grid; gap: var(--space-5); }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.pcard { background: var(--surface-raised); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.pcard-meta { font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: var(--text-muted); }
.pcard ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.pcard li { display: flex; gap: var(--space-2); font-size: 14px; line-height: 20px; }
.pcard li .dot { margin-top: 7px; color: var(--accent); }
.pcard .grow { flex: 1; }
.kicker { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-2); display: block; }

/* how it works */
.steps { display: grid; gap: var(--space-5); counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 1.5px solid var(--line-strong); padding-top: var(--space-4); display: grid; gap: var(--space-2); }
.step .mins { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }

/* progress */
.progress { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-5) 0 var(--space-4); }
.prog-item { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-label); font-size: 16px; letter-spacing: 0.06em; color: var(--text-muted); padding-top: 2px; }
.prog-item .dot { background: var(--line-strong); }
.prog-item[aria-current="step"] { color: var(--text); }
.prog-item[aria-current="step"] .dot { background: var(--accent); width: 10px; height: 10px; }
.prog-item.passed .dot { background: var(--accent); }
.bar { height: 6px; background: var(--surface-tint); border-radius: var(--radius-full); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: var(--radius-full); transition: width .25s ease; }

/* forms */
.card { background: var(--surface-raised); border-radius: var(--radius-md); padding: var(--space-4); }
@media (min-width: 700px) { .card { padding: var(--space-5); } }
.form-grid { display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: var(--space-2); align-content: start; }
.field > label, .field > .lbl { font-weight: 700; font-size: 14px; line-height: 20px; }
.field .opt-note { font-weight: 400; color: var(--text-muted); }
.help { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.err { font-size: 14px; line-height: 20px; color: var(--text); font-weight: 700; display: flex; gap: var(--space-2); align-items: flex-start; }
.err::before { content: "!"; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: var(--radius-full); background: var(--accent); color: var(--on-accent); font-size: 12px; line-height: 18px; text-align: center; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=number], select, textarea { width: 100%; min-height: 48px; padding: var(--space-3); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--text); font: inherit; }
textarea { min-height: 160px; resize: vertical; line-height: 24px; }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .drop { border-color: var(--accent); border-width: 2px; }
.drop { display: grid; gap: var(--space-2); justify-items: start; padding: var(--space-4); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface); }
.drop input[type=file] { font: inherit; max-width: 100%; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 14px; line-height: 20px; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }

/* interview */
.qhead { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.qhead .t-h1 { margin-top: var(--space-1); }
.qcount { display: flex; justify-content: space-between; margin-top: var(--space-2); }
.qcard { display: grid; gap: var(--space-5); }
.qtext { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 30px; letter-spacing: -0.01em; }
.qprompt { font-size: 16px; font-weight: 700; }
.qimg { background: var(--surface-tint); width: 120px; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.qimg img { width: 88%; height: 88%; object-fit: contain; }
.q-row { display: flex; gap: var(--space-4); align-items: flex-start; }
.opts { display: grid; gap: var(--space-3); border: 0; margin: 0; padding: 0; }
.opt { position: relative; display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); min-height: 56px; border-radius: var(--radius-md); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); cursor: pointer; }
.opt:hover { background: var(--surface-tint); }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt .ring { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: var(--radius-full); box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--surface-raised); }
.opt:has(input:checked) { background: var(--surface-raised); box-shadow: inset 0 0 0 2.5px var(--accent); }
.opt:has(input:checked) .ring { box-shadow: inset 0 0 0 6px var(--accent); }
.opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.wc { display: flex; justify-content: space-between; gap: var(--space-3); font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--text-muted); }
.wc b { color: var(--accent-text); font-weight: 400; }
.nav { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }

.picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); border: 0; margin: 0; padding: 0; }
@media (min-width: 640px) { .picker { grid-template-columns: repeat(4, 1fr); } }
.pick { position: relative; display: flex; flex-direction: column; gap: var(--space-2); cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick .ph { background: var(--surface-tint); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.pick .ph img { width: 84%; height: 84%; object-fit: contain; }
.pick .nm { font-family: var(--font-display); font-weight: 500; font-size: 14px; line-height: 18px; }
.pick .sc { font-family: var(--font-scent); font-size: 16px; line-height: 20px; }
.pick .sz { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.pick:has(input:checked) .ph { box-shadow: inset 0 0 0 4px var(--accent); background: var(--highlight); }
.pick:has(input:focus-visible) .ph { outline: 2px solid var(--focus); outline-offset: 2px; }
.pick .sel { display: none; align-self: flex-start; }
.pick:has(input:checked) .sel { display: inline-flex; }

/* recorder */
.rec { display: grid; gap: var(--space-3); }
.rec-stage { position: relative; background: var(--bark); aspect-ratio: 4 / 3; max-width: 560px; overflow: hidden; }
.rec-video { width: 100%; height: 100%; object-fit: cover; background: var(--bark); transform: scaleX(-1); }
.rec-video.playback { transform: none; }
.rec-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-5); color: var(--white); font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 26px; }
.rec-overlay.count { font-size: 96px; font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.rec-chip { position: absolute; top: var(--space-3); left: var(--space-3); display: inline-flex; align-items: center; gap: var(--space-2); padding: 5px var(--space-3) 3px; border-radius: var(--radius-full); background: var(--bark); color: var(--white); font-family: var(--font-label); font-size: 16px; letter-spacing: 0.06em; }
.rec-chip .dot { background: var(--leaf); width: 8px; height: 8px; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .rec-chip .dot { animation: none; } .bar > i { transition: none; } }
.rec-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.rec-ok { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: 14px; }
.rec-ok .dot { color: var(--accent); width: 10px; height: 10px; }

/* review / done */
.rlist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ritem { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.ritem .q { font-size: 14px; line-height: 20px; }
.ritem .a { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--text-muted); margin-top: 2px; }
.status { font-family: var(--font-label); font-size: 14px; letter-spacing: 0.08em; padding: 5px var(--space-2) 3px; border-radius: var(--radius-sm); white-space: nowrap; }
.status.ok { background: var(--surface-inverse); color: var(--text-inverse); }
.status.no { background: var(--highlight); color: var(--on-highlight); }
.done { padding-block: var(--space-8) var(--space-9); }
.done .t-display { margin: var(--space-4) 0 var(--space-5); }
.done-grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .done-grid { grid-template-columns: 1.2fr 1fr; align-items: center; } }

/* equipment check */
.equip { display: grid; gap: var(--space-4); }
.equip .rec-stage { max-width: 420px; }

footer { background: var(--bark); color: var(--white); padding: var(--space-7) 0; }
footer .wrap { display: grid; gap: var(--space-5); }
@media (min-width: 800px) { footer .wrap { grid-template-columns: auto 1fr; gap: var(--space-8); align-items: center; } }
footer .logo-w { width: 200px; height: auto; }
footer p { color: var(--stone); font-size: 14px; line-height: 20px; max-width: 560px; }
footer .pv { margin-top: var(--space-3); font-family: var(--font-mono); font-size: 12px; line-height: 16px; }

/* soal bertimer */
.timer { display: grid; gap: var(--space-2); }
.timer .top { display: flex; justify-content: space-between; align-items: center; }
.timer b { font-family: var(--font-mono); font-size: 18px; line-height: 24px; font-weight: 400; padding: 2px 12px; border-radius: var(--radius-full); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.timer.low b { background: var(--highlight); color: var(--on-highlight); box-shadow: none; }
.timer.low .bar > i { background: var(--highlight); }
.notice { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--highlight); color: var(--on-highlight); font-weight: 700; font-size: 14px; line-height: 20px; margin-bottom: var(--space-4); }
