/* The app's dark ground, square plates and bright status signals stay the material.
 * The tour spends space on the session, not on repeating the same setup form.
 */
:root {
  --ground-base: #0a0c10;
  --ground-surface: #11151c;
  --ground-line: #1c2230;
  --ground-edge: #262d38;
  --ink-bright: #f4f7fb;
  --ink-plain: #cfd7e2;
  --ink-muted: #8b96a6;
  --ink-inverse: #0a0c10;
  --brand-azure: #5b9dff;
  --signal-amber: #ffb020;
  --signal-sage: #3ddc84;
  --face-body: "Helvetica Neue", Arial, sans-serif;
  --face-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Plain/base 13.49:1; muted/base 6.53:1; amber/base 10.70:1.
   * On surface: plain 12.61:1; muted 6.11:1; azure 6.72:1; sage 10.25:1.
   * The primary button uses inverse/azure at 7.19:1.
   */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--ground-base);
  color: var(--ink-plain);
  font-family: var(--face-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--signal-amber);
  outline-offset: 4px;
}

a {
  color: var(--brand-azure);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--ink-bright);
}

.skip {
  position: absolute;
  left: -9999px;
  padding: 8px 16px;
  background: var(--signal-sage);
  color: var(--ink-inverse);
  font-family: var(--face-mono);
  z-index: 10;
}

.skip:focus {
  left: 16px;
  top: 16px;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ground-line);
}

.wordmark {
  color: var(--ink-bright);
  font: 500 19px var(--face-mono);
  letter-spacing: 0.1em;
  text-decoration: none;
}

.masthead nav,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.masthead nav a,
.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-plain);
  font: 12px var(--face-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.masthead nav a:hover,
.footer nav a:hover {
  color: var(--brand-azure);
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  color: var(--ink-bright);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 15ch;
  font-size: clamp(38px, 5.5vw, 64px);
}

h1 span {
  color: var(--signal-amber);
}

h2 {
  max-width: 24ch;
  font-size: clamp(28px, 3.4vw, 40px);
}

h3 {
  font-size: 21px;
}

p {
  max-width: 66ch;
  margin: 0 0 20px;
}

code {
  color: var(--signal-amber);
  font: 0.9em var(--face-mono);
  overflow-wrap: anywhere;
}

.kicker,
.route-label {
  margin-bottom: 16px;
  color: var(--ink-muted);
  font: 12px/1.5 var(--face-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: 64px;
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--ground-line);
}

.hero-copy,
.setup > *,
.steps > li > div {
  min-width: 0;
}

.lede {
  max-width: 42ch;
  font-size: 20px;
  line-height: 1.5;
  margin: 24px 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--brand-azure);
  color: var(--ink-inverse);
  font: 500 14px/1.5 var(--face-mono);
  text-decoration: none;
}

.button:hover {
  background: var(--ink-bright);
  color: var(--ink-inverse);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
}

.hero-note,
.setup-note,
.scope-tools {
  color: var(--ink-muted);
  font-size: 14px;
}

.hero-note {
  max-width: 45ch;
  margin: 20px 0 0;
}

.hero-shot {
  width: min(100%, 260px);
  margin: 0 auto;
  border: 1px solid var(--ground-edge);
  background: var(--ground-surface);
}

.frame-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  font: 11px/1.5 var(--face-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.signal-ready {
  color: var(--signal-sage);
}

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--ground-line);
}

.section-heading {
  margin-bottom: 28px;
}

.plate {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--ground-edge);
  background: var(--ground-surface);
}

.shot-link {
  display: block;
}

img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--ground-edge);
  color: var(--ink-plain);
  font: 12px/1.5 var(--face-mono);
}

figcaption b {
  color: var(--ink-bright);
  font-weight: 500;
}

figcaption span {
  color: var(--ink-muted);
}

.overview {
  max-width: 100%;
}

.tour-chapters {
  margin-top: 32px;
}

.tour-chapters details {
  border-top: 1px solid var(--ground-edge);
}

.tour-chapters details:last-child {
  border-bottom: 1px solid var(--ground-edge);
}

.tour-chapters summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  color: var(--ink-bright);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.tour-chapters summary::-webkit-details-marker {
  display: none;
}

.tour-chapters summary::after {
  content: "+";
  color: var(--brand-azure);
  font-family: var(--face-mono);
}

.tour-chapters details[open] > summary::after {
  content: "\2212";
}

.tour-chapters summary:hover {
  color: var(--brand-azure);
}

.chapter-number {
  color: var(--ink-muted);
  font: 13px var(--face-mono);
}

.chapter-body {
  padding: 0 0 24px 48px;
}

.chapter-body > p {
  max-width: 64ch;
  margin-bottom: 24px;
}

/* Exclusive native disclosures keep the tour inspectable without a carousel.
 * Both surface captures remain ordinary links to their full-resolution files.
 */
.shot-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.phone-plate {
  width: min(100%, 230px);
  justify-self: center;
}

.route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.route > div {
  padding: 0 24px;
  border-left: 1px solid var(--ground-edge);
}

.route > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.route p:last-child {
  margin: 0;
  font-size: 16px;
}

.setup {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

.steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--ground-edge);
  counter-increment: step;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--ink-muted);
  font: 28px/1 var(--face-mono);
}

.steps h3 {
  font-size: 18px;
}

.steps p {
  margin-bottom: 0;
  font-size: 14px;
}

/* Zero-minimum tracks let a long command shrink with the page. Commands wrap
 * at spaces, then within a long argument if necessary; copying keeps one line.
 */
pre {
  min-width: 0;
  margin: 16px 0;
  padding: 16px;
  border-left: 2px solid var(--ground-edge);
  background: var(--ground-surface);
  color: var(--ink-bright);
  font: 13px/1.7 var(--face-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

pre code {
  color: inherit;
  font: inherit;
}

.pairing .shot-pair {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.pairing .phone-plate {
  max-width: 156px;
}

.setup-note {
  margin: 20px 0 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 28px 0 20px;
  font-size: 16px;
}

caption {
  padding-bottom: 12px;
  color: var(--ink-muted);
  font: 12px/1.5 var(--face-mono);
  text-align: left;
}

th,
td {
  padding: 16px 0;
  border-bottom: 1px solid var(--ground-edge);
  text-align: left;
  vertical-align: top;
}

th:first-child {
  width: 24%;
  padding-right: 16px;
}

thead th {
  color: var(--ink-bright);
  font: 12px/1.5 var(--face-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody th code {
  color: var(--signal-sage);
  font-weight: 400;
}

.limits dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  margin: 32px 0;
}

.limits dt {
  margin-bottom: 8px;
  color: var(--ink-bright);
  font-weight: 500;
}

.limits dd {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px 0;
  color: var(--ink-muted);
  font: 12px/1.5 var(--face-mono);
}

.footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
    gap: 32px;
  }

  .hero-shot {
    max-width: 220px;
  }

  .setup {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .pairing .shot-pair {
    grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .shell {
    padding: 0 20px;
  }

  .masthead {
    gap: 8px;
    padding: 16px 0 8px;
  }

  .masthead nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 32px 0 40px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 44px);
  }

  .lede {
    font-size: 18px;
    margin: 20px 0;
  }

  .hero-shot {
    max-width: 230px;
  }

  .section {
    padding: 40px 0;
  }

  .chapter-body {
    padding-left: 0;
  }

  .tour-chapters summary {
    grid-template-columns: 24px minmax(0, 1fr) 16px;
    gap: 12px;
    font-size: 18px;
  }

  .shot-pair,
  .pairing .shot-pair,
  .route,
  .limits dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .phone-plate {
    max-width: 190px;
  }


  .route {
    gap: 24px;
  }

  .route > div {
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--ground-edge);
  }

  .steps > li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
  }

  .steps > li::before {
    font-size: 24px;
  }

  th:first-child {
    width: 29%;
    padding-right: 12px;
  }

  .limits dl {
    gap: 24px;
  }
}

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

@media print {
  body {
    background: #fff;
    color: #000;
  }

  h1,
  h2,
  h3,
  h1 span,
  p,
  code {
    color: #000;
  }

  .masthead nav,
  .hero-shot,
  .tour,
  .pairing,
  .actions,
  .footer nav {
    display: none;
  }

  .hero,
  .setup {
    display: block;
  }

  pre {
    color: #000;
    background: #f4f4f4;
    border-left-color: #666;
  }
}
