/* CostCraft — main.css, round 2 "Field to report" (CC-WEB-031). Tokens in tokens.css.
   The only automatic motion: the hero chart draw-in and the process animation (process-animation.css). */

/* ---------- Reset + type ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--font); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--navy); font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-h1); line-height: 1.04; font-weight: 800; }
h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }
p, ul, ol, dl { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover, a:focus-visible { text-decoration-thickness: 3px; }
small, .small { font-size: var(--fs-small); }
.mono { font-family: var(--font-mono); }
.num, .tnum { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: var(--r-sm); }
.on-navy :focus-visible { outline-color: var(--gold); }

a, button, .btn, summary, input, textarea { transition: background-color var(--t), color var(--t), border-color var(--t), text-decoration-thickness var(--t), transform var(--t), box-shadow var(--t); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--white { background: var(--surface); }
.prose { max-width: var(--measure); }
.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: var(--measure); margin-top: -.25em; }
.on-navy .lead { color: var(--on-navy-2); }
.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 7fr 5fr; gap: 64px; } .split--rev { grid-template-columns: 5fr 7fr; } }
.grid > *, .split > *, .hero__grid > *, .row > *, .demo > *, .feature > * { min-width: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 600; border-radius: var(--r-pill); }
.skip:focus { top: 8px; }

/* Placeholder marker (prototype only) */
.ph { background: var(--flag-bg); color: var(--ink); border-bottom: 2px dotted var(--gold-ink); }
.on-navy .ph { background: transparent; color: inherit; border-bottom-color: var(--gold); }

/* ---------- Buttons + links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px;
  padding: 14px 24px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  background: var(--gold); color: var(--navy); font: 600 1rem/1.2 var(--font); text-decoration: none; text-align: center;
}
.btn:hover { background: var(--gold-hi); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(10, 23, 48, .25); }
.btn:active { transform: none; box-shadow: none; }
.btn--sm { min-height: 40px; padding: 9px 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.textlink { font-weight: 600; }
.on-navy a:not(.btn) { color: var(--on-navy); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

/* ---------- Staging banner + header ---------- */
.env-banner { margin: 0; background: var(--gold); color: var(--navy); text-align: center; font-size: var(--fs-small); font-weight: 600; padding: 4px var(--gutter); line-height: 1.4; }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--navy); color: var(--on-navy); border-bottom: 1px solid var(--navy-3); }
/* Over a hero the header starts transparent; site.js adds .is-solid once the hero has scrolled past.
   Without JS (noscript.css) it stays solid. The hero tucks under it with a negative margin, so nothing moves. */
.site-header--overlay { margin-bottom: calc(-1 * var(--header-h)); background: transparent; border-bottom-color: transparent; }
.site-header--overlay.is-solid { background: var(--navy); border-bottom-color: var(--navy-3); }
.site-header :focus-visible { outline-color: var(--gold); }
/* Logo row: brand, (nav at >= 1140px), gold CTA. Below 1140px the nav wraps to a second slim row (order 3). */
.header-bar { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; height: var(--bar-h); margin-right: auto; color: var(--on-navy); text-decoration: none; white-space: nowrap; }
.brand svg { width: 24px; height: 24px; flex: none; }
.brand__text { font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.02em; line-height: 1; }
.brand__text span { font-weight: 400; }
.header-cta { white-space: nowrap; flex: none; }
.header-cta .long { display: none; }
@media (min-width: 420px) { .header-cta .long { display: inline; } }

/* Nav row (below 1140px): full-bleed, scrolls sideways when the items don't fit; site.js adds .has-more
   (fades the right edge) while there is more to the right, and scrolls the current item into view. */
.site-nav { order: 3; flex: 0 0 calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); height: var(--nav-h); border-top: 1px solid rgba(255, 255, 255, .12); min-width: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0 calc(var(--gutter) - 12px); display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; position: relative; }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav li { flex: none; }
.site-nav a { color: var(--on-navy); text-decoration: none; display: flex; align-items: center; height: 100%; padding: 0 12px; font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { background: rgba(255, 255, 255, .08); }
.site-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--gold); }
.site-nav a:focus-visible { outline-offset: -3px; border-radius: var(--r-sm); }
.site-nav.has-more ul { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
@media (min-width: 1140px) {
  .site-nav { order: 0; flex: none; margin: 0; height: 44px; border-top: 0; }
  .site-nav ul { padding: 0; overflow: visible; }
  .site-nav a { padding: 0 10px; }
}
@media (max-width: 379px) {
  .brand__text { font-size: 1rem; } .brand { gap: 8px; } .brand svg { width: 20px; height: 20px; }
  .header-bar { column-gap: 8px; } .header-cta { padding: 8px 14px; }
}
/* Narrowest phones: the logo row keeps the gold CTA by dropping "Ltd." from the lockup (the link still says "CostCraft — home"). */
@media (max-width: 359px) { .brand__text span { display: none; } }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: var(--fs-small); margin-bottom: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--on-navy-2); }
.crumbs [aria-current] { color: var(--on-navy-2); }

/* ---------- Navy surfaces + contour texture ---------- */
.on-navy { background: var(--navy-deep); color: var(--on-navy); }
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--on-navy); }
.contour { position: relative; isolation: isolate; }
.contour::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/img/contours.svg?v=323dd2029c") center / cover no-repeat; opacity: .09; pointer-events: none; }

/* ---------- Hero (inner pages + variant B) ---------- */
.hero { padding: calc(var(--header-h) + 40px) 0 var(--section); }
.hero .lede, .hero-map .lede { font-size: 1.1875rem; color: var(--on-navy-2); max-width: 40rem; margin-bottom: 0; }
.hero h1 { max-width: 20ch; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero { padding-top: calc(var(--header-h) + 64px); } .hero__grid--split { grid-template-columns: 6fr 6fr; gap: 56px; } }

.hero-link { font-weight: 600; }

/* ---------- Report panel (trend chart + stations), reusable ---------- */
.panel-sheet { background: var(--surface); color: var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-float); padding: 20px; }
.panel-sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.panel-sheet__title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; color: var(--navy); margin: 0; }
.tag-illustrative { font-size: .75rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 10px; white-space: nowrap; }
.panel-sheet__sub { font-size: var(--fs-small); color: var(--ink-2); margin: 0 0 8px; }
.panel-sheet__body { display: grid; gap: 16px; }

.chart { width: 100%; overflow: visible; font-family: var(--font); }
.chart text { font-size: 14px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .limit-band { fill: var(--gold); opacity: .10; }
.chart .limit-line { stroke: var(--gold-ink); stroke-width: 2; stroke-dasharray: 6 4; }
.chart .limit-label { fill: var(--gold-ink); font-weight: 600; }
.chart .trend { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { fill: var(--surface); stroke: var(--navy); stroke-width: 2; }
.chart .exceed { fill: var(--gold); stroke: var(--navy); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.chart .exceed-label { fill: var(--navy); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .chart--draw .trend { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease) .3s forwards; }
  .chart--draw .pt { opacity: 0; animation: fade .3s ease 1.3s forwards; }
  .chart--draw .exceed, .chart--draw .exceed-label { opacity: 0; animation: fade .2s ease 1.45s forwards, pulse .6s var(--ease) 1.45s 1; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0% { transform: scale(.4); } 55% { transform: scale(1.5); } 100% { transform: scale(1); } }
.stations { list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.stations li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.stations li:nth-last-child(-n+2) { border-bottom: 0; }
.stations .flag { font-size: .8125rem; }

/* ---------- Home hero: station map + docked trend chart on contour navy (JP round 2 ruling) ---------- */
.hero-map { padding: calc(var(--header-h) + 32px) 0 var(--section); }
.hero-map .hero__grid { align-items: center; }
@media (min-width: 1024px) { .hero-map { padding-top: calc(var(--header-h) + 72px); } .hero-map .hero__grid { grid-template-columns: 5fr 7fr; gap: 48px; } }
.map-dock { position: relative; }
.map-dock .station-map { max-width: 300px; margin: 0 auto; }
@media (min-width: 600px) { .map-dock .station-map { max-width: 400px; } }
.map-dock .panel-sheet { margin-top: -96px; position: relative; max-width: 520px; margin-left: auto; }
@media (min-width: 1024px) { .map-dock .panel-sheet { position: absolute; right: 0; bottom: -2%; width: 68%; margin: 0; } .map-dock .station-map { margin: 0 auto 0 0; max-width: 470px; } }

/* Home hero since CC-WEB-034: H1 + the process animation stage (first frame is static HTML). */
.hero-anim .hero__grid { align-items: start; }
.hero-anim__stage { min-width: 0; }
.hero .map-dock { margin-top: 24px; }
@media (min-width: 1024px) { .hero-anim .hero__grid { grid-template-columns: 5fr 7fr; align-items: center; } }

/* ---------- Station map ---------- */
.station-map { width: 100%; }
.station-map .region { fill: var(--navy-2); stroke: var(--on-navy-2); stroke-width: 1; stroke-linejoin: round; }
.on-light .station-map .region { fill: #E8EFF8; stroke: var(--navy); }
.station-map .stn { fill: var(--on-navy); stroke: var(--navy-deep); stroke-width: 2; }
.on-light .station-map .stn { fill: var(--navy); stroke: var(--surface); }
.station-map .stn--flag { fill: var(--gold); stroke: var(--navy-deep); }
.on-light .station-map .stn--flag { fill: var(--gold); stroke: var(--navy); }
.station-map .ring { fill: none; stroke: var(--gold); stroke-width: 2; }
.station-map text { font-family: var(--font-display); font-size: 17px; font-weight: 600; fill: var(--on-navy-2); letter-spacing: .01em; }
.on-light .station-map text { fill: var(--ink-2); }
.station-map .stn-label { font-family: var(--font-mono); font-size: 14px; font-weight: 400; fill: var(--on-navy); }
.on-light .station-map .stn-label { fill: var(--navy); }
.map-key { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-small); color: var(--ink-2); list-style: none; padding: 0; margin: 16px 0 0; }
.on-navy .map-key { color: var(--on-navy-2); }
.map-key li { display: inline-flex; align-items: center; gap: 8px; }
.map-key .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
.on-navy .map-key .dot { background: var(--on-navy); }
.map-key .dot--flag { background: var(--gold); }

/* ---------- Statements strip (replaces the [00] boxes) ---------- */
.statements { background: var(--surface); border-bottom: 1px solid var(--line); padding: 32px 0 36px; }
.statements__where { max-width: 52rem; margin: 18px auto 0; text-align: center; color: var(--ink-2); font-size: 1.0625rem; }
.statements ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; color: var(--navy); font-size: clamp(1.0625rem, .9rem + .9vw, 1.625rem); text-align: center; }
.statements li { display: inline-flex; align-items: center; }
.statements li + li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin: 0 clamp(14px, 2.4vw, 32px); flex: none; }
@media (max-width: 599px) { .statements ul { flex-direction: column; gap: 10px; } .statements li + li::before { display: none; } }

/* ---------- Service rows: large, alternating ---------- */
.rows { display: grid; gap: 72px; }
.row { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .row { grid-template-columns: 6fr 5fr; gap: 64px; }
  .row:nth-child(even) .row__media { order: 2; }
  .row:nth-child(even) { grid-template-columns: 5fr 6fr; }
}
.row__body h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .4em; }
.row__body .pair { display: grid; gap: 4px 16px; margin: 0 0 20px; }
.row__body .pair dt { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); }
.row__body .pair dd { margin: 0 0 12px; }
.row__media { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-deep); box-shadow: var(--shadow-sheet); isolation: isolate; }
.row__media > picture img, .row__media > img { width: 100%; height: 100%; object-fit: cover; }
.row__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10, 23, 48, .15), rgba(10, 23, 48, .55)); z-index: 0; }
.row__media .float { position: absolute; z-index: 1; }
.row__media .tag-illustrative { position: absolute; z-index: 2; left: 12px; bottom: 12px; background: rgba(10, 23, 48, .82); color: var(--on-navy); border-color: rgba(255, 255, 255, .3); }

/* Report thumbnails: illustrative mock pages at an angle with a real shadow */
.thumb { background: var(--surface); border-radius: 6px; box-shadow: var(--shadow-float); padding: 12px; width: 58%; font-size: 7px; line-height: 1.35; color: var(--ink); }
.thumb__bar { height: 4px; background: var(--navy); border-radius: 2px; margin-bottom: 8px; }
.thumb__bar--gold { background: var(--gold); width: 30%; }
.thumb__title { font-family: var(--font-display); font-weight: 700; font-size: 10px; color: var(--navy); margin: 0 0 6px; letter-spacing: -0.01em; }
.thumb__meta { color: var(--ink-2); margin: 0 0 8px; }
.thumb table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.thumb th, .thumb td { text-align: left; padding: 2px 3px; border-bottom: 1px solid var(--line); font-weight: 400; }
.thumb th { color: var(--ink-2); font-weight: 600; }
.thumb .x { background: var(--flag-bg); box-shadow: inset 2px 0 0 var(--gold-ink); }
.thumb .x td:last-child { color: var(--gold-ink); font-weight: 600; }
.thumb .lines span { display: block; height: 4px; background: var(--line); border-radius: 2px; margin: 4px 0; }
.thumb .lines span:nth-child(2) { width: 85%; } .thumb .lines span:nth-child(3) { width: 70%; }
.thumb svg { width: 100%; margin: 4px 0; }
.thumb--a { left: 8%; top: 12%; transform: rotate(-5deg); }
.thumb--b { right: 6%; top: 22%; transform: rotate(4deg); }
.thumb--c { left: 21%; top: 9%; transform: rotate(-2deg); width: 62%; }
@media (min-width: 600px) { .thumb { font-size: 8.5px; padding: 14px; } .thumb__title { font-size: 12px; } }

/* Mini table card (data cleanup / transformation rows) */
.minicard { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-float); padding: 12px 14px; font-size: .75rem; color: var(--ink); width: 72%; }
.minicard table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.minicard th, .minicard td { text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.minicard th { color: var(--ink-2); font-weight: 600; }
.minicard .raw { font-family: var(--font-mono); }
.minicard .x { background: var(--flag-bg); }
.minicard__label { font-weight: 600; color: var(--navy); margin: 0 0 6px; font-size: .8125rem; }
.minicard--tl { left: 6%; top: 10%; transform: rotate(-3deg); }
.minicard--br { right: 6%; bottom: 14%; transform: rotate(2deg); width: 64%; }
@media (max-width: 479px) { .minicard { font-size: .6875rem; padding: 10px; } .minicard th, .minicard td { padding: 2px 4px; } }

/* ---------- Worked example: the B/A/E set on a lifted sheet ---------- */
.sheet { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-sheet); padding: 24px; }
@media (min-width: 768px) { .sheet { padding: 32px; } }
.demo { display: grid; gap: 28px; }
@media (min-width: 1024px) { .demo { grid-template-columns: 1fr 1fr; } .demo .panel:last-child { grid-column: 1 / -1; } }
.demo .panel h3 { font-family: var(--font); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.demo .panel h3 .count { font-size: var(--fs-small); color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.swipe-status { display: none; }
/* Below 1024px the three tables become swipeable cards with a visible "1 of 3" indicator. */
@media (max-width: 1023px) {
  .demo { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 -24px; padding: 0 24px 8px; scroll-padding: 0 24px; overscroll-behavior-x: contain; }
  .demo .panel { flex: 0 0 88%; scroll-snap-align: start; }
  .swipe-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: var(--fs-small); color: var(--ink-2); }
  .swipe-dots { display: flex; gap: 6px; }
  .swipe-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
  .swipe-dots span.is-on { background: var(--navy); }
}
@media (min-width: 768px) and (max-width: 1023px) { .demo { margin: 0 -32px; padding: 0 32px 8px; scroll-padding: 0 32px; } .demo .panel { flex-basis: 70%; } }

.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.table-scroll:focus-visible { outline-offset: 2px; }
.scroll-hint { font-size: var(--fs-small); color: var(--ink-2); margin: 6px 0 0; }
table.data { border-collapse: collapse; width: 100%; font-size: .875rem; color: var(--ink); font-variant-numeric: tabular-nums; }
table.data caption { text-align: left; padding: 10px 12px; font-size: var(--fs-small); color: var(--ink-2); caption-side: top; border-bottom: 1px solid var(--line); }
table.data th, table.data td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
table.data thead th { font-size: .8125rem; color: var(--ink-2); background: var(--paper); font-weight: 600; }
table.data td.num, table.data th.num { text-align: right; }
table.data tbody tr:last-child > * { border-bottom: 0; }
table.data .raw, table.data .mono { font-family: var(--font-mono); font-size: .8125rem; }
table.data td.wrap-cell { white-space: normal; min-width: 14rem; }
tr.is-flagged { background: var(--flag-bg); }
tr.is-flagged > :first-child { box-shadow: inset 4px 0 0 var(--gold-ink); }
.flag { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold-ink); white-space: nowrap; }
.flag svg { width: 14px; height: 14px; flex: none; }
.flag--ok { color: var(--ink-2); font-weight: 400; }

/* ---------- Process steps, lists, limits, FAQ ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 32px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; border-top: 2px solid var(--navy); padding-top: 20px; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: -17px; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--navy); font: 700 .9375rem/32px var(--font-display); text-align: center; }
.steps h3 { font-size: 1.1875rem; margin-top: 8px; }
.steps p { margin: 0; }
.note { font-size: var(--fs-small); color: var(--ink-2); margin-top: 24px; }
.on-navy .note { color: var(--on-navy-2); }
.ticks { list-style: none; padding: 0; display: grid; gap: 14px; max-width: var(--measure); }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 14px; height: 8px; border-left: 3px solid var(--gold-ink); border-bottom: 3px solid var(--gold-ink); transform: rotate(-45deg); }
.limits { border-left: 4px solid var(--navy); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 24px 28px; background: var(--surface); box-shadow: var(--shadow-sheet); max-width: var(--measure); }
.limits h2 { font-size: var(--fs-h3); }
.limits ul { padding-left: 1.25em; margin-bottom: 0; }
.limits li + li { margin-top: 8px; }
.faq { max-width: var(--measure); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; color: var(--navy); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 1.375rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 18px; }
.links-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.links-list li { border-bottom: 1px solid var(--line); }
.links-list a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-family: var(--font-display); letter-spacing: -0.01em; font-size: 1.125rem; }
.links-list span { font-family: var(--font); font-weight: 400; color: var(--ink-2); font-size: var(--fs-small); letter-spacing: 0; text-align: right; }

/* Two-column prose (transformation) and the Tablify block */
.cols { display: grid; gap: 24px 64px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }
.cols p { font-size: 1.125rem; }
.feature { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 5fr 7fr; gap: 64px; } }
.feature__mark { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); color: var(--navy); letter-spacing: -0.03em; line-height: 1; margin: 0; }
.feature__mark sup { font-size: .35em; font-weight: 600; vertical-align: super; }
.feature__list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.feature__list li { display: flex; gap: 12px; align-items: baseline; }
.feature__list li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--gold); border-radius: 2px; transform: translateY(-1px); }

/* Pivot illustration (transformation) */
.pivot { width: 100%; font-family: var(--font); }
.pivot text { font-size: 13px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.pivot .h { fill: var(--ink-2); font-weight: 600; }
.pivot .cell { fill: var(--surface); stroke: var(--line); }
.pivot .cell--h { fill: var(--paper); }
.pivot .arrow { stroke: var(--gold-ink); stroke-width: 2.5; fill: none; }
.pivot .arrow-head { fill: var(--gold-ink); }

/* ---------- Where we work (light, 7/5 split with map) ---------- */
.on-light { background: var(--surface); }
.where .station-map { max-width: 460px; margin: 0 auto; }

/* ---------- Forms ---------- */
.form-wrap { max-width: 600px; margin: 0 auto; }
.form { display: grid; gap: 20px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field .optional { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--ink-2); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy, .form-alt { font-size: var(--fs-small); color: var(--ink-2); margin: 0; }
.form-alt { margin-top: 32px; text-align: center; font-size: 1rem; }
.form-msg { display: none; border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 24px; }
.form-msg:target { display: block; }
.form-msg--error { background: var(--flag-bg); border-left: 4px solid var(--gold-ink); color: var(--ink); }

/* ---------- Plain document pages (privacy) ---------- */
.doc { max-width: var(--measure); }
.doc h2 { font-size: 1.375rem; margin-top: 1.75em; }

/* ---------- CTA band + footer ---------- */
.cta-band { padding: var(--section) 0; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { color: var(--on-navy-2); max-width: var(--measure); font-size: 1.125rem; }
.cta-band .note { font-size: var(--fs-small); }
.site-footer { background: var(--navy-deep); color: var(--on-navy-2); padding: 64px 0 40px; font-size: var(--fs-small); border-top: 1px solid var(--navy-3); }
.site-footer a { color: var(--on-navy); }
.site-footer .grid { gap: 32px; }
@media (min-width: 768px) { .site-footer .grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-heading { font-family: var(--font); font-size: var(--fs-small); font-weight: 600; color: var(--on-navy); letter-spacing: 0; margin-bottom: 14px; }
.footer-tagline { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--on-navy); letter-spacing: -0.015em; margin: 16px 0 8px; }
.site-footer .legal { border-top: 1px solid var(--navy-3); margin-top: 40px; padding-top: 20px; display: grid; gap: 6px; }
.site-footer .legal p { margin: 0; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; }
.sticky-cta .btn { width: 100%; box-shadow: var(--shadow-float); }
.sticky-cta.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--t), transform var(--t), visibility 0s linear var(--t); }
body.has-sticky-cta { padding-bottom: 76px; }
/* Keep keyboard focus clear of the sticky CTA (WCAG 2.2 SC 2.4.11). */
html:has(body.has-sticky-cta) { scroll-padding-bottom: 88px; }
@media (min-width: 768px) { html:has(body.has-sticky-cta) { scroll-padding-bottom: 0; } }
@media (min-width: 768px) { .sticky-cta { display: none; } body.has-sticky-cta { padding-bottom: 0; } }

@media print { .site-header, .cta-band, .env-banner, .sticky-cta, .pa__controls { display: none; } body { background: #fff; } }

/* Three plain text columns (data cleanup, reporting): gold rule, no boxes */
/* ---------- CC-WEB-034: cluster cards (Home), industry list (/industries/), partners page ---------- */
.clusters { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 768px) { .clusters { grid-template-columns: 1fr 1fr; gap: 24px; } }
.cluster { background: var(--paper); border-top: 4px solid var(--navy); border-radius: 0 0 var(--r-md) var(--r-md); padding: 24px 24px 26px; display: flex; flex-direction: column; }
.cluster__name { font-size: 1.25rem; margin-bottom: .4em; }
.cluster__problem { margin: 0 0 12px; }
.cluster__sectors { margin: 0 0 12px; color: var(--ink-2); font-size: var(--fs-small); }
.cluster__note { margin: 0 0 12px; font-size: var(--fs-small); font-weight: 600; color: var(--navy); }
.cluster__link { margin-top: auto; align-self: flex-start; }
.industry-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.industry { display: grid; gap: 24px 64px; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 900px) { .industry { grid-template-columns: 7fr 5fr; } }
.industry h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.industry__aside h3 { font-family: var(--font); font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin: 0 0 8px; }
.industry__aside .tags + h3 { margin-top: 20px; }
.industry__links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 24px 0 0; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: 4px 12px; font-size: var(--fs-small); }
.tags a { font-weight: 600; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: var(--measure); }
.checklist li { display: flex; gap: 14px; align-items: baseline; }
.checklist li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--gold); border-radius: 2px; transform: translateY(-1px); }
.checklist b { color: var(--navy); }
.quad { display: grid; gap: 32px; }
@media (min-width: 768px) { .quad { grid-template-columns: 1fr 1fr; gap: 40px 48px; } }
.quad h3 { font-size: 1.25rem; }
.trio { display: grid; gap: 40px; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.trio > div { border-top: 3px solid var(--gold); padding-top: 20px; }
.trio h3 { font-size: 1.375rem; }
.trio p { margin: 0; }
.pivot-scroll { overflow-x: auto; }
.pivot-scroll .pivot { min-width: 720px; }
.hero .row__media { box-shadow: var(--shadow-float); }
h1 .ph, .hero h1 .ph { font-size: .42em; letter-spacing: 0; vertical-align: middle; font-family: var(--font); font-weight: 600; }
/* Narrow phones: the report panel stacks its head and lists stations in one column */
@media (max-width: 479px) {
  .panel-sheet { padding: 16px; }
  .panel-sheet__head { flex-wrap: wrap; gap: 6px 12px; }
  .stations { grid-template-columns: 1fr; }
  .stations li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
