/* Flamingo Ledger's holding page, in the brand's light and dark themes (DESIGN.md), with coral as
   the only accent. It follows the visitor's system setting; theme.js adds a switch that overrides it.
   Coral fills carry navy text (white on coral is 2.9:1). */
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('/fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url('/fonts/montserrat-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --navy: #0F1B2D; --coral: #F7667A; --coral-hover: #F9808F;
  /* light */
  --bg: #F8FAFC; --bg-2: #FFFFFF; --field: #FFFFFF; --line: #D9DEE6;
  --ink: #0F1B2D; --soft: #374151; --muted: #5B6474; --accent-text: #B83249;
  --mark-bars: #0F1B2D; --rule: rgba(15, 27, 45, 0.05); --glow: rgba(247, 102, 122, 0.14);
  --display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1B2D; --bg-2: #0A1320; --field: #0A1320; --line: #2A3A57;
    --ink: #FAFAFA; --soft: #C9CED8; --muted: #8E96A6; --accent-text: #F7667A;
    --mark-bars: #FAFAFA; --rule: rgba(255, 255, 255, 0.035); --glow: rgba(247, 102, 122, 0.10);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1B2D; --bg-2: #0A1320; --field: #0A1320; --line: #2A3A57;
  --ink: #FAFAFA; --soft: #C9CED8; --muted: #8E96A6; --accent-text: #F7667A;
  --mark-bars: #FAFAFA; --rule: rgba(255, 255, 255, 0.035); --glow: rgba(247, 102, 122, 0.10);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
.wrap { max-width: 880px; margin: 0 auto; padding-inline: 24px; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The opening screen: the mark, the line, and the sign-up. */
.stage {
  min-height: 92vh; display: flex; align-items: center; padding-block: 64px;
  background:
    radial-gradient(60rem 30rem at 85% 110%, var(--glow), transparent 70%),
    repeating-linear-gradient(to bottom, transparent 0 47px, var(--rule) 47px 48px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-bottom: 56px; }
.mark { flex: none; }
.mark .mk-bar { fill: var(--mark-bars); stroke: var(--mark-bars); stroke-width: 2.4; stroke-linejoin: round; }
.wordmark { line-height: 1; font-family: var(--display); display: flex; flex-direction: column; align-items: center; }
.wordmark b { font-size: 24px; letter-spacing: 0.04em; font-weight: 800; }
.wordmark span { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.5em; margin-right: -0.5em; color: var(--coral); margin-top: 5px; font-weight: 600; }
.wordmark i { display: block; width: 16px; height: 2px; background: var(--coral); margin-right: 0.5em; }
.wordmark i:first-child { margin-right: 0; }
h1, h2 { font-family: var(--display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 8.5vw, 5.2rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em; }
h1 em { font-style: normal; color: var(--accent-text); }
.lede { color: var(--soft); font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 34ch; margin: 24px 0 0; }
.fine { color: var(--muted); font-size: 0.88rem; margin: 12px 0 0; }

.btn { font: 600 1rem var(--body); background: var(--coral); color: var(--navy); border: 0; border-radius: 8px; padding: 13px 22px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--coral-hover); }
input, select, textarea { font: 1rem var(--body); color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%; min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }

.signup { display: flex; gap: 10px; margin-top: 40px; max-width: 520px; flex-wrap: wrap; }
.signup input { flex: 1 1 240px; }

/* Feedback, below the fold. */
.ask { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 72px; }
.ask h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.15; }
.form { display: grid; gap: 18px; margin-top: 32px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form label span { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; }

footer { background: var(--bg-2); color: var(--muted); font-size: 0.85rem; padding-block: 0 32px; }

/* The small pages after a form or from a download link. */
.note { min-height: 100vh; display: flex; align-items: center; padding-block: 64px; }
.note .brand { margin-bottom: 40px; }
.note h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
.note .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.note .ghost { color: var(--ink); text-decoration: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 20px; font-weight: 600; }
.note .ghost:hover { border-color: var(--ink); }
.note ol { color: var(--soft); padding-left: 22px; display: grid; gap: 8px; max-width: 60ch; margin: 24px 0 0; }
.note ol b { color: var(--ink); }
.note a.btn { text-decoration: none; display: inline-block; }

/* The Terms of Use and Privacy Policy. */
.legal { padding-block: 56px 72px; }
.legal .wrap { max-width: 72ch; }
.legal-home { color: var(--muted); font-weight: 600; text-decoration: none; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-top: 24px; }
.legal h2 { font-size: 1.3rem; margin-top: 40px; }
.legal p, .legal li { color: var(--soft); line-height: 1.65; }
.legal b { color: var(--ink); }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal blockquote { margin: 24px 0; padding: 4px 18px; border-left: 3px solid var(--coral); background: var(--bg-2); }
.legal a, footer a { color: inherit; }
.convert .btn { text-decoration: none; display: inline-block; }
.convert input[type=file] { padding: 10px; }
.convert-files { color: var(--soft); }
.convert .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* The light/dark switch theme.js adds, top right. */
.theme {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 5;
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  background: var(--bg-2); color: var(--ink); border: 1.5px solid var(--line); border-radius: 50%;
}
.theme:hover { border-color: var(--ink); }
.theme svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .stage .wrap > * { animation: rise 0.7s ease-out both; }
  .stage .wrap > :nth-child(2) { animation-delay: 0.08s; }
  .stage .wrap > :nth-child(3) { animation-delay: 0.16s; }
  .stage .wrap > :nth-child(n + 4) { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0.001; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* The launch home page (site/_launch/index.html), served at / once FLAMINGO_SITE_LAUNCHED=1. */
.launch h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.15; }
.launch h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; margin: 0; text-wrap: balance; }
.launch .wrap { max-width: 1080px; }
.launch .sub { color: var(--soft); max-width: 62ch; margin: 12px 0 0; }
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-block: 14px; padding-right: 72px; }
.top .brand { margin: 0; }
.top .wordmark b { font-size: 17px; }
.top .wordmark span { font-size: 8px; }
.top .wordmark i { width: 11px; }
.top-nav { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 0.95rem; }
.top-nav a { color: var(--soft); text-decoration: none; font-weight: 600; }
.top-nav a:hover { color: var(--ink); }
.top-nav .signin { color: var(--accent-text); }
.hero { padding-block: 72px 56px; background: radial-gradient(50rem 24rem at 90% 120%, var(--glow), transparent 70%), repeating-linear-gradient(to bottom, transparent 0 47px, var(--rule) 47px 48px); }
.hero .lede { max-width: 46ch; }
.hero-actions { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 32px; }
.hero-actions .fine { margin: 0; }
.launch a.btn { text-decoration: none; display: inline-block; text-align: center; }
.launch .ghost { display: inline-block; color: var(--ink); text-decoration: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 18px; font-weight: 600; }
.launch .ghost:hover { border-color: var(--ink); }

.versions { padding-block: 64px; }
.version-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-top: 32px; }
.version { background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.version p { margin: 0; color: var(--soft); }
.v-head { display: flex; align-items: baseline; gap: 10px; }
.v-tag { font-family: var(--display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.v-for { color: var(--muted); font-size: 0.9rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--soft); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2.5px solid var(--coral); border-bottom: 2.5px solid var(--coral); transform: rotate(-45deg); }
.v-price { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.v-price b { font-family: var(--display); font-size: 2rem; font-weight: 800; }
.v-price span { color: var(--muted); }
.version .btn { align-self: flex-start; }
.version .fine { margin: 0; }

.compare { padding-block: 56px; background: var(--bg-2); border-block: 1px solid var(--line); }
.table-scroll { overflow-x: auto; margin-top: 24px; }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.98rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.compare tbody th { font-weight: 600; width: 30%; }
.compare td { color: var(--soft); }

.pricing { padding-block: 64px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 28px; }
.plan { border: 1.5px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.plan .amount { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan .amount b { font-family: var(--display); font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.plan ul { margin: 0 0 8px; padding-left: 18px; color: var(--soft); display: grid; gap: 4px; font-size: 0.95rem; }
.plan .ghost { margin-top: auto; align-self: flex-start; }
.pricing > .wrap > .fine { margin-top: 16px; }

.qb { padding-block: 64px; background: var(--bg-2); border-block: 1px solid var(--line); }
.qb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 24px; margin-top: 28px; }
.qb-grid > div { display: grid; gap: 8px; align-content: start; }
.qb-grid p { margin: 0; color: var(--soft); font-size: 0.97rem; }
.qb-grid a { font-weight: 600; }

.faq { padding-block: 64px; }
.faq details { max-width: 760px; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--soft); margin: 10px 0 0; }

.launch-foot { padding-block: 28px; border-top: 1px solid var(--line); }
.foot-row { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.foot-row nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
