/* Solution pages, example pages and the solutions index (_layouts/solution.html,
   _layouts/example.html, solutions/index.html). Loaded after product.css and built
   on its components; colours and type come from the shared tokens in styles.css. */

.solution-hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* The problem: dated industry figures, each with its base, what it means, and its source. */
.solution-lead-in { margin: 40px 0 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.65; }
.solution-stats { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.solution-stat { padding: clamp(26px, 3vw, 34px); display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 16px; background: var(--ink-panel); color: var(--ink-panel-copy); box-shadow: 8px 8px 0 var(--product-frame-shadow); }
.solution-stat strong { display: block; color: var(--lime); font-size: clamp(3.6rem, 6.4vw, 5.8rem); font-weight: 800; line-height: .9; letter-spacing: -.07em; }
.solution-stat-what { margin: 20px 0 0; color: var(--paper); font-size: 1.04rem; font-weight: 700; line-height: 1.4; }
.solution-stat-base { margin: 10px 0 0; color: var(--ink-panel-muted); font-size: max(var(--min-text), .74rem); line-height: 1.55; }
.solution-stat-means { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--ink-panel-line); color: var(--ink-panel-copy); font-size: .86rem; line-height: 1.6; }
.solution-stat-source { margin: auto 0 0; padding-top: 18px; color: var(--ink-panel-muted); font-size: max(var(--min-text), .72rem); line-height: 1.5; }
.solution-stat-source a { color: var(--lime); }
.solution-stat-source a:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.solution-source { margin: 20px 0 0; color: var(--ink-soft); font-size: max(var(--min-text), .74rem); line-height: 1.6; }
.solution-source a,
.solution-faq a { color: var(--blue-dark); }


/* Example deployment teaser. Always carries the illustrative label. */
.solution-example { margin-top: 44px; padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(28px, 5vw, 60px); border: 2px solid var(--ink); border-radius: 18px; background: var(--product-field); box-shadow: 8px 8px 0 var(--ink); }
.solution-illustrative { width: fit-content; margin: 0 0 16px; padding: 6px 9px; border: 1.5px solid var(--ink); border-radius: var(--label-radius); background: var(--paper); color: var(--ink); font-size: max(var(--min-text), .62rem); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.solution-example h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.04em; }
.solution-example-note { margin: 14px 0 0; color: var(--ink-soft); font-size: .8rem; line-height: 1.6; }
.solution-example ul { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.solution-example li { padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); font-size: .88rem; line-height: 1.5; }

/* Scope and limits. */
.solution-scope { max-width: 860px; margin: 36px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.solution-scope li { padding: 18px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); font-size: .9rem; line-height: 1.65; }

/* What it costs: words only, prices live on /pricing/. */
.solution-cost { margin-top: clamp(94px, 11vw, 145px); padding: clamp(28px, 4vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 32px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.solution-cost h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -.05em; }
.solution-cost p:last-child { max-width: 640px; margin: 10px 0 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }
.solution-cost > a { flex: 0 0 auto; }

/* FAQ. */
.solution-faq { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.solution-faq > div { padding: 22px 0; border-top: 1.5px solid var(--ink); }
.solution-faq h3 { margin: 0; font-size: 1.04rem; line-height: 1.3; letter-spacing: -.02em; }
.solution-faq p { margin: 10px 0 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.7; }

/* Module cards at the end of the page (_includes/solution-modules.html): the product's
   hero visual on its colour, then name, headline, description and button. */
.solution-modules { padding-bottom: clamp(84px, 10vw, 125px); }
.solution-modules-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.solution-module { overflow: hidden; display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.solution-module-visual { height: 300px; padding: 26px 26px 0; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--product-field); }
.solution-module-frame { overflow: hidden; border: 2px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--paper); }
.solution-module-frame img { display: block; width: 100%; height: auto; }
.solution-module-copy { padding: 26px 28px 28px; display: flex; flex: 1; flex-direction: column; gap: 12px; }
.solution-module-name { margin: 0; color: var(--blue-dark); font-size: max(var(--min-text), .66rem); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.solution-module h3 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.08; letter-spacing: -.045em; }
.solution-module h3 span { color: var(--product-heading-accent); }
.solution-module-copy > p:not(.solution-module-name) { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.6; }
.solution-module .action-button { margin-top: auto; }

/* Cards linking to solution pages and example pages (solutions index, example pages). */
.solution-card-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.solution-card { padding: 26px; display: flex; flex-direction: column; gap: 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.solution-card.example-card { background: var(--product-field); }
.solution-card > span { width: fit-content; color: var(--blue-dark); font-size: max(var(--min-text), .62rem); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.solution-card h3 { margin: 0; font-size: 1.24rem; line-height: 1.15; letter-spacing: -.03em; }
.solution-card p { margin: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.6; }
.solution-card.example-card p { color: var(--ink); }
.solution-card-more { margin-top: auto; padding-top: 6px; color: var(--blue-dark); font-size: .82rem; }
.solution-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.solution-card:active { transform: translate(2px, 2px); box-shadow: none; }
.solution-card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--pink), 0 0 0 6px var(--ink); }

/* Buttons. The shared button layout lives in page stylesheets these pages don't load, so set it here.
   Main actions are blue like the product page buttons; module and example buttons are paper. */
:is(.solution-hero-actions, .solution-cost, .solution-module, .solution-example) :is(.action-button, .secondary-button) { width: fit-content; min-height: 48px; padding: 11px 16px; display: inline-flex; align-items: center; gap: 9px; border-radius: 9px; font-size: .8rem; text-decoration: none; }
:is(.solution-hero-actions, .solution-cost) .action-button { background: var(--blue); color: #fff; }
.solution-example-link { margin-top: 22px; background: var(--paper); }

/* Solutions index. */
.solutions-home { --product-field: var(--lime); --product-accent: var(--paper); --product-hero-copy: var(--ink); --product-hero-muted: var(--ink-soft); --product-heading-accent: var(--blue-dark); --product-frame-shadow: var(--ink); --product-decoration: var(--blue-dark); --product-focus-contrast: var(--ink); }
.solutions-index-hero { min-height: 0; }
.solutions-index-hero .product-hero-inner { grid-template-columns: minmax(0, 860px); }
.solutions-home .product-main > :last-child { margin-bottom: clamp(84px, 10vw, 125px); }

/* Example pages: banner, facts panel, narrative, table, model box. */
.example-hero { min-height: 0; align-content: start; }
.example-banner { background: var(--ink); color: var(--paper); }
.example-banner .site-shell { padding-block: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: max(var(--min-text), .8rem); line-height: 1.5; }
.example-banner strong { padding: 4px 8px; border-radius: var(--label-radius); background: var(--lime); color: var(--ink); font-size: max(var(--min-text), .64rem); letter-spacing: .08em; text-transform: uppercase; }
.example-hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); }
.example-facts { overflow: hidden; border: 2px solid var(--ink); border-radius: 19px; background: var(--paper); box-shadow: 10px 10px 0 var(--product-frame-shadow); }
.example-facts dl { margin: 0; padding: 6px 22px 12px; }
.example-facts dl > div { padding: 13px 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; border-bottom: 1px solid var(--line-soft); }
.example-facts dl > div:last-child { border-bottom: 0; }
.example-facts dt { color: var(--ink-soft); font-size: .76rem; font-weight: 700; }
.example-facts dd { margin: 0; color: var(--ink); font-size: .9rem; font-weight: 600; }
.example-stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.example-stats .solution-stat strong { font-size: clamp(2.4rem, 3.8vw, 3.6rem); }
.example-prose { max-width: 760px; margin-top: 28px; }
.example-prose p,
.example-prose li { color: var(--ink-soft); font-size: .98rem; line-height: 1.75; }
.example-prose p { margin: 0; }
.example-prose p + p,
.example-prose p + ul,
.example-prose ul + p { margin-top: 16px; }
.example-prose ul { margin-bottom: 0; padding-left: 20px; }
.example-prose strong { color: var(--ink); }
.example-table-intro { margin: 28px 0 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.6; }
.example-table-wrap { margin-top: 16px; overflow-x: auto; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.example-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.example-table th { padding: 14px 18px; background: var(--ink-panel); color: var(--paper); font-size: max(var(--min-text), .7rem); letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.example-table td { padding: 14px 18px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); line-height: 1.55; vertical-align: top; }
.example-table td:first-child { color: var(--ink); font-weight: 700; }
.example-model { max-width: 860px; margin: 28px 0 0; padding: 14px 28px; list-style: none; border: 2px dashed var(--ink); border-radius: 16px; background: var(--paper); }
.example-model li { padding: 12px 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.6; }
.example-model li + li { border-top: 1px solid var(--line-soft); }

/* An intro line under the heading on the blue flow panel. */
.product-flow .product-section-heading > p:last-child { margin-top: 18px; color: var(--blue-soft); }

/* Flow steps come in fours on product pages; solutions use three or five. */
@media (min-width: 901px) {
  .flow-steps.solution-steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-steps.solution-steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .flow-steps.solution-steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-steps.solution-steps-6 li:nth-child(3)::after { display: none; }
}
@media (max-width: 900px) {
  .solution-stats,
  .solution-example,
  .solution-faq { grid-template-columns: 1fr; }
  .flow-steps.solution-steps-3 li:nth-child(2)::after,
  .flow-steps.solution-steps-5 li:nth-child(2)::after,
  .flow-steps.solution-steps-5 li:nth-child(4)::after,
  .flow-steps.solution-steps-6 li:nth-child(2)::after,
  .flow-steps.solution-steps-6 li:nth-child(4)::after { display: none; }
  .example-facts dl > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 620px) {
  .solution-cost { flex-direction: column; align-items: flex-start; }
  .solution-modules-grid { grid-template-columns: 1fr; }
  .solution-module-visual { height: 240px; padding: 18px 18px 0; }
  .flow-steps.solution-steps-3 li:not(:last-child)::after,
  .flow-steps.solution-steps-5 li:not(:last-child)::after,
  .flow-steps.solution-steps-6 li:not(:last-child)::after { display: grid; }
}

/* Team cards with a small flow diagram (agent, action, outcome), used on Roll out AI agents. */
.team-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.team-card { padding: 26px 28px 28px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 5px 5px 0 var(--ink); }
.team-card:nth-child(1) { background: var(--sky); }
.team-card:nth-child(2) { background: var(--yellow); }
.team-card:nth-child(3) { background: var(--lime); }
.team-card:nth-child(4) { background: var(--pink-soft); }
.team-card-label { font-family: var(--sans); color: var(--blue-dark); font-size: max(var(--min-text), .62rem); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.team-flow { margin: 16px 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.team-flow code { padding: 6px 9px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: max(var(--min-text), .76rem); white-space: nowrap; }
.team-flow i { color: var(--ink); font-family: var(--mono); font-style: normal; font-weight: 700; }
.team-flow-outcome { padding: 6px 9px; border: 1.5px solid var(--ink); border-radius: 8px; font-family: var(--sans); font-size: max(var(--min-text), .62rem); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.team-flow-outcome.is-approval { background: var(--blue); color: var(--paper); }
.team-flow-outcome.is-blocked { background: var(--ink); color: var(--pink); }
.team-flow-outcome.is-review { background: var(--ink); color: var(--lime); }
.team-card h3 { margin: 0 0 9px; font-size: 1.22rem; letter-spacing: -.03em; }
.team-card p { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.65; }
.team-card p code { font-size: max(var(--min-text), .78rem); }

/* Outcomes as a ruled list, for pages that already use coloured cards in another section. */
.solution-outcome-list { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.solution-outcome-list article { padding: 22px 22px 0 0; }
.solution-outcome-list article + article { padding-left: 22px; border-left: 1.5px solid var(--ink); }
.solution-outcome-list span { font-family: var(--sans); color: var(--blue-dark); font-size: max(var(--min-text), .62rem); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.solution-outcome-list h3 { margin: 12px 0 9px; font-size: 1.08rem; letter-spacing: -.03em; }
.solution-outcome-list p { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.65; }
@media (max-width: 900px) {
  .solution-outcome-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solution-outcome-list article:nth-child(3) { padding-left: 0; border-left: 0; }
  .solution-outcome-list article:nth-child(n+3) { margin-top: 26px; }
}
@media (max-width: 620px) {
  .team-grid,
  .solution-outcome-list { grid-template-columns: 1fr; }
  .solution-outcome-list article + article { padding-left: 0; border-left: 0; margin-top: 22px; }
}

/* Section intros (brand kit 0.27.0, guidelines/visual.md, Section intros): one column.
   Label, headline, a one-sentence lead with a lime stripe, then any detail. The lead is
   the paragraph right after the headline; block flow keeps it inline so the stripe follows
   each line. On the blue flow panel the stripe goes and the lead stays bold. */
.solution-page .product-section-heading,
.solution-page .product-section-heading.section-intro { max-width: 820px; display: block; }
.solution-page .product-section-heading h2:not(:last-child) { margin-bottom: 22px; }
.solution-page .product-section-heading > h2 + p { display: inline; max-width: none; margin: 0; background: linear-gradient(transparent 58%, var(--lime) 58%); -webkit-box-decoration-break: clone; box-decoration-break: clone; color: var(--ink); font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.solution-page .product-flow .product-section-heading > h2 + p { background: none; color: var(--paper); }
.solution-page .product-section-heading + .solution-problem-detail { max-width: 820px; margin-top: 14px; }

/* Solutions index: jump panel in the hero, module filter, stat cards, and result-led example cards. */
.solutions-index-hero .product-hero-inner:has(.solutions-jump) { grid-template-columns: minmax(0, 1fr) minmax(320px, 470px); align-items: center; gap: clamp(32px, 5vw, 70px); }
.solutions-jump { display: grid; gap: 14px; }
.jump-group { padding: 18px 20px 20px; border: 2px solid var(--ink); border-radius: 16px; background: var(--peach); box-shadow: 6px 6px 0 var(--ink); }
.jump-group--by-initiative { background: var(--sage); }
.jump-group-title { margin: 0 0 10px; display: flex; align-items: baseline; justify-content: space-between; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.jump-group-title a { color: inherit; text-decoration: none; }
.jump-group-title small { color: var(--ink-soft); font: 600 max(var(--min-text), .64rem) var(--mono); letter-spacing: 0; text-transform: none; }
.jump-group ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.jump-group a { min-height: 34px; padding: 6px 11px; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--ink); border-radius: var(--label-radius); background: var(--paper); color: var(--ink); font-size: .76rem; font-weight: 800; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.jump-group a:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); }

.solutions-browse { padding-top: clamp(60px, 7vw, 90px); }
.solutions-filter { margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; }
.solutions-filter legend { float: left; margin-right: 8px; padding: 0; color: var(--ink-soft); font: 700 max(var(--min-text), .66rem) var(--mono); }
.solutions-filter input { position: absolute; opacity: 0; pointer-events: none; }
.solutions-filter label { min-height: 38px; padding: 7px 14px; display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--label-radius); background: var(--paper); font-size: .8rem; font-weight: 800; cursor: pointer; }
.solutions-filter input:checked + label { background: var(--ink); color: var(--paper); }
.solutions-filter input:focus-visible + label { box-shadow: 0 0 0 3px var(--pink); }
.solutions-browse:has(#solutions-filter-supply-chain:checked) .solution-card[data-modules]:not([data-modules~="supply_chain"]),
.solutions-browse:has(#solutions-filter-runtime:checked) .solution-card[data-modules]:not([data-modules~="runtime"]) { display: none; }
.solutions-browse .product-section { padding-top: clamp(56px, 6vw, 80px); }
.solutions-group-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.solutions-group-heading h2 { margin: 0; }
.solutions-group-heading p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.solution-card-grid--rich .solution-card--by-risk { background: var(--peach); }
.solution-card-grid--rich .solution-card--by-initiative { background: var(--sage); }
.solution-card-grid--rich .solution-card p { color: var(--ink); }
/* Cards share their row's grid, so headlines, stat boxes, and links line up across a row. */
.solution-card-grid--rich .solution-card { grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
.solution-card-grid--rich .solution-card-more { align-self: end; }
.solution-card-grid--rich { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.solution-card-top { display: flex; flex-wrap: wrap; gap: 6px; }
.solution-card-top i { padding: 3px 8px; border: 1px solid var(--ink); border-radius: var(--label-radius); background: var(--paper); font: 800 normal max(var(--min-text), .58rem) var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.solution-card-top i.module-supply_chain { background: var(--product-supply-chain-colour); }
.solution-card-top i.module-runtime { background: var(--product-runtime-colour); }
.solution-card-top i.module-hunt { background: var(--product-hunt-colour); }
.solution-card-stat { margin-top: 4px; padding: 12px 14px; display: grid; gap: 4px; border: 1.5px solid var(--ink); border-radius: 11px; background: var(--paper); }
.solution-card-stat strong { font-size: 1.9rem; line-height: 1; letter-spacing: -.05em; }
.solution-card-stat span { color: var(--ink-soft); font-size: max(var(--min-text), .78rem); line-height: 1.45; }
.solution-card-grid--featured .solution-card:first-child { grid-column: span 2; }
.solution-card-grid--featured .solution-card:first-child h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.solution-card-grid--featured .solution-card:first-child .solution-card-stat { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
.solution-card-grid--featured .solution-card:first-child .solution-card-stat strong { font-size: 2.6rem; }
.solutions-browse:has(.solutions-filter input:not(#solutions-filter-all):checked) .solution-card-grid--featured .solution-card:first-child { grid-column: auto; }

.example-card .example-card-figure { display: block; margin-top: 2px; font-size: 2rem; line-height: 1; letter-spacing: -.05em; }
.example-card .example-card-what { margin-top: -4px; font-weight: 700; }
@media (max-width: 900px) {
  .solutions-index-hero .product-hero-inner:has(.solutions-jump) { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .solution-card-grid--featured .solution-card:first-child { grid-column: auto; }
}

/* Example case studies on the solutions index: larger cards that preview each study. */
.case-study-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case-study-card { padding: clamp(24px, 3vw, 34px); display: grid; grid-template-rows: auto auto 1fr auto; gap: 20px; border: 2px solid var(--ink); border-radius: 18px; background: var(--product-field, var(--paper)); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.case-study-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.case-study-card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--pink), 0 0 0 6px var(--ink); }
.case-study-head .solution-card-top { margin-bottom: 12px; }
.case-study-company { margin: 0 0 8px; color: var(--ink-soft); font: 700 max(var(--min-text), .66rem) var(--mono); }
.case-study-card h3 { margin: 0; font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.18; letter-spacing: -.03em; }
.case-study-facts { margin: 0; padding: 14px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-block: 1.5px solid var(--ink); }
.case-study-facts dt { color: var(--ink-soft); font: 700 max(var(--min-text), .58rem) var(--mono); }
.case-study-facts dd { margin: 3px 0 0; font-size: .82rem; font-weight: 800; line-height: 1.3; }
.case-study-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.case-study-results > div { padding: 14px 16px; display: grid; align-content: start; gap: 6px; border: 1.5px solid var(--ink); border-radius: var(--label-radius); background: var(--paper); }
.case-study-results strong { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; letter-spacing: -.05em; }
.case-study-results span { color: var(--ink-soft); font-size: .76rem; line-height: 1.45; }
.case-study-more { color: var(--blue-dark); font-size: .86rem; }
.case-study-card:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: clamp(28px, 4vw, 56px); }
.case-study-card:first-child .case-study-head { grid-column: 1; grid-row: 1; }
.case-study-card:first-child .case-study-facts { grid-column: 1; grid-row: 2; }
.case-study-card:first-child .case-study-more { grid-column: 1; grid-row: 3; align-self: end; }
.case-study-card:first-child .case-study-results { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.case-study-card:first-child h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
@media (max-width: 820px) {
  .case-study-grid { grid-template-columns: 1fr; }
  .case-study-card:first-child { grid-template-columns: 1fr; grid-template-rows: auto; }
  .case-study-card:first-child :is(.case-study-head, .case-study-facts, .case-study-more, .case-study-results) { grid-column: 1; grid-row: auto; }
}
@media (max-width: 520px) {
  .case-study-facts { grid-template-columns: 1fr; }
  .case-study-results { grid-template-columns: 1fr; }
}

/* Fictional quote on example pages: always labelled, attributed "(fictional)", with a note. */
.example-quote { margin: 0; max-width: 900px; padding: clamp(26px, 4vw, 44px); border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.example-quote-label { width: fit-content; margin: 0 0 18px; padding: 4px 9px; border: 1.5px dashed var(--ink); border-radius: var(--label-radius); font: 800 max(var(--min-text), .64rem) var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.example-quote blockquote { margin: 0; }
.example-quote blockquote p { margin: 0; font-size: clamp(1.25rem, 2.3vw, 1.85rem); font-weight: 700; line-height: 1.32; letter-spacing: -.025em; }
.example-quote blockquote p::before { content: "\201C"; }
.example-quote blockquote p::after { content: "\201D"; }
.example-quote figcaption { margin-top: 18px; font-size: .9rem; font-weight: 800; }
.example-quote-note { margin: 8px 0 0; color: var(--ink-soft); font-size: .78rem; }

/* Example pages: "What they found" as a lead plus finding cards, "What they decided" as numbered steps on a rail. */
#found .example-prose { max-width: none; margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px 18px; }
#found .example-prose > :is(p, ul) { margin: 0; }
#found .example-prose > p:first-child { flex: 1 1 100%; max-width: 860px; margin-bottom: 10px; color: var(--ink); font-size: clamp(1.08rem, 1.6vw, 1.28rem); font-weight: 600; line-height: 1.6; }
#found .example-prose > p:not(:first-child):not(:has(+ ul)) { flex: 1 1 340px; padding: 20px 22px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); font-size: .9rem; }
#found .example-prose > p:has(+ ul) { flex: 1 1 100%; color: var(--ink); font-weight: 700; }
#found .example-prose > ul { flex: 1 1 100%; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; list-style: none; }
#found .example-prose > ul li { padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--product-field, var(--sky)); color: var(--ink); font-size: .86rem; line-height: 1.5; }
#found .example-prose > ul li strong { display: block; margin-bottom: 6px; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.05; letter-spacing: -.04em; }

#decided .example-prose { position: relative; max-width: 880px; margin-top: 34px; padding-left: 62px; counter-reset: decision; }
#decided .example-prose::before { content: ""; position: absolute; top: 22px; bottom: 22px; left: 21px; width: 2px; background: repeating-linear-gradient(to bottom, var(--ink) 0 6px, transparent 6px 12px); }
#decided .example-prose > p { position: relative; padding: 18px 22px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); font-size: .9rem; counter-increment: decision; }
#decided .example-prose > p + p { margin-top: 18px; }
#decided .example-prose > p::before { content: counter(decision, decimal-leading-zero); position: absolute; top: 14px; left: -62px; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); color: var(--ink); font: 800 .78rem var(--mono); }
@media (max-width: 760px) {
  #decided .example-prose { padding-left: 48px; }
  #decided .example-prose::before { left: 16px; }
  #decided .example-prose > p::before { left: -48px; width: 34px; height: 34px; font-size: .68rem; }
}
.example-prose code { overflow-wrap: anywhere; }
