/* FlowPlanner's public pages: the landing page (/), and Privacy and Terms (/privacy, /terms,
 whose text the operator edits in /admin). Layout: a two-column hero whose right side is the
 product itself (one item in three views), then bands in the order of the pitch: the problem,
 the fix, the team features, next Monday, pricing, questions, contact. Brand: FlowPlanner's
 periwinkle mark on deep navy, the app's own palette. The display face is served from here
 (fonts/, SIL Open Font License), so no visitor is sent to a font host. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/landing/fonts/bricolage-grotesque-latin.woff2") format("woff2"); }
:root {
  --bg: #f6f7fc; --surface: #ffffff; --surface-2: #eceffa; --line: #dde1f2;
  --fg: #161b2e; --muted: #5a6382; --accent: #5563dc; --accent-2: #8d6fe0; --on-accent: #ffffff;
  --green: #2c8f5f; --amber: #b07410; --rose: #c2415b; --band: #eef0fb;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10131f; --surface: #171c29; --surface-2: #1f2537; --line: #2a3148;
    --fg: #edf0fb; --muted: #9ea8c6; --accent: #8994fb; --accent-2: #a88cf0; --on-accent: #10131f;
    --green: #63cf97; --amber: #f0bf5a; --rose: #f08aa0; --band: #141929; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10131f; --surface: #171c29; --surface-2: #1f2537; --line: #2a3148;
  --fg: #edf0fb; --muted: #9ea8c6; --accent: #8994fb; --accent-2: #a88cf0; --on-accent: #10131f;
  --green: #63cf97; --amber: #f0bf5a; --rose: #f08aa0; --band: #141929; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--fg); background: var(--surface); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button:hover { border-color: var(--accent); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--display); color: var(--fg); text-decoration: none; }
.brand b { color: var(--accent); font-weight: 700; }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(145deg, #6d78ed, #9875e3); color: #fff; }
.mark svg { width: 18px; height: 18px; }
nav { display: flex; gap: 20px; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
nav a:hover { color: var(--fg); }
.header-cta { display: flex; gap: 10px; }
.header-cta .button { padding: 9px 14px; font-size: 14px; }
/* Phones have room for one button: it opens the sign-in form, which has a Create account tab. */
.header-cta .phone-auth { display: none; }
@media (max-width: 760px) { nav { display: none; } .header-cta { margin-left: auto; } .header-cta .button { display: none; } .header-cta .phone-auth { display: inline-flex; white-space: nowrap; } }
@media (max-width: 360px) { header .wrap { gap: 10px; } .brand { font-size: 18px; } .header-cta .phone-auth { padding-inline: 10px; } }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; padding-block: 64px 56px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 34em; margin-top: 20px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .small { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 40px; } }

/* One item, three views */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 30px 70px -40px rgba(40, 50, 120, .45); }
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 4px 12px; }
.demo-head span { font-size: 13px; color: var(--muted); }
.views { display: grid; grid-template-columns: 1fr 1.2fr; grid-template-rows: auto auto; gap: 12px; }
.view { background: var(--surface-2); border-radius: 10px; padding: 12px; min-width: 0; }
.view h3 { font: 600 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.plan { grid-row: span 2; }
.slots { position: relative; display: grid; grid-template-rows: repeat(6, 34px); border-left: 1px solid var(--line); margin-left: 38px; }
.slots div { border-top: 1px dashed var(--line); position: relative; }
.slots div span { position: absolute; left: -40px; top: -8px; font: 500 11px/1 var(--mono); color: var(--muted); }
.block { position: absolute; left: 6px; right: 6px; border-radius: 8px; padding: 6px 8px; font-size: 13px; line-height: 1.25; }
.block.other { top: 2px; height: 30px; background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--fg); }
.block.ours { top: 70px; height: 64px; background: var(--accent); color: var(--on-accent); transition: background .3s, opacity .3s; }
.block.ours small { display: block; opacity: .8; font: 500 11px/1.4 var(--mono); }
.block.later { top: 172px; height: 30px; background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--fg); }
.done .block.ours { background: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); text-decoration: line-through; }
.row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 6px; border-radius: 7px; font-size: 14px; }
.row + .row { border-top: 1px solid var(--line); }
.row.ours { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--on-accent); }
.tick svg { width: 12px; height: 12px; opacity: 0; }
.row.ours.is-done .tick, .row.static-done .tick { background: var(--green); border-color: var(--green); }
.row.ours.is-done .tick svg, .row.static-done .tick svg { opacity: 1; }
.row.ours.is-done .title { text-decoration: line-through; color: var(--muted); }
.pill { font: 600 11px/1 var(--body); padding: 4px 8px; border-radius: 99px; background: var(--line); color: var(--muted); white-space: nowrap; }
.pill.progress { background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--amber); }
.pill.done { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.who { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 600 10px/1 var(--body); background: var(--accent-2); color: #fff; margin-right: 6px; vertical-align: -4px; }
.map { position: relative; height: 150px; }
.map svg.links { position: absolute; inset: 0; width: 100%; height: 100%; }
.map svg.links path { stroke: var(--line); stroke-width: 2; fill: none; }
.node { position: absolute; padding: 6px 10px; border-radius: 9px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.node.root { left: 4%; top: 56px; font-weight: 600; }
.node.a { left: 44%; top: 8px; }
.node.ours { left: 44%; top: 56px; border-color: var(--accent); }
.node.c { left: 44%; top: 104px; }
.node .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 6px; transition: background .3s; }
.node.ours .dot { background: var(--amber); }
.done .node.ours .dot { background: var(--green); }
.demo-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 4px 0; font-size: 13px; color: var(--muted); }
.demo-foot button { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
@media (max-width: 560px) { .views { grid-template-columns: minmax(0, 1fr); } .plan { grid-row: auto; } }

/* Bands */
section.band { padding-block: 72px; }
section.band.alt { background: var(--band); border-block: 1px solid var(--line); }
.band-head { max-width: 640px; display: grid; gap: 12px; margin-bottom: 36px; }
.band-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.band-head p { color: var(--muted); font-size: 18px; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { display: grid; align-content: start; gap: 10px; padding-top: 16px; border-top: 2px solid var(--line); }
.feature h3 { font-size: 21px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .label { font: 500 12px/1 var(--mono); color: var(--accent); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }
.together { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.together div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; align-content: start; }
.together h3 { font: 600 16px/1.3 var(--body); }
.together p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .together { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .together { grid-template-columns: minmax(0, 1fr); } }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.price.featured { border: 2px solid var(--accent); }
.price h3 { font-size: 22px; }
.amount { font: 700 34px/1 var(--display); }
.amount small { font: 500 14px/1 var(--body); color: var(--muted); }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.price li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.price li::before { content: "✓"; color: var(--green); font-weight: 700; }
.price .button { margin-top: auto; justify-content: center; }
.price .for { color: var(--muted); font-size: 14px; }
.fine { margin-top: 18px; color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prices { grid-template-columns: minmax(0, 1fr); } }

/* Questions */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin-top: 8px; font-size: 15px; }
@media (max-width: 760px) { .faq { grid-template-columns: minmax(0, 1fr); } }

.pains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.pains li { display: grid; gap: 4px; padding-left: 18px; border-left: 3px solid var(--rose); }
.pains b { font-size: 18px; font-family: var(--display); font-weight: 700; }
.pains span { color: var(--muted); }
@media (max-width: 760px) { .pains { grid-template-columns: minmax(0, 1fr); } }
.picture-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.picture-grid .band-head { margin-bottom: 0; }
.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--accent); }
.moments li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 12px 0 12px 18px; position: relative; }
.moments li::before { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.moments time { font: 500 13px/1.6 var(--mono); color: var(--accent); }
.moments li:last-child p { font-weight: 600; }
@media (max-width: 860px) { .picture-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .moments li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.special { font-size: 14px; color: var(--green); font-weight: 600; }
.special s { color: var(--muted); font-weight: 500; margin-right: 4px; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.contact .band-head { margin-bottom: 0; }
.contact .ctas { display: flex; gap: 12px; margin-top: 8px; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.contact-form .wide { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); width: 100%; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-foot span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .contact-form { grid-template-columns: minmax(0, 1fr); } }
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-block: 28px; font-size: 14px; color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Jump to top: appears once the reader is a screen down. */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 6; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); box-shadow: 0 10px 30px -12px rgba(20, 25, 60, .5); cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top svg { width: 20px; height: 20px; }

/* Privacy and Terms */
.doc { max-width: 720px; padding-block: 48px 72px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); }
.doc .updated { color: var(--muted); margin-top: 8px; }
.doc .text { margin-top: 28px; display: grid; gap: 14px; }
.doc .text h2 { font-size: 22px; margin-top: 20px; }
.doc .text h3 { font-size: 18px; margin-top: 10px; }
.doc .text ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc .text mark { background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--fg); border-radius: 4px; padding: 0 4px; }
.doc .back { display: inline-block; margin-bottom: 18px; color: var(--muted); }
.contact-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .to-top { transition: none; } }
