/* Flowline marketing site. One stylesheet, five pages. */

:root {
  --ink: #10151f;
  --ink-2: #4a5568;
  --ink-3: #7b8794;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-2: #f7f9fc;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --gold: #b4832a;
  --gold-bg: #fdf6e7;
  --radius: 12px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8edf5;
    --ink-2: #a9b4c4;
    --ink-3: #7d8798;
    --line: #253044;
    --bg: #0d1119;
    --bg-2: #141a25;
    --brand: #6d9bff;
    --brand-dark: #8fb4ff;
    --gold: #e0b463;
    --gold-bg: #2a2318;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.narrow {
  max-width: 760px;
}

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

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-top: 0;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
  color: var(--ink-2);
}

section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

section:first-of-type {
  border-top: 0;
}

/* ── Header ─────────────────────────────────────────────────────────── */

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

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand svg {
  display: block;
}

nav.site {
  display: flex;
  gap: 20px;
  font-size: 0.92rem;
}

nav.site a {
  color: var(--ink-2);
  text-decoration: none;
}

nav.site a:hover {
  color: var(--brand);
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 56px;
}

.hero h1 {
  max-width: 16ch;
}

.lede {
  font-size: 1.18rem;
  max-width: 62ch;
  color: var(--ink-2);
}

/* Availability notice. The app is in review and not yet installable; that has
   to be visible on the first screen rather than buried in small print. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 26px;
}

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ── Hero demo ──────────────────────────────────────────────────────── */

.hero-demo {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}

.hero-demo .lottie {
  height: 190px;
}

/* ── Gallery ────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

/* The checkerboard is the same one the Canva panel uses behind its preview.
   Every file the app produces has a transparent background, and that is a real
   selling point — it only reads as one if you can see through it. */
.lottie {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='8' height='8' fill='%23e9e9e9'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23e9e9e9'/%3E%3Crect x='8' width='8' height='8' fill='%23f7f7f7'/%3E%3Crect y='8' width='8' height='8' fill='%23f7f7f7'/%3E%3C/svg%3E");
}

.lottie > svg {
  max-width: 100%;
  max-height: 100%;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.name {
  font-size: 0.93rem;
  font-weight: 550;
}

.tag {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag.free {
  background: var(--bg-2);
  color: var(--ink-3);
  border: 1px solid var(--line);
}

.tag.paid {
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}

/* ── Steps / feature columns ────────────────────────────────────────── */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.cols h3 {
  margin-bottom: 0.35em;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 650;
  margin-bottom: 12px;
}

/* ── Pricing ────────────────────────────────────────────────────────── */

.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.pack {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-2);
}

.pack .amount {
  font-size: 1.9rem;
  font-weight: 680;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.pack .unit {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.pack .price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.note {
  border-left: 3px solid var(--brand);
  background: var(--bg-2);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.note p:last-child {
  margin-bottom: 0;
}

table.terms {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

table.terms th,
table.terms td {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}

table.terms th {
  background: var(--bg-2);
  font-weight: 600;
  white-space: nowrap;
}

ul.tight li {
  margin-bottom: 0.5em;
  color: var(--ink-2);
}

/* ── Legal pages ────────────────────────────────────────────────────── */

.legal {
  padding: 56px 0 72px;
}

.legal h2 {
  margin-top: 2em;
  font-size: 1.25rem;
}

.legal h2:first-of-type {
  margin-top: 1.4em;
}

.updated {
  color: var(--ink-3);
  font-size: 0.9rem;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg-2);
  font-size: 0.9rem;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

footer.site nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

footer.site a {
  color: var(--ink-2);
  text-decoration: none;
}

footer.site a:hover {
  color: var(--brand);
}

footer.site .who {
  color: var(--ink-3);
}
