/* ==================================================================
   FONT IMPORTS — harus di paling atas file
   Dengan @import di sini, 29 file HTML tidak perlu diubah.
   Semua halaman yang link ke shared.css otomatis dapat Lora + Inter.
   ================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@400;500;600;700&display=swap');

/* ==================================================================
   KenaliDiri.id — Shared Design System
   VERSI: 2.0 — April 2026
   TEMA: Calm-inspired (Deep blue + mist)
   FONT: Lora (heading) + Inter (body)
   ==================================================================

   PENTING UNTUK DEVELOPER:
   Nama variabel CSS TIDAK diubah dari versi 1.0 supaya 29 file HTML
   yang sudah pakai var(--cream), var(--terracotta), dll. tidak perlu
   dimodifikasi. Hanya NILAI variabel yang diperbarui.

   Contoh:
   - --cream dulu krem (#f7f2ea), sekarang mist biru (#F5F9FC)
   - --terracotta dulu orange, sekarang teal healing (#14B8A6)
   - --ink dulu coklat-hitam, sekarang navy-ink (#0F1F33)

   HALAMAN TELE-ASSESSMENT punya font sendiri (Merriweather + Nunito)
   yang di-override di style block halaman itu saja.
   ================================================================== */

:root {
  /* === Backgrounds — dulu "warm neutrals", sekarang "cool mist" === */
  --cream:       #F5F9FC;  /* mist / page bg (dulu #f7f2ea krem) */
  --cream-light: #FAFCFE;  /* lighter mist untuk alt section */
  --cream-dark:  #E8F0F7;  /* mist lebih pekat untuk hover states */
  --sand:        #D6E4F0;  /* pale blue surface */
  --paper:       #FFFFFF;  /* pure white — tetap */

  /* === Ink (teks) — sekarang navy-tone, bukan brown-tone === */
  --ink:         #0F1F33;  /* navy-black untuk heading */
  --ink-mid:     #334A63;  /* slate blue untuk body text */
  --ink-soft:    #64748B;  /* muted slate untuk caption */
  --ink-muted:   #94A3B8;  /* light slate untuk placeholder */

  /* === Aksen brand — biru jadi primary, teal jadi accent === */
  --blue:        #1A365D;  /* deep navy — primary action */
  --blue-light:  #E0ECF6;  /* mist biru untuk bg aksen */
  --terracotta:  #14B8A6;  /* TEAL healing (dulu terracotta orange) */
  --terracotta-light: #CCFBF1; /* pale teal untuk bg badge */
  --sage:        #0EA5E9;  /* sky blue (dulu sage hijau) */
  --sage-light:  #E0F2FE;  /* pale sky untuk success bg */
  --clay:        #4A90B8;  /* steel blue untuk border hover */

  /* === Borders === */
  --line:        #CBD5E1;  /* soft slate border */
  --line-soft:   #E2E8F0;  /* very soft border */

  /* === Shadows — sekarang tone biru, bukan coklat === */
  --shadow-sm:   0 1px 2px rgba(15,31,51,.04), 0 1px 1px rgba(15,31,51,.03);
  --shadow:      0 4px 12px rgba(15,31,51,.06), 0 2px 4px rgba(15,31,51,.04);
  --shadow-lg:   0 16px 40px rgba(15,31,51,.10), 0 6px 16px rgba(15,31,51,.06);

  /* === Radius (tetap sama, terbukti works) === */
  --r:           10px;
  --r-lg:        18px;
  --r-xl:        28px;

  /* === License badge colors (tetap — ini semantic untuk tier tes) === */
  --license-free:  #10B981;  /* emerald (dulu sage) */
  --license-semi:  #F59E0B;  /* amber (tetap warning-ish) */
  --license-paid:  #EF4444;  /* red (tetap danger-ish) */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

em {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

p { color: var(--ink-mid); }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--terracotta); }

/* Paper texture — sekarang soft blue dot pattern, bukan brown */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(100,116,139,.05) 1px, transparent 0);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ==================================================================
   UNIVERSAL NAVIGATION
   ================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,249,252,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: 'Lora', serif;
  font-weight: 700; font-size: 22px;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--clay));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 15px;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.15);
}
.nav-logo-mark::before { content: '🌱'; filter: saturate(.85); }
.nav-logo .dot { color: var(--terracotta); font-style: italic; }

.nav-links {
  display: flex; gap: 2px; align-items: center;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-mid);
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: all .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--cream-dark); }
.nav-links a.active { color: var(--blue); background: var(--blue-light); font-weight: 600; }

/* Dropdown for Tes */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 10px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r);
  font-size: 14px;
}
.nav-dropdown-menu a:hover { background: var(--cream-light); }
.nav-dd-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--cream-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.nav-dd-title { font-weight: 600; color: var(--ink); line-height: 1.3; }
.nav-dd-desc { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.btn-ghost {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--ink-mid);
  padding: 9px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--ink); background: var(--cream-dark); }

.btn-primary {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  background: var(--blue);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #13284A; transform: translateY(-1px); box-shadow: var(--shadow); color: white; }
.btn-primary .arrow { transition: transform .2s; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 22px;
  color: var(--ink);
}

@media (max-width: 920px) {
  .nav { padding: 14px 20px; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .nav.mobile-open { flex-wrap: wrap; }
  .nav.mobile-open .nav-links,
  .nav.mobile-open .nav-actions {
    display: flex; flex-direction: column; width: 100%;
    align-items: stretch;
    padding-top: 16px; gap: 4px;
    border-top: 1px solid var(--line-soft); margin-top: 14px;
  }
  .nav.mobile-open .nav-links a { padding: 12px 14px; }
  .nav.mobile-open .nav-actions { padding-top: 10px; }
  .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 6px 0 6px 20px; background: transparent; }
}

/* ==================================================================
   BUTTONS & COMMON
   ================================================================== */
.btn-lg {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 14px 26px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.btn-solid {
  background: var(--blue); color: white;
  box-shadow: 0 4px 12px rgba(26,54,93,.2);
}
.btn-solid:hover {
  background: #13284A; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26,54,93,.3);
  color: white;
}
.btn-outline {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ==================================================================
   PAGE LAYOUT UTILITIES
   ================================================================== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.page-hero {
  padding: 80px 32px 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute;
  top: -150px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--blue-light) 0%, transparent 65%);
  pointer-events: none;
  opacity: .7;
}
.page-hero-inner { max-width: 880px; margin: 0 auto; position: relative; }

.breadcrumb {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--ink-muted); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--terracotta);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 20px; height: 1px; background: var(--terracotta);
}

.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.page-hero h1 em::after {
  content: ''; display: block;
  height: 6px; margin-top: -6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 6'%3E%3Cpath d='M2 4 Q 50 0, 100 3 T 198 2' stroke='%2314B8A6' stroke-width='2' fill='none' opacity='.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.page-hero .lead {
  font-size: 18px;
  color: var(--ink-mid);
  max-width: 640px;
  line-height: 1.65;
}

.section { padding: 80px 32px; position: relative; }
.section.alt { background: var(--cream-light); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section h2 { font-size: clamp(28px, 3.8vw, 40px); margin-bottom: 18px; max-width: 720px; }
.section-lead { font-size: 17px; color: var(--ink-mid); max-width: 620px; margin-bottom: 48px; }

/* ==================================================================
   CARDS & GRIDS
   ================================================================== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clay);
  color: inherit;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--ink-mid); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 820px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* License badges — warna baru mengikuti palette Calm */
.license-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid;
}
.license-free { background: #ECFDF5; color: var(--license-free); border-color: var(--license-free); }
.license-semi { background: #FEF3C7; color: var(--license-semi); border-color: var(--license-semi); }
.license-paid { background: #FEE2E2; color: var(--license-paid); border-color: var(--license-paid); }

/* Tier badges */
.tier-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: 99px;
}
.tier-free { background: var(--sage-light); color: var(--sage); border: 1px solid var(--sage); }
.tier-pro { background: var(--blue-light); color: var(--blue); border: 1px solid var(--blue); }
.tier-coin { background: var(--terracotta-light); color: #0F766E; border: 1px solid var(--terracotta); }

/* Tags */
.tag {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  color: var(--ink-mid);
  padding: 3px 10px;
  background: var(--cream-dark);
  border-radius: 99px;
}

/* ==================================================================
   FOOTER
   ================================================================== */
.footer {
  background: var(--ink);
  color: rgba(245,249,252,.7);
  padding: 60px 40px 40px;
  border-top: 1px solid rgba(245,249,252,.1);
  margin-top: 80px;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245,249,252,.1);
}
.footer-brand .nav-logo { color: var(--cream); font-size: 24px; }
.footer-brand p {
  font-size: 14px;
  color: rgba(245,249,252,.6);
  max-width: 300px;
  margin-top: 16px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(245,249,252,.6);
  text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom {
  max-width: 1160px; margin: 40px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  font-size: 13px;
  color: rgba(245,249,252,.5);
}
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ==================================================================
   CLUSTER / CATEGORY CARDS
   ================================================================== */
.cluster-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.cluster-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--cluster-color, var(--blue));
}
.cluster-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cluster-color, var(--blue));
  color: inherit;
}
.cluster-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--cluster-bg, var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.cluster-card h3 {
  font-family: 'Lora', serif;
  font-size: 24px; font-weight: 700;
  margin-bottom: 10px;
}
.cluster-card p {
  font-size: 15px;
  color: var(--ink-mid);
  margin-bottom: 18px;
}
.cluster-meta {
  display: flex; gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-soft);
}
.cluster-meta strong { color: var(--ink); font-weight: 600; }
