:root {
  /* Approved v47 website palette; product captures keep product tokens. */
  --bg: #faf8f4;
  --surface: #fff;
  --surface-2: #f4f1eb;
  --ink: #101114;
  --muted: #5d5f63;
  --line: #e7e2d8;
  --accent: #1f5b5e;
  --accent-soft: #e6eeee;
  --annotation: #1f5b5e;
  --body: Inter, Arial, sans-serif;
  --display: Newsreader, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --text-xs: clamp(0.75rem, 0.74rem + 0.1vw, 0.8rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --text-base: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.7rem, 1.35rem + 1.1vw, 2.5rem);
  --text-2xl: clamp(2rem, 1.5rem + 1.5vw, 2.9rem);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  color-scheme: light;
}
body {
  font-family: var(--body);
  font-size: var(--text-base);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
b, strong { font-weight: 500; }
h1, h2 { letter-spacing: -0.005em; }
.skip {
  position: fixed;
  top: -80px;
  left: var(--space-4);
  z-index: 100;
  background: var(--surface);
  padding: var(--space-3);
}
.skip:focus {
  top: var(--space-2);
}
.topbar {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  gap: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  font-family: var(--display);
  font-size: var(--text-lg);
}
.brand .lockup {
  display: block;
  width: 152px;
  height: 40px;
  overflow: visible;
  flex-shrink: 0;
}
.lockup text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.012em;
}
.lockup .tile, .lockup .word { fill: var(--ink); }
.lockup .cletter { fill: var(--bg); }
.top-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.top-actions button,
.zoom-bar button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}
.open-app,
.primary {
  background: var(--ink);
  color: var(--surface);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}
#menu {
  display: none;
}
.layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}
#sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  overflow: auto;
  border-right: 1px solid var(--line);
  padding: var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.sidebar-intro {
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
}
.eyebrow {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.sidebar-intro .eyebrow {
  margin-bottom: var(--space-1);
}
#chapters {
  display: grid;
  gap: var(--space-1);
}
.chapter {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-2);
  align-items: center;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  min-height: 44px;
  font-size: var(--text-sm);
  line-height: 1.35;
  color: var(--muted);
}
.chapter .num {
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.chapter:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.chapter.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.chapter.active .num {
  color: var(--accent);
}
.sidebar-foot {
  padding: var(--space-5) var(--space-3) 0;
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: auto;
}
.sidebar-foot p + p {
  margin-top: var(--space-1);
}
main {
  padding: var(--space-10) clamp(var(--space-5), 3.5vw, var(--space-16))
    var(--space-12);
  min-width: 0;
}
#step {
  max-width: 1040px;
  margin: 0 auto;
}
.step-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.tag {
  font-size: var(--text-xs);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  font-weight: 500;
}
.step-top .eyebrow {
  margin-right: auto;
}
h1 {
  font-family: var(--display);
  font-size: var(--text-xl);
  line-height: 1.12;
  max-width: 35ch;
}
.intro {
  margin-top: var(--space-4);
  max-width: 78ch;
  color: var(--muted);
  line-height: 1.65;
}
.path {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
}
.substeps {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-6) 0;
  flex-wrap: wrap;
}
.substeps button {
  font-size: var(--text-xs);
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  min-height: 38px;
}
.substeps button[aria-current="true"] {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.actions {
  display: grid;
  grid-template-columns: repeat(var(--count), minmax(0, 1fr));
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}
.actions li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.action-num {
  display: grid;
  place-items: center;
  align-self: flex-start;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--annotation);
  color: white;
  font-size: var(--text-xs);
  font-family: var(--mono);
  font-weight: 500;
  margin-top: 2px;
}
.actions b {
  color: var(--ink);
  font-weight: 500;
}
.screenshot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
}
.image-button {
  display: block;
  width: 100%;
  padding: 0;
  background: white;
  text-align: left;
  position: relative;
  border-radius: 0;
}
.image-button img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 820px;
  object-fit: contain;
  object-position: top center;
  background: var(--surface);
}
.image-button:hover:after {
  content: "Click to enlarge";
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  font-size: var(--text-sm);
  background: #101114;
  color: white;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}
figcaption {
  padding: var(--space-3) var(--space-4);
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  color: var(--muted);
  font-size: var(--text-xs);
  border-top: 1px solid var(--line);
}
.after-shot {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
  padding-top: var(--space-6);
}
.after-shot h2 {
  font-family: var(--body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.after-shot p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--muted);
}
.success-label {
  color: var(--accent);
}
details {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background: var(--surface);
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 28px;
}
details p {
  margin-top: var(--space-3);
  color: var(--muted);
}
.step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-top: 1px solid var(--line);
  padding-top: var(--space-6);
  margin-top: var(--space-8);
}
.back {
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  padding: var(--space-3) 0;
}
.fineprint {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: var(--space-6);
}
.welcome h1 {
  font-size: var(--text-2xl);
  max-width: 24ch;
  margin-top: var(--space-3);
  text-wrap: balance;
}
.welcome .intro {
  font-size: var(--text-lg);
  max-width: 58ch;
  line-height: 1.5;
}
.welcome-cta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}
.welcome-cta .primary {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
}
.cta-hint {
  font-size: var(--text-sm);
  color: var(--muted);
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
  align-items: stretch;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.card h2 {
  font-family: var(--display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
}
.card-soft {
  background: var(--surface-2);
  border-color: transparent;
}
.check-list,
.route {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li,
.route li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.check-list li:first-child,
.route li:first-child {
  border-top: 0;
  padding-top: 0;
}
.check-list li:last-child,
.route li:last-child {
  padding-bottom: 0;
}
.check {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
}
.route .action-num {
  flex: none;
  margin-top: 1px;
}
.card-note {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
}
.card-note a {
  color: var(--accent);
}
.howto {
  margin-top: var(--space-6);
}
.howto h2 {
  margin-bottom: var(--space-3);
}
.howto p {
  font-size: var(--text-sm);
  color: var(--muted);
  max-width: 80ch;
}
.howto p + p {
  margin-top: var(--space-3);
}
.howto a {
  color: var(--accent);
}
.welcome .fineprint {
  margin-top: var(--space-5);
}
.finish-box {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--accent-soft);
  border-radius: var(--radius-md);
}
.finish-box h2 {
  font-family: var(--display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.finish-box p {
  font-size: var(--text-sm);
}
.finish-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.finish-checks label {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: var(--text-sm);
}
.finish-checks input {
  margin-top: 5px;
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.finish-status {
  margin-top: var(--space-4);
  font-weight: 600;
  color: var(--accent);
}
#zoom {
  width: min(96vw, 1700px);
  height: 94vh;
  max-width: none;
  max-height: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
#zoom::backdrop {
  background: #071019bf;
  backdrop-filter: blur(3px);
}
.zoom-bar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  gap: var(--space-3);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}
.zoom-bar > div {
  display: flex;
  gap: var(--space-2);
}
.zoom-scroll {
  height: calc(100% - 66px);
  overflow: auto;
  background: #eee;
}
.zoom-scroll img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
.zoom-scroll.actual img {
  width: 1440px;
}
.zoom-bar span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 1700px) {
  .image-button img {
    max-height: 860px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 218px minmax(0, 1fr);
  }
  main {
    padding: var(--space-8) var(--space-6);
  }
  .topbar {
    padding: 0 var(--space-5);
  }
  .actions {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .image-button img {
    max-height: none;
  }
  .after-shot {
    gap: var(--space-5);
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 64px;
    padding: 0 var(--space-4);
  }
  .brand {
    gap: var(--space-2);
  }
  .brand .lockup {
    height: 27px;
    width: 102.6px;
  }
  .top-actions {
    gap: var(--space-2);
  }
  .top-actions button,
  .open-app {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }
  #menu {
    display: block;
  }
  .layout {
    display: block;
  }
  #sidebar {
    display: none;
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 25;
    width: min(86vw, 320px);
    height: calc(100vh - 64px);
    background: var(--surface);
    box-shadow: 8px 0 35px #0002;
  }
  #sidebar.open {
    display: flex;
  }
  main {
    padding: var(--space-6) var(--space-4) var(--space-8);
  }
  .welcome h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
  .card {
    padding: var(--space-5);
  }
  .after-shot {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .substeps {
    gap: var(--space-2);
    margin-top: var(--space-5);
  }
  .substeps button {
    flex: 1;
    min-width: 72px;
  }
  .intro {
    font-size: var(--text-base);
  }
  .actions li {
    font-size: var(--text-base);
  }
  figcaption {
    display: block;
  }
  figcaption span + span {
    display: block;
    margin-top: var(--space-1);
  }
  .step-footer {
    align-items: stretch;
  }
  .primary {
    max-width: 75%;
    text-align: center;
  }
  .finish-checks {
    grid-template-columns: 1fr;
  }
  .zoom-bar {
    padding: var(--space-2);
    font-size: var(--text-xs);
  }
  .zoom-bar button {
    padding: var(--space-2);
    font-size: var(--text-xs);
  }
  .welcome-cta .primary {
    max-width: none;
  }
}
