/* ============================================================
   CekResi Express — shared stylesheet
   Static site, no build step. Visual language: neutral
   black-on-white, one blue accent, soft far-reaching shadows,
   friendly round corners, heavy headings (Plus Jakarta Sans).
   Light theme only. Font is loaded via <link preconnect> in
   each page's <head>, not @import, to avoid blocking render.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:            #eef0f3;
  --surface:       #ffffff;
  --surface-2:     #f7faff;
  --border:        #e3e6ea;
  --border-2:      #ecedf0;
  --line:          #f1f2f5;

  /* Text */
  --text:          #0f1115;
  --text-2:        #5b616e;
  --text-3:        #8a909c;

  /* Accent */
  --accent:        #2f6df0;
  --accent-ink:    #ffffff;
  --accent-bg:     #eaf1fe;
  --accent-shadow: rgba(47,109,240,0.42);

  /* Semantic */
  --good:          #1f9d57;
  --good-deep:     #13864a;
  --good-bg:       #e7f6ee;

  /* Store badge */
  --badge:         #0f1115;
  --badge-ink:     #ffffff;

  /* Type / radius / shadow */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-card:    18px;
  --radius-control: 12px;
  --radius-chip:    11px;
  --radius-pill:    99px;
  --radius-sm:      8px;
  --shadow-card:   0 18px 50px -24px rgba(15,17,21,0.22), 0 1px 4px rgba(15,17,21,0.05);
  --shadow-accent: 0 10px 26px -8px rgba(47,109,240,0.42);

  --maxw: 880px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; color: var(--text); }
h1 { font-weight: 800; font-size: clamp(30px, 6vw, 44px); letter-spacing: -0.03em; line-height: 1.12; }
h2 { font-weight: 800; font-size: clamp(22px, 4vw, 27px); letter-spacing: -0.02em; line-height: 1.2; }
h3 { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
p  { margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 11px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -0.02em; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; border-radius: 10px; box-shadow: var(--shadow-accent); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--text-2); font-weight: 600; font-size: 14px;
  padding: 9px 13px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; min-height: 40px;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-bg); }

/* Hamburger menu (mobile only) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  flex: none;
  cursor: pointer;
  border-radius: var(--radius-control);
}
.nav-toggle-label:hover { background: var(--surface-2); }
.nav-toggle-label span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--text); border-radius: 2px; }
.nav-toggle:focus-visible ~ .nav-toggle-label { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  .topbar__inner { flex-wrap: wrap; }
  .nav-toggle-label { display: flex; }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a { width: 100%; }
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
main { padding: clamp(32px, 6vw, 56px) 0 clamp(72px, 12vw, 120px); }
.section { margin-top: clamp(40px, 7vw, 64px); }

/* ---------- Hero ---------- */
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero__mark { width: 76px; height: 76px; border-radius: 20px; box-shadow: var(--shadow-accent); }
.hero .lead {
  max-width: 60ch; color: var(--text-2); font-size: 17px;
  text-wrap: pretty;
}
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }

/* ---------- Chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.chip--accent { background: var(--accent-bg); border-color: transparent; color: var(--accent); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.pill--good { background: var(--good-bg); border-color: transparent; color: var(--good-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--radius-control);
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: filter .15s ease, transform .1s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-accent); }
.btn--primary:hover { filter: brightness(1.07); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--badge { background: var(--badge); color: var(--badge-ink); }
.btn--badge:hover { filter: brightness(1.25); }
.btn--block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 3vw, 28px);
}

/* App cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.app { display: flex; flex-direction: column; gap: 16px; }
.app__head { display: flex; align-items: center; gap: 14px; }
.app__icon {
  width: 56px; height: 56px; flex: none;
  border-radius: 15px; background: var(--accent-bg);
  display: grid; place-items: center; font-size: 28px; line-height: 1;
}
.app__icon--lg { width: 72px; height: 72px; border-radius: 18px; font-size: 36px; }
.app__name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.app__cat { font-size: 13px; font-weight: 600; color: var(--accent); }
.app__desc { color: var(--text-2); }
.app__field-label { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border);
  white-space: nowrap;
}
.app__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.app__actions .btn { flex: 1 1 auto; }

/* Contact card */
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.contact .lead { color: var(--text-2); max-width: 52ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 28px 20px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.footer__links a { color: var(--text-2); font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: var(--radius-pill); }
.footer__links a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.footer__copy { flex-basis: 100%; color: var(--text-3); font-size: 13px; }

/* ============================================================
   PRIVACY POLICY PAGES
   ============================================================ */
.policy { max-width: 760px; margin: 0 auto; }
.policy__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.policy__head .eyebrow {
  margin-top: 4px;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}
.policy__head h1 { font-size: clamp(26px, 5vw, 38px); }
.policy__by { color: var(--text-2); }
.policy__dates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* Table of contents */
.toc { margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); padding: 18px 22px; }
.toc h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.toc ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.toc a { color: var(--text-2); font-weight: 600; }
.toc a:hover { color: var(--accent); }

/* Policy body */
.policy__body { margin-top: 8px; }
.policy__body section { margin-top: 36px; }
.policy__body h2 { scroll-margin-top: 84px; }
.policy__body h3 { margin-top: 20px; font-size: 16px; }
.policy__body p { color: var(--text-2); margin-top: 12px; }
.policy__body ul { color: var(--text-2); margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.policy__body li { padding-left: 2px; }
.policy__body strong { color: var(--text); font-weight: 700; }
.policy__body a { font-weight: 600; word-break: break-word; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.data-table thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); }
.data-table tbody th { font-weight: 700; color: var(--text); width: 38%; }
.data-table td { color: var(--text-2); }
.data-table { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: none; }

/* Contact block inside policy */
.contact-box {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--accent-bg); border-radius: var(--radius-card); padding: 20px 24px;
}
.contact-box p { margin: 0; color: var(--text-2); }
.contact-box strong { color: var(--text); }

/* Disclaimer note */
.note {
  margin-top: 16px; border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 14px 18px; color: var(--text-2); font-size: 15px;
}

@media (max-width: 560px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tbody th { padding-bottom: 4px; border-bottom: none; }
  .data-table td { padding-top: 4px; }
  .data-table tbody tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .data-table tbody tr:last-child { border-bottom: none; }
  .app__actions .btn { flex: 1 1 100%; }
}
