/* Halaman situs: beranda, daftar, masuk, status kartu. Token mengikuti template Kartu ID. */
:root {
  --bg: #E8EDEB;
  --surface: #FFFFFF;
  --ink: #16211E;
  --muted: #5B6965;
  --line: #D3DCD9;
  --accent: #2747C8;
  --accent-ink: #FFFFFF;
  --accent-soft: #E2E7FA;
  --card: #16211E;
  --card-ink: #EEF3F1;
  --card-muted: #9FB0AA;
  --ok: #1E7A4C;
  --logo-wave: #8099FF;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
/* Gelap: ikut perangkat, kecuali pengunjung memilih sendiri lewat tombol tema (data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1412; --surface: #172019; --ink: #E6ECE9; --muted: #98A7A1; --line: #2A3531;
    --accent: #8099FF; --accent-ink: #0A1022; --accent-soft: #1D2646;
    --card: #E6ECE9; --card-ink: #16211E; --card-muted: #56645F; --ok: #5CCB91; --logo-wave: #2747C8;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
}
:root[data-theme="dark"] {
  --bg: #0E1412; --surface: #172019; --ink: #E6ECE9; --muted: #98A7A1; --line: #2A3531;
  --accent: #8099FF; --accent-ink: #0A1022; --accent-soft: #1D2646;
  --card: #E6ECE9; --card-ink: #16211E; --card-muted: #56645F; --ok: #5CCB91; --logo-wave: #2747C8;
  color-scheme: dark;
}
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 48px;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 18px; letter-spacing: .01em; text-decoration: none; font-weight: 500; }
.logo-mark { width: 26px; height: 26px; flex: none; }
.logo-mark rect { fill: var(--ink); }
.logo-mark circle { fill: var(--logo-wave); }
.logo-mark path { fill: none; stroke: var(--logo-wave); stroke-width: 1.8; stroke-linecap: round; }
.top nav { display: flex; align-items: center; gap: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--accent); color: var(--accent); }
.btn-text { background: transparent; color: var(--ink); padding-inline: 10px; }
.theme-btn { width: 42px; height: 42px; padding: 0; background: transparent; color: var(--ink); border-radius: 10px; }
.theme-btn:hover { color: var(--accent); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-block: 40px 56px; }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 6vw, 56px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.hero p { margin: 18px 0 0; color: var(--muted); font-size: 18px; max-width: 46ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.stack { position: relative; aspect-ratio: 1 / .78; max-width: 100%; }
.mini {
  position: absolute; width: 78%; aspect-ratio: 85.6 / 53.98; border-radius: 14px;
  background: var(--card); color: var(--card-ink); padding: 16px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 18px 40px -18px rgba(10, 20, 18, .45);
}
/* Motif batik Kawung sebagai latar kartu. Dipakai lewat mask supaya warnanya ikut warna teks kartu (dan mode tema). */
.mini::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: currentColor; opacity: .13;
  --kawung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none' stroke='black' stroke-width='1.4'%3E%3Cellipse cx='20' cy='11' rx='4.5' ry='7'/%3E%3Cellipse cx='20' cy='29' rx='4.5' ry='7'/%3E%3Cellipse cx='11' cy='20' rx='7' ry='4.5'/%3E%3Cellipse cx='29' cy='20' rx='7' ry='4.5'/%3E%3Cg fill='black' stroke='none'%3E%3Ccircle cx='20' cy='20' r='1.6'/%3E%3Ccircle cx='20' cy='11' r='1.1'/%3E%3Ccircle cx='20' cy='29' r='1.1'/%3E%3Ccircle cx='11' cy='20' r='1.1'/%3E%3Ccircle cx='29' cy='20' r='1.1'/%3E%3C/g%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='40' cy='0' r='3'/%3E%3Ccircle cx='0' cy='40' r='3'/%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/svg%3E");
  -webkit-mask: var(--kawung) 0 0 / 34px 34px repeat;
  mask: var(--kawung) 0 0 / 34px 34px repeat;
}
.mini > * { position: relative; }
.mini.back { right: 0; top: 0; background: var(--accent); color: var(--accent-ink); transform: rotate(6deg); }
.mini.front { left: 0; bottom: 0; transform: rotate(-4deg); }
.mini .b { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; opacity: .7; }
/* Ukuran angka mengikuti lebar kartu (cqi) supaya nomor terisi penuh seperti kartu ATM. */
.mini { container-type: inline-size; }
.mini .num { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 8cqi; letter-spacing: .06em; white-space: nowrap; }
.mini .digits { display: flex; justify-content: space-between; }
.mini .nfc-mark { position: absolute; right: 16px; top: 13px; width: clamp(20px, 7cqi, 26px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: .75; }
.mini .mini-qr { position: absolute; right: 16px; bottom: 16px; width: 21cqi; aspect-ratio: 1; padding: 3px; background: #FFFFFF; border-radius: 4px; }
.mini .mini-qr svg { display: block; width: 100%; height: 100%; }
.mini .who { padding-right: calc(21cqi + 10px); }
.mini .org { font-size: 11.5px; letter-spacing: .02em; opacity: .75; margin-bottom: 3px; }
.mini .exp { align-self: flex-end; display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: .64em; letter-spacing: .06em; }
.mini .exp small { font-size: 6.5px; line-height: 1.15; letter-spacing: .06em; opacity: .7; text-align: right; }
.mini .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 3vw, 24px); line-height: 1.1; }
.mini .r { font-size: 13px; opacity: .75; }

.section { padding-block: 40px; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(24px, 4vw, 32px); letter-spacing: -.01em; text-wrap: balance; }
.section .lead { margin: 0 0 24px; color: var(--muted); max-width: 60ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* HP di kiri; panel Tampilan (sama dengan dashboard) dan QR di kanan, sejajar dengan bagian atas HP */
.demo {
  display: grid; grid-template-columns: auto minmax(0, 460px); grid-template-areas: "phone info";
  column-gap: 56px; align-items: start; justify-content: center;
}
#contoh > h2, #contoh > .lead { text-align: center; margin-inline: auto; }
.demo .phone { grid-area: phone; }
.demo-side { grid-area: info; display: flex; flex-direction: column; gap: 18px; }
.look { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.look h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: 20px; }
.look .lbl { display: block; margin: 14px 0 8px; font-size: 14px; font-weight: 600; }
.look h3 + .lbl { margin-top: 0; }
.look .hint { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.photo-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-pick .btn { cursor: pointer; }
.photo-pick .btn[hidden] { display: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--ink); }
.swatch:disabled { opacity: .35; cursor: not-allowed; }
.swatch.backdrop-plain { background: var(--bg); background-image: linear-gradient(135deg, transparent 46%, var(--line) 46% 54%, transparent 54%); }
/* Bingkai HP: layar dirender selebar HP asli (390 x 844) lalu diperkecil dengan --s.
   Warna bingkai sengaja tetap grafit di kedua tema, seperti HP sungguhan. */
.phone {
  --s: .68; --bz: 7px;
  position: relative; max-width: 100%;
  padding: var(--bz); border-radius: calc(55px * var(--s) + var(--bz));
  background: #0B0C0D;
  box-shadow: 0 0 0 1.5px #3A4046, 0 0 0 3px #1E2226, 0 28px 60px -28px rgba(0, 0, 0, .6);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2E3338; }
.phone::before { right: -4.5px; top: 26%; height: 11%; }
.phone::after { left: -4.5px; top: 20%; height: 7%; box-shadow: 0 calc(844px * var(--s) * .09) 0 #2E3338; }
.screen {
  position: relative; overflow: hidden; background: var(--bg); color: var(--ink);
  width: calc(390px * var(--s)); height: calc(844px * var(--s)); border-radius: calc(55px * var(--s));
}
.statusbar {
  position: absolute; inset: 0 0 auto; z-index: 2; height: calc(50px * var(--s));
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(34px * var(--s)) 0 calc(42px * var(--s));
  font: 600 calc(16px * var(--s)) / 1 var(--font-body); background: var(--bg);
}
.statusbar svg { width: calc(46px * var(--s)); height: calc(12px * var(--s)); fill: currentColor; }
.island {
  position: absolute; z-index: 3; left: 50%; top: calc(11px * var(--s)); transform: translateX(-50%);
  width: calc(122px * var(--s)); height: calc(35px * var(--s)); border-radius: 999px; background: #000;
}
.screen iframe {
  position: absolute; left: 0; top: calc(50px * var(--s)); border: 0; display: block;
  width: 390px; height: 794px; transform: scale(var(--s)); transform-origin: 0 0;
}
.home {
  position: absolute; z-index: 2; left: 50%; bottom: calc(8px * var(--s)); transform: translateX(-50%);
  width: calc(134px * var(--s)); height: calc(5px * var(--s)); border-radius: 999px; background: var(--ink); opacity: .35;
}

.order-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px; border-radius: 14px; background: var(--card); color: var(--card-ink); }
.order-box h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 22px; }
.order-box p { margin: 0; color: var(--card-muted); }
.order-box .btn-primary { white-space: nowrap; }

.foot { padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Kebijakan Privasi dan Syarat Layanan: teks di kiri, daftar isi menempel di kanan (laptop) */
.legal { display: grid; grid-template-columns: minmax(0, 68ch) 240px; justify-content: space-between; gap: 48px; padding-block: 24px 48px; }
.legal section { scroll-margin-top: 24px; }
.toc { position: sticky; top: 24px; align-self: start; margin-top: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; font-size: 14.5px; }
.toc .toc-title { margin: 0 0 10px; font-weight: 600; }
.legal .toc ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legal .toc li { margin: 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.toc .toc-other { display: block; padding-top: 14px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 600; }
@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
.legal h1 { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(32px, 6vw, 44px); line-height: 1.08; letter-spacing: -.015em; }
.legal .meta { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.legal .intro { font-size: 17.5px; line-height: 1.6; margin: 0 0 8px; }
.legal h2 { margin: 36px 0 10px; font-family: var(--font-display); font-size: 21px; line-height: 1.25; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--muted); }
.legal article a { color: var(--accent); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.legal article a:hover { text-decoration: underline; }

/* Halaman form dan status */
.center { min-height: 100dvh; display: grid; place-items: center; padding-block: 24px; }
.panel { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.panel .logo { align-self: flex-start; }
.panel h1 { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 1.15; text-wrap: balance; }
.panel p { margin: 0; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink);
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.panel .btn { width: 100%; padding-block: 13px; }
.panel .cf-turnstile { align-self: center; }
.panel .alt { font-size: 14px; text-align: center; color: var(--muted); }
.panel .alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.panel .email { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.panel .hint { font-size: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.panel .hint a { color: var(--accent); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.note { font-size: 13.5px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line); color: var(--muted); }
.badge { align-self: flex-start; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.mono { font-family: var(--font-mono); font-size: 13.5px; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 16px 40px; gap: 32px; }
  .stack { width: min(380px, 100%); margin: 0 auto; }
  .order-box { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; grid-template-areas: "phone" "info"; row-gap: 20px; }
  .demo .phone { --s: .74; justify-self: center; }
  .top { gap: 8px; }
  .top .logo { font-size: 15px; gap: 6px; }
  .top .logo-mark { width: 22px; height: 22px; }
  .top nav { gap: 4px; }
  .top nav .btn { padding: 8px 12px; font-size: 14px; }
  .top nav .theme-btn { width: 36px; height: 36px; padding: 0; }
}
