/* CeKiN by SETARA — public website preview.
   Look re-created from the prototype captures (docs/uiux/captures/): blue
   gradient header and page headings, white rounded cards on a light grey
   page, phone bottom navigation, desktop left sidebar. */

:root {
  --blue: #1d5cff;
  --blue-dark: #1541d9;
  --blue-soft: #e8efff;
  --page: #f3f5fa;
  --card: #ffffff;
  --text: #111827;
  --muted: #5b6475;
  --faint: #8a93a3;
  --border: #e4e8f0;
  --green-soft: #ecfbf3;
  --green-border: #cdeedd;
  --amber: #9a5b00;
  --amber-soft: #fff4e0;
  --disabled: #c9d0dc;
  --disabled-text: #6b7383;
  --radius: 18px;
  --shadow: 0 4px 22px rgba(16, 24, 40, 0.07);
  --header-h: 64px;
  --sidebar-w: 232px;
  --gradient: linear-gradient(135deg, #2366ff 0%, #1541d9 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
a { color: inherit; }
[hidden] { display: none !important; }
.icon { flex: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  padding: 10px 20px;
  background: var(--gradient);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  flex: none;
}
.brand-mark .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: 0.2px; line-height: 1.2; }
.brand-name small { font-weight: 500; font-size: 12px; opacity: 0.85; margin-left: 2px; }
.brand-tagline { font-size: 12.5px; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lang-switch {
  display: flex;
  flex: none;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.lang-switch a {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}
.lang-switch a.is-active { background: #fff; color: var(--blue-dark); }

/* Shell: sidebar + main */
/* The sidebar background runs the full page height; its links stay in view. */
.shell { display: flex; align-items: stretch; min-height: calc(100vh - var(--header-h)); }
.sidebar {
  width: var(--sidebar-w);
  padding: 20px 12px;
  background: var(--card);
  border-right: 1px solid var(--border);
  flex: none;
}
.sidebar-links {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
}
.side-link .icon { width: 20px; height: 20px; }
.side-link:hover { background: #f5f7fb; }
.side-link.is-active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }

.main {
  flex: 1;
  min-width: 0;
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 24px 40px;
}

/* Page heading: blue block, the first card overlaps its lower edge */
.hero {
  padding: 28px 24px 56px;
  border-radius: 22px;
  background: var(--gradient);
  color: #fff;
}
.hero h1 { margin: 0 0 4px; font-size: 24px; line-height: 1.25; }
.hero p { margin: 0; opacity: 0.9; font-size: 14px; }

.card {
  position: relative;
  margin-top: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card-lift { margin: -36px 12px 0; }
.card h2 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; }
.card p + p { margin-top: 8px; }

.empty-state { text-align: center; color: var(--muted); padding: 32px 24px; }
.text-link { color: var(--blue); font-weight: 600; }

.site-foot { margin: 28px 0 0; text-align: center; font-size: 12.5px; color: var(--faint); }

/* Honest states (C-039): illustration, chips, disabled actions */
.state-card { text-align: center; padding: 32px 24px; }
.state-illustration {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e6eeff 0%, #efe9ff 100%);
  color: var(--blue);
}
.state-illustration .icon { width: 56px; height: 56px; stroke-width: 2.2; }
.state-title { margin: 0 0 6px; font-size: 20px; }
.state-text { max-width: 460px; margin: 0 auto !important; color: var(--muted); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}
.chip .icon { width: 13px; height: 13px; }
.chip-building { margin-top: 14px; background: var(--amber-soft); color: var(--amber); }
.chip-inactive { margin-top: 10px; background: #eef1f6; color: var(--disabled-text); }
.chip-soon { background: var(--blue-soft); color: var(--blue); }

.btn {
  display: inline-block;
  padding: 14px 24px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(29, 92, 255, 0.25); }
.btn-wide { display: block; width: 100%; max-width: 520px; margin: 22px auto 0; }
/* "Exists, but not yet": grey, flat, no pointer */
.btn:disabled { background: var(--disabled); color: #fff; box-shadow: none; cursor: not-allowed; }

.section-heading { margin: 28px 12px 0; font-size: 15px; color: var(--muted); font-weight: 600; }
.card-soft { background: #fafbfd; box-shadow: none; border: 1px solid var(--border); padding: 18px 20px; margin-top: 12px; }
.upcoming h3 { margin: 0 0 4px; font-size: 16px; }
.upcoming p { color: var(--muted); font-size: 14px; }
.upcoming-when { display: flex; align-items: center; gap: 6px; margin-top: 8px !important; color: var(--faint) !important; font-size: 13px !important; }
.upcoming-when .icon { width: 15px; height: 15px; }

.tips { background: var(--green-soft); border: 1px solid var(--green-border); box-shadow: none; }
.tips h2 { display: flex; align-items: center; gap: 8px; }
.tips h2 .icon { width: 19px; height: 19px; color: #c58a00; }
.tips ul { margin: 6px 0 0; padding-left: 20px; color: #374151; }
.tips li + li { margin-top: 4px; }

.feature-card { display: flex; gap: 16px; align-items: flex-start; }
.feature-card h2 { font-size: 16px; }
.feature-card p { color: var(--muted); font-size: 14px; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none; color: #fff; }
.feature-icon .icon { width: 24px; height: 24px; }
.feature-orange { background: linear-gradient(135deg, #ff7a1a, #ff4238); }
.feature-purple { background: linear-gradient(135deg, #a020f0, #e0137f); }
.note-paid { display: flex; align-items: center; gap: 8px; margin: 12px 12px 0; font-size: 13px; color: var(--muted); }
.note-paid .icon { width: 16px; height: 16px; }

@media (max-width: 767px) {
  .section-heading { margin: 26px 20px 0; }
  .note-paid { margin: 12px 20px 0; }
  .state-illustration { width: 112px; height: 112px; }
}

/* Empty states with explanations (C-040) */
.muted { color: var(--muted); }
.info-card { display: flex; gap: 16px; align-items: flex-start; }
.info-card p { color: var(--muted); font-size: 14px; }
.info-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; background: var(--blue-soft); color: var(--blue); }
.info-icon .icon { width: 22px; height: 22px; }
.check-list { list-style: none; margin: 10px 0 0; padding: 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); color: #374151; font-size: 14px; }
.check-list li:first-child { border-top: 0; }
.check-list .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--blue); }
.btn-google { background: #fff; color: var(--text); border: 1px solid var(--border); }
.lang-choices { display: grid; gap: 8px; margin-top: 12px; }
.lang-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
}
.lang-choice .icon { width: 18px; height: 18px; }
.lang-choice.is-active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 600; }

/* Progress and reward pieces (C-043). Geometric shapes and colour only —
   no illustration art. Motion stays under half a second. */
.level-bar { display: block; }
.level-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.level-name { font-weight: 700; font-size: 17px; }
.level-points { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--blue); }
.level-track { display: block; height: 10px; margin: 8px 0 6px; border-radius: 999px; background: #e9edf5; overflow: hidden; }
.level-fill { display: block; height: 100%; border-radius: 999px; background: var(--gradient); transition: width 0.4s ease; }
.level-next { margin: 0; font-size: 13px; color: var(--muted); }

.ring-block { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ring { width: 132px; height: 132px; flex: none; transform: rotate(-90deg); }
.ring-seg { fill: none; stroke: #e2e7f1; stroke-width: 11; stroke-linecap: round; }
.ring-seg.is-done { stroke: var(--blue); }
.ring-count, .ring-word { transform: rotate(90deg); transform-origin: 60px 60px; text-anchor: middle; }
.ring-count { font-size: 22px; font-weight: 700; fill: var(--text); }
.ring-word { font-size: 11px; fill: var(--faint); }
.ring-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.ring-slots li { display: flex; align-items: center; gap: 8px; }
.ring-slots li.is-done { color: var(--text); font-weight: 600; }
.slot-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #d3dae7; }
.ring-slots li.is-done .slot-dot { background: var(--blue); border-color: var(--blue); }

.streak { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #eef1f6; color: var(--muted); }
.streak.is-live { background: var(--amber-soft); color: var(--amber); }
.streak-mark { width: 12px; height: 12px; border-radius: 3px; background: currentColor; transform: rotate(45deg); }
.streak-count { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.streak-label { font-size: 13px; }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; border: 1px solid var(--border); border-radius: 14px; text-align: center; }
.badge-name { font-weight: 600; font-size: 14px; }
.badge-how { font-size: 12px; color: var(--faint); }
.badge.is-earned { border-color: #cfdcff; background: #f6f9ff; }
.badge.is-earned .badge-how { color: var(--blue); }
.badge.is-locked { background: #fafbfd; }
.badge.is-locked .badge-name { color: var(--muted); }

.points-toast-box { position: fixed; right: 16px; bottom: 96px; z-index: 40; display: grid; gap: 8px; justify-items: end; }
.points-toast {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 22px rgba(29, 92, 255, 0.3);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.points-toast.is-in { opacity: 1; transform: translateX(0); }
.points-toast strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.points-toast span { font-size: 13px; opacity: 0.9; }
@media (prefers-reduced-motion: reduce) {
  .points-toast, .level-fill { transition: none; }
}

.workshop-banner { margin: 0 0 4px; padding: 16px 20px; border-radius: 14px; background: #fff7e6; border: 1px dashed #e8c98a; color: #7a4e00; }
.workshop-banner h1 { margin: 0 0 4px; font-size: 18px; }
.workshop-banner p { margin: 0; font-size: 13.5px; }
.workshop-state h2 { margin-bottom: 14px; }
.workshop-label { margin: 22px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.workshop-label:first-of-type { margin-top: 0; }
.workshop-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 12px; }

@media (max-width: 767px) {
  .workshop-banner { margin: 16px 16px 0; }
  .points-toast-box { right: 12px; bottom: 92px; }
}

/* Progress-first Beranda and Cek (C-044) */
.card-title { margin: 0 0 12px; font-size: 16px; }
.card-lead { margin: -6px 0 12px !important; font-size: 13.5px; }
.progress-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.progress-row .chip-building { margin-top: 0; }
.invite { margin: 14px 0 0 !important; font-size: 14px; font-weight: 600; color: var(--text); }
.invite .muted { font-weight: 400; font-size: 13px; }
.coming-list { list-style: none; margin: 0; padding: 0; }
.coming-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.coming-list li:first-child { border-top: 0; }
.coming-list strong { color: var(--text); font-weight: 600; }
.coming-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; border: 2px solid #d3dae7; flex: none; }
.coming-when { display: block; margin-top: 2px; font-size: 12.5px; color: var(--faint); font-style: normal; }
.coming-foot { margin-top: 12px !important; font-size: 13px; color: var(--faint); }
.chip-reward { background: #e6f7ee; color: #067647; }
.btn .chip-reward { margin-left: 10px; font-size: 13px; }
.btn:disabled .chip-reward { background: rgba(255, 255, 255, 0.85); }
.feature-price { margin-top: 6px !important; font-size: 13px; color: var(--faint); }
.feature-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.state-card .state-text { margin-top: 14px !important; font-size: 14px; }

/* Level ladder (C-045) */
.ladder { list-style: none; margin: 0; padding: 0; }
.ladder-step { position: relative; display: flex; gap: 14px; padding: 12px 0 12px 4px; }
.ladder-step::before { content: ""; position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.ladder-step:first-child::before { top: 50%; }
.ladder-step:last-child::before { bottom: 50%; }
.ladder-mark { position: relative; z-index: 1; display: block; flex: none; margin-top: 2px; }
.ladder-body { min-width: 0; }
.ladder-name { margin: 0 !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-weight: 700; }
.ladder-points { font-weight: 600; font-size: 13px; color: var(--blue); font-variant-numeric: tabular-nums; }
.ladder-means { margin: 2px 0 0 !important; font-size: 13.5px; color: var(--muted); }
.ladder-step.is-here .ladder-name { color: var(--blue); }

/* 3D badges (C-047): shape first, colour second, drawn in SVG. */
.badge3d { display: block; overflow: visible; }
.badge .badge3d { margin-bottom: 4px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; margin-bottom: 10px; }
.badge-sample { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; text-align: center; max-width: 110px; }
.badge-sample .muted { font-size: 11px; }
/* Unlock: one quick scale plus a light sweep — 420 ms in total. */
.badge-sample.is-unlocking .badge3d { animation: badge-pop 0.42s ease-out; }
.badge-sample.is-unlocking::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 96px;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%);
  animation: badge-sweep 0.42s ease-out;
  pointer-events: none;
}
@keyframes badge-pop {
  0% { transform: scale(0.82); }
  55% { transform: scale(1.09); }
  100% { transform: scale(1); }
}
@keyframes badge-sweep {
  0% { transform: translateX(-120%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .badge-sample.is-unlocking .badge3d, .badge-sample.is-unlocking::after { animation: none; }
}

/* Running a measurement and showing its result (C-054) */
.ukur-panel { margin-top: 16px; }
.ukur-fase { margin: 0 0 8px !important; font-size: 13.5px; color: var(--muted); }
.ukur-track { height: 8px; border-radius: 999px; background: #e9edf5; overflow: hidden; }
.ukur-bar { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--gradient); transition: width 0.3s ease; }
.ukur-pesan { margin: 14px 0 0 !important; font-size: 13.5px; color: var(--muted); }
.ukur-pesan.is-error { color: var(--terblokir, #b91c1c); }
.btn.is-running { opacity: 0.7; }

.result { margin-top: 18px; text-align: center; }
.result-score { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 28px; border-radius: 18px; background: var(--blue-soft); color: var(--blue); }
.result-score.is-capped { background: #fdecef; color: #b91c1c; }
.result-number { font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.result-label { font-size: 14px; font-weight: 600; }
.result-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 18px 0 0; }
.result-metrics div { padding: 10px 8px; border: 1px solid var(--border); border-radius: 12px; }
.result-metrics dt { font-size: 12px; color: var(--muted); }
.result-metrics dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.result-metrics dd span { font-size: 12px; font-weight: 500; color: var(--faint); }
.alamat { margin: 14px 0 0 !important; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.alamat-note { margin: 4px 0 0 !important; font-size: 12.5px; color: var(--muted); }
.alamat-note a, .site-foot a { color: inherit; text-decoration: underline; }
.plain-list { margin: 8px 0 0; padding-left: 20px; }
.plain-list li { margin: 6px 0; }
.result-cap { padding: 8px 10px; border-radius: 8px; background: #fff7e6; color: #7a4a00 !important; }
.result-code { margin: 10px 0 0 !important; font-size: 13px; color: var(--muted); }
.result-code strong { font-family: ui-monospace, Consolas, monospace; color: var(--text, #111827); letter-spacing: 0.3px; user-select: all; }
.btn-copy { margin-left: 6px; padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--blue); font: inherit; font-size: 12px; cursor: pointer; }
.history-code { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--faint); user-select: all; }
.result-when { margin: 14px 0 0 !important; font-size: 12.5px; color: var(--faint); }
.result-note { margin: 6px 0 0 !important; font-size: 12.5px; color: var(--muted); text-align: left; }
.result-empty { margin-top: 14px !important; font-size: 13.5px; text-align: center; }

.provisional { margin: 12px 0 0 !important; font-size: 12.5px; }
.ukur-pesan.is-ok { color: var(--selesai, #067647); }

/* Comparison test against M-Lab (C-060) */
.btn-secondary { background: #fff; color: var(--blue); border: 1px solid #c9d6f5; box-shadow: none; }
.chip-plain { margin-left: 8px; background: #eef1f6; color: var(--disabled-text); }
.consent { margin-top: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid #f0c27a; background: #fffaf0; scroll-margin: 84px 0 110px; }
.consent h3 { margin: 0 0 8px; font-size: 15px; }
.consent ul { margin: 0; padding-left: 20px; font-size: 14px; color: #374151; }
.consent li + li { margin-top: 6px; }
.consent-links { margin: 12px 0 0 !important; font-size: 13px; }
.consent-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.banding-result { margin-top: 16px; }
.banding-source { margin: 0 0 8px !important; font-weight: 700; font-size: 14px; color: #7a4e00; }

/* Side by side with the comparison, and the history lists (C-061) */
.samping { margin-top: 16px; }
.samping-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.samping-table th, .samping-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.samping-table thead th { font-weight: 600; font-size: 12.5px; color: var(--muted); }
.samping-table tbody th { font-weight: 500; color: var(--muted); }
.samping-table td { font-weight: 700; font-variant-numeric: tabular-nums; }
.samping-table td span { font-size: 12px; font-weight: 500; color: var(--faint); }
.samping-who { display: block; font-size: 14px; font-weight: 700; }
.samping-own { color: var(--blue); }
.samping-other { color: #7a4e00; }
.samping-when { display: block; font-size: 11.5px; font-weight: 400; color: var(--faint); }
.samping-table td.samping-diff { font-weight: 500; font-size: 13px; color: var(--muted); }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.history-item:first-child { border-top: 0; }
.history-score { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-weight: 800; flex: none; font-variant-numeric: tabular-nums; }
.history-score.is-capped { background: #fdecef; color: #b91c1c; }
.history-provider { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; border: 1px dashed #e8c98a; background: #fffaf0; color: #7a4e00; font-size: 12px; font-weight: 700; flex: none; }
.history-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.history-numbers { font-size: 12.5px; color: var(--muted); }
.history-when { font-size: 12px; color: var(--faint); white-space: nowrap; }
@media (max-width: 520px) {
  .samping-table { font-size: 13px; }
  .samping-table th, .samping-table td { padding: 8px 5px; }
  .history-item { flex-wrap: wrap; }
  .history-when { width: 100%; padding-left: 56px; }
}

/* Why the two results differ (C-064) */
.kenapa { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f5f7fb; font-size: 13px; color: var(--muted); }
.kenapa p { margin: 0; }
.kenapa p + p { margin-top: 6px; }
.kenapa-judul { font-weight: 700; color: var(--text); }
.kenapa strong { color: var(--text); }

/* Phone bottom navigation */
.bottom-nav { display: none; }

@media (max-width: 767px) {
  .site-header { padding: 10px 16px; }
  .brand-tagline { font-size: 12px; white-space: normal; line-height: 1.3; }
  .sidebar { display: none; }
  .main { padding: 0 0 96px; }
  .hero { border-radius: 0 0 26px 26px; padding: 24px 20px 56px; }
  .card { margin-left: 16px; margin-right: 16px; }
  .card-lift { margin-top: -36px; }
  .site-foot { padding: 0 16px; }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.05);
  }
  .bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
    color: #4b5563;
    text-decoration: none;
    font-size: 12px;
  }
  .bottom-link .icon { width: 23px; height: 23px; }
  .bottom-link.is-active { color: var(--blue); font-weight: 600; }
}

/* Location: the question before the first test, and the person's own point on the result card (C-083). */
.lokasi-panel { margin: 0 0 16px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #f8fafc; text-align: left; }
.lokasi-judul { margin: 0 0 6px; font-size: 16px; }
.lokasi-panel .plain-list { font-size: 13.5px; color: #374151; }
.lokasi-tombol { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.btn-quiet { background: #fff; color: var(--text); border: 1px solid var(--border); }
.result-lokasi { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #f1f5f9; text-align: left; font-size: 13px; color: #374151; }
.result-lokasi p { margin: 0 0 3px !important; }
.result-lokasi-note { color: var(--muted); font-size: 12px; margin-top: 6px !important; }
.result-lokasi-none { color: var(--muted); }

/* While a test runs the main button is a Stop button — clearly a stop, not a greyed-out start (C-086). */
.btn.is-stop { background: #dc2626; color: #fff; box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25); }
.btn.is-stop:hover { background: #b91c1c; }
.btn:disabled.is-running { cursor: default; }

/* The provider under the IP line, and the "still looking" states (C-090/C-091). */
.result-penyedia-note { color: var(--faint); }
.result-penyedia[data-status="dicari"], .result-lokasi[data-result-lokasi="menunggu"] { font-style: italic; }
