/* humbleviewer.com: product pages. Same mint and forest palette as docs/style.css.
   No external fonts or scripts; the server's CSP is default-src 'self'. */
:root {
  --mint-500: #3eb489;
  --mint-600: #2e9a73;
  --mint-700: #237a5b;
  --mint-100: #ddf5ea;
  --mint-50: #ecf8f2;
  --forest: #17332a;
  --forest-2: #1f4238;
  --forest-text: #cfe7dd;
  --forest-muted: #8fc9b0;
  --bg: #f3fbf7;
  --surface: #ffffff;
  --text: #1b2622;
  --muted: #5a6b64;
  --line: #d8e8e0;
  --code-bg: #eef7f2;
  --warn-bg: #fff6df;
  --warn-line: #e0a526;
  --on-mint: #ffffff;
  --display: "Segoe UI Variable Display", "SF Pro Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mint-100: #1d3a30;
    --mint-50: #16291f;
    --mint-700: #7fd6b3;
    --mint-600: #5ccaa0;
    --forest: #0d1a15;
    --forest-2: #15271f;
    --bg: #12211c;
    --surface: #182b24;
    --text: #e7f3ee;
    --muted: #9bb0a7;
    --line: #294238;
    --code-bg: #10201a;
    --warn-bg: #2e2813;
    --on-mint: #0d1a15;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 var(--body);
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}
img { max-width: 100%; }
a { color: var(--mint-600); text-underline-offset: 2px; }
a:hover { color: var(--mint-700); }
a:focus-visible { outline: 2px solid var(--mint-500); outline-offset: 2px; border-radius: 4px; }
code, pre { font-family: var(--mono); font-size: 0.85em; }
code { background: var(--code-bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: 1.85rem; margin: 0 0 18px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
p { margin: 0 0 14px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header { background: var(--forest); color: var(--forest-text); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.logo:hover { color: #fff; }
.logo img { width: 34px; height: 34px; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a { color: var(--forest-text); text-decoration: none; padding: 7px 12px; border-radius: 8px; font-size: 0.95rem; }
.site-nav a:hover { background: var(--forest-2); color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--mint-500); border-radius: 0; }
.site-nav .nav-cta { background: var(--mint-500); color: #fff; font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--mint-600); color: #fff; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 10px; border: 2px solid transparent; text-align: center;
}
.btn-primary { background: var(--mint-500); color: #fff; }
.btn-primary:hover { background: var(--mint-600); color: #fff; }
.btn-secondary { border-color: var(--mint-500); color: var(--mint-600); background: transparent; }
.btn-secondary:hover { background: var(--mint-100); color: var(--mint-700); }
.btn-ghost { color: var(--mint-600); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: var(--mint-700); text-decoration: underline; }

/* ---------- hero ---------- */
.hero { background: var(--forest); color: var(--forest-text); padding: 56px 0 72px; }
.hero a:not(.btn) { color: #9fe3c6; }
.hero a:not(.btn):hover { color: #fff; }
.hero .btn-secondary { color: #fff; border-color: var(--mint-500); }
.hero .btn-secondary:hover { background: var(--forest-2); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hero h1 {
  color: #fff; margin: 0 0 20px;
  font-size: clamp(2.4rem, 6.4vw, 4.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02;
}
.h1-tail { display: block; margin-top: 10px; font-size: 0.5em; font-weight: 500; letter-spacing: -0.01em; color: var(--forest-muted); line-height: 1.2; }
.hero-lead { font-size: 1.2rem; line-height: 1.55; max-width: 36em; color: var(--forest-text); }
.hero-small { font-size: 0.95rem; color: var(--forest-muted); max-width: 40em; }

/* The signature: the path a session takes. */
.path { margin: 0; padding: 26px 24px 22px; border: 1px solid var(--forest-2); border-radius: 16px; background: rgba(0, 0, 0, 0.14); }
.path-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 0; }
.node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.node b { color: #fff; font-size: 0.98rem; font-family: var(--display); }
.node-note { font-size: 0.8rem; color: var(--forest-muted); line-height: 1.3; max-width: 11em; }
.screen {
  position: relative; display: block; width: 76px; height: 54px; margin-bottom: 8px;
  border: 2px solid var(--mint-500); border-radius: 7px; background: var(--forest-2);
}
.screen::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 26px; height: 8px; margin-left: -13px; border-radius: 0 0 4px 4px; background: var(--mint-500); }
.screen-bar { position: absolute; left: 6px; right: 6px; top: 6px; height: 6px; border-radius: 3px; background: var(--mint-700); }
.relay-box {
  display: block; width: 54px; height: 54px; margin-bottom: 8px; border-radius: 50%;
  border: 2px dashed var(--forest-muted); background: transparent;
}
.wire { position: relative; height: 54px; display: flex; align-items: center; justify-content: center; min-width: 0; }
.wire::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; border-top: 2px solid var(--mint-500); }
.wire span {
  position: relative; font-family: var(--mono); font-size: 0.7rem; color: var(--mint-100); background: var(--forest);
  padding: 2px 6px; border-radius: 4px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.path figcaption { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--forest-2); font-size: 0.92rem; color: var(--forest-text); line-height: 1.5; }

@media (prefers-color-scheme: dark) {
  .wire span { color: #9fe3c6; }
}

/* ---------- content bands ---------- */
.band { padding: 64px 0; }
.band-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { max-width: 42em; color: var(--muted); font-size: 1.08rem; }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--mint-500); }
.way { padding: 20px 26px 4px 0; }
.way + .way { padding-left: 26px; border-left: 1px solid var(--line); }
.way p { color: var(--muted); }

.feature-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 11px; height: 6px;
  border-left: 2px solid var(--mint-500); border-bottom: 2px solid var(--mint-500); transform: rotate(-45deg);
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.split > div > :last-child { margin-bottom: 0; }
.console {
  margin: 0; background: var(--forest); color: #e7f3ee; border-radius: 12px; padding: 22px 22px;
  font-size: 0.9rem; line-height: 1.8; overflow-x: auto;
}
.console code { background: none; border: none; padding: 0; overflow-wrap: normal; font-size: 1em; }
.console .prompt { color: var(--mint-500); user-select: none; }
.support-cta { display: flex; justify-content: flex-end; }

.server-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.server-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.server-list b { color: var(--mint-600); }

.security-list { max-width: 46em; padding-left: 1.2em; margin: 0 0 18px; }
.security-list li { margin-bottom: 8px; }

.closing { padding: 56px 0; background: var(--mint-100); }
.closing-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; }
.closing h2 { margin: 0; }
.closing .actions { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); color: var(--forest-muted); font-size: 0.92rem; padding: 26px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 28px; }
.footer-brand { margin: 0; display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 22px; height: 22px; flex: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { color: var(--forest-text); }
.site-footer a:hover { color: #fff; }

/* ---------- downloads page ---------- */
.page-head { background: var(--forest); color: var(--forest-text); padding: 44px 0 40px; }
.page-head h1 { color: #fff; margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; }
.page-head p { max-width: 44em; margin: 0 0 8px; }
.page-head a { color: #9fe3c6; }
.page-head a:hover { color: #fff; }
.version { display: inline-block; margin: 6px 0 10px; padding: 3px 12px; border-radius: 999px; background: var(--mint-500); color: #fff; font-weight: 600; font-size: 0.95rem; }

.toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--forest-2); color: var(--forest-text); text-decoration: none; font-size: 0.92rem; }
.toc a:hover { color: #fff; }

.dl-section { padding: 48px 0 8px; }
.dl-section + .dl-section { border-top: 1px solid var(--line); }
.dl-section > .wrap > h2 { margin-bottom: 8px; }
.dl-intro { max-width: 46em; color: var(--muted); }
.platform { margin: 28px 0 0; }
.platform h3 { font-size: 1.2rem; margin-bottom: 4px; }
.platform-note { color: var(--muted); font-size: 0.95rem; max-width: 46em; }
.soon { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--mint-100); color: var(--mint-700); font-weight: 600; font-size: 0.95rem; margin: 6px 0 0; }

.files { list-style: none; padding: 0; margin: 12px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.file:last-child { border-bottom: none; }
.file-label { font-weight: 600; }
.file-label a { text-decoration: none; }
.file-label a:hover { text-decoration: underline; }
.badge { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--mint-100); color: var(--mint-700); font-size: 0.78rem; font-weight: 600; vertical-align: 2px; }
.file-size { color: var(--muted); font-size: 0.92rem; white-space: nowrap; text-align: right; }
.file-detail { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; color: var(--muted); }
.file-detail code { font-size: 0.95em; }
.file-hash code { background: none; border: none; padding: 0; color: var(--muted); word-break: break-all; }
.file-install code { color: var(--text); }

.cmd { margin: 12px 0 16px; background: var(--forest); color: #e7f3ee; border-radius: 10px; padding: 14px 18px; overflow-x: auto; font-size: 0.9rem; line-height: 1.7; }
.cmd code { background: none; border: none; padding: 0; overflow-wrap: normal; font-size: 1em; }

.note { border-left: 4px solid var(--mint-500); background: var(--mint-100); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 18px 0; max-width: 52em; }
.note > :last-child { margin-bottom: 0; }
.dl-foot { padding: 40px 0 64px; color: var(--muted); }

/* ---------- 404 and empty states ---------- */
.empty { padding: 72px 0 96px; }
.empty h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 12px; letter-spacing: -0.03em; }
.empty p { max-width: 40em; color: var(--muted); font-size: 1.1rem; }
.empty .actions { margin-top: 22px; }

/* ---------- narrow screens ---------- */
@media (max-width: 960px) {
  .feature-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  h2 { font-size: 1.55rem; }
  .hero { padding: 36px 0 48px; }
  .hero-grid { gap: 32px; }
  .band { padding: 44px 0; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way, .way + .way { padding: 18px 0 2px; border-left: none; }
  .way + .way { border-top: 1px solid var(--line); }
  .feature-cols, .split, .server-list { grid-template-columns: minmax(0, 1fr); }
  .feature-cols { gap: 20px; }
  .split { gap: 24px; }
  .support-cta { justify-content: flex-start; }
  .console code, .cmd code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .header-row { justify-content: center; }
  .site-nav { justify-content: center; }
  .site-nav a { padding: 6px 10px; }
  .file { grid-template-columns: minmax(0, 1fr); }
  .file-size { text-align: left; }
}
@media (max-width: 560px) {
  /* The session path turns vertical. */
  .path { padding: 20px 16px 18px; }
  .path-row { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .wire { height: 46px; width: 100%; margin: 6px 0; }
  .wire::before { left: 50%; right: auto; top: 4px; bottom: 4px; border-top: none; border-left: 2px solid var(--mint-500); }
  .actions .btn { flex: 1 1 100%; }
}
@media print {
  .site-header, .site-nav, .actions, .closing { display: none; }
  .hero, .page-head { background: none; color: #000; }
  .hero h1, .page-head h1 { color: #000; }
}
