/* Self-contained stylesheet: this page does not share CSS with the others. */
:root {
  /* lazyftp's own default dark theme (docs/themes/default.toml in the app). --line and --surface-2
     are not app tokens: --line is the app's border mixed into the page background, --surface-2 a step above bar_bg. */
  --bg: #1e1e1e;
  --surface: #282828;
  --surface-2: #323232;
  --line: color-mix(in srgb, #7a7f8c 40%, #1e1e1e);
  --emphasis: #f5f5f0;
  --primary: #d4d4d4;
  --muted: #9aa0ac;   /* the app's #8a8f9b, lifted to 4.5:1 on the cards */
  --accent: #5dcaa5;
  --success: #97c459;
  --error: #e8615f;
  --error-text: #f07876;
  --directory: #85b7eb;
  --marked: #efb050;
  --on-accent: #1e1e1e;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --code: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--emphasis); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: 40px; line-height: 1.1; margin-bottom: 40px; }
main { flex: 1; }
code, .code { font-family: var(--code); }


.wrap { max-width: 1184px; width: 100%; margin: 0 auto; padding: 0 48px; }
.section { padding-top: 32px; padding-bottom: 96px; }

/* header */
.site-header {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  max-width: 1184px; width: 100%; margin: 0 auto; padding: 24px 48px;
}
.brand { font-size: 24px; font-weight: 600; color: var(--emphasis); }
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  font-size: 14px; font-weight: 600; border-radius: 4px; color: var(--emphasis); background: var(--surface-2);
}
.btn:hover { text-decoration: none; filter: brightness(1.15); }
.btn-primary { background: var(--accent); color: var(--on-accent); }

/* code blocks */
.cmd {
  display: inline-flex; align-items: center; background: var(--surface);
  border-radius: 4px; padding: 14px 20px; font-size: 14px; color: var(--emphasis);
  max-width: 100%; gap: 16px;
}
.cmd-text { min-width: 0; overflow-x: auto; white-space: nowrap; }
.panel .code-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel .code-line .cmd-text { flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
.copy { flex: none; font: 600 12px var(--sans); padding: 4px 10px; border: 0; border-radius: 4px; background: var(--surface-2); color: var(--primary); cursor: pointer; }
.copy:hover { color: var(--emphasis); filter: brightness(1.2); }
.panel { background: var(--surface); border-radius: 6px; padding: 22px; }
.panel-title { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.panel .code-line { font-size: 14px; line-height: 1.7; color: var(--emphasis); white-space: pre-wrap; overflow-wrap: anywhere; }

/* footer */
.site-footer {
  max-width: 1184px; width: 100%; margin: 0 auto; padding: 24px 48px 28px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 720px) {
  .wrap, .site-header, .site-footer { padding-left: 24px; padding-right: 24px; }
  h2 { font-size: 32px; margin-bottom: 28px; }
}

/* ---------- lazyftp ---------- */
.lf-hero { padding-top: 80px; padding-bottom: 48px; }
.lf-hero h1 { font-size: clamp(34px, 6.2vw, 72px); line-height: 1.04; max-width: 900px; }
.lf-hero .lede { margin-top: 28px; font-size: 18px; line-height: 1.65; max-width: 640px; }
.lf-hero .dl { margin-top: 36px; }
.cmd-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 20px; }

.demo { padding-top: 24px; padding-bottom: 96px; }
.demo img { width: 100%; height: auto; display: block; border-radius: 8px; outline: 1px solid var(--line); outline-offset: -1px; background: var(--surface); }
.demo p { margin-top: 16px; font-size: 14px; color: var(--muted); }

.protocols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.protocols .panel { padding: 28px; }
.protocols b { display: block; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.protocols span { display: block; margin-top: 12px; font-size: 16px; line-height: 1.6; }

.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.flow { list-style: none; margin: 0; padding: 0; }
.flow > li { border-top: 2px solid var(--c); padding-top: 20px; }
.flow h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.01em; }
.flow p { font-size: 16px; line-height: 1.65; }
.flow b { color: var(--c); font-weight: 600; }

.key-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.key-group { background: var(--surface); border-radius: 6px; overflow: hidden; }
.key-group h3 { padding: 12px 18px; background: var(--surface-2); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--c); }
.key-group .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; font-size: 15px; }
.key-group .row b { color: var(--emphasis); font-weight: 500; text-align: right; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 48px; }
.features div { display: flex; gap: 14px; padding: 16px 0; font-size: 16px; color: var(--primary); }
.features .tick { flex: none; width: 16px; height: 16px; margin-top: 5px; color: var(--success); }

.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); }
.roadmap > div { padding: 22px 20px 0 0; position: relative; }
.roadmap > div::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.roadmap b { display: block; margin: 10px 0 8px; font-size: 16px; color: var(--emphasis); }
.roadmap span { font-size: 16px; line-height: 1.6; }

.lf-install { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.lf-install + .lf-install { margin-top: 20px; }
.flags .row { display: flex; gap: 16px; padding: 8px 0; font-size: 15px; }
.flags .row code { flex: 0 0 200px; font-size: 14px; color: var(--accent); }
.warn-panel { box-shadow: inset 3px 0 0 var(--error); }
.warn-panel .panel-title { color: var(--error-text); }
.warn-panel p { font-size: 16px; line-height: 1.65; margin-bottom: 14px; max-width: 65ch; }

/* direct downloads */
.dl .os { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.os label, .os .os-other { position: relative; cursor: pointer; }
.os input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.os label > span, .os .os-other > span {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid transparent; border-radius: 6px;
  background: var(--surface-2); color: var(--primary); font-weight: 600; font-size: 15px;
}
.os .os-other { color: inherit; }
.os .os-other:hover { text-decoration: none; }
.os svg { width: 22px; height: 22px; fill: currentColor; }
.os label:hover > span, .os .os-other:hover > span { color: var(--emphasis); }
.os input:checked + span { border-color: var(--accent); color: var(--emphasis); }
.os input:checked + span svg { color: var(--accent); }
.os input:focus-visible + span, .os .os-other:focus-visible > span { outline: 2px solid var(--accent); outline-offset: 3px; }
.dl-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.dl-row label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.dl-row select {
  min-width: 190px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--emphasis); font: inherit; font-size: 15px;
}
.dl-row select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dl-note { max-width: 75ch; margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--primary); overflow-wrap: anywhere; }
.dl-note b { color: var(--primary); font-weight: 600; }
.dl .os > * { flex: 1 1 160px; }
.os label > span, .os .os-other > span { justify-content: center; height: 100%; }
.dl-row label { flex: 1 1 220px; }
.dl-row select { width: 100%; min-width: 0; }
.dl-row .btn { flex: 0 0 auto; }

/* usage rows (command line, dialog, saved connections) */
.usage .row { display: flex; gap: 16px; padding: 8px 0; font-size: 16px; line-height: 1.55; }
.usage .row code { flex: 0 0 300px; font-size: 14px; color: var(--accent); overflow-wrap: anywhere; }
.usage .row span { color: var(--primary); }
.usage .row b, .dl-note b { font-weight: 600; }
.panel .code-line + p { margin-top: 14px; }
@media (max-width: 720px) {
  .usage .row, .flags .row { flex-direction: column; gap: 4px; }
  .usage .row code { flex-basis: auto; }
}
.lf-install .usage .row code { flex-basis: 120px; }

.theme-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; margin-top: 20px; }
.theme-shots figure { margin: 0; }
.theme-shots img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 6px; }
.theme-shots figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.theme-shots figcaption b { color: var(--primary); font-weight: 600; }

/* phones: a short header so the title and the download controls fit the first screen */
@media (max-width: 720px) {
  .site-header { padding-top: 14px; padding-bottom: 10px; }
  .site-nav a:not([href="#install"]):not([href$="/lazyftp"]) { display: none; }
  .lf-hero { padding-top: 32px; padding-bottom: 32px; }
    .lf-hero .lede { margin-top: 16px; font-size: 17px; }
  .lf-hero .dl { margin-top: 22px; }
  .dl .os { gap: 8px; margin-bottom: 14px; }
  .os label > span, .os .os-other > span { padding: 10px 12px; }
}

code { font-family: var(--code); }
.cmd code, .code-line code { white-space: inherit; }

/* motion: entrances and control feedback; the page is complete without it */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; animation: rise .7s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.btn, .copy, .os label > span { transition: filter .15s, background-color .15s, border-color .15s, transform .15s; }
.btn:active, .copy:active, .os label:active > span { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; } .js .reveal.in { animation: none; } * { transition: none !important; } }
@media print { .js .reveal { opacity: 1; } }
