/* The same look as the app: black and white, huge serif headlines, and orange for what's live. */
:root {
  --bg: #000;
  --panel: #0e0e0e;
  --border: #222;
  --text: #f5f5f3;
  --muted: #9a9a96;
  --faint: #5a5a57;
  --accent: #ff5a1f;
  --ink-text: #000;
  --serif: ui-serif, 'New York', 'Iowan Old Style', 'Palatino', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --bar: 60px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 24px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; margin: 0; }
h1 { font-size: clamp(54px, 9.4vw, 158px); }
h2 { font-size: clamp(42px, 6.6vw, 104px); }
h3 { margin: 0; font-size: 17px; font-weight: 600; }
p { margin: 0; }

/* ----- The bar, with the page as a waveform ----- */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); height: var(--bar); padding: 0 var(--gutter); background: rgba(0, 0, 0, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid #141414; }
.wordmark { flex: none; font: 700 23px/1 var(--serif); letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.wordmark i { color: var(--accent); font-style: normal; }
.track { position: relative; flex: 1; align-self: stretch; min-width: 0; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.wave { position: absolute; left: 0; right: 0; bottom: 7px; height: 28px; }
.wave svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wave .bars { fill: #3a3a38; }
.wave .played { fill: var(--accent); clip-path: inset(0 100% 0 0); }
.marker { position: absolute; top: 5px; left: 0; padding-left: 7px; font-size: 10.5px; font-weight: 600; line-height: 1.2; color: #7d7d79; text-decoration: none; white-space: nowrap; transition: color .15s; }
.marker::before { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 48px; background: #333331; transition: background .15s; }
.marker::after { content: ''; position: absolute; left: 1px; top: 1px; border-left: 5px solid #5a5a57; border-top: 3px solid transparent; border-bottom: 3px solid transparent; transition: border-color .15s; }
.marker:hover, .marker.is-past { color: var(--accent); }
.marker.is-past::before { background: rgba(255, 90, 31, .55); }
.marker.is-past::after, .marker:hover::after { border-left-color: var(--accent); }
.marker.is-now { color: var(--text); }
.playhead { position: absolute; top: 4px; bottom: 4px; left: 0; width: 2px; margin-left: -1px; background: var(--text); pointer-events: none; }
.playhead::before, .playhead::after { content: ''; position: absolute; left: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.playhead::before { top: -2px; }
.playhead::after { bottom: -2px; }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--text); color: var(--ink-text); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: opacity .15s; }
.btn:hover { opacity: .86; }
.btn-small { height: 34px; padding: 0 15px; font-size: 13.5px; }
.btn-big { height: 58px; padding: 0 34px; font-size: 18px; background: var(--accent); color: #0a0a0a; }
.btn.is-off { background: #1c1c1c; color: var(--muted); cursor: default; opacity: 1; }
.facts { color: var(--muted); font-size: 14px; }
.not-mac { color: var(--accent); font-size: 14px; }

/* ----- Frames for the screenshots ----- */
.window, .panel { margin: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #000; }
.window { box-shadow: 0 40px 120px -30px rgba(255, 90, 31, .13), 0 30px 80px rgba(0, 0, 0, .7); }
.window::before { content: ''; display: block; height: clamp(16px, 2vw, 28px); background: radial-gradient(circle at clamp(10px, 1.4vw, 18px) 50%, #ff5f57 clamp(2.5px, .36vw, 5.5px), transparent calc(clamp(2.5px, .36vw, 5.5px) + .5px)), radial-gradient(circle at clamp(19px, 2.6vw, 36px) 50%, #febc2e clamp(2.5px, .36vw, 5.5px), transparent calc(clamp(2.5px, .36vw, 5.5px) + .5px)), radial-gradient(circle at clamp(28px, 3.8vw, 54px) 50%, #28c840 clamp(2.5px, .36vw, 5.5px), transparent calc(clamp(2.5px, .36vw, 5.5px) + .5px)); }

/* ----- Intro ----- */
main { padding: 0 var(--gutter); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3.4vw, 48px); max-width: 1560px; margin: 0 auto; padding-top: clamp(44px, 6.4vw, 96px); }
.hero-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 72px); align-items: end; }
.lead { max-width: 25em; font-family: var(--serif); font-size: clamp(22px, 2.3vw, 34px); line-height: 1.22; letter-spacing: -0.012em; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-shot { margin-top: clamp(8px, 2vw, 28px); }

/* ----- Chapters ----- */
.chapter { max-width: 1560px; margin: 0 auto; padding-top: clamp(96px, 13vw, 200px); }
.flag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 7px; margin-bottom: 20px; border-radius: 4px; background: var(--accent); color: #0a0a0a; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.flag::before { content: ''; width: 8px; height: 10px; background: #0a0a0a; clip-path: polygon(0 0, 100% 30%, 18% 62%, 18% 100%, 0 100%); }
.chapter-head > p:last-child, .chapter-head > p:not(.flag) { max-width: 36em; color: #c9c9c5; margin-top: clamp(18px, 2vw, 28px); font-size: clamp(17px, 1.35vw, 20px); }
.chapter-head { margin-bottom: clamp(32px, 4vw, 60px); }
.chapter-head h2 { max-width: 13em; }

.layered { position: relative; padding-bottom: clamp(60px, 11vw, 190px); }
.layered .over { position: absolute; right: clamp(-8px, -1vw, 0px); bottom: 0; width: 66%; box-shadow: 0 30px 90px rgba(0, 0, 0, .85); }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.split .chapter-head { margin: 0; }
.split h2 { font-size: clamp(42px, 5.1vw, 84px); }
.split.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.split.flip .chapter-head { order: 2; }

.wide .panel { margin-inline: calc(var(--gutter) * -0.5); }

/* ----- And the rest ----- */
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); max-width: 1560px; margin: clamp(88px, 11vw, 170px) auto 0; }
.more > div { padding: 22px 0 26px; border-top: 1px solid var(--border); }
.more p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

/* ----- Quiver ----- */
.tune .chapter-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 5vw, 88px); align-items: end; }
.tune .flag { grid-column: 1 / -1; justify-self: start; }
.tune h2 { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); max-width: none; grid-column: 1; }
.tune .app-icon { width: clamp(56px, 6.4vw, 100px); height: auto; flex: none; border-radius: 22%; }
.tune .chapter-head > p:not(.flag) { grid-column: 2; grid-row: 2; margin-top: 0; }
.tune .cta { grid-column: 2; margin-top: 22px; }
.tune-view { position: relative; }
.segments { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 16px; border-radius: 999px; background: #161616; }
.segments button { height: 32px; padding: 0 15px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 13.5px var(--sans); cursor: pointer; }
.segments button.is-on { background: var(--text); color: var(--ink-text); }

/* ----- iPhone ----- */
.phone .chapter-head { margin-bottom: 0; }
.phone-shots { display: flex; gap: clamp(14px, 2.4vw, 36px); justify-content: center; margin-top: clamp(36px, 5vw, 70px); }
.phone-shots img { flex: 0 1 clamp(150px, 24vw, 340px); width: auto; min-width: 0; border-radius: 12.5% / 5.8%; border: 1px solid #2a2a2a; }

/* ----- Download ----- */
.download { max-width: 1560px; margin: clamp(96px, 13vw, 200px) auto 0; padding-top: clamp(30px, 4vw, 56px); border-top: 1px solid var(--border); }
.download h2 { font-size: clamp(min(17vw, 64px), 13vw, 220px); }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); margin-top: clamp(32px, 5vw, 70px); }
.apps article { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.apps .app-icon { width: 72px; height: 72px; border-radius: 22%; }
.apps h3 { font: 700 clamp(30px, 3.2vw, 46px)/1 var(--serif); letter-spacing: -0.03em; margin-top: 6px; }
.apps article > p:not(.facts) { color: #c9c9c5; min-height: 2.5em; }
.apps .btn { margin-top: 6px; }
.sha { color: var(--faint); font-size: 12.5px; max-width: 100%; }
.sha summary { cursor: pointer; }
.sha code { display: block; margin-top: 4px; font: 11.5px/1.5 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.changes { list-style: none; margin: 18px 0 0; padding: 0; width: 100%; }
.changes:empty { display: none; }
.changes > li { padding: 16px 0; border-top: 1px solid #1a1a1a; }
.changes h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; }
.changes time { margin-left: 8px; color: var(--faint); font-weight: 400; }
.changes ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.changes ul li + li { margin-top: 3px; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin: clamp(52px, 7vw, 100px) 0 0; }
.how dt { font-weight: 600; margin-bottom: 4px; }
.how dd { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ----- The end ----- */
.end { max-width: calc(1560px + var(--gutter) * 2); margin: clamp(96px, 13vw, 200px) auto 0; padding: 0 var(--gutter) 40px; }
.signoff { font: 700 clamp(42px, 8vw, 132px)/1 var(--serif); letter-spacing: -0.035em; }
.small { margin-top: 22px; color: var(--faint); font-size: 13.5px; }

/* ----- Licenses ----- */
.bar-gap { flex: 1; }
.legal { max-width: 860px; margin: 0 auto; padding-top: clamp(44px, 6vw, 80px); }
.legal h1 { font-size: clamp(44px, 7vw, 88px); }
.legal h2 { font-size: clamp(30px, 4vw, 44px); margin: clamp(44px, 6vw, 72px) 0 14px; }
.legal .lead { margin-top: 20px; }
.legal p + p { margin-top: 18px; }
.legal p { color: #c9c9c5; }
.legal-table { width: 100%; margin-top: clamp(32px, 4vw, 52px); border-collapse: collapse; font-size: 15.5px; }
.legal-table th { color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; padding: 0 16px 10px 0; }
.legal-table td { padding: 12px 16px 12px 0; border-top: 1px solid var(--border); vertical-align: top; color: var(--muted); }
.legal-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.small a { color: inherit; }

/* ----- Smaller screens ----- */
@media (max-width: 1100px) { .wordmark { font-size: 19px; } } /* leaves the section markers room */
@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip .chapter-head { order: 0; }
  .split h2 { font-size: clamp(42px, 9vw, 72px); }
  .hero-side { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .tune .chapter-head { display: block; }
  .tune .chapter-head > p:not(.flag) { margin-top: 18px; }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layered { padding-bottom: 0; }
  .layered .over { position: static; width: 100%; margin-top: 14px; }
}
@media (max-width: 720px) {
  :root { --bar: 92px; }
  .bar { flex-wrap: wrap; align-content: center; height: var(--bar); gap: 6px 12px; }
  .wordmark { flex: 1; }
  .track { order: 3; flex: 0 0 100%; height: 40px; align-self: auto; }
  .wave { bottom: 2px; height: 24px; }
  .marker { font-size: 0; top: 0; }
  .marker.is-now { font-size: 10.5px; }
  .marker::before { height: 40px; }
  .wide .panel { margin-inline: 0; }
  .apps, .how { grid-template-columns: minmax(0, 1fr); }
  .apps article > p:not(.facts) { min-height: 0; }
  .more { grid-template-columns: minmax(0, 1fr); }
}
