:root {
  --bg: #ffffff;
  --panel: #f4f4f5;
  --text: #18181b;
  --muted: #71717a;
  --accent: #1d1d1f;
  --accent-ink: #ffffff;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  /* width:100% keeps main from shrink-wrapping to its content. Without it,
     main (a flex item centered with margin:0 auto) grows to fit the 92vw-wide
     .shots block, ending up ~13px wider than the viewport — which iOS/WebKit
     renders as a zoomed-out, right-shifted page. Blink masks this, so it only
     shows on real Safari. */
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}

.logo {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

h1 {
  font-size: 2.6rem;
  margin: 28px 0 8px;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 36px;
  /* Even out the two lines instead of leaving "Mac." orphaned on its own. */
  text-wrap: balance;
}

.download {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 980px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: transform 0.08s ease, opacity 0.2s ease;
}

.download:hover {
  transform: translateY(-1px);
}

.download:active {
  transform: translateY(0);
}

.meta {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.4em;
}

.requirements {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  /* Balance the wrap so "later." isn't stranded alone on the second line. */
  text-wrap: balance;
}

.shots {
  margin-top: 60px;
  /* Break out wider than the text column so detail stays legible, capped at
     940px. Centered with margins rather than a translateX trick: that trick
     leaves an off-screen pre-transform box which iOS Safari counts as page
     width, loading the whole page zoomed out. Margin-based centering has no
     such box. Half the width is min(46vw, 470px), so the negative side margins
     keep it centered at every width. */
  width: min(92vw, 940px);
  margin-left: calc(50% - min(46vw, 470px));
  margin-right: calc(50% - min(46vw, 470px));
  display: grid;
  gap: 56px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  /* Uniform shadow; drop-shadow follows the windows' rounded-corner alpha. */
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.20));
}

/* Cap the app shot at its native width so it stays pixel-crisp on Retina. */
.shot.app img {
  max-width: 728px;
}

.shot figcaption {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--muted);
  /* Balance the caption wrap so no single word is stranded on the last line. */
  text-wrap: balance;
}

.principles {
  text-align: left;
  margin: 56px auto 0;
  display: grid;
  gap: 20px;
}

.principle {
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.principle h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.note {
  margin: 40px auto 0;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: left;
}

code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.85em;
}

footer {
  text-align: center;
  padding: 28px 24px 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--muted);
}

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