/* Flamenet Files — site theme.
 *
 * Deliberately the same design system as Flamenet Messenger: violet primary
 * with an amber accent on white, committed to a single light look rather than
 * following the system scheme. Written fresh against those tokens rather than
 * copied from the Messenger repo, which is private while this one is public.
 *
 * Everything is self-hosted. The server sends `default-src 'self'`, so a CDN
 * font or an analytics tag would simply not load — the intended failure mode
 * rather than an inconvenience. Hence the system font stack.
 */

:root {
  --bg: #ffffff;
  --bg-2: #f7f8fc;
  --bg-3: #f1f3f9;
  --panel: #ffffff;
  --ink: #212529;
  --ink-2: #5b6472;
  --ink-3: #838b99;
  --border: #eaedf5;
  --border-2: #dde2ee;

  --brand: #5842bc;
  --brand-2: #7b63e8;
  --brand-ink: #ffffff;
  --accent: #fdb900;

  --grad: linear-gradient(115deg, var(--brand) 0%, var(--brand-2) 100%);
  --grad-soft: linear-gradient(115deg, rgba(88,66,188,.10), rgba(123,99,232,.08));

  --radius: 16px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow: 0 1px 2px rgba(13,18,32,.04), 0 12px 32px rgba(13,18,32,.07);
  --shadow-lg: 0 2px 4px rgba(13,18,32,.05), 0 28px 60px rgba(13,18,32,.13);
}

html { color-scheme: light; scroll-behavior: smooth; }
/* See app.css: an author `display` rule outranks the `hidden` attribute. */
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; }

/* ---------- topbar + nav ---------- */

.topbar { background: var(--bg-3); border-bottom: 1px solid var(--border); font-size: 14px; color: var(--ink-2); }
.topbar .wrap { display: flex; align-items: center; gap: 10px; height: 40px; }
.topbar-tag {
  background: var(--grad); color: var(--brand-ink); font-weight: 700;
  font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 74px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 700; letter-spacing: -.02em; font-size: 17px;
  text-decoration: none; flex: none;
}
.mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--grad); box-shadow: 0 4px 12px rgba(88,66,188,.34);
  position: relative;
}
/* A folder notch, cut with a pseudo-element so no asset is fetched. */
.mark::after {
  content: ""; position: absolute; left: 5px; top: 8px;
  width: 16px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.9);
}
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15.5px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 550; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { flex: none; display: flex; gap: 14px; align-items: center; margin-left: auto; }
.nav-signin { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-signin:hover { color: var(--brand); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; font-weight: 650; font-size: 15.5px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  cursor: pointer;
}
.btn-primary { background: var(--grad); color: var(--brand-ink); box-shadow: 0 8px 22px rgba(88,66,188,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(88,66,188,.42); }
.btn-ghost { border-color: var(--border-2); color: var(--ink); background: var(--panel); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--border-2); color: var(--ink); background: transparent; padding: 10px 20px; font-size: 15px; }
.btn-nav { background: var(--grad); color: var(--brand-ink); padding: 10px 22px; font-size: 15px; box-shadow: 0 6px 16px rgba(88,66,188,.3); }
.btn-nav:hover { transform: translateY(-1px); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 104px 0 96px; border-bottom: 1px solid var(--border); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before {
  width: 47%; height: 132%; top: -16%; right: 0;
  border-radius: 44% 0 0 44% / 50% 0 0 50%;
  background: var(--grad);
}
.hero::after {
  width: 340px; height: 340px; top: 4%; right: 10%;
  background: radial-gradient(circle, rgba(255,255,255,.30), transparent 70%);
  filter: blur(34px);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: center;
}
.hero-copy { max-width: 34em; }
.hero h1 { margin: 0 0 22px; font-size: clamp(38px, 4.6vw, 54px); line-height: 1.14; letter-spacing: -.02em; font-weight: 750; }
.lede { margin: 0 0 32px; font-size: 19.5px; color: var(--ink-2); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 22px 0 0; font-size: 14px; color: var(--ink-3); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 15px; font-size: 14px; color: var(--ink-2);
}
.chip-ic { display: flex; color: var(--brand); }
.chip-ic svg { width: 14px; height: 14px; }

/* Product art: a labelled file list, the signature image for this product the
   way a chat thread is for Messenger. */
.hero-art { display: flex; justify-content: center; }
.window {
  width: 100%; max-width: 430px; border-radius: var(--radius-lg);
  background: var(--panel); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotate(-1deg);
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg-2);
}
.window-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.window-label { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--brand); font-weight: 700; }
.window-body { padding: 10px 8px; }
.frow { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; }
.frow + .frow { margin-top: 2px; }
.frow-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--grad-soft); color: var(--brand);
           display: flex; align-items: center; justify-content: center; flex: none; }
.frow-ic svg { width: 15px; height: 15px; }
.frow-name { font-size: 14.5px; font-weight: 600; }
.frow-tag { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }

/* ---------- proof band ---------- */

.proof-band { background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 40px 0; text-align: center; }
.proof-lead { margin: 0 0 20px; color: var(--ink-2); font-size: 16px; }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; color: var(--ink-3); font-size: 15px; }
.proof strong { color: var(--brand); }

/* ---------- sections ---------- */

.band { padding: 96px 0; }
.band-alt { background: var(--bg-2); }
.band-center { text-align: center; }
.band-center .band-lede { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; margin-bottom: 18px;
  border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--grad-soft); color: var(--brand);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band h2 { margin: 0 0 18px; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.02em; line-height: 1.2; font-weight: 750; }
.band-lede { margin: 0 0 52px; color: var(--ink-2); font-size: 18.5px; max-width: 47em; }

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

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px 30px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { border-radius: var(--radius-lg); padding: 22px 14px; transition: transform .18s ease; }
.card:hover { transform: translateY(-5px); }
.card h3 { margin: 0 0 10px; font-size: 17.5px; letter-spacing: -.015em; font-weight: 700; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--grad); color: #fff;
  box-shadow: 0 10px 24px rgba(88,66,188,.28);
}
.card-icon svg { width: 27px; height: 27px; display: block; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.step-n {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 16px;
  background: var(--grad); color: var(--brand-ink); font-weight: 750; font-size: 15px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- honest ---------- */

/* The limitations section. Same visual weight as the features above it, on
   purpose: a product that hides its edges in smaller type is doing something
   other than being honest. */
.honest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.honest-card {
  background: var(--panel); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 28px 26px;
}
.honest-card h3 { margin: 0 0 10px; font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.honest-card p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.card-link { font-size: 14.5px; font-weight: 650; color: var(--brand); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- split + code ---------- */

.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: center; }
.code {
  background: #171a24; color: #e6e8ef; border-radius: var(--radius);
  padding: 22px 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75;
  overflow-x: auto; box-shadow: var(--shadow-lg);
}
.code .c { color: #7f8aa3; }
.code .k { color: #c3b0ff; }
.fineprint { color: var(--ink-3); font-size: 14.5px; max-width: 47em; }

/* ---------- footer ---------- */

.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 76px 0 40px; }
.footer-cta { text-align: center; padding-bottom: 60px; border-bottom: 1px solid var(--border); }
.footer-cta h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; font-weight: 750; }
.footer-cta p { margin: 0 0 26px; color: var(--ink-2); }
.footer-cta-row { justify-content: center; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; padding: 48px 0 36px; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; }
.footer-col h4 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.footer-col a { display: block; text-decoration: none; color: var(--ink-2); font-size: 15px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--brand); }
.footer-legal { border-top: 1px solid var(--border); padding-top: 26px; color: var(--ink-3); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: var(--brand); font-weight: 650; text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
.heart { color: #e0245e; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero { padding: 68px 0 72px; }
  .hero::before { display: none; }
  .hero-inner, .split { grid-template-columns: 1fr; gap: 44px; }
  .cards, .cards-2, .steps, .honest { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  /* Wrap the nav onto a second row rather than hiding it. A hamburger would
     need JavaScript to open, and these links are the whole site. */
  .nav-inner { height: auto; padding: 12px 0; flex-wrap: wrap; row-gap: 10px; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 20px; font-size: 14.5px; }
  .band { padding: 68px 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards, .cards-2, .steps, .honest, .footer-cols { grid-template-columns: 1fr; }
  .btn { padding: 12px 22px; }
  .topbar .wrap { font-size: 13px; }
  .nav-links { gap: 14px; font-size: 14px; flex-wrap: wrap; row-gap: 6px; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 17.5px; }
}

/* ---------- comparison ---------- */

/* Wide by nature, so it scrolls inside its own box rather than making the page
   scroll sideways. */
.cmp-scroll { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.cmp { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 15px; text-align: left; }
.cmp th, .cmp td { padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp thead th { background: var(--bg-2); font-size: 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.cmp thead th:first-child { width: 26%; }
.cmp tbody th { font-weight: 650; color: var(--ink); font-size: 14.5px; }
.cmp td { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
/* Our own column is tinted, but the cells still say what they say. */
.cmp .own { background: var(--grad-soft); }
.cmp thead .own { background: linear-gradient(115deg, rgba(88,66,188,.16), rgba(123,99,232,.13)); color: var(--brand); }
.yes { color: #1a7f4b; font-weight: 650; }
.no { color: #9aa0aa; }
.part { color: #a4740a; font-weight: 600; }
.cmp-note { color: var(--ink-3); font-size: 13.5px; }

/* ---------- donate ---------- */

.donate { border: 1px solid var(--border); border-radius: var(--radius);
          padding: 26px 24px; background: var(--panel); box-shadow: var(--shadow); }
.donate fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.donate legend { font-size: 13px; font-weight: 700; letter-spacing: .06em;
                 text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; padding: 0; }
.donate-freq { display: block; }
.donate-freq label { margin-right: 22px; font-size: 15px; }
.donate-amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.donate-amounts label {
  border: 1px solid var(--border-2); border-radius: 999px; padding: 10px 18px;
  font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex;
  align-items: center; gap: 8px; background: var(--bg);
}
.donate-amounts label:has(input:checked) {
  border-color: var(--brand); background: var(--grad-soft); color: var(--brand);
}
.donate input[type=radio] { accent-color: var(--brand); }
.donate-custom input[type=number] { width: 5.5em; font: inherit; font-size: 15px;
  border: 0; border-bottom: 1px solid var(--border-2); background: transparent;
  padding: 2px 4px; color: inherit; }
.donate-custom input[type=number]:focus { outline: none; border-bottom-color: var(--brand); }

.thanks { border: 1px solid var(--border); border-left: 3px solid var(--brand);
          border-radius: var(--radius); padding: 20px 22px; margin-bottom: 26px;
          background: var(--panel); }
.thanks p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.donate-error { border: 1px solid var(--border-2); border-left: 3px solid var(--accent);
                border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px;
                color: var(--ink-2); font-size: 15px; background: var(--bg-2); }

.source-list { list-style: none; margin: 0 0 30px; padding: 0; }
.source-list li { padding: 16px 0; border-top: 1px solid var(--border); color: var(--ink-2); font-size: 15.5px; }
.source-list li:last-child { border-bottom: 1px solid var(--border); }
.source-list a { color: var(--brand); font-weight: 650; text-decoration: none; }
.source-list a:hover { text-decoration: underline; }
.source-list code { font-family: var(--mono); font-size: .92em; }
