:root {
  --bg: #F8F3F0; --surface: #FFFFFF; --ink: #0E1726; --ink-2: #3A4456; --muted: #5B6475;
  --line: #E7E1DC; --brand: #014BAA; --brand-ink: #FFFFFF; --focus: #014BAA;
  --salah: #B42318; --salah-bg: #FEF3F2; --ragu: #B54708; --ragu-bg: #FFFAEB;
  --belum: #475467; --belum-bg: #F2F4F7; --bar: #2E6BD6; --radius: 14px;
  --ok: #067647; --ok-bg: #ECFDF3; --lime: #FFC83D;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c111d; --surface: #161b26; --ink: #f5f5f6; --ink-2: #cecfd2; --muted: #94969c;
    --line: #2b303b; --brand: #7AA7FF; --brand-ink: #0c111d;
    --salah: #f97066; --salah-bg: #2c1513; --ragu: #fdb022; --ragu-bg: #2b1f0c;
    --belum: #cecfd2; --belum-bg: #1f242f; --bar: #6ea0f5; color-scheme: dark;
    --ok: #47cd89; --ok-bg: #0b2a1a;
  }
}
:root[data-theme="dark"] {
  --bg: #0c111d; --surface: #161b26; --ink: #f5f5f6; --ink-2: #cecfd2; --muted: #94969c;
  --line: #2b303b; --brand: #7AA7FF; --brand-ink: #0c111d;
  --salah: #f97066; --salah-bg: #2c1513; --ragu: #fdb022; --ragu-bg: #2b1f0c;
  --belum: #cecfd2; --belum-bg: #1f242f; --bar: #6ea0f5; color-scheme: dark;
  --ok: #47cd89; --ok-bg: #0b2a1a;
}

* { box-sizing: border-box; }
html { font-size: 19px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height: 1.5;
}
main { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; }
main.wide { max-width: 1080px; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

header.top { display: flex; align-items: center; gap: 12px; padding: 8px 0 16px; }
header.top img { width: 44px; height: 44px; }
header.top h1 { font-size: 1.6rem; margin: 0; line-height: 1.1; }
header.top p { margin: 0; color: var(--muted); font-size: .9rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
label.big { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
textarea {
  width: 100%; min-height: 150px; font: inherit; font-size: 1.05rem; padding: 14px; color: var(--ink);
  background: var(--bg); border: 2px solid var(--line); border-radius: 12px; resize: vertical;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
select { font: inherit; padding: 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); }

button, .btn {
  font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 14px 20px; min-height: 52px;
  cursor: pointer; background: var(--belum-bg); color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
button.primary { background: var(--brand); color: var(--brand-ink); font-size: 1.15rem; flex: 1; }
button:disabled { opacity: .6; cursor: progress; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-size: .85rem; font-weight: 600; padding: 8px 12px; min-height: 40px; border: 1px solid var(--line); background: var(--surface); }

.verdict { border-radius: var(--radius); padding: 20px; margin-bottom: 16px; border: 2px solid; }
.verdict h2 { margin: 0 0 4px; font-size: 1.5rem; display: flex; gap: 10px; align-items: center; }
.verdict.terbukti_salah { background: var(--salah-bg); border-color: var(--salah); }
.verdict.terbukti_salah h2 { color: var(--salah); }
.verdict.tidak_yakin { background: var(--ragu-bg); border-color: var(--ragu); }
.verdict.tidak_yakin h2 { color: var(--ragu); }
.verdict.belum_ada_pemeriksaan { background: var(--belum-bg); border-color: var(--belum); }
.verdict .say { font-size: 1.15rem; font-weight: 600; margin: 12px 0; }
.verdict .claim { color: var(--ink-2); font-style: italic; border-left: 3px solid var(--line); padding-left: 12px; }
.sources { margin: 8px 0 0; padding-left: 20px; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 16px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
summary { font-weight: 700; cursor: pointer; }
.trick { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.trick b { display: block; }
.warn { color: var(--ragu); font-weight: 600; }
.cardimg { width: 100%; max-width: 420px; border-radius: 12px; border: 1px solid var(--line); display: block; margin-top: 12px; }
.note { color: var(--muted); font-size: .85rem; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--ink); color: var(--bg); padding: 14px 18px; border-radius: 12px; font-weight: 600; }
footer { color: var(--muted); font-size: .85rem; margin-top: 32px; }
.hidden { display: none !important; }

/* Radar */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tile .k { color: var(--muted); font-size: .8rem; font-weight: 600; }
.tile .v { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.bars { display: grid; gap: 8px; }
.barrow { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 48px; gap: 10px; align-items: center; font-size: .85rem; }
.bartrack { height: 16px; position: relative; }
.bar { height: 100%; background: var(--bar); border-radius: 0 4px 4px 0; min-width: 2px; }
.barrow .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cols { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--line); }
.col { flex: 1; background: var(--bar); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.col:hover, .barrow:hover .bar { filter: brightness(1.15); }
.tip { position: fixed; pointer-events: none; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 8px; font-size: .8rem; z-index: 10; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.banner { background: var(--ragu-bg); border: 1px solid var(--ragu); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--salah-bg); color: var(--salah); margin-left: 6px; }

/* Sensor coverage */
.st { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.st.hidup { background: var(--ok-bg); color: var(--ok); }
.st.basi { background: var(--ragu-bg); color: var(--ragu); }
.st.mati { background: var(--salah-bg); color: var(--salah); }
.st.tertunda, .st.belum { background: var(--belum-bg); color: var(--belum); }
.scroll { overflow-x: auto; }
.scroll table { min-width: 640px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }

body { font-family: var(--sans); }
.check-page main { max-width: 760px; padding-top: 24px; }
.app-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.55rem; font-weight: 700; letter-spacing: -1.5px; text-decoration: none; }
.app-brand img { border-radius: 11px; }
.back-link { margin-left: auto; color: var(--muted); font-size: .75rem; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.app-heading { padding: 34px 0 27px; }
.app-eyebrow { margin: 0 0 13px; color: var(--muted); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.app-heading h1 { margin: 0 0 14px; font: 400 3.5rem/.98 "Instrument Serif", Georgia, serif; letter-spacing: -1.5px; }
.app-heading > p:last-child { margin: 0; color: var(--muted); font-size: .85rem; }
.check-card { padding: 25px; border-radius: 16px; box-shadow: 0 12px 35px #0E172608; }
.example-label { margin: 22px 0 3px; }
.verdict { scroll-margin-top: 20px; }
.verdict-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 50%; font: 400 1.35rem Georgia, serif; }
button, .btn, textarea, select, .chip { border-radius: 8px; }
button { transition: transform .18s ease, background .18s ease; }
button:not(:disabled):hover { transform: translateY(-2px); }
button.primary { background: var(--brand); }
button.primary:hover { background: #20375B; }
footer { line-height: 1.8; }
footer a { text-underline-offset: 3px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --brand: #9CADC7; --brand-ink: #0A1120; --bar: #8E9FB9; }
}
:root[data-theme="dark"] { --brand: #9CADC7; --brand-ink: #0A1120; --bar: #8E9FB9; }
@media (max-width: 480px) {
  html { font-size: 18px; }
  .barrow { grid-template-columns: 1fr 1fr 40px; }
  .check-page main { padding-top: 15px; }
  .app-heading { padding-top: 28px; }
  .app-heading h1 { font-size: 3.25rem; }
  .check-card { padding: 18px; }
  .actions { grid-template-columns: 1fr; }
}

/* Brand: serif display headings (same as the landing and check pages) */
header.top h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
header.top h1 { font-size: 2.3rem; line-height: 1; }
h2 { font-size: 1.7rem; line-height: 1.15; }
