/* xsnapshot landing (public/index.html only). Shared chrome and controls live
   in base.css; the record vocabulary (.record, .record-specs, .record-counts)
   in viewer.css, because the viewer's Summary renders the same component.
   The page reads as one instrument: hairline bands, numbered sections, and
   the synthetic sample's record as the hero. */

main.wrap > section {
  border-top: 1px solid var(--line);
  padding: 72px 0;
}
main.wrap > .hero {
  border-top: 0;
}

/* ---------- hero: copy top-left, install bottom-left, record right ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "copy record"
    "install record";
  grid-template-rows: auto 1fr;
  gap: 40px 64px;
}
.hero-copy {
  grid-area: copy;
  min-width: 0;
}
.hero .record {
  grid-area: record;
  align-self: start;
}
.hero-install {
  grid-area: install;
  align-self: start; /* follows the copy; no dead band above it at 1440 */
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero h1 {
  margin-bottom: 24px;
}
.hero .lede {
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
}
.hero-install .kicker {
  margin: 0 0 4px;
}
.hero-install .fine {
  margin: 0;
  font-size: 12px;
  line-height: 17px;
}
.hero-install .fine a {
  display: inline-block;
  padding-block: 12px; /* a 44px target inside a 17px line */
  margin-block: -12px;
}
.hero .record-path {
  white-space: nowrap;
}
.record-files {
  margin-top: 20px;
}
.record-files .kicker {
  margin: 0 0 8px;
}
/* a file tree drawn with hairlines, not box-drawing characters */
.file-list {
  position: relative;
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
  font-size: 12px;
  line-height: 17px;
}
.file-list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 14px;
  width: 1px;
  background: var(--line-control);
}
.file-list li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9ch auto;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
}
.file-list li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 14px;
  width: 10px;
  height: 1px;
  background: var(--line-control);
}
.file-list code {
  min-width: 0;
  color: var(--text);
}
.file-hash {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.file-scope {
  color: var(--muted);
  font-size: 11px;
  line-height: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
}
/* the one crossing: the only file that can leave the machine */
.file-list .is-shared code {
  color: var(--text-strong);
  font-weight: 700;
}
.file-list .is-shared .file-scope {
  color: var(--accent);
}
.record figcaption {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-raised);
  font-size: 12px;
  line-height: 17px;
}

/* ---------- section heads ---------- */
.section-lead h2 {
  margin-bottom: 20px;
}
.section-lead > p:not(.eyebrow):not(.release-notice) {
  max-width: 46ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/* ---------- 01 uses: sticky lead, hairline rows ---------- */
.uses {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
}
.uses .section-lead,
.install .section-lead {
  position: sticky;
  top: calc(var(--topbar-h) + 30px);
}
.use-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.use-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.use-list h3 {
  margin-bottom: 8px;
}
.use-list p {
  max-width: 60ch;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.use-list a {
  position: relative;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}
/* a 44px target around a 20px line, arrow still glued to the last word */
.use-list a::after {
  content: "";
  position: absolute;
  inset: -12px -4px;
}
.context-note {
  grid-column: 2;
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}

/* ---------- 02 boundary: one ledger, two columns ---------- */
.boundary-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 64px;
  align-items: end;
  margin-bottom: 36px;
}
.boundary-head .eyebrow {
  grid-column: 1 / -1;
}
.boundary-head > p:last-child {
  justify-self: end;
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.ledger > article {
  min-width: 0;
  padding: 30px;
}
.ledger > article + article {
  border-left: 1px solid var(--line);
}
.ledger .kicker {
  margin: 0 0 12px;
}
.ledger .is-shared .kicker {
  color: var(--accent);
}
.ledger h3 {
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 29px;
  letter-spacing: -0.03em;
}
.ledger p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.ledger .ledger-warning {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.ledger-files {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ledger-files li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
}
.ledger-files li:first-child {
  border-top: 0;
  padding-top: 0;
}
.ledger-files small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}

/* ---------- 03 import ---------- */
#share:focus {
  outline: none; /* the skip link's programmatic target, not a control */
}
.import-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
}
.steps {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.steps li > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}
.drop {
  min-width: 0;
  padding: 40px;
  border: 1px dashed var(--line-control);
  border-radius: var(--r-card);
  background: var(--fill);
  transition-property: background-color, border-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.drop.hot {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.drop:focus-within {
  border-color: var(--line-control-hover);
}
/* the expected folder, in the record's file-tree style */
.drop-path {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 17px;
}
.drop-path code {
  color: var(--text);
}
.drop-path span {
  color: var(--muted);
}
.drop.hot .drop-path code {
  color: var(--accent);
}
.drop h3 {
  margin: 24px 0 8px;
  font-size: 24px;
  line-height: 29px;
  letter-spacing: -0.03em;
}
.drop .fine {
  max-width: 60ch;
  margin-bottom: 24px;
  font-size: 14px;
}
.import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* the sample is a quieter third way in, not a third pill */
.drop-sample {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}
.drop-sample .quiet {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 3px;
}
.drop-sample .quiet:hover:not(:disabled) {
  background: transparent;
  color: var(--text-strong);
  text-decoration-color: currentColor;
}
.drop-sample .quiet:active:not(:disabled) {
  transform: none;
}
.drop-sample .quiet:disabled {
  color: var(--muted);
}
/* a compact loaded state, announced politely by home.js */
.drop-status:not(:empty) {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--ok);
  border-radius: var(--r-field);
  font-size: 13px;
  line-height: 20px;
}
.drop-status:not(:empty)::before {
  content: "✓ ";
  content: "✓ " / "";
  color: var(--ok);
  font-weight: 700;
}
.drop-status:empty {
  margin: 0;
}
.drop-footnote {
  max-width: 60ch;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}
[data-stage] {
  margin-top: 40px;
}
[data-stage] > .banner:only-child {
  padding: 20px 24px;
}
[data-stage] .block > h2:focus {
  outline: none; /* programmatic focus after a load; the status line announces it */
}

/* ---------- 04 install ---------- */
.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
}
.release-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}
.install-body .command {
  margin-top: 0;
}
.spec-list {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}
.spec-list > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
}
.spec-list dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.spec-list dd {
  margin: 0;
  min-width: 0;
  max-width: 60ch;
}
.install-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}
.install-links a {
  display: inline-block;
  padding-block: 12px;
  font-weight: 700;
}

/* ---------- responsive ---------- */
@media (min-width: 1500px) {
  main.wrap > section {
    padding: 88px 0;
  }
}
@media (max-width: 1000px) {
  main.wrap > section {
    padding: 56px 0;
  }
  .hero,
  .uses,
  .import-grid,
  .install {
    column-gap: 40px;
  }
  .drop {
    padding: 30px;
  }
}
/* one column: copy, then the record, then the install line */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "record"
      "install";
    grid-template-rows: none;
    row-gap: 30px;
  }
  .uses,
  .import-grid,
  .install,
  .boundary-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hero-copy,
  .hero .record {
    max-width: 640px;
  }
  .uses .section-lead,
  .install .section-lead {
    position: static;
  }
  .context-note {
    grid-column: auto;
  }
  .boundary-head {
    gap: 20px;
  }
  .boundary-head > p:last-child {
    justify-self: start;
  }
}
@media (max-width: 720px) {
  main.wrap > section {
    padding: 44px 0;
  }
  .hero h1 {
    font-size: clamp(36px, 11vw, 56px);
  }
  .ledger {
    grid-template-columns: minmax(0, 1fr);
  }
  .ledger > article {
    padding: 24px 20px;
  }
  .ledger > article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .drop {
    padding: 24px 20px;
  }
  .import-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
/* phones: a compact record (path, host, counts, folder) inside the first screen */
@media (max-width: 480px) {
  .hero .record-specs {
    display: none;
  }
  .hero .record-counts {
    margin-top: 16px;
    border-top: 1px solid var(--line);
  }
  .file-list li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .file-hash {
    display: none;
  }
  .spec-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .steps li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
  }
}
@media (forced-colors: active) {
  .ledger,
  .drop,
  .drop-status:not(:empty) {
    border-color: CanvasText;
  }
  .file-list::before,
  .file-list li::before {
    background: CanvasText;
  }
}
