/* Fightplan service pages, /ai-automation-martial-arts and /martial-arts-app-development: what these two pages
   add to the inner-page system (2026-11-20, KD-58).
   Loaded after styles.css and inner.css; service.js runs after site.js and inner.js. Tokens come from styles.css
   (brand-tokens.json). inner.css and inner.js are used as they are: the hero (.in-hero), the pinned stage (.pin),
   the section head (.price-sec, .price-head), the fight-card rows (.card .bout), the still stage (.show), the
   compact rows (.quiet), the FAQ and the raised-fist closing (.final-fist).
   Every default below is the still state: no JS and reduced motion both get it. service.js adds the motion.
   The stages have two layouts, and inner.js's own pin test picks between them (it adds .is-pinned):
     pinned        one sample on screen at a time, changed by the scroll
     not pinned    all four on the page at once, never changed by the scroll: the AI samples one under another,
                   the app screens as a row to swipe. This is the default below, so it is also what no JS,
                   reduced motion, phones, narrow and short windows get.
   Blocks, in page order:
     .sv-hero        the hero's crop and fade for each page's picture
     .sv-offer       the offer: the section head, then fight-card rows at a larger size (.sv-bouts)
     .sv-stage       the stage's words for these pages (longer step names, set over their lines)
     .sv-desk        AI automation: four samples, each a frame that stops at an Approve control
     .sv-apps        Apps: four concept screens, each in the system's phone frame (.ax-*)
     .sv-duo         Apps: two phone frames side by side on the still stage
     .sv-rules       numbered rows on hairlines that draw in one after another (inner.js, data-seq)
   Hooks set by service.js: .sv-armed on a stage (its samples wait to play), .is-play on a sample in play,
   .is-busy on a sample whose draft is still being written, .is-ok on a sample the visitor has approved,
   .sv-swipe on the Apps stage once its row has its captions and buttons, .sv-all while the window holds all
   four of its screens, .is-cur on each screen that is mostly in view. */

/* ---------- Hero ---------- */
.sv-hero .lede{max-width:min(27em,38vw)}
@media (max-width:767px),(max-aspect-ratio:1/1){
  .sv-hero .lede{max-width:30em}
}
@media (min-width:768px) and (min-aspect-ratio:1001/1000){
  /* Each page has its own picture (assets/service/), both shot with the subject in the right half and the left
     half in shadow, so the picture sits at the window's right edge and the fade ends where the headline ends.
     AI automation: a gym's front desk after closing: a laptop, a notebook and red hand wraps, the ring behind.
     The push grows it around the laptop. */
  .sv-hero-ai .in-hero-zoom{right:0;transform-origin:74% 62%}
  .sv-hero-ai .in-hero-zoom img{object-position:100% 58%}
  .sv-hero-ai .in-hero-photo::after{background:
    linear-gradient(90deg,var(--bg) 0%,rgba(11,11,12,.92) 34%,rgba(11,11,12,.6) 46%,rgba(11,11,12,0) 58%),
    linear-gradient(180deg,var(--bg) 0%,rgba(11,11,12,0) 8%),
    linear-gradient(0deg,var(--bg) 0%,rgba(11,11,12,0) 16%)}
  /* Apps: a wrapped hand with a phone at a gym's front desk, gloves on the counter. The push grows it around
     the phone. The headline is allowed one more letter of width, so it sets in three lines and ends short of
     the phone. */
  .sv-hero-apps .in-hero-zoom{right:-6vw;transform-origin:66% 56%}
  .sv-hero-apps .in-hero-zoom img{object-position:100% 60%}
  .sv-hero-apps .in-hero-photo::after{background:
    linear-gradient(90deg,var(--bg) 0%,rgba(11,11,12,.94) 34%,rgba(11,11,12,.7) 46%,rgba(11,11,12,0) 57%),
    linear-gradient(180deg,var(--bg) 0%,rgba(11,11,12,0) 8%),
    linear-gradient(0deg,var(--bg) 0%,rgba(11,11,12,0) 16%)}
  .sv-hero-apps .display{max-width:5.55em}
}
@media (max-width:767px),(max-aspect-ratio:1/1){
  /* phones and upright screens: the picture on top, placed so its subject is in the frame */
  .sv-hero-ai .in-hero-zoom img{object-position:86% 70%}
  .sv-hero-apps .in-hero-zoom img{object-position:74% 62%}
}

/* ---------- The offer: the section head (inner.css .price-head), then fight-card rows at a larger size.
   inner.css draws the red line across each row and fills the row in when it arrives (.card .bout, .in). ---------- */
.sv-offer{padding-bottom:var(--space-8)}
.sv-bouts .bout{grid-template-columns:minmax(0,1fr) auto;gap:var(--space-6);padding:var(--space-6) 0;align-items:center}
.sv-bouts .bout > div:first-child{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--space-2) var(--space-6);align-items:center}
.sv-bouts .bout h3{font-size:clamp(34px,4.4vw,60px);line-height:.95}
.sv-bouts .bout p{margin:0;max-width:44ch;font-size:var(--text-base);line-height:1.5;color:var(--fg-2)}
.sv-bouts .bout .amt{min-width:0}
.sv-bouts .bout .amt .num{font-size:clamp(56px,6.4vw,92px);line-height:.9;text-transform:uppercase}
.sv-bouts .bout .amt small{display:block;margin-top:var(--space-2);font-size:var(--text-base);color:var(--fg-2)}
/* a row that is a name and a price only */
.sv-bouts .bout.solo > div:first-child{display:block}
.sv-price{margin-top:var(--space-7)}
.sv-note{margin:var(--space-5) 0 0;max-width:66ch;font-size:var(--text-base);line-height:1.55;color:var(--fg-2)}
@media (max-width:1023px){
  .sv-bouts .bout > div:first-child{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:767px){
  .sv-offer{padding-bottom:var(--space-7)}
  /* phone: the name and the price on one line, the line of text under them (inner.css's phone row, for an h3) */
  .sv-bouts .bout{gap:var(--space-3) var(--space-4);padding:var(--space-5) 0;align-items:end}
  .sv-bouts .bout h3{grid-column:1;grid-row:1;font-size:30px}
  .sv-bouts .bout .amt .num{font-size:48px}
  .sv-bouts .bout .amt small{margin-top:2px;font-size:var(--text-sm)}
  .sv-bouts .bout p{font-size:var(--text-md);max-width:none}
  .sv-price{margin-top:var(--space-6)}
  .sv-note{margin-top:var(--space-4);font-size:var(--text-md)}
}

/* ---------- The stage's words on these pages ---------- */
/* the step names here are longer than the system's ("Schedules and bookings", "Promotion event app"),
   so each name sits over its line instead of beside it */
.sv-stage .pin-steps button{grid-template-columns:minmax(0,1fr);row-gap:2px}
/* the step numbers are drawn from the list's own order (the steps are an ordered list), not typed into the page */
.sv-stage .pin-steps{counter-reset:sv-step}
.sv-stage .pin-steps li{counter-increment:sv-step}
.sv-stage .ps-no::before{content:counter(sv-step,decimal-leading-zero)}
/* Not pinned, the scroll swaps nothing, so nothing is "the round in play": the four steps are lit alike (on the
   AI page each is a link to its sample) and the round marker inner.js draws over the work is not shown.
   inner.js goes on marking one step as current underneath; see CHANGES.md, shared-file requests. */
.pin.sv-stage.is-live:not(.is-pinned) .pin-steps button,
.pin.sv-stage.is-live:not(.is-pinned) .pin-steps button[aria-current="step"]{color:var(--fg);border-top-color:var(--border-strong)}
.pin.sv-stage.is-live:not(.is-pinned) .pin-steps .ps-desc{color:var(--fg-2)}
.pin.sv-stage:not(.is-pinned) .pin-work > .round{display:none}
.sv-stage + .quiet,.sv-stage + .price-sec{border-top:1px solid var(--border)}
.sv-stage + .show{margin-top:0}
/* pinned (inner.js adds .is-pinned): the words are sized from the window's height, so the label, the headline,
   the paragraph, the four steps and the round marker share one screen from 640 px tall up */
.pin.sv-stage.is-pinned .pin-text{--nm:clamp(22px,min(3.8vh,2.4vw),36px);
  padding-top:calc(var(--header-h) + max(14px,(100svh - var(--header-h) - 760px) / 2))}
.pin.sv-stage.is-pinned .pin-title{font-size:clamp(32px,min(5vw,calc((100vh - 420px) / 6.2)),76px)}
.pin.sv-stage.is-pinned .pin-line{margin-top:clamp(8px,1.6vh,16px);font-size:clamp(15px,2.1vh,19px);line-height:1.4}
.pin.sv-stage.is-pinned .pin-steps{margin-top:clamp(10px,2vh,20px)}
.pin.sv-stage.is-pinned .pin-steps button{grid-template-columns:minmax(0,1fr);padding:clamp(5px,calc(4.2vh - 22px),18px) 0}
.pin.sv-stage.is-pinned .ps-desc{font-size:clamp(15px,1.9vh,17px);line-height:1.4}

/* ---------- AI automation: four samples. Each is a frame with a bar, what came in, what was drafted, and the
   control it stops at. Sized in em, so a sample takes its size from one font size.
   Not pinned (the default): the four sit one under another and each plays when it comes on screen (service.js).
   Pinned: the four share one cell and the scroll shows one at a time. ---------- */
.sv-ai .pin-piece{padding-left:4%;padding-right:4%;padding-bottom:var(--space-2)}
.sv-desk{display:grid;gap:var(--space-5);width:min(100%,34em);font-size:16px}
.sv-desk .scr{position:relative;inset:auto;display:flex;flex-direction:column;gap:0;padding:0;
  background:var(--surface);border:1px solid var(--border-strong);color:var(--fg);opacity:1;transform:none;transition:none}
.pin.is-pinned .sv-desk{gap:0;font-size:clamp(12px,min(2.25vh,1.4vw),26px)}
.pin.is-pinned .sv-desk .scr{grid-area:1 / 1;opacity:0;transform:translateY(12px);
  transition:opacity 450ms var(--ease),transform 450ms var(--ease),visibility 0s linear 450ms}
/* pinned, a sample that is not in play is hidden outright, so its Approve button keeps out of the tab order */
.pin.is-pinned .sv-desk .scr:not(.on){visibility:hidden}
.pin.is-pinned .sv-desk .scr.on{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.pin.sv-ai.is-pinned .pin-piece{padding-bottom:0}
@media (min-width:1024px) and (min-height:760px){
  /* not pinned, two columns: the words stay beside the samples while they pass */
  .pin.sv-ai:not(.is-pinned) .pin-text{align-self:start;position:sticky;top:var(--header-h);padding-top:var(--space-7);padding-bottom:var(--space-6)}
}
.sv-bar{display:flex;align-items:center;justify-content:space-between;gap:1em;min-height:3em;padding:0 1.1em;border-bottom:1px solid var(--border-strong)}
.sv-bar b{font-family:var(--font-display);font-weight:700;font-size:1.4em;letter-spacing:.04em;line-height:1;text-transform:uppercase}
.sv-tag{flex:none;padding:.4em .6em;font-size:.69em;font-weight:700;letter-spacing:.14em;text-transform:uppercase;line-height:1;color:var(--bg);background:var(--fg-2)}
.sv-zone{padding:1em 1.1em 1.15em;border-bottom:1px solid var(--border)}
.sv-zone.grow{flex:1}
.sv-zh{display:flex;justify-content:space-between;align-items:baseline;gap:1em;margin:0 0 .5em;
  font-size:.72em;font-weight:600;letter-spacing:.14em;text-transform:uppercase;line-height:1.4;color:var(--muted)}
.sv-zh .sv-state{color:var(--fg-2)}
/* what came in: three rows, each with where it came from, what it says and how it was filed */
.sv-rows{list-style:none;margin:0;padding:0}
.sv-rows li{display:grid;grid-template-columns:6.6em minmax(0,1fr) auto;gap:.8em;align-items:center;padding:.62em 0;
  border-top:1px solid var(--border);font-size:.94em;line-height:1.35;color:var(--fg-2)}
.sv-rows li:first-child{border-top:0;padding-top:.2em}
.sv-rows li:last-child{padding-bottom:0}
.sv-rows .who{font-size:.77em;font-weight:600;letter-spacing:.12em;text-transform:uppercase;line-height:1.3;color:var(--muted)}
/* the row the draft answers */
.sv-rows .pick{color:var(--fg)}
.sv-rows .pick .who{color:var(--fg-2)}
.sv-chip{display:inline-block;padding:.38em .6em;border:1px solid var(--border-strong);font-size:.69em;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;line-height:1;white-space:nowrap;color:var(--fg-2)}
.sv-rows .pick .sv-chip{border-color:var(--fg-2);color:var(--fg)}
/* what was drafted */
.sv-draft{margin:0;font-size:1.18em;line-height:1.42;color:var(--fg);text-wrap:wrap}
.sv-subj{margin:0 0 .3em;font-size:.94em;font-weight:600;line-height:1.35;color:var(--fg-2)}
.ty-rest{visibility:hidden}
/* the caret is a plain inline box (a border, no width), so it never opens a line break inside a word */
.ty-caret{border-right:2px solid var(--fg);margin-right:-2px;visibility:hidden}
.is-typing > .ty-caret{visibility:visible}
/* the schedule sample: one change, then the three places it shows */
.sv-change{display:flex;align-items:center;justify-content:space-between;gap:1em;flex-wrap:wrap;padding:.2em 0 .1em}
.sv-change b{font-size:1.18em;font-weight:600;line-height:1.3}
.sv-change b small{display:block;font-size:.76em;font-weight:400;color:var(--muted)}
.sv-times{display:flex;align-items:baseline;gap:.5em;font-family:var(--font-display);font-weight:700;font-variant-numeric:tabular-nums;line-height:1;white-space:nowrap}
.sv-times s{font-size:1.35em;color:var(--muted);text-decoration-thickness:2px}
.sv-times span{font-size:2.3em;color:var(--fg)}
.sv-times i{font-style:normal;font-size:1.2em;color:var(--muted)}
/* the control every sample stops at: the status on the left, Approve on the right. It is on the sample from
   its first frame: while the draft is being written the status reads "Drafting..." in grey and the button is
   off (.is-busy, service.js); then "Waiting for your OK" and the button is on. */
.sv-ctl{display:flex;align-items:center;justify-content:space-between;gap:1em;margin-top:auto;padding:.85em 1.1em;background:var(--surface-2)}
.sv-status{display:flex;align-items:center;gap:.65em;margin:0;font-size:1em;font-weight:600;line-height:1.3;color:var(--fg);transition:color 400ms var(--ease)}
.sv-hold{flex:none;width:.8em;height:.8em;border:2px solid var(--accent);background:var(--accent);transition:border-color 400ms var(--ease),background-color 400ms var(--ease)}
.sv-status .icon{display:none;width:1.25em;height:1.25em;stroke-width:2.6;color:var(--fg)}
.scr.is-busy .sv-status{color:var(--muted)}
.scr.is-busy .sv-hold{border-color:var(--muted);background:transparent}
.scr.is-ok .sv-hold{display:none}
.scr.is-ok .sv-status .icon{display:block}
/* Red marks what is waiting on the visitor (K6, 2026-11-20: "add some red accents ... like the Approve button"):
   the line across the top of every sample, the square beside "Waiting for your OK", the Approve button, the
   tag on the row the draft answers, and the caret while a draft is typed. While a draft is being written the
   square and the button are grey; once the visitor approves, the tag goes back to white and the button to grey. */
.sv-desk .scr::before{content:"";position:absolute;left:-1px;right:-1px;top:-1px;height:2px;background:var(--brand-red)}
.sv-rows .pick .sv-chip{border-color:var(--accent);color:var(--accent-text)}
.scr.is-ok .sv-rows .pick .sv-chip{border-color:var(--fg-2);color:var(--fg)}
.ty-caret{border-right-color:var(--brand-red)}
/* the system's red button, sized with the sample; never smaller than the system's small button */
.sv-ok{flex:none;font-size:max(12px,.72em);min-height:max(44px,3.2em);padding:0 1.6em}
.no-js .sv-ok{cursor:default}
.sv-ok[aria-disabled="true"]{background:var(--surface-3);color:var(--fg-2);cursor:default}
.sv-ok[aria-disabled="true"]:active{transform:none}
.sv-ok[aria-disabled="true"]:focus-visible{outline-color:var(--fg)}
@media (max-width:767px){
  .sv-ai .pin-piece{padding-left:var(--gutter);padding-right:var(--gutter)}
  .sv-desk{font-size:15px;gap:var(--space-4)}
  /* a row on a phone: where it came from and how it was filed on one line, what it says under them */
  .sv-rows li{grid-template-columns:minmax(0,1fr) auto;gap:.25em .8em}
  .sv-rows li .who{grid-column:1;grid-row:1}
  .sv-rows li .sv-chip{grid-column:2;grid-row:1}
  .sv-rows li .what{grid-column:1 / -1;grid-row:2}
  /* the status over the button, always: the row keeps its height when the wording changes */
  .sv-ctl{flex-direction:column;align-items:stretch;gap:.7em}
}

/* a sample plays when it arrives (service.js): each piece comes in after the one before it (--i). The whole
   play is about 1.2 s; the control is there throughout. */
.sv-armed .scr:not(.is-play) .sv-in{opacity:0}
.scr.is-play .sv-in{animation:sv-in 400ms var(--ease) both;animation-delay:calc(var(--i,0) * 60ms + 40ms)}
@keyframes sv-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------- Apps: four concept screens, each in the system's phone frame. Drawn in the page's own colours:
   charcoal, white, grey hairlines. Each screen is built at 262 x 567 and scaled as one piece.
   Not pinned (the default): the four phones are one row, under the words, across the window. Where the window
   holds all four (about 1310 px and wider) they simply stand side by side. Where it does not, the row is swiped,
   one phone to a stop: on a phone the one in play sits in the middle with the next in view at the edge; on wider
   windows the row starts at the page's margin and shows as many as fit. service.js adds each idea's name and
   line over its phone, the round marker and the two buttons.
   Pinned: the four share one place and the scroll shows one at a time (inner.js sets the scale, --s). ---------- */
.sv-apps{--ps:1;--pw:calc(262px * var(--ps))}
@media (min-width:768px){.sv-apps{--ps:1.12}}
.sv-apps .pin-piece{display:block;padding:0}
.sv-apps .phone-fit{width:100%;height:auto}
.ax-deck{position:relative;list-style:none;margin:0;display:grid;grid-auto-flow:column;grid-auto-columns:var(--pw);grid-template-rows:auto auto;column-gap:var(--space-5);
  padding:var(--space-5) calc(50% - var(--pw) / 2) var(--space-4);overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;scrollbar-width:none;counter-reset:sv-step}
.ax-deck::-webkit-scrollbar{display:none}
.ax-deck:focus-visible{outline:2px solid var(--fg);outline-offset:-2px}
.ax-slide{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:var(--space-4);min-width:0;scroll-snap-align:center;counter-increment:sv-step}
/* no JS: there are no buttons, so the row keeps a thin scrollbar to show there is more of it */
.no-js .ax-deck{scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}
.no-js .ax-deck::-webkit-scrollbar{display:block;height:6px}
.no-js .ax-deck::-webkit-scrollbar-thumb{background:var(--border-strong)}
@media (min-width:768px){
  /* wider than a phone: the row starts at the page's left margin and stops with a phone at that margin.
     --fit is the margin that would centre all four. Where it is at least the gutter, the four fit, and the row
     takes it: they stand side by side in the middle with nothing to swipe. Where it is not, the row takes the
     page's margin (--side) and is swiped. The ( ... * 9999) term is that either/or: at or under zero when the
     four fit, far over --side when they do not. The note under the row starts at the same margin. */
  .sv-apps .pin-work{--fit:calc((100% - (4 * var(--pw) + 3 * var(--space-5))) / 2);
    --pad:max(var(--fit),min(var(--side),calc((var(--gutter) - var(--fit)) * 9999)))}
  .ax-deck{padding-left:var(--pad);padding-right:var(--pad);scroll-padding-left:var(--pad);scroll-padding-right:var(--pad)}
  .ax-slide{scroll-snap-align:start}
  .sv-apps:not(.is-pinned) .work-cap{padding-left:var(--pad);padding-right:var(--pad)}
}
@media (min-width:1024px){
  /* not pinned on a wide window: one column, the words over the row, so the row has the window's whole width */
  .sv-apps:not(.is-pinned) .pin-box{display:flex;flex-direction:column}
  .sv-apps:not(.is-pinned) .pin-text{display:block;padding:var(--space-8) var(--side) var(--space-6)}
  .sv-apps:not(.is-pinned) .pin-work{border-left:0;border-top:1px solid var(--border)}
  .sv-apps:not(.is-pinned) .ax-deck{padding-top:var(--space-6)}
}
/* an idea's number, name and line over its phone (service.js copies them from the list of steps) */
.ax-cap{grid-row:1;display:grid;gap:4px;align-content:start}
.ax-cap .ps-name{font-size:26px}
.ax-cap .ps-desc{font-size:var(--text-sm);line-height:1.45;color:var(--fg-2)}
.ax-fit{grid-row:2;width:var(--pw);height:calc(567px * var(--ps))}
.sv-apps .demo-phone{transform:scale(var(--ps))}
.sv-apps .phone-screen{background:var(--surface);color:var(--fg)}
.sv-apps .scr{gap:10px;justify-content:space-between;background:var(--surface);color:var(--fg);opacity:1;transform:none}
/* the row once service.js has dressed it: the steps list gives way to the captions, the marker and the buttons
   sit in one bar over the row, and a phone that is not (mostly) in view steps back. Where the window holds all
   four (.sv-all, service.js) there is nothing to swipe, so the bar is not drawn. */
.sv-nav{display:none}
.sv-swipe:not(.is-pinned) .pin-steps{display:none}
.sv-swipe:not(.is-pinned) .pin-text{padding-bottom:var(--space-5)}
.sv-swipe:not(.is-pinned):not(.sv-all) .sv-nav{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);padding:10px var(--side);border-bottom:1px solid var(--border)}
.sv-nav .round{flex:1;min-width:0}
.sv-nav-btns{flex:none;display:flex;gap:8px}
.sv-nav button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--border-strong);background:none;color:var(--fg);cursor:pointer;
  transition:background 400ms var(--ease),color 400ms var(--ease),border-color 400ms var(--ease)}
.sv-nav button:hover{background:var(--surface-2)}
.sv-nav button:disabled{border-color:var(--border);color:var(--muted);background:none;cursor:default}
.sv-nav button .icon{width:20px;height:20px}
.sv-swipe:not(.is-pinned):not(.sv-all) .ax-fit{opacity:.45;transition:opacity 400ms var(--ease)}
.sv-swipe:not(.is-pinned):not(.sv-all) .ax-slide.is-cur .ax-fit{opacity:1}
/* in the row every screen shows whole; only its one tap waits for the screen to come into view */
.sv-apps.sv-armed:not(.is-pinned) .scr:not(.is-play) .sv-in{opacity:1}
.sv-apps:not(.is-pinned) .scr.is-play .sv-in{animation:none}
/* pinned */
.sv-apps.is-pinned .pin-piece{display:grid;place-items:center;padding:var(--space-5) 6% 0}
.sv-apps.is-pinned .phone-fit{width:calc(262px * var(--s,1));height:calc(567px * var(--s,1))}
.sv-apps.is-pinned .ax-deck{display:block;position:relative;width:100%;height:100%;padding:0;overflow:visible}
.sv-apps.is-pinned .ax-slide{position:absolute;inset:0;display:block}
.sv-apps.is-pinned .ax-cap{display:none}
.sv-apps.is-pinned .ax-fit{width:100%;height:100%}
.sv-apps.is-pinned .demo-phone{transform:scale(var(--s,1))}
/* four frames in one place: only the first draws its edge, and only the screen in play has a ground */
.sv-apps.is-pinned .ax-slide .frame,.sv-apps.is-pinned .ax-slide .phone-screen{background:none}
.sv-apps.is-pinned .ax-slide + .ax-slide .frame{border-color:transparent}
.sv-apps.is-pinned .scr{opacity:0;transform:translateX(22px) scale(.985)}
.sv-apps.is-pinned .scr.on{opacity:1;transform:none}

.ax-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:11px;border-bottom:1px solid var(--border-strong)}
.ax-name{font-family:var(--font-display);font-weight:700;font-size:23px;letter-spacing:.04em;line-height:1;text-transform:uppercase}
.ax-me{flex:none;display:grid;place-items:center;width:22px;height:22px;border:1px solid var(--border-strong);font-size:10px;font-weight:700;line-height:1;color:var(--fg-2)}
.ax-g{display:grid;gap:8px}
.ax-l{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:9.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;line-height:1.3;color:var(--muted)}
.ax-list{display:grid}
.ax-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px 0;border-top:1px solid var(--border)}
.ax-row:first-child{border-top:0;padding-top:0}
.ax-row:last-child{padding-bottom:0}
.ax-row.two{grid-template-columns:minmax(0,1fr) auto}
.ax-row > b{font-family:var(--font-display);font-weight:700;font-size:21px;line-height:1;font-variant-numeric:tabular-nums}
.ax-ev > em{font-style:normal;font-size:10.5px;font-weight:600;letter-spacing:.04em;white-space:nowrap;color:var(--fg-2)}
.n{font-size:13px;font-weight:600;line-height:1.25}
.m{display:block;margin-top:2px;font-size:10.5px;font-weight:400;line-height:1.3;color:var(--muted)}
.ax-pill{position:relative;display:inline-block;padding:7px 9px;border:1px solid var(--border-strong);font-size:9.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;line-height:1;white-space:nowrap;color:var(--fg)}
.ax-pill.is{background:var(--fg);border-color:var(--fg);color:var(--bg)}
.ax-card{padding:12px;background:var(--surface-2)}
.ax-card p{margin:0;font-size:13px;font-weight:600;line-height:1.3;color:var(--fg)}
.ax-tabs{flex:none;margin:0 -13px -16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--border-strong);background:var(--bg)}
.ax-tabs span{padding:12px 0 13px;text-align:center;font-size:9.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;line-height:1;color:var(--muted)}
.ax-tabs .is{color:var(--fg);box-shadow:inset 0 2px 0 var(--fg)}
/* two states of one control, in the same place: before the tap (.a) and after it (.b) */
.ax-swap{display:grid;justify-items:end}
.ax-swap > *{grid-area:1 / 1}
.ax-swap.wide{justify-items:stretch}
.ax-swap .a{opacity:0}
.ax-tap{position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;background:rgba(242,242,243,.5);opacity:0;pointer-events:none}
/* the member app: the week as seven days, the booked ones filled. Tonight's day (.tue) fills, and the count
   beside "Your week" goes from 3 to 4, at the moment the class above turns to Booked. */
.ax-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.ax-week span{padding:9px 0;border:1px solid var(--border-strong);text-align:center;font-size:10.5px;font-weight:700;line-height:1;color:var(--muted)}
.ax-week .bk{background:var(--fg);border-color:var(--fg);color:var(--bg)}
.ax-week .now{border-color:var(--fg);color:var(--fg)}
.ax-week .bk.now{color:var(--bg)}
/* the event app: who it is for, what is next at scoreboard size, then the rest of the week */
.ax-seg{display:flex;font-size:9.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;line-height:1}
.ax-seg i{padding:6px 7px;border:1px solid var(--border-strong);font-style:normal;color:var(--muted)}
.ax-seg i + i{border-left:0}
.ax-seg .is{background:var(--fg);border-color:var(--fg);color:var(--bg)}
.ax-next{display:grid;gap:6px;padding:12px;background:var(--surface-2)}
.ax-next strong{font-family:var(--font-display);font-weight:700;font-size:46px;line-height:.9;font-variant-numeric:tabular-nums}
.ax-ev{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:8px;align-items:baseline;padding:9px 0;border-top:1px solid var(--border)}
.ax-ev:first-child{border-top:0;padding-top:0}
.ax-ev:last-child{padding-bottom:0}
.ax-ev > b{font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.06em;line-height:1.1;text-transform:uppercase;color:var(--fg)}
.ax-ev.past > b,.ax-ev.past .n,.ax-ev.past > em{color:var(--muted)}
/* the camp plan: the weeks as a bar, the day as a list to tick off, the coach's note, the team */
.ax-bar8{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;margin-top:10px}
.ax-bar8 i{height:3px;background:var(--border-strong)}
.ax-bar8 .f{background:var(--fg)}
.ax-chk{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--border)}
.ax-chk:first-child{border-top:0;padding-top:0}
.ax-chk:last-child{padding-bottom:0}
.ax-chk > em{font-style:normal;font-size:9.5px;font-weight:700;letter-spacing:.12em;color:var(--muted)}
.bx{position:relative;display:block;width:18px;height:18px;border:1px solid var(--fg-2)}
.bx svg{position:absolute;inset:2px;width:12px;height:12px;stroke:var(--bg);stroke-width:3.2;fill:none;stroke-linecap:square;opacity:0}
.ax-chk.done .bx{background:var(--fg);border-color:var(--fg)}
.ax-chk.done .bx svg{opacity:1}
.ax-team{display:flex;flex-wrap:wrap;gap:5px}
.ax-team span{padding:6px 8px;border:1px solid var(--border-strong);font-size:10.5px;font-weight:600;line-height:1;color:var(--fg-2)}
/* the members' corner: the drop as a plate drawn in code, its name and when it opens, then the button */
.ax-drop{position:relative;display:grid;gap:4px;align-content:end;min-height:196px;padding:12px;overflow:hidden;background:var(--bg);border:1px solid var(--border-strong);
  clip-path:polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px)}
.ax-drop::before{content:"07";position:absolute;right:8px;top:-12px;font-family:var(--font-display);font-weight:700;font-size:136px;line-height:1;letter-spacing:-.02em;
  color:transparent;-webkit-text-stroke:1px var(--border-strong)}
.ax-drop strong{position:relative;font-family:var(--font-display);font-weight:700;font-size:27px;line-height:.95;text-transform:uppercase}
.ax-drop .ax-l,.ax-drop .m{position:relative}
.ax-btn{position:relative;display:block;padding:12px 8px;border:1px solid var(--fg);text-align:center;font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;line-height:1;color:var(--fg)}
.ax-btn.is{background:var(--fg);color:var(--bg)}

/* in play (service.js): one control is tapped and changes state, and everything that depends on it changes
   with it. Before the tap the screen shows the state before it; after it, and on any still page, the state after. */
.sv-armed .scr:not(.is-play) .ax-swap .a{opacity:1}
.sv-armed .scr:not(.is-play) .ax-swap .b{opacity:0}
.sv-armed .scr:not(.is-play) .ax-chk.tick .bx{background:none;border-color:var(--fg-2)}
.sv-armed .scr:not(.is-play) .ax-chk.tick .bx svg{opacity:0}
.sv-armed .scr:not(.is-play) .ax-week .tue{background:none;color:var(--fg)}
.scr.is-play .ax-tap{animation:ax-tap 700ms var(--ease) 500ms both}
.scr.is-play .ax-swap .a{animation:ax-out 400ms var(--ease) 900ms both}
.scr.is-play .ax-swap .b{animation:ax-on 400ms var(--ease) 1000ms both}
.scr.is-play .ax-chk.tick .bx{animation:ax-fill 400ms var(--ease) 950ms both}
.scr.is-play .ax-chk.tick .bx svg{animation:ax-on 400ms var(--ease) 1000ms both}
.scr.is-play .ax-week .tue{animation:ax-day 400ms var(--ease) 1000ms both}
@keyframes ax-out{from{opacity:1}to{opacity:0}}
@keyframes ax-on{from{opacity:0}to{opacity:1}}
@keyframes ax-fill{from{background:rgba(224,11,31,0);border-color:var(--fg-2)}to{background:var(--accent);border-color:var(--accent)}}
@keyframes ax-day{from{background:rgba(224,11,31,0);color:var(--fg)}to{background:var(--accent);color:var(--accent-on)}}
@keyframes ax-tap{0%{opacity:0;transform:scale(.4)}30%{opacity:1;transform:scale(1)}60%{opacity:.9;transform:scale(.85)}100%{opacity:0;transform:scale(1.6)}}
/* Red marks what is the visitor's own on each screen (K6, 2026-11-20: "add red accents to the what people ask
   for section"): the class just booked and its day, what is next for them, how far the camp has come and the
   box just ticked, their place on the list, the tab they are on, and the tap itself. Everything else keeps the
   white states. The two keyframes above fill to the same red. */
.ax-pill.is{background:var(--accent);border-color:var(--accent);color:var(--accent-on)}
.ax-week .now{border-color:var(--accent)}
.ax-week .bk.now{background:var(--accent);border-color:var(--accent);color:var(--accent-on)}
.ax-next{box-shadow:inset 3px 0 0 var(--brand-red)}
.ax-bar8 .f{background:var(--brand-red)}
.ax-chk.done.tick .bx{background:var(--accent);border-color:var(--accent)}
.ax-chk.tick .bx svg{stroke:var(--accent-on)}
.ax-btn.is{background:var(--accent);border-color:var(--accent);color:var(--accent-on)}
.ax-tabs .is{box-shadow:inset 0 2px 0 var(--brand-red)}
.ax-tap{background:rgba(237,12,33,.55)}

/* ---------- Apps, the still stage: two phone frames side by side, each never shown past its picture's size ---------- */
.sv-duo{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,300px));gap:6%;justify-content:start}
.sv-duo .frame-phone .frame-view{aspect-ratio:390 / 844}
.sv-duo img{display:block;width:100%;height:auto}
.sv-duo .walk3-cap{padding-bottom:var(--space-6)}
.sv-duo .walk3-cap a{display:inline-block;padding:3px 0;color:var(--fg-2);text-underline-offset:3px;white-space:nowrap}
.sv-duo .walk3-cap a:hover{color:var(--fg)}

/* ---------- Numbered rows: a number, a name and its line on a hairline; each row draws in after the one
   before it as the visitor scrolls (--d per row, inner.js data-seq) ---------- */
.sv-rules{list-style:none;margin:0;padding:0}
.sv-rules li{position:relative;display:grid;grid-template-columns:64px minmax(0,4fr) minmax(0,6fr);column-gap:var(--space-5);align-items:baseline;align-content:start;
  padding:var(--space-4) 0;--d:1}
.sv-rules li::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:var(--border-strong);transform:scaleX(var(--d));transform-origin:0 50%}
.sv-rules li:last-child{border-bottom:1px solid var(--border)}
.sv-rules li > *{opacity:calc(.2 + .8 * var(--d));transform:translateY(calc((1 - var(--d)) * 8px))}
.sv-no{font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.1em;line-height:1;text-transform:uppercase;color:var(--muted)}
.sv-rules h3{font-size:26px;line-height:1}
.sv-rules p{margin:0;font-size:var(--text-md);line-height:1.5;color:var(--muted)}
/* four across two columns */
.sv-rules.four{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--space-7)}
.sv-rules.four li{grid-template-columns:40px minmax(0,1fr);row-gap:var(--space-2);padding:var(--space-5) 0}
.sv-rules.four li:nth-last-child(2){border-bottom:1px solid var(--border)}
.sv-rules.four h3{font-size:30px}
.sv-rules.four p{grid-column:2;max-width:44ch;font-size:var(--text-base);color:var(--fg-2)}
@media (max-width:1023px){
  .sv-rules li{grid-template-columns:64px minmax(0,1fr);row-gap:var(--space-2)}
  .sv-rules p{grid-column:2}
}
@media (max-width:767px){
  .sv-rules li{grid-template-columns:56px minmax(0,1fr)}
  .sv-rules h3{font-size:24px}
  .sv-rules p{font-size:var(--text-sm)}
  .sv-rules.four{grid-template-columns:minmax(0,1fr)}
  .sv-rules.four li{grid-template-columns:32px minmax(0,1fr);padding:var(--space-4) 0}
  .sv-rules.four li:nth-last-child(2){border-bottom:0}
  .sv-rules.four h3{font-size:26px}
  .sv-rules.four p{font-size:var(--text-md)}
}

@media (prefers-reduced-motion:reduce){
  .pin.is-pinned .sv-desk .scr,.sv-status,.sv-hold,.sv-nav button,.sv-swipe:not(.is-pinned):not(.sv-all) .ax-fit{transition:none}
  .scr.is-play .sv-in,.scr.is-play .ax-swap .a,.scr.is-play .ax-swap .b,.scr.is-play .ax-tap,
  .scr.is-play .ax-chk.tick .bx,.scr.is-play .ax-chk.tick .bx svg,.scr.is-play .ax-week .tue{animation:none}
}
