/* ─────────────────────────────────────────────────────────────────
   RuangParkir.id · UI CSS
   Design tokens (CSS vars) + komponen untuk landing page (non-React)
   React apps menggunakan window.RP dari shared.js
───────────────────────────────────────────────────────────────── */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Neutral surfaces — platinum cool */
  --c-bg:        #EFF3F8;
  --c-surface:   #FFFFFF;
  --c-surface-2: #E5ECF3;
  --c-on:        #0F1E30;
  --c-on-2:      #3D5468;
  --c-on-3:      #7490A5;
  --c-border:    #C5D3DF;
  --c-border-v:  #E5ECF3;

  /* Semantic */
  --c-green:     #0B7265;
  --c-green-s:   #E5F4F2;
  --c-red:       #B5253A;
  --c-red-s:     #FAE8EB;
  --c-amber:     #B87300;
  --c-amber-s:   #FBF3DC;

  /* Persona accents — corporate blue family */
  --c-parker:    #1A6FBF;
  --c-parker-s:  #E8F2FB;
  --c-host:      #0D6A8A;
  --c-host-s:    #E5F3F8;
  --c-rtrw:      #3D4EAE;
  --c-rtrw-s:    #ECEEFB;

  /* Radius */
  --r-xs:   6px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-pill: 24px;
  --r-full: 9999px;

  /* Elevation — cold navy tint */
  --sh-1: 0 1px 2px rgba(15,30,60,.10), 0 1px 3px 1px rgba(15,30,60,.06);
  --sh-2: 0 1px 2px rgba(15,30,60,.20), 0 2px 6px 2px rgba(15,30,60,.10);
  --sh-3: 0 4px 8px 3px rgba(15,30,60,.08), 0 1px 3px rgba(15,30,60,.18);
}

/* ── Landing Page Components ───────────────────────────────────── */

.lp-root {
  min-height: 100vh;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 20px 56px;
  font-family: 'Roboto', sans-serif;
}

/* ── Logo ── */
.lp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.lp-logo__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-parker-s);
  border: 1px solid #AECDE8;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.lp-logo__text {
  font-size: 21px;
  font-weight: 700;
  color: var(--c-on);
  letter-spacing: -.3px;
}
.lp-logo__text span { color: var(--c-parker); }

.lp-subtitle {
  font-size: 13px;
  color: var(--c-on-2);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 400;
}

/* ── Prototype badge ── */
.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-on-2);
  margin-bottom: 32px;
  background: var(--c-surface);
  letter-spacing: .2px;
}

/* ── Stats row ── */
.lp-stats {
  display: flex;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 32px;
}
.lp-stat {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  border-right: 1px solid var(--c-border);
}
.lp-stat:last-child { border-right: none; }
.lp-stat__val {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-on);
  line-height: 1;
}
.lp-stat__lbl {
  font-size: 10px;
  font-weight: 500;
  color: var(--c-on-3);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* ── Persona cards ── */
.lp-cards {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.lp-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.lp-card:hover  { box-shadow: var(--sh-1); }
.lp-card:active { transform: scale(.99); }

.lp-card__icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.lp-card__body { flex: 1; min-width: 0; }
.lp-card__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.lp-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-on);
  margin-bottom: 3px;
}
.lp-card__desc {
  font-size: 12px;
  color: var(--c-on-2);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-card__arrow {
  color: #A4B5C6;
  font-size: 18px;
  flex-shrink: 0;
  font-weight: 300;
}

/* ── Divider ── */
.lp-divider {
  width: 100%;
  max-width: 400px;
  height: 1px;
  background: var(--c-border);
  margin-bottom: 20px;
}

/* ── Footer ── */
.lp-footer { text-align: center; }
.lp-footer p {
  font-size: 12px;
  color: var(--c-on-3);
  line-height: 1.8;
}
.lp-footer strong {
  color: var(--c-on-2);
  font-weight: 500;
}
