:root {
  --brand: #27b095;
  --brand-dark: #1d8a75;
  --accent: #f26539;
  --bg: #ffffff;
  --bg-soft: #f4f7f6;
  --text: #1f2a28;
  --muted: #5d6b68;
  --border: #e2e8e6;
  --card: #ffffff;
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1514;
    --bg-soft: #161e1c;
    --text: #e8efed;
    --muted: #a3b1ad;
    --border: #26302e;
    --card: #161e1c;
    --brand: #3cc4a8;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Language blocks: both are in the HTML, the other language is hidden.
   !important so component rules (e.g. .store-btn small) can't show it. */
html:not([lang="id"]) [data-lang="id"],
html:not([lang="en"]) [data-lang="en"] { display: none !important; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #46a0ae 0%, #27b095 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1.3fr 1fr; }
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 12px; }
.hero p.lead { font-size: 1.1rem; opacity: .95; margin: 0 0 24px; max-width: 34em; }
.hero-icon {
  justify-self: center;
  width: min(220px, 60vw);
  border-radius: 48px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .2);
  background: #fff;
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 18px;
  min-height: 52px;
  font-weight: 600;
}
.store-btn:hover { background: #000; color: #fff; }
.store-btn small { display: block; font-weight: 400; font-size: .72rem; opacity: .8; line-height: 1.1; }
.store-btn span { line-height: 1.2; }
.store-btn svg { width: 24px; height: 24px; flex: none; }

/* Sections */
section.block { padding: 56px 0; }
section.block.soft { background: var(--bg-soft); }
section.block h2 { font-size: 1.6rem; margin: 0 0 8px; }
section.block > .wrap > p.sub { color: var(--muted); margin: 0 0 28px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.feature .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  margin-bottom: 12px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.privacy-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--card);
}

/* Documents */
.doc { padding: 40px 0 72px; }
.doc h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 6px; }
.doc h2 { font-size: 1.2rem; margin: 2.2rem 0 .6rem; }
.doc .meta { color: var(--muted); font-size: .92rem; margin: 0 0 1.6rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin: .3rem 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
.doc th, .doc td { border: 1px solid var(--border); padding: 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-soft); }
.callout {
  border-left: 4px solid var(--brand);
  background: var(--bg-soft);
  padding: 14px 16px;
  border-radius: 8px;
  margin: 1.2rem 0;
}
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 2px 0 14px 44px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .9rem;
}
code { background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); }
