/*
  v18-framework.css · the Tokenization Framework page (build_v18_framework.py). Loaded after v18.css
  (canon tokens --blue #1f63d6, --navy #0a2b6d, --grey, --g, --w, --grid, --sans, --mono; header, menu,
  footer, .lb-btn) and v18-std.css (.st-top, .st-pills, .st-lede, .st-sec, .st-btn, .st-end, .on-light).

  The one graphic idea: a staircase of eight steps, and it is the head of the page (on a wide screen the
  headline sits in the empty corner above the low steps). Each step is one phase and stands on the one before
  it; the marks at its foot are the steps of that phase (48 in all); the brackets under the staircase
  are the four groups who do the work. The chosen step is Stobox blue, the steps already climbed are a
  deeper tint, the rest are pale.

  Sections: head · staircase · who brackets · detail of a phase · products on the same axis · notes ·
  narrow screens · wide screens (head over the staircase) · motion.
  Kept: only the canon blues and greys, one sans, no top lines on cards, no icon chips, body text 18px+
  (mono labels 14px+), motion only on entry (once) and on interaction, none under reduced motion.
  How to check: http://localhost:8250/v18-framework.html at 1440 and 375 wide. Undo: delete this file
  and its <link> in the builder.
*/

/* ---- head: text only; the staircase below is its picture ---- */
.h-fw{background:#fff;color:var(--navy);padding-bottom:clamp(8px,1.4vw,20px)}
.h-fw .st-pills a{color:var(--navy)}
.st-top.h-fw h1{max-width:15ch;font-size:clamp(38px,4.6vw,70px);line-height:1;letter-spacing:-.045em}
.h-fw .st-lede{color:#2c3a58;max-width:38ch;margin-top:clamp(16px,2vw,22px)}
.fw-cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px;margin:clamp(20px,2.6vw,30px) 0 0}
.fw-jump{font-size:18px;font-weight:600;color:var(--navy);text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(10,43,109,.35)}
.fw-jump:after{content:"\00a0↓"}
.fw-jump:focus-visible,.fw-all:focus-visible,.fw-plist a:focus-visible,.fw-note a:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

/* ---- the map ---- */
.fw-map{max-width:var(--w);margin:0 auto;padding:clamp(20px,2.4vw,36px) var(--g) clamp(48px,6vw,96px);scroll-margin-top:12px}
.fw-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* staircase: eight touching columns; the height of each comes from its index */
.fw-stairs{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));align-items:end;height:clamp(250px,34vw,470px);border-bottom:2px solid var(--navy)}
.fw-step{position:relative;display:flex;flex-direction:column;box-sizing:border-box;height:calc(34% + var(--i)*9.43%);padding:16px 14px 14px;background:#e6eefb;color:var(--navy);text-decoration:none;
  box-shadow:inset 1px 0 0 #fff;transition:background-color .2s,color .2s}
.fw-step:first-child{box-shadow:none}
.fw-step .n{font:500 15px/1 var(--mono);letter-spacing:.04em;color:var(--blue);transition:color .2s}
.fw-step b{margin-top:10px;font-size:clamp(17px,1.4vw,19.5px);line-height:1.16;letter-spacing:-.015em;font-weight:600}
/* one mark per step of the phase */
.fw-step .t{display:flex;gap:5px;margin-top:auto;padding-top:10px}
.fw-step .t i{width:2px;height:14px;background:currentColor;opacity:.55}
.fw-step small{margin-top:7px;font:500 14px/1 var(--mono);color:#3b5486;transition:color .2s}
.fw-step.was{background:#c4d8fa}
@media (hover:hover){.fw-step:hover{background:#b3ccf8}}
.fw-step[aria-current]{background:var(--blue);color:#fff}
.fw-step[aria-current] .n,.fw-step[aria-current] small{color:#e9f0ff}
.fw-step[aria-current] .t i{opacity:.9}
.fw-step:focus-visible{outline:3px solid var(--navy);outline-offset:3px;z-index:1}

/* the four groups, on the same eight columns */
.fw-rail{display:none}
.fw-who{list-style:none;margin:0;padding:10px 0 0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr))}
.fw-who li{margin:0 4px;padding:12px 10px 0;border-top:2px solid #b9c4d8;border-inline:2px solid #b9c4d8;border-image:linear-gradient(#b9c4d8 0 9px,transparent 9px) 2;display:flex;flex-direction:column;gap:5px;color:#3b4a68;transition:color .2s}
.fw-who small{font:500 14px/1 var(--mono);letter-spacing:.04em}
.fw-who b{font-size:18px;line-height:1.25;font-weight:600;text-wrap:balance}
.fw-who li.on{color:var(--navy);border-image:linear-gradient(var(--blue) 0 9px,transparent 9px) 2}
.fw-who li.on small{color:var(--blue)}

/* ---- detail of the chosen phase ---- */
.fw-detail{position:relative;margin-top:clamp(28px,3.4vw,52px);border-top:1px solid #cfd6e4}
/* pointer under the chosen step: a small notch on the rule, placed by --sel (1 to 8) */
.fw-map.js .fw-detail:before{content:"";position:absolute;top:-8px;left:calc((var(--sel) - .5)*12.5%);width:14px;height:14px;margin-left:-7px;background:#fff;border-left:1px solid #cfd6e4;border-top:1px solid #cfd6e4;transform:rotate(45deg);transition:left .35s cubic-bezier(.23,1,.32,1)}
.fw-ph{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.2fr) minmax(0,1fr);gap:clamp(24px,3.6vw,64px);padding-top:clamp(32px,4vw,60px);scroll-margin-top:clamp(420px,calc(34vw + 170px),640px)}
.fw-ph[hidden]{display:none}
/* without the script all eight are listed; a rule separates them */
.fw-map:not(.js) .fw-ph+.fw-ph{margin-top:clamp(32px,4vw,60px);border-top:1px solid #cfd6e4}
.fw-ph .k{margin:0 0 14px;font:500 15px/1 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--blue)}
.fw-ph h2{margin:0;font-size:clamp(34px,3.7vw,58px);line-height:1.02;letter-spacing:-.04em;font-weight:600;color:var(--navy);text-wrap:balance}
.fw-ph .pur{margin:18px 0 28px;font-size:clamp(20px,1.6vw,23px);line-height:1.42;color:#16203a;text-wrap:pretty}
.fw-ph h3{margin:0 0 10px;font:500 14px/1.2 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#566683}
.fw-ph h3 sup{font:inherit;letter-spacing:.04em;color:#5d6673;top:0;margin-left:8px;vertical-align:baseline;text-transform:none}
.fw-ph h3:not(:first-child){margin-top:30px}
.fw-ph p{margin:0;font-size:18.5px;line-height:1.5;color:#16203a;text-wrap:pretty}
.fw-ph p small{display:block;font-size:16px;color:#566683;margin-bottom:2px}
.fw-ph p b{font-weight:600;color:var(--navy)}
.fw-ph .out{font-size:clamp(21px,1.7vw,25px);line-height:1.32;letter-spacing:-.015em;font-weight:600;color:var(--navy)}
.fw-steps{list-style:none;margin:0;padding:0;border-bottom:1px solid #dfe4ee}
.fw-steps li{display:grid;grid-template-columns:52px 1fr;padding:13px 0;border-top:1px solid #dfe4ee;font-size:18.5px;line-height:1.4;color:#16203a}
.fw-steps span{font:500 14px/1.85 var(--mono);color:var(--blue)}
.fw-pn{grid-column:1/-1;display:flex;justify-content:space-between;gap:24px;padding-top:22px;border-top:1px solid #dfe4ee}
.fw-pn a{display:flex;flex-direction:column;gap:5px;font-size:19px;font-weight:600;color:var(--navy);text-decoration:none}
.fw-pn a[rel=next]{text-align:right;margin-left:auto}
.fw-pn small{font:500 14px/1 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:#566683}
.fw-pn a[rel=prev] small:before{content:"← "}.fw-pn a[rel=next] small:after{content:"\00a0→"}
@media (hover:hover){.fw-pn a:hover{color:var(--blue)}}
.fw-pn a:focus-visible,.fw-ph .st-btn:focus-visible{outline:2px solid var(--blue);outline-offset:4px}

/* ---- products on the same eight columns ---- */
.fw-prod{border-top:1px solid #dfe4ee}
.fw-prod header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px clamp(24px,4vw,72px);align-items:end;margin-bottom:clamp(28px,3.4vw,48px)}
.fw-prod h2,.fw-note h2{margin:0;font-size:clamp(32px,3.6vw,56px);line-height:1.04;letter-spacing:-.04em;font-weight:600;color:var(--navy);text-wrap:balance}
.fw-prod header p{margin:0;max-width:44ch;font-size:clamp(19px,1.5vw,22px);line-height:1.45;color:#2c3a58}
.fw-axis .r,.fw-axis .bars{display:grid;grid-template-columns:repeat(8,minmax(0,1fr))}
.fw-axis .r span{padding:0 0 10px 12px;border-left:1px solid #b9c4d8;font:500 15px/1 var(--mono);color:#566683}
.fw-axis .bars{background:repeating-linear-gradient(90deg,#b9c4d8 0 1px,transparent 1px 12.5%);padding:6px 0}
.fw-axis .bars i{display:flex;align-items:center;height:clamp(52px,5vw,72px);padding:0 16px;font-style:normal;color:#fff;font-size:clamp(18px,1.6vw,23px);font-weight:600;letter-spacing:-.01em;min-width:0}
.fw-axis i.intelligence,.fw-plist i.intelligence{background:var(--blue)}
.fw-axis i.compass,.fw-plist i.compass{background:var(--navy)}
/* Terminal is the ground all eight stand on: the live pages name it as the account, not as a phase */
.fw-axis .ground{display:flex;align-items:center;height:clamp(52px,5vw,72px);padding:0 16px;border:2px solid var(--navy);border-top-width:2px;color:var(--navy);font-size:clamp(18px,1.6vw,23px);font-weight:600;background-image:var(--grid)}
.fw-plist{list-style:none;margin:clamp(28px,3.4vw,48px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px clamp(24px,4vw,72px)}
.fw-plist i{display:block;width:44px;height:8px;margin-bottom:16px}
.fw-plist i.terminal{box-sizing:border-box;border:2px solid var(--navy)}
.fw-plist small{font:500 14px/1 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:#566683}
.fw-plist h3{margin:8px 0 10px;font-size:clamp(26px,2.2vw,32px);letter-spacing:-.025em;font-weight:600}
.fw-plist h3 a{color:var(--navy);text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:6px;text-decoration-color:rgba(10,43,109,.3)}
.fw-plist h3 a:after{content:"\00a0→";color:var(--blue)}
.fw-plist p{margin:0;font-size:18.5px;line-height:1.5;color:#2c3a58;text-wrap:pretty}

/* ---- what it does not cover, and who wrote it ---- */
.fw-note{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:clamp(28px,5vw,96px);border-top:1px solid #dfe4ee}
.fw-note ul{list-style:none;margin:clamp(24px,3vw,40px) 0 0;padding:0;border-bottom:1px solid #dfe4ee}
.fw-note li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:8px 32px;padding:20px 0;border-top:1px solid #dfe4ee}
.fw-note li h3{margin:0;font-size:22px;line-height:1.25;letter-spacing:-.02em;font-weight:600;color:var(--navy)}
.fw-note li p{margin:0;font-size:18.5px;line-height:1.5;color:#2c3a58}
.fw-note .by small{font:500 14px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#566683}
.fw-note .by p{margin:14px 0 0;font-size:18px;line-height:1.5;color:#3b4a68}
/* the honest note: ruled off and in full ink, so it is read and not skimmed past as fine print */
.fw-note .by .fresh{margin-top:20px;padding-top:16px;border-top:1px solid #dfe4ee;color:#16203a}
.fw-note .by .fresh a{color:var(--blue);font-weight:600;text-decoration:underline;text-underline-offset:4px}
.fw-note .by .who{font-size:clamp(24px,2.1vw,30px);line-height:1.2;letter-spacing:-.02em;font-weight:600;color:var(--navy)}
.fw-note .by .who a{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:5px;text-decoration-color:rgba(10,43,109,.3)}
.fw-all{display:inline-block;margin-top:20px;font-size:18px;font-weight:600;color:var(--blue)!important;text-decoration:underline;text-underline-offset:5px}
.fw-all:after{content:"\00a0→"}

/* ---- narrow screens ---- */
/* Below 1100px a column is too narrow for a phase name at a readable size: the step keeps its numeral,
   large, and the name is read in the detail (it stays in the link for screen readers). */
@media (max-width:1100px){
.fw-step{padding:12px 4px 10px;align-items:center;text-align:center}
.fw-step .n{font:600 clamp(19px,3.4vw,30px)/1 var(--sans);letter-spacing:-.03em;color:inherit}
.fw-step b{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.fw-step small{display:none}
.fw-step .t{gap:2px;justify-content:center}
/* the brackets become a list; a rail of four segments keeps the grouping on the axis */
.fw-rail{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));padding-top:8px}
.fw-rail i{height:4px;margin:0 2px;background:#b9c4d8}.fw-rail i:nth-child(odd){background:var(--navy)}
.fw-who{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;padding-top:14px}
.fw-who li{grid-column:auto!important;margin:0;padding:12px 0;border:0;border-bottom:1px solid #dfe4ee;flex-direction:row;align-items:baseline;gap:12px}
.fw-who small{flex:0 0 74px;line-height:1.4}
.fw-ph{grid-template-columns:minmax(0,1fr) minmax(0,1fr);scroll-margin-top:calc(clamp(250px,34vw,470px) + 190px)}
.fw-ph .a{grid-column:1/-1;max-width:40ch}
.fw-note{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px){
.fw-who{grid-template-columns:minmax(0,1fr)}
.fw-ph{grid-template-columns:minmax(0,1fr);scroll-margin-top:540px}
.fw-pn a{font-size:18px;max-width:46%}
.fw-prod header,.fw-plist,.fw-note li{grid-template-columns:minmax(0,1fr)}
.fw-axis .r span{padding-left:6px}
/* a one-phase bar is about 40px wide here, so the names move to the list below (colour key on each item) */
.fw-axis .bars i span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.fw-axis .bars i{padding:0}
}

/* ---- wide screens: the head over the staircase (kept after the map rules, which it overrides) ---- */
/* Wide screens: the head text is laid over the empty upper-left corner of the staircase, so the map is on
   the first screen and the text block steps down with the stairs (headline over four columns, lede over
   three, buttons over two).
   --u is one design pixel: 1px when the content column is its full 1280px, less on a narrower window, so
   the stairs and the type shrink together and the text keeps clear of the steps. Every size in this block
   is a multiple of --u; the numbers are the layout at 1440 wide. The lede never goes under 18px.
   --top is where the pills and the top of step 08 sit, under the site header.
   Order matters: .h-fw comes first in the markup and is taken out of the flow, .fw-map then starts at the
   top of the page and reserves --top itself. */
@media (min-width:1200px){
main{position:relative;--u:calc(min(100vw - 2*var(--g),1280px)/1280);--top:clamp(130px,12vw,180px)}
.st-top.h-fw{position:absolute;inset:0 0 auto;z-index:1;background:none;padding-top:var(--top);padding-bottom:0;pointer-events:none}
.h-fw>*{pointer-events:auto}
.h-fw .st-pills{margin-bottom:clamp(22px,2.6vw,36px)} /* the shared space, so the h1 starts level (item 55) */
.st-top.h-fw h1{max-width:calc(var(--u)*640);font-size:calc(var(--u)*66)}
.h-fw .st-lede{max-width:calc(var(--u)*440);margin-top:calc(var(--u)*16);font-size:max(18px,calc(var(--u)*19));line-height:1.42}
.fw-cta{margin-top:calc(var(--u)*18);gap:0 calc(var(--u)*20);flex-wrap:nowrap}
/* The hero button keeps the site's full size (final QA item 56, 22.11.2026): no scaled-down copy here. */
.fw-jump{font-size:max(16px,calc(var(--u)*17));white-space:nowrap}
.fw-map{padding-top:var(--top)}
.fw-stairs{height:calc(var(--u)*620)}
/* the first step is 24% of the height: the least that holds a number, a one-line name, the marks and the count */
.fw-step{height:calc(24% + var(--i)*10.857%)}
.fw-ph{scroll-margin-top:calc(var(--u)*620 + var(--top) + 130px)}
}

/* ---- motion: once on entry, and on choice; none under reduced motion ---- */
@media (prefers-reduced-motion:no-preference){
.fw-step{transform-origin:bottom;animation:fw-rise .6s cubic-bezier(.23,1,.32,1) both;animation-delay:calc(var(--i)*45ms)}
.fw-map.js .fw-ph{animation:fw-in .28s ease-out both}
}
@keyframes fw-rise{from{transform:scaleY(.35);opacity:0}to{transform:none;opacity:1}}
@keyframes fw-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.fw-step,.fw-step *,.fw-who li,.fw-map.js .fw-detail:before{transition:none}}

/* Touch: "Pick a phase" gets a 44px tap area (QA 21.11). */
@media (pointer:coarse){.fw-jump{display:inline-block;padding-block:10px}}
/* Head rhythm (final QA item 55, 22.11.2026): the h1 starts where every other white head starts (the shared
   .st-top padding), and tool heads share one size, 66px at 1440 (4.6vw). */
/* Contrast (final QA items 20 and 64, 22.11.2026): grey #8a93a8 text is #5d6673 on light grounds, and the
   pale labels on blue or navy are #e9f0ff, so every label reaches 4.5:1. */
/* Titles level in the three product columns (final QA item 62, 22.11.2026): where a label wraps
   ("The account you register" at 768), every label keeps two lines, so the three titles start level. */
@media (max-width:1100px){.fw-plist small{display:block;min-height:2lh}}
/* Tap targets on a touch screen, 44px at least (final QA item 61, 22.11.2026). Only under a coarse pointer, so
   the desktop rhythm of these lists stays as approved. */
@media (pointer:coarse){.fw-step{min-height:44px}.fw-plist h3 a,.fw-all{display:inline-flex;align-items:center;min-height:44px}}

/* Arrows after link text are written content:"\00a0→" (a no-break space), not " →": inside a flex or
   inline-flex link (the 44px touch boxes) a leading plain space in ::after is dropped, so "See the
   Terminal→" lost its gap; the no-break space also keeps the arrow from wrapping alone onto a new line.
   Final QA 22.11.2026, round 3, item 8. */

/* Touch: each of the eight stairs is a link to its phase, so each must be at least 44px wide (final QA
   22.11.2026, round 3, item 6). Inside the page gutter at 375 a step was 42px; on phones the stairs and the
   rail of brackets under them run to the screen edges, which gives 8 x 46.9px at 375 and 45px at 360.
   Below 352px (a 320 phone) eight steps cannot reach 44px without scrolling the drawing; they stay 40px,
   above the 24px WCAG 2.5.8 minimum, with no gap between them (the deliberate exception). */
@media (max-width:760px){.fw-stairs,.fw-rail{margin-inline:calc(-1 * var(--g))}}
