/* Hub (/) layout. The studio is neutral; DoctorAI green shows up on its own card
   and on the shared accent (buttons, focus). Tokens come from site.css. */

/* ---------- Hero ---------- */
.hero { padding: clamp(16px, 3vw, 40px) 0 clamp(64px, 8vw, 112px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  min-height: min(calc(100dvh - var(--nav-h) - 56px), 740px);
}
.hero h1 { font-size: var(--display-l); line-height: 1; letter-spacing: -0.048em; max-width: 10em; }
.hero-sub { margin-top: 24px; font-size: var(--text-lg); line-height: 1.5; color: var(--muted); max-width: 26em; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { width: min(100%, 480px); justify-self: end; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-surface); background: var(--sunk); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .hero-media { width: 100%; justify-self: stretch; aspect-ratio: 4 / 3; }
  .hero-media img { object-position: 50% 78%; }
}
@media (max-width: 480px) { .hero-cta .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-media img { animation: settle 1.3s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  @keyframes settle { from { opacity: 0; transform: scale(1.05); } }
}

/* ---------- Apps ---------- */
.apps { padding-top: 0; }
.apps-title { font-size: var(--display-m); max-width: 14em; margin-bottom: 40px; }

/* Live app: copy left, real screens rising out of a green stage on the right. */
.live {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.live:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow-md); }
.live-copy { padding: clamp(28px, 4vw, 56px); align-self: center; display: grid; justify-items: start; gap: 18px; }
.live-icon { width: 64px; height: 64px; }
.live-name { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.live h3 { font-size: var(--display-s); }
.live p { color: var(--muted); max-width: 28em; }
.live:hover .link-arrow .i { transform: translateX(3px); }
.live-stage {
  position: relative; min-height: 440px; margin: 12px; border-radius: calc(var(--r-surface) - 6px); overflow: hidden;
  background: radial-gradient(80% 70% at 50% 100%, var(--accent-soft), transparent 75%), var(--accent-softer);
}
.shot {
  position: absolute; width: 44%; border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); box-shadow: var(--shadow-lg);
  transition: transform .6s var(--ease);
}
.shot-back { left: 14%; top: 64px; rotate: -4deg; opacity: .96; }
.shot-front { right: 12%; top: 36px; rotate: 3deg; }
.live:hover .shot-front { transform: translateY(-8px); }
.live:hover .shot-back { transform: translateY(-4px); }
@media (max-width: 860px) {
  .live { grid-template-columns: 1fr; }
  .live-stage { min-height: 0; aspect-ratio: 1 / 0.85; margin: 0 12px 12px; }
  .shot { width: 46%; }
}

/* MasjidMap: the same card mirrored, its screens rising over the dusk skyline. */
.live-flip { margin-top: 16px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.live-flip .live-stage { order: -1; }
.live-icon-tile { border-radius: 22%; border: 1px solid var(--line); }
.live-stage-dusk { background: #0c1714; }
.stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
.live-stage-dusk .shot { border-color: rgb(255 255 255 / 12%); box-shadow: 0 32px 64px -24px rgb(0 0 0 / 70%); }
.live-flip:hover { border-color: color-mix(in srgb, #1b6b4c 50%, var(--line)); }
@media (max-width: 860px) {
  .live-flip { grid-template-columns: 1fr; }
  .live-flip .live-stage { order: 0; }
}

/* Coming next: two photo cards */
.next { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.soon { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); }
.soon-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sunk); }
.soon-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.soon:hover .soon-media img { transform: scale(1.03); }
.soon-copy { padding: 24px 26px 28px; display: grid; gap: 10px; }
.soon h3 { font-size: 1.5rem; letter-spacing: -0.025em; }
.soon p { color: var(--muted); max-width: 30em; }
@media (max-width: 700px) { .next { grid-template-columns: 1fr; } }

/* ---------- Help & legal directory ---------- */
.links { padding-block: clamp(56px, 7vw, 96px); }
.links-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line); padding-top: 40px; }
.links h2 { font-size: var(--display-s); }
.links h3 { font-size: var(--text-sm); font-weight: 650; letter-spacing: 0; color: var(--muted); margin-bottom: 12px; line-height: 1.4; }
.links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.links a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; font-weight: 550; }
.links a .i { width: 16px; height: 16px; color: var(--muted); }
.links a:hover { color: var(--accent-ink); }
@media (max-width: 860px) {
  .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links h2 { grid-column: 1 / -1; }
}

.foot-slim { padding: 24px 0 40px; font-size: var(--text-xs); }
