:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --text: #1f2420;
  --text-dim: #6b7268;
  --accent: #2f6f5e;
  --accent-soft: #e4ede9;
  --border: #e6e2d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181a;
    --surface: #1b2023;
    --text: #eef1ee;
    --text-dim: #93a098;
    --accent: #5fbfa0;
    --accent-soft: #1e2b27;
    --border: #2a3134;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Karla", -apple-system, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }

.tagline-site {
  color: var(--text-dim);
  font-size: 14px;
}

.hero {
  padding: 64px 0 48px;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.15;
  margin: 0 0 18px 0;
  max-width: 16ch;
  text-wrap: balance;
}
.hero p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 56ch;
  margin: 0;
}

.section {
  padding: 8px 0 64px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease;
}
.app-card:hover { border-color: var(--accent); }

.app-card__logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--accent-soft);
  border-radius: 10px;
}

.app-card__name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
}

.app-card__tagline {
  color: var(--text-dim);
  font-size: 14px;
  flex: 1;
}

.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: flex-start;
}

.app-card__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.app-card__kind {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 999px;
}

.empty-state {
  color: var(--text-dim);
  font-style: italic;
  padding: 40px 0;
}

/* ---- Halaman detail produk ---- */
.product-head {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}
.product-head__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.product-head__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.product-head h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 32px;
  margin: 0 0 4px 0;
}
.product-head__tagline {
  color: var(--text-dim);
  font-size: 15px;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 20px;
}
.product-cta:hover { opacity: 0.9; }

.product-body {
  padding: 40px 0 64px;
}
.product-body .wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.prose h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 12px 0;
}
.prose p {
  margin: 0 0 14px 0;
  max-width: 68ch;
  color: var(--text);
}
.prose p:last-child { margin-bottom: 0; }

.back-link {
  display: inline-block;
  margin: 28px 0 0;
  color: var(--text-dim);
  font-size: 14px;
}
.back-link:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-dim);
  font-size: 13px;
}
