:root {
  --chilli: #b5351c;
  --chilli-deep: #92290f;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #ffffff;
  --mist: #f2f2f4;
  --line: #e3e3e6;
  --bezel: #1d1d1f;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --paper: #1c1c1e;
    --mist: #2c2c2e;
    --line: #3a3a3c;
    --bezel: #000;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--chilli); outline-offset: 4px; border-radius: 4px; }
h1, h2, p, figure { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); color: var(--ink); padding: 10px 14px; z-index: 10; }

/* Header */
header { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
nav { display: flex; gap: 24px; font-size: 15px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }

/* Home: red band with the headline and one phone that hangs into the white below */
.band { background: var(--chilli); color: #fff; }
.band a:focus-visible { outline-color: #fff; }
.hero { display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: start; padding: 72px 0 0; }
.hero-copy { padding-bottom: 96px; }
h1 { font: 800 clamp(64px, 10vw, 148px)/0.9 var(--display); letter-spacing: -0.035em; max-width: 7ch; }
.intro { margin-top: 36px; font-size: 22px; line-height: 1.45; max-width: 26em; }
.soon { margin-top: 20px; font-size: 17px; font-weight: 600; opacity: 0.85; }

.phone { display: block; width: 100%; border: 9px solid var(--bezel); border-radius: 46px; background: var(--bezel); box-shadow: 0 30px 60px -24px rgba(40, 8, 0, 0.45); }
.hero-phone { margin-bottom: -180px; position: relative; }

/* Three phones */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 260px 0 120px; }
.trio figure { display: grid; gap: 24px; justify-items: center; }
.trio .phone { max-width: 280px; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.35); }
.trio figcaption { max-width: 280px; color: var(--muted); }
.trio strong { display: block; color: var(--ink); font: 700 22px/1.2 var(--display); margin-bottom: 4px; }

/* Mac */
.mac { display: grid; grid-template-columns: 1fr 1.8fr; gap: 56px; align-items: center; padding: 64px 0 120px; border-top: 1px solid var(--line); }
.mac h2 { font: 800 44px/1 var(--display); letter-spacing: -0.03em; margin-bottom: 16px; }
.mac p { color: var(--muted); max-width: 22em; }
.mac img { border-radius: 14px; }

/* Footer */
footer { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 28px 40px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.fine { max-width: 40em; }
footer nav { font-size: 14px; flex-shrink: 0; }

/* Support and legal pages */
.legal { max-width: 720px; margin: 56px auto 96px; }
.legal .eyebrow { color: var(--chilli); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.legal h1 { color: var(--ink); font-size: 56px; line-height: 1; max-width: none; margin-bottom: 20px; }
.legal h2 { font: 700 24px/1.25 var(--display); margin: 40px 0 10px; }
.legal p { margin-bottom: 14px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--ink); }
.small { font-size: 14px; }
details { padding: 18px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font: 600 20px/1.3 var(--display); color: var(--ink); }
details p { margin: 12px 0 0; }
body:not(.home) .wrap > header { border-bottom: 1px solid var(--line); }
.wrap > footer { padding-left: 0; padding-right: 0; }

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  footer { padding: 24px 20px 32px; flex-direction: column; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .hero-copy { padding-bottom: 0; }
  .intro { font-size: 20px; margin-top: 24px; }
  .hero-phone { max-width: 260px; justify-self: center; margin-bottom: -140px; }
  .trio { grid-template-columns: 1fr; gap: 64px; padding: 200px 0 80px; }
  .mac { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 72px; }
  .mac h2 { font-size: 36px; }
  .legal { margin-top: 36px; }
  .legal h1 { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
