/* Garasi Bapak: dunia "Kartu Rapi" dari aplikasi, dibawa ke web. Token sama dengan DESIGN.md. */
@font-face { font-family: Figtree; src: url(font/Figtree_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(font/Figtree_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Figtree; src: url(font/Figtree_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Figtree; src: url(font/Figtree_800ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --navy: #0A3D66;
  --navy-deep: #072C4B;
  --navy-tint: #E6EDF3;
  --orange: #FC9D27;
  --cream: #FAF7F1;
  --cream-deep: #F1ECE1;
  --surface: #FFFFFF;
  --line: #E7E1D4;
  --text: #0B1F33;
  --text-muted: #56687A;
  --on-navy-muted: #C4D4E1;
  --lewat: #C62828;
  --segera: #F2B705;
  --aman: #2E7D32;
  --belum: #9E9E9E;
  --shadow-card: 0 6px 18px rgba(10, 61, 102, 0.10);
  --shadow-lift: 0 18px 40px rgba(7, 44, 75, 0.28);
  --r-control: 14px;
  --r-card: 20px;
  --r-hero: 28px;
  --gutter: 16px;
  --wrap: 1080px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Figtree, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
::selection { background: var(--navy); color: var(--cream); }
a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.di-navy :focus-visible { outline-color: var(--cream); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.angka { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* Ikon garis: goresan sama dengan components/Icon.tsx */
.ikon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Kepala halaman */
.kepala { padding: 14px 0; }
.kepala .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; min-height: 48px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  border-radius: var(--r-control); font-weight: 700; text-decoration: none; color: var(--navy);
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--navy-tint); }

/* Tombol */
.tombol {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px; border-radius: var(--r-control);
  font: inherit; font-weight: 700; text-decoration: none; border: 0;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.tombol:active { transform: scale(.98); }
.tombol-krem { background: var(--cream); color: var(--navy); }
.tombol-krem:hover { background: #fff; }
.tombol-garis { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(196, 212, 225, .55); }
.tombol-garis:hover { background: rgba(255, 255, 255, .08); }
.tombol[aria-disabled="true"] { cursor: default; }
.tombol[aria-disabled="true"]:active { transform: none; }
.tombol small { font-weight: 600; opacity: .75; }

/* Hero navy dengan tanda air wajik */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--cream);
  border-radius: 0 0 var(--r-hero) var(--r-hero);
  padding: 40px 0 56px;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 620px; aspect-ratio: 1120 / 1089; right: -170px; top: -90px;
  background: url(emblem.webp) center / contain no-repeat;
  opacity: .07; transform: rotate(-8deg);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to bottom, transparent, var(--navy-deep));
  opacity: .55;
}
.hero-isi { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub { margin-top: 18px; font-size: 1.15rem; color: var(--on-navy-muted); max-width: 34rem; }
.hero-aksi { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-janji { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none; color: var(--on-navy-muted); font-weight: 600; font-size: .98rem; }
.hero-janji li { display: inline-flex; align-items: center; gap: 8px; }
.hero-janji .ikon { width: 20px; height: 20px; color: var(--cream); }
@media (min-width: 900px) {
  .hero { padding: 64px 0 88px; }
  .hero-isi { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
}

/* Kartu kendaraan contoh: inti mekanisme aplikasi */
.kartu {
  background: var(--surface); color: var(--text);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
}
.contoh { position: relative; padding: 18px 16px 8px; box-shadow: var(--shadow-lift); max-width: 440px; width: 100%; justify-self: center; }
.contoh-label {
  position: absolute; top: -13px; right: 16px;
  background: var(--orange); color: var(--text);
  font-size: .75rem; font-weight: 800; letter-spacing: .03em;
  padding: 4px 10px; border-radius: 999px;
}
.contoh-kepala { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 0 2px 14px; border-bottom: 1px solid var(--line); }
.contoh-nama { font-weight: 800; font-size: 1.1rem; line-height: 1.3; }
.plat {
  display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 6px;
  background: var(--navy-tint); color: var(--navy); font-weight: 700; font-size: .82rem; letter-spacing: .04em;
}
.odo { text-align: right; color: var(--navy); }
.odo b { display: block; font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.odo span { font-size: .8rem; font-weight: 700; color: var(--text-muted); }

.jadwal { list-style: none; margin: 0; padding: 0; }
.jadwal li { display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 12px; align-items: center; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.jadwal li:last-child { border-bottom: 0; }
.bulat { grid-row: span 3; align-self: start; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.bulat .ikon { width: 22px; height: 22px; }
.jadwal-nama { font-weight: 700; line-height: 1.25; }
.jadwal-ket { grid-column: 2 / 4; font-size: .88rem; color: var(--text-muted); line-height: 1.35; }
.batang { grid-column: 2 / 4; height: 6px; border-radius: 6px; background: var(--cream-deep); overflow: hidden; margin-top: 4px; }
.batang i { display: block; height: 100%; border-radius: inherit; transform-origin: left; width: var(--isi); }
.lencana {
  justify-self: end; font-size: .72rem; font-weight: 800; letter-spacing: .03em;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.s-lewat { background: var(--lewat); color: #fff; }
.s-segera { background: var(--segera); color: var(--text); }
.s-aman { background: var(--aman); color: #fff; }
.s-belum { background: var(--belum); color: var(--text); }
.c-lewat { background: var(--lewat); }
.c-segera { background: var(--segera); color: var(--text); }
.c-aman { background: var(--aman); }
.c-belum { background: var(--belum); color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .batang i { animation: isi 1.4s var(--ease) .35s both; }
  .contoh { animation: naik .9s var(--ease) .1s both; }
}
@keyframes isi { from { transform: scaleX(.15); } to { transform: scaleX(1); } }
@keyframes naik { from { transform: translateY(14px); } to { transform: none; } }

/* Badan halaman */
.bagian { padding: 72px 0 0; }
.bagian:first-of-type { padding-top: 64px; }
.judul-bagian { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; color: var(--navy); max-width: 22ch; }
.pengantar { margin-top: 12px; color: var(--text-muted); max-width: 38rem; font-size: 1.08rem; }

/* Langkah: urutan memang berarti */
.langkah { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; counter-reset: l; }
.langkah li { counter-increment: l; display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; padding: 20px 18px; }
.langkah li::before {
  content: counter(l); grid-row: span 2;
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--navy); color: var(--cream); font-weight: 800; font-size: 1.35rem;
}
.langkah h3 { font-size: 1.15rem; font-weight: 800; align-self: end; }
.langkah p { color: var(--text-muted); }
@media (min-width: 900px) {
  .langkah { grid-template-columns: repeat(3, 1fr); }
  .langkah li { grid-template-columns: 1fr; padding: 24px 22px 26px; }
  .langkah li::before { grid-row: auto; margin-bottom: 14px; }
}

/* Perkiraan km: hitungan yang dijelaskan */
.hitung { display: grid; gap: 28px; margin-top: 32px; align-items: start; }
.lini { padding: 22px 20px; }
.lini ol { list-style: none; margin: 0; padding: 0; position: relative; }
.lini ol::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.lini li { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: baseline; padding: 10px 0; }
.titik { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--navy); align-self: center; position: relative; z-index: 1; }
.titik.isi { background: var(--navy); }
.titik.perkiraan { border-style: dashed; border-color: var(--text-muted); }
.lini-tgl { font-weight: 700; }
.lini-ket { display: block; font-size: .9rem; color: var(--text-muted); font-weight: 400; }
.lini-km { font-weight: 800; color: var(--navy); white-space: nowrap; }
.lini .hasil { margin-top: 10px; padding: 14px 16px; border-radius: var(--r-control); background: var(--navy-tint); color: var(--navy); font-weight: 600; }
.lini .hasil b { font-weight: 800; }
.catatan-kecil { margin-top: 12px; font-size: .85rem; color: var(--text-muted); }
.poin { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.poin li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.poin .ikon { color: var(--navy); margin-top: 3px; }
.poin b { display: block; font-size: 1.08rem; }
.poin span { color: var(--text-muted); }
@media (min-width: 900px) { .hitung { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Gratis dan Plus */
.paket { margin-top: 32px; overflow: hidden; }
.paket table { width: 100%; border-collapse: collapse; }
.paket th, .paket td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.paket tr:last-child td, .paket tr:last-child th { border-bottom: 0; }
.paket thead th { background: var(--navy); color: var(--cream); font-size: 1.05rem; font-weight: 800; }
.paket thead th:not(:first-child), .paket td { text-align: center; width: 24%; }
.paket tbody th { font-weight: 600; }
.paket .plus-label { display: inline-flex; align-items: center; gap: 8px; }
.plus-lencana { background: var(--orange); color: var(--text); font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .03em; }
.paket td .ikon { margin: 0 auto; color: var(--aman); width: 22px; height: 22px; stroke-width: 2.4; }
.paket .tidak { color: var(--text-muted); font-weight: 700; }
.paket .nilai { font-weight: 700; color: var(--navy); }
.paket-catatan { margin-top: 14px; color: var(--text-muted); font-size: .95rem; max-width: 44rem; }
@media (max-width: 520px) {
  .paket th, .paket td { padding: 13px 10px; font-size: .95rem; }
  .paket thead th { font-size: .95rem; }
}

/* Pita privasi */
.pita { margin-top: 80px; background: var(--navy); color: var(--cream); border-radius: var(--r-hero); padding: 40px 24px; position: relative; overflow: hidden; isolation: isolate; }
.pita::before {
  content: ""; position: absolute; z-index: -1; width: 360px; aspect-ratio: 1120 / 1089; left: -120px; bottom: -150px;
  background: url(emblem.webp) center / contain no-repeat; opacity: .07; transform: rotate(10deg);
}
.pita h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; max-width: 20ch; }
.pita-daftar { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; color: var(--on-navy-muted); }
.pita-daftar li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.pita-daftar .ikon { color: var(--cream); width: 22px; height: 22px; margin-top: 2px; }
@media (min-width: 900px) {
  .pita { padding: 56px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .pita-daftar { margin: 0; }
  .pita .tombol { grid-column: 1; justify-self: start; margin-top: -24px; }
}

/* Kaki */
.kaki { margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: .95rem; }
.kaki .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.kaki nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.kaki a { color: var(--navy); font-weight: 600; display: inline-flex; min-height: 48px; align-items: center; }

/* Halaman baca: kebijakan privasi */
.baca-kepala { background: var(--navy); color: var(--cream); border-radius: 0 0 var(--r-hero) var(--r-hero); padding: 40px 0 76px; position: relative; overflow: hidden; isolation: isolate; }
.baca-kepala::before {
  content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1120 / 1089; right: -120px; top: -80px;
  background: url(emblem.webp) center / contain no-repeat; opacity: .07; transform: rotate(-8deg);
}
.baca-kepala h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; }
.baca-kepala p { margin-top: 10px; color: var(--on-navy-muted); }
.baca { margin-top: -44px; padding: 28px 20px 36px; max-width: 760px; margin-left: auto; margin-right: auto; }
@media (min-width: 720px) { .baca { padding: 44px 52px 52px; } }
.ringkas { background: var(--navy-tint); border-radius: var(--r-control); padding: 18px 18px 18px 20px; }
.ringkas h2 { font-size: 1.15rem; color: var(--navy); margin: 0 0 8px; }
.ringkas ul { margin: 0; padding-left: 1.2em; }
.ringkas li + li { margin-top: 4px; }
.baca h2 { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin: 40px 0 10px; scroll-margin-top: 16px; }
.baca h3 { font-size: 1.08rem; font-weight: 800; margin: 22px 0 6px; }
.baca p, .baca ul { max-width: 68ch; }
.baca p + p { margin-top: 12px; }
.baca ul { padding-left: 1.2em; margin: 10px 0 0; }
.baca li + li { margin-top: 6px; }
.daftar-isi { margin-top: 28px; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: d; }
.daftar-isi a { display: flex; align-items: center; min-height: 44px; gap: 10px; font-weight: 600; text-decoration: none; }
.daftar-isi a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.daftar-isi .ikon { width: 18px; height: 18px; color: var(--text-muted); }
@media (min-width: 720px) { .daftar-isi { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.tabel-data { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .97rem; }
.tabel-data th, .tabel-data td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); }
.tabel-data th { font-weight: 700; width: 34%; }
.tabel-data thead th { color: var(--text-muted); font-size: .85rem; font-weight: 700; }
.berlaku { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: .95rem; }

/* 404 */
.hilang { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.hilang h1 { font-size: 2rem; color: var(--navy); }
.hilang p { margin: 10px auto 24px; color: var(--text-muted); max-width: 30rem; }
.hilang .tombol { background: var(--navy); color: var(--cream); }
