:root {
  --ad-brand:    #1e88e5;
  --ad-brand-d:  #1565c0;
  --ad-brand-dd: #0d47a1;
  --ad-display:  "Barlow Condensed", system-ui, sans-serif;
  --ad-sans:     "Inter", system-ui, sans-serif;
}

/* ── 3-column grid ───────────────────────────────────────────── */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 276px 1fr;
  gap: 28px 36px;
  align-items: center;
}

/* ── Feature column ──────────────────────────────────────────── */
.feat-col { display: flex; flex-direction: column; gap: 14px; }
.feat-col.left  { align-items: stretch; }
.feat-col.right { align-items: stretch; }

/* ── Feature box ─────────────────────────────────────────────── */
.feat-box {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  transition: background .25s, border-color .25s, transform .25s;
}
.feat-box:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

/* Left col: icon on right, text aligned right */
.feat-col.left .feat-box {
  flex-direction: row-reverse;
  text-align: right;
}
.feat-col.left .feat-text { align-items: flex-end; }

/* ── Diamond icon ────────────────────────────────────────────── */
.diamond {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--ad-brand) 0%, var(--ad-brand-d) 100%);
  transform: rotate(45deg);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(30,136,229,0.45);
}
.diamond i {
  transform: rotate(-45deg);
  font-size: .85rem; color: #fff;
}

/* ── Feature text ────────────────────────────────────────────── */
.feat-text {
  display: flex; flex-direction: column; gap: 3px;
  flex: 1;
}
.feat-title {
  font-family: var(--ad-display);
  font-size: .95rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: #fff; line-height: 1.15;
}
.feat-sub {
  font-size: .74rem; line-height: 1.55;
  color: rgba(255,255,255,0.52);
}

/* ── Phone column ────────────────────────────────────────────── */
.phone-col {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}

/* ── Phone frame (iPhone 11 Pro CSS mockup) ─────────────── */
.phone-frame {
  position: relative;
  width: 256px; height: 524px;
  background: #1c1c1e;
  border-radius: 34px;
  box-shadow:
    0 0 0 1.5px #48484a,
    0 0 0 3px   #111,
    0 0 0 5px   #3a3a3c,
    0 28px 56px rgba(0,0,0,0.82),
    0 0 44px rgba(30,136,229,0.09);
  overflow: visible;
  cursor: grab;
}
.phone-frame:active { cursor: grabbing; }

/* Inner screen area — clips all content */
.phone-screen-inner {
  position: absolute;
  inset: 9px;
  background: #000;
  border-radius: 25px;
  overflow: hidden;
}

/* ── Notch ───────────────────────────────────────────────────── */
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 28px;
  background: #1c1c1e;
  border-radius: 0 0 18px 18px;
  z-index: 30;
  display: flex; align-items: center;
  justify-content: center; gap: 8px;
  pointer-events: none;
}
.phone-notch-speaker {
  width: 44px; height: 5px;
  background: #0a0a0a;
  border-radius: 3px;
}
.phone-notch-cam {
  width: 10px; height: 10px;
  background: #111;
  border: 1.5px solid #0a0a0a;
  border-radius: 50%;
}

/* ── Side buttons (decorative) ───────────────────────────────── */
.phone-btn {
  position: absolute;
  background: #3a3a3c;
  border-radius: 2px;
  pointer-events: none;
}
.phone-btn-mute    { left: -4px; top: 84px;  width: 4px; height: 16px; }
.phone-btn-vol-up  { left: -4px; top: 114px; width: 4px; height: 32px; }
.phone-btn-vol-dn  { left: -4px; top: 158px; width: 4px; height: 32px; }
.phone-btn-power   { right: -4px; top: 136px; width: 4px; height: 52px; }

/* Home bar */
.phone-homebar {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 4px;
  background: rgba(255,255,255,0.22);
  border-radius: 2px;
  z-index: 30; pointer-events: none;
}

/* ── Slider ──────────────────────────────────────────────────── */
.slider-viewport {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 0;
}
.slider-track {
  display: flex; height: 100%;
  transition: transform .48s cubic-bezier(.4,0,.2,1);
}
.slide {
  min-width: 100%; height: 100%;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}

/* Real screenshot image */
.slide img.shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block; z-index: 5;
  border-radius: 0;
}
.slide img.shot.hidden { display: none; }

/* ── Arrow buttons ───────────────────────────────────────────── */
.slider-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  background: rgba(0,0,0,0.50);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.85);
  font-size: .6rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 40;
  transition: background .2s, transform .2s;
  padding: 0;
}
.slider-arrow:hover { background: rgba(0,0,0,0.75); }
.slider-arrow.prev { left: 8px; }
.slider-arrow.next { right: 8px; }

/* ── Dot indicators ──────────────────────────────────────────── */
.slider-dots {
  display: flex; gap: 6px; justify-content: center;
}
.dot {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.22);
  border: none; border-radius: 3px;
  cursor: pointer; padding: 0;
  transition: all .25s;
}
.dot.active {
  background: var(--ad-brand);
  width: 22px;
}

/* ── CSS App Screens (placeholder when no image) ─────────── */

/* ── Screen: App Home (Slide 1) ── */
.app-screen {
  position: absolute; inset: 0;
  background: #f0f4f8;
  display: flex; flex-direction: column;
  font-family: var(--ad-sans);
  overflow: hidden;
  padding-top: 36px;
}

.app-topbar {
  background: var(--ad-brand);
  padding: 10px 14px 10px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.app-topbar-title {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; color: #fff;
  text-transform: uppercase;
}
.app-topbar-icon {
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; color: #fff; font-weight: 700;
}

.app-body {
  flex: 1; overflow: hidden;
  padding: 10px 10px 0;
  display: flex; flex-direction: column; gap: 7px;
}

.app-category {
  background: #fff;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.app-cat-info { flex: 1; }
.app-cat-name {
  font-size: .68rem; color: #333;
  margin-bottom: 1px;
}
.app-cat-count {
  font-size: .75rem; font-weight: 700; color: #111;
  margin-bottom: 5px;
}
.app-progress {
  height: 4px; background: #e0e6ee;
  border-radius: 2px; overflow: hidden;
}
.app-progress-fill {
  height: 100%; background: var(--ad-brand);
  border-radius: 2px;
}
.app-cat-thumb {
  width: 44px; height: 38px;
  background: #e8f0fb;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.app-section-bar {
  background: var(--ad-brand);
  padding: 7px 14px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; color: #fff;
  text-transform: uppercase;
  margin-top: 2px;
  flex-shrink: 0;
}

.app-module-item {
  background: #fff;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.app-module-icon {
  width: 36px; height: 36px;
  background: #e8f0fb;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.app-module-info { flex: 1; }
.app-module-name { font-size: .7rem; color: #333; }
.app-module-count { font-size: .75rem; font-weight: 700; color: #111; }
.app-module-arrow {
  width: 24px; height: 24px;
  background: var(--ad-brand);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .55rem;
  flex-shrink: 0;
}

.app-bottom-nav {
  margin-top: auto;
  border-top: 1px solid #dde3ea;
  background: #fff;
  display: flex; justify-content: space-around;
  padding: 8px 0 18px;
  flex-shrink: 0;
}
.app-nav-icon { font-size: .9rem; color: #aaa; }
.app-nav-icon.active { color: var(--ad-brand); }

/* ── Screen: Quiz Question (Slide 2) ── */
.app-screen-quiz {
  position: absolute; inset: 0;
  background: #f5f7fa;
  display: flex; flex-direction: column;
  font-family: var(--ad-sans);
  overflow: hidden;
  padding-top: 36px;
}

.quiz-header {
  background: var(--ad-brand);
  padding: 9px 12px;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.quiz-back { color: rgba(255,255,255,0.85); font-size: .75rem; }
.quiz-counter {
  flex: 1; text-align: center;
  font-size: .72rem; font-weight: 700; color: #fff;
}
.quiz-actions { display: flex; gap: 8px; }
.quiz-actions i { font-size: .7rem; color: rgba(255,255,255,0.85); }

.quiz-img {
  height: 110px; background: #c8d8e8;
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.quiz-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #7aaccc, #4a8ab5);
  display: flex; align-items: center; justify-content: center;
}
.road-svg { opacity: 0.6; }

.quiz-badge {
  position: absolute; top: 152px; left: 50%;
  transform: translateX(-50%);
  background: #4caf50;
  color: #fff; font-size: .58rem; font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 10;
}

.quiz-body {
  flex: 1; overflow: hidden;
  padding: 14px 12px 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.quiz-question {
  font-size: .68rem; font-weight: 600; color: #1a1a1a;
  line-height: 1.45; margin-bottom: 4px;
}

.quiz-answer {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 7px;
  font-size: .64rem; color: #333;
}
.quiz-answer.correct {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #1b5e20;
}
.quiz-answer.wrong {
  background: #ffebee;
  border-color: #ef5350;
}
.answer-check { font-size: .65rem; margin-left: auto; }
.quiz-answer.correct .answer-check { color: #4caf50; }
.quiz-answer.wrong   .answer-check { color: #ef5350; }

.quiz-checkbox {
  width: 14px; height: 14px;
  border: 1.5px solid #bbb;
  border-radius: 3px; flex-shrink: 0;
}
.quiz-answer.correct .quiz-checkbox {
  background: #4caf50; border-color: #4caf50;
  display: flex; align-items: center; justify-content: center;
}

.quiz-footer {
  background: var(--ad-brand);
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  flex-shrink: 0;
}
.quiz-foot-btn {
  font-size: .62rem; font-weight: 600; color: rgba(255,255,255,0.8);
}
.quiz-foot-center {
  background: rgba(0,0,0,0.25);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: .62rem; font-weight: 700; color: #fff;
}

/* ── Screens 3-7: Gradient Placeholder ── */
.app-screen-generic {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 40px 24px;
  color: rgba(255,255,255,0.7);
  text-align: center;
}
.app-screen-generic .icon-wrap {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.app-screen-generic .slide-label {
  font-family: var(--ad-display);
  font-size: .95rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: #fff;
}
.app-screen-generic .slide-hint {
  font-size: .7rem; color: rgba(255,255,255,0.45);
}

/* Gradient per slide */
.slide:nth-child(1) .app-screen-generic,
.slide:nth-child(2) .app-screen-generic { display: none; }
.slide:nth-child(3) .app-screen-generic { background: linear-gradient(160deg, #1a237e, #283593); }
.slide:nth-child(4) .app-screen-generic { background: linear-gradient(160deg, #1b5e20, #2e7d32); }
.slide:nth-child(5) .app-screen-generic { background: linear-gradient(160deg, #4a148c, #6a1b9a); }
.slide:nth-child(6) .app-screen-generic { background: linear-gradient(160deg, #bf360c, #d84315); }
.slide:nth-child(7) .app-screen-generic { background: linear-gradient(160deg, #006064, #00838f); }

/* ── Shimmer animation ───────────────────────────────────────── */
@keyframes shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(250%)  skewX(-15deg); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .demo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .phone-col {
    grid-column: 1 / -1;
    grid-row: 1;
    order: -1;
  }
  .feat-col.left,
  .feat-col.right { grid-column: span 1; }
  .feat-col.left .feat-box  { flex-direction: row; text-align: left; }
  .feat-col.left .feat-text { align-items: flex-start; }
}

@media (max-width: 600px) {
  .demo-grid { grid-template-columns: 1fr; }
  .feat-col.left  { grid-column: 1; }
  .feat-col.right { grid-column: 1; }
  .phone-col { grid-column: 1; }
  .feat-col.left .feat-box  { flex-direction: row; text-align: left; }
  .feat-col.left .feat-text { align-items: flex-start; }
}
