/*
 * Shared look of the Capture figures: the app's colours and type (CaptureSpikeApp.swift), on a
 * 402 × 874 iPhone screen scaled to whatever frame holds it (scale.js sets --s). The case study's
 * phone frame draws the island, the clock and the battery on top, so screens start 54 px down.
 */
:root {
  --ink: #f2efe9;
  --muted: #a39c91;
  --dim: #5a554f;
  --surface: #24211e;
  --line: #3a3631;
  --bg-top: #1c1916;
  --bg-mid: #121110;
  --bg-bottom: #0e0d0c;
  --accent: #ff5f4a;
  --accent-rgb: 255 95 74;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1.05);
  --settle: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg-bottom);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.app {
  position: absolute;
  top: 0;
  left: 0;
  width: 402px;
  height: 874px;
  overflow: hidden;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-mid) 50%, var(--bg-bottom));
}

/* The coral glow from the bottom edge, as on Record. */
.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px 520px at 50% 100%, rgb(var(--accent-rgb) / 0.3), rgb(var(--accent-rgb) / 0.08) 45%, transparent 100%);
  opacity: 0.35;
  transition: opacity 0.6s ease-out;
}

.page {
  position: absolute;
  inset: 54px 24px 12px;
  display: flex;
  flex-direction: column;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.hero {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -2.4px;
  line-height: 0.96;
  margin: 0;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.chev {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}

.chev--left {
  transform: rotate(-135deg);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.pressable {
  transition: transform 0.18s var(--settle);
}

.pressable:active,
.pressable.is-pressed {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
