:root {
  --ink: #1d1d1f;
  --paper: #f5f5f7;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --dark-muted: #a1a1a6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.022em; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 8px 22px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; align-items: center; justify-content: flex-end; }
.nav a { color: #f5f5f7; text-decoration: none; font-size: 12px; opacity: 0.88; }
.nav a[aria-current="page"], .nav a:hover { opacity: 1; }
.nav a.buy {
  opacity: 1;
  background: var(--blue);
  color: #fff;
  border-radius: 980px;
  padding: 4px 12px;
}

body:has(.product) { background: #000; color: #f5f5f7; }
.hero-product {
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 48px;
  background: #000;
  color: #f5f5f7;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--dark-muted);
}
.hero-product h1 {
  margin: 0;
  font-size: clamp(64px, 10vw, 112px);
  line-height: 1.02;
  font-weight: 600;
}
.dek { max-width: 40rem; margin: 12px auto 0; font-size: 21px; line-height: 1.38; color: var(--dark-muted); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 17px;
}
.btn.quiet, button.btn.ghost {
  background: transparent;
  color: var(--blue);
}
.hero-logo { width: min(640px, 78vw); height: auto; margin-top: 56px; }

.chapters {
  position: sticky;
  top: 48px;
  z-index: 4;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(29, 29, 31, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
}
.chapters a { color: #f5f5f7; text-decoration: none; font-size: 12px; opacity: 0.8; }
.chapters a:hover { opacity: 1; }

.highlights { background: #000; padding: 88px 0 72px; }
.highlights h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(40px, 6vw, 64px);
  color: #f5f5f7;
}
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 max(22px, calc((100vw - 1100px) / 2)) 12px;
}
.tile {
  flex: 0 0 280px;
  scroll-snap-align: start;
  min-height: 380px;
  border-radius: 28px;
  padding: 28px 24px;
  background: #161617;
  color: #f5f5f7;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tile strong { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.tile span { color: var(--dark-muted); font-size: 17px; line-height: 1.35; }

.chapter {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
}
.chapter h2 {
  margin: 8px 0 0;
  max-width: 16em;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.05;
}
.chapter .dek { margin-top: 18px; }
.chapter.dark { background: #000; color: #f5f5f7; }
.chapter.dark .dek, .chapter.dark .eyebrow { color: var(--dark-muted); }
.chapter.light { background: var(--paper); color: var(--ink); }
.chapter.light .dek, .chapter.light .eyebrow { color: var(--muted); }
.chapter.light .btn.quiet { color: var(--blue); }
.stat {
  margin: 0;
  font-size: clamp(64px, 9vw, 112px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; margin: 28px 0 0; padding: 0; max-width: 720px; }
.pills li { background: #fff; border-radius: 980px; padding: 10px 16px; font-size: 17px; }
.family {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(980px, 100%);
  margin-top: 36px;
  text-align: left;
}
.family article { background: #161617; border-radius: 18px; padding: 18px 16px 20px; min-height: 120px; }
.family h3 { margin: 0 0 6px; font-size: 21px; }
.family p { margin: 0; color: var(--dark-muted); font-size: 14px; }
.spec { width: min(720px, 100%); margin: 36px 0 0; text-align: left; }
.spec div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid #333; }
.spec dt { color: var(--dark-muted); }
.spec dd { margin: 0; }

.sheet, .page, .hero { max-width: 760px; margin: 0 auto; padding: 72px 22px 12px; }
.sheet h1, .page h1, .hero h1 { margin: 0; font-size: clamp(40px, 6vw, 56px); line-height: 1.07; }
.sheet .dek, .page .lede, .page .dek, .hero p { color: var(--muted); font-size: 21px; }
.sheet h2 { margin: 40px 0 8px; font-size: 28px; }
.sheet p { font-size: 17px; }
.page .figure { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 12px 0; }
.rows { border-top: 1px solid var(--line); }
.rows a, .rows > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.rows b:empty { display: none; }
.rows span { font-size: 21px; font-weight: 600; }
.rows em { grid-column: 1 / -1; font-style: normal; color: var(--muted); }
.panel { max-width: 560px; margin: 8px auto 48px; padding: 0 22px 24px; }
.panel .row, form .row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
label { color: var(--muted); font-size: 14px; }
input, select, textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
input[type="checkbox"] { width: auto; }
table { width: min(920px, calc(100% - 44px)); margin: 12px auto 48px; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; font-weight: 600; }
.messages { max-width: 760px; margin: 0 auto 18px; padding: 0 22px; }
.message { border-top: 1px solid var(--line); padding-top: 12px; }
.video iframe, .video video { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; margin-top: 12px; }
.pix img { width: 220px; background: #fff; padding: 8px; }
.flash { max-width: 760px; margin: 16px auto; padding: 0 22px; }
.flash.ok { color: #008000; }
.flash.err { color: #b00020; }
.lamp { color: var(--muted); font-size: 14px; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
body:has(.product) .footer { background: #000; color: var(--dark-muted); border-top-color: #333; }
.footer a { color: inherit; }

.admin .shell { display: grid; grid-template-columns: 200px 1fr; min-height: calc(100vh - 48px); }
.admin .subnav { display: flex; flex-direction: column; padding: 18px 0; border-right: 1px solid var(--line); background: #fff; }
.admin .subnav a { color: var(--ink); text-decoration: none; padding: 10px 18px; font-size: 14px; }
.admin .subnav a[aria-current="page"] { color: var(--blue); }

@media (max-width: 800px) {
  .family { grid-template-columns: 1fr 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .hero-product { min-height: auto; padding-top: 48px; }
  .chapter { min-height: auto; padding: 88px 20px; }
  .tile { flex-basis: 78vw; }
  .admin .shell { grid-template-columns: 1fr; }
  .admin .subnav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand img { height: 18px; }
}
