/* Fightplan utility pages: /book, /contact, /privacy, /terms and the not-found page (2026-11-21, KD-58, batch 3).
   Loaded after styles.css and inner.css. Tokens come from styles.css (brand-tokens.json); nothing here names a
   colour or a font of its own. These are the quiet pages: the inner system's type, hairlines and spacing, no
   photographs of their own, and one slow code-drawn detail each (nothing under 400 ms).
   Every default below is the still state. The motion is CSS only, inside prefers-reduced-motion: no-preference,
   so no JS and reduced motion both get the stills.
   Blocks:
     .ut-hero            the text-led hero: the case pages' hero type (label with its dash, the inner hero line, lede)
     .ut-hero.is-doc     the same head over a document: the line at the section-heading size, the "last updated" row
     .ut-kicker          a label above the line when it is not part of the h1; .has-round adds the four round bars
                         (/book: bar 1 fills once when the page opens)
     .ut-notice          /book: the sent and failed notices, at the top of the hero
     .is-sent            /book after a sent request (?sent=1, set on <html> by the page's script): the sent notice
                         at the hero's size in place of the headline and lede; the email block and the form hidden
     .ut-stage           /book: the two ways in on the left (.ut-email, then .ut-ask), the form on a black panel on
                         the right (the layout of inner.css .show)
     .ut-form            /book: the fields
     .ut-slot            /book: a full-width slot between the hero and the stage. Not used yet (see its note)
     .ways / .way        /contact and 404: link rows. On /contact their hairlines draw in one after another.
     .ut-notes           /contact: the two lines under the rows
     .doc / .doc-toc     /privacy, /terms: the contents list beside the document; a heading you jump to gets a
                         white line drawn across its top
     .nf / .nf-ring      404: a ring drawn in hairlines; the way across it to the other corner draws once */

/* the header button is this page's nav item on /book: keep its own padding and edge when it is marked current */
.nav .btn[aria-current]{padding-left:20px;box-shadow:none}

/* ---------- The text-led hero ---------- */
.ut-hero{background:var(--bg);padding:var(--space-8) 0 var(--space-7)}
.ut-hero h1{margin:0}
.ut-kicker,.ut-hero h1 > .label{display:flex;align-items:center;gap:10px;margin:0 0 var(--space-4);color:var(--fg-2)}
.ut-kicker .label{color:inherit}
.ut-kicker::before,.ut-hero h1 > .label::before{content:"";flex:none;width:24px;height:2px;background:currentColor}
/* the hero line's size on every inner page (work.css .case-hero); the closing stays the largest type */
.ut-hero .display{display:block;font-size:min(clamp(52px,8.6vw,132px),max(64px,calc((100vh - 450px) / 3.6)));line-height:.9}
.ut-hero .lede{margin:var(--space-5) 0 0;font-size:20px;line-height:1.4;max-width:32em}

/* the label with the four round bars: this call is round 1 of the four on /gyms. The bar in play is white,
   so the page's red stays with its two buttons. */
.ut-kicker.has-round{gap:var(--space-4)}
.ut-kicker.has-round::before{content:none}
.ut-kicker .round-bars{flex:none;width:132px;max-width:none}
.ut-kicker .round-bars i::after{background:var(--fg)}
.ut-kicker .round-bars i:first-child{--f:1}

/* a document's head: a calmer line, then the date on its own hairline row */
.ut-hero.is-doc{padding-bottom:0}
.ut-hero.is-doc .display{font-size:clamp(44px,6.4vw,92px);max-width:11em}
.ut-hero.is-doc .lede{max-width:36em}
.ut-updated{margin:var(--space-7) 0 0;padding:var(--space-4) 0;border-top:1px solid var(--border-strong);border-bottom:1px solid var(--border);
  font-size:var(--text-sm);line-height:1.55;color:var(--fg-2)}

@media (max-width:767px){
  .ut-hero{padding:var(--space-6) 0}
  .ut-hero .display{font-size:clamp(52px,16.5vw,104px)}
  .ut-kicker,.ut-hero h1 > .label{margin-bottom:10px}
  .ut-hero .lede{margin-top:var(--space-4);font-size:var(--text-md);line-height:1.45}
  .ut-hero.is-doc .display{font-size:clamp(40px,11.6vw,64px)}
  .ut-updated{margin-top:var(--space-6)}
}

/* ---------- /book: the sent and failed notices ---------- */
/* styles.css keeps .notice hidden; the page's own script shows the one the address asks for (?sent=1, ?sent=0) */
.ut-notice{max-width:40em;margin:0 0 var(--space-7);padding:var(--space-4) var(--space-5);border-left-width:3px;
  background:var(--surface);color:var(--fg);font-size:var(--text-base);line-height:1.5}
.ut-notice b{display:block;margin-bottom:6px;font-family:var(--font-display);font-weight:700;font-size:28px;line-height:1;text-transform:uppercase}
/* the lead words carry the status colour; the sentence after them stays in the page's own text colour */
.ut-notice.ok,.ut-notice.fail{color:var(--fg)}
.ut-notice.ok{border-left-color:var(--success)}
.ut-notice.ok b{color:var(--success)}
.ut-notice.fail{border-left-color:var(--accent-text)}
.ut-notice.fail b{color:var(--accent-text)}
.ut-notice a{color:var(--fg);text-underline-offset:3px}
.ut-notice:focus{outline:none}
@media (max-width:767px){
  .ut-notice{margin-bottom:var(--space-6);padding:var(--space-4);font-size:var(--text-md)}
  .ut-notice b{font-size:24px}
}

/* ---------- /book: a sent request (?sent=1) ---------- */
/* The page's script adds .is-sent to <html> only for ?sent=1, so a failed send (?sent=0) keeps the whole page
   and its form, and without JavaScript nothing here applies. The notice's own words become the page: its lead
   words at the hero line's size, its sentence as the lede, under the same label. The headline, the lede, the
   email block and the form are put away. Green is the brand's status colour: a tick and round 1's bar. */
.ut-sent-mark{display:none}
.is-sent .ut-hero h1,.is-sent .ut-hero .lede,.is-sent .ut-stage{display:none}
.is-sent .ut-hero{padding-bottom:var(--space-9)}
.is-sent .ut-hero .wrap{display:flex;flex-direction:column;align-items:flex-start}
.is-sent .ut-kicker{order:-1}
.is-sent .ut-sent-mark{display:block;width:18px;height:18px;margin-right:-6px;stroke-width:2.2;color:var(--success)}
.is-sent .ut-kicker .round-bars i:first-child::after{background:var(--success)}
.is-sent .ut-notice.ok{max-width:none;margin:0;padding:0;border:0;background:none;font-size:20px;line-height:1.4;color:var(--fg-2)}
.is-sent .ut-notice.ok b{margin-bottom:var(--space-5);font-size:min(clamp(52px,8.6vw,132px),max(64px,calc((100vh - 450px) / 3.6)));line-height:.9;color:var(--fg)}
@media (max-width:767px){
  .is-sent .ut-hero{padding-bottom:var(--space-8)}
  .is-sent .ut-notice.ok{font-size:var(--text-md);line-height:1.45}
  .is-sent .ut-notice.ok b{margin-bottom:var(--space-4);font-size:clamp(52px,16.5vw,104px)}
}

/* ---------- /book: the stage. The two ways in on the left, the form on a black panel on the right ---------- */
/* Columns on wide screens: the page's left margin, the words (36% of the page's width), the form's column, the
   page's right margin. The form ends on the page's right margin at every width. */
.ut-stage{position:relative;display:flex;flex-direction:column;background:var(--bg);border-top:1px solid var(--border);
  --side:max(var(--gutter),calc((100% - 1120px) / 2));
  --cols:var(--side) calc((100% - 2 * var(--side)) * .36) minmax(0,1fr) var(--side)}
.ut-stage-text{padding:var(--space-7) var(--gutter) var(--space-6)}
.ut-stage-text .label{display:block}
/* the first way in: email */
.ut-email .label{margin-bottom:var(--space-2)}
.ut-email h2{font-size:var(--text-xl);line-height:1}
.ut-email-line{margin:var(--space-3) 0 0;max-width:62ch;font-size:var(--text-md);line-height:1.55;color:var(--fg-2)}
.ut-email-line a{color:var(--fg);text-underline-offset:3px}
/* the second: the form's own heading, under a hairline */
.ut-ask{margin-top:var(--space-6);padding-top:var(--space-6);border-top:1px solid var(--border)}
.ut-ask .label{margin-bottom:var(--space-3)}
.ut-stage-title{font-size:clamp(40px,5.2vw,68px);line-height:.92}
.ut-stage-line{margin:var(--space-4) 0 0;font-size:18px;line-height:1.5;color:var(--fg-2);max-width:30ch}
.ut-stage-work{min-width:0;padding:var(--space-6) var(--gutter) var(--space-8);background:var(--black);border-top:1px solid var(--border)}
@media (min-width:1024px){
  /* a .show stage's layout (words left, the work on black to the window's right edge) on the columns above.
     The black is its own piece (::after) from the form's column to the window's edge; the form keeps to its
     column, so its right edge is the page's right margin. */
  .ut-stage{display:grid;grid-template-columns:var(--cols)}
  .ut-stage::after{content:"";grid-column:3 / -1;grid-row:1;background:var(--black);border-left:1px solid var(--border)}
  .ut-stage-text{grid-column:2;grid-row:1;align-self:start;padding:var(--space-8) var(--space-7) var(--space-8) 0}
  .ut-stage-work{grid-column:3;grid-row:1;position:relative;z-index:1;border-top:0;background:none;
    padding:var(--space-8) 0 var(--space-8) var(--space-7)}
}
@media (min-width:1024px) and (min-height:760px){
  /* the words stay beside the form if it grows past them (error messages) */
  .ut-stage-text{position:sticky;top:var(--header-h)}
}
/* A full-width slot between the hero and the stage, kept for the booking change set (2026-11-11-own-booking) in
   case its panel is placed across the page instead of on the stage:
   <section class="ut-slot"><div class="wrap">…</div></section>. Not used yet. */
.ut-slot{border-top:1px solid var(--border);padding:var(--space-7) 0 var(--space-8)}
.ut-slot .bk{margin-top:0}
@media (max-width:767px){.ut-slot{padding:var(--space-6) 0 var(--space-7)}}

/* the fields: large targets, the label above each. Boundaries are --muted on the black panel (6.4:1), so a
   field reads as a field before it is touched. One column up to 900 px; pairs above that (below). */
.ut-form.formbox{max-width:600px;padding:0;border:0;background:none}
.ut-form.formbox label{margin-bottom:var(--space-5);font-size:var(--text-sm);line-height:1.4;color:var(--fg-2)}
.ut-form.formbox input[type=text],.ut-form.formbox input[type=email],.ut-form.formbox input[type=tel],.ut-form.formbox textarea{
  display:block;min-height:56px;margin-top:var(--space-2);padding:14px 16px;background:var(--surface);border:1px solid var(--muted);
  font-size:var(--text-base);line-height:1.5;transition:border-color 400ms var(--ease),background-color 400ms var(--ease)}
.ut-form.formbox textarea{min-height:128px;resize:vertical}
.ut-form.formbox input:hover,.ut-form.formbox textarea:hover{border-color:var(--fg-2)}
.ut-form.formbox input:focus,.ut-form.formbox textarea:focus{background:var(--bg)}
.ut-form.formbox input[aria-invalid="true"],.ut-form.formbox input[aria-invalid="true"]:hover,
.ut-form.formbox textarea[aria-invalid="true"],.ut-form.formbox textarea[aria-invalid="true"]:hover{border-color:var(--accent-text)}
.ut-form ::placeholder{color:var(--muted);opacity:1}
.ut-form .field-error{margin-top:var(--space-2);font-weight:600}
.ut-form .error-summary{margin-bottom:var(--space-6);background:var(--bg)}
/* the one action, at the closing's larger size: same cut corners and label */
.ut-form .btn{--c:14px;min-height:60px;margin-top:var(--space-2);padding:0 36px;font-size:15px}
/* 900 px and up: name and business in a pair; email, the message box, the error summary and the button run
   across both. The order in the page is unchanged, so the keyboard still goes name, business, email, message. */
@media (min-width:900px){
  .ut-form.formbox{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--space-5);max-width:720px}
  .ut-form.formbox > .error-summary,.ut-form.formbox > label[for="cb-email"],.ut-form.formbox > label[for="cb-message"],.ut-form.formbox > .btn{grid-column:1 / -1}
  .ut-form.formbox > .btn{justify-self:start}
}
@supports (grid-template-rows:subgrid){
  @media (min-width:900px){
    /* a pair shares its three rows (label, field, error line), so the two fields stay level when one label
       runs to two lines or one field shows an error */
    .ut-form.formbox > label{display:grid;grid-template-rows:subgrid;grid-row:span 3;align-items:end}
    .ut-form.formbox > label > .field-error{align-self:start}
  }
}
@media (max-width:767px){
  /* phones: the first field has to be on the first screen. The line under "Ask for a call." repeats the hero's
     lede, so it is put away here, and the blocks sit one spacing step closer. */
  .ut-stage-text{padding:var(--space-4) var(--gutter)}
  .ut-ask{margin-top:var(--space-4);padding-top:var(--space-4)}
  .ut-stage-line{display:none}
  .ut-stage-work{padding:var(--space-5) var(--gutter) var(--space-7)}
  .ut-form .btn{width:100%}
}

/* ---------- Link rows: the ways in (/contact) and the ways out (404) ---------- */
.ways{padding:0 0 var(--space-8)}
.ways-list{list-style:none;margin:0;padding:0}
.way{position:relative;display:grid;grid-template-columns:40px minmax(0,5fr) minmax(0,7fr) 24px;column-gap:var(--space-5);align-items:baseline;
  padding:var(--space-6) 0;color:var(--fg);text-decoration:none}
/* each row's top hairline is its own piece, so it can draw in (below) */
.way::before,.ways-list li:last-child .way::after{content:"";position:absolute;left:0;right:0;height:1px;background:var(--border-strong);
  transform-origin:left;transition:background-color 400ms var(--ease)}
.way::before{top:0}
.ways-list li:last-child .way::after{bottom:0}
.way-k{font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.1em;line-height:1;color:var(--muted)}
.way strong{font-family:var(--font-display);font-weight:700;font-size:clamp(34px,3.6vw,52px);line-height:.95;text-transform:uppercase}
.way-line{font-size:18px;line-height:1.45;color:var(--fg-2);overflow-wrap:anywhere;transition:color 400ms var(--ease)}
.way .icon{align-self:center;color:var(--fg-2);transition:transform 400ms var(--ease),color 400ms var(--ease)}
.way:hover::before{background:var(--fg-2)}
.way:hover .way-line,.way:hover .icon{color:var(--fg)}
.way:hover .icon{transform:translateX(6px)}
.way:focus-visible{outline:2px solid var(--fg);outline-offset:3px}
/* short rows: a name and an arrow (404) */
.ways.is-short{padding:0}
.ways.is-short .way{grid-template-columns:minmax(0,1fr) 24px;padding:var(--space-4) 0;align-items:center}
.ways.is-short .way strong{font-size:30px;line-height:1}
@media (max-width:767px){
  .ways{padding-bottom:var(--space-7)}
  /* a row on a phone: the number over the name, the arrow beside the name, the line under them */
  .way{grid-template-columns:minmax(0,1fr) 24px;column-gap:var(--space-4);row-gap:6px;padding:var(--space-5) 0}
  .way-k{grid-column:1 / -1;grid-row:1;font-size:13px}
  .way strong{grid-column:1;grid-row:2;font-size:36px}
  .way .icon{grid-column:2;grid-row:2}
  .way-line{grid-column:1 / -1;grid-row:3;font-size:var(--text-md)}
  .ways.is-short .way strong{grid-row:1;font-size:26px}
  .ways.is-short .way .icon{grid-row:1}
}

/* /contact: the two lines under the rows */
.ut-notes{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:var(--space-7);align-items:end;margin-top:var(--space-7)}
.ut-notes p{margin:0}
.ut-note-main{max-width:52ch;font-size:18px;line-height:1.5;color:var(--fg-2)}
.ut-note-side{justify-self:end;text-align:right;font-size:var(--text-sm);line-height:1.55;color:var(--muted)}
.ut-note-side a{color:var(--fg-2);text-underline-offset:3px}
.ut-note-side a:hover{color:var(--fg)}
@media (max-width:767px){
  .ut-notes{grid-template-columns:minmax(0,1fr);row-gap:var(--space-4);margin-top:var(--space-6)}
  .ut-note-main{font-size:var(--text-md)}
  .ut-note-side{justify-self:start;text-align:left}
}

/* ---------- /privacy, /terms: the contents list beside the document ---------- */
.doc{padding:var(--space-7) 0 var(--space-9)}
.doc-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);gap:var(--space-6);align-items:start}
.doc-toc .label{margin:0 0 var(--space-3)}
.doc-toc ol{list-style:none;margin:0;padding:0;border-top:1px solid var(--border)}
.doc-toc li{border-bottom:1px solid var(--border)}
.doc-toc a{display:block;padding:9px 0;font-size:var(--text-sm);line-height:1.55;color:var(--fg-2);text-decoration:none;transition:color 400ms var(--ease)}
.doc-toc a:hover{color:var(--fg)}
.doc-toc a:focus-visible{outline-offset:-2px}
@media (min-width:1024px) and (min-height:640px){
  .doc-toc{position:sticky;top:calc(var(--header-h) + var(--space-6))}
}
/* the document: 17 px on a 1.65 line, about 70 characters to a line; every section opens on a hairline */
.doc .legal{max-width:none}
.doc .legal h2{position:relative;margin:var(--space-7) 0 var(--space-4);padding-top:var(--space-5);border-top:1px solid var(--border);
  font-size:clamp(26px,2.6vw,32px);line-height:1}
.doc .legal h2:first-child{margin-top:0;padding-top:0;border-top:0}
.doc .legal p,.doc .legal li{max-width:58ch;font-size:var(--text-base);line-height:1.65}
.doc .legal ul{list-style:none;margin:0 0 var(--space-4);padding:0}
.doc .legal li{position:relative;margin-bottom:var(--space-3);padding-left:22px}
.doc .legal li::before{content:"";position:absolute;left:0;top:.68em;width:6px;height:6px;background:var(--muted)}
/* the heading a contents link jumps to: a white line draws across the top of its section and stays */
.doc .legal h2::before{content:"";position:absolute;left:0;top:-1px;width:100%;height:1px;background:var(--fg);
  transform:scaleX(0);transform-origin:left;transition:transform 700ms var(--ease)}
.doc .legal h2:target::before{transform:scaleX(1)}
.doc .legal h2:first-child::before{top:-13px}
@media (max-width:1023px){
  .doc-grid{grid-template-columns:minmax(0,1fr);gap:var(--space-7)}
  /* the contents list two across, so the document starts sooner */
  .doc-toc ol{display:grid;grid-template-columns:1fr 1fr;column-gap:var(--space-5)}
  .doc-toc a{padding:11px 0}
}
@media (max-width:767px){
  .doc{padding:var(--space-6) 0 var(--space-8)}
  .doc-grid{gap:var(--space-6)}
  .doc-toc ol{column-gap:var(--space-4)}
  .doc .legal h2{margin-top:var(--space-6)}
  .doc .legal p,.doc .legal li{font-size:var(--text-md)}
}

/* ---------- 404: the ring, and the way across it ---------- */
.nf{padding:0}
.nf-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:var(--space-7);align-items:center;
  min-height:min(calc(100vh - 105px),860px);min-height:min(calc(100svh - 105px),860px);padding-top:var(--space-7);padding-bottom:var(--space-8)}
.nf .lede{max-width:26em}
.nf .ways{margin-top:var(--space-6);max-width:520px}
/* the ring, seen from above one corner: a mat, four posts, three ropes a side, all 1 px lines. Depth comes from
   strength: the platform and the far ropes are the faintest, then the mat's edge, then the near ropes, then the
   posts. One post is red (where the visitor is: the wrong corner), the post across the ring is white, and the
   way between them is drawn on the mat, with a gap where it passes behind the near post. */
.nf-ring{display:block;width:100%;max-width:440px;height:auto;justify-self:end;overflow:visible}
.nf-ring line,.nf-ring polyline,.nf-ring polygon{fill:none;stroke:var(--border-strong);stroke-width:1;vector-effect:non-scaling-stroke}
.nf-ring .nf-far{stroke:var(--border)}
.nf-ring .nf-mat{fill:var(--surface)}
.nf-ring .nf-near{stroke:var(--muted)}
.nf-ring .nf-post{stroke:var(--fg-2)}
.nf-ring .nf-post.nf-far{stroke:var(--muted)}
.nf-ring .nf-there{stroke:var(--fg);stroke-width:2}
.nf-ring .nf-here{stroke:var(--brand-red);stroke-width:2}
.nf-ring .nf-way,.nf-ring .nf-tip{stroke:var(--fg)}
.nf-ring .nf-way{transform-box:fill-box;transform-origin:100% 50%}
@media (max-width:767px){
  /* phones: the words and the ways out first, then the ring at the full width of the column */
  .nf-grid{grid-template-columns:minmax(0,1fr);row-gap:var(--space-7);min-height:0;padding-top:var(--space-6);padding-bottom:var(--space-7)}
  .nf-ring{max-width:none;justify-self:stretch}
  .nf .ways{max-width:none;margin-top:var(--space-5)}
}

/* ---------- The one slow detail per page ---------- */
@keyframes ut-draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes ut-show{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:no-preference){
  /* /book: round 1's bar fills once */
  .ut-kicker .round-bars i:first-child::after{animation:ut-draw 1100ms var(--ease) 500ms both}
  /* /contact: the rows' hairlines draw in, one after another */
  .ways.is-drawn .way::before,.ways.is-drawn li:last-child .way::after{animation:ut-draw 800ms var(--ease) both;animation-delay:calc(300ms + var(--i,0) * 180ms)}
  /* 404: the way across the ring draws once, from the red post: up to the near post, on past it, then its
     arrowhead shows */
  .nf-ring .nf-way-a{animation:ut-draw 600ms linear 500ms both}
  .nf-ring .nf-way-b{animation:ut-draw 800ms var(--ease) 1100ms both}
  .nf-ring .nf-tip{animation:ut-show 500ms var(--ease) 1900ms both}
}
@media (prefers-reduced-motion:reduce){
  .ut-form.formbox input,.ut-form.formbox textarea,.way::before,.ways-list li:last-child .way::after,.way-line,.way .icon,
  .doc-toc a,.doc .legal h2::before{transition:none}
  .way:hover .icon{transform:none}
}

/* /book since 2026-11-25 (KD-70): the black panel holds what the call is and the one button to the CRM's
   booking page, in place of the old form. */
.ut-book{max-width:560px}
.ut-book-facts{list-style:none;margin:0 0 var(--space-6);padding:0}
.ut-book-facts li{padding:var(--space-4) 0;border-bottom:1px solid var(--border);font-size:var(--text-md);line-height:1.5;color:var(--fg-2)}
.ut-book-facts li:first-child{padding-top:0}
.ut-book-facts b{color:var(--fg);font-weight:600}
.ut-book .btn{--c:14px;min-height:60px;padding:0 36px;font-size:15px}
.ut-pick .label{margin-bottom:var(--space-3)}
/* phones: the button sits right under "Pick a time." (the panel with the same button comes after the email block) */
.ut-pick-btn{display:none}
@media (max-width:767px){
  .ut-pick-btn{display:inline-flex;--c:12px;min-height:56px;margin-top:var(--space-4);padding:0 28px;font-size:15px}
}
