:root {
  --bg: #0b0b0b;
  --panel: #1c1c1c;
  --panel-2: #262626;
  --stroke: #363636;
  --text: #f2f2f2;
  --label: #cfcfcf;
  --dim: #8d8d8d;
  --brass: #c9a24a;
  --accent: #f2c773;
  --red: #d9342b;
  --peaking: #ffd900;
  --radius: 14px;
  --condensed: ui-sans-serif, -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

.condensed {
  font-family: var(--condensed);
  font-stretch: condensed;
  letter-spacing: 0.02em;
}

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(11 11 11 / 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid #1d1d1d;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--label); text-decoration: none; font-size: 15px; }
.nav ul a:hover { color: var(--text); }
@media (max-width: 640px) { .nav ul { display: none; } }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 56px; } }

.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 18px; }
h1 {
  font-family: var(--condensed);
  font-stretch: condensed;
  font-weight: 600;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.lede { font-size: 20px; color: var(--label); max-width: 34em; margin: 0 0 36px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
/* Apple's "Download on the App Store" badge, at a size its guidelines allow. */
.app-store-badge { display: inline-block; line-height: 0; }
.app-store-badge img { height: 60px; width: auto; }
.app-store-badge:hover { filter: brightness(1.15); }
.requires { color: var(--dim); font-size: 15px; }

.device { width: 100%; max-width: 520px; justify-self: center; filter: drop-shadow(0 30px 60px rgb(0 0 0 / 0.6)); }

/* EV scale divider */
.scale { display: flex; justify-content: center; padding: 8px 0 0; }
.scale svg { width: min(520px, 90%); height: auto; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 40em; margin-bottom: 44px; }
h2 {
  font-family: var(--condensed);
  font-stretch: condensed;
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.04;
  margin: 0 0 14px;
}
.section-head p { color: var(--label); font-size: 19px; margin: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border: 1.5px solid #bfbfbf;
  border-radius: 9px;
  font-family: var(--condensed); font-stretch: condensed; font-weight: 600; font-size: 20px;
  margin-bottom: 18px;
}
.steps h3 { margin: 0 0 8px; font-size: 21px; }
.steps p { margin: 0; color: var(--label); }

/* Features: tiles like the status screen */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile {
  border: 1.5px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  background: #000;
}
.tile .code {
  display: inline-block;
  font-family: var(--condensed); font-stretch: condensed; font-weight: 600;
  font-size: 26px; line-height: 1;
  margin-bottom: 14px;
}
.tile .code.boxed { border: 1.5px solid #c0c0c0; border-radius: 8px; padding: 6px 10px; }
.tile .code.chip { background: #d9d9d9; color: #000; border-radius: 4px; padding: 3px 7px; font-size: 20px; }
.tile .code.yellow { color: var(--peaking); }
.tile .code.amber { color: #ff9e38; }
.tile h3 { margin: 0 0 6px; font-size: 18px; }
.tile p { margin: 0; color: var(--label); font-size: 15.5px; }

/* Screen styles */
.screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.screens img {
  display: block; width: 100%; height: auto;
  border: 1.5px solid var(--stroke);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.screens h3 { margin: 0 0 4px; font-size: 18px; }
.screens p { margin: 0; color: var(--label); font-size: 15.5px; }

/* Film strip */
.films { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.films li {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel);
  border-radius: 12px;
  padding: 10px 18px 10px 10px;
}
.swatch { width: 64px; height: 40px; border-radius: 6px; flex: none; }
.films strong { display: block; font-family: var(--condensed); font-stretch: condensed; font-size: 18px; }
.films span { color: var(--dim); font-size: 14px; }
.luts { margin-top: 28px; color: var(--label); }
.luts code { background: var(--panel-2); padding: 2px 6px; border-radius: 5px; font-size: 15px; }

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .privacy { grid-template-columns: 1fr; } }
.privacy div { border-top: 2px solid var(--brass); padding-top: 18px; }
.privacy h3 { margin: 0 0 6px; font-size: 19px; }
.privacy p { margin: 0; color: var(--label); }

/* Requirements */
.req { background: var(--panel); border-radius: 20px; padding: 40px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
@media (max-width: 700px) { .req { grid-template-columns: 1fr; padding: 28px; } }
.req img.icon { width: 112px; height: 112px; border-radius: 26px; }
.req h2 { font-size: 36px; }
.req p { margin: 0; color: var(--label); }

footer { padding: 40px 0 56px; color: var(--dim); font-size: 14px; border-top: 1px solid #1d1d1d; margin-top: 88px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Current page in the navigation */
.nav ul a[aria-current="page"] { color: var(--text); }

/* Footer links */
footer nav { display: flex; gap: 20px; }
footer a { color: var(--label); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Document pages: privacy and support */
.doc { padding: 72px 0 24px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(44px, 6vw, 64px); margin-bottom: 12px; }
.doc .updated { color: var(--dim); margin: 0 0 40px; }
.doc .summary { background: var(--panel); border-radius: var(--radius); padding: 24px 28px; margin: 0 0 48px; }
.doc .summary p { margin: 0; color: var(--label); font-size: 18px; }
.doc h2 { font-size: 30px; margin: 48px 0 12px; }
.doc h3 { font-size: 19px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--label); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc code { background: var(--panel-2); padding: 2px 6px; border-radius: 5px; font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--stroke); }
.doc th { color: var(--text); font-weight: 600; }
.doc td { color: var(--label); }
.doc details { background: var(--panel); border-radius: 12px; padding: 16px 20px; margin: 10px 0; }
.doc summary { cursor: pointer; font-weight: 600; color: var(--text); }
.doc details p, .doc details ul { margin: 12px 0 0; }
.contact { border: 1.5px solid var(--stroke); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0; }
.contact p { margin: 0 0 16px; }
.button {
  display: inline-block;
  background: var(--accent); color: #000;
  font-weight: 600; text-decoration: none;
  padding: 12px 22px; border-radius: 999px;
}
.button:hover { filter: brightness(1.06); }
.doc th:first-child, .doc td:first-child { width: 30%; }

/* Screenshot gallery: a row that snaps to each screenshot, scrolled by swiping, trackpad, keyboard, or the arrows. */
.gallery-frame { position: relative; }
.gallery {
  display: flex; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px max(24px, calc((100% - 1120px) / 2)) 20px;
  scroll-padding-inline: max(24px, calc((100% - 1120px) / 2));
  scrollbar-width: thin; scrollbar-color: var(--stroke) transparent;
}
.gallery:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.shot { flex: 0 0 auto; width: clamp(220px, 28vw, 300px); margin: 0; scroll-snap-align: start; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: 18px; border: 1px solid var(--stroke); background: #000;
}
.shot figcaption { margin-top: 12px; color: var(--dim); font-size: 15px; line-height: 1.4; }
.shot figcaption strong { display: block; color: var(--text); font-size: 16px; }
.gallery-nav {
  position: absolute; top: calc(50% - 40px); transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--stroke); background: rgba(11, 11, 11, 0.85); color: var(--text);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.gallery-nav:hover { background: var(--panel-2); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
@media (hover: none) { .gallery-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .gallery { scroll-behavior: auto; } }
