/* ===================================================================
   SlothArchiver — info site
   Plain CSS, no build step. Dark, calm palette; light mode via
   prefers-color-scheme since this is a static page with no theme
   toggle of its own.
=================================================================== */

:root {
  --bg: #10120f;
  --bg-alt: #15180f;
  --panel: #191c17;
  --border: #2a2e24;
  --text: #eef0e6;
  --text-dim: #b7bca9;
  --text-faint: #7d8172;
  --accent: #9ad24a;
  --accent-strong: #b8e368;
  --accent-ink: #10120f;
  --yes: #9ad24a;
  --no: #e08a5e;
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 14px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf9f4;
    --bg-alt: #f2f1e8;
    --panel: #ffffff;
    --border: #e2e0d2;
    --text: #1b1d16;
    --text-dim: #4d5142;
    --text-faint: #82866f;
    --accent: #5f8f22;
    --accent-strong: #4c7519;
    --accent-ink: #ffffff;
    --no: #b25a34;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 760px; }
.wrap-wide { max-width: 1440px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand-mark { width: 32px; height: auto; display: block; }

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-dim);
}
.site-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 4px 24px 18px;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  padding: 10px 4px;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav.open { display: flex; }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  #nav-download { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-faint); }

.btn-small { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 520px;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-logo {
  width: 132px;
  height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 10px 24px color-mix(in srgb, var(--accent) 30%, transparent));
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-badges {
  list-style: none;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.hero-badges li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  max-width: 700px;
}

.section-lede {
  color: var(--text-dim);
  max-width: 700px;
  font-size: 1.02rem;
  margin: 0 0 40px;
}

/* ---------- Compare table ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.92rem;
}

.compare th,
.compare td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.compare thead th {
  color: var(--text-faint);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.compare tbody th {
  text-align: left;
  font-weight: 600;
  white-space: normal;
  color: var(--text);
}

.compare tbody tr:last-child td,
.compare tbody tr:last-child th {
  border-bottom: none;
}

.compare .col-us {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.compare thead .col-us { color: var(--accent); }

.compare .yes { color: var(--yes); font-weight: 700; }
.compare .no { color: var(--no); }
.compare .muted { color: var(--text-faint); }

.table-note {
  margin-top: 20px;
  color: var(--text-faint);
  font-size: 0.92rem;
  max-width: 700px;
}

/* ---------- Grids / cards ---------- */

.grid {
  display: grid;
  gap: 18px;
}

.features-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 940px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-icon { font-size: 1.6rem; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Demos ---------- */
/* A stacked, alternating "zigzag" layout rather than a repeating card
   grid -- each demo gets most of the section's width, and swapping which
   side the media sits on every other row breaks up the vertical scroll
   instead of reading as a rigid stack of identical boxes. Each row is
   still its own bordered/panelled card, though -- without a visible
   boundary around media+copy, a title sitting in the gap between two
   rows read as ambiguous about which video it belonged to. */

.demos-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 8px;
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 36px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.35);
}
.demo-row:nth-child(even) {
  flex-direction: row-reverse;
}
/* Small alternating vertical offset -- enough to read as a staggered
   rhythm while scrolling, subtle enough not to fight the copy's own
   line-up with its media. */
.demo-row:nth-child(even) { transform: translateY(28px); }

/* Media is the point of a demo -- it grows to fill essentially all of
   the row, while .demo-copy stays a fixed, comfortably-narrow reading
   width instead of splitting the row in half with mostly-empty text. */
.demo-media {
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 1580 / 857;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.demo-media img,
.demo-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--bg);
}

.demo-copy {
  flex: 0 0 260px;
}
.demo-copy h3 { margin: 0 0 10px; font-size: 1.35rem; letter-spacing: -0.01em; }
.demo-copy p { margin: 0; color: var(--text-dim); font-size: 1rem; }

@media (max-width: 1100px) {
  .demo-copy { flex-basis: 220px; }
}

@media (max-width: 860px) {
  .demos-list { gap: 32px; }
  .demo-row {
    padding: 20px;
  }
  .demo-row,
  .demo-row:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    transform: none;
  }
  .demo-copy { flex: none; }
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 700;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 400;
}
.faq-item[open] summary::after { content: '\2212'; }

.faq-body {
  padding: 0 0 18px;
  color: var(--text-dim);
  font-size: 0.94rem;
}
.faq-body p { margin: 0 0 10px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.faq-more {
  color: var(--text-faint);
  font-size: 0.9rem;
}
.faq-more a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Download ---------- */

.download-section { text-align: center; }
.download-inner { max-width: 720px; }
.download-section .section-lede { margin-left: auto; margin-right: auto; }
.download-section .kicker { display: block; }
.download-section .section-lede a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 20px;
}
@media (max-width: 640px) { .download-grid { grid-template-columns: 1fr; } }

.download-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 18px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.download-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.download-icon { display: block; font-size: 2rem; margin-bottom: 10px; }
.download-os { display: block; font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; }
.download-sub { display: block; color: var(--text-faint); font-size: 0.85rem; }

.download-note {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--text); }

.footer-note {
  width: 100%;
  color: var(--text-faint);
  font-size: 0.8rem;
  margin: 0;
}
