/* Selaras dashboard. Direction A, "shop ledger" (ADR 0003, 0008): warm paper, dark ink, leaf green, red only for refusals. */
@font-face { font-family: "Figtree"; src: url("/fon/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fon/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fon/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #fffcf6; --ink: #181818; --accent: #2f7d3a; --refuse: #ff2f00; --line: #e3e1db; --soft: #eef3ea;
  --muted: #5b5a55; --canvas: #fbf7ee; --frame: #181818; --notice-ink: #1f5527; --shadow: rgba(24, 24, 24, .42);
  --sans: "Figtree", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --u: 8px; --max: 1280px; --section: 65px;
  --h1: clamp(44px, 9vw, 96px); --swap-fit: 10cqi; --h2: clamp(26px, 3vw, 35px); --h3: 22px;
  --body: clamp(16px, 1.1vw, 17.6px); --small: clamp(11px, .8vw, 12px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: var(--body); line-height: 1.55; background: var(--paper); color: var(--ink); }
main { overflow-x: clip; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2 { text-wrap: balance; }
a { color: inherit; text-underline-offset: .2em; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 calc(var(--u) * 3); }
.langkau { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 5; }
.langkau:focus { top: 12px; }

.hdr { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 2); padding: calc(var(--u) * 2.5) 0; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 20px; letter-spacing: -.01em; text-decoration: none; }
.mark img { width: 32px; height: 32px; flex: none; }
.nav { display: flex; align-items: center; gap: calc(var(--u) * 3); font-size: 15px; }
.nav a { text-decoration: none; }
.nav a.opt:hover { text-decoration: underline; }
.lang { font: 500 13px var(--mono); border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
@media (max-width: 420px) { .nav .opt { display: none; } }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 650 16px var(--sans); text-decoration: none; border: 2px solid var(--ink); }
.btn.utama { background: var(--ink); color: var(--paper); }
.btn.utama:hover { background: var(--accent); border-color: var(--accent); }
.btn.kedua:hover { background: var(--soft); }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: calc(var(--u) * 6); align-items: center; padding: calc(var(--u) * 5) 0 var(--section); }
h1 { font-size: var(--h1); line-height: .98; letter-spacing: -.035em; font-weight: 800; }
/* The swapped quote is sized from the text column, not the viewport: the column narrows at desktop because the stage sits beside it. */
.hero > div:first-child { container-type: inline-size; }
.swap { display: inline-grid; max-width: 100%; color: var(--accent); }
.swap span { grid-area: 1 / 1; opacity: 0; translate: 0 .3em; transition: opacity .5s cubic-bezier(.16, 1, .3, 1), translate .5s cubic-bezier(.16, 1, .3, 1); font-size: min(1em, var(--swap-fit)); }
.swap span.on { opacity: 1; translate: 0 0; }
.lede { margin-top: calc(var(--u) * 3); max-width: 34em; font-size: 19px; color: var(--muted); }
.acts { margin-top: calc(var(--u) * 4); display: flex; flex-wrap: wrap; gap: 12px; }

.stage { position: relative; min-height: 600px; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 6px; background: var(--canvas); border: 1px solid var(--line); }
.phone { position: absolute; right: -2%; bottom: -24px; width: 250px; aspect-ratio: 9 / 19.5; border-radius: 42px; padding: 11px; background: var(--frame); box-shadow: 0 30px 60px -24px var(--shadow); }
.phone .screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--paper); color: var(--ink); position: relative; font-size: 13px; line-height: 1.4; }
.phone .notch { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 84px; height: 22px; border-radius: 12px; background: var(--frame); }
.shop { padding: 42px 16px 16px; }
.shop .tag { display: inline-block; font: 500 10px var(--mono); border: 1px solid var(--ink); border-radius: 4px; padding: 2px 6px; }
.shop .nama { margin: 10px 0 2px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.shop .sub { color: var(--muted); }
.shop .notice { margin: 14px -16px; padding: 12px 16px; font-weight: 650; background: var(--soft); color: var(--notice-ink); border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); overflow-wrap: anywhere; }
.shop .notice.kosong { font-weight: 500; color: var(--muted); background: transparent; border-color: var(--line); }
.shop .row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }

.had { padding: calc(var(--u) * 4) 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: calc(var(--u) * 3); }
.vault-line { font-size: var(--h3); font-weight: 700; letter-spacing: -.01em; max-width: 30ch; }
.had-baris { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 4); }
.had-baris dt { color: var(--muted); font-size: 14px; }
.had-baris dd { font-size: 20px; font-weight: 500; }

section.ledger { padding: var(--section) 0; border-top: 1px solid var(--line); }
h2 { font-size: var(--h2); letter-spacing: -.02em; line-height: 1.15; max-width: 22em; }
.note { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 60ch; }
.jadual { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: calc(var(--u) * 4); font-size: 15px; }
th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--ink); font-size: 13px; }
td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.n { text-align: right; }
.stamp { display: inline-block; font: 800 14px var(--sans); letter-spacing: .04em; padding: 4px 12px; border: 3px solid currentColor; border-radius: 6px; rotate: -5deg; white-space: nowrap; }
.stamp.ok { color: var(--accent); }
.stamp.no { color: var(--refuse); }

.vault { padding: var(--section) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: calc(var(--u) * 6); align-items: start; border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps li { position: relative; padding: 0 0 26px; }
.steps li::before { content: ""; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.steps b { display: block; font-size: var(--h3); letter-spacing: -.01em; }
.steps p { color: var(--muted); max-width: 46ch; }
.kaki { padding: calc(var(--u) * 4) 0 calc(var(--u) * 6); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 900px) {
  .hero, .vault { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 0; display: flex; flex-direction: column; align-items: center; }
  .stage canvas { position: relative; inset: auto; height: 300px; }
  .phone { position: relative; right: auto; bottom: auto; margin-top: -56px; }
  th:nth-child(2), td:nth-child(2) { display: none; }
}
@media (max-width: 380px) { .phone { width: 240px; } td { padding: 12px 6px; } .stamp { font-size: 12px; padding: 3px 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
