/* FileLister website: one shared stylesheet.
   Calm, lots of white space, one accent color (Primer blue, like the app's AtlantaFX theme).
   No web fonts and no external files: everything the page needs is on this server. */

:root {
  --accent: #0969da;         /* Primer accent (same blue as the app) */
  --accent-hover: #0550ae;
  --accent-soft: #ddf4ff;
  --text: #1f2328;
  --muted: #59636e;
  --border: #d1d9e0;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --warn-bg: #fff8c5;
  --warn-border: #d4a72c;
  --radius: 10px;
  --max: 1100px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.125rem; color: var(--text); text-decoration: none;
}
.brand img { width: 28px; height: 28px; }
.brand:hover { color: var(--text); }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 600;
  padding: .15rem .55rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-hover);
  letter-spacing: .02em; vertical-align: middle;
}
.site-nav { display: flex; gap: 1.25rem; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 640px) { .site-nav { display: none; } }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-intro { max-width: 640px; margin-bottom: 2.5rem; color: var(--muted); }
.section-intro h2 { color: var(--text); }
@media (max-width: 640px) { section { padding: 3.5rem 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 1.0625rem;
  padding: .85rem 1.5rem; border-radius: 8px;
  text-decoration: none; border: 1px solid transparent;
  transition: background-color .15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn .icon { width: 20px; height: 20px; }

/* Feather-style line icons (inline SVG) */
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 5rem; }
.hero .container {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3.5rem; align-items: center;
}
.lead { font-size: 1.2rem; color: var(--muted); }
.hero .lead { max-width: 34ch; }
.hero .badge { margin-bottom: 1.25rem; }
.download-info { margin-top: .9rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero { padding-top: 3rem; }
  .hero .container { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Screenshots and placeholders ---------- */
.shot {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(31, 35, 40, .10), 0 2px 6px rgba(31, 35, 40, .06);
  background: var(--bg);
}
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; padding: 1.5rem; text-align: center;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(9, 105, 218, .04) 14px 28px),
    var(--bg-soft);
  color: var(--muted); font-size: .9rem;
}
.placeholder strong { color: var(--text); font-size: 1rem; }
.placeholder code { font-size: .8rem; }
.placeholder.small { aspect-ratio: 4 / 3; box-shadow: none; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700;
}
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Cards (features, audience) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.card .icon { color: var(--accent); margin-bottom: .85rem; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards.two { grid-template-columns: 1fr; } }

.coming-soon {
  margin-top: 1.25rem; display: flex; gap: 1rem; align-items: center;
  padding: 1.1rem 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--muted); background: var(--bg);
}
.coming-soon .icon { color: var(--muted); }
.coming-soon p { margin: 0; font-size: 1rem; }
.coming-soon strong { color: var(--text); }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 600; margin-left: .4rem;
  padding: .1rem .5rem; border-radius: 999px; background: #eff2f5; color: var(--muted);
  vertical-align: middle;
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--border); padding: 1.1rem 0;
}
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.0625rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 0 0; color: var(--muted); }

/* ---------- Notes / boxes ---------- */
.note {
  border: 1px solid var(--warn-border); background: var(--warn-bg);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0;
}
.note h2, .note h3,
.page .note h2 { margin-top: 0; font-size: 1.2rem; }
.note p:last-child { margin-bottom: 0; }

.placeholder-banner {
  background: #ffebe9; border: 1px solid #ff8182; color: #82071e;
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; font-weight: 600;
}

/* ---------- Thanks page ---------- */
.install-steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 2.5rem; counter-reset: step; }
.install-steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center;
}
.install-steps h3::before {
  content: counter(step) ". ";
  color: var(--accent);
}
.install-steps p { color: var(--muted); margin: 0; }
@media (max-width: 700px) { .install-steps > li { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Simple text pages (changelog, legal) ---------- */
.page { padding: 3.5rem 0 5rem; }
.page h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.page h3 { margin-top: 1.5rem; }
.page ul { padding-left: 1.25rem; }
.page li { margin-bottom: .4rem; }
.muted { color: var(--muted); }
.release-date { font-weight: 400; color: var(--muted); font-size: 1rem; margin-left: .5rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); padding: 2.5rem 0; font-size: .95rem; color: var(--muted);
}
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
