/* ============================================================
   Nyasar web design system — warna persis dari app
   (ForestGreen #2E5339, NyasarGreen #5A7562, krem #FBFDF9).
   Dipakai bersama index.html, route/, privacy, terms.
   ============================================================ */
:root {
  --forest: #2E5339;        /* ForestGreen — secondary app */
  --nyasar: #5A7562;        /* NyasarGreen — primary app */
  --nyasar-light: #7A9582;
  --nyasar-dark: #3A5542;
  --bg: #FBFDF9;            /* app light background */
  --surface: #FFFFFF;
  --surface-tint: #DDE5DA;  /* app surfaceVariant */
  --ink: #1A1C19;           /* app onBackground */
  --ink-soft: #414941;      /* app onSurfaceVariant */
  --ink-mute: #6F7971;      /* app outline */
  --amber: #F2A900;         /* app WarningAmber */
  --line: #E3EAE2;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(26, 28, 25, .06), 0 1px 2px rgba(26, 28, 25, .04);
  --shadow-md: 0 6px 24px rgba(26, 28, 25, .10), 0 2px 6px rgba(26, 28, 25, .06);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header / nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 253, 249, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--forest);
  text-decoration: none; letter-spacing: .2px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--nyasar) 100%);
  display: grid; place-items: center; color: #fff; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.topbar .spacer { flex: 1; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600;
  font-size: .92rem; padding: 8px 12px; border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--surface-tint); color: var(--forest); }

/* Language toggle — pill switch ID | EN */
.lang-switch {
  display: inline-flex; align-items: center;
  background: var(--surface-tint); border-radius: 999px; padding: 3px;
  border: 1px solid var(--line);
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 800; letter-spacing: .5px;
  color: var(--ink-mute); padding: 5px 12px; border-radius: 999px;
  transition: all .15s ease;
}
.lang-switch button.active {
  background: var(--forest); color: #fff;
  box-shadow: var(--shadow-sm);
}
.lang-switch button:not(.active):hover { color: var(--forest); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(90, 117, 98, .16), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(46, 83, 57, .12), transparent 55%),
    linear-gradient(180deg, #F3F7F1 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 1080px; margin: 0 auto; padding: 84px 20px 72px;
  text-align: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: .82rem; font-weight: 700;
  color: var(--nyasar-dark); box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero-kicker .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--nyasar);
  box-shadow: 0 0 0 4px rgba(90, 117, 98, .18);
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.12; letter-spacing: -.02em; color: var(--forest);
  font-weight: 800; margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal; color: var(--nyasar);
  position: relative; white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em;
  height: .32em; background: rgba(242, 169, 0, .28); z-index: -1;
  border-radius: 4px; transform: rotate(-.6deg);
}
.hero p.lead {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: var(--ink-soft); max-width: 620px; margin: 0 auto 34px;
}
.cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .98rem;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--forest), var(--nyasar-dark));
  color: #fff; box-shadow: 0 8px 20px rgba(46, 83, 57, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46, 83, 57, .34); }
.btn-ghost {
  background: #fff; color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-ghost:hover { background: var(--forest); color: #fff; transform: translateY(-2px); }
.hero-note {
  margin-top: 18px; font-size: .85rem; color: var(--ink-mute);
}

/* ---------- Sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 72px 20px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.1rem); color: var(--forest);
  letter-spacing: -.015em; margin-bottom: 10px; font-weight: 800;
}
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }

.grid-3 {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, rgba(46, 83, 57, .12), rgba(90, 117, 98, .16));
  margin-bottom: 16px;
}
.card h3 { color: var(--forest); font-size: 1.08rem; margin-bottom: 8px; font-weight: 700; }
.card p { color: var(--ink-soft); font-size: .94rem; }

/* Feature band (privacy) */
.band {
  background: linear-gradient(135deg, var(--forest) 0%, var(--nyasar-dark) 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: 40px 32px; text-align: center;
  box-shadow: var(--shadow-md);
}
.band h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin-bottom: 10px; letter-spacing: -.01em; }
.band p { opacity: .88; max-width: 560px; margin: 0 auto 26px; }
.band .cta-row .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.band .cta-row .btn-ghost:hover { background: #fff; color: var(--forest); }

/* Steps */
.steps {
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 24px; position: relative;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--forest); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.step h3 { color: var(--forest); font-size: 1.02rem; margin: 10px 0 6px; font-weight: 700; }
.step p { color: var(--ink-soft); font-size: .92rem; }

/* Stats strip */
.stats-strip {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: 780px; margin: 0 auto;
}
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 16px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-size: 1.7rem; color: var(--forest); letter-spacing: -.02em; }
.stat span { color: var(--ink-mute); font-size: .84rem; font-weight: 600; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-wrap { max-width: 800px; margin: 0 auto; padding: 48px 20px 72px; }
.legal-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-sm);
}
.legal-card h1 {
  color: var(--forest); font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -.015em; margin-bottom: 6px;
}
.legal-card .updated { color: var(--ink-mute); font-size: .88rem; margin-bottom: 26px; }
.legal-card h2 {
  color: var(--forest); font-size: 1.18rem; margin: 30px 0 10px; font-weight: 700;
}
.legal-card h3 { color: var(--nyasar-dark); font-size: 1rem; margin: 20px 0 8px; }
.legal-card p, .legal-card li { color: var(--ink-soft); font-size: .96rem; }
.legal-card ul { padding-left: 22px; margin: 8px 0 14px; }
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--forest); font-weight: 600; }
.legal-card strong { color: var(--ink); }
.legal-card table {
  width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: .92rem;
}
.legal-card th {
  text-align: left; padding: 10px 12px; background: var(--surface-tint);
  color: var(--forest); border: 1px solid var(--line);
}
.legal-card td { padding: 10px 12px; border: 1px solid var(--line); color: var(--ink-soft); }

/* Back link on legal pages */
.back-home {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--forest); text-decoration: none; font-weight: 700;
  font-size: .92rem; margin-bottom: 20px;
}
.back-home:hover { text-decoration: underline; }

/* ---------- Route landing ---------- */
.route-main { max-width: 760px; margin: 0 auto; padding: 36px 20px 64px; }
.route-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(22px, 5vw, 36px);
  box-shadow: var(--shadow-md); margin-bottom: 16px;
}
.route-card h1 {
  color: var(--forest); font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -.015em; margin-bottom: 4px;
}
.route-card .meta { color: var(--ink-mute); font-size: .9rem; margin-bottom: 20px; }
.route-stats {
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: 22px;
}
.route-stat {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 12px; text-align: center;
}
.route-stat b { display: block; color: var(--forest); font-size: 1.15rem; }
.route-stat span { color: var(--ink-mute); font-size: .78rem; font-weight: 600; }
.route-actions { display: flex; flex-direction: column; gap: 10px; }
.route-actions .btn { justify-content: center; }
.route-hint { color: var(--ink-mute); font-size: .88rem; text-align: center; margin-top: 6px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  background: #F3F7F1;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 30px 20px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  justify-content: space-between; color: var(--ink-mute); font-size: .88rem;
}
.footer-inner a { color: var(--forest); text-decoration: none; font-weight: 600; }
.footer-inner a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-links a:not(.lang-switch) { display: none; }
  .hero-inner { padding: 60px 20px 52px; }
  .section { padding: 52px 20px; }
}
