/* Economy Flow landing · draft v1 · same tokens, type and mark as the app (:2013) and the front door (:2010 app.css).
   Light theme by default, as on :2010. The guide band uses the app's dark palette. Body measure 66ch; display lines broken by hand (span.l). */
:root {
  /* light palette, copied from economy-flow-platform/app/app.css [data-theme="light"] */
  --bg: #F3F5F1;
  --bg-2: #E8EEE8;
  --panel: #FFFFFF;
  --line: #C4D2C8;
  --line-soft: #DAE3DC;
  --fg: #16301F;
  --fg-2: #3D5A48;
  --fg-3: #6A8373;
  --accent: #AF8130;
  --held: #2C7A55;
  --gap: #C9472C;
  --shadow: 0 14px 30px -18px rgba(16,41,42,.35);
  /* dark palette, for the guide band */
  --dark-bg: #0E1D18;
  --dark-panel: #183128;
  --dark-line: #2C4B3E;
  --dark-fg: #E7EFE9;
  --dark-fg-2: #A8BFB3;
  --dark-fg-3: #76917F;
  --dark-accent: #D9A94E;
  --nb-navy: #0B3A41;
  --font-display: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.15rem; line-height: 1.3; }
.l { display: block; }
p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }
.kicker { font-family: var(--font-data); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 1.2em; }
.body { color: var(--fg-2); }

/* buttons: the front door's .app-open-btn */
.btn { display: inline-block; padding: 12px 18px; border-radius: 8px; font: 600 15px/1.3 var(--font-body); background: var(--accent); color: var(--bg); text-decoration: none; }
.btn:hover, .btn:focus-visible { filter: brightness(1.08); text-decoration: underline; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.link { text-decoration: underline; text-underline-offset: 3px; color: var(--fg-2); }
.link:hover { color: var(--accent); }
.ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ctas.center { justify-content: center; margin-top: 2.5rem; }

/* topbar: the app's shell */
.top { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-soft); background: var(--bg); position: sticky; top: 0; z-index: 2; }
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; text-decoration: none; }
.nbmark { height: 22px; width: auto; flex: none; align-self: center; }
.efmark { height: 26px; width: auto; flex: none; align-self: center; }   /* the Economy Flow mark (logo Direction 8, Daniel 10/23): the hero graph cut to three, two, one; it replaced the NeighborBuilt block */
.brand b .efo { display: inline-block; width: .56em; height: .56em; margin: 0 .025em; vertical-align: baseline; }   /* the ring that is the "o" of Flow */
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { color: var(--fg-3); font-size: 13px; white-space: nowrap; }
.top nav, .foot nav { display: flex; gap: 22px; align-items: center; }
.top nav a:not(.btn), .foot nav a { text-decoration: none; color: var(--fg-2); font-size: 14px; }
.top nav a:not(.btn):hover, .foot nav a:hover { color: var(--accent); }

section { padding: 96px 0; }
.hero { padding: 112px 0 96px; }
.stakes { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stakes h2 { margin-bottom: 1rem; }
.three { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.three.four { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.three li { max-width: 40ch; color: var(--fg-2); font-size: 1rem; }
.three strong { display: block; color: var(--fg); margin-bottom: 0.3em; font-weight: 600; }

.value h2 { margin-bottom: 2rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.5em; }
.card p { font-size: 0.95rem; color: var(--fg-2); margin: 0; }

.guide { background: var(--dark-bg); color: var(--dark-fg); }
.guide .empathy { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; max-width: 30ch; margin-bottom: 2.5rem; text-wrap: balance; }
.authority { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.authority > div { background: var(--dark-panel); border: 1px solid var(--dark-line); border-radius: var(--r); padding: 22px 24px; }
.authority h3 { margin-bottom: 0.4em; color: var(--dark-accent); }
.authority p { color: var(--dark-fg-2); font-size: 0.98rem; }

.plan h2 { margin-bottom: 2rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.n { display: inline-block; font-family: var(--font-data); font-size: 13px; padding: 4px 9px; border-radius: 999px; background: var(--held); color: #fff; font-weight: 500; margin-bottom: 0.8rem; }
.steps h3 { margin-bottom: 0.4em; }
.steps p { color: var(--fg-2); font-size: 0.98rem; }
.agreement { margin-top: 3rem; padding: 24px 28px; background: var(--panel); border: 1px solid var(--line-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; }
.agreement h3 { margin-bottom: 0.6em; }
.agreement ul { margin: 0; padding-left: 1.2em; color: var(--fg-2); }
.agreement li { margin-bottom: 0.3em; }

.story { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.story h2 { margin-bottom: 1.5rem; }
.story p { font-size: 1.05rem; }
.pull { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; line-height: 1.3; margin: 1.6em 0; color: var(--held); }

.walk h2 { margin-bottom: 1.5rem; }
.frame { aspect-ratio: 16 / 9; max-width: 860px; border: 1px dashed var(--line); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--panel); }
.frame p { margin: 0 0 0.5em; color: var(--fg-2); max-width: 44ch; }
.frame .note { font-family: var(--font-data); font-size: 0.8rem; color: var(--fg-3); }

.bring { text-align: center; }
.bring .wrap.narrow { max-width: 900px; }
.bring .wrap { display: flex; flex-direction: column; align-items: center; }
.bring h2 { margin-bottom: 1rem; }
.bring .ctas { justify-content: center; }

/* footer: the front door's .site-footer */
.foot { padding: 24px 0 32px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--fg-3); }
.foot p { margin: 0; }


/* one statement per line (Daniel 10/20) */
p.s { margin: 0 0 0.35em; }
.lines { margin: 0 0 1.4em; }
.lines:last-child { margin-bottom: 0; }
.lines.center { text-align: center; }
.lines.center p { margin-left: auto; margin-right: auto; }
.lede { margin: 1.2em 0 1.6em; }
.lede p.s { font-size: 1.2rem; color: var(--fg-2); margin-bottom: 0.2em; }
.three strong { margin-bottom: 0.4em; }
.card p.s, .steps p.s, .authority p.s { margin-bottom: 0.3em; }
.guide .empathy { max-width: none; }
.statement { margin: 0 0 1.6rem; padding: 0; border: 0; }
.statement p.s { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.3; margin-bottom: 0.45em; max-width: none; text-wrap: balance; }
.who { font-weight: 600; margin: 0; color: var(--dark-accent); }
.who span { display: block; font-weight: 400; color: var(--dark-fg-2); font-size: 0.95rem; }
.note.draft { font-family: var(--font-data); font-size: 0.78rem; color: var(--dark-fg-3); margin-top: 1.4rem; }
.pull { max-width: none; }
.frame p.s { margin-bottom: 0.3em; }

/* v3: sections restored from the pitch doc */
.believe .stand { margin: 0 0 2rem; padding: 0; border: 0; }
.believe .stand p.s { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.3; max-width: none; margin-bottom: 0.5em; text-wrap: balance; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0 0 2rem; }
.ways > div { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 20px 22px; }
.ways h3 { margin-bottom: 0.5em; color: var(--fg-3); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-data); font-weight: 500; }
.ways p.s:first-of-type { font-weight: 600; }
.ways p.s { color: var(--fg-2); font-size: 0.98rem; }
.cards.five { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cards.five .card { padding: 18px; }
.cards.five h3 { font-size: 1.02rem; }
.measured { margin-top: 1.6rem; font-family: var(--font-data); font-size: 0.85rem; color: var(--fg-3); max-width: none; }
.stakes .pull { margin: 2.2rem 0 0; }
.guide .empathy { margin-bottom: 2rem; }

/* hero art: the app's own dependency graph (Choose the path), light theme, one route lit */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art img { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 60%; max-width: 940px; opacity: 0.85;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%); mask-image: linear-gradient(90deg, transparent 0%, #000 28%); }
.hero h1, .hero .lede, .hero .kicker { max-width: 52%; }
@media (max-width: 1100px) { .hero-art img { width: 70%; opacity: 0.45; } .hero h1, .hero .lede, .hero .kicker { max-width: 60%; } }
/* section 2 art: the app's Break it down screen (objective → pieces → workstreams → tasks), faded */
.stakes { position: relative; overflow: hidden; }
.stakes .wrap { position: relative; z-index: 1; }
.stakes-art { position: absolute; inset: 0; pointer-events: none; }
.stakes-art img { position: absolute; right: -2%; top: 0; width: 58%; max-width: 900px; opacity: 0.2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%), linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%), linear-gradient(180deg, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
@media (max-width: 860px) { .stakes-art img { width: 140%; right: -40%; opacity: 0.1; } }

@media (max-width: 860px) { .hero-art img { width: 120%; right: -30%; top: auto; bottom: -10%; transform: none; opacity: 0.25; } .hero h1, .hero .lede, .hero .kicker { max-width: none; } }

@media (max-width: 860px) {
  section { padding: 72px 0; }
  .hero { padding: 80px 0 64px; }
  .three, .three.four, .cards, .cards.five, .steps, .authority, .ways { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
  .brand span { display: none; }
  .l { display: inline; }
  .l + .l::before { content: " "; }
}
