/* Provision — visual identity shared with Bow Labs.
   Cool river palette (Bow River greens), deep pine for the dark sections, a Fraunces
   display + Inter body + JetBrains Mono utility pairing, with warm sand reserved for the
   one thing that must catch the eye on a food safety plan: a critical control point. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;450;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --black: #0b1f16;
  --black-2: #122a20;
  --black-3: #1b3a2d;
  --cream: #e9ede8;
  --cream-2: #dbe3da;
  --white: #ffffff;
  --ink: #0f221b;
  --ink-2: #46564d;
  --ink-3: rgba(15,34,27,0.34);
  --light: #f4f7f2;
  --light-2: rgba(233,238,232,0.72);
  --light-3: rgba(233,238,232,0.46);
  --line: rgba(15,34,27,0.12);
  --line-d: rgba(255,255,255,0.13);
  --line-d2: rgba(255,255,255,0.08);
  --line-l: rgba(15,34,27,0.12);
  --line-l2: rgba(15,34,27,0.07);
  --clay: #2f6b4f;
  --clay-soft: rgba(47,107,79,0.12);
  --sand: #c4863a;
  --sand-soft: rgba(196,134,58,0.14);
  --r: 12px;
  --r-lg: 18px;
  --r-sm: 8px;
  --maxw: 1240px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .wrap { padding: 0 22px; } }

/* Typography */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; }
h1 { font-size: clamp(2.9rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); line-height: 1.04; }
h3 { font-size: 1.5rem; line-height: 1.1; }
.h-sub { font-family: var(--sans); }
p { color: var(--ink-2); }
a { color: inherit; text-decoration: none; }
.eyebrow { font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); }
.lead { font-family: var(--sans); font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.55; font-weight: 400; }

/* Section theming */
.s { padding: clamp(90px, 13vw, 168px) 0; }
.s-dark { background: var(--black); color: var(--light-2); }
.s-dark h1, .s-dark h2, .s-dark h3 { color: var(--light); }
.s-dark p { color: var(--light-2); }
.s-warm { background: var(--cream); color: var(--ink-2); }
.s-warm h1, .s-warm h2, .s-warm h3 { color: var(--ink); }
.s-cream2 { background: var(--cream-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-family: var(--sans); font-size: 0.97rem; font-weight: 500; line-height: 1; padding: 13px 24px; border-radius: 100px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s, opacity .25s; }
.btn-light { background: var(--light); color: var(--black); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--light); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-outline-d { background: transparent; color: var(--light); border-color: var(--line-d); }
.btn-outline-d:hover { border-color: rgba(255,255,255,0.4); transform: translateY(-1px); }
.btn-outline-l { background: transparent; color: var(--ink); border-color: var(--line-l); }
.btn-outline-l:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.tlink { font-weight: 500; color: inherit; opacity: .9; }
.tlink::after { content: " \2192"; }
.tlink:hover { opacity: 1; }

/* Nav */
header.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { font-family: var(--serif); font-weight: 500; font-size: 1.42rem; letter-spacing: -0.015em; color: var(--light); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a.navlink { color: rgba(244,242,236,0.72); font-family: var(--sans); font-size: 0.92rem; font-weight: 450; transition: color .2s; }
.nav-links a.navlink:hover { color: var(--light); }
@media (max-width: 820px) { .nav-links a.navlink { display: none; } }

/* Hero */
.hero { position: relative; padding-top: 150px; padding-bottom: 110px; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 50%; top: -10%; width: 1100px; height: 560px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(60,150,105,0.20), transparent 62%); pointer-events: none; }
.hero-inner { position: relative; max-width: 920px; }
.hero .eyebrow { display: block; margin-bottom: 26px; }
.hero h1 { max-width: 16ch; margin-bottom: 28px; }
.hero .lead { max-width: 60ch; color: var(--light-2); margin-bottom: 40px; }

/* Prompt box */
.promptbox { background: var(--black-2); border: 1px solid var(--line-d); border-radius: var(--r-lg); padding: 22px 22px 18px; max-width: 720px; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7); }
.promptbox .ph { color: rgba(244,242,236,0.42); font-size: 1.02rem; min-height: 58px; line-height: 1.5; }
.promptbox .pb-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; border-top: 1px solid var(--line-d2); padding-top: 16px; }
.promptbox .pb-hint { font-size: 0.84rem; color: var(--light-3); }
.promptbox .pb-actions { display: flex; gap: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; max-width: 720px; }
.pill-link { font-size: 0.85rem; color: rgba(244,242,236,0.66); border: 1px solid var(--line-d); border-radius: 100px; padding: 7px 15px; transition: border-color .2s, color .2s; }
.pill-link:hover { color: var(--light); border-color: rgba(255,255,255,0.35); }
.hero-disc { margin-top: 34px; font-size: 0.82rem; color: var(--light-3); max-width: 60ch; }

/* Document preview window */
.preview-wrap { position: relative; margin-top: 84px; }
.window { background: var(--light); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 60px 120px -50px rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.08); }
.win-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--cream-2); border-bottom: 1px solid var(--line-l); }
.win-dots { display: flex; gap: 7px; }
.win-dots span { width: 11px; height: 11px; border-radius: 50%; background: #cdc7ba; }
.win-title { font-size: 0.85rem; color: var(--ink-2); font-weight: 500; }
.win-body { display: grid; grid-template-columns: 232px 1fr; }
.win-side { border-right: 1px solid var(--line-l); padding: 18px 0; background: #faf8f3; }
.win-side .si { padding: 9px 22px; font-size: 0.86rem; color: var(--ink-2); border-left: 2px solid transparent; }
.win-side .si.on { color: var(--ink); border-left-color: var(--clay); background: #fff; font-weight: 500; }
.win-main { padding: 30px 34px; }
.win-main .wm-tag { font-size: 0.72rem; font-weight: 600; color: var(--clay); background: var(--clay-soft); padding: 3px 9px; border-radius: 6px; }
.win-main h4 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); margin: 14px 0 12px; }
.win-main .wm-text { font-size: 0.95rem; color: var(--ink-2); line-height: 1.55; max-width: 54ch; margin-bottom: 22px; }
.win-main .wm-card { border: 1px solid var(--line-l); border-radius: var(--r-sm); padding: 4px 18px; }
.win-main .wm-row { display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line-l2); font-size: 0.93rem; }
.win-main .wm-row:first-child { border-top: 0; }
.win-main .wm-k { width: 78px; flex: 0 0 auto; font-size: 0.71rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.win-main .wm-v { flex: 1; color: var(--ink-2); }
.win-main .wm-pill { font-size: 0.71rem; color: var(--clay); background: var(--clay-soft); padding: 2px 10px; border-radius: 100px; }
@media (max-width: 760px) { .win-body { grid-template-columns: 1fr; } .win-side { display: none; } .win-main { padding: 24px; } }

/* Editorial split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 44px; } }
.split .eyebrow { display: block; margin-bottom: 22px; }
.split h2 { margin-bottom: 22px; max-width: 16ch; }
.split p { font-size: 1.05rem; max-width: 46ch; }
.excerpt { border: 1px solid var(--line-l); border-radius: var(--r-lg); background: var(--white); padding: 30px; box-shadow: 0 30px 60px -40px rgba(25,24,21,0.25); }
.excerpt .ex-tag { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; color: var(--clay); }
.excerpt h4 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--ink); margin: 10px 0 18px; }
.excerpt .ex-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-l2); font-size: 0.92rem; }
.excerpt .ex-row .k { color: var(--ink-3); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.excerpt .ex-row .v { color: var(--ink-2); }

/* Big feature blocks (dark) */
.feat-head { max-width: 18ch; margin-bottom: 64px; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr; } }
.feat { padding: 38px 36px 38px 0; border-top: 1px solid var(--line-d); }
.feats .feat:not(:last-child) { padding-right: 44px; }
.feat .fn { font-family: var(--serif); font-size: 2.6rem; color: var(--clay); line-height: 1; margin-bottom: 22px; display: block; }
.feat h3 { font-size: 1.35rem; margin-bottom: 12px; color: var(--light); }
.feat p { font-size: 0.98rem; color: var(--light-2); }

/* Timeline */
.tl-head { margin-bottom: 56px; max-width: 20ch; }
.timeline { display: grid; gap: 0; }
.tl-step { display: grid; grid-template-columns: 120px 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line-l); align-items: baseline; }
.tl-step:last-child { border-bottom: 1px solid var(--line-l); }
.tl-step .tn { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); opacity: 0.3; line-height: 1; }
.tl-step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.tl-step p { font-size: 1rem; max-width: 56ch; }
@media (max-width: 680px) { .tl-step { grid-template-columns: 1fr; gap: 12px; } .tl-step .tn { font-size: 1.6rem; } }

/* Compliance statement (dark) */
.statement { max-width: 22ch; }
.statement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
@media (max-width: 900px) { .statement-grid { grid-template-columns: 1fr; gap: 36px; } }
.statement-grid .body p { font-size: 1.06rem; color: var(--light-2); margin-bottom: 16px; max-width: 52ch; }
.statement-grid .body p:last-child { margin-bottom: 0; }

/* Intake form (warm, premium) */
.intake-head { max-width: 22ch; margin-bottom: 14px; }
.intake-sub { font-size: 1.05rem; color: var(--ink-2); max-width: 54ch; margin-bottom: 48px; }
.form-shell { background: var(--white); border: 1px solid var(--line-l); border-radius: var(--r-lg); box-shadow: 0 40px 90px -55px rgba(25,24,21,0.4); overflow: hidden; }
.form-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 32px; border-bottom: 1px solid var(--line-l); }
.form-top .ft-t { font-family: var(--sans); font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.form-inner { padding: 40px 36px; }
@media (max-width: 600px) { .form-inner { padding: 26px 22px; } }
fieldset { border: 0; margin-bottom: 38px; }
fieldset:last-of-type { margin-bottom: 26px; }
legend { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); margin-bottom: 22px; }
.field { margin-bottom: 24px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-family: var(--sans); font-size: 0.95rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field .help { font-size: 0.85rem; color: var(--light-3); margin-bottom: 10px; }
.field input[type=text], .field textarea, .field select { width: 100%; font: inherit; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: #f5f8f4; border: 1px solid var(--line-l); border-radius: var(--r-sm); padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--clay); background: #fff; box-shadow: 0 0 0 3px var(--clay-soft); }
.field input::placeholder, .field textarea::placeholder { color: #b6b2a7; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line-l); border-radius: var(--r-sm); padding: 12px 15px; font-size: 0.95rem; color: var(--ink-2); cursor: pointer; user-select: none; transition: border-color .2s, background .2s; }
.check:hover { border-color: #c9c3b6; }
.check[aria-pressed="true"] { border-color: var(--clay); background: var(--clay-soft); color: var(--ink); }
.check .box { width: 17px; height: 17px; border: 1px solid #c9c3b6; border-radius: 4px; flex: 0 0 auto; display: grid; place-items: center; }
.check[aria-pressed="true"] .box { background: var(--clay); border-color: var(--clay); }
.check[aria-pressed="true"] .box::after { content: "\2713"; color: #fff; font-size: 11px; }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-l); flex-wrap: wrap; }
.form-actions .note { font-size: 0.84rem; color: var(--light-3); }

/* Result */
.spin { display: none; align-items: center; gap: 12px; padding: 46px 0 8px; color: var(--ink-2); font-size: 0.95rem; }
.spin.show { display: flex; }
.spin .ring { width: 20px; height: 20px; border: 2px solid var(--line-l); border-top-color: var(--clay); border-radius: 50%; animation: turn .8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.doc { display: none; margin-top: 34px; border-top: 1px solid var(--line-l); padding-top: 30px; }
.doc.show { display: block; }
.doc-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.doc-meta .title { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--ink); }
.doc-actions { display: flex; gap: 10px; }
.acc { border-top: 1px solid var(--line-l); }
.acc-head { display: flex; align-items: center; gap: 14px; padding: 20px 0 18px; cursor: pointer; user-select: none; }
.acc-head h4 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: var(--ink); flex: 1; display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; }
.acc-head .tag { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; color: var(--clay); background: var(--clay-soft); padding: 2px 8px; border-radius: 6px; }
.acc-chev { color: #b6b2a7; transition: transform .25s var(--ease); }
.acc.open .acc-chev { transform: rotate(90deg); }
.acc-body { display: none; padding-bottom: 22px; }
.acc.open .acc-body { display: block; }
.acc-body p { font-size: 0.96rem; color: var(--ink-2); margin-bottom: 10px; max-width: 80ch; }
.rcards { display: grid; gap: 12px; margin: 14px 0 4px; }
.rcard { border: 1px solid var(--line-l); border-radius: var(--r-sm); padding: 18px 20px; background: #f5f8f4; }
.rc-title { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; color: var(--ink); margin-bottom: 11px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rc-field { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 5px 0; font-size: 0.92rem; }
.rc-field .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.rc-field .v { color: var(--ink-2); }
@media (max-width: 560px) { .rc-field { grid-template-columns: 1fr; gap: 2px; } }
.pill { font-size: 0.73rem; font-weight: 500; padding: 2px 11px; border-radius: 100px; border: 1px solid var(--line-l); background: var(--cream); color: var(--ink-2); white-space: nowrap; }
.pill.bio { border-color: rgba(43,107,107,0.32); background: rgba(43,107,107,0.1); color: #246a6a; }
.pill.chem { border-color: #ddd2bb; background: #f4eedf; color: #8a6a2a; }
.pill.phys { border-color: #cfd2d6; background: #eef0f2; color: #59616b; }
.pill.allergen { border-color: #d8c4c0; background: #f3e7e3; color: #93513f; }
.pill.reg { border-color: var(--line-l); background: var(--cream); color: var(--ink-3); }
.doc-note { margin-top: 26px; border-radius: var(--r-sm); background: var(--cream-2); padding: 20px 22px; font-size: 0.88rem; color: var(--ink-2); line-height: 1.55; }

/* Footer */
footer { background: var(--black); color: var(--light-2); padding: 80px 0 44px; }
.foot-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr; gap: 40px; } }
.foot-brand .brand { color: var(--light); }
.foot-about { font-size: 0.92rem; color: var(--light-2); max-width: 34ch; line-height: 1.6; margin-top: 16px; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 460px; }
@media (max-width: 520px) { .foot-cols { gap: 28px; } }
.foot-col h5 { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--light); margin-bottom: 14px; }
.foot-col a { display: block; color: rgba(244,242,236,0.6); font-size: 0.9rem; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--light); }
.foot-bottom { border-top: 1px solid var(--line-d2); margin-top: 56px; padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--light-3); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; } .reveal[data-d="2"] { transition-delay: .16s; } .reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .hero::after { display: none; } }

/* Print: plan only */
@media print {
  body.printing { background: #fff; color: #000; }
  body.printing header.nav, body.printing .hero, body.printing #product, body.printing #features,
  body.printing #how, body.printing #compliance, body.printing footer, body.printing .intake-head,
  body.printing .intake-sub, body.printing .form-top, body.printing #pcpForm, body.printing #spin,
  body.printing .doc-actions, body.printing .acc-chev { display: none !important; }
  body.printing .s { padding: 0 !important; background: #fff !important; }
  body.printing .form-shell { border: 0 !important; box-shadow: none !important; }
  body.printing .form-inner { padding: 0 !important; }
  body.printing #doc { display: block !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
  body.printing .acc-body { display: block !important; }
  body.printing .rcard { break-inside: avoid; background: #fff !important; }
  body.printing .doc-meta .title, body.printing .acc-head h4 { color: #000; }
}
@page { margin: 18mm; }

/* Hero pipeline diagram */
.flow-panel { background: var(--cream); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-lg); padding: 42px 46px 46px; box-shadow: 0 60px 120px -55px rgba(0,0,0,0.75); }
.flow { display: grid; grid-template-columns: 1fr 72px 1fr 72px 1fr; grid-template-areas: "c1 . c2 . c3" "k1 a1 k2 a2 k3"; row-gap: 24px; align-items: stretch; }
.flow .cap { display: flex; align-items: center; gap: 10px; }
.flow .cap .n { font-family: var(--serif); font-size: 1.12rem; color: var(--clay); line-height: 1; }
.flow .cap .t { font-family: var(--sans); font-size: 0.73rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: #837e72; }
.flow .fcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 12px 32px rgba(25,24,21,0.06); }
.flow .fcard h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.flow .row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid #f1ede4; }
.flow .row:first-of-type { border-top: 0; }
.flow .row .k { font-size: 0.78rem; color: #837e72; width: 84px; flex: 0 0 auto; }
.flow .row .v { flex: 1; color: var(--ink-2); font-size: 0.9rem; }
.flow .engine { background: var(--ink); border-color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 26px 42px; }
.flow .engine .emark { font-family: var(--serif); font-size: 2.6rem; color: var(--light); line-height: 1; margin-bottom: 14px; }
.flow .engine h3 { color: var(--light); margin-bottom: 8px; }
.flow .engine p { font-size: 0.88rem; color: var(--light-2); line-height: 1.5; max-width: 24ch; margin: 0; }
.flow .arrow { align-self: center; display: flex; justify-content: center; }
.flow .arrow svg { width: 52px; height: 18px; }
.flow .docbar { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid #f1ede4; white-space: nowrap; }
.flow .docbar span:not(.tt) { width: 8px; height: 8px; border-radius: 50%; background: #cfc8b6; flex: 0 0 auto; }
.flow .docbar .tt { font-size: 0.74rem; color: #837e72; margin-left: 18px; white-space: nowrap; }
.flow .sec { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid #f1ede4; font-size: 0.84rem; color: var(--ink-2); }
.flow .sec:first-of-type { border-top: 0; }
.flow .sec .tag { font-family: var(--mono); font-size: 0.64rem; font-weight: 500; color: var(--clay); background: var(--clay-soft); border: 1px solid rgba(47,107,79,0.3); padding: 2px 8px; border-radius: 5px; }
@media (max-width: 820px) {
  .flow-panel { padding: 28px 22px 30px; }
  .flow { grid-template-columns: 1fr; grid-template-areas: "c1" "k1" "c2" "k2" "c3" "k3"; row-gap: 12px; }
  .flow .arrow { display: none; }
  .flow .cap { margin-top: 8px; }
}

/* Generated process flow diagram inside a drafted plan */
.pflow { margin: 14px 0 4px; display: flex; flex-direction: column; align-items: stretch; }
.pflow-step { display: flex; align-items: center; gap: 14px; background: #f4f7f3; border: 1px solid #d6e0d6; border-radius: 12px; padding: 12px 16px; }
.pflow-step .pf-n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: #e2ece3; color: #4f6157; font-family: var(--mono); font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.pflow-step .pf-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.pflow-step .pf-name { font-weight: 600; color: #16140f; font-size: 0.98rem; }
.pflow-step .pf-ctrl { font-size: 0.84rem; color: #7a766c; line-height: 1.4; }
.pflow-step .pf-badge { flex: 0 0 auto; font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: #a06a1f; border: 1px solid rgba(196,134,58,0.5); border-radius: 999px; padding: 3px 9px; }
.pflow-step.ccp { border-color: rgba(196,134,58,0.5); border-left: 3px solid var(--sand); background: #fbf4e8; }
.pflow-step.ccp .pf-n { background: var(--sand); color: #fff; }
.pflow-arrow { align-self: center; color: #c9c1b0; font-size: 1.1rem; line-height: 1; margin: 5px 0; }
@media (max-width: 560px) { .pflow-step .pf-badge { display: none; } }
