/* === Qbank 118 — Shared design tokens === */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;500;700;900&display=swap');

:root {
  /* Brand */
  --bg:        oklch(0.16 0.015 245);
  --bg-2:      oklch(0.19 0.018 245);
  --surface:   oklch(0.23 0.018 245);
  --surface-2: oklch(0.28 0.018 245);
  --hairline:  oklch(0.34 0.018 245);
  --fg:        oklch(0.97 0.005 90);
  --fg-dim:    oklch(0.78 0.008 90);
  --muted:     oklch(0.62 0.012 245);
  --mint:      oklch(0.82 0.15 165);
  --mint-deep: oklch(0.55 0.14 165);
  --amber:     oklch(0.83 0.14 80);
  --amber-deep:oklch(0.62 0.15 60);
  --rose:      oklch(0.72 0.18 25);

  --font: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

[data-theme="light"] {
  --bg:        oklch(0.985 0.003 90);
  --bg-2:      oklch(0.96 0.005 90);
  --surface:   oklch(0.99 0.003 90);
  --surface-2: oklch(0.94 0.005 90);
  --hairline:  oklch(0.86 0.008 90);
  --fg:        oklch(0.18 0.015 245);
  --fg-dim:    oklch(0.35 0.012 245);
  --muted:     oklch(0.5 0.012 245);
  --mint:      oklch(0.55 0.14 165);
  --mint-deep: oklch(0.45 0.13 165);
  --amber:     oklch(0.62 0.15 60);
  --amber-deep:oklch(0.52 0.16 50);
  --rose:      oklch(0.55 0.20 25);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--font); }

/* iPhone bezel — used inside slides */
.iphone {
  position: relative;
  width: var(--ip-w, 340px);
  aspect-ratio: 9 / 19.5;
  background: #0a0a0a;
  border-radius: calc(var(--ip-w, 340px) * 0.14);
  padding: calc(var(--ip-w, 340px) * 0.035);
  box-shadow:
    inset 0 0 0 2px #2a2a2a,
    inset 0 0 0 4px #0a0a0a,
    0 30px 60px -20px rgba(0,0,0,0.55),
    0 10px 30px -10px rgba(0,0,0,0.45);
}
.iphone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: calc(var(--ip-w, 340px) * 0.10);
  overflow: hidden;
  background: var(--bg-2);
}
.iphone-notch {
  position: absolute;
  top: calc(var(--ip-w, 340px) * 0.025);
  left: 50%; transform: translateX(-50%);
  width: calc(var(--ip-w, 340px) * 0.33);
  height: calc(var(--ip-w, 340px) * 0.085);
  background: #0a0a0a;
  border-radius: 999px;
  z-index: 4;
}
.iphone image-slot {
  width: 100%; height: 100%; display: block;
}

/* Auto-rotating image carousel inside an iPhone screen */
.screen-rotator {
  position: absolute; inset: 0;
  background: oklch(0.14 0.015 245);
}
.screen-rotator img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.screen-rotator img.is-active { opacity: 1; }
.screen-rotator .dots {
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px;
  z-index: 3;
}
.screen-rotator .dots .d {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: all .3s;
}
.screen-rotator .dots .d.is-active {
  width: 16px; background: var(--mint); border-radius: 4px;
}

/* Pill / Chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  color: var(--fg-dim);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.chip .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--mint);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--mint) 25%, transparent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-family: var(--font); font-weight: 700; font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn-mint  { background: var(--mint); color: oklch(0.16 0.015 245); }
.btn-mint:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--hairline); }
.btn-amber { background: var(--amber); color: oklch(0.16 0.015 245); }
