:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #0b1220;
  --muted: #5a6475;
  --line: #dfe3ea;
  --link: #0a6b34;
  --green: #34c759;
  --yellow: #ffcc00;
  --red: #ff3b30;
  --navy: #0b1220;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #131c2e;
    --ink: #eef1f6;
    --muted: #9aa5b8;
    --line: #25304a;
    --link: #6fe08c;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 720px; }

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

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

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.top nav a {
  margin-left: 18px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.top nav a:hover { color: var(--ink); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 72px;
}

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

.lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 20px;
  max-width: 34em;
}

.cta {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--green);
  color: #06210f;
  font-weight: 600;
  text-decoration: none;
}

.cta:hover { filter: brightness(1.06); }

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Lock Screen mock: always dark, like the Live Activity it stands for */

.mock {
  justify-self: center;
  width: 100%;
  max-width: 340px;
  padding: 22px;
  border-radius: 36px;
  background: var(--navy);
  border: 1px solid #25304a;
}

.mock .icon {
  display: block;
  width: 96px;
  height: 96px;
  margin: 6px auto 22px;
  border-radius: 22px;
}

.activity {
  padding: 16px 18px;
  border-radius: 22px;
  background: #1a2439;
  color: #eef1f6;
}

.activity + .activity { margin-top: 10px; }

.activity .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.phase {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.dot.green { background: var(--green); }
.dot.yellow { background: var(--yellow); }
.dot.red { background: var(--red); }

.activity .time {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.activity .sub {
  margin-top: 2px;
  color: #9aa5b8;
  font-size: 14px;
}

/* Sections */

section { padding: 56px 0; border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.intro {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 40em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.card.green { border-top: 4px solid var(--green); }
.card.yellow { border-top: 4px solid var(--yellow); }
.card.red { border-top: 4px solid var(--red); }

.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Footer */

footer {
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

footer a { color: var(--muted); }
footer span:last-child a { margin-right: 16px; }

/* Legal pages */

.legal { padding-top: 24px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 6px; }
.legal .dated { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.legal h2 { margin: 36px 0 8px; font-size: 21px; }
.legal p, .legal li { max-width: 42em; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

.summary {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.summary p { margin: 0; }

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