/* ============ Tokens ============ */
:root {
  /* Palet "Ruang Kerja", sama dengan app desktop (src/ui.rs) */
  --navy: #13201f;        /* latar gelap (BG_WINDOW) */
  --navy-2: #1c2c2a;      /* SURFACE */
  --ink: #14211f;         /* teks di latar terang */
  --muted: #526864;
  --bg: #ffffff;
  --bg-alt: #f2f6f5;
  --line: #dfe8e6;
  --accent: #ff8a6b;      /* koral (ACCENT): isian tombol, garis, titik */
  --accent-dark: #f2734f; /* hover isian koral */
  --accent-ink: #b9472a;  /* koral untuk TEKS di latar terang (kontras 4.6:1) */
  --on-accent: #13201f;   /* teks di atas koral (ON_ACCENT); putih tidak terbaca */
  --mint: #6ee7b7;        /* sesi hidup / prompt */

  --radius: 14px;
  --radius-sm: 9px;
  --container: 1120px;
  --shadow: 0 1px 2px rgba(14, 32, 30, 0.04), 0 12px 32px -12px rgba(14, 32, 30, 0.16);

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "Fira Code", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

/* ============ Buttons ============ */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--sm { padding: 8px 16px; font-size: 0.88rem; }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--bg-alt); border-color: var(--muted); color: var(--ink); }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 24px; height: 24px; border-radius: 7px;
  display: block; flex: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.nav__links a:hover { color: var(--ink); }
.nav__links a.btn { color: var(--on-accent); }
.nav__links a.btn:hover { color: var(--on-accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }

/* ============ Hero ============ */
.hero {
  background: radial-gradient(120% 120% at 80% 0%, var(--navy-2), var(--navy) 60%);
  color: #e4efec;
  padding: 72px 0 90px;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero__copy h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); font-weight: 700; color: #fff; }
.hero .eyebrow { color: var(--mint); }
.lead { margin-top: 20px; font-size: 1.12rem; color: #a9c2bd; max-width: 36ch; }
.lead strong { color: #fff; font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .btn--ghost { color: #e4efec; border-color: rgba(255,255,255,0.22); }
.hero .btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); color: #fff; }
.hero__note { margin-top: 22px; font-size: 0.88rem; color: #8faaa5; }

/* Terminal window illustration */
.hero__art { position: relative; }
.term {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  background: #0e1817;
  font-family: var(--font-mono);
}
.term__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: #182826; border-bottom: 1px solid #000;
}
.term__bar .d { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.term__bar .d.r { background: #ff5f57; }
.term__bar .d.y { background: #febc2e; }
.term__bar .d.g { background: #28c840; }
.term__bar em { margin-left: 8px; font-style: normal; font-size: 0.74rem; color: #8faaa5; }
.term__body { padding: 16px 16px 20px; font-size: 0.82rem; line-height: 1.85; color: #cfe3df; }
.term__body p { margin: 0; white-space: nowrap; }
.term__body .pr { color: var(--mint); font-weight: 700; margin-right: 8px; }
.term__body .dim { color: #6e8a85; }
.term__body .cur {
  display: inline-block; width: 8px; height: 1.05em; vertical-align: text-bottom;
  background: var(--mint); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chip {
  position: absolute;
  background: rgba(255,255,255,0.96);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.chip--a { top: -16px; left: 20px; }
.chip--b { top: 46%; right: -26px; }
.chip--c { bottom: -16px; right: 26px; }

/* ============ Sections ============ */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 620px; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 600; }
.section__sub { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4dbe6; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.35rem; color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.14rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding-top: 10px; }
.step__no {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  color: #fff; background: var(--navy);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.14rem; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* Audience */
.audience {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 760px;
}
.audience li {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
  font-weight: 500;
}
.audience li::before {
  content: "✓"; color: var(--accent-ink); font-weight: 700;
  width: 22px; height: 22px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 6px; font-size: 0.85rem; flex: none;
}

/* Price */
.price { display: flex; justify-content: center; }
.price__card {
  width: 100%; max-width: 420px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); text-align: center;
}
.price__tier { font-family: var(--font-head); font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
.price__amount { font-family: var(--font-head); font-weight: 700; font-size: 2rem; margin: 8px 0 20px; color: var(--ink); }
.price__list { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; display: grid; gap: 12px; }
.price__list li { display: flex; gap: 10px; color: var(--muted); font-size: 0.97rem; }
.price__list li::before { content: "✓"; color: var(--accent-ink); font-weight: 700; }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 76px 0; text-align: center; }
.cta__inner { max-width: 640px; }
.cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; }
.cta p { margin-top: 14px; color: #a9c2bd; font-size: 1.08rem; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.cta .btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ============ Footer ============ */
.footer { background: var(--navy); color: #a9c2bd; padding: 48px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.brand--light { color: #fff; }
.footer__by { margin-top: 10px; font-size: 0.9rem; }
.footer__by a { color: #f2a86a; }
.footer__links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.footer__links a { color: #a9c2bd; font-size: 0.95rem; }
.footer__links a:hover { color: #fff; }
.footer__bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; font-size: 0.85rem; color: #70808f; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__art { max-width: 380px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 10px 4px; }
  .nav__links a.btn { justify-content: center; margin-top: 6px; }
  .cards { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}

.mk-note { text-align:center; color:var(--muted); font-size:.82rem; margin-top:16px; }

/* ============ Screenshot asli app (section Tampilan) ============ */
.shot { max-width: 980px; margin: 0 auto; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: 14px;
  border: 1px solid #000;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
}

/* ============ Modal beli (QRIS) ============ */
.buy[hidden] { display: none; }
.buy { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.buy__backdrop { position: absolute; inset: 0; background: rgba(14, 24, 23, 0.55); backdrop-filter: blur(3px); }
.buy__panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: var(--bg); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 40px 90px -20px rgba(0,0,0,.5);
  text-align: center;
}
.buy__close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.1rem; color: var(--muted); cursor: pointer; line-height: 1; }
.buy__close:hover { color: var(--ink); }
.buy__step[hidden] { display: none; }
.buy__step h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.buy__sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.buy__label { display: block; text-align: left; font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.buy__input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; margin-bottom: 16px; outline: none; }
.buy__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.buy__err { color: var(--accent-ink); font-size: 0.85rem; margin-top: 12px; text-align: left; }
.buy__amount { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--ink); margin-bottom: 16px; }
.buy__qr { display: grid; place-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); width: max-content; margin: 0 auto 16px; }
.buy__qr img, .buy__qr canvas { display: block; }
.buy__status { color: var(--muted); font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.buy__spin { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: buyspin 0.8s linear infinite; }
@keyframes buyspin { to { transform: rotate(360deg); } }
.buy__done .buy__check { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: color-mix(in srgb, #1f8f4e 14%, transparent); color: #1f8f4e; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .buy__spin { animation: none; } }

/* Voucher field in the buy modal */
.buy__opt { font-weight: 400; opacity: 0.7; }
.buy__voucher { display: flex; gap: 8px; align-items: flex-start; }
.buy__voucher .buy__input { margin-bottom: 0; text-transform: uppercase; }
.buy__voucher .btn { flex-shrink: 0; padding: 11px 16px; }
.buy__vmsg { font-size: 0.85rem; text-align: left; margin: 8px 0 0; }
.buy__vmsg--ok { color: #15803d; }
.buy__vmsg--err { color: var(--accent-ink); }
#buyForm #buySubmit { margin-top: 16px; }
.buy__was { text-decoration: line-through; opacity: 0.5; font-size: 1rem; margin-right: 8px; font-weight: 500; }

/* Lupa kode aktivasi */
.price__lost { margin-top: 12px; text-align: center; font-size: 0.88rem; }
.price__lost a, .buy__alt a { color: var(--muted); text-decoration: underline; }
.price__lost a:hover, .buy__alt a:hover { color: var(--accent-ink); }
.buy__alt { margin-top: 14px; font-size: 0.85rem; text-align: center; }
.buy__key { font-family: var(--font-mono); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.04em; word-break: break-all; background: var(--bg-alt); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; }
.buy__gap { margin-top: 10px; }

/* Unduh installer */
.buy__input--key { text-transform: uppercase; font-family: var(--font-mono); letter-spacing: 0.02em; }
.dl { display: grid; gap: 8px; margin-bottom: 14px; text-align: left; }
.dl__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.dl__item:hover { border-color: var(--accent); }
.dl__item--mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.dl__name { font-weight: 600; }
.dl__file { display: block; font-size: 0.8rem; color: var(--muted); word-break: break-all; }
.dl__tag { font-size: 0.75rem; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.buy__note { font-size: 0.85rem; color: var(--muted); text-align: left; white-space: pre-line; background: var(--bg-alt); border-radius: var(--radius-sm); padding: 10px 12px; }

/* Petunjuk pembukaan pertama (app belum ditandatangani Apple/Microsoft) */
.buy__help { text-align: left; font-size: 0.82rem; color: var(--muted); background: var(--bg-alt); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; }
.buy__help p { margin: 0 0 6px; }
.buy__help p:last-child { margin-bottom: 0; }
.buy__help b { color: var(--ink); font-weight: 600; }
.buy__help-title { font-weight: 600; color: var(--ink); }
.buy__help a { color: var(--accent-ink); text-decoration: underline; font-weight: 600; }

/* Batas waktu QRIS */
.buy__expiry { font-size: 0.88rem; color: var(--muted); margin: 10px 0 0; }
.buy__expiry b { color: var(--ink); font-variant-numeric: tabular-nums; }
.buy__expiry--soon b { color: var(--accent-ink); }
.buy__note--mail { margin-top: 14px; text-align: left; }
