/* ==========================================================================
   pu.css - the ProUltimate public website design system.

   ONE stylesheet, TWO palettes. A page picks its palette with a class on
   <body>: .pu-crm (the gym CRM: near-black, crimson) or .pu-hrms (the HR
   product: white, blue). Every component below is written against tokens,
   so a component looks correct in either palette without being rewritten.

   Palette sources, so nothing here is invented:
     .pu-hrms  templates/gym_owner_site/tags/_hrms_theme_css.html
     .pu-crm   templates/gym_owner_site/auth_gym_owner/owner_login_split_crm.html
               (block brand_palette)

   Naming: everything is prefixed pu-. The marketing pages historically load
   bootstrap.min.css from the same static root; the prefix keeps the two from
   arguing. Nothing here uses !important.

   Layers, top to bottom:
     1  reset
     2  scales   (type, space, radius, motion)
     3  palettes (.pu-crm, .pu-hrms)
     4  layout   (wrap, section, grid, rhythm variants)
     5  type     (headings, lede, eyebrow, prose)
     6  components (nav, button, card, form, table, figure, footer, misc)
     7  responsive
   ========================================================================== */


/* 1 ── reset ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.pu {
  margin: 0;
  /* Any horizontal overflow on a phone is a bug, not something to hide.
     overflow-x:hidden here would mask it AND break position:sticky on the
     nav in Safari, so it is deliberately absent. */
  background: var(--pu-page);
  color: var(--pu-body);
  font-family: var(--pu-font);
  font-size: var(--pu-t-base);
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, blockquote, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pu-link); text-decoration: none; }
a:hover { color: var(--pu-link-hover); }
hr { border: 0; border-top: 1px solid var(--pu-border); margin: 0; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--pu-focus);
  outline-offset: 2px;
  border-radius: var(--pu-r-sm);
}

.pu-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link: visible only once focused. */
.pu-skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: var(--pu-r);
  background: var(--pu-accent); color: var(--pu-accent-ink);
  font-weight: 600; transition: top var(--pu-fast);
}
.pu-skip:focus { top: 12px; color: var(--pu-accent-ink); }


/* 2 ── scales ────────────────────────────────────────────────────────── */

:root {
  /* Type. Two families and a mono. The mono is not decoration: this site
     talks about device models, field names and message templates, and those
     are set in it so they read as literals rather than adjectives. */
  --pu-font:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pu-font-head: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --pu-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale. Fluid where the size is large enough for fluidity to matter;
     fixed below 18px, because a body size that moves with the viewport is
     just a way to end up with 15px text on a phone. */
  --pu-t-micro:  0.6875rem;   /* 11 - mono eyebrows, table heads, tags     */
  --pu-t-xs:     0.8125rem;   /* 13 - captions, hints, footnotes           */
  --pu-t-sm:     0.875rem;    /* 14 - dense UI text, table cells           */
  --pu-t-base:   1rem;        /* 16 - body                                 */
  --pu-t-md:     1.0625rem;   /* 17 - long-form body                       */
  --pu-t-lede:   clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --pu-t-h4:     clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem);
  --pu-t-h3:     clamp(1.1875rem, 1.09rem + 0.44vw, 1.4375rem);
  --pu-t-h2:     clamp(1.5rem,   1.29rem + 1.05vw, 2.125rem);
  --pu-t-h1:     clamp(2rem,     1.55rem + 2.2vw,  3.0625rem);
  --pu-t-display: clamp(2.375rem, 1.66rem + 3.4vw, 4rem);

  --pu-lh-tight: 1.12;
  --pu-lh-head:  1.2;
  --pu-lh-body:  1.65;

  /* Space. 4px base; the large steps are fluid so vertical rhythm on a
     phone is not the same 96px it is on a desktop. */
  --pu-s1: 4px;
  --pu-s2: 8px;
  --pu-s3: 12px;
  --pu-s4: 16px;
  --pu-s5: 24px;
  --pu-s6: 32px;
  --pu-s7: clamp(36px, 4vw, 48px);
  --pu-s8: clamp(48px, 6vw, 72px);
  --pu-s9: clamp(64px, 8vw, 104px);
  --pu-s10: clamp(80px, 10vw, 144px);

  --pu-gutter: clamp(20px, 5vw, 40px);
  --pu-max:      1180px;   /* default content column          */
  --pu-max-wide: 1360px;   /* full-bleed-ish bands            */
  --pu-max-text: 66ch;     /* anything someone has to read    */

  --pu-r-sm: 4px;
  --pu-r:    8px;
  --pu-r-lg: 14px;
  --pu-r-pill: 999px;

  --pu-fast: 120ms cubic-bezier(.2,.6,.3,1);
  --pu-slow: 240ms cubic-bezier(.2,.6,.3,1);

  --pu-nav-h: 68px;
  scroll-padding-top: calc(var(--pu-nav-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}


/* 3 ── palettes ──────────────────────────────────────────────────────── */

/* -- CRM: the gym product. Near-black warmed toward maroon, crimson accent.
      Lifted from owner_login_split_crm.html's brand_palette, darkened a
      step because a marketing page is a long scroll and #2a1010 across a
      whole viewport is heavy. Contrast of every pair below is checked in
      WEBSITE_DESIGN.md. */
body.pu-crm {
  --pu-page:        #120809;
  --pu-page-2:      #1a0c0e;   /* alternating band                     */
  --pu-surface:     #1f1012;   /* card                                 */
  --pu-surface-2:   #2a1618;   /* card hover / inset                   */
  --pu-heading:     #fdf6f6;
  --pu-body:        #ded0d1;
  --pu-muted:       #b3a1a3;
  --pu-accent:      #ff3b63;
  --pu-accent-2:    #ffb0b8;
  --pu-accent-ink:  #14070a;   /* text ON accent                       */
  --pu-accent-soft: rgba(255, 59, 99, .13);
  --pu-link:        #ffb0b8;
  --pu-link-hover:  #ffffff;
  --pu-border:      rgba(255, 214, 214, .16);
  --pu-border-2:    rgba(255, 214, 214, .30);
  --pu-rule:        linear-gradient(90deg, #ff3b63, rgba(255,59,99,0));
  --pu-shadow:      0 1px 2px rgba(0,0,0,.5);
  --pu-shadow-lg:   0 18px 44px rgba(0,0,0,.55);
  --pu-input-bg:    rgba(255,255,255,.045);
  --pu-input-bg-focus: rgba(255,255,255,.075);
  --pu-input-border: rgba(255, 214, 214, .24);
  --pu-placeholder: rgba(232, 208, 209, .48);
  --pu-code-bg:     rgba(255,255,255,.06);
  --pu-focus:       #ffb0b8;
  --pu-ok:          #6ee7a8;
  --pu-warn:        #fbbf6b;
  --pu-bad:         #ff8a8a;
  color-scheme: dark;
}

/* -- HRMS: the HR product. White, blue-grey, indigo-blue accent.
      Values copied verbatim from _hrms_theme_css.html's --hl-* block. */
body.pu-hrms {
  --pu-page:        #f5f8fd;
  --pu-page-2:      #ffffff;
  --pu-surface:     #ffffff;
  --pu-surface-2:   #eff4fd;
  --pu-heading:     #0f172a;
  --pu-body:        #475569;
  /* Not slate-500 (#64748b). Measured: 4.47:1 on #f5f8fd and 4.31:1 on
     #eff4fd, so every 11px mono eyebrow and table head set in it failed
     AA. Darkened one step; now 5.34 / 5.15 / 5.68 on page / soft / white. */
  --pu-muted:       #5b6878;
  --pu-accent:      #2563eb;
  --pu-accent-2:    #4f46e5;
  --pu-accent-ink:  #ffffff;
  --pu-accent-soft: rgba(37, 99, 235, .09);
  --pu-link:        #1d4ed8;
  --pu-link-hover:  #1e3a8a;
  --pu-border:      rgba(15, 23, 42, .14);
  --pu-border-2:    rgba(15, 23, 42, .26);
  --pu-rule:        linear-gradient(90deg, #38bdf8, #2563eb);
  --pu-shadow:      0 1px 2px rgba(15,23,42,.05);
  --pu-shadow-lg:   0 18px 40px rgba(15,23,42,.10);
  --pu-input-bg:    #f8fafc;
  --pu-input-bg-focus: #ffffff;
  --pu-input-border: rgba(15, 23, 42, .16);
  --pu-placeholder: #94a3b8;
  --pu-code-bg:     #eef2f9;
  --pu-focus:       #2563eb;
  --pu-ok:          #15803d;
  --pu-warn:        #b45309;
  --pu-bad:         #b91c1c;
  color-scheme: light;
}


/* 4 ── layout ────────────────────────────────────────────────────────── */

.pu-wrap {
  width: 100%;
  max-width: var(--pu-max);
  margin-inline: auto;
  padding-inline: var(--pu-gutter);
}
.pu-wrap--wide   { max-width: var(--pu-max-wide); }
.pu-wrap--narrow { max-width: 760px; }

.pu-section { padding-block: var(--pu-s9); }
.pu-section--tight { padding-block: var(--pu-s7); }
.pu-section--loose { padding-block: var(--pu-s10); }

/* Rhythm variants. These exist so that twenty-four pages do not all scroll
   the same way. Pick a different one for consecutive sections. */
.pu-section--band  { background: var(--pu-page-2); }
.pu-section--panel { background: var(--pu-surface); border-block: 1px solid var(--pu-border); }
.pu-section--edge  { border-top: 1px solid var(--pu-border); }

/* Grid. Column count is the class; it collapses on its own below 720px. */
.pu-grid { display: grid; gap: var(--pu-s5); }
.pu-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pu-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pu-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pu-grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Split: text on one side, a figure or form on the other. The ratio is
   deliberately not 50/50 - a column of prose at 50% of 1180px is too wide. */
.pu-split {
  display: grid;
  gap: var(--pu-s7);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
}
.pu-split--even    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* The important column first, for a page whose left side is a form. */
.pu-split--lead    { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pu-split--reverse { direction: rtl; }
.pu-split--reverse > * { direction: ltr; }

/* Rail: a sticky left column of headings against a long right column. */
.pu-rail {
  display: grid;
  gap: var(--pu-s7);
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
}
.pu-rail__side { position: sticky; top: calc(var(--pu-nav-h) + var(--pu-s5)); }

.pu-stack > * + * { margin-top: var(--pu-s4); }
.pu-stack--lg > * + * { margin-top: var(--pu-s6); }


/* 5 ── type ──────────────────────────────────────────────────────────── */

.pu-h1, .pu-h2, .pu-h3, .pu-h4, .pu-display {
  font-family: var(--pu-font-head);
  color: var(--pu-heading);
  font-weight: 640;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.pu-display { font-size: var(--pu-t-display); line-height: var(--pu-lh-tight); letter-spacing: -0.028em; }
.pu-h1 { font-size: var(--pu-t-h1); line-height: var(--pu-lh-tight); letter-spacing: -0.024em; }
.pu-h2 { font-size: var(--pu-t-h2); line-height: var(--pu-lh-head); }
.pu-h3 { font-size: var(--pu-t-h3); line-height: 1.28; letter-spacing: -0.012em; }
.pu-h4 { font-size: var(--pu-t-h4); line-height: 1.35; letter-spacing: -0.008em; font-weight: 620; }

.pu-lede {
  font-size: var(--pu-t-lede);
  line-height: 1.55;
  color: var(--pu-body);
  max-width: var(--pu-max-text);
  text-wrap: pretty;
}
.pu-p    { max-width: var(--pu-max-text); text-wrap: pretty; }
.pu-p + .pu-p { margin-top: var(--pu-s4); }
.pu-small { font-size: var(--pu-t-sm); }
.pu-fine  { font-size: var(--pu-t-xs); color: var(--pu-muted); }
.pu-muted { color: var(--pu-muted); }

/* Eyebrow. Mono, tracked out, small. Number your sections with it -
   "03 / CHECK-IN" - and the page reads as a document with a spine. */
.pu-eyebrow {
  display: inline-flex; align-items: center; gap: var(--pu-s2);
  font-family: var(--pu-font-mono);
  font-size: var(--pu-t-micro);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--pu-accent);
}
.pu-eyebrow--muted { color: var(--pu-muted); }
.pu-eyebrow::after {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: .45;
}
.pu-eyebrow--bare::after { display: none; }

/* Literal: a device model, a field name, a template name. Not decoration -
   use it only where the string really is a literal the reader could type. */
.pu-lit {
  font-family: var(--pu-font-mono);
  font-size: .9em;
  padding: .1em .38em;
  border-radius: var(--pu-r-sm);
  background: var(--pu-code-bg);
  color: var(--pu-heading);
  overflow-wrap: anywhere;
}

/* Section header. Eyebrow, title, optional lede, optional right-hand slot. */
.pu-shead { margin-bottom: var(--pu-s6); }
.pu-shead__title { margin-top: var(--pu-s3); }
.pu-shead__lede  { margin-top: var(--pu-s4); }
.pu-shead--row {
  display: flex; flex-wrap: wrap; gap: var(--pu-s5);
  align-items: end; justify-content: space-between;
}
.pu-shead--row .pu-shead__lede { margin-top: var(--pu-s3); }
.pu-shead--center { text-align: center; }
.pu-shead--center .pu-shead__lede { margin-inline: auto; }
.pu-shead--center .pu-eyebrow::after { display: none; }

/* Prose block, for policy pages and anything long. */
.pu-prose { max-width: var(--pu-max-text); font-size: var(--pu-t-md); }
.pu-prose h2 { font-family: var(--pu-font-head); color: var(--pu-heading);
  font-size: var(--pu-t-h3); margin-top: var(--pu-s7); margin-bottom: var(--pu-s3); letter-spacing: -.012em; }
.pu-prose h3 { font-family: var(--pu-font-head); color: var(--pu-heading);
  font-size: var(--pu-t-h4); margin-top: var(--pu-s6); margin-bottom: var(--pu-s2); }
.pu-prose p  { margin-bottom: var(--pu-s4); }
.pu-prose ul, .pu-prose ol { margin-bottom: var(--pu-s4); padding-left: var(--pu-s5); }
.pu-prose ul { list-style: disc; }
.pu-prose ol { list-style: decimal; }
.pu-prose li { margin-bottom: var(--pu-s2); }
.pu-prose a  { text-decoration: underline; text-underline-offset: .18em; }

/* Bulleted list with a tick. Uses a CSS-drawn mark, not an icon font, so it
   cannot render as an empty box if a font fails. */
.pu-checks > li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--pu-s3);
}
.pu-checks > li::before {
  content: "";
  position: absolute; left: 2px; top: .52em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--pu-accent);
  border-bottom: 2px solid var(--pu-accent);
  transform: rotate(-45deg) translateY(-2px);
}

/* Numbered steps. */
.pu-steps { counter-reset: pu-step; }
.pu-steps > li {
  counter-increment: pu-step;
  position: relative;
  padding-left: 52px;
  padding-bottom: var(--pu-s6);
}
.pu-steps > li::before {
  content: counter(pu-step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-family: var(--pu-font-mono);
  font-size: var(--pu-t-micro);
  letter-spacing: .08em;
  color: var(--pu-accent);
  border: 1px solid var(--pu-border-2);
  border-radius: var(--pu-r-pill);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--pu-surface);
}
.pu-steps > li::after {
  content: ""; position: absolute; left: 17px; top: 34px; bottom: 6px;
  width: 1px; background: var(--pu-border);
}
.pu-steps > li:last-child { padding-bottom: 0; }
.pu-steps > li:last-child::after { display: none; }


/* 6 ── components ────────────────────────────────────────────────────── */

/* -- 6.1 nav ------------------------------------------------------------
   Sticky. No JavaScript: the mobile menu is a <details>, and the desktop
   dropdown is hover + focus-within. A menu that needs a script is a menu
   that is closed when the script 404s, and on this site scripts have. */

.pu-nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--pu-page) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--pu-border);
}
@supports not (backdrop-filter: blur(2px)) { .pu-nav { background: var(--pu-page); } }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .pu-nav { background: var(--pu-page); } }

.pu-nav__bar {
  min-height: var(--pu-nav-h);
  display: flex; align-items: center; gap: var(--pu-s5);
}
.pu-nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--pu-font-head);
  font-weight: 650; letter-spacing: -.02em;
  color: var(--pu-heading); font-size: 1.0625rem;
  white-space: nowrap;
}
.pu-nav__brand:hover { color: var(--pu-heading); }
.pu-nav__mark { width: 26px; height: 26px; flex: 0 0 26px; }
.pu-nav__brand small {
  font-family: var(--pu-font-mono); font-size: var(--pu-t-micro);
  letter-spacing: .1em; text-transform: uppercase; color: var(--pu-muted);
  font-weight: 500;
}

.pu-nav__links { display: flex; align-items: center; gap: var(--pu-s1); margin-left: auto; }
.pu-nav__link {
  display: block; padding: 8px 12px; border-radius: var(--pu-r);
  font-size: var(--pu-t-sm); font-weight: 500; color: var(--pu-body);
  white-space: nowrap; transition: color var(--pu-fast), background var(--pu-fast);
}
.pu-nav__link:hover { color: var(--pu-heading); background: var(--pu-accent-soft); }
.pu-nav__link[aria-current="page"] { color: var(--pu-heading); }
.pu-nav__link[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 5px;
  background: var(--pu-accent); border-radius: 2px;
}

.pu-nav__group { position: relative; }
.pu-nav__group > .pu-nav__link { display: inline-flex; align-items: center; gap: 6px; }
.pu-nav__caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); }
.pu-nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: var(--pu-surface); border: 1px solid var(--pu-border);
  border-radius: var(--pu-r-lg); box-shadow: var(--pu-shadow-lg);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--pu-fast), transform var(--pu-fast), visibility var(--pu-fast);
}
.pu-nav__group:hover > .pu-nav__menu,
.pu-nav__group:focus-within > .pu-nav__menu { opacity: 1; visibility: visible; transform: none; }
.pu-nav__menu a {
  display: block; padding: 9px 12px; border-radius: var(--pu-r);
  font-size: var(--pu-t-sm); color: var(--pu-body);
}
.pu-nav__menu a:hover { background: var(--pu-accent-soft); color: var(--pu-heading); }
.pu-nav__menu a span { display: block; font-size: var(--pu-t-xs); color: var(--pu-muted); }

.pu-nav__cta { margin-left: var(--pu-s3); }
.pu-nav__toggle { display: none; }

/* Mobile drawer, built from <details>. */
.pu-nav__m { display: none; margin-left: auto; }
.pu-nav__m > summary {
  list-style: none; cursor: pointer;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--pu-border); border-radius: var(--pu-r);
  color: var(--pu-heading);
}
.pu-nav__m > summary::-webkit-details-marker { display: none; }
.pu-nav__m > summary .pu-nav__burger,
.pu-nav__m > summary .pu-nav__burger::before,
.pu-nav__m > summary .pu-nav__burger::after {
  display: block; width: 17px; height: 1.5px; background: currentColor; border-radius: 2px;
}
.pu-nav__m > summary .pu-nav__burger { position: relative; }
.pu-nav__m > summary .pu-nav__burger::before { content: ""; position: absolute; top: -5.5px; }
.pu-nav__m > summary .pu-nav__burger::after  { content: ""; position: absolute; top:  5.5px; }
.pu-nav__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--pu-page); border-bottom: 1px solid var(--pu-border);
  box-shadow: var(--pu-shadow-lg);
  padding: var(--pu-s4) var(--pu-gutter) var(--pu-s6);
  max-height: calc(100dvh - var(--pu-nav-h)); overflow-y: auto;
}
.pu-nav__panel a {
  display: block; padding: 11px 0; font-size: var(--pu-t-md);
  color: var(--pu-body); border-bottom: 1px solid var(--pu-border);
}
.pu-nav__panel a:hover { color: var(--pu-heading); }
.pu-nav__panel .pu-eyebrow { margin-top: var(--pu-s5); margin-bottom: var(--pu-s1); }
.pu-nav__panel .pu-btn { margin-top: var(--pu-s5); }


/* -- 6.2 buttons -------------------------------------------------------- */

.pu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--pu-r);
  font-family: var(--pu-font);
  font-size: var(--pu-t-sm); font-weight: 600; letter-spacing: -.005em;
  line-height: 1.2; text-align: center; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background var(--pu-fast), border-color var(--pu-fast),
              color var(--pu-fast), transform var(--pu-fast);
}
.pu-btn:active { transform: translateY(1px); }
.pu-btn[disabled], .pu-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.pu-btn--primary {
  background: var(--pu-accent); color: var(--pu-accent-ink);
  border-color: var(--pu-accent);
}
.pu-btn--primary:hover {
  background: color-mix(in srgb, var(--pu-accent) 86%, var(--pu-heading));
  color: var(--pu-accent-ink);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .pu-btn--primary:hover { filter: brightness(1.08); }
}

.pu-btn--outline {
  background: transparent; color: var(--pu-heading);
  border-color: var(--pu-border-2);
}
.pu-btn--outline:hover { border-color: var(--pu-accent); color: var(--pu-heading); background: var(--pu-accent-soft); }

.pu-btn--quiet { background: transparent; color: var(--pu-body); padding-inline: 10px; }
.pu-btn--quiet:hover { color: var(--pu-heading); background: var(--pu-accent-soft); }

.pu-btn--lg { padding: 15px 28px; font-size: var(--pu-t-base); border-radius: var(--pu-r); }
.pu-btn--sm { padding: 7px 13px; font-size: var(--pu-t-xs); }
.pu-btn--block { display: flex; width: 100%; }

.pu-btns { display: flex; flex-wrap: wrap; gap: var(--pu-s3); align-items: center; }


/* -- 6.3 cards ---------------------------------------------------------- */

.pu-card {
  background: var(--pu-surface);
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-r-lg);
  padding: var(--pu-s5);
  box-shadow: var(--pu-shadow);
}
.pu-card__title { margin-bottom: var(--pu-s2); }
.pu-card__body  { color: var(--pu-body); }
.pu-card__foot  { margin-top: var(--pu-s5); padding-top: var(--pu-s4);
  border-top: 1px solid var(--pu-border); }

/* Link card - only for a card that is entirely a link. */
a.pu-card { display: block; color: inherit; transition: border-color var(--pu-fast), background var(--pu-fast); }
a.pu-card:hover { border-color: var(--pu-border-2); background: var(--pu-surface-2); color: inherit; }

/* Spec card: a title over a definition list of literals. This is the one to
   reach for when the honest thing to say is a list of exact values. */
.pu-card--spec .pu-kv { margin-top: var(--pu-s4); }

.pu-kv { display: grid; gap: 0; }
.pu-kv > div {
  display: flex; gap: var(--pu-s4); justify-content: space-between;
  padding: 9px 0; border-top: 1px solid var(--pu-border);
  font-size: var(--pu-t-sm);
}
.pu-kv > div:first-child { border-top: 0; }
.pu-kv dt { color: var(--pu-muted); }
.pu-kv dd { margin: 0; color: var(--pu-heading); font-family: var(--pu-font-mono);
  font-size: var(--pu-t-xs); text-align: right; overflow-wrap: anywhere; }

/* Stat. A number and what it counts. Never use it for a number nobody can
   check - see WEBSITE_TRUTH.md on the current site's "2500+ gyms". */
.pu-stat__n {
  font-family: var(--pu-font-head); font-size: var(--pu-t-h2);
  color: var(--pu-heading); line-height: 1; letter-spacing: -.03em;
  font-weight: 660; font-variant-numeric: tabular-nums;
}
.pu-stat__l { margin-top: var(--pu-s2); font-size: var(--pu-t-sm); color: var(--pu-muted); }

.pu-tag {
  display: inline-block; padding: 3px 9px; border-radius: var(--pu-r-pill);
  border: 1px solid var(--pu-border-2);
  font-family: var(--pu-font-mono); font-size: var(--pu-t-micro);
  letter-spacing: .08em; text-transform: uppercase; color: var(--pu-muted);
}
.pu-tag--accent { color: var(--pu-accent); border-color: var(--pu-accent); }

/* Note / caveat block. The site is supposed to say what the product does
   NOT do; this is where that goes, so it reads as candour, not fine print. */
.pu-note {
  border-left: 2px solid var(--pu-accent);
  background: var(--pu-accent-soft);
  padding: var(--pu-s4) var(--pu-s5);
  border-radius: 0 var(--pu-r) var(--pu-r) 0;
  font-size: var(--pu-t-sm);
}
.pu-note strong { color: var(--pu-heading); }


/* -- 6.4 forms ---------------------------------------------------------- */

.pu-form { display: grid; gap: var(--pu-s4); }
.pu-form-grid {
  display: grid; gap: var(--pu-s4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pu-field--full { grid-column: 1 / -1; }

.pu-field { display: grid; gap: 6px; min-width: 0; }
.pu-label {
  font-size: var(--pu-t-xs); font-weight: 600; color: var(--pu-heading);
  letter-spacing: .005em;
}
.pu-label .pu-req { color: var(--pu-accent); margin-left: 2px; }

.pu-input, .pu-select, .pu-textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--pu-input-bg);
  color: var(--pu-heading);
  border: 1px solid var(--pu-input-border);
  border-radius: var(--pu-r);
  font-size: var(--pu-t-base);   /* 16px: anything less zooms iOS Safari */
  line-height: 1.4;
  transition: border-color var(--pu-fast), background var(--pu-fast), box-shadow var(--pu-fast);
  -webkit-appearance: none; appearance: none;
}
.pu-textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
.pu-input::placeholder, .pu-textarea::placeholder { color: var(--pu-placeholder); }
.pu-input:hover, .pu-select:hover, .pu-textarea:hover { border-color: var(--pu-border-2); }
.pu-input:focus, .pu-select:focus, .pu-textarea:focus {
  outline: none;
  background: var(--pu-input-bg-focus);
  border-color: var(--pu-accent);
  box-shadow: 0 0 0 3px var(--pu-accent-soft);
}
.pu-input:focus-visible, .pu-select:focus-visible, .pu-textarea:focus-visible { outline: none; }
/* Only after the browser has decided the value is wrong, not while typing. */
.pu-input:user-invalid, .pu-select:user-invalid, .pu-textarea:user-invalid { border-color: var(--pu-bad); }

/* Native select needs its own arrow once appearance is stripped. Drawn, not
   an icon font. */
.pu-select {
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 18px top 51%, right 13px top 51%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.pu-hrms .pu-select option { background: #ffffff; color: #0f172a; }
.pu-crm  .pu-select option { background: #1f1012; color: #fdf6f6; }

/* Phone: a short dial-code box welded to a long number box. */
.pu-phone { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: var(--pu-s2); }

.pu-hint  { font-size: var(--pu-t-xs); color: var(--pu-muted); }
.pu-error { font-size: var(--pu-t-xs); color: var(--pu-bad); font-weight: 600; }

.pu-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--pu-t-sm); }
.pu-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--pu-accent); flex: 0 0 auto; }


/* -- 6.5 tables ---------------------------------------------------------
   The wrapper is not optional. A table is the one thing on a marketing page
   that will not shrink, and a page that scrolls sideways on a phone is
   broken. The wrapper takes the scroll so the page does not. */

.pu-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-r-lg);
  background: var(--pu-surface);
}
.pu-table { width: 100%; border-collapse: collapse; font-size: var(--pu-t-sm); min-width: 520px; }
.pu-table caption {
  caption-side: top; text-align: left; padding: var(--pu-s4) var(--pu-s5) 0;
  font-size: var(--pu-t-xs); color: var(--pu-muted);
}
.pu-table th, .pu-table td {
  padding: 11px var(--pu-s5); text-align: left; vertical-align: top;
  border-top: 1px solid var(--pu-border);
}
.pu-table thead th {
  border-top: 0;
  font-family: var(--pu-font-mono); font-size: var(--pu-t-micro);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--pu-muted); font-weight: 500;
  white-space: nowrap;
  background: var(--pu-surface-2);
}
.pu-table tbody th { font-weight: 600; color: var(--pu-heading); }
.pu-table td { color: var(--pu-body); }
.pu-table .pu-num { text-align: right; font-variant-numeric: tabular-nums; }


/* -- 6.6 figure / screenshot -------------------------------------------
   Every product screenshot on this site is a real screen. Frame it so it
   reads as a screen and not as stock art, and always caption what it is. */

.pu-figure {
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-r-lg);
  background: var(--pu-surface);
  overflow: hidden;
  box-shadow: var(--pu-shadow-lg);
}
.pu-figure__chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 9px var(--pu-s4);
  border-bottom: 1px solid var(--pu-border);
  background: var(--pu-surface-2);
}
.pu-figure__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pu-border-2); }
.pu-figure__path {
  margin-left: var(--pu-s3); font-family: var(--pu-font-mono);
  font-size: var(--pu-t-micro); color: var(--pu-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pu-figure img { width: 100%; display: block; }
.pu-figure figcaption {
  padding: var(--pu-s3) var(--pu-s4);
  border-top: 1px solid var(--pu-border);
  font-size: var(--pu-t-xs); color: var(--pu-muted);
}


/* -- 6.7 footer --------------------------------------------------------- */

.pu-foot {
  border-top: 1px solid var(--pu-border);
  background: var(--pu-page-2);
  padding-block: var(--pu-s8) var(--pu-s6);
  font-size: var(--pu-t-sm);
}
.pu-foot__cols {
  display: grid; gap: var(--pu-s7);
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
.pu-foot__h {
  font-family: var(--pu-font-mono); font-size: var(--pu-t-micro);
  letter-spacing: .12em; text-transform: uppercase; color: var(--pu-muted);
  margin-bottom: var(--pu-s3);
}
.pu-foot li { margin-bottom: 9px; }
.pu-foot a { color: var(--pu-body); }
.pu-foot a:hover { color: var(--pu-heading); }
.pu-foot address { font-style: normal; color: var(--pu-muted); line-height: 1.6; }
.pu-foot__bar {
  margin-top: var(--pu-s7); padding-top: var(--pu-s5);
  border-top: 1px solid var(--pu-border);
  display: flex; flex-wrap: wrap; gap: var(--pu-s4);
  justify-content: space-between; align-items: center;
  color: var(--pu-muted); font-size: var(--pu-t-xs);
}
.pu-foot__bar p { margin: 0; }
.pu-foot__legal { display: flex; flex-wrap: wrap; gap: var(--pu-s5); }
.pu-foot__brand {
  font-family: var(--pu-font-head); font-weight: 650;
  color: var(--pu-heading); font-size: 1.0625rem; letter-spacing: -.02em;
}
.pu-foot__blurb { margin-top: var(--pu-s2); max-width: 34ch;
  font-size: var(--pu-t-xs); color: var(--pu-muted); }
.pu-foot__cta { margin-top: var(--pu-s5); }

/* Contact block. Shared by the footer and the contact page, so it has to
   survive a narrow column and a wide card. Two columns above 380px. */
.pu-contact__row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--pu-s3);
  padding: 8px 0; border-top: 1px solid var(--pu-border);
  font-size: var(--pu-t-sm);
}
.pu-contact__row:first-child { border-top: 0; padding-top: 0; }
.pu-contact__k {
  font-family: var(--pu-font-mono); font-size: var(--pu-t-micro);
  letter-spacing: .1em; text-transform: uppercase; color: var(--pu-muted);
  padding-top: 3px;
}
.pu-contact address { font-style: normal; color: var(--pu-body); line-height: 1.55; }
.pu-contact a { overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .pu-contact__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}


/* -- 6.8 hero ----------------------------------------------------------- */

.pu-hero { padding-block: var(--pu-s9) var(--pu-s8); position: relative; overflow: hidden; }
.pu-hero__inner { position: relative; z-index: 1; }
.pu-hero .pu-h1, .pu-hero .pu-display { margin-top: var(--pu-s4); }
.pu-hero .pu-lede { margin-top: var(--pu-s5); }
.pu-hero .pu-btns { margin-top: var(--pu-s6); }

/* A wash behind the hero, drawn in CSS. No image, nothing to licence. */
.pu-hero__wash {
  position: absolute; inset: -40% -10% auto -10%; height: 620px; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 52% at 22% 42%, var(--pu-accent-soft), transparent 70%),
    radial-gradient(38% 46% at 82% 26%, var(--pu-accent-soft), transparent 68%);
}
/* A faint grid, also CSS. Reads as engineering paper. */
.pu-hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--pu-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pu-border) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 72%);
  opacity: .55;
}


/* -- 6.9 the few utilities that earn their place ------------------------
   Not a utility framework. These exist so a page author never has to write
   style="margin-top:16px" and quietly invent a fifth spacing value. */

.pu-mt-1 { margin-top: var(--pu-s1); }
.pu-mt-2 { margin-top: var(--pu-s2); }
.pu-mt-3 { margin-top: var(--pu-s3); }
.pu-mt-4 { margin-top: var(--pu-s4); }
.pu-mt-5 { margin-top: var(--pu-s5); }
.pu-mt-6 { margin-top: var(--pu-s6); }
.pu-mt-7 { margin-top: var(--pu-s7); }
.pu-mt-0 { margin-top: 0; }

.pu-center { text-align: center; }
.pu-address { font-style: normal; color: var(--pu-body); line-height: 1.6; }


/* 7 ── responsive ────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .pu-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pu-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .pu-nav__links { display: none; }
  .pu-nav__m { display: block; }
  .pu-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pu-split, .pu-rail { grid-template-columns: minmax(0, 1fr); }
  .pu-rail__side { position: static; }
  .pu-split--reverse { direction: ltr; }
  /* On one column, the figure belongs under the words that explain it. */
  .pu-split--reverse > :first-child { order: 2; }
}

@media (max-width: 640px) {
  .pu-grid--2, .pu-grid--3, .pu-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .pu-form-grid { grid-template-columns: minmax(0, 1fr); }
  .pu-foot__cols { grid-template-columns: minmax(0, 1fr); gap: var(--pu-s6); }
  .pu-shead--row { align-items: start; }
  .pu-btns .pu-btn { flex: 1 1 auto; }
  .pu-table th, .pu-table td { padding-inline: var(--pu-s4); }
  .pu-hero__grid { background-size: 44px 44px; }
}

@media print {
  .pu-nav, .pu-foot__cols, .pu-hero__wash, .pu-hero__grid { display: none; }
  body.pu { background: #fff; color: #000; }
}
