/* bluep site: page CSS. The look follows flowengineering.com (JP's reference, 28 November 2026) where the kit's
   defaults differ, and everything that sits inside a picture. Layout, cards, forms and motion come from the kit. */

/* ------------------------------------------------------------------ the look */
/* regular-weight headlines with tight tracking; smaller section headings and leads than the kit's defaults */
:root { --t-h2: clamp(28px, .952vw + 24.3px, 38px); --t-lead: 18px; --t-card: 18px; --t-h3: 22px; --btn-h: 42px; --btn-h-sm: 34px; }
@media (min-width: 1024px) { :root { --t-lead: 18px; --t-card: 19px; --t-h3: 24px; } }
body { letter-spacing: -0.011em; font-optical-sizing: auto; }
h1, h2, h3 { font-weight: 400; }
h2, .t-h2 { letter-spacing: -0.03em; line-height: 1.12; }
.card > h3, .card > h4, .card--plan h3, .t-card { font-weight: 500; letter-spacing: -0.015em; }
.btn { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; padding-inline: 20px; }
html[data-buttons="pill"] .btn--primary::after { content: none; }   /* plain buttons, as on the reference */
html[data-buttons="pill"] .btn--secondary, html[data-buttons="pill"] .btn--secondary:hover { background: var(--bg); border-color: var(--line-strong); }
.nav__logo { font-weight: 600; letter-spacing: -0.02em; }
.nav__logo svg { color: var(--p-accent); }
.nav__link { color: var(--muted); }
.nav__link:hover, .nav__link[aria-current] { color: var(--ink); }
/* the lit ground behind every picture: a cool paper grey with one soft light, a trace of the blueprint's blue */
html[data-ground] { --ground-bg: #e9edf2; --ground-surface: #f6f8fa; --ground-ink: #0c0c0d; --ground-muted: #575c64; --ground-accent: #1d55d8; }
.bp-lit, .hero__stage.bp-stage, .card--open > .panel { border: 0; background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 85%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 88%, var(--ground-accent)), transparent 70%),
    var(--ground-bg);
  --frag: #ffffff; --fx-ink: #101214; --fx-muted: #5d6268; --fx-accent: var(--p-accent); }
/* a lit frame on the dark band keeps the light ground's ink, so its white fragments read */
.ground-inverse .bp-lit { --ink: #101214; --muted: #5d6268; --line: rgb(16 18 20 / .1); }

/* ------------------------------------------------------------------ the hero: the words in one row, the picture under them */
.hero--product .hero__head { align-items: start; row-gap: var(--s-6); }
.hero--product .hero__head > .bp-hero-words { grid-column: 1 / span 6; }
.hero--product .hero__head > .bp-hero-side { grid-column: 7 / -1; display: grid; gap: var(--s-5); justify-items: start; padding-top: .35em; }
.hero--product h1 { text-wrap: balance; }
.hero--product .hero__lead { font-size: var(--t-body); line-height: 1.55; max-width: 46ch; }
.hero__kicker { color: var(--accent); font-size: var(--t-small); margin-bottom: var(--s-4); }
.hero__proof { font-size: var(--t-small); color: #48484a; max-width: 46ch; }
.field .t-small.muted { color: #48484a; }   /* small grey text that is read, not glanced at: 7:1 (text-contrast) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero--product .hero__head > .bp-hero-words { grid-column: 1 / span 6; }
  .hero--product .hero__head > .bp-hero-side { grid-column: 7 / -1; }
}
@media (max-width: 1023px) {
  .hero--product .hero__head > .bp-hero-words, .hero--product .hero__head > .bp-hero-side { grid-column: 1 / -1; }
}
.hero__stage { --fit-cut: 0px; }
.hero__stage .ui-win__bar, .hero__stage .bp-win__bar { padding-right: 14px; }
.bp-over > .bp-note, .bp-over > .bp-ask { width: 300px; }
.hero__stage .bp-main > .ui { width: 100%; }
@media (max-width: 639px) { .hero__stage .bp-main { --ax: 16px; --ay: 16px; width: 720px !important; } }
@media (max-width: 639px) {
  .hero--product .hero__stage { aspect-ratio: auto; flex: 1 1 auto; min-height: 180px; }
  .hero__stage .bp-over { display: none; }
  .hero__stage .ui-win__bar > .ui-meta, .hero__stage .ui-win__crumb > :is(i, b), .hero__stage .bp-win__crumb > :is(i, b) { display: none; }
}

/* the home page's film as the hero's background (JP, 29 November: a background, not a featured picture): edge to
   edge behind the whole first screen, grey and faint, clear behind the words and rising toward the fold */
.bp-filmhero { overflow: hidden; }
.bp-filmhero > .bp-herobg { position: absolute; inset: var(--nav, 72px) 0 0 0; z-index: 0; width: 100%; height: calc(100% - var(--nav, 72px)); max-width: none; object-fit: cover;
  opacity: .18; filter: grayscale(1) contrast(1.05); pointer-events: none;
  -webkit-mask: linear-gradient(to bottom, transparent 30%, #000 85%); mask: linear-gradient(to bottom, transparent 30%, #000 85%); }
/* the pause control at the foot of the hero's own column, on its lines */
.bp-filmhero .hero__in { position: relative; }
.bp-filmhero .hero__in > .loop-pause { position: absolute; right: 0; bottom: 0; }
/* a phone keeps the four-frame still: the film never loads there (film.js) */

/* ------------------------------------------------------------------ section heads: the heading left, its line right */
main .section-head--split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-4); align-items: end; }
main .section-head--split > div { grid-column: 1 / span 6; max-width: 680px; }
main .section-head--split > p { grid-column: 7 / -1; max-width: 46ch; color: var(--muted); font-size: var(--t-body); line-height: 1.55; margin: 0; }
@media (max-width: 1023px) { main .section-head--split > :is(div, p) { grid-column: 1 / -1; } }
.section-head > p { color: var(--muted); }

/* ------------------------------------------------------------------ the home page */
/* the four focus areas, by the kind of firm */
.bp-group { color: var(--muted); margin-bottom: var(--s-5); }
.bp-kicker { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.bp-num { color: var(--accent); font-variant-numeric: tabular-nums; }
.card--row > :is(.bp-kicker, .bp-fact) { min-height: 0; }
.card--open > .bp-kicker + h3 { margin-top: var(--s-3); }
.bp-fact { font-size: var(--t-small); color: var(--muted); padding-left: var(--s-3); border-left: 2px solid var(--accent); }
.bp-more { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-3); color: var(--accent); font-size: var(--t-small); font-weight: 500; }
.bp-more .m-arrow { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#teams .panel { --p-h: 272px; }
#method .panel { --p-h: 340px; }
@media (min-width: 1024px) and (max-width: 1279px) { #teams .panel { --p-h: 150px; } #teams .bp-more { display: none; } #method { --h: 2; } }
@media (min-width: 640px) and (max-width: 1023px) { #teams .panel { --p-h: 220px; } }
@media (max-width: 639px) {
  #teams .panel { --p-h: 80px; } #teams .card--open:last-child > .panel { --p-h: 170px; } #teams .bp-group { display: none; } #teams .card--open > p:not(.bp-kicker) { display: none; } #method .panel { --p-h: 220px; }
  #teams .stage > .at-over { display: none; }
  #teams .stage { -webkit-mask: none; mask: none; }
  #teams .ui-checks__list > li:nth-child(n+3), #teams .ui-checks__bar { display: none; }
  #teams .bp-fact, #teams .bp-more { display: none; }
  .card h3 > a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* the dark band: four rules, beside a part on its drawing */
.bp-trust { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-5); }
.bp-trust > li { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.bp-trust h3 { font-family: var(--font-text); font-size: var(--t-body); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.bp-trust p { color: var(--muted); font-size: var(--t-small); line-height: 1.5; max-width: 56ch; }
.bp-benchsm { --ratio: 62%; margin: 0; }
.bp-approve { --ratio: 80%; }
.bp-approve .bp-note { width: 340px; }
@media (max-width: 639px) { .bp-approve { --ratio: 180%; } .bp-approve .bp-note { width: min(340px, calc(100vw - 2 * var(--gut) - 48px)); } .bp-benchsm { --ratio: 66%; } }
#questions .bp-benchsm { --ratio: 54%; }
@media (max-width: 639px) { #questions .bp-benchsm { --ratio: 100%; } }

/* the questions' second group continues the first list on a wide screen */
@media (min-width: 1024px) and (max-width: 1279px) { #questions .bp-benchsm { display: none; } #questions .faq__item p { font-size: var(--t-small); } }

/* ------------------------------------------------------------------ pieces inside the pictures */
/* bluep's own window (the drawing workspace), drawn as live HTML around the engine's real sheet or a screenshot */
.bp-win { background: var(--u-bg); border-radius: var(--u-r); overflow: hidden; box-shadow: var(--u-shadow); }
.bp-win__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--u-line);
  background: var(--u-fill); font-size: 13px; line-height: 16px; color: var(--u-muted); white-space: nowrap; }
.bp-win__crumb { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.bp-win__crumb svg { width: 16px; height: 16px; flex: none; color: var(--p-accent); }
.bp-win__crumb b { font-weight: 500; color: var(--u-ink); }
.bp-win__crumb i { font-style: normal; }
.bp-win > .bp-shot { display: block; width: 100%; height: auto; }
/* the sheet is paper: white with black linework on the app's grey surround; the frame cuts it at the right and the foot */
.bp-paper { background: #e6e8ec; padding: 20px 0 0 20px; overflow: hidden; }
.bp-paper > img { display: block; width: var(--bp-sheet-w, 960px); max-width: none; height: auto; background: #fff; box-shadow: 0 1px 2px rgb(16 18 20 / .14); }
.hero__stage .bp-paper { height: 560px; }

/* a small card laid over a picture's window: what one draft produced (layout.js steps it) */
.bp-note { background: var(--u-bg); border-radius: var(--u-r); padding: 14px 16px; box-shadow: var(--u-shadow); font-size: 13px; line-height: 1.4; }
.bp-note__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 4px; }
.bp-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--u-line); color: var(--u-text-2); }
.bp-note__line:first-of-type { border-top: 0; }
.bp-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--u-fill-2);
  color: var(--u-ink); font-style: normal; font-size: 12px; font-weight: 600; }
.bp-note__line b { font-weight: 500; color: var(--u-ink); }

/* the draft quote (the workspace's own card) */
.bp-ask { width: 320px; display: grid; gap: 8px; padding: 14px 16px; font-size: 13px; line-height: 1.45; }
.bp-ask__q { font-size: 14px; font-weight: 500; color: var(--u-ink); }
.bp-ask__a { color: var(--u-text-2); }
.bp-ask__row { display: flex; gap: 8px; margin-top: 4px; }

/* a mock's placeholder reads at 4.5:1 on its panel */
.ui-chat__ph { color: var(--u-text-2, #5d6268); }

/* a passed check is ticked, not struck through: these lists are checks, not a to-do list */
.ui-check.is-done .ui-check__label { color: var(--u-ink); }
.ui-check.is-done .ui-check__label::after { content: none; }

/* the build plan and the schedule: no side bar, the lead time or start before the status */
:is(.bp-lt, .bp-sched) { width: auto; }
:is(.bp-lt, .bp-sched) .ui-win__body { grid-template-columns: minmax(0, 1fr); }
:is(.bp-lt, .bp-sched) :is(.ui-win__cols, .ui-win__row) { grid-template-columns: 24px 124px minmax(0, 1fr) 72px 112px; padding-right: 24px; }
:is(.bp-lt, .bp-sched) .ui-win__cols > span { white-space: nowrap; }
:is(.bp-lt, .bp-sched) .ui-win__cols span:first-child { grid-column: 1 / 3; }
:is(.bp-lt, .bp-sched) .ui-win__age { text-align: left; color: var(--u-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 1279px) { :is(.bp-lt, .bp-sched) :is(.ui-win__cols, .ui-win__row) { grid-template-columns: 24px 112px minmax(0, 1fr) 68px 104px; } }
@media (max-width: 639px) { :is(.bp-lt, .bp-sched) :is(.ui-win__cols, .ui-win__row) { grid-template-columns: 24px minmax(0, 1fr) 48px 96px; padding-right: 12px; } :is(.bp-lt, .bp-sched) .ui-win__sub { display: none; } }
/* the offer comparison in a step card: the board's columns, a little narrower */
.bp-offers { width: 520px; }

/* a diagram on the lit ground, filling its frame or its card's panel */
.bp-engine { --ratio: 80%; }
.bp-engine > .dg, .bp-panel-dg > .dg { position: absolute; inset: 0; }
.panel > .bp-panel-dg { position: absolute; inset: 0; }
/* a still diagram beside text shows its still at once: no colour fades in when it is scrolled into view */
:is(.bp-engine, .bp-panel-dg, #teams) .dg, :is(.bp-engine, .bp-panel-dg, #teams) .dg * { transition: none; }
@media (max-width: 639px) { .bp-engine { --ratio: 100%; } }
@media (min-width: 1024px) and (max-width: 1279px) { #s-lead .bp-engine { --ratio: 100%; } }

/* pictures in frames: a dark capture starts at its top left */
.bp-darkframe { background: #0d0e10; }
.bp-darkframe > .frame__img { object-position: 0 0; }
.bp-readyvis, .bp-readyphoto { --ratio: 112%; }
@media (max-width: 639px) { .bp-readyvis, .bp-readyphoto { --ratio: 120%; } }

/* the steps' card panels on the team pages */
:is(#d-how, #s-how, #p-how, #m-how) .panel { --p-h: 264px; }
@media (max-width: 639px) { :is(#d-how, #s-how, #p-how, #m-how) .panel { --p-h: 230px; } #d-how .panel { --p-h: 224px; } }
.bp-after { margin-top: var(--s-6); }

/* the ready section's three columns share one height (SR-7) */
.grid.bp-eq { align-items: stretch; }

/* the production figures as the waits section's last row */
.bp-figs { margin-top: var(--s-8); }
#p-waits .frame--split { --ratio: 50%; }

/* screens per section where stacked content needs them (layout-v4.md, the tablet and the phone) */
@media (min-width: 1024px) { :is(#s-waits, #m-waits) .frame--split { --ratio: 54%; } }
@media (min-width: 1024px) and (max-width: 1279px) { :is(#d-how, #s-how, #p-how, #m-how) { --h: 2; } }
@media (min-width: 640px) and (max-width: 1023px) {
  :is(#method, #d-ready, #d-how, #s-how, #s-ready, #p-how, #p-ready, #m-how, #m-ready) { --h: 2; }
  #d-waits .frame--split { --ratio: 42%; }
  :is(#s-waits, #p-waits, #m-waits) .frame--split { --ratio: 50%; }
}
@media (max-width: 639px) {
  /* the waits on one phone screen: each wait by its name, a shorter picture */
  :is(#d-waits, #s-waits, #m-waits) .rows > li > p { display: none; }
  :is(#d-waits, #s-waits, #m-waits) .frame--split { --ratio: 60%; }
  #p-waits .frame--split { --ratio: 150%; }
}

/* ------------------------------------------------------------------ footnotes, the close, the privacy page */
ol.notes { margin: 0; padding-left: 0; list-style-position: inside; display: grid; gap: var(--s-2); font-size: var(--t-label); line-height: 1.5; color: var(--muted); max-width: 110ch; }
ol.notes a, sup > a { text-decoration: underline; text-underline-offset: 2px; }
sup { font-size: .7em; line-height: 0; }
sup > a { color: var(--action); padding-inline: 1px; }
@media (max-width: 639px) { sup > a { display: inline-block; padding: 14px 8px; margin: -14px -4px; } }
/* the name in the close: "bluep" has ascenders and a descender, so its line is as tall as its letters */
.close__word { line-height: 1.08; letter-spacing: -0.05em; }
footer.closing:has(ol.notes) .close__word { padding-bottom: .12em; }
.bp-prose h2 { font-size: var(--t-h3); margin-top: var(--s-4); }
.bp-prose p { max-width: 62ch; }

/* a phone: every section but the one-screen ones is exactly two screens (layout-v4.md: never a part of the next
   section in a section's last shot), and its pictures are sized so the content fills them */
@media (max-width: 639px) {
  main > section.section:not(#d-waits, #s-waits, #m-waits, #s-lead) { --hm: 2; }
}

/* links and buttons change colour at once: the kit's colour transitions read as a reveal on scroll to its own check,
   and nothing on these pages fades colour on hover (the underline still draws) */
html:not([data-motion="off"]) :is(.link, .m-link, p a:not([class]), .footer ul a, .footer .link) { transition: background-size var(--m-out) var(--m-ease); }
html:not([data-motion="off"]) .btn { transition: background-color var(--m-out) var(--m-ease), border-color var(--m-out) var(--m-ease), box-shadow var(--m-out) var(--m-ease), transform var(--m-press, 90ms) var(--m-ease); }
