/* simpan.id — design tokens & shared styles */
:root {
  /* Backgrounds */
  --bg: oklch(0.985 0.003 60);
  --bg-soft: oklch(0.97 0.005 50);
  --bg-card: #ffffff;
  --bg-ink: oklch(0.18 0.012 30);

  /* Ink (foreground) */
  --ink: oklch(0.20 0.012 30);
  --ink-2: oklch(0.40 0.010 30);
  --ink-3: oklch(0.58 0.008 40);
  --ink-4: oklch(0.78 0.006 60);

  /* Accent — merah Indonesia, dimatikan sedikit */
  --merah: oklch(0.58 0.19 27);
  --merah-2: oklch(0.52 0.20 27);
  --merah-soft: oklch(0.95 0.04 27);

  /* Lines */
  --line: oklch(0.92 0.005 60);
  --line-2: oklch(0.86 0.006 60);

  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

.simpan-root {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.01em;
}

.simpan-root h1, .simpan-root h2, .simpan-root h3 {
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0;
}

.simpan-root p { margin: 0; line-height: 1.55; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono); }

/* Pill / badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--merah);
  box-shadow: 0 0 0 3px oklch(0.58 0.19 27 / 0.18);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .12s ease, background .15s, box-shadow .15s, color .15s;
  border: 1px solid transparent;
  letter-spacing: -0.005em;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 1px 2px rgba(0,0,0,0.08);
}
.btn-primary:hover { background: black; }
.btn-merah {
  background: var(--merah);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 16px -8px oklch(0.58 0.19 27 / 0.5);
}
.btn-merah:hover { background: var(--merah-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-4); }

/* Logo lockup */
.brand {
  display: inline-flex; align-items: baseline; gap: 0;
  font-weight: 600; font-size: 18px;
  letter-spacing: -0.03em;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-family: var(--serif);
  font-size: 16px;
  margin-right: 8px;
  position: relative;
  top: 3px;
}
.brand-merah .brand-mark { background: var(--merah); }
.brand-tld {
  color: var(--ink-3);
  font-weight: 500;
}

/* Subtle striped placeholder for imagery */
.placeholder-stripes {
  background:
    repeating-linear-gradient(
      45deg,
      oklch(0.93 0.005 60),
      oklch(0.93 0.005 60) 8px,
      oklch(0.96 0.004 60) 8px,
      oklch(0.96 0.004 60) 16px
    );
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* Card surface */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* Underline link */
.ulink {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-4);
  padding-bottom: 1px;
  transition: border-color .12s;
}
.ulink:hover { border-bottom-color: var(--ink); }

/* Hover lift for feature cards */
.lift { transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .2s; }
.lift:hover { transform: translateY(-2px); border-color: var(--ink-4); }

/* Marquee animation */
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Subtle grid background */
.grid-bg {
  background-image:
    linear-gradient(to right, oklch(0.92 0.005 60 / 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.92 0.005 60 / 0.5) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Tiny dotted */
.dot-bg {
  background-image: radial-gradient(oklch(0.85 0.006 60) 1px, transparent 1px);
  background-size: 18px 18px;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
