/* WadeGlobal AI — site stylesheet (2026-10-14 redesign).
   One world for every page: a drawing sheet. White ground with a faint steel
   grid, navy ink for type and structure, steel rules, and electric blue only
   where something is active (the drawn path, list marks, focus).
   Brand: Instrument Sans only, sentence case, no negative tracking.
   Owner direction 2026-10-13: not blue-heavy; show the whole company. */

:root {
  --ink: #0B1533;
  --ink-2: #26324f;
  --muted: #536071;
  --steel: #C7CCD4;
  --rule: #dfe3e9;
  --paper: #ffffff;
  --paper-2: #f4f6f9;
  --blue: #1FA9FF;
  --blue-ink: #0a5f99;
  --grid-minor: rgba(83, 96, 113, .055);
  --grid-major: rgba(83, 96, 113, .10);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* Older pages color a phrase with this; on white it must be readable ink-blue. */
  --cc-electric: var(--blue-ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: var(--steel) var(--paper-2); }
body { margin: 0; font-size: 17px; line-height: 1.6; background: var(--paper); color: var(--ink); }
::selection { background: rgba(31, 169, 255, .22); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3, h4 { margin: 0; letter-spacing: 0; text-wrap: balance; font-weight: 650; color: var(--ink); }
p { margin: 0; text-wrap: pretty; }
b, strong { font-weight: 650; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; }
.field-bg { display: none; }
main { display: block; background-image:
  linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
  linear-gradient(var(--grid-minor) 1px, transparent 1px), linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px; }

/* ---------- Buttons ---------- */
.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 8px; font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn-ink, .button.primary { background: var(--ink); color: #fff; border: 1px solid var(--ink); box-shadow: 0 1px 2px rgba(11,21,51,.18), 0 6px 18px -8px rgba(11,21,51,.45); }
.btn-ink:hover, .button.primary:hover { background: #142252; color: #fff; transform: translateY(-1px); }
.btn-line, .button.secondary, .button:not(.primary) { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover, .button.secondary:hover, .button:not(.primary):hover { background: var(--paper-2); }
.hero-actions, .actions, .mp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Header: the drawing's title block ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--ink); backdrop-filter: saturate(1.2) blur(8px); }
.site-header .nav { display: flex; align-items: stretch; min-height: 64px; }
.brand-mark { display: flex; align-items: center; gap: 12px; padding: 10px clamp(14px, 2vw, 24px); text-decoration: none; color: var(--ink); border-right: 1px solid var(--rule); flex: none; }
.brand-mark img { width: 40px; height: 40px; }
.brand-lockup { display: grid; line-height: 1.2; }
.brand-lockup strong { font-size: 17px; font-weight: 650; white-space: nowrap; }
.brand-lockup small { font-size: 13px; color: var(--muted); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); flex: 1; padding: 0 clamp(14px, 2vw, 24px); }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--ink); }
.nav-links .nav-phone { margin-left: auto; padding: 0 0 0 clamp(14px, 2vw, 24px); border-left: 1px solid var(--rule); align-self: stretch; display: flex; align-items: center; border-bottom: 0; font-variant-numeric: tabular-nums; }
.nav-links .button.primary { color: #fff; border-bottom: 1px solid var(--ink); padding: 0 18px; min-height: 44px; }
.nav-toggle { display: none; margin-left: auto; width: 56px; border: 0; border-left: 1px solid var(--rule); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Footer: title block ---------- */
.site-footer { border-top: 1px solid var(--ink); background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.foot-grid > * { padding: 28px clamp(16px, 2vw, 28px); }
.foot-grid > * + * { border-left: 1px solid var(--rule); }
.foot-grid p { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 34ch; }
.foot-grid h2 { font-size: 15px; font-weight: 650; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid ul a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot-grid ul a:hover { text-decoration: underline; text-decoration-color: var(--blue); }
.foot-base { display: grid; grid-template-columns: repeat(4, auto); justify-content: stretch; border-top: 1px solid var(--ink); font-size: 14px; color: var(--muted); }
.foot-base > span { padding: 12px clamp(16px, 2vw, 28px); }
.foot-base > span + span { border-left: 1px solid var(--rule); }
.foot-base > span:last-child { text-align: right; }
.foot-base a { color: var(--muted); }

/* ---------- Page structure ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sheet { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); position: relative; }
.sheet + .sheet { border-top: 1px solid var(--rule); }
.sheet h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; max-width: 22ch; }
.eyebrow, .help-kicker, .cc-num, .mp-card > span { display: none; }
/* Headlines set in navy ink only; the old two-tone blue endings are retired. */
.page-head h1 span[style], .mp-hero h1 span[style], .page-head h1 span, .mp-hero h1 span { color: inherit !important; }
/* Articles: date and read time read as a byline under the title. */
.page-head .container { display: flex; flex-direction: column; }
.page-head h1 { order: 1; }
.page-head .article-meta { order: 2; margin: 16px 0 0; }
.page-head .page-lede { order: 3; }
.page-head .hero-actions { order: 4; }
.reveal, .cc-in { opacity: 1 !important; transform: none !important; }

/* Inner page head */
.page-head, .mp-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.page-head h1, .mp-hero h1 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.06; max-width: 20ch; }
.page-lede, .mp-hero .lede { margin-top: 22px; font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 60ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.article-meta { column-gap: 22px; }
.article-meta span { white-space: nowrap; }

/* Sections */
.cc-section, .mp-section { padding: clamp(56px, 8vw, 104px) 0; }
.cc-section + .cc-section, .mp-section + .mp-section { border-top: 1px solid var(--rule); }
.cc-section.alt, .mp-section.paper, .mp-section.dark { background: rgba(244, 246, 249, .78); }
.cc-head, .mp-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.cc-head h2, .mp-head h2, .cc-split h2, .cta-band h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; }
.cc-head .lede, .mp-head p, .lede { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 62ch; }
.small { font-size: 14px; color: var(--muted); font-weight: 400; }

/* Capability lists: a ruled schedule, not a card grid */
.cc-system, .mp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.cc-cap, .mp-card { padding: 26px 32px 26px 0; border-bottom: 1px solid var(--rule); }
.cc-cap:nth-child(2n), .mp-card:nth-child(2n) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--rule); }
.mp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mp-card { padding: 26px 24px 26px 0; }
.mp-card:nth-child(2n) { padding-left: 0; border-left: 0; }
.mp-card + .mp-card { padding-left: 24px; border-left: 1px solid var(--rule); }
.cc-cap h3, .mp-card h3, .cc-step h3, .mp-step h3, .cc-phase h3 { font-size: 20px; line-height: 1.25; }
.cc-cap p, .mp-card p, .cc-step p, .mp-step p, .cc-phase p { margin-top: 8px; color: var(--muted); }

/* Split + panel */
.cc-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; }
.cc-split p { color: var(--ink-2); }
.cc-split p + p { margin-top: 16px; }
.cc-panel { border: 1px solid var(--ink); background: var(--paper); padding: 28px; box-shadow: 0 24px 60px -44px rgba(11,21,51,.4); }
.cc-panel h3 { font-size: 19px; margin-bottom: 8px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.list li:last-child { border-bottom: 0; }
.list li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 2px; background: var(--blue); }

/* Steps: numbered because the order is the information */
.cc-steps, .mp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--ink); }
.cc-step, .mp-step { counter-increment: step; padding: 24px 24px 8px 0; position: relative; }
.cc-step + .cc-step, .mp-step + .mp-step { padding-left: 24px; border-left: 1px solid var(--rule); }
.cc-step::before, .mp-step::before { content: "Step " counter(step); display: block; font-size: 14px; font-weight: 600; color: var(--blue-ink); margin-bottom: 10px; }

/* Phases */
.cc-phase { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 220px 1fr; gap: 4px 32px; }
.cc-phase h3 { grid-column: 1; }
.cc-phase .ph-tag { grid-column: 1; grid-row: 2; font-size: 14px; color: var(--muted); font-weight: 500; }
.cc-phase .ph-desc { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }

/* FAQ */
.faq-list { border-top: 1px solid var(--ink); max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover { color: var(--blue-ink); }
.faq-a { padding: 0 0 22px; color: var(--ink-2); max-width: 72ch; }
.faq-a p + p { margin-top: 12px; }

/* Closing call to action */
.cta-band { border: 1px solid var(--ink); background: var(--paper); padding: clamp(28px, 4vw, 48px); box-shadow: 0 24px 60px -44px rgba(11,21,51,.4); }
.cta-band > p { margin-top: 14px; color: var(--muted); max-width: 62ch; }
.cc-conviction { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.3; max-width: 34ch; }

/* Articles */
.prose { max-width: 70ch; }
.prose .lead { font-size: 20px; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p, .prose ul, .prose ol { margin-top: 18px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; margin: 44px 0 12px; }
.prose h3 { font-size: 20px; margin: 32px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--ink); font-size: 19px; color: var(--ink); }
.prose a { font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 64px); align-items: start; }
.contact-aside { color: var(--ink-2); }
.contact-aside > * + * { margin-top: 16px; }

/* Forms (audit + contact) */
.audit-form, .contact-form { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 0 24px 60px -44px rgba(11,21,51,.4); position: relative; }
.contact-form label, .af-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.af-group { font-size: 15px; font-weight: 650; color: var(--ink); padding-top: 6px; border-top: 1px solid var(--rule); }
.af-group:first-of-type { border-top: 0; padding-top: 0; }
.audit-form input, .audit-form select, .audit-form textarea, .contact-form input, .contact-form select, .contact-form textarea {
  font-family: inherit; font-size: 16px; font-weight: 400; color: var(--ink); min-height: 48px; padding: 10px 12px; width: 100%;
  border: 1px solid var(--steel); border-radius: 8px; background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.audit-form textarea, .contact-form textarea { min-height: 120px; resize: vertical; }
.audit-form input:hover, .audit-form select:hover, .contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { border-color: var(--muted); }
.audit-form input:focus, .audit-form select:focus, .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31,169,255,.3); }
.audit-form ::placeholder, .contact-form ::placeholder { color: #7a8596; }
.af-invalid { border-color: #b42318 !important; box-shadow: 0 0 0 3px rgba(180,35,24,.15) !important; }
.af-status { font-size: 15px; font-weight: 500; min-height: 1.4em; }
.af-status.err, .af-status[data-state="err"] { color: #b42318; }
.af-status.ok, .af-status[data-state="ok"] { color: #0f6b3a; }
.af-fine, .fine { font-size: 14px; color: var(--muted); }
.af-fine summary { cursor: pointer; color: var(--ink-2); }
.audit-form button[type="submit"], .contact-form button[type="submit"] { width: 100%; }

/* Leak map result (filled in by home.js) */
.btn-primary { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-primary:hover { background: #142252; }
.audit-assumptions summary { cursor: pointer; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.audit-assumptions p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.leak-map { margin-top: 16px; border: 1px solid var(--ink); background: var(--paper); padding: 24px; display: grid; gap: 16px; }
.leak-map[hidden] { display: none; }
.lm-kicker { font-weight: 650; font-size: 18px; }
.lm-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--ink); padding-top: 14px; }
.lm-total span { color: var(--muted); }
.lm-total strong { font-size: 36px; font-weight: 650; font-variant-numeric: tabular-nums; }
.lm-total em { font-style: normal; font-size: 16px; color: var(--muted); }
.lm-sub, .lm-fine { color: var(--muted); font-size: 14px; }
.lm-bars { display: grid; gap: 12px; }
.lm-bar-h { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.lm-track { height: 8px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.lm-track i { display: block; height: 100%; background: var(--ink); }
.lm-fix { border: 1px solid var(--rule); padding: 14px 16px; background: var(--paper-2); }
.lm-fix span { font-size: 14px; font-weight: 600; color: var(--blue-ink); }
.lm-fix p { margin-top: 4px; }
.lm-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Proof widgets (rendered by proof.js) ---------- */
.proof-instruments { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); }
.proof-card { position: relative; padding: 26px 28px 24px 0; border-bottom: 1px solid var(--rule); }
.proof-card:nth-child(2n) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--rule); }
.proof-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.proof-source { display: flex; align-items: center; gap: 9px; font-weight: 650; color: var(--ink); }
.proof-glyph { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; border: 1px solid var(--ink); font-size: 13px; font-weight: 650; color: var(--ink); }
.proof-chip { font-size: 13px; font-weight: 500; color: var(--blue-ink); border: 1px solid var(--steel); border-radius: 999px; padding: 4px 10px 4px 9px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.proof-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.proof-rating { display: flex; align-items: flex-end; gap: 12px; }
.proof-rating .num { font-size: 48px; font-weight: 650; line-height: .9; font-variant-numeric: tabular-nums; }
.stars { position: relative; display: inline-block; font-size: 18px; line-height: 1; }
.stars > .base { color: var(--rule); }
.stars > .fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--blue); }
.proof-rating .meta { padding-bottom: 4px; color: var(--muted); font-size: 14px; }
.proof-split, .proof-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 16px; }
.proof-split .n, .proof-foot .n { font-size: 26px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.proof-foot .n .up { color: var(--blue-ink); font-size: 15px; margin-right: 4px; }
.proof-split .l, .proof-foot .l { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.proof-chart { display: flex; align-items: flex-end; gap: 8px; height: 118px; margin: 26px 0 0; }
.proof-chart .bar { flex: 1; border-radius: 3px 3px 0 0; align-self: flex-end; background: var(--steel); position: relative; }
.proof-chart .bar.peak { background: var(--ink); }
.proof-chart .bar .tag { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.proof-axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 12px; }
.proof-verified { margin-top: 16px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.proof-verified::before { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--blue-ink); border-bottom: 2px solid var(--blue-ink); transform: rotate(-45deg) translateY(-2px); }
.proof-ba { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 16px; }
.proof-ba .ba-col { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.proof-ba .ba-col.after { text-align: right; }
.proof-ba .ba-k { font-size: 13px; color: var(--muted); font-weight: 500; }
.proof-ba .ba-v { font-size: 26px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.proof-ba .ba-col.before .ba-v { color: var(--muted); }
.proof-ba .ba-col.after .ba-v { color: var(--ink); }
.proof-ba .ba-u { font-size: 13px; color: var(--muted); }
.proof-ba .ba-arrow { font-size: 22px; font-weight: 700; color: var(--blue-ink); line-height: 1; }
.proof-updated { margin-top: 16px; font-size: 14px; color: var(--muted); }
.proof-audio-empty { margin: 0; padding: 20px 22px; border: 1px solid var(--rule); background: var(--paper); color: var(--muted); }
.proof-audio-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.audio-proof-card { padding: 24px 28px 24px 0; border-bottom: 1px solid var(--rule); }
.audio-proof-card:nth-child(2n) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--rule); }
.audio-proof-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.audio-proof-date { color: var(--muted); font-size: 13px; }
.audio-proof-card h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.2; }
.audio-proof-card p { margin: 0; color: var(--muted); }
.audio-transcript { margin-top: 14px !important; padding-left: 16px; border-left: 2px solid var(--steel); color: var(--ink-2) !important; font-style: italic; }
.audio-proof-card audio { width: 100%; margin-top: 16px; }

/* ===================== Home page ===================== */
.hero { padding-top: clamp(40px, 5vw, 72px); }
.hero-copy { max-width: 1080px; }
.hero h1 { font-size: clamp(38px, 5vw, 72px); line-height: 1.04; max-width: 18ch; }
.fit { margin-top: 24px; font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 58ch; }
.note { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* The plan: the customer path drawn as one line */
.plan { margin: clamp(40px, 5vw, 64px) 0 0; border: 1px solid var(--ink); background: var(--paper); box-shadow: 0 24px 60px -40px rgba(11,21,51,.35); }
.plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 18px 24px; border-bottom: 1px solid var(--rule); }
.plan-head h2 { font-size: 20px; max-width: none; }
.plan-head p { color: var(--muted); font-size: 15px; }
.plan-board { --lw: 190px; --top: 44px; --rowh: 96px; position: relative; height: calc(var(--top) + 3 * var(--rowh) + 12px); }
.lanes { position: absolute; inset: var(--top) 0 12px 0; display: grid; grid-template-rows: repeat(3, var(--rowh)); }
.lane { grid-row: var(--row); display: flex; flex-direction: column; justify-content: center; padding-left: 24px; font-weight: 600; font-size: 15px; border-top: 1px dashed var(--steel); }
.lane:last-child { border-bottom: 1px dashed var(--steel); }
.lane em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 14px; }
.route { position: absolute; left: var(--lw); right: 0; top: var(--top); height: calc(3 * var(--rowh)); width: calc(100% - var(--lw)); overflow: visible; }
.route path { fill: none; vector-effect: non-scaling-stroke; }
.route-plan { stroke: var(--steel); stroke-width: 2; stroke-dasharray: 6 6; }
.route-live { stroke: var(--blue); stroke-width: 4; stroke-linecap: round; }
.route-reveal { clip-path: inset(-10px 0 -10px 0); }
.js .route-reveal { clip-path: inset(-10px 100% -10px 0); }
.js .plan.drawn .route-reveal { clip-path: inset(-10px 0 -10px 0); transition: clip-path 2.2s var(--ease); }
.dims { position: absolute; left: var(--lw); right: 0; top: 0; height: var(--top); display: grid; grid-template-columns: repeat(7, 1fr); }
.dim { position: relative; align-self: center; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.dim::before { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; border-top: 1px solid var(--ink); }
.dim::after { content: ""; position: absolute; left: 8%; right: 8%; top: calc(50% - 5px); height: 10px; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.dim span { position: relative; z-index: 1; background: var(--paper); padding: 0 10px; }
.dim-rev { grid-column: 1 / 6; }
.dim-ops { grid-column: 6 / 8; }
.stops { position: absolute; left: var(--lw); right: 0; top: var(--top); margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(3, var(--rowh)); }
.stops li { grid-column: var(--col); grid-row: var(--row); display: grid; place-items: center; }
.stops button {
  position: relative; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 14px; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.stops button:hover { box-shadow: 0 6px 16px -8px rgba(11,21,51,.5); transform: translateY(-1px); }
.stops button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(31,169,255,.28), 0 8px 18px -8px rgba(11,21,51,.6); }
.panels { border-top: 1px solid var(--rule); background: var(--paper-2); }
.panel { padding: 24px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 8px 32px; align-items: start; }
.panel h3 { font-size: 21px; line-height: 1.25; }
.panel p { color: var(--muted); max-width: 60ch; }
.panel a { font-weight: 600; white-space: nowrap; }
.panel[hidden] { display: none; }
.js .panel:not([hidden]) { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Buyers */
.elev { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border-top: 1px solid var(--ink); }
.elev-col { padding: 28px 32px 8px 0; }
.elev-col + .elev-col { padding-left: 32px; border-left: 1px solid var(--rule); }
.elev h3 { font-size: 22px; }
.elev ul { margin: 18px 0 20px; padding: 0; list-style: none; }
.elev li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.elev li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 2px; background: var(--blue); }
.elev a { font-weight: 600; }
.elev-more { margin-top: 8px; color: var(--muted); }

/* A day: the job log */
.day { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 72px); }
.day-intro p { margin-top: 18px; color: var(--muted); max-width: 44ch; }
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.log li { display: grid; grid-template-columns: 84px 1fr; gap: 2px 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); background: var(--paper); }
.log time { grid-row: span 3; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; padding-top: 2px; }
.log b { font-weight: 600; }
.log span { color: var(--muted); font-size: 16px; }
.log .log-decision { margin-top: 16px; padding: 20px; border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 0 0 0 4px rgba(31,169,255,.16); }
.log .log-decision b { font-size: 19px; }
.log .log-decision span { color: var(--ink-2); }
.log-decision .choices { grid-column: 2; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.choices em { font-style: normal; font-weight: 600; font-size: 14px; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 7px 12px; }
.choices em:first-child { background: var(--ink); color: #fff; }
.day-close { grid-column: 1 / -1; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.25; max-width: 30ch; }

/* The owner screen */
.screen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center; }
.screen-copy p { margin: 18px 0 28px; color: var(--muted); max-width: 46ch; }
.screen-shot { margin: 0; border: 1px solid var(--ink); background: var(--paper); padding: 10px; box-shadow: 0 30px 70px -40px rgba(11,21,51,.45); }
.screen-shot figcaption { padding: 12px 4px 2px; font-size: 14px; color: var(--muted); }

/* Phases: a drawing schedule */
.phases .lede { margin-top: 18px; color: var(--muted); max-width: 62ch; }
.schedule { width: 100%; margin-top: 36px; border-collapse: collapse; border: 1px solid var(--ink); background: var(--paper); font-size: 16px; }
.schedule th, .schedule td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.schedule thead th { font-size: 14px; font-weight: 600; color: var(--muted); background: var(--paper-2); border-bottom: 1px solid var(--ink); }
.schedule tbody th { font-weight: 650; width: 18%; }
.schedule td:last-child { width: 26%; font-weight: 600; font-variant-numeric: tabular-nums; }
.schedule td:nth-child(2) { color: var(--ink-2); }
.fine { margin-top: 14px; }

/* Audit */
.audit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(32px, 5vw, 72px); }
.audit-copy p { margin-top: 18px; color: var(--muted); max-width: 46ch; }
.audit-copy a { font-weight: 600; }
.start-list { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--ink); max-width: 46ch; }
.start-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); }
.start-list li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 2px; background: var(--blue); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .nav-links .nav-phone { display: none; }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--ink); box-shadow: 0 24px 40px -30px rgba(11,21,51,.4); }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .nav-links .nav-phone { display: flex; margin: 0; padding: 14px 0; border-left: 0; }
  .nav-links .button.primary { margin-top: 14px; border-bottom: 1px solid var(--ink); }
  .brand-mark { border-right: 0; }
  .day, .screen, .audit, .cc-split, .contact-grid { grid-template-columns: 1fr; }
  .cc-steps, .mp-steps { grid-template-columns: 1fr 1fr; }
  .cc-step:nth-child(3), .mp-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :nth-child(3) { border-left: 0; }
  .foot-grid > :nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 820px) {
  .plan-board { height: auto; padding: 8px 0; }
  .lanes, .route, .dims { display: none; }
  .stops { position: static; display: block; padding: 8px 20px; }
  .stops li { display: block; position: relative; padding: 6px 0 6px 28px; }
  .stops li::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; border-left: 2px dashed var(--steel); }
  .stops li:first-child::before { top: 50%; }
  .stops li:last-child::before { bottom: 50%; }
  .stops li::after { content: attr(data-lane); position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); }
  .stops button::before { content: ""; position: absolute; left: -26px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
  .stops button[aria-selected="true"]::before { background: var(--blue); border-color: var(--blue); }
  .panel { grid-template-columns: 1fr; padding: 20px; }
  .elev, .cc-system, .mp-grid, .proof-instruments, .proof-audio-list { grid-template-columns: 1fr; }
  .elev-col, .cc-cap, .mp-card, .proof-card, .audio-proof-card { padding-left: 0 !important; padding-right: 0 !important; border-left: 0 !important; }
  .elev-col + .elev-col { border-top: 1px solid var(--rule); }
  .cc-steps, .mp-steps { grid-template-columns: 1fr; }
  .cc-step, .mp-step { padding-left: 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--rule); padding-bottom: 20px; }
  .cc-phase { grid-template-columns: 1fr; }
  .cc-phase .ph-desc { grid-column: 1; grid-row: auto; margin-top: 6px; }
  .schedule thead { display: none; }
  .schedule, .schedule tbody, .schedule tr, .schedule th, .schedule td { display: block; width: auto !important; }
  .schedule tr { padding: 16px 18px; border-bottom: 1px solid var(--rule); }
  .schedule th, .schedule td { padding: 2px 0; border: 0; }
  .schedule td:last-child { margin-top: 8px; }
  .audit-form, .contact-form { padding: 20px; }
  .af-row { grid-template-columns: 1fr; }
  .log li { grid-template-columns: 72px 1fr; }
  .brand-lockup small { display: none; }
  .brand-mark img { width: 34px; height: 34px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid > * + * { border-left: 0; border-top: 1px solid var(--rule); }
  .proof-ba { grid-template-columns: 1fr; gap: 10px; }
  .proof-ba .ba-col.after { text-align: left; }
  .proof-ba .ba-arrow { transform: rotate(90deg); justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .route-reveal, .js .plan.drawn .route-reveal { clip-path: none; transition: none; }
  .js .panel:not([hidden]) { animation: none; }
  .btn, .button, .stops button, .nav-toggle span { transition: none; }
}

/* Consent banner (analytics.js): a slim bar at the bottom, never over the page's drawing. */
#wgai-consent { left: 0 !important; right: 0 !important; bottom: 0 !important; width: auto !important; max-width: none !important; border-radius: 0 !important;
  display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px var(--gutter) !important;
  background: #fff !important; border: 0 !important; border-top: 1px solid var(--ink) !important; box-shadow: 0 -12px 30px -24px rgba(11,21,51,.5) !important; font-family: inherit; }
#wgai-consent h2 { width: auto !important; font-size: 14px !important; }
#wgai-consent p { flex: 1 1 320px !important; font-size: 14px; }
#wgai-consent a { color: var(--ink) !important; text-decoration-color: var(--blue) !important; }
#wgai-consent button { border-radius: 8px !important; font-size: 14px !important; padding: 9px 16px !important; }
#wgai-consent .wgai-accept { background: var(--ink) !important; color: #fff !important; }
#wgai-consent .wgai-decline { border: 1px solid var(--ink) !important; color: var(--ink) !important; }
@media (max-width: 820px) {
  #wgai-consent { padding: 10px 16px !important; }
  #wgai-consent p { font-size: 13px; flex-basis: 100% !important; }
  .foot-base { grid-template-columns: 1fr; }
  .foot-base > span + span { border-left: 0; border-top: 1px solid var(--rule); }
  .foot-base > span:last-child { text-align: left; }
}

/* Keep the Avery chat button above the consent bar while the bar is showing. */
body:has(#wgai-consent) #avery-launcher, body:has(#wgai-consent) #avery-premium-fallback { bottom: 76px !important; }
@media (max-width: 820px) {
  body:has(#wgai-consent) #avery-launcher, body:has(#wgai-consent) #avery-premium-fallback { bottom: 184px !important; }
}
