/* Image Flow site. No external fonts, scripts or trackers — the privacy policy
   says the site loads nothing from third parties, and this file keeps it true. */

:root {
  --indigo: #3c4ba8;
  --indigo-deep: #1f2766;
  --amber: #ffcf66;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1b1e2b;
  --muted: #5b6072;
  --border: #e2e5ef;
  --link: #3345b5;
  --shadow: 0 18px 40px rgba(22, 27, 70, 0.16);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11131c;
    --surface: #1a1d29;
    --text: #e9ebf3;
    --muted: #a2a7ba;
    --border: #2b2f3f;
    --link: #9eabff;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--link); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 780px; }

/* --- header ------------------------------------------------------------ */

.site-header {
  background: var(--indigo-deep);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: #d6deff; text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

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

.hero {
  background: linear-gradient(180deg, var(--indigo-deep) 0%, #2e3a8c 100%);
  color: #fff;
  padding-block: 56px 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin: 18px 0 12px;
  letter-spacing: -0.02em;
}
.hero .lede { font-size: 1.2rem; color: #d6deff; margin: 0 0 22px; max-width: 34ch; }
.hero .app-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: var(--shadow); }
.hero-shot {
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 60px rgba(0, 0, 0, 0.35);
  align-self: end;
}
@media (min-width: 900px) {
  .hero { padding-block: 72px 0; }
  .hero-grid { grid-template-columns: 5fr 7fr; }
  .hero-copy { padding-bottom: 72px; }
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.tags li {
  font-size: 0.85rem; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: var(--amber);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
  border: 1px solid transparent;
}
.button.primary { background: var(--amber); color: #1f2766; }
.button.primary:hover { background: #ffe09a; }
.button.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.button.pending { color: #d6deff; border: 1px dashed rgba(255, 255, 255, 0.35); cursor: default; }
.button small { font-weight: 400; opacity: 0.8; }

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

section { padding-block: 64px; }
section h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0 0 10px; letter-spacing: -0.01em; }
.section-lede { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.feature h3 { margin: 0 0 6px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.feature .emoji { font-size: 1.6rem; line-height: 1; margin-bottom: 10px; display: block; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 22px;
}
.shots figure { margin: 0; }
.shots img { border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.shots figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }

.band { background: var(--surface); border-block: 1px solid var(--border); }

.privacy-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.privacy-points li { padding-left: 30px; position: relative; }
.privacy-points li::before { content: "✓"; position: absolute; left: 0; color: #2f9e6a; font-weight: 700; }

.support {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px;
}
.support p { margin: 0; max-width: 55ch; color: var(--muted); }
.button.coffee { background: #ffdd00; color: #111; }
.button.coffee:hover { background: #ffe74d; }

/* --- policy ------------------------------------------------------------ */

.policy { padding-block: 48px 72px; }
.policy h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 4px; letter-spacing: -0.02em; }
.policy .meta { color: var(--muted); margin: 0 0 28px; }
.policy h2 { font-size: 1.35rem; margin: 40px 0 10px; padding-top: 8px; }
.policy h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.policy li { margin-bottom: 6px; }
.summary {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 5px solid var(--indigo); border-radius: 10px; padding: 18px 22px;
}
.summary p { margin: 0 0 8px; }
.summary p:last-child { margin: 0; }
.toc { columns: 2 240px; padding-left: 20px; }
.table-scroll { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--surface); }
code {
  font-family: ui-monospace, "Cascadia Mono", "Ubuntu Mono", Consolas, monospace;
  font-size: 0.88em; background: var(--surface); border: 1px solid var(--border);
  padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere;
}

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

.site-footer { border-top: 1px solid var(--border); padding-block: 28px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
