:root {
  --ink: #14151a;
  --muted: #5c616b;
  --paper: #f6f3ef;
  --card: #fffcf8;
  --line: #e4ddd4;
  --blush: #f6c9d6;
  --blush-deep: #e7a8ba;
  --a: #9f1239;
  --a-bg: #fce7ec;
  --b: #9a3412;
  --b-bg: #ffedd5;
  --c: #1e3a8a;
  --c-bg: #dbeafe;
  --shadow: 0 22px 50px rgba(20, 21, 26, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% 0%, #f8d5e0 0%, transparent 70%),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; }
code { font-family: Consolas, ui-monospace, monospace; font-size: 0.92em; white-space: nowrap; }
button { font: inherit; color: inherit; }

.desk {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding: 22px 0 18px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.mark {
  width: 42px;
  height: 50px;
  background: var(--card);
  border-radius: 4px 10px 10px 4px;
  box-shadow: 4px 0 0 var(--blush-deep);
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 7px;
  flex: none;
}
.mark i {
  display: block;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}
.mark i:nth-child(2) { width: 70%; background: var(--a); }
.mark i:nth-child(3) { width: 46%; background: var(--b); }
.brand b { display: block; font-size: 16px; letter-spacing: -0.03em; }
.brand span { display: block; color: var(--muted); font-size: 12px; }
.mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  font-weight: 650;
}
.mast nav a { text-decoration: none; }
.mast nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }

.intro { padding: 36px 0 8px; max-width: 760px; }
.kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--a);
}
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; }
h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.96;
}
.lede { font-size: 18px; max-width: 40rem; color: #2c3038; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chip { font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: 999px; }
.chip.a { background: var(--a-bg); color: var(--a); }
.chip.b { background: var(--b-bg); color: var(--b); }
.chip.c { background: var(--c-bg); color: var(--c); }
.facts { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: center;
  padding: 42px 0 12px;
}
.feature-copy h2 { margin: 0 0 8px; font-size: 34px; line-height: 1.05; }
.feature-copy p { margin: 0; color: #2c3038; }
.shot-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
}
.shot-nav button {
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--line);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
}
.shot-nav button[aria-current="true"] {
  border-left-color: var(--a);
  color: var(--a);
}
.shot-copy { margin-top: 18px; }
.shot-copy h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.shot-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.shot-count {
  margin: 0;
  min-width: 4.5em;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.viewer { display: flex; justify-content: center; }
.stage img[hidden] { display: none; }
.stage img {
  width: min(340px, 100%);
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(20, 21, 26, 0.14);
  background: #fff;
}
.arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
}
.arrow:hover { border-color: var(--ink); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 36px 0 8px;
}
.steps article {
  background: rgba(255, 252, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 20px 22px;
}
.steps strong { display: block; font-size: 16px; margin-bottom: 8px; }
.steps span { color: #3a3e46; font-size: 15px; }
.num { color: var(--a); font-variant-numeric: tabular-nums; margin-right: 8px; }

.sheet {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: center;
  padding: 48px 0;
}
.sheet h2 { margin: 0 0 10px; font-size: 36px; }
.sheet p { margin: 0; max-width: 36rem; }
.math {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.math th, .math td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.math th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.math tr:last-child td { border-bottom: 0; font-weight: 750; }

.notes {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding-bottom: 48px;
}
.note, .legal {
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.note h2, .legal h2 { margin: 0 0 8px; font-size: 22px; font-family: var(--serif); font-weight: 600; }
.note ul, .legal ul { margin: 8px 0 0; padding-left: 18px; }
.note li, .legal li { margin: 6px 0; }

.page-head { padding: 42px 0 10px; max-width: 40rem; }
.page-head h1 { font-size: clamp(36px, 4vw, 52px); }
.page-head p { color: var(--muted); }

.legal-stack { display: grid; gap: 12px; padding: 10px 0 48px; }
.legal h2 { font-size: 18px; }
.legal p, .legal li { color: #3a3e46; }
.legal a { font-weight: 700; }

.foot {
  border-top: 1px dashed #c9bfb6;
  padding: 22px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.foot a { color: var(--ink); font-weight: 650; }

@media (max-width: 860px) {
  .desk { width: min(1180px, calc(100% - 28px)); }
  .feature, .steps, .sheet, .notes { grid-template-columns: 1fr; }
  .shot-nav button { width: 100%; }
  .stage img { width: min(320px, 100%); }
  h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
