/* Static merchant-verification site for tryoutaja.web.id. Disposable: replaced by the real app at launch.
   Visual motif: the bubbles of an exam answer sheet (LJK) and a CAT-style score readout. */

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --ink: #141b2d;
  --muted: #586179;
  --line: #dce1ec;
  --accent: #c2255c;
  --accent-ink: #ffffff;
  --accent-soft: #fce7ef;
  --pass: #157f52;
  --pass-soft: #e3f4ec;
  --shadow: 0 1px 2px rgb(20 27 45 / 0.06), 0 8px 24px rgb(20 27 45 / 0.06);
  --radius: 14px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1320;
    --surface: #151c2d;
    --surface-2: #1c2438;
    --ink: #e7ebf4;
    --muted: #a1a9bd;
    --line: #2a3349;
    --accent: #f0679a;
    --accent-ink: #1a0a11;
    --accent-soft: #3a1626;
    --pass: #45c08a;
    --pass-soft: #12301f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1320;
  --surface: #151c2d;
  --surface-2: #1c2438;
  --ink: #e7ebf4;
  --muted: #a1a9bd;
  --line: #2a3349;
  --accent: #f0679a;
  --accent-ink: #1a0a11;
  --accent-soft: #3a1626;
  --pass: #45c08a;
  --pass-soft: #12301f;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
body:has(dialog[open]) { overflow: hidden; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); font-weight: 800; margin: 0 0 8px; }
h3 { font-size: 1.08rem; margin: 0 0 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.small { font-size: 0.92rem; color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.section-lead { color: var(--muted); max-width: 640px; margin: 0 0 24px; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo b { color: var(--accent); font-weight: 800; }
.logo .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--accent);
}
nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
nav a, nav button.link {
  font: inherit;
  font-size: 0.93rem;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
nav a:hover, nav button.link:hover { color: var(--ink); background: var(--surface-2); }
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 32px; align-items: center; padding: 48px 0 24px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 850; margin: 0 0 16px; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 0.92rem; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }

/* Signature: CAT-style result card */
.scorecard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.scorecard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.scorecard-head .label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.scorecard-head .total { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.scorecard-head .total small { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.subtest { margin-top: 16px; }
.subtest-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.95rem; }
.subtest-top strong { font-weight: 700; }
.subtest-top .mono { font-size: 0.9rem; color: var(--muted); }
.subtest-top .mono b { color: var(--ink); }
.track { position: relative; height: 12px; margin-top: 22px; border-radius: 999px; background: var(--surface-2); }
.fill { height: 100%; border-radius: inherit; background: var(--pass); width: var(--score); transform-origin: left; animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.subtest:nth-child(3) .fill { animation-delay: 0.12s; }
.subtest:nth-child(4) .fill { animation-delay: 0.24s; }
.threshold { position: absolute; top: -6px; bottom: -6px; left: var(--at); width: 2px; background: var(--accent); }
.threshold span {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  white-space: nowrap;
}
.verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pass-soft);
  color: var(--pass);
  font-weight: 700;
  font-size: 0.95rem;
}
.verdict::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--pass-soft), 0 0 0 4.5px currentColor; flex: none; }
.scorecard .note { margin: 12px 0 0; font-size: 0.8rem; color: var(--muted); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Sections ---------- */
section.block { padding: 56px 0 8px; }

/* SKD format */
.format { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.format-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.format-item .code { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; color: var(--accent); letter-spacing: 0.06em; }
.format-item h3 { margin: 4px 0 10px; }
.format-item dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 0.93rem; }
.format-item dt { color: var(--muted); }
.format-item dd { margin: 0; text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Steps: a real sequence, marked with numbered answer-sheet bubbles */
.steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}
.steps li strong { display: block; margin-bottom: 4px; }
.steps li p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Packages */
.packages { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.pkg.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.pkg .badge {
  position: absolute;
  top: -12px;
  left: 18px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.pkg h3 { margin-bottom: 4px; }
.pkg .desc { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; flex: 1; }
.pkg .price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.6rem; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.02em; }
.pkg .price.free { color: var(--pass); }
.fine { margin-top: 18px; }

/* Payment strip */
.paystrip {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.paystrip p { margin: 0; color: var(--muted); }
.paystrip .cta-row { justify-content: flex-start; }

/* Contact */
.contact { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.contact-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.contact-item .k { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-item .v { display: block; margin-top: 4px; font-weight: 600; overflow-wrap: anywhere; }
.disclaimer { margin: 40px 0 0; padding: 14px 16px; border-left: 3px solid var(--line); color: var(--muted); font-size: 0.9rem; }

/* ---------- Policy documents ---------- */
main.doc { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 850; letter-spacing: -0.03em; margin: 0 0 6px; }
.doc h3 { margin: 28px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .small:first-of-type { font-family: var(--font-mono); font-size: 0.82rem; }

/* ---------- Footer ---------- */
footer.site { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 36px; font-size: 0.92rem; color: var(--muted); }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
footer.site h4 { margin: 0 0 8px; color: var(--ink); font-size: 0.95rem; }
footer.site a { display: block; margin: 3px 0; color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

/* ---------- Dialogs ---------- */
dialog.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.28);
}
dialog.modal[open] { animation: pop 0.18s ease-out; }
dialog.modal::backdrop { background: rgb(8 11 20 / 0.55); backdrop-filter: blur(2px); }
.modal-inner { padding: 24px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.modal-head h2 { font-size: 1.35rem; margin: 0; }
.modal-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--surface-2); }
.modal p, .modal li { color: var(--muted); }
.modal p strong, .modal li strong { color: var(--ink); }
.modal ol, .modal ul { padding-left: 22px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1 1 200px; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 28px; margin: 8px 0; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--pass); }

.summary { margin: 16px 0 4px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.summary div:last-child { border-bottom: 0; background: var(--surface-2); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .mono { font-weight: 700; }

@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 72px; gap: 48px; }
  .paystrip { grid-template-columns: 1fr auto; padding: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  nav { width: 100%; justify-content: space-between; }
  nav a, nav button.link { padding: 6px 8px; }
  dialog.modal {
    width: 100vw;
    max-width: 100vw;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    max-height: 90dvh;
  }
  .modal-inner { padding: 20px 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
