/* AXIS /axis page - rebuild of 2026-09-18 (brief 2026-09-18a).
 * Scoped to this page only; linked from axis.html alongside axis-reskin.css,
 * which still carries the locked header/nav and footer skin. style.css is not
 * touched and no sitewide version is bumped.
 *
 * Type: the page's existing self-hosted faces - Inter 400/700 via --sans, and
 * the Spline Sans Mono DIGITS subset via --flap for the countdown number only.
 * That subset covers U+0030-0039 and nothing else, so it is never applied to a
 * string containing a letter or a currency sign (the price figure stays --sans).
 *
 * Layout reproduces reference_axis.html, a fixed 1440px mockup, responsively.
 * Two- and three-column rows collapse to one column below 900px, text first.
 */

.ax {
  --ax-green:#0A2F23;
  --ax-green-mid:#14493A;
  --ax-cream:#F5F3EC;
  --ax-amber:#FCD34D;
  --ax-head:#0F172A;
  --ax-ink:#111827;
  --ax-body:#374151;
  --ax-muted:#4B5563;
  --ax-muted-2:#6B7280;
  --ax-rule:#E5E7EB;
  --ax-rule-cream:#E0DCCF;
  --ax-edge:#D1D5DB;
  --ax-panel:#FAFAFA;
  --ax-on-green:#E3EDE8;
  --ax-on-green-mut:#CFE0D8;
  --ax-on-green-edge:#7FA596;
  --ax-ok:#4a7a55;
  /* CJ ruling, STOP 2: the portal's #d99940 carries white 12px/700 at 2.45:1,
     under the 4.5:1 floor 1.4 also sets. #8A5A12 is the reference's own
     "with gaps" colour and clears it. Native visuals only - the walkthrough
     files keep the portal value and are not touched. */
  --ax-attention:#8A5A12;
  --ax-overdue:#c44a4a;
  --ax-notset:#6b6b80;
  font-family:var(--sans);
}

/* ---- shared shell ---- */
.ax-sec { padding:88px 0; }
.ax-sec--wide { padding:96px 0; }
.ax-sec--paper { background:#ffffff; }
.ax-sec--cream { background:var(--ax-cream); }
.ax-sec--green { background:var(--ax-green); }
/* max-width is the CONTENT width plus the 24px gutters, so the content itself
   reaches the reference's 1120px (hero 1200px). Setting max-width to 1120
   flat left the picker iframe 1072px wide - under the 1081px floor in 1.6,
   where the walkthrough drops a scale step. */
.ax-wrap { width:100%; max-width:1168px; margin:0 auto; padding:0 24px; }
.ax-wrap--hero { max-width:1248px; }
.ax-wrap--narrow { max-width:948px; }

.ax h1, .ax h2, .ax h3 { margin:0; font-weight:700; letter-spacing:-0.02em; }
.ax-h1 {
  font-size:clamp(40px, 5vw, 72px); line-height:1.03; letter-spacing:-0.03em;
  color:#ffffff; text-wrap:balance;
}
.ax-h2 { font-size:clamp(30px, 3.2vw, 42px); line-height:1.12; color:var(--ax-head); text-wrap:balance; }
.ax-h2--on-green { color:#ffffff; }
.ax-lead { margin:0; font-size:19px; line-height:1.6; color:var(--ax-muted); }
.ax-p { margin:0; font-size:19px; line-height:1.65; color:var(--ax-body); }

/* ---- buttons ---- */
.ax-btn {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:16px 28px; border-radius:8px;
  font-family:var(--sans); font-weight:700; font-size:16px; line-height:1.2;
  text-decoration:none; border:1px solid transparent;
}
.ax-btn--amber { background:var(--ax-amber); color:var(--ax-green); }
.ax-btn--ghost { background:transparent; color:#ffffff; border-color:var(--ax-on-green-edge); }
.ax-btn--green { background:var(--ax-green); color:#ffffff; font-size:17px; padding:17px 24px; }
.ax-btns { display:flex; flex-wrap:wrap; gap:14px; margin-top:6px; }

/* ⚠ HOVER IS NOT INHERITED FROM THE REST STATE, AND THAT IS WHAT SHIPPED.
 * axis-reskin.css carries a global `a:hover{ color:var(--grn-deep) }` (#072318).
 * Its specificity (0,0,1,1) beats a single-class rest rule (0,0,1,0), so every
 * <a> here silently turned near-black ON HOVER - including the two buttons whose
 * ground is the AXIS green, which CJ found at 1.14:1, invisible. The rest-state
 * contrast sweep could not see this: it measures the resting page, and :hover is
 * a state it never enters. Every interactive element on this page now pins its
 * own hover colour at 0,0,2,0 so the global rule cannot reach it again, and the
 * sweep now measures hover per element.
 * Hover treatments follow the reskin's own conventions: gold darkens to #DFA832,
 * an outlined control brightens its border, a solid green control lightens. */
.ax-btn--amber:hover { background:#DFA832; color:var(--ax-green); }
.ax-btn--ghost:hover { color:#ffffff; border-color:var(--ax-on-green-mut); }
.ax-btn--green:hover { background:var(--ax-green-mid); color:#ffffff; }
.picker__item:hover { color:var(--ax-body); }
.picker__item.is-active:hover { color:#ffffff; }

.ax a:focus-visible, .ax button:focus-visible, .ax iframe:focus-visible {
  outline:3px solid var(--ax-amber); outline-offset:2px;
}
.ax-sec--paper a:focus-visible, .ax-sec--cream a:focus-visible {
  outline-color:var(--ax-green);
}

/* ---- S1 hero ---- */
.ax-hero { background:var(--ax-green); padding:64px 0 0; }
.ax-hero__top {
  display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:80px; align-items:end;
}
.ax-hero__copy { display:flex; flex-direction:column; gap:22px; }
.ax-hero__lead { margin:0; font-size:21px; line-height:1.55; color:var(--ax-on-green); max-width:760px; }
.ax-hero__price { margin:0; font-size:16px; font-weight:400; color:var(--ax-on-green-mut); }
.ax-hero__price strong { font-weight:700; color:#ffffff; }
.ax-count { display:flex; flex-direction:column; gap:4px; border-left:2px solid var(--ax-amber); padding-left:20px; }
.ax-count__n {
  font-family:var(--flap); font-variant-numeric:tabular-nums;
  font-size:64px; font-weight:700; color:#ffffff; line-height:1; letter-spacing:-0.02em;
}
.ax-count__t { font-size:16px; line-height:1.5; color:var(--ax-on-green-mut); }

/* ---- walkthrough frame (1.6 - mirrors the walkthrough files' own scale steps) ---- */
.axw { width:100%; max-width:1120px; margin:0 auto; }
.axw iframe { display:block; width:100%; border:0; height:700px; }
@media (max-width:1128px) { .axw iframe { height:584px; } }
@media (max-width:948px)  { .axw iframe { height:476px; } }
@media (max-width:768px)  { .axw iframe { height:368px; } }
.axw-fallback { display:none; }
@media (max-width:640px)  { .axw iframe { display:none; } .axw-fallback { display:block; } }

/* The hero window overlaps the section below by 140px on desktop, as in the
   reference. The spacer below it is what that overlap eats into. */
.ax-hero__frame { margin-top:40px; margin-bottom:-140px; position:relative; }
.ax-hero__frame .axw iframe,
.ax-hero__frame .axw-fallback {
  border:1px solid var(--ax-edge); border-radius:10px; overflow:hidden; background:#ffffff;
}
.ax-hero__spacer { background:#ffffff; height:150px; }
/* EMPTY slot (brief 2026-09-27d: the readiness clip came out, nothing replaces it).
   Nothing overlaps, so no negative margin and no spacer - the slot is only the
   hero's bottom padding. Drop both --empty/--off modifiers when a clip goes back. */
.ax-hero__frame--empty { margin:0; height:64px; }
.ax-hero__spacer--off { display:none; }

/* ---- trust strips (reinstated 2026-09-19) ----------------------------------
 * The pre-rebuild page carried a dark "Built around requirements from" strip as
 * plain NAMES; the homepage carries both strips as LOGOS. These reproduce the
 * homepage's .trust-strip treatment, because /axis does not load style.css.
 * ⚠ GROUND IS NOT A FREE CHOICE HERE. Measured on the assets: the seven body
 * logos are dark ink (1.15-3.89:1 on the AXIS green - four of them invisible)
 * and only clear 3:1 on a light ground. So these strips are white, never green,
 * and the label carries the meaning if an image fails to load. */
.ax-trust { padding:32px 0; background:#ffffff; border-bottom:1px solid var(--ax-rule); }
.ax-trust__label {
  text-align:center; margin:0 0 20px; font-size:12px; font-weight:700;
  color:var(--ax-muted-2); text-transform:uppercase; letter-spacing:0.08em;
}
.ax-trust__logos { display:flex; align-items:center; justify-content:center; gap:40px; flex-wrap:wrap; }
.ax-trust__logos img { height:40px; width:auto; opacity:0.45; filter:grayscale(100%); transition:opacity 0.2s; }
.ax-trust__logos img:hover { opacity:0.7; }
@media (max-width:768px) {
  .ax-trust__logos { gap:24px; }
  .ax-trust__logos img { height:32px; }
}

/* ---- S2-S5 story rows ---- */
.ax-story { display:grid; grid-template-columns:minmax(0,1fr) 520px; gap:80px; align-items:center; }
.ax-story--vleft { grid-template-columns:460px minmax(0,1fr); }
.ax-story--vleft-wide { grid-template-columns:420px minmax(0,1fr); }
.ax-story__text { display:flex; flex-direction:column; gap:18px; }
.ax-story__visual { min-width:0; }
/* DOM order is always text-then-visual so the collapse needs no reordering;
   the flipped rows put the visual left at desktop widths only. */
.ax-story--vleft .ax-story__text,
.ax-story--vleft-wide .ax-story__text { order:2; }
.ax-story--vleft .ax-story__visual,
.ax-story--vleft-wide .ax-story__visual { order:1; }

/* ---- product visuals (native HTML, aria-hidden) ---- */
.ax-card { border:1px solid var(--ax-edge); border-radius:10px; background:#ffffff; overflow:hidden; color:var(--ax-ink); }
.ax-card__head { padding:16px 18px; border-bottom:1px solid var(--ax-rule); background:var(--ax-panel); font-size:16px; }
.ax-card__head b { font-weight:700; }
.ax-card__head span { color:var(--ax-muted); }
.ax-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 18px; border-bottom:1px solid var(--ax-rule); }
.ax-row:last-child { border-bottom:0; }
.ax-row__id { display:flex; flex-direction:column; gap:2px; }
.ax-row__name { font-size:16px; font-weight:700; }
.ax-row__meta { font-size:13px; color:var(--ax-muted-2); }

.ax-pill {
  display:inline-flex; align-items:center; gap:6px; color:#ffffff;
  font-weight:700; font-size:12px; line-height:1; padding:6px 12px;
  border-radius:999px; white-space:nowrap;
}
.ax-pill--ok { background:var(--ax-ok); }
.ax-pill--attention { background:var(--ax-attention); }
.ax-pill--overdue { background:var(--ax-overdue); }
.ax-pill--notset { background:var(--ax-notset); }

/* phone frame (S3) */
.ax-phone-wrap { display:flex; justify-content:center; }
.ax-phone { width:300px; max-width:100%; border:8px solid var(--ax-ink); border-radius:36px; overflow:hidden; background:#ffffff; color:var(--ax-ink); }
.ax-phone__bar { background:var(--ax-green); color:#ffffff; padding:14px 16px; display:flex; justify-content:space-between; align-items:center; }
.ax-phone__brand { font-weight:700; letter-spacing:0.16em; font-size:14px; }
.ax-phone__org { font-size:12px; color:var(--ax-on-green-mut); }
.ax-phone__title { padding:16px 14px 8px; display:flex; flex-direction:column; gap:4px; }
.ax-phone__title b { font-size:17px; font-weight:700; line-height:1.25; }
.ax-phone__title span { font-size:13px; color:var(--ax-muted); }
.ax-meter { padding:12px 14px; border-bottom:1px solid var(--ax-rule); display:flex; flex-direction:column; gap:6px; }
.ax-meter:last-of-type { border-bottom:0; }
.ax-meter__top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.ax-meter__ref { font-size:13px; font-weight:700; }
.ax-meter__l1 { font-size:12px; color:var(--ax-muted); }
.ax-meter__l2 { font-size:12px; color:var(--ax-muted-2); }
.ax-phone__foot { padding:14px; background:var(--ax-panel); border-top:1px solid var(--ax-rule); }
.ax-fakebtn { background:var(--ax-head); color:#ffffff; font-weight:700; font-size:14px; padding:13px; border-radius:6px; text-align:center; }

/* complaint timeline (S4) */
.ax-case__head { padding:16px 18px; border-bottom:1px solid var(--ax-rule); background:var(--ax-panel); display:flex; justify-content:space-between; align-items:center; gap:16px; }
.ax-case__ref { font-size:16px; font-weight:700; }
.ax-case__sub { font-size:13px; color:var(--ax-muted-2); }
.ax-step { display:grid; grid-template-columns:150px minmax(0,1fr); gap:16px; padding:14px 18px; border-bottom:1px solid var(--ax-rule); }
.ax-step:last-child { border-bottom:0; }
.ax-step__when { font-size:13px; color:var(--ax-muted-2); line-height:1.5; }
.ax-step__what { font-size:15px; line-height:1.5; color:var(--ax-ink); }

/* readiness summary (S5) */
.ax-ready__head { padding:20px 22px; display:flex; flex-direction:column; gap:6px; border-bottom:1px solid var(--ax-rule); }
.ax-ready__head b { font-size:20px; font-weight:700; }
.ax-ready__head span { font-size:15px; color:var(--ax-muted); }
.ax-ready__nums { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); text-align:center; border-bottom:1px solid var(--ax-rule); }
.ax-ready__n { padding:18px 8px; border-right:1px solid var(--ax-rule); }
.ax-ready__n:last-child { border-right:0; }
.ax-ready__n b { display:block; font-size:34px; font-weight:700; }
.ax-ready__n span { font-size:14px; color:var(--ax-muted); }
.ax-ready__n--ready b { color:#2F5C3A; }
.ax-ready__n--gaps b { color:#8A5A12; }
.ax-ready__n--notset b { color:#4B4B5C; }
.ax-ready__foot { padding:18px 22px; background:var(--ax-panel); }
.ax-ready__foot .ax-fakebtn { font-size:15px; padding:14px; }

/* ---- S6 register picker ---- */
.ax-pick { display:flex; flex-direction:column; gap:44px; }
.ax-pick__intro { display:flex; flex-direction:column; gap:14px; max-width:760px; }
.ax-pick__row { display:flex; flex-wrap:wrap; gap:10px; }
.picker__item {
  display:inline-flex; align-items:center; min-height:44px;
  padding:12px 16px; border:1px solid var(--ax-rule); border-radius:8px;
  background:#ffffff; color:var(--ax-body);
  font-family:var(--sans); font-size:16px; font-weight:400; line-height:1.2;
  text-decoration:none;
}
.picker__item:hover { border-color:var(--ax-green); }
.picker__item.is-active { background:var(--ax-green); border-color:var(--ax-green); color:#ffffff; font-weight:700; }
/* Below 640px the picker's tabs are dropped, not disabled (CJ ruling 2026-09-23a):
   .axw iframe is already display:none there, so a tap changed only the tab's own
   colour while fetching 51KB of walkthrough into a hidden frame. The fallback now
   carries one still of the register as it renders on a phone, taken from the same
   mobile-tr1 walkthrough the 'On a phone' tab serves. */
@media (max-width:640px) { .ax-pick__row { display:none; } }
.ax-pick__still { display:block; width:100%; max-width:390px; height:auto; margin:0 auto;
                  border:1px solid var(--ax-rule); border-radius:12px; }
.ax-pick__still-note { margin:16px 0 0; color:var(--ax-body); font-size:17px; line-height:1.6; text-align:center; }

/* The lead above the picker at 375: below 640px the tabs are gone and ONE still
   is shown, so "Four of the thirteen registers" described a page the reader is
   not being served (CJ, brief 2026-09-23b). Two variants, one visible per width;
   the hidden one is out of the a11y tree as well as off the screen. */
.ax-pick__intro .ax-lead--phone { display:none; }
@media (max-width:640px) {
  .ax-pick__intro .ax-lead--wide  { display:none; }
  .ax-pick__intro .ax-lead--phone { display:block; }
}

/* Every in-page anchor target clears the sticky header (CJ, brief 2026-09-23b).
   The header is position:sticky and 65px tall at both widths, and nothing on the
   page declared scroll-margin-top, so following "Registers" or "See the registers"
   landed the section's top edge under the bar and hid its own h2. 81px = 65 + 16.
   ⚠ Written against EVERY section that carries an id, not against .ax-sec: the FAQ
   is `<section class="g-paper" id="faq">` and a .ax-sec[id] rule sailed past it -
   measured, it was still landing 7px under the bar while the other three cleared. */
section[id] { scroll-margin-top:81px; }

/* ---- S7 mapping table ---- */
.ax-map { display:grid; grid-template-columns:420px minmax(0,1fr); gap:80px; align-items:start; }
.ax-map__intro { display:flex; flex-direction:column; gap:14px; }
.ax-map__table { border-top:2px solid var(--ax-green); }
.ax-map__row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; padding:18px 0; border-bottom:1px solid var(--ax-rule-cream); font-size:18px; }
.ax-map__row:last-child { border-bottom:0; }
.ax-map__area { font-weight:700; color:var(--ax-ink); }
.ax-map__home { color:var(--ax-muted); }

/* ---- S8 three columns ---- */
.ax-cols { display:flex; flex-direction:column; gap:44px; }
.ax-cols__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:56px; }
.ax-col { display:flex; flex-direction:column; gap:10px; }
.ax-col b { font-size:22px; font-weight:700; color:#ffffff; }
.ax-col span { font-size:17px; line-height:1.6; color:var(--ax-on-green-mut); }

/* ---- S9 pricing ---- */
.ax-price { display:grid; grid-template-columns:minmax(0,1fr) 460px; gap:80px; align-items:center; }
.ax-price__copy { display:flex; flex-direction:column; gap:18px; }
.ax-price__list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 24px; font-size:16px; color:var(--ax-muted); margin:6px 0 0; padding:0; list-style:none; }
.ax-price__card { background:var(--ax-cream); border:1px solid var(--ax-rule); border-radius:12px; padding:36px; display:flex; flex-direction:column; gap:10px; }
.ax-price__kicker { font-size:15px; font-weight:700; color:var(--ax-muted); }
.ax-price__fig { display:flex; align-items:baseline; flex-wrap:nowrap; gap:10px; }   /* PRICE-FIGURE-LINE-001: basis + VAT stay on the figure's line */
.ax-price__amt { font-size:clamp(44px, 14vw, 60px); font-weight:700; letter-spacing:-0.02em; color:var(--ax-ink); line-height:1; }
.ax-price__per { font-size:16px; font-weight:700; white-space:nowrap; color:var(--ax-muted); }   /* same weight as the figure: the basis is part of the price */
.ax-price__note { font-size:15px; color:var(--ax-muted); }
.ax-price__card .ax-btn { margin-top:14px; }

/* ---- S11 closing band ---- */
.ax-close { display:flex; flex-direction:column; gap:20px; align-items:center; text-align:center; }
.ax-close .ax-h2 { text-align:center; }
.ax-close__p { margin:0; font-size:19px; line-height:1.6; color:var(--ax-on-green-mut); text-align:center; }

/* ---- collapse ---- */
@media (max-width:900px) {
  .ax-sec, .ax-sec--wide { padding:64px 0; }
  .ax-hero { padding:48px 0 0; }
  .ax-hero__top { grid-template-columns:minmax(0,1fr); gap:32px; align-items:start; }
  .ax-hero__frame { margin-bottom:0; }
  .ax-hero__frame--empty { height:48px; }
  .ax-hero__spacer { display:none; }
  .ax-story, .ax-story--vleft, .ax-story--vleft-wide,
  .ax-map, .ax-price { grid-template-columns:minmax(0,1fr); gap:36px; }
  .ax-story--vleft .ax-story__text, .ax-story--vleft-wide .ax-story__text,
  .ax-story--vleft .ax-story__visual, .ax-story--vleft-wide .ax-story__visual { order:0; }
  .ax-cols__grid { grid-template-columns:minmax(0,1fr); gap:32px; }
  .ax-map__row { grid-template-columns:minmax(0,1fr); gap:6px; }
  .ax-price__card { order:2; }
}
@media (max-width:560px) {
  .ax-price__list { grid-template-columns:minmax(0,1fr); }
  .ax-price__card { padding:24px; }   /* room for '£895 a year, plus VAT' on one line at 320 */
  .ax-price__amt { font-size:clamp(34px, 11vw, 60px); }
  .ax-price__fig { gap:8px; }
  .ax-step { grid-template-columns:minmax(0,1fr); gap:4px; }
  .ax-btns .ax-btn { width:100%; }
}
