/* NexusDock product guides stay inside the marketing site: same brand, quieter reading UI. */

.guide-home,
.download-main {
  width: var(--content);
  margin: 0 auto;
}
.guide-home { padding: 104px 0 110px; }
.download-main { padding: 54px 0 110px; }
.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 70px;
  border-bottom: 1px solid var(--border);
}
.guide-hero::after {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -190px;
  top: -245px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,85,214,.13), rgba(36,85,214,0) 70%);
  content: "";
  pointer-events: none;
}
.guide-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.guide-hero h1,
.guide-article h1 {
  margin: 0;
  max-width: 900px;
  font-weight: 730;
  letter-spacing: -.055em;
  line-height: 1;
}
.guide-hero h1 { font-size: clamp(46px, 6vw, 72px); }
.guide-hero > p {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.guide-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.guide-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--fg);
  font-size: 13px;
  font-weight: 680;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.guide-button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.guide-button:hover { transform: translateY(-1px); }

.guide-entry-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  padding-top: 46px;
}
.guide-entry {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface-solid);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.guide-entry:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.guide-entry-number { color: var(--accent); font-size: 10px; font-weight: 720; }
.guide-entry h2 { margin: 34px 0 10px; font-size: 24px; letter-spacing: -.035em; }
.guide-entry p { max-width: 500px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.68; }
.guide-entry b { position: absolute; right: 26px; bottom: 24px; color: var(--accent); font-size: 18px; font-weight: 500; }

.guide-next {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  margin-top: 58px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.guide-next h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.guide-next p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.guide-page {
  width: var(--content);
  margin: 0 auto;
  padding: 64px 0 108px;
}
.guide-page-heading {
  max-width: 830px;
  padding: 20px 0 52px;
  border-bottom: 1px solid var(--border);
}
.guide-page-heading h1 { margin: 0; font-size: clamp(42px, 5vw, 62px); font-weight: 730; letter-spacing: -.055em; line-height: 1; }
.guide-page-heading p { max-width: 690px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.guide-layout {
  max-width: 830px;
  padding-top: 46px;
}

.guide-article { min-width: 0; }
.guide-article section + section { margin-top: 52px; padding-top: 50px; border-top: 1px solid var(--border); }
.guide-article h2 { margin: 0 0 18px; font-size: 28px; letter-spacing: -.04em; }
.guide-article h3 { margin: 30px 0 10px; font-size: 18px; letter-spacing: -.025em; }
.guide-article p,
.guide-article li { color: var(--muted); font-size: 15px; line-height: 1.78; }
.guide-article p { margin: 0; }
.guide-article p + p { margin-top: 13px; }
.guide-article ul,
.guide-article ol { display: grid; gap: 9px; margin: 16px 0 0; padding-left: 22px; }
.guide-article a:not(.guide-button) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide-step-list { display: grid; gap: 12px; margin-top: 20px; counter-reset: guide-step; }
.guide-step {
  position: relative;
  padding: 20px 20px 20px 58px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-solid);
}
.guide-step::before {
  position: absolute;
  left: 19px;
  top: 19px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  counter-increment: guide-step;
  content: counter(guide-step);
  font-size: 11px;
  font-weight: 760;
}
.guide-step strong { display: block; margin-bottom: 5px; font-size: 14px; }
.guide-step p { font-size: 14px; line-height: 1.65; }
.guide-callout {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid #ccd8f3;
  border-radius: 12px;
  background: var(--accent-soft);
}
.guide-callout strong { display: block; margin-bottom: 6px; color: var(--fg); font-size: 14px; }
.guide-callout p { font-size: 14px; line-height: 1.65; }
.guide-inline-code,
.guide-code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.guide-inline-code {
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--fg);
  font-size: .9em;
}
.guide-code {
  position: relative;
  margin-top: 18px;
  padding: 18px 52px 18px 18px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #171a21;
  color: #e8edf8;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
}
.guide-code code { font: inherit; color: inherit; white-space: pre; }
.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 34px;
  height: 30px;
  border: 1px solid #343b48;
  border-radius: 7px;
  background: #222733;
  color: #b9c2d2;
  cursor: pointer;
  font-size: 10px;
}
.client-grid,
.usage-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-top: 18px;
}
.client-card,
.usage-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-solid);
}
.client-card h3,
.usage-card h3 { margin: 0 0 8px; font-size: 17px; }
.client-card p,
.usage-card p { font-size: 14px; line-height: 1.65; }
.client-card img { width: 28px; height: 28px; object-fit: contain; margin-bottom: 14px; }

/* Download page intentionally follows a conventional software-download layout. */
.download-simple-header {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 0 42px;
  text-align: center;
}
.download-simple-header h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 730;
  letter-spacing: -.05em;
  line-height: 1.04;
}
.download-simple-header p {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.download-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
}
.download-row {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 112px;
  padding: 22px 4px;
}
.download-row + .download-row { border-top: 1px solid var(--border); }
.download-platform-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--muted);
}
.download-platform-icon svg { width: 22px; height: 22px; }
.download-platform-icon-linux svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-platform-copy h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.025em;
}
.download-platform-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.download-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.download-row-actions .guide-button { min-width: 126px; }
.download-secondary-link {
  color: var(--accent);
  font-size: 12px;
  font-weight: 680;
}
.download-secondary-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.download-command {
  width: min(500px, 47vw);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-muted) 78%, white);
}
.download-command-head {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
}
.download-command code {
  display: block;
  padding: 15px 16px 14px;
  color: var(--fg);
  font: 11px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.download-command-copy {
  min-width: 42px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--surface-solid);
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}
.download-command-copy:hover { color: var(--fg); }
.download-command-foot {
  display: flex;
  justify-content: flex-end;
  padding: 0 14px 12px;
}

.download-source-note {
  max-width: 920px;
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  font-size: 11px;
}
.download-source-note a { color: var(--accent); font-weight: 650; }

.download-setup {
  max-width: 920px;
  margin: 66px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.download-setup h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -.04em;
}
.download-setup > p {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.download-setup-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  margin: 30px 0 28px;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  list-style: none;
  counter-reset: download-step;
}
.download-setup-list li {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: start;
  padding: 20px 24px;
  counter-increment: download-step;
}
.download-setup-list li:first-child { padding-left: 0; }
.download-setup-list li:last-child { padding-right: 0; }
.download-setup-list li + li { border-left: 1px solid var(--border); }
.download-setup-list li::before {
  width: 28px;
  height: 28px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  content: "0" counter(download-step);
  font-size: 10px;
  font-weight: 760;
}
.download-setup-list strong,
.download-setup-list span { grid-column: 2; display: block; }
.download-setup-list strong { padding-top: 2px; font-size: 14px; letter-spacing: -.01em; }
.download-setup-list span { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.download-setup-cta { min-width: 142px; justify-content: center; }

.guide-footer {
  width: var(--content);
  min-height: 132px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
}
.guide-footer p { margin: 0; color: var(--muted-2); font-size: 12px; }
.guide-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.guide-footer-links a { color: var(--muted); font-size: 12px; }
.guide-footer-links a:hover { color: var(--fg); }

@media (max-width: 700px) {
  :root { --content: min(100% - 32px, 1180px); }
  .guide-home { padding: 68px 0 80px; }
  .download-main { padding: 24px 0 64px; }
  .guide-hero { padding: 44px 0 50px; }
  .guide-hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .guide-hero > p { font-size: 16px; }
  .download-simple-header { padding: 28px 0 34px; text-align: left; }
  .download-simple-header h1 { font-size: 42px; }
  .download-simple-header p { margin-left: 0; }
  .download-row {
    grid-template-columns: 42px minmax(0,1fr);
    gap: 14px;
    padding: 20px 0;
  }
  .download-row-actions,
  .download-command { grid-column: 2; }
  .download-row-actions { align-items: flex-start; flex-direction: column; gap: 9px; }
  .download-row-actions .guide-button { min-width: 0; }
  .download-command { width: 100%; }
  .download-source-note { align-items: flex-start; flex-direction: column; gap: 7px; }
  .download-setup { margin-top: 48px; padding-top: 36px; }
  .download-setup h2 { font-size: 27px; }
  .download-setup-list { grid-template-columns: 1fr; }
  .download-setup-list li,
  .download-setup-list li:first-child,
  .download-setup-list li:last-child { padding: 17px 0; }
  .download-setup-list li + li { border-top: 1px solid var(--border); border-left: 0; }
  .guide-entry-grid,
  .client-grid,
  .usage-grid { grid-template-columns: 1fr; }
  .guide-entry { min-height: 196px; padding: 24px; }
  .guide-entry h2 { margin-top: 27px; }
  .guide-next { grid-template-columns: 1fr; }
  .guide-page { padding: 50px 0 80px; }
  .guide-page-heading { padding-bottom: 40px; }
  .guide-page-heading h1 { font-size: clamp(39px, 11vw, 52px); }
  .guide-page-heading p { font-size: 16px; }
  .guide-layout { padding-top: 32px; }
  .guide-article section + section { margin-top: 42px; padding-top: 40px; }
  .guide-step { padding-left: 54px; }
  .guide-footer { padding: 28px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  .guide-callout { border-color: #344568; }
  .download-command { background: #1b1f26; }
  .download-command-head { border-color: #333a45; }
  .download-command-copy { border-color: #3d4654; background: #242a33; }
}
