:root {
  --ink: #121317;
  --ink-raised: #1b1d23;
  --text: #f4f5f7;
  --muted: rgba(244, 245, 247, 0.62);
  --faint: rgba(244, 245, 247, 0.38);
  --line: rgba(255, 255, 255, 0.09);
  --well: rgba(0, 0, 0, 0.32);
  --lagoon: #00958f;
  --iris: #7377c3;
  --ember: #b46c36;
  --rose: #ba6170;
  --fern: #509253;
  --harbor: #258abb;
  --orchid: #a267a6;
  --brass: #91811d;
  --radius: 22px;
  --page: min(1080px, 100% - 32px);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 20% -10%, #24262e 0%, var(--ink) 60%) fixed, var(--ink);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap { width: var(--page); margin: 0 auto; position: relative; z-index: 1; }

/* The tile field behind everything, drawn by tiles.js */
.tiles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* The largest viewport, so the phone's address bar never resizes it. */
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
  /* Fade the tiles out under the top bar so its links stay easy to read. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 40px, #000 150px);
  mask-image: linear-gradient(to bottom, transparent 0, transparent 40px, #000 150px);
}

/* Top bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.bar nav { display: flex; gap: 22px; font-size: 15px; }
.bar nav a { color: rgba(244, 245, 247, 0.8); text-decoration: none; }
.bar nav a:hover { color: var(--text); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0 88px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
}
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 0 0 32px; max-width: 30em; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #e6e7ea);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.badge small { display: block; font-size: 11px; font-weight: 600; opacity: 0.6; letter-spacing: 0.04em; }

/* The app itself: a month of Walk in front, home behind it, in iPhone bezels */
.hero-shots {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 420 / 640;
}
.phone {
  position: absolute;
  width: 72%;
  padding: 2.6%;
  border-radius: 15% / 7%;
  background: linear-gradient(150deg, #3a3c42, #0c0d10 40%, #1d1f24);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 13% / 6%; }
.phone.front { right: 0; bottom: 0; transform: rotate(4deg); }
.phone.back { left: 0; top: 0; transform: rotate(-6deg); filter: brightness(0.7) saturate(0.9); }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.015em; line-height: 1.1; margin: 0 0 14px; }
.intro { color: var(--muted); font-size: 18px; max-width: 36em; margin: 0 0 44px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--ink-raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.feature h3 { margin: 16px 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.chip {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 26px; align-items: start; }
.gallery figure { margin: 0; }
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  /* The iPhone's own corners: about 13% of its width. */
  border-radius: 13% / 6%;
  background: var(--ink-raised);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* The watch screen sits in its own black case, its corners rounder than the phone's. */
.gallery .watch img {
  box-sizing: border-box;
  padding: 9%;
  background: #000;
  border-radius: 24% / 20%;
}
.gallery figcaption { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.gallery figcaption strong { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 16px; margin-bottom: 3px; }
.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--ink);
  background: conic-gradient(from 200deg, #ff9fb8, #ffe08f, #9fffbd, #8fe6ff, #cfadff, #ff9fb8);
}

.pro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  border-radius: 30px;
  background: linear-gradient(150deg, #262833, #17181d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pro ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pro li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); }
.pro li strong { color: var(--text); font-weight: 600; }
.pro li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: conic-gradient(#ff7399, #ffd966, #73ff99, #59d9ff, #b380ff, #ff7399); transform: translateY(-1px); }

.support p { color: var(--muted); max-width: 38em; }

/* Long-form pages */
.doc { max-width: 720px; padding: 32px 0 80px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: rgba(244, 245, 247, 0.8); font-size: 17px; }
.doc .updated { color: var(--faint); font-size: 15px; margin: -8px 0 32px; }
.doc .summary {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--ink-raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.doc .summary p { margin: 0; color: var(--text); }
.doc code { font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.doc pre {
  margin: 16px 0;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--ink-raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.doc pre code { font-size: 14px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); color: rgba(244, 245, 247, 0.8); }
.doc th { color: var(--text); font-weight: 600; }
.doc .table { overflow-x: auto; }

footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer a:first-child { margin-left: 0; }

@media (max-width: 1000px) and (min-width: 821px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 28px 0 64px; }
  .hero-shots { max-width: 340px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .gallery figcaption { font-size: 14px; }
  .pro { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  section { padding: 56px 0; }
  .bar nav { gap: 16px; }
}

/* On a phone the links don't fit beside the name, so they get their own row. */
@media (max-width: 560px) {
  .bar { flex-wrap: wrap; gap: 14px; padding: 18px 0 8px; }
  .bar nav { width: 100%; gap: 20px; }
}
