/* INT. FLOW site. Colours are the app's INT. FLOW colour grade, dark:
   page #171A1D, outer ground #090B0E, chrome paper #1D2023, ink #E1E2DE,
   dim #8A9298, accent #7FA3D6. */
:root {
  --ground: #090B0E;
  --page: #171A1D;
  --paper: #1D2023;
  --card: #262B32;
  --card-on: #2A3340;
  --ink: #E1E2DE;
  --dim: #8A9298;
  --button-ink: #9AA4AA;
  --accent: #7FA3D6;
  --rule: rgba(225, 226, 222, 0.14);
  --display: "Fraunces", Georgia, serif;
  --ui: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --script: "Courier Prime", "Courier New", Courier, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; }

h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.lede { font-size: 1.2rem; color: var(--dim); }
.muted { color: var(--dim); }

/* Header: the reader's top chrome */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark {
  font-family: var(--script); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.06em; color: var(--ink); text-decoration: none;
}
.pill-link {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  background: var(--card); padding: 7px 14px; border-radius: 999px;
}
.pill-link:hover { background: var(--card-on); }

/* Sheets: each section is a sheet with the chrome's arched crest. The arc
   overlaps its sheet by a pixel so there is no seam, and the crest has no
   flat shoulders, so it reads as a bow rather than a cap. */
.sheet { position: relative; padding: 96px 0 104px; }
.sheet > .arc {
  position: absolute; left: 0; right: 0; top: 1px; width: 100%; height: 30px; display: block;
  transform: translateY(-100%);
}
.sheet.page { background: var(--page); }
.sheet.page > .arc { fill: var(--page); }
.sheet.paper { background: var(--paper); }
.sheet.paper > .arc { fill: var(--paper); }

/* Hero */
.hero { padding-top: 64px; }
.sheet.hero { padding-bottom: 0; }
.hero .wrap { max-width: 720px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; max-width: 30em; }
.platforms { font-size: 0.95rem; color: var(--dim); margin-bottom: 40px; }

/* A peek of the reader: the bottom of a page running under the bar, fading
   in from the sheet above and tucked under the next sheet's crest. */
.peek { max-width: 720px; margin: 48px auto 0; }
.peek img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 28%, #000 60%),
    linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 28%, #000 60%),
    linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

.signup-form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 440px; }
.signup-form input[type="email"] {
  flex: 1; min-width: 210px; padding: 12px 16px; font: inherit;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--card); color: var(--ink); outline: none;
  transition: border-color 220ms var(--ease);
}
.signup-form input[type="email"]::placeholder { color: var(--dim); }
.signup-form input[type="email"]:focus { border-color: var(--accent); }
.signup-form button {
  padding: 12px 22px; border: none; border-radius: 999px; font: inherit; font-weight: 600;
  background: var(--accent); color: #0E1013; cursor: pointer;
  transition: filter 220ms var(--ease);
}
.signup-form button:hover { filter: brightness(1.08); }
.signup-form button:disabled { opacity: 0.6; cursor: default; }
.signup-msg { margin-top: 12px; font-size: 0.95rem; min-height: 1.5em; color: var(--dim); }

/* Hints */
.hints p { margin-bottom: 22px; color: var(--dim); font-size: 1.2rem; }
.hints p:last-child { margin-bottom: 0; }
.hints b { color: var(--ink); font-weight: 600; }

/* Waitlist */
.cta .signup-form { margin-top: 20px; }

/* Footer */
.site-footer { background: var(--ground); padding: 32px 0 44px; font-size: 0.92rem; color: var(--dim); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-footer a { color: var(--dim); }

/* Legal pages */
.legal { padding: 56px 0 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 6px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal p, .legal ul { margin-bottom: 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.eyebrow { font-family: var(--display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }

@media (max-width: 880px) {
  .sheet { padding: 72px 0 80px; }
  .sheet.hero { padding-bottom: 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Hint icons */
.hints p { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.hint-icon { width: 24px; height: 24px; fill: var(--accent); margin-top: 3px; }

