:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #12202b;
  --muted: #3f4f5c;
  --line: #d5dde4;
  --field: #8a99a6;
  --tint: #dce3ea;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --head: "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

h1, h2, h3 { font-family: var(--head); letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); margin-bottom: 16px; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Navigasi */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.nav-links a.plain { color: var(--ink); font-weight: 500; font-size: 15px; padding: 12px 4px; }
form.inline { margin: 0; display: inline; }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 8px;
  font: 600 15px var(--body); cursor: pointer; text-decoration: none;
  border: 1.5px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-lg { min-height: 48px; font-size: 16px; }

/* Beranda */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 48px 0 72px; }
.hero > div { flex: 1 1 400px; min-width: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero h1 { font-weight: 800; font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 24px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 52ch; margin-bottom: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.photo { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--tint); color: var(--muted); font-size: 14px; border-radius: 16px; padding: 24px; height: 360px; }

.section { padding: 72px 0; }
.section.white { background: var(--surface); }
.section h2 { font-weight: 800; font-size: clamp(28px, 4vw, 36px); margin-bottom: 32px; }
.grid { display: flex; flex-wrap: wrap; gap: 20px; }
.grid > * { flex: 1 1 280px; min-width: 0; }
.product { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.product .thumb { height: 140px; border-radius: 8px; background: var(--tint); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.product h3 { font-weight: 700; font-size: 20px; }
.product p { color: var(--muted); font-size: 15px; }
.price { margin-top: auto; font-family: var(--head); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Halaman masuk dan daftar */
.center { display: flex; justify-content: center; padding: 32px 24px 72px; }
.card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.card h1 { font-weight: 800; font-size: 30px; }
.sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { height: 48px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: 8px; font: 16px var(--body); color: var(--ink); background: var(--surface); }
.hint { font-size: 13px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice { border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.notice ul { margin: 0; padding-left: 18px; }
.notice.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.notice.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }

/* Dashboard */
.dash { display: flex; flex-direction: column; gap: 32px; padding-top: 24px; padding-bottom: 72px; }
.dash-head h1 { font-weight: 800; font-size: clamp(26px, 4vw, 34px); }
.h2-sm { font-weight: 700; font-size: 20px; margin-bottom: 16px; }
.stats { display: flex; flex-wrap: wrap; gap: 16px; }
.stat { flex: 1 1 200px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.stat-num { font-family: var(--head); font-weight: 800; font-size: 34px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 4px; }
.table-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
tbody tr:last-child td { border-bottom: 0; }
td[data-num] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.panels { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.panel { flex: 1 1 340px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel .h2-sm { margin-bottom: 0; }
.profile { margin: 0; }
.profile dt { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.profile dd { margin: 2px 0 16px; font-size: 16px; overflow-wrap: anywhere; }
.panel .btn { align-self: flex-start; }
