/* Sustain landing page
   Self-contained, zero-JS, light/dark aware. Accent drawn from the logo's
   teal/cyan. Designed to feel native to a GNOME/Adwaita desktop. */

:root {
  --bg:        #fbfbfc;
  --surface:   #ffffff;
  --surface-2: #f3f4f6;
  --text:      #1b1d21;
  --muted:     #5b616c;
  --border:    #e4e6ea;
  --accent:    #0e8f8a;
  --accent-2:  #0b736f;
  --accent-fg: #ffffff;
  --nope:      #b23b3b;
  --shadow:    0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.07);
  --radius:    14px;
  --maxw:      1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #15171b;
    --surface:   #1d2024;
    --surface-2: #24272d;
    --text:      #eceef1;
    --muted:     #a3a9b3;
    --border:    #2d3138;
    --accent:    #3ec9c2;
    --accent-2:  #5ad6cf;
    --accent-fg: #0c1416;
    --nope:      #e98a8a;
    --shadow:    0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, "Cantarell", "Inter", "Segoe UI", -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

code {
  font-family: ui-monospace, "JetBrains Mono", "DejaVu Sans Mono", monospace;
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
}
pre code { background: none; padding: 0; }

.muted { color: var(--muted); font-weight: 400; }

/* <picture> is only a webp/png format-switching wrapper; collapse its box so
   the inner <img> lays out exactly as it would unwrapped — width:100% keeps
   resolving against the figure, and the brand logo stays a flex item. */
picture { display: contents; }

/* ───────────────── Header ───────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.brand img { border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.6rem); }
.site-nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav .nav-cta {
  color: var(--accent-fg);
  background: var(--accent);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--accent-2); }

/* ───────────────── Layout ───────────────── */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section + section { border-top: 1px solid var(--border); }

h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0 0 0.4rem; }
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0 0 2rem; }

/* ───────────────── Hero ───────────────── */
.hero { text-align: center; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.eyebrow {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  margin: 0 0 1rem;
}
.asterisk {
  color: var(--accent);
  font-weight: 700;
}
.hero h1 .asterisk {
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 0.05em;
}
.h1-aside {
  max-width: 46ch;
  margin: -0.4rem auto 1.5rem;
  color: var(--muted);
  font-style: italic;
  font-size: 1rem;
}
.h1-aside .asterisk { font-style: normal; }
.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto 1.6rem;
}

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0 auto 2rem;
}
.trust-strip li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
}
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }

.hero-shot { margin: 0; }
.hero-shots { display: grid; gap: 1rem; }
.hero-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ───────────────── No catch ───────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}
.nope {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-weight: 600;
}
.nope span { color: var(--nope); font-weight: 700; }
.why-tail { color: var(--muted); max-width: 60ch; }

.personal {
  margin: 2.2rem 0 0;
  padding: 1.6rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-size: 1.12rem;
}
.personal p { margin: 0 0 0.9rem; }
.personal p:last-of-type { margin-bottom: 0; }
.personal footer { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }

/* ───────────────── Migrate ───────────────── */
.migrate-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.card-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  color: var(--text);
}
.card-link:hover { border-color: var(--accent); text-decoration: none; }
.card-link strong { color: var(--accent-2); font-size: 1.05rem; }
.card-link span { color: var(--muted); }

/* ───────────────── Features ───────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.feature-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.feature-grid h3 { margin: 0 0 0.45rem; font-size: 1.12rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.feature-standout {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

/* ───────────────── What you don't get ───────────────── */
.limit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.limit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.limit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0 0 0.45rem;
}
.limit-head h3 { margin: 0; font-size: 1.12rem; }
.limit p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Status chip: neutral by default (a "maybe"); red = never. */
.tag {
  flex: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface-2);
}
.tag--no {
  color: var(--nope);
  border-color: color-mix(in srgb, var(--nope) 45%, var(--border));
  background: color-mix(in srgb, var(--nope) 12%, transparent);
}

/* ───────────────── Screenshots ───────────────── */
.shot { margin: 0 0 1.6rem; }
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.shot figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
.shot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.shot--small { margin-bottom: 0; }
/* A modal-dialog screenshot (e.g. Consolidate): not a full window, so cap its
   width and centre it rather than blowing it up across the column. */
.shot--dialog img { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ───────────────── Install ───────────────── */
.install-block { margin-bottom: 2rem; }
.install-block h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.install-block p { color: var(--muted); margin: 0 0 0.7rem; }

/* ───────────────── Footer ───────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 4vw, 2rem) 3.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { margin: 0 0 0.6rem; }
.site-footer .links a { margin: 0; }
.disclaimer { font-size: 0.85rem; max-width: 70ch; }

/* ───────────────── Motion ───────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
