:root {
  color-scheme: light;
  --bg: #f5f7f1;
  --surface: #ffffff;
  --surface-muted: #edf2e7;
  --ink: #172017;
  --muted: #5c675c;
  --line: #d7dfd2;
  --green: #1e7a35;
  --green-strong: #115f28;
  --amber: #b47a18;
  --shadow: 0 18px 48px rgba(23, 32, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Segoe UI,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

a {
  color: var(--green-strong);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

code {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.75rem;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #253125;
  background: #f7faf4;
  font-family:
    Cascadia Mono,
    Consolas,
    monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.installer-surface,
.payload {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.installer-surface {
  padding: clamp(20px, 4vw, 42px);
}

.brand-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.brand-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #020502;
}

.brand-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.2;
}

.lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.8fr);
  gap: 18px;
  margin-top: 34px;
}

.install-box,
.checklist {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.install-box {
  padding: 20px;
}

.build-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 360px);
  min-height: 3.3rem;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}

.install-button:hover {
  background: var(--green-strong);
}

.install-button:focus-visible {
  outline: 3px solid rgba(180, 122, 24, 0.45);
  outline-offset: 3px;
}

.secondary-actions,
.guide-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary-actions {
  margin-top: 12px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0 1rem;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green-strong);
  background: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.secondary-button:hover {
  background: #f7faf4;
}

.secondary-button:focus-visible {
  outline: 3px solid rgba(180, 122, 24, 0.45);
  outline-offset: 3px;
}

.fallback,
.microcopy {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.checklist {
  padding: 18px;
}

.checklist ul,
.parts {
  padding: 0;
  margin: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.checklist li + li {
  margin-top: 10px;
}

.checklist li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.payload {
  margin-top: 18px;
  padding: 22px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head h2 {
  margin-bottom: 0;
}

.parts {
  display: grid;
  gap: 8px;
}

.parts li {
  display: grid;
  grid-template-columns: 1fr minmax(170px, auto) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.parts span {
  font-weight: 800;
}

.parts a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.guide-shell {
  width: min(1120px, calc(100% - 32px));
}

.guide-toolbar {
  margin-top: 26px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.guide-step {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-step figure {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.guide-step img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.step-copy {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0 14px;
  padding: 18px;
}

.step-number {
  display: inline-flex;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  font-size: 1.15rem;
  font-weight: 900;
}

.step-copy h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.step-copy p:not(.step-number) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.manual-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.manual-toc,
.manual-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.manual-toc {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 6px;
  padding: 18px;
}

.manual-toc h2 {
  margin-bottom: 6px;
}

.manual-toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.manual-toc a:hover {
  color: var(--green-strong);
}

.manual-content {
  display: grid;
  gap: 18px;
}

.manual-section {
  overflow: hidden;
}

.manual-section figure {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.manual-section img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.manual-section > div {
  padding: clamp(18px, 3vw, 28px);
}

.manual-section h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.manual-section p {
  color: var(--muted);
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.manual-section p:last-child {
  margin-bottom: 0;
}

.manual-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.55;
}

.manual-list:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1040px);
    padding: 10px 0;
  }

  .brand-row,
  .action-grid,
  .parts li,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .brand-row {
    gap: 14px;
  }

  .brand-logo {
    width: 74px;
    height: 74px;
  }

  h1 {
    font-size: 2rem;
  }

  .install-button {
    width: 100%;
  }

  .secondary-actions,
  .guide-toolbar {
    flex-direction: column;
  }

  .secondary-button {
    width: 100%;
  }

  .manual-layout {
    grid-template-columns: 1fr;
  }

  .manual-toc {
    position: static;
  }

  .step-copy {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 14px;
  }

  .step-number {
    width: 36px;
    height: 36px;
  }
}
