/* HiZero download site — one small stylesheet, no framework, no web fonts.
   The palette matches the docs site (#0d9488 teal) so the two read as one product. */

:root {
  color-scheme: light dark;
  --bg: #f6f8f8;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --text: #15211f;
  --muted: #5e6f6c;
  --line: #dde6e4;
  --brand: #0d9488;
  --brand-strong: #0b7f75;
  --brand-soft: #e3f5f2;
  --button-bg: var(--brand);
  --button-bg-hover: var(--brand-strong);
  --button-text: #ffffff;
  --danger-soft: #fdf0ee;
  --code-bg: #eef2f1;
  --win: #0f6cbd;
  --mac: #4b5563;
  --linux: #3b4a48;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14, 32, 30, 0.04), 0 14px 40px rgba(14, 32, 30, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC",
    "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101615;
    --surface: #172120;
    --surface-2: #1d2827;
    --text: #e8efed;
    --muted: #9aadaa;
    --line: #293735;
    --brand: #2dd4bf;
    --brand-strong: #5eead4;
    --brand-soft: #12302c;
    /* A light teal button needs dark ink; white on #2dd4bf is unreadable. */
    --button-bg: #2dd4bf;
    --button-bg-hover: #5eead4;
    --button-text: #06201d;
    --danger-soft: #2a1b19;
    --code-bg: #1f2a29;
    --win: #4cc2ff;
    --mac: #c3cdd1;
    --linux: #cfe0dc;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { display: block; border-radius: 7px; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.93rem;
  padding: 4px 0;
}
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-external { display: inline-flex; color: var(--muted); }
.nav-external .icon-external { width: 10px; height: 10px; }

/* ------------------------------------------------------------------ hero */
main { display: block; }

.hero { padding: 72px 0 40px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.14rem);
}

.latest-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.94rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
}
.pill strong { font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ------------------------------------------------------------- platforms */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 18px 0 10px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card.is-recommended {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.card-head { display: flex; align-items: center; gap: 12px; }

.platform-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--surface-2);
}
.platform-icon svg { width: 27px; height: 27px; fill: currentColor; }
.card[data-platform="windows"] .platform-icon { color: var(--win); }
.card[data-platform="macos"] .platform-icon { color: var(--mac); }
.card[data-platform="linux"] .platform-icon { color: var(--linux); }

.card h2 { margin: 0; font-size: 1.18rem; letter-spacing: -0.01em; }
.requirement { margin: 0; color: var(--muted); font-size: 0.9rem; }

.recommend {
  display: none;
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.is-recommended .recommend { display: inline-block; }

.card-body { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--button-bg);
  color: var(--button-text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.button:hover { background: var(--button-bg-hover); text-decoration: none; }

.button[aria-disabled="true"],
.button.disabled {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}
.button.disabled:hover { background: var(--surface-2); }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 0.84rem;
}
.card-version { font-variant-numeric: tabular-nums; }

.icon { display: block; flex: none; }
.button .icon-download { width: 15px; height: 15px; }

summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

.checksum { margin: 0; color: var(--muted); font-size: 0.8rem; }
.checksum summary { cursor: pointer; }
.checksum summary,
.version-jump > summary { display: flex; align-items: center; gap: 6px; }
.checksum summary .icon-disclosure,
.version-jump > summary .icon-disclosure {
  width: 11px;
  height: 11px;
  transition: transform .18s ease;
}
details[open] > summary .icon-disclosure { transform: rotate(90deg); }
.checksum code {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------- notices */
.notice {
  margin: 26px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
}
.notice strong { color: var(--text); }
.notice[data-live-update] { border-left-color: #f59e0b; }

/* --------------------------------------------------------------- sections */
.section { padding: 48px 0; }
.section h2 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -0.02em; }
.section > .wrap > p { margin: 0 0 22px; color: var(--muted); }

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.quick-links a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
}
.quick-links a:hover { border-color: var(--brand); text-decoration: none; }
.quick-links strong { display: block; font-size: 0.98rem; }
.quick-links span { color: var(--muted); font-size: 0.86rem; }

/* ----------------------------------------------------------------- table */
.page-head { padding: 56px 0 20px; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.03em; }
.page-head p { max-width: 68ch; margin: 0; color: var(--muted); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
thead th {
  position: sticky;
  top: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}
tbody th, tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.cell-download { display: flex; flex-direction: column; gap: 2px; }
.cell-download a { font-weight: 600; }
.cell-download span { color: var(--muted); font-size: 0.78rem; }
.unavailable { color: var(--muted); }
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: 1px;
}
.scope {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: 1px;
}

/* ------------------------------------------------------------- changelog */
.changelog-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 34px;
  padding: 0;
  list-style: none;
}
.changelog-index a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.changelog-index a:hover { border-color: var(--brand); color: var(--text); text-decoration: none; }

.release {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.release:first-of-type { border-top: 0; padding-top: 0; }
.release h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0;
  font-size: 1.34rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.release h2 .release-title { color: var(--muted); font-size: 1rem; font-weight: 500; }
.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.release h3 {
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.release ul { margin: 0; padding-left: 20px; }
.release li { margin: 7px 0; }
.release li strong { font-weight: 650; }
.release li p { margin: 2px 0 0; color: var(--muted); font-size: 0.94rem; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 32px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-note { max-width: 46ch; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 720px) {
  .wrap { width: min(1080px, 100% - 28px); }
  .header-inner { min-height: 58px; }
  .nav { gap: 2px 12px; }
  .nav a { font-size: 0.86rem; }
  .hero { padding: 44px 0 28px; }
  .platforms { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  thead th, tbody th, tbody td { padding: 11px 12px; }
}


/* 2026-10-30: quiet, download-first presentation. Content and update sources stay unchanged. */
:root {
  --bg: #fafafa;
  --surface: #fff;
  --surface-2: #f5f6f7;
  --text: #17191d;
  --muted: #717781;
  --line: #e7e9ed;
  --brand: #216ce8;
  --brand-strong: #1459c6;
  --brand-soft: #edf4ff;
  --button-bg: #1b1d21;
  --button-bg-hover: #33363b;
  --button-text: #fff;
  --code-bg: #f3f4f6;
  --radius: 22px;
  --shadow: 0 7px 24px rgba(25, 28, 36, .025);
}
body { line-height: 1.55; letter-spacing: -.008em; }
.wrap { width: min(1120px, 100% - 64px); }
.site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.header-inner { min-height: 68px; }
.brand { gap: 9px; font-size: 1.08rem; letter-spacing: -.035em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.nav { gap: 4px 28px; }
.nav a { font-size: .86rem; }
.nav a[aria-current="page"] { font-weight: 600; }
.hero { padding: 92px 0 66px; text-align: center; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: .74rem; font-weight: 650; letter-spacing: .15em; }
.eyebrow::before { display: none; }
.hero h1 { font-size: clamp(3.1rem, 7vw, 5.2rem); line-height: 1.07; letter-spacing: -.06em; font-weight: 760; }
.lede { max-width: none; margin: 22px 0 0; font-size: 1.07rem; color: var(--muted); }
.latest-line { justify-content: center; margin: 29px 0 0; gap: 12px; font-size: .81rem; }
.pill { padding: 5px 12px; border-color: var(--line); background: transparent; color: var(--muted); font-size: .81rem; }
.pill strong { color: var(--text); font-weight: 650; }
.dot { width: 6px; height: 6px; background: #319f6a; }
.download-area { padding: 0 0 8px; }
.platform-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.platform-heading h2 { margin: 0; font-size: 1.27rem; letter-spacing: -.025em; font-weight: 690; }
.platform-heading span { color: var(--muted); font-size: .82rem; }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; }
.card { min-width: 0; padding: 28px; gap: 0; box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius); }
.card.is-recommended { border-color: #bdcce4; box-shadow: var(--shadow); }
.card-head { min-height: 51px; justify-content: space-between; align-items: flex-start; }
.platform-icon { width: 51px; height: 51px; border-radius: 14px; background: var(--surface-2); }
.platform-icon svg { width: 29px; height: 29px; }
.card[data-platform="windows"] .platform-icon { color: #1674e9; }
.card[data-platform="macos"] .platform-icon { color: var(--text); }
.card[data-platform="linux"] .platform-icon { color: var(--text); }
.recommend { margin: 0; padding: 4px 8px; border-radius: 6px; font-size: .7rem; font-weight: 570; }
.card-description { margin: 25px 0 28px; min-height: 80px; }
.card-description h3 { margin: 0; font-size: 1.55rem; letter-spacing: -.045em; font-weight: 700; }
.requirement { margin-top: 7px; font-size: .86rem; line-height: 1.5; }
.card-body { margin-top: auto; gap: 12px; }
.button { min-height: 47px; justify-content: space-between; border-radius: 11px; font-size: .9rem; font-weight: 640; padding: 11px 16px; transition: background-color .18s ease, transform .18s ease; }
.button:hover { text-decoration: none; }
.button:not(.disabled):hover { transform: translateY(-1px); }
.button.disabled { justify-content: center; background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.pending-hint { min-height: 19px; margin: 0; text-align: center; color: var(--muted); font-size: .75rem; }
.card-meta { font-size: .77rem; gap: 4px 8px; }
.card-version { font-weight: 600; color: var(--text); }
.checksum { font-size: .75rem; }
.checksum summary { width: fit-content; }
.notice { margin-top: 22px; padding: 12px 16px; border-left: none; background: var(--surface-2); }
.live-update { margin: 18px 0 0; font-size: .82rem; color: var(--muted); }
.resource-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin: 47px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.resource-links a { color: var(--muted); font-size: .89rem; }
.resource-links a:hover { color: var(--text); }
.resource-links a span { display: inline-flex; margin-left: 5px; }
.resource-links a .icon-external { width: 12px; height: 12px; }
.page-head { padding-top: 72px; padding-bottom: 30px; }
.page-head h1 { font-size: clamp(2.4rem, 4.5vw, 3.35rem); letter-spacing: -.055em; }
.page-head p { max-width: 68ch; font-size: .97rem; }
.table-scroll { border-radius: 16px; }
table { font-size: .9rem; }
thead th { background: var(--surface-2); }
tbody th, tbody td { padding-top: 16px; padding-bottom: 16px; }
.table-note { font-size: .84rem; color: var(--muted); }
.version-jump { margin: 2px 0 22px; }
.version-jump > summary { color: var(--brand-strong); cursor: pointer; font-size: .9rem; width: fit-content; }
.changelog-index { margin: 16px 0 28px; }
.release { scroll-margin-top: 100px; }
.site-footer { margin-top: 92px; padding: 30px 0; font-size: .78rem; }
.footer-inner { align-items: center; gap: 16px; }
.footer-links { gap: 10px 22px; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #121416; --surface: #1b1e22; --surface-2: #25292e; --text: #f1f3f6; --muted: #a7adb6; --line: #363b42; --brand: #8ab4ff; --brand-strong: #a8c8ff; --brand-soft: #27374e; --button-bg: #f1f3f6; --button-bg-hover: #d8dce2; --button-text: #17191d; --code-bg: #25292e; --shadow: none; }
  .card.is-recommended { border-color: #607494; }
  .dot { background: #60ce93; }
}
@media (max-width: 900px) {
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 60px; gap: 10px; align-items: center; }
  .brand { font-size: 1rem; }
  .brand img { width: 28px; height: 28px; }
  .nav { gap: 4px 12px; justify-content: flex-end; }
  .nav a { font-size: .77rem; }
  .nav a.external { display: none; }
  .hero { padding: 64px 0 53px; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .lede { font-size: .96rem; }
  .latest-line { margin-top: 23px; }
  .platforms { grid-template-columns: 1fr; gap: 13px; }
  .platform-heading { margin-bottom: 14px; }
  .card { padding: 24px; }
  .card-description { min-height: auto; margin: 19px 0 25px; }
  .resource-links { margin-top: 34px; gap: 10px 22px; }
  .page-head { padding-top: 48px; }
  .site-footer { margin-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:not(.disabled):hover { transform: none; }
}

/* On Linux, Tux identifies the platform and a small Arch glyph identifies its only supported distribution. */
.platform-logos { display: flex; align-items: center; gap: 8px; }
.arch-mark { width: 25px; height: 25px; display: grid; place-items: center; color: #1793d1; }
.arch-mark svg { width: 24px; height: 24px; fill: currentColor; }
