/* ──────────────────────────────────────────────────────────────
   freeflow landing page styles
   a faithful extension of the app's design language:
   monochrome only, system font at light weights, lowercase voice,
   capsule buttons, generous whitespace, slow ease-out fades.
   ────────────────────────────────────────────────────────────── */

/* ── tokens ── */
:root {
  color-scheme: light;
  --scheme: light;
  --bg: #ffffff;
  --bg-rgb: 255, 255, 255;
  --ink: 0, 0, 0;
  --text: rgba(var(--ink), 0.85);   /* primary text   (app: primary @ .85) */
  --body: rgba(var(--ink), 0.55);   /* paragraphs     (kept readable)      */
  --muted: rgba(var(--ink), 0.35);  /* small labels   (app: primary @ .35) */
  --faint: rgba(var(--ink), 0.15);
  --hair: rgba(var(--ink), 0.08);
  --fill: rgba(var(--ink), 0.06);   /* app: secondary button fill          */
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.3);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  --maxw: 1120px;
  --gutter: 24px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --scheme: dark;
  --bg: #0a0a0a;
  --bg-rgb: 10, 10, 10;
  --ink: 255, 255, 255;
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --scheme: dark;
    --bg: #0a0a0a;
    --bg-rgb: 10, 10, 10;
    --ink: 255, 255, 255;
    --shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
  }
}

/* ── reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
::selection { background: rgba(var(--ink), 0.14); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--maxw)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── type ── */
h1, h2, h3 { font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(2.75rem, 1.6rem + 5vw, 5.5rem); font-weight: 200; line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem); font-weight: 200; letter-spacing: -0.02em; }
h3 { font-size: 1rem; font-weight: 500; letter-spacing: 0; }

.eyebrow { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 14px; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); font-weight: 300; color: var(--body); line-height: 1.6; max-width: 34em; }
.small { font-size: 13px; font-weight: 300; color: var(--muted); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: transform 0.25s var(--ease), opacity 0.25s, background-color 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--faint); color: var(--text); font-weight: 400; }
.btn-secondary:hover { background: var(--fill); border-color: var(--muted); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn:active { transform: translateY(0); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.icon-btn:hover { color: var(--text); background: var(--fill); }
.icon-btn svg { width: 17px; height: 17px; }

.text-link { color: var(--body); font-weight: 300; border-bottom: 1px solid var(--faint); transition: color 0.2s, border-color 0.2s; }
.text-link:hover { color: var(--text); border-color: var(--muted); }

/* ── reveal (line-by-line, like onboarding) ── */
.js [data-reveal] .rv {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * var(--stagger, 0.12s));
}
.js [data-reveal].in .rv { opacity: 1; transform: none; }

/* ── nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(var(--bg-rgb), 0.74);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--hair);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 300; letter-spacing: 0.01em; color: var(--text); }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 300; color: var(--body); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-menu-btn { display: none; font-size: 14px; font-weight: 300; color: var(--body); padding: 8px 10px; border-radius: 999px; }
.nav-menu-btn:hover { color: var(--text); }

/* theme toggle: moon in light, sun in dark (like the app's top bar) */
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

/* ── sections ── */
.section { padding-block: clamp(84px, 11vw, 150px); }
.section + .section { border-top: 1px solid var(--hair); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }
.section-head.center .lead { margin-inline: auto; }

/* ── hero: the page writes itself ── */
[hidden] { display: none !important; }
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 96px));
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: clamp(36px, 5vw, 64px); }
.hero-copy { max-width: 620px; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { margin-top: 20px; font-size: 13px; font-weight: 300; color: var(--muted); }
.hero-meta span + span::before { content: "·"; margin: 0 8px; }
.caret {
  display: inline-block; width: 1px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em;
  background: var(--text); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero.is-paused .caret { animation-play-state: paused; }
.hero-a { position: relative; }
.canvas-top { display: flex; justify-content: flex-start; padding-bottom: 16px; }
.canvas-timer {
  font-family: var(--mono); font-size: 14px; font-weight: 300; color: var(--muted);
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
.canvas {
  position: relative; height: clamp(240px, 36vh, 400px); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 42%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 42%, #000 100%);
}
.canvas-text {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 720px;
  font-size: clamp(17px, 1rem + 0.35vw, 20px); font-weight: 300; line-height: 1.75; color: var(--text);
  overflow-wrap: anywhere;
}
.canvas-text p { margin: 0 0 1em; }
.canvas-text p:last-child { margin-bottom: 0; }

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: clamp(520px, 72vh, 760px); }
  .canvas { height: clamp(300px, 46vh, 460px); }
  .hero-a { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--hair); }
}

@media (max-width: 1023px) {
  .canvas { height: clamp(150px, 24vh, 220px); }
  .hero-inner { gap: 28px; }
}

/* ── demo / writer ── */
.demo .section-head { transition: opacity 1s var(--ease); }
.demo.is-writing .section-head, .demo.is-writing .demo-privacy { opacity: 0.3; }
.demo-privacy { transition: opacity 1s var(--ease); margin-top: 20px; text-align: center; }

.writer {
  position: relative; max-width: 760px; margin-inline: auto;
  border: 1px solid var(--hair); border-radius: 22px; background: var(--bg);
  box-shadow: var(--shadow);
  transition: border-color 0.3s;
}
.writer:focus-within { border-color: var(--faint); }
.writer-chrome { transition: opacity 1s var(--ease); }
.writer.is-writing .writer-chrome { opacity: 0.3; }
.writer.is-writing .writer-durations { pointer-events: none; }
.writer-top { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; padding: 14px 16px 0; }
.writer-timer { text-align: center; font-family: var(--mono); font-size: 15px; font-weight: 300; color: var(--muted); font-variant-numeric: tabular-nums; transition: color 0.4s; }
.writer.is-writing .writer-timer { color: var(--text); }
.writer-durations { display: flex; justify-content: center; gap: 6px; padding: 10px 16px 0; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 300; color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--text); font-weight: 500; background: var(--fill); }
.writer-body { position: relative; padding: 8px 8px 0; }
.writer textarea {
  display: block; width: 100%; min-height: 320px; resize: none;
  padding: 20px 20px 48px; border: 0; outline: none; background: transparent;
  color: var(--text); font-size: 18px; font-weight: 400; line-height: 1.8;
  border-radius: 0 0 22px 22px;
}
.writer textarea::placeholder { color: rgba(var(--ink), 0.25); font-weight: 300; }
.writer-note {
  position: absolute; left: 0; right: 0; bottom: 16px; text-align: center;
  font-size: 13px; font-weight: 300; color: var(--muted);
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.writer-note.is-visible { opacity: 1; transform: none; }
.writer-done {
  border-top: 1px solid var(--hair); padding: 28px 24px 28px; text-align: center;
  animation: rise 0.6s var(--ease);
}
.writer-done[hidden] { display: none; }
.writer-done-title { font-size: 34px; font-weight: 200; letter-spacing: -0.02em; line-height: 1.1; }
.writer-stats { margin-top: 8px; font-size: 14px; font-weight: 300; color: var(--muted); }
.writer-pitch { margin-top: 22px; }
.writer-pitch-line { font-size: 17px; font-weight: 300; color: var(--text); line-height: 1.5; }
.writer-pitch-sub { margin-top: 4px; font-size: 14px; font-weight: 300; color: var(--muted); }
.writer-cta { margin-top: 24px; opacity: 0; transform: translateY(10px); animation: rise 0.7s var(--ease) 0.35s forwards; }
.writer-actions { display: flex; justify-content: center; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.text-btn { font-size: 13px; font-weight: 300; color: var(--muted); padding: 4px 2px; border-radius: 4px; transition: color 0.2s; }
.text-btn:hover { color: var(--text); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── manifesto ── */
.manifesto-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.manifesto-lines { --stagger: 0.4s; display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.manifesto-lines .l1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 200; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }
.manifesto-lines .l2 { font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem); font-weight: 300; color: var(--muted); }
.manifesto-lines .l3 { font-size: 15px; font-weight: 300; color: var(--body); line-height: 1.7; }
.manifesto-lines .gap { height: 20px; }
.manifesto-lines .l4 { font-size: 15px; font-weight: 400; color: rgba(var(--ink), 0.65); }
.rules-block { margin-top: 44px; }
.rules-block .eyebrow { margin-bottom: 12px; }
.rules { display: flex; flex-direction: column; gap: 10px; }
.rules li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 300; color: rgba(var(--ink), 0.65); }
.rules li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); opacity: 0.5; }

/* the contrast visual: cluttered journaling app vs. freeflow's single stream */
.contrast { display: grid; gap: 22px; }
.contrast-card {
  position: relative; margin: 0; padding: 18px 20px 20px;
  border: 1px solid var(--hair); border-radius: 18px; background: var(--bg); box-shadow: var(--shadow);
}
.contrast-card figcaption {
  position: absolute; top: -11px; left: 18px; padding: 2px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--hair); font-size: 11px; font-weight: 400; color: var(--muted);
}
.is-journal > :not(.contrast-cross):not(figcaption) { transition: opacity 0.9s var(--ease) 0.5s; }
.js .contrast.in .is-journal > :not(.contrast-cross):not(figcaption) { opacity: 0.42; }
.jn-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.jn-save { padding: 3px 9px; border: 1px solid var(--faint); border-radius: 6px; color: var(--body); }
.jn-title { margin-top: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); font-size: 17px; font-weight: 400; color: var(--muted); }
.jn-toolbar { display: flex; align-items: center; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.jn-tool {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 5px;
  border: 1px solid var(--hair); border-radius: 5px; font-size: 11px; color: var(--body);
}
.jn-tool.is-b { font-weight: 700; }
.jn-tool.is-i { font-style: italic; font-family: Georgia, serif; }
.jn-tool.is-u { text-decoration: underline; }
.jn-tool svg { width: 13px; height: 13px; }
.jn-sep { width: 1px; height: 16px; background: var(--hair); margin: 0 4px; }
.jn-tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.jn-tags span { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--fill); color: var(--body); }
.jn-tags .jn-tag-add { background: transparent; border: 1px dashed var(--faint); color: var(--muted); }
.jn-body { margin-top: 14px; font-size: 14px; line-height: 1.7; font-weight: 300; color: var(--text); }
.jn-body s { color: var(--muted); }
.jn-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11px; color: var(--muted); }
.contrast-cross { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.contrast-cross line {
  stroke: rgba(var(--ink), 0.6); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) 0.7s;
}
.js .contrast.in .contrast-cross line { stroke-dashoffset: 0; }
html:not(.js) .contrast-cross line { stroke-dashoffset: 0; }
.ff-top { display: grid; grid-template-columns: 20px 1fr 20px; align-items: center; color: var(--muted); }
.ff-x svg { width: 14px; height: 14px; }
.ff-timer { text-align: center; font-family: var(--mono); font-size: 13px; font-weight: 300; font-variant-numeric: tabular-nums; }
.ff-stream { margin-top: 22px; min-height: 5.25em; font-size: 17px; font-weight: 300; line-height: 1.75; color: var(--text); }

/* ── how it works ── */
.steps { list-style: none; padding: 0; --stagger: 0.18s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.step-num {
  font-size: clamp(36px, 3vw, 48px); font-weight: 200; line-height: 1; letter-spacing: -0.02em;
  color: rgba(var(--ink), 0.45); font-variant-numeric: tabular-nums;
  padding-bottom: 14px; border-bottom: 1px solid var(--hair);
}
.step h3 { margin-top: 18px; font-size: 20px; font-weight: 300; line-height: 1.3; }
.step p { margin-top: 8px; font-size: 16px; font-weight: 300; color: rgba(var(--ink), 0.62); line-height: 1.65; max-width: 30ch; }
.thats-it { margin-top: 56px; font-size: 15px; font-weight: 300; color: var(--muted); text-align: center; }

/* ── features ── */
.features-grid { --stagger: 0.1s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; }
.feature { background: var(--bg); padding: 30px 28px 32px; }
.feature-icon { width: 22px; height: 22px; color: var(--muted); }
.feature h3 { margin-top: 20px; display: flex; align-items: center; gap: 8px; }
.feature p { margin-top: 8px; font-size: 14px; font-weight: 300; color: var(--body); line-height: 1.65; }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--faint); border-radius: 999px; font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.5; }
.privacy-strip {
  margin-top: 16px; padding: 28px; border: 1px solid var(--hair); border-radius: 20px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
}
.privacy-strip .feature-icon { width: 24px; height: 24px; }
.privacy-strip h3 { font-weight: 400; font-size: 16px; }
.privacy-strip p { margin-top: 4px; font-size: 14px; font-weight: 300; color: var(--body); line-height: 1.65; }

/* ── who it's for ── */
.who-list { --stagger: 0.15s; max-width: 760px; margin-inline: auto; border-top: 1px solid var(--hair); }
.who-list li { padding: 22px 4px; border-bottom: 1px solid var(--hair); font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 200; letter-spacing: -0.01em; color: var(--text); display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.who-list li small { font-size: 13px; font-weight: 300; color: var(--muted); white-space: nowrap; }

/* ── pricing (mirrors the app's paywall) ── */
.pricing-card { max-width: 560px; margin-inline: auto; text-align: center; }
.pricing-card .lead, .download .lead { margin-inline: auto; margin-top: 18px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.plan {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 22px 16px; border-radius: 14px; background: var(--fill); color: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.plan:hover { transform: translateY(-1px); opacity: 0.9; }
.plan-title { font-size: 17px; font-weight: 500; }
.plan-sub { font-size: 12px; font-weight: 300; opacity: 0.7; }
.plan.is-best { background: var(--text); color: var(--bg); }
.plan-includes { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.plan-includes li { font-size: 14px; font-weight: 300; color: rgba(var(--ink), 0.65); display: inline-flex; align-items: center; gap: 8px; }
.plan-includes li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.plan-note { margin-top: 28px; font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.6; }
.pricing-cta { margin-top: 28px; }

/* ── download ── */
.download { text-align: center; }
.app-icon { width: 76px; height: 76px; border-radius: 22%; margin: 0 auto 24px; box-shadow: 0 0 0 1px var(--hair); }
.badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px;
  border: 1px solid var(--faint); border-radius: 12px; text-align: left; color: var(--text);
  transition: background-color 0.25s, border-color 0.25s;
}
.badge:hover { background: var(--fill); border-color: var(--muted); }
.badge svg { width: 24px; height: 24px; color: var(--text); }
.badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.badge-text small { font-size: 11px; font-weight: 300; color: var(--muted); }
.badge-text strong { font-size: 15px; font-weight: 500; }
.notify { max-width: 460px; margin: 44px auto 0; }
.notify-label { font-size: 14px; font-weight: 300; color: var(--body); margin-bottom: 14px; }
.notify-row { display: flex; gap: 8px; }
.notify input {
  flex: 1; min-width: 0; height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--faint); background: transparent; color: var(--text); font-size: 16px; font-weight: 300;
  transition: border-color 0.2s;
}
.notify input::placeholder { color: var(--muted); }
.notify input:focus { outline: none; border-color: var(--muted); }
.notify input[aria-invalid="true"] { border-color: var(--text); }
.notify-msg { min-height: 20px; margin-top: 12px; font-size: 13px; font-weight: 300; color: var(--muted); }
.notify-msg.is-success { color: var(--text); }
.notify-msg.is-error { color: var(--text); }
.try-web { margin-top: 36px; font-size: 14px; font-weight: 300; color: var(--muted); }

/* ── faq ── */
.faq-list { max-width: 720px; margin-inline: auto; border-top: 1px solid var(--hair); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 4px; font-size: 17px; font-weight: 300; color: var(--text);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: rgba(var(--ink), 1); }
.faq-item summary svg { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform 0.35s var(--ease); }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-body { padding: 0 4px 24px; max-width: 620px; }
.faq-body p { font-size: 15px; font-weight: 300; color: var(--body); line-height: 1.7; }
.faq-body p + p { margin-top: 10px; }
.faq-body a { color: var(--text); border-bottom: 1px solid var(--faint); }

/* ── footer ── */
.footer { border-top: 1px solid var(--hair); padding: 40px 0 48px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .tagline { font-size: 13px; font-weight: 300; color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 300; color: var(--muted); }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── cookie banner (injected by analytics.js) ── */
.cookie-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100% - 32px);
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.88); border: 1px solid var(--hair); box-shadow: var(--shadow);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  font-size: 13px; font-weight: 300; color: var(--body); line-height: 1.4;
  animation: rise 0.6s var(--ease);
}
.cookie-bar[hidden] { display: none !important; }
.cookie-bar p { margin: 0; }
.cookie-actions { display: flex; gap: 6px; flex: none; }
.cookie-bar .btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }
@media (max-width: 640px) {
  .cookie-bar {
    left: 12px; right: 12px; bottom: 12px; transform: none; width: auto; max-width: none;
    flex-direction: column; align-items: stretch; gap: 12px; text-align: center;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 18px;
  }
  .cookie-actions { justify-content: center; }
  .cookie-actions .btn-sm { flex: 1 1 0; }
}

/* ── simple content pages (privacy) ── */
.page { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 96px; max-width: 640px; margin-inline: auto; }
.page h1 { font-size: 2rem; font-weight: 200; }
.page .updated { margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 300; }
.page-body { margin-top: 40px; font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--body); }
.page-body h2 { font-size: 17px; font-weight: 400; color: var(--text); margin: 32px 0 10px; letter-spacing: 0; }
.page-body p + p { margin-top: 10px; }
.page-body strong { font-weight: 500; color: var(--text); }

/* ── responsive ── */
@media (min-width: 1440px) {
  :root { --maxw: 1200px; }
}
@media (max-width: 1023px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .manifesto-grid { grid-template-columns: 1fr; gap: 56px; align-items: start; }
  .contrast { max-width: 560px; }
}
@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(var(--bg-rgb), 0.96); border-bottom: 1px solid var(--hair);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 16px var(--gutter); font-size: 16px; border-top: 1px solid var(--hair); }
  .nav-menu-btn { display: inline-flex; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav-cta { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-ctas .btn { flex: 1 1 auto; }
  .canvas { height: clamp(200px, 32vh, 300px); }
  .contrast-card { padding: 16px 16px 18px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .features-grid { grid-template-columns: 1fr; }
  .privacy-strip { grid-template-columns: 1fr; gap: 12px; }
  .plans { grid-template-columns: 1fr; }
  .who-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .notify-row { flex-direction: column; }
  .notify input { flex: none; width: 100%; min-height: 48px; }
  .notify .btn { width: 100%; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
  .writer textarea { font-size: 17px; min-height: 280px; padding: 16px 14px 48px; }
  .writer-done-title { font-size: 30px; }
}

/* ── no-js: show everything ── */
html:not(.js) [data-reveal] .rv { opacity: 1; transform: none; }

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] .rv { opacity: 1; transform: none; }
  .caret { opacity: 1; }
  .writer-cta { opacity: 1; transform: none; }
  .contrast-cross line { stroke-dashoffset: 0; }
  .js .contrast.in .is-journal > :not(.contrast-cross):not(figcaption) { opacity: 0.42; }
}
