/* ==================================================================
   EduSmartPro Pitch Deck Styles
   Layered on top of Sembada colors_and_type.css
   ================================================================== */

/* Slide canvas: 1920×1080 — deck-stage.js scales this to viewport */
deck-stage > section {
  width: 1920px;
  height: 1080px;
  position: relative;
  overflow: hidden;
  background: var(--cream-100);
  color: var(--fg1);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
}

/* --- common slide chrome --- */
.slide-pad {
  padding: 72px 96px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 0;
}

.slide-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.slide-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.slide-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--wedel-900);
  font-variation-settings: "opsz" 72, "SOFT" 30;
  max-width: 1300px;
  margin-top: 12px;
}
.slide-title em {
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
}

.slide-sub {
  font-size: 22px;
  line-height: 1.45;
  color: var(--fg2);
  max-width: 720px;
  text-align: right;
}

.slide-footer {
  position: absolute;
  inset: auto 96px 40px 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--fg3);
  letter-spacing: 0.04em;
}
.slide-footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tanah-500);
}
.slide-footer .brand-mark {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: var(--cream-100);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}

/* --- chips, badges --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--cream-200);
  color: var(--fg1);
}
.chip.primary { background: var(--primary-soft); color: var(--primary); }
.chip.success { background: var(--success-soft); color: var(--padi-700); }
.chip.warning { background: var(--warning-soft); color: var(--emas-700); }
.chip.danger  { background: var(--danger-soft);  color: var(--bata-700); }
.chip.info    { background: var(--info-soft);    color: var(--info); }
.chip .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: currentColor;
}

/* --- cards --- */
.card {
  background: var(--putih);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* --- buttons (mockup) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--primary);
  color: var(--fg-on-primary);
  font-family: inherit;
}
.btn.ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn.subtle { background: var(--cream-200); color: var(--fg1); }
.btn.sm { font-size: 13px; padding: 8px 14px; }

/* --- backgrounds & decoration --- */
.bg-cream { background: var(--cream-100); }
.bg-paper { background: var(--cream-50); }
.bg-sogan { background: var(--primary); color: var(--cream-100); }
.bg-sogan-deep { background: var(--sogan-700); color: var(--cream-100); }
.bg-emas { background: var(--emas-500); color: var(--wedel-900); }

.kawung-overlay {
  position: absolute;
  inset: 0;
  background-image: url("assets/patterns/kawung.svg");
  background-size: 120px 120px;
  opacity: 0.06;
  pointer-events: none;
  color: var(--cream-100);
}
.kawung-overlay.dark { opacity: 0.08; }
.parang-overlay {
  position: absolute;
  inset: 0;
  background-image: url("assets/patterns/parang.svg");
  background-size: 180px 180px;
  opacity: 0.05;
  pointer-events: none;
}

/* --- generic device frames for showcasing mockups --- */
.phone-frame {
  width: 360px;
  height: 740px;
  background: #1F1B16;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
  position: relative;
  flex: none;
}
.phone-frame .screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--cream-100);
  position: relative;
}
.phone-frame .notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #1F1B16;
  border-radius: 999px;
  z-index: 2;
}

.browser-frame {
  background: var(--putih);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--cream-300);
}
.browser-frame .bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--cream-200);
  border-bottom: 1px solid var(--border);
}
.browser-frame .bar .dots {
  display: flex; gap: 6px;
}
.browser-frame .bar .dots span {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--cream-400);
}
.browser-frame .bar .dots span:nth-child(1) { background: #E48975; }
.browser-frame .bar .dots span:nth-child(2) { background: #ECC979; }
.browser-frame .bar .dots span:nth-child(3) { background: #95BD83; }
.browser-frame .bar .url {
  flex: 1;
  background: var(--putih);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--fg2);
  font-family: var(--font-mono);
}

/* --- typography helpers in deck --- */
.deck-display {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--wedel-900);
}
.serif { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }

/* ---- inline icon helper (lucide-like svg) ---- */
.ic {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -0.15em;
  flex: none;
}

/* ==================================================================
   Mini UI components used in mockups
   ================================================================== */

/* Generic sidebar item */
.sb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg2);
  font-weight: 500;
  cursor: pointer;
}
.sb-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.sb-item .ic { width: 18px; height: 18px; }

/* Stat tile */
.stat-tile {
  background: var(--putih);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-tile .lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-tile .val {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-weight: 600;
  font-size: 30px;
  color: var(--wedel-900);
  letter-spacing: -0.02em;
}
.stat-tile .delta {
  font-size: 12px;
  font-weight: 600;
}
.delta.up   { color: var(--success); }
.delta.down { color: var(--danger); }

/* Phone bottom nav */
.bnav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--putih);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 4px 12px;
}
.bnav .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: var(--fg3);
  font-weight: 600;
}
.bnav .item.active { color: var(--primary); }
.bnav .item .ic { width: 22px; height: 22px; }

/* Pill row */
.pillrow {
  display: flex;
  gap: 8px;
  overflow-x: hidden;
}
.pillrow .pill {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  background: var(--cream-200);
  color: var(--fg2);
  border-radius: 999px;
  flex: none;
}
.pillrow .pill.active { background: var(--wedel-900); color: var(--cream-50); }

/* Reusable progress bar */
.bar-track {
  height: 8px;
  background: var(--cream-200);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
}
.bar-fill.success { background: var(--success); }
.bar-fill.warning { background: var(--warning); }

/* status header strip */
.status-strip {
  display: flex; justify-content: space-between;
  padding: 8px 24px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--wedel-900);
}

/* simple table */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg3);
  font-weight: 700;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}
.tbl td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg1);
  font-weight: 500;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl .avatar {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--emas-300);
  color: var(--sogan-700);
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: middle;
}

/* small avatar */
.av {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--emas-300);
  color: var(--sogan-700);
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}
.av.green { background: var(--padi-300); color: var(--padi-700); }
.av.blue  { background: #B8D2EA; color: var(--info); }
.av.sogan { background: var(--sogan-200); color: var(--sogan-700); }

