/* MyLembur — halaman unduh
   Dibuat untuk hosting statis (GitHub Pages / Cloudflare Pages / Netlify).
   Tanpa font eksternal, tanpa analytics, tanpa request ke server lain. */

:root {
  color-scheme: light dark;

  --bg: #f4f7ff;
  --surface: #ffffff;
  --surface-2: #eef3ff;
  --text: #15181f;
  --muted: #59607a;
  --border: #dfe6f5;

  --primary: #2f6fed;
  --primary-strong: #1f57c9;
  --on-primary: #ffffff;
  --primary-soft: #dce7ff;
  --on-primary-soft: #0a2a5e;

  --ok: #1f8a5b;
  --warn-bg: #fff6e0;
  --warn-border: #f0d79a;
  --warn-text: #6b4c00;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(23, 43, 99, .08);
  --shadow-lg: 0 24px 60px rgba(23, 43, 99, .16);
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117;
    --surface: #171b24;
    --surface-2: #1d2230;
    --text: #e9ecf4;
    --muted: #a2a9bd;
    --border: #272e3e;

    --primary: #6f9bff;
    --primary-strong: #8db1ff;
    --on-primary: #0a1a3a;
    --primary-soft: #1b2947;
    --on-primary-soft: #d6e3ff;

    --ok: #5ed6a0;
    --warn-bg: #2a2314;
    --warn-border: #4a3d1d;
    --warn-text: #f0d79a;

    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); }

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(47, 111, 237, .22), transparent 70%),
    radial-gradient(700px 380px at 88% 0%, rgba(111, 155, 255, .18), transparent 70%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: center;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.app-icon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.app-name {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.app-tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero p.lead {
  margin: 0 0 24px;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 46ch;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.badge {
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  border: 1px solid transparent;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--primary-strong); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover { background: var(--surface-2); }

.btn svg { flex: 0 0 auto; }

.meta {
  margin: 18px 0 0;
  font-size: .88rem;
  color: var(--muted);
}

.meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- QR card ---------- */

.qr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.qr-card h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  letter-spacing: .01em;
}

.qr-card p {
  margin: 0 0 16px;
  font-size: .86rem;
  color: var(--muted);
}

#qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 196px;
  min-width: 196px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
}

#qr svg { display: block; width: 176px; height: 176px; }

.qr-fallback {
  font-size: .82rem;
  color: var(--muted);
  max-width: 24ch;
}

/* ---------- Sections ---------- */

section { padding: 56px 0; }

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 3.4vw, 1.7rem);
  letter-spacing: -.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Screenshots */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shot {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 12px 14px;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Features */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
}

.card .emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

/* Steps */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px 18px 68px;
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
}

.steps strong { display: block; }

.steps span {
  font-size: .9rem;
  color: var(--muted);
}

/* Notice */

.notice {
  display: flex;
  gap: 14px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: .92rem;
  margin-top: 18px;
}

.notice strong { color: inherit; }

/* FAQ */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--muted);
  line-height: 1;
}

.faq details[open] summary::after { content: "\2013"; }

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .93rem;
}

/* Download strip */

.strip {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-radius: var(--radius);
  padding: 34px 28px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.strip h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: #fff;
}

.strip p {
  margin: 0;
  color: rgba(255, 255, 255, .85);
  font-size: .92rem;
}

.strip .btn-primary {
  background: #fff;
  color: #14356f;
  box-shadow: none;
}

.strip .btn-primary:hover { background: #eef3ff; }

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: .88rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

footer a { color: var(--muted); }

footer a:hover { color: var(--primary); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { padding: 40px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .qr-card { max-width: 340px; }
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .app-icon { width: 64px; height: 64px; border-radius: 18px; }
  .btn { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  section { padding: 42px 0; }
  .strip { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
