:root {
  --bg-top: #eef3ec;
  --bg-bottom: #e6ecf2;
  --text: #12231d;
  --muted: #5c6b64;
  --accent: #0a6b4f;
  --on-accent: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --border: rgba(18, 35, 29, 0.1);
  --topo: rgba(11, 60, 47, 0.06);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #0b2a22;
    --bg-bottom: #111318;
    --text: #eef3ef;
    --muted: #a6b3ac;
    --accent: #ffd34d;
    --on-accent: #141712;
    --surface: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --topo: rgba(154, 214, 189, 0.06);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) var(--bg-bottom);
}

/* Contour lines and rivers lifted from the app icon's own map layers
   (Shared/AppIcon.icon/Assets/{heights 2,rivers}.svg, zoomed out so you see the
   whole network rather than the icon's tight crop). Shipped as a white-on-
   transparent mask so one file can be tinted per theme. position: fixed keeps
   it out of body's flex flow.

   --topo is deliberately down at 6%: the contours run the full width of the
   page, body copy included, and anything stronger turns into visual noise
   behind the text. It is meant to be felt, not read. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--topo);
  -webkit-mask: url(/images/topo.webp) center / cover no-repeat;
  mask: url(/images/topo.webp) center / cover no-repeat;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
}

a {
  color: var(--accent);
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  padding-block: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

main {
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  align-items: center;
  gap: 48px;
  padding: 24px 0 48px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.questions {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.lead {
  margin: 0 0 28px;
  max-width: 34em;
}

.badge img {
  display: block;
  height: 48px;
  width: auto;
}

.phones {
  margin: 0;
}

/* Phone and watch at true relative scale. Each Apple bezel is drawn at its
   display's native pixels, so the images can be sized by physics: the phone's
   1320 px display is 72.9 mm wide (460 ppi) and the watch's 422 px one is
   32.9 mm (326 ppi), which makes the watch image 45.15% of the phone image's
   height. Both sit on the container's baseline, watch in front. */
.devices {
  position: relative;
  width: 100%;
  aspect-ratio: 435 / 612;
}

.phone-stack {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 69%;
  aspect-ratio: 735 / 1500;
}

.watch-stack {
  position: absolute;
  left: 0;
  /* Each bezel leaves a little transparent margin below the device, and the
     watch's is proportionally deeper than the phone's — this lines the two
     silhouettes up on the same baseline rather than the image boxes. */
  bottom: -0.9%;
  width: 39.7%;
  aspect-ratio: 430 / 688;
}

.phone-stack img,
.watch-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.phone-stack img.active,
.watch-stack img.active {
  opacity: 1;
}

/* The caption belongs to the rotating phone, not the static watch, so it is
   centred on the phone's 69% rather than on the pair. */
.phones figcaption {
  width: 69%;
  margin: 16px 0 0 auto;
  min-height: 3em;
  text-align: center;
  font-weight: 600;
}

.platforms {
  margin: 0 0 56px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

.platforms strong {
  color: var(--text);
  font-weight: 600;
}

.page {
  max-width: 720px;
  padding-bottom: 64px;
}

.page h1 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}

.page h2 {
  font-size: 21px;
  margin: 36px 0 8px;
}

.updated {
  color: var(--muted);
  margin-top: 0;
}

.card {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  padding-block: 24px 32px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 0;
  }

  .phones {
    width: min(380px, 94%);
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-stack img,
  .watch-stack img {
    transition: none;
  }
}
