/* Set B layout from approved v7 mockups. Live palette/fonts only. */
/* Set B: revamped layout. Live palette and font only. */
:root { --home-s3: 24px; }
.set-b { background: var(--site-paper); color: var(--site-ink); }
.footer-lab { margin: 0; font-size: 12px; color: var(--site-muted); }
.footer-lab a { color: var(--site-muted); }
.confirm { color: var(--site-accent); font-weight: 600; font-size: .9em; }
.b-wrap { box-sizing: border-box; max-width: var(--site-content-max); margin: 0 auto; padding: 0 var(--site-content-gutter); }
.b-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--site-accent); margin: 0 0 16px; }
.set-b h1, .set-b h2, .set-b h3 { color: var(--site-navy); font-family: var(--site-font); }
.set-b .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.b-hero { padding: 64px 0 48px; }
.b-hero-slim { padding: 64px 0 48px; }
.b-hero h1 { font-size: 68px; line-height: 1.04; letter-spacing: -.04em; font-weight: 700; margin: 0 0 32px; }
.b-hero-slim h1 { font-size: 56px; }
.b-hero h1 span { color: var(--site-accent); }

/* Home hero only: force teal line onto its own row from 768px up */
@media (min-width: 768px) {
  .b-hero:not(.b-hero-slim) > .b-wrap:not(.b-about-grid) > h1 {
    text-wrap: wrap;
  }

  .b-hero:not(.b-hero-slim) > .b-wrap:not(.b-about-grid) > h1 span {
    display: block;
  }
}

.b-hero-foot { display: block; padding-top: 32px; border-top: 2px solid var(--site-navy); }
.b-sub { font-size: 21px; line-height: 1.5; color: var(--site-ink); margin: 0; text-wrap: wrap; max-width: none; }
.b-me { margin: 28px 0 0; font-size: 16px; color: var(--site-muted); }
.b-hero-cta { margin: 16px 0 0; }
.b-me + .b-hero-cta { margin-top: 12px; }
.b-hero-cta .text-link { font-weight: 700; }
.site-theme main .b-hero-cta .text-link { white-space: nowrap; }

.b-sec { padding: 48px 0; }
.b-tint { background: var(--site-surface); }
.b-head { margin-bottom: 32px; }
.b-head h2 { font-size: 40px; line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin: 0; text-wrap: balance; }
.b-body { font-size: 18px; line-height: 1.65; color: var(--site-ink); margin: 16px 0 0; }
.b-muted { color: var(--site-muted); }
/* situation cards */
.b-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.b-cards li { background: #fff; border: 1px solid var(--site-line); border-radius: var(--site-tile-radius); padding: 20px; display: flex; flex-direction: column; }
.b-card-mark .svc-mark { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 20px; }
.b-num { font-size: 13px; font-weight: 700; color: var(--site-accent); }
.b-cards h3, .b-cards .b-card-title { font-size: 20px; line-height: 1.25; font-weight: 700; margin: 8px 0 10px; width: 100%; max-width: none; text-wrap: wrap; color: var(--site-navy); font-family: var(--site-font); }
.b-cards p { font-size: 15px; line-height: 1.6; color: var(--site-muted); margin: 0 0 20px; flex: 1; }
.b-leads { display: block; padding-top: 14px; border-top: 1px solid var(--site-line); font-size: 15px; font-weight: 700; color: var(--site-accent); text-decoration: none; }
.b-leads span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--site-muted); font-weight: 600; margin-bottom: 2px; }
/* loop */
.b-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.b-split .b-head { margin: 0; position: sticky; top: 100px; }
.b-loop { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.b-loop li { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 24px 0; border-top: 1px solid var(--site-line); }
.b-loop li:first-child { border-top: 2px solid var(--site-navy); }
.b-step-n { grid-row: span 3; font-size: 40px; font-weight: 700; color: var(--site-accent); line-height: 1; letter-spacing: -.03em; }
.b-loop h3 { font-size: 26px; margin: 0 0 6px; font-weight: 700; }
.b-loop p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--site-ink); }
.b-loop-detail p.lead { color: var(--site-navy); font-weight: 600; margin-bottom: 6px; }
.b-loop-detail p:not(.lead) { color: var(--site-muted); font-size: 16px; }
.b-loop-back { margin: 8px 0 0 80px; font-size: 15px; font-weight: 700; color: var(--site-accent); }
/* proof */
.b-nums { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.b-nums li { border-top: 2px solid var(--site-navy); padding-top: 20px; }
.b-nums strong { display: block; font-size: 44px; line-height: 1; letter-spacing: -.03em; color: var(--site-accent); margin-bottom: 12px; }
.b-nums span { font-size: 16px; line-height: 1.55; color: var(--site-ink); }
.b-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.b-q { margin: 0; }
.b-q blockquote { margin: 0 0 14px; font-size: 21px; line-height: 1.5; color: var(--site-navy); }
.b-q figcaption { font-size: 14px; color: var(--site-muted); }
.b-q figcaption strong { color: var(--site-navy); }
.b-q-sm blockquote { font-size: 16px; color: var(--site-ink); }
/* services */
.b-svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; padding: 56px 0; border-top: 1px solid var(--site-line); }
.b-svc:first-of-type { border-top: 2px solid var(--site-navy); }
.b-svc-head .svc-mark { display: block; width: 100%; max-width: 320px; height: auto; border-radius: 8px; margin-bottom: 20px; }
.b-svc-head h2.b-area { font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--site-navy); margin: 0 0 14px; letter-spacing: -.02em; }
.b-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.b-for { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--site-muted); font-weight: 600; }
.b-chip { font-size: 14px; font-weight: 700; color: var(--site-accent); background: #fff; border: 1px solid var(--site-line); border-radius: 999px; padding: 6px 12px; }
.b-sum { font-size: 17px; line-height: 1.6; color: var(--site-ink); margin: 0; }
.b-svc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.b-svc-body h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--site-muted); margin: 0 0 10px; }
.b-svc-body ul { list-style: none; padding: 0; margin: 0; }
.b-svc-body li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--site-line); position: relative; font-size: 16px; line-height: 1.45; color: var(--site-navy); }
.b-svc-body li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 2px; background: var(--site-accent); }
.b-svc-body p { font-size: 16px; line-height: 1.6; margin: 0 0 20px; color: var(--site-ink); }
.b-changes { font-weight: 700; color: var(--site-navy) !important; font-size: 18px !important; }
.b-svc-foot { grid-column: 1 / -1; }
.b-svc-foot .b-q, .b-stat { padding-left: 18px; border-left: 3px solid var(--site-accent); margin: 0 0 16px; }
.b-stat { font-weight: 700; color: var(--site-navy); font-size: 17px; }
.b-more { font-weight: 700; color: var(--site-accent); font-size: 15px; }
/* about */
.b-about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: center; }
.b-about-grid h1 { font-size: 56px; }
.b-about-grid .b-sub { margin-bottom: 32px; }
.b-photo { width: 100%; height: auto; border-radius: var(--site-tile-radius); display: block; }
.b-results { list-style: none; padding: 0; margin: 0; }
.b-results li { padding: 22px 0; border-top: 1px solid var(--site-line); font-size: 19px; line-height: 1.5; color: var(--site-navy); font-weight: 600; }
.b-results li:first-child { border-top: 2px solid var(--site-navy); }
.b-why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.b-why li { padding: 28px 0; border-top: 1px solid var(--site-line); }
.b-why h3 { font-size: 24px; line-height: 1.25; margin: 6px 0 14px; font-weight: 700; }
/* cta */
.b-cta { background: var(--site-navy); color: #fff; padding: 48px 0; }
.b-cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px 64px; align-items: center; }
.b-cta h2 { color: #fff; font-size: 40px; letter-spacing: -.03em; margin: 0 0 10px; }
.b-cta p { color: #fff; opacity: .85; font-size: 18px; margin: 0; }
.b-btn-light { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; white-space: nowrap; min-height: 48px; padding: 12px 24px; background: var(--site-paper); color: var(--site-navy) !important; font-weight: 700; border-radius: var(--site-radius); text-decoration: none; }
.b-link-light { color: #fff !important; font-weight: 600; text-underline-offset: 4px; }
@media (max-width: 1000px) { .b-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .b-card-mark { display: none; }
  .b-wrap { padding: 0 22px; }
  .b-hero, .b-hero-slim { padding: 32px 0; } .b-hero h1, .b-hero-slim h1, .b-about-grid h1 { font-size: 40px; }
  .b-split, .b-svc, .b-svc-body, .b-about-grid, .b-cta-grid, .b-nums, .b-quotes, .b-why, .b-cards { grid-template-columns: 1fr; }
  .b-split .b-head { position: static; }
  .b-sec, .b-cta { padding: 32px 0; } .b-head h2, .b-cta h2 { font-size: 30px; }
  .b-sub { font-size: 18px; } .b-svc { gap: 24px; } .b-photo { max-width: 360px; }
}

/* FAQ */
.b-faq .faq-item { border-top: 1px solid var(--site-line); padding: 20px 0; }
.b-faq .faq-item:first-child { border-top: 2px solid var(--site-navy); }
.b-faq summary { list-style: none; cursor: pointer; }
.b-faq summary::-webkit-details-marker { display: none; }
.b-faq h3 { font-size: 20px; margin: 0 0 8px; font-weight: 700; text-wrap: wrap; max-width: none; }
.site-theme main .b-faq h3 { text-wrap: wrap; max-width: none; }
.b-faq p { font-size: 17px; line-height: 1.6; color: var(--site-ink); margin: 0; }
.site-theme main .b-cards h3 { text-wrap: wrap; max-width: none; }
.site-theme main .b-cta a.b-btn-light { padding: 12px 24px; min-height: 48px; height: auto; }
.site-theme main .b-cta a.b-link-light { min-height: 48px; }
.b-cta a.b-btn-light { padding: 12px 24px !important; min-height: 48px !important; height: auto !important; }

/* v4 additions. Live palette only. */
/* situation cards: equal heights, link pinned below one separator line */
.b-cards { align-items: stretch; }
.b-cards li { height: 100%; box-sizing: border-box; }
.b-cards p { flex: 1 1 auto; }
.b-cards .b-leads { margin-top: auto; display: flex; align-items: center; min-height: 44px; padding-top: 12px; border-top: 1px solid var(--site-line); line-height: 1.3; }
.b-oneline { margin: 24px 0 0; font-size: 16px; font-weight: 700; }
.b-oneline a { color: var(--site-accent); text-underline-offset: 4px; }
/* method section: compact, three across */
.b-how { padding: 40px 0; }
.b-head-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 48px; align-items: end; margin-bottom: 24px; }
.b-head-row .b-body { margin: 0; }
.b-loop3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.b-loop3 li { border-top: 2px solid var(--site-navy); padding-top: 16px; }
.b-loop3 .b-step-n { display: block; font-size: 32px; font-weight: 700; color: var(--site-accent); line-height: 1; margin-bottom: 8px; }
.b-loop3 h3 { font-size: 22px; margin: 0 0 6px; font-weight: 700; }
.b-loop3 p { margin: 0 0 8px; font-size: 16px; line-height: 1.55; color: var(--site-muted); }
.b-loop3 p.lead { color: var(--site-navy); font-weight: 600; }
.b-how .b-loop-back { margin: 12px 0 0; }
/* about */
.b-nums6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; margin-bottom: 0; }
.b-nums6 strong { font-size: 32px; }
.b-more-results { margin: var(--home-s3) 0 0; }
.b-more-results .text-link { font-weight: 600; }
#results { scroll-margin-top: calc(var(--site-header-height) + 16px); }
.b-why li p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--site-ink); }
.b-why h3 { margin-bottom: 8px; }
.b-q-feature { margin-top: 32px; padding-left: 20px; border-left: 3px solid var(--site-accent); max-width: 760px; }
.b-pdf-row { margin: 20px 0 0; }
.b-pdf { font-weight: 700; color: var(--site-accent); text-underline-offset: 4px; }
.b-pdf::before { content: "↓ "; }
@media (max-width: 820px) {
  .b-head-row, .b-loop3, .b-nums6 { grid-template-columns: 1fr; }
  .b-how { padding: 32px 0; }
}
body.set-b { margin: 0; }
.b-cards .b-leads { min-height: 3.4em; align-items: flex-start; }
.site-footer-links a { white-space: nowrap; }
/* 404 */
.nf-main { background: var(--site-paper); padding: 32px 22px 56px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.nf-art { display: flex; justify-content: center; width: 100%; touch-action: manipulation; }
.nf-art canvas { display: block; max-width: 100%; }
.nf-text { max-width: 560px; margin-top: 8px; }
.nf-text h1 { color: var(--site-navy); font-size: 40px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 12px; }
.nf-text p { font-size: 18px; line-height: 1.55; color: var(--site-ink); margin: 0 0 24px; }
.nf-text .cta-row { justify-content: center; }
.nf-replay { margin: 16px 0 0 !important; font-size: 14px !important; }
.nf-replay a { color: var(--site-accent); font-weight: 700; }
@media (max-width: 820px) { .nf-text h1 { font-size: 30px; } .nf-main { padding-top: 20px; } }
/* v5 */
/* tiles: whole card clickable, same subtle lift as production .cs-tile */
.b-cards li.b-tile { position: relative; cursor: pointer; transition: translate 200ms ease, box-shadow 200ms ease; }
.b-cards li.b-tile:hover { translate: 0 -2px; box-shadow: 0 6px 20px rgba(23, 44, 63, .08); }
.b-cards li.b-tile .b-leads::after { content: ""; position: absolute; inset: 0; }
.b-cards li.b-tile:has(.b-leads:focus-visible) { outline: 3px solid var(--site-accent); outline-offset: 4px; }
.b-cards li.b-tile .b-leads:focus-visible { outline: none; }
.b-cards .b-leads { min-height: 44px; align-items: center; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .b-cards li.b-tile, .b-cards li.b-tile:hover { transition: none; translate: none; } }
/* shared grid: service blocks, method header and FAQ use the same 5/7 split */
.b-svc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.b-head-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 64px; }
.b-head .b-body { max-width: 760px; }
.b-h2-wide { text-wrap: pretty !important; max-width: 24em; }
@media (max-width: 820px) {
  /* Must restate columns: the shared 5/7 rule above would otherwise keep two columns. */
  .b-svc { grid-template-columns: 1fr; gap: 24px; }
}
/* v6 footer: links, copyright, trademark line. No wrapping on desktop. */
.v6-footer { display: block; }
.v6-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: nowrap; }
.v6-footer-row > * { white-space: nowrap; }
.v6-footer .site-footer-links { flex-wrap: nowrap; }
.v6-tm-line { margin: 10px 0 0; font-size: 12px; color: var(--site-muted); white-space: nowrap; }
@media (max-width: 820px) {
  .v6-footer-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .v6-footer .site-footer-links { flex-wrap: wrap; }
  .v6-footer-row > *, .v6-tm-line { white-space: normal; }
}
/* terms */
.v6-legal { max-width: 760px; background: #fff; border: 1px solid var(--site-line); border-radius: var(--site-tile-radius); padding: 32px 36px; }
.v6-legal h2 { font-size: 24px; color: var(--site-navy); margin: 28px 0 10px; }
.v6-legal h2:first-child { margin-top: 0; }
.v6-legal h3 { font-size: 19px; color: var(--site-navy); margin: 22px 0 8px; }
.v6-legal p, .v6-legal li { font-size: 16px; line-height: 1.65; color: var(--site-ink); }
.v6-legal ul { padding-left: 20px; }
@media (max-width: 820px) { .v6-legal { padding: 22px; } }


/* issue 400: replay control may be a button */
.nf-replay button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--site-accent); font-weight: 700; font: inherit;
  text-decoration: underline; text-underline-offset: 4px;
}
.nf-replay button:focus-visible { outline: 3px solid var(--site-accent); outline-offset: 3px; }
/* ensure footer trademark uses muted color on paper */
.site-footer .v6-tm-line { margin: 10px 0 0; }

/* One-pager shell: the page shows the PDF. Share tags live in the document head. */
html:has(body.one-pager-shell) { height: 100%; }
body.one-pager-shell { height: 100%; display: flex; flex-direction: column; }
body.one-pager-shell main.pdf-shell { flex: 1 1 auto; min-height: 0; display: flex; margin: 0; }
body.one-pager-shell iframe.pdf-frame { flex: 1 1 auto; width: 100%; height: 100%; border: 0; background: var(--site-paper); }

/* Issue 467: new Services sections and the home closing gap. */
.b-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--site-line); }
.b-list li { position: relative; margin: 0; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--site-line); font-size: 17px; line-height: 1.5; color: var(--site-navy); max-width: none; }
.b-list li::before { content: ""; position: absolute; left: 0; top: 20px; width: 8px; height: 8px; border-radius: 2px; background: var(--site-accent); }
h3.b-sub { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 32px 0 0; color: var(--site-navy); }
.b-reads { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--site-line); }
.b-reads li { margin: 0; padding: 0; border-bottom: 1px solid var(--site-line); max-width: none; }
.b-reads a { display: flex; align-items: center; min-height: 48px; padding: 10px 0; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--site-accent); text-decoration: none; }
.b-reads a::after { content: "\2192"; margin-left: auto; padding-left: 16px; }
.b-reads a:hover { color: var(--site-accent-hover); text-decoration: underline; text-underline-offset: 4px; }
.b-split .b-body.b-first { margin-top: 0; }
.b-split .b-body.b-gap { margin-top: 24px; }
.b-split .b-body.b-gap-lg { margin-top: 32px; }
.b-list.b-list-tight { margin-top: 12px; }
.b-cta p + p { margin-top: 8px; }

/* Results headings share one size per page. It is the largest size that keeps "15+ rollouts in a month" on one line. About tiles are 24px narrower. */
.b-nums > li > strong { white-space: nowrap; font-weight: 700; line-height: 1; color: var(--site-accent); font-size: 25px; }
.b-nums6 > li > strong { font-size: 22px; }
@media (min-width: 390px) {
  .b-nums > li > strong { font-size: 31px; }
  .b-nums6 > li > strong { font-size: 29px; }
}
@media (min-width: 768px) {
  .b-nums > li > strong { font-size: 68px; }
  .b-nums6 > li > strong { font-size: 66px; }
}
@media (min-width: 821px) {
  .b-nums > li > strong { font-size: 21px; }
  .b-nums6 > li > strong { font-size: 20px; }
}
@media (min-width: 1440px) {
  .b-nums > li > strong { font-size: 32px; }
  .b-nums6 > li > strong { font-size: 31px; }
}
