/* INNER PAGES (2026-10-06): services, case studies, industries, the Apply page. Same language as the home page:
   ink, bone and white grounds taking turns, Unbounce headlines with an aqua phrase, centered openers, app frames. */

/* ---------- page hero: ink, words left against the picture on a wide screen ---------- */
.pg-hero { position: relative; background: var(--ink); color: var(--bone); padding: clamp(118px, 13vh, 150px) var(--gut) clamp(64px, 8vw, 104px); overflow: hidden; }
.pg-hero-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.pg-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-d); }
.pg-crumb a:hover { color: #fff; }
.pg-crumb span { color: var(--aqua); }
.pg-hero h1 { margin-top: 18px; font-family: var(--wide); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.pg-hero h1 em { color: var(--aqua); }
/* the small line inside the headline that says what the page is, in the words people search (search map, 2026-10-15) */
.pg-hero h1 .h1-label { display: block; margin-bottom: 14px; font: 600 clamp(15px, 1.25vw, 18px)/1.35 var(--sans); letter-spacing: 0; color: var(--aqua); text-wrap: balance; }
.pg-lede { margin-top: 20px; max-width: 54ch; color: #c9c8cd; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.55; }
.pg-acts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.pg-acts .tour-btn { margin-top: 0; } /* the home page spaces its tour button; in a button row it would sit lower than its neighbour */
.pg-stats { margin-top: clamp(30px, 4vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .25); }
.pg-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 16px 14px 0 0; }
.pg-stats > div + div { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .12); }
.pg-stats dd { font-family: var(--wide); font-weight: 800; font-size: clamp(1.5rem, 2.3vw, 2.2rem); letter-spacing: -.05em; line-height: 1; color: #fff; }
.pg-stats dt { font-size: 13px; line-height: 1.35; color: var(--mute-d); }
.pg-visual { margin: 0; }
.pg-visual figcaption { margin-top: 12px; font-size: 12.5px; color: var(--mute-d); }

/* ---------- sections ---------- */
.pg-sec { padding: clamp(80px, 9vw, 130px) var(--gut); }
.pg-sec-in { max-width: var(--max); margin: 0 auto; }
.pg-bone { background: var(--bone); }
.pg-white { background: #fff; }
.pg-ink { background: var(--ink); color: var(--bone); }
.pg-head { max-width: 860px; margin: 0 auto clamp(36px, 4.5vw, 60px); text-align: center; }
.pg-head .kick { justify-content: center; }
.pg-head p:not(.kick) { margin: 16px auto 0; max-width: 60ch; color: var(--mute); font-size: 1.05rem; }
.pg-ink .pg-head p:not(.kick) { color: #c9c8cd; }
.pg-ink h2 em { color: var(--aqua); }

/* results cards */
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.res { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.4vw, 32px); border-radius: 24px; background: #fff; box-shadow: 0 1px 0 rgba(12, 12, 13, .06), 0 24px 50px -36px rgba(12, 12, 13, .4); transition: transform .2s, box-shadow .2s; }
a.res:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(12, 12, 13, .06), 0 30px 60px -36px rgba(12, 12, 13, .55); }
.res-who { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.res b { font-family: var(--wide); font-weight: 800; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -.05em; }
.res b i { font-style: normal; color: var(--aqua-ink); margin: 0 .05em; }
.res p { color: #3f3e3b; font-size: 15px; line-height: 1.45; }
.res .more { margin-top: auto; padding-top: 6px; width: fit-content; font-size: 14px; }

/* what we run: a two-by-two of short blocks, each with a small icon */
.run-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); max-width: 1100px; margin: 0 auto; border-top: 1px solid rgba(12, 12, 13, .14); }
.run-grid > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-bottom: 1px solid rgba(12, 12, 13, .14); }
.run-grid svg { width: 26px; height: 26px; margin-top: 2px; fill: none; stroke: var(--aqua-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.run-grid h3 { font-family: var(--wide); font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; }
.run-grid p { margin-top: 6px; color: #3f3e3b; font-size: 15.5px; line-height: 1.5; }

/* how a campaign runs: steps that read left to right */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step { position: relative; padding: 22px 22px 24px; border-radius: 20px; background: #fff; }
.step::after { content: ''; position: absolute; right: -10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--aqua); clip-path: polygon(0 0, 100% 50%, 0 100%); z-index: 1; }
.step:last-child::after { display: none; }
.step-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-ink); }
.step h3 { margin-top: 8px; font-family: var(--wide); font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em; }
.step p { margin-top: 6px; color: #3f3e3b; font-size: 15px; line-height: 1.45; }

/* FAQ: two separate columns, so opening a question only pushes its own column down */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); max-width: 1100px; margin: 0 auto; align-items: start; }
.faq-col details { border-bottom: 1px solid rgba(12, 12, 13, .14); }
.faq-col details:first-child { border-top: 1px solid rgba(12, 12, 13, .14); }
.faq-col summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 17px; }
.faq-col summary::-webkit-details-marker { display: none; }
.faq-col summary::after { content: '+'; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--bone); color: var(--aqua-ink); font-size: 20px; font-weight: 600; transition: transform .2s; }
.faq-col details[open] summary::after { transform: rotate(45deg); }
.faq-col details p { padding: 0 0 20px; color: #3f3e3b; font-size: 15.5px; line-height: 1.55; max-width: 56ch; }

/* ---------- the Apply page ---------- */
.ap-wrap { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.ap-form { border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(12, 12, 13, .06), 0 30px 70px -40px rgba(12, 12, 13, .45); }
.ap-form iframe { display: block; width: 100%; height: min(78vh, 720px); min-height: 560px; border: 0; }
.ap-side { display: flex; flex-direction: column; gap: 18px; }
.ap-card { padding: clamp(22px, 2.4vw, 30px); border-radius: 22px; background: #fff; }
.ap-card h2 { font-family: var(--wide); font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; }
.ap-steps { margin-top: 14px; counter-reset: ap; }
.ap-steps li { position: relative; padding: 12px 0 12px 44px; border-top: 1px solid rgba(12, 12, 13, .1); color: #3f3e3b; font-size: 15px; line-height: 1.45; }
.ap-steps li b { display: block; color: var(--ink); font-size: 15.5px; }
.ap-more { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(12, 12, 13, .1); }
.ap-steps li::before { counter-increment: ap; content: counter(ap); position: absolute; left: 0; top: 13px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--aqua); font-weight: 800; font-size: 14px; }
.ap-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-proof div { padding: 18px; border-radius: 18px; background: var(--ink); color: #fff; }
.ap-proof b { display: block; font-family: var(--wide); font-weight: 800; font-size: 1.8rem; letter-spacing: -.05em; line-height: 1; color: var(--aqua); }
.ap-proof span { display: block; margin-top: 6px; font-size: 13px; color: var(--mute-d); line-height: 1.35; }
.ap-quote { font-family: var(--wide); font-weight: 600; font-size: 1.05rem; line-height: 1.35; letter-spacing: -.02em; }
.ap-quote cite { display: block; margin-top: 10px; font: 600 12.5px var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.pg-hero-short { padding-bottom: clamp(40px, 5vw, 64px); }
.pg-hero-short .pg-hero-in { grid-template-columns: 1fr; text-align: center; max-width: 900px; }
.pg-hero-short .pg-crumb { justify-content: center; }
.pg-hero-short .pg-lede { margin-left: auto; margin-right: auto; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .pg-hero-in { grid-template-columns: 1fr; text-align: center; }
  .pg-crumb, .pg-acts { justify-content: center; }
  .pg-lede { margin-left: auto; margin-right: auto; }
  .pg-visual { max-width: 820px; width: 100%; margin: 0 auto; }
  .pg-stats { max-width: 640px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
  .ap-wrap { grid-template-columns: 1fr; max-width: 760px; }
}
/* Every page opens on its picture (Rulebook 1.27; launch check 2026-11-13: 22 openings put "Apply for your strategy"
   and a second button above the picture, which then started below the first screen of a phone). Stacked (phones and
   tablets), the opening reads: the small line, the headline, the picture, then the words and the buttons. The words' box
   steps aside (display: contents) so its pieces can be put in that order; side by side on a computer nothing changes. */
@media (max-width: 1180px) {
  .pg-hero-in:has(> .pg-visual, > .sw-film) { display: flex; flex-direction: column; gap: 0; }
  .pg-hero-in:has(> .pg-visual, > .sw-film) > div:first-child:not(.pg-visual) { display: contents; }
  .pg-hero-in:has(> .pg-visual, > .sw-film) > div:first-child:not(.pg-visual) > * { order: 4; }
  .pg-hero-in:has(> .pg-visual, > .sw-film) > div:first-child:not(.pg-visual) > .pg-crumb { order: 1; }
  .pg-hero-in:has(> .pg-visual, > .sw-film) > div:first-child:not(.pg-visual) > h1 { order: 2; }
  .pg-hero-in:has(> .pg-visual, > .sw-film) > :is(.pg-visual, .sw-film) { order: 3; margin-top: clamp(26px, 4vw, 40px); margin-bottom: 12px; }
}
/* ... and on a phone it shows ONE button of its own: Apply is in the header all the time. Where the second button is a
   tour with sound (the software pages), the tour stays, because nothing else on the page plays it. */
@media (max-width: 720px) {
  .pg-hero .pg-acts > .btn ~ .btn { display: none; }
  .pg-hero .pg-acts:has(> .tour-btn) > .btn:not(.tour-btn) { display: none; }
  .pg-hero .pg-acts:has(> .tour-btn) > .tour-btn { display: inline-flex; }
}
@media (max-width: 900px) {
  .res-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .run-grid, .faq { grid-template-columns: 1fr; }
  .faq-col + .faq-col details:first-child { border-top: 0; }
}
@media (max-width: 720px) {
  .pg-acts .btn { flex: 1 1 100%; }
  .pg-stats { grid-template-columns: 1fr; }
  .pg-stats > div, .pg-stats > div + div { flex-direction: column-reverse; align-items: center; padding: 14px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .res { text-align: center; align-items: center; }
  .ap-form iframe { height: 640px; }
}

/* =====================================================================================================================
   THE NEXT LEVEL LOOK ON EVERY INNER PAGE (round twelve, 2026-11-15). Ian: "let's get the rest of the website looking the
   same way, like how you change the font and things of that nature, so everything looks in unison." Every page in
   src/pages carries body class nx-in (build.mjs) and loads Geist + Geist Mono instead of Unbounded + Inter. Same type as
   /skin-next/ (src/css/skins/next.css): Geist for headlines, numbers and words, a touch tighter; Geist Mono for every
   small capital-letter label, the crumbs and the browser bars; numbers in equal widths so they line up. The home-page
   looks never load this file, so their Unbounded + Inter stay exactly as they are. The header and footer are left as the
   Next level home shows them, so the two read as one site.
   ===================================================================================================================== */
body.nx-in {
  --wide: 'Geist', 'Geist Fallback', system-ui, sans-serif;
  --sans: 'Geist', 'Geist Fallback', system-ui, sans-serif;
  --mono: 'Geist Mono', 'Geist Mono Fallback', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
.nx-in :is(h1, h2, h3) { font-feature-settings: 'ss01' on; }
/* every number lines up: same-width digits in figures, tables and the counting numbers */
.nx-in :is(b, strong, dd, td, th, time, output) { font-variant-numeric: tabular-nums; }
/* the small labels: Geist Mono, quiet and exact (the list is every small capital-letter label in the site's stylesheets;
   the wide-spaced ones close up a little, since mono letters are already wide) */
.nx-in .kick { font-family: var(--mono); font-weight: 500; letter-spacing: .08em; }
.nx-in :is(.chart-t, .loud-head, .prod-label, .since-t, .sys-step, .rf-live, .med-team-t, .med-states-t, .med-step, .pg-crumb,
  .step-k, .jl-rk, .jl-reel time, .jl-free h3, .as-step .k, .ar-about-k, .ar-toc-h, .ar-cta-k, .ar-card-k,
  .bl-guide-k, .sm-split h3, .cl-first-k, .cl-stage-k, .cl-list-h, .cl-stage-head span:last-child, .cl-proof-need p,
  .cl-grow h3, .cl-next .cl-vs, .cl-v h2, .cl-cmp thead th, .cl-cost-k, .cl-team-sum p.cl-team-k, .ls-st h3 small,
  .mp-k, .mp-in legend, .mp-out-h, .mp-card-h, .ar-body .mp-fill-k, .nr-sub, .nr-tag, .nr-say-h,
  .nc-t thead .nc-omg span, .nr-lab, .board-word small, .board-where, .sn-then span, .ws-new-k, .rba-gate-tag,
  .rba-day small, .rbp-glance-n small, .rbp-contents h3 small, .rb-b .rbcr-where, .rb-b .rbcr-ledger-t,
  .rb-b .rbcr-live-t, .rb-b .rbod-card-t, .rb-b .rbod-tier-h, .rb-b .rbcr-tile-l, .rbc-ad-notes b, .rbc-lhead,
  .rbc-lane-k, .rbc-map-top b, .rbc-map th, .rbc-page-k, .rbc-book-k, .rbc-col-k, .rbd-towns-k, .rbd-way-k,
  .rbd-jump-k, .rbd-chip, .re-client-k, .re-soft-k, .re-slip-row span, .re-chat-t, .re-thread-t, .re-docs-k,
  .re-pc dt, .re-pc-team b, .re-book span, .rbf .rbf-areas-t, .rbf .rbf-win .rbf-k, .rbf .rbf-shelf .rbf-k,
  .rbf .rbf-tx-head, .rbf .rbf-lab, .rbf .rbf-hb-t, .rbf .rbf-rule > b, .rp-data-k, .rp-viz-t, .rp-tb-k, .rp-ch-k,
  .rp-do-k, .rp-ct, .rp-srcs li.rp-srcs-h, .sv-card-k, .sv-stage-k, .sv-states-t, .sw-tags, .sw-tile-step,
  .sl-facts th, .sl-draw-k, .sl-bubble b, .sm-k, .sm-search label, .sm-card-k, .tl-card legend, .tl-out-k,
  .tl-block-h, .tl-how h3, .tl-levers-h, .tl-rel h3, .th-k, .th-live-h, .facts dt, .card-t, .card .card-t,
  .since-row .since-t, .mcard-logo .mcard-word small) { font-family: var(--mono); font-weight: 500; letter-spacing: .1em; }
.nx-in :is(.case-meta, .bar-c span, .case-quote cite, .ops-sig, .res-who, .ap-quote cite, .cf-dl dt, .jl-rq cite, .jl-q cite,
  .jl-art span, .as-win-bar, .as-src b, .as-side small, .as-strips-t, .as-strips cite, .as-check-h span, .ar-meta,
  .ar-table thead th, .ar-quote figcaption, .bl-meta, .cl-quote cite, .cl-nums dt b, .cl-edge, .ls-panel-t,
  .ls-tile q b, .ls-ad-k, .ls-key small, .ls-check-h span, .mp-sv-h, .nr-col-h span, .nc-t tbody th, .cs-where,
  .sb span, .ws-new .ws-where, .ws-where, .rba-gate-not, .rb-b .rb-who, .rbc-tag, .rbc-lp-part b, .rbc-lane li b,
  .rbc-pull cite, .rbc-said cite, .rbd-way-who, .rbd-live-where, .re-who, .re-client-q cite, .re-soon, .re-msg span,
  .rbf .rbf-who, .rbf .rbf-joe-q cite, .rp-tag span, .sv-statnote, .sv-chartcard cite, .sv-joe cite,
  .sv-bigquote cite, .sv-proof-meta, .sw-tile .only, .sl-who, .sl-live, .sm-qa dt, .sm-cities span, .sm-tag,
  .tl-rail-mark b, .tl-quote cite, .tl-print-head, .say-solo cite, .mcard-where, .joe-words cite, .say-cs cite,
  .say-q cite) { font-family: var(--mono); font-weight: 500; }
.nx-in .cl-cmp td::before, .nx-in .sys.on .sys-name::after { font-family: var(--mono); font-weight: 500; letter-spacing: .08em; }
.nx-in :is(.frame-bar, .only) { font-family: var(--mono); font-weight: 500; }
/* section headlines as the Next level home sets them: heavier and closer (a page's own headline rules still win) */
.nx-in :where(h2) { font-weight: 800; letter-spacing: -.05em; line-height: 1; }
