/* ==========================================================================
   Anderson Drive Club — Mobile app showcase
   ========================================================================== */

body.mobile-page { background: var(--plane); }

.mob-head {
  padding-block: var(--sp-8) var(--sp-7);
  border-bottom: 1px solid var(--line);
}

/* -------------------------------------------------------- device frame */
.device {
  width: 300px;
  flex-shrink: 0;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #2E3B55, #0C1322);
  box-shadow: 0 34px 74px rgba(6,11,22,.44), 0 0 0 1px rgba(148,180,240,.15) inset;
  position: relative;
}
.device.sm { width: 258px; border-radius: 36px; padding: 9px; }
.device::after {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: var(--r-pill);
  background: #05080F; z-index: 6;
}
.device.sm::after { top: 19px; width: 70px; height: 20px; }

.screen {
  border-radius: 33px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 9 / 19.5;
  position: relative;
  display: flex;
  flex-direction: column;
}
.device.sm .screen { border-radius: 28px; }

.screen-scroll { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

/* status bar */
.sbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 14px 20px 6px;
  font-size: 11px; font-weight: 620;
  flex-shrink: 0;
  position: relative; z-index: 5;
}
.sbar .sb-icons { display: flex; gap: 4px; align-items: center; }

/* app bar */
.abar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 12px;
  flex-shrink: 0;
}
.abar .ab-title { font-family: var(--font-display); font-size: 17px; font-weight: 640; letter-spacing: -.02em; }

/* tab bar */
.tbar {
  display: flex; align-items: stretch;
  padding: 8px 6px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  flex-shrink: 0;
}
.tbar button {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 2px;
  font-size: 9.5px; font-weight: 560;
  color: var(--ink-muted);
  transition: color var(--dur-1) var(--ease);
}
.tbar button.on { color: var(--brand-strong); }
.tbar button svg { width: 20px; height: 20px; }

/* dark app header */
.app-hero {
  padding: 6px 18px 20px;
  background:
    radial-gradient(90% 90% at 88% 0%, rgba(37,99,235,.42), transparent 62%),
    linear-gradient(158deg, #1B2842, #0A1120);
  color: #E8EFFA;
  flex-shrink: 0;
}
.app-hero .ah-sub { font-size: 11px; color: rgba(232,239,250,.62); }
.app-hero .ah-name { font-family: var(--font-display); font-size: 22px; font-weight: 650; letter-spacing: -.025em; }

.mini-card {
  padding: 12px;
  border-radius: 13px;
  background: rgba(148,180,240,.12);
  border: 1px solid rgba(148,180,240,.18);
}

.scr-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 13px; overflow: hidden; }

.scr-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.scr-row .sr-icon {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 9px; background: var(--brand-soft); color: var(--brand-strong);
  flex-shrink: 0;
}
.scr-row .sr-name { font-size: 12.5px; font-weight: 580; }
.scr-row .sr-sub { font-size: 10.5px; color: var(--ink-3); }

.scr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.scr-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.scr-tile .st-name { font-size: 11px; font-weight: 580; line-height: 1.25; }

.chat-b {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 15px;
  font-size: 12px;
  line-height: 1.45;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
.chat-b.me { align-self: flex-end; background: var(--brand-soft); border-color: var(--brand-line); }

/* screen gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, max-content));
  gap: var(--sp-8) var(--sp-7);
  justify-content: center;
}
.gal-item { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }
.gal-item .gi-label { text-align: center; max-width: 258px; }
.gal-item .gi-name { font-family: var(--font-display); font-size: var(--t-md); font-weight: 620; letter-spacing: -.014em; }
.gal-item .gi-desc { font-size: var(--t-xs); color: var(--ink-3); margin-top: 3px; }

/* interactive stage */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: var(--sp-9);
}
@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .stage .stage-copy { order: 2; text-align: left; }
}

.sos-btn {
  display: grid; place-items: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--critical); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .02em;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--critical) 16%, transparent),
              0 0 0 22px color-mix(in srgb, var(--critical) 8%, transparent);
  margin-inline: auto;
}
