/* Shared foundation for the landing page, legal pages and the app.
   Light theme on purpose: the reader is a shop owner or developer in daylight,
   on a phone or a bright office laptop. Warm turmeric identity, tinted neutrals,
   no pure black or white. */
:root {
  color-scheme: light;

  --paper: oklch(0.975 0.014 92);
  --paper-2: oklch(0.95 0.022 90);
  --surface: oklch(0.99 0.008 92);
  --ink: oklch(0.25 0.035 60);
  --ink-2: oklch(0.42 0.03 65);
  --line: oklch(0.87 0.025 88);
  --line-strong: oklch(0.75 0.04 85);

  --turmeric: oklch(0.84 0.165 88);
  --turmeric-deep: oklch(0.72 0.16 76);
  --turmeric-soft: oklch(0.94 0.07 92);
  --on-turmeric: oklch(0.24 0.04 60);
  --on-turmeric-2: oklch(0.32 0.05 62);

  --leaf: oklch(0.44 0.11 155);
  --leaf-soft: oklch(0.93 0.05 155);
  --warn: oklch(0.48 0.12 65);
  --warn-soft: oklch(0.94 0.07 85);
  --danger: oklch(0.5 0.18 27);
  --danger-soft: oklch(0.94 0.04 25);

  --code-bg: oklch(0.21 0.025 60);
  --code-bg-2: oklch(0.27 0.03 60);
  --code-fg: oklch(0.93 0.02 88);
  --code-dim: oklch(0.72 0.03 80);
  --code-accent: oklch(0.84 0.14 88);

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 72rem;
  --radius: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
code, kbd, pre { font-family: var(--font-mono); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .band-ink :focus-visible { outline-color: var(--turmeric); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 0.5rem; z-index: 50; }
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.7rem 1.35rem;
  font: 600 1rem/1 var(--font-body);
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease-out), background-color 0.18s, color 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-turmeric { background: var(--turmeric); color: var(--on-turmeric); border-color: var(--turmeric); }
.btn-turmeric:hover { background: var(--turmeric-soft); border-color: var(--turmeric-soft); }
.btn-link { font-weight: 600; text-decoration: underline; padding: 0.5rem 0.25rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- top navigation ---------- */
.nav { display: flex; align-items: center; gap: 1.25rem; padding-block: 1.1rem; }
.brand { font: 800 1.45rem/1 var(--font-display); letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.brand-mark { width: 1.6rem; height: 1.6rem; flex: none; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; font-weight: 500; }
.nav-links a { text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-bottom-color: currentColor; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem; }
.nav-actions .btn { min-height: 2.5rem; padding: 0.5rem 1.05rem; font-size: 0.95rem; }
@media (max-width: 52rem) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 26rem) {
  .nav-actions .btn-outline { display: none; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: oklch(0.88 0.02 88); padding-block: 3rem 2.5rem; margin-top: 0; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer .brand { color: var(--turmeric); }
.site-footer h2 { font: 700 0.95rem/1.2 var(--font-body); letter-spacing: 0; color: oklch(0.96 0.02 90); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .fine { font-size: 0.875rem; color: oklch(0.78 0.02 85); max-width: 34ch; margin-top: 0.75rem; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid oklch(0.38 0.03 60); padding-top: 1.25rem; font-size: 0.85rem; color: oklch(0.75 0.02 85); }
@media (max-width: 44rem) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- long-form text (Syarat, Privasi) ---------- */
.prose { max-width: 44rem; padding-block: 2rem 5rem; }
.prose h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 0.75rem; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.prose p, .prose li { max-width: 68ch; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 0.9rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose .meta { color: var(--ink-2); margin-bottom: 2rem; }
.prose .notice { background: var(--warn-soft); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1rem 1.25rem; margin-block: 1.5rem; }
