/* The real app in a phone frame, for people on a laptop. Colours follow the Vantage home page. */
:root {
  --paper: oklch(13.5% 0.012 235);
  --paper-2: oklch(17% 0.014 235);
  --ink: oklch(95% 0.006 230);
  --muted: oklch(66% 0.016 230);
  --rule: oklch(27% 0.014 235);
  --accent: oklch(89% 0.19 126);
  --accent-ink: oklch(19% 0.04 126);
  --body: oklch(22% 0.006 250);
  --body-hi: oklch(38% 0.008 250);
  --bezel: oklch(8% 0 0);
  --status-bg: #ffc627; /* the app's own header colour, so the status bar runs into it */
  --status-ink: oklch(15% 0 0);
  --font: "Geologica", ui-sans-serif, system-ui, sans-serif;

  /* phone size in logical points, like an iPhone 15 */
  --pw: 393px;
  --ph: 852px;
  --frame: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; min-height: 100dvh; background: radial-gradient(70% 60% at 65% 45%, var(--paper-2), var(--paper) 70%); color: var(--ink); font: 400 17px/1.5 var(--font); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.stage {
  min-height: 100dvh; max-width: 1200px; margin: 0 auto; padding: 32px 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 64px;
}
.side { display: grid; gap: 24px; justify-items: start; max-width: 380px; }
.back { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.back:hover { color: var(--ink); }
h1 { margin: 0; font-weight: 300; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.02em; }
.steps { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); font-size: 1.1rem; }
.steps strong { color: var(--ink); font-weight: 500; }
.note { margin: 0; color: var(--muted); font-size: 0.92rem; }
.full {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none;
  transition: transform 160ms ease-out;
}
.full:active { transform: scale(0.97); }

/* scale the phone down to fit short screens without changing its layout */
.phone-fit {
  --s: min(1, calc((100dvh - 64px) / (var(--ph) + 2 * var(--frame))));
  width: calc((var(--pw) + 2 * var(--frame)) * var(--s));
  height: calc((var(--ph) + 2 * var(--frame)) * var(--s));
}
.phone {
  position: relative; width: calc(var(--pw) + 2 * var(--frame)); height: calc(var(--ph) + 2 * var(--frame));
  padding: var(--frame); border-radius: 68px; background: var(--bezel);
  box-shadow: 0 0 0 2px var(--body), 0 0 0 4px var(--body-hi), 0 60px 120px -40px oklch(0% 0 0 / 0.8);
  transform: scale(var(--s)); transform-origin: top left;
}
.side-btn { position: absolute; width: 4px; border-radius: 2px; background: var(--body-hi); }
.side-btn--action { left: -6px; top: 120px; height: 32px; }
.side-btn--up { left: -6px; top: 180px; height: 62px; }
.side-btn--down { left: -6px; top: 256px; height: 62px; }
.side-btn--power { right: -6px; top: 210px; height: 100px; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 56px; overflow: hidden; background: var(--status-bg); display: grid; grid-template-rows: 54px minmax(0, 1fr); }
.status { display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 44px; color: var(--status-ink); font: 600 17px/1 -apple-system, var(--font); }
.island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: var(--bezel); }
.icons { display: flex; align-items: center; gap: 6px; }
.icons svg { height: 12px; width: auto; fill: currentColor; }
.icons .cell { fill: none; stroke: currentColor; opacity: 0.45; }
iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--status-bg); }
.home { position: absolute; left: 50%; bottom: 8px; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: var(--status-ink); opacity: 0.85; pointer-events: none; }

@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 24px 16px; gap: 32px; }
  .side { justify-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .full { transition: none; }
}
