/* ZFS-UI landing page -- no framework, no build step, no web fonts.
   The accent is the teal the app icon is drawn in (#30B0C7), with a lighter
   step for text on the dark surface so it clears contrast. */

:root {
  --bg: #0d1117;
  --bg-soft: #11161e;
  --bg-card: #141a23;
  --border: #262d38;
  --border-soft: #1d242e;
  --text: #e6edf3;
  --muted: #9aa7b3;
  --accent: #3ebed5;
  --accent-strong: #30b0c7;
  --accent-dim: #16343c;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.12; margin: 0 0 1.1rem; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); margin: 0 0 1.5rem; letter-spacing: -0.015em; }
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; letter-spacing: -0.005em; }
h3:first-child { margin-top: 0; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--accent-dim);
  color: #cfe9ef;
  padding: 0.1em 0.36em;
  border-radius: 4px;
  white-space: nowrap;
}

.muted { color: var(--muted); }
.lede { color: var(--muted); max-width: 60ch; margin-top: -0.6rem; }
.note { color: var(--muted); font-size: 0.9rem; }

/* header */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 6px; }
.site-header nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); font-size: 0.93rem; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

/* hero */

.hero { padding: 4.5rem 0 4rem; text-align: center; }
.hero-icon { margin: 0 auto 1.6rem; display: block; }
.hero .sub {
  max-width: 68ch; margin: 0 auto 2rem;
  font-size: 1.12rem; color: var(--muted);
}
.cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin: 1.8rem 0 0; color: var(--muted);
  font-size: 0.85rem; letter-spacing: 0.01em;
}
/* The size/requirements line sits closer to the button than the byline does. */
#download-note:not(:empty) { margin-top: 1.4rem; }
.hero-caveat {
  margin: 0.5rem auto 0; max-width: 52ch;
  color: var(--muted); font-size: 0.85rem;
}
.hero-caveat strong { color: var(--text); }

.btn {
  display: inline-block; padding: 0.65rem 1.4rem;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-weight: 600; font-size: 0.95rem;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: #04161b; }
.btn.primary:hover { filter: brightness(1.08); }

/* sections */

section {
  padding: 3.6rem 0;
  border-top: 1px solid var(--border-soft);
  /* The header is sticky, so an anchor jump would otherwise land with the
     section's heading hidden underneath it. */
  scroll-margin-top: 76px;
}
.hero { border-top: none; }
.features, .safety { background: var(--bg-soft); }

.grid { display: grid; gap: 1.1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.4rem; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}
.card h3 { margin-top: 0; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* screenshots */

.shot-grid { margin-top: 1.8rem; }
/* The seventh figure has no partner, and a table of text is worth the full width. */
.shot-grid figure.wide { grid-column: 1 / -1; }
.shots figure { margin: 0; }
.shots figure a { display: block; }
.shots figure a:hover img { border-color: var(--accent); }
.shots img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #000;
}
.shots figcaption {
  margin-top: 0.7rem; color: var(--muted); font-size: 0.9rem;
}
.shots figcaption strong { color: var(--text); }
.shots .note { margin-top: 1.8rem; }

/* lists */

ul.plain { list-style: none; margin: 0 0 1rem; padding: 0; }
ul.plain li {
  position: relative; padding-left: 1.2rem; margin-bottom: 0.45rem;
  color: var(--muted); font-size: 0.95rem;
}
ul.plain li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-strong);
}

.health p, .build p { color: var(--muted); }
.health h3, .build h3 { color: var(--text); }

/* footer */

.site-footer {
  padding: 2.4rem 0 3rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.9rem;
}
.site-footer p { margin: 0 0 0.5rem; }
.site-footer .muted { font-size: 0.82rem; }

/* narrow screens */

@media (max-width: 900px) {
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid.two, .grid.three { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 3rem 0 2.6rem; }
  section { padding: 2.6rem 0; }
  .site-header nav { gap: 0.9rem; }
  .site-header nav a { font-size: 0.86rem; }
  code { white-space: normal; }
}

/* A light-mode reader gets the same page on a light surface rather than a
   wall of black; the accent steps are the ones the app validated for each
   appearance, not a flip of the dark ones. */

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-soft: #f6f8fa;
    --bg-card: #ffffff;
    --border: #d8dee4;
    --border-soft: #e6eaef;
    --text: #1f2328;
    --muted: #5a636c;
    --accent: #0f7f93;
    --accent-strong: #30b0c7;
    --accent-dim: #e4f4f8;
  }
  code { color: #0b5664; }
  .site-header { background: rgba(255, 255, 255, 0.9); }
  .shots img { background: #fff; }
}
