/*
  BwM Fitness website. Colours, type and radii come from the approved design tokens (design v1.0):
  charcoal, warm white, the pink accent and the logo spectrum. Motion is decoration only: everything
  reads and works without it, and it stops for anyone who asks their device for reduced motion.
*/

@font-face {
  font-family: 'Archivo Condensed';
  src: url('../fonts/ArchivoCondensed-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('../fonts/AtkinsonHyperlegible-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('../fonts/AtkinsonHyperlegible-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0a0a0f;
  --ink-2: #0e0e14;
  --surface: #15151d;
  --surface-2: #1e1e28;
  --border: #272731;
  --border-2: #3a3a48;
  --text: #f6f1e8;
  --muted: #b5b2bb;
  --faint: #9a96a3;
  --pink: #ff1493;
  --on-pink: #0a0a0f;
  --pink-text: #ff4fae;
  --blue: #3b64f5;
  --cyan: #42e8e0;
  --focus: #42e8e0;
  --paper: #f6f1e8;
  --paper-text: #16151c;
  --spectrum: linear-gradient(100deg, #ff3ea5 0%, #b04cff 32%, #3b6cf6 66%, #42e8e0 100%);
  --display: 'Archivo Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shell: min(1180px, 100% - 40px);
  --radius: 16px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-height: 72px;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  overflow-x: clip;
  /* A word too long for its line, such as an email address at a large text size, breaks (D-23). */
  overflow-wrap: break-word;
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--pink-text);
  text-underline-offset: 3px;
  /* Email addresses and web addresses in a sentence may break on a narrow screen (D-23). */
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* NOT DESIGN APPROVED: use the existing focus ring for keyboard table access (audit Batch 4). */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 1.6em 0 0.5em;
  /* A long word in a large heading breaks rather than pushing the page wider (D-23). */
  overflow-wrap: break-word;
}

h1,
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.1875rem;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: 16px;
  /* Moved up by its own height, so it stays out of sight however large the text is (D-23). */
  top: 0;
  transform: translateY(calc(-100% - 8px));
  z-index: 100;
  background: var(--paper);
  color: var(--paper-text);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  transform: none;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 max(20px, calc((100% - 1180px) / 2));
  transition: background 300ms var(--ease), border-color 300ms var(--ease), backdrop-filter 300ms var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.page-plain .site-header {
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  /* The names may give way to the menu button on a very small screen with large text (D-23). */
  flex-shrink: 1;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

/* The approved v3 kettlebell mark (26 September 2026), a raster on its own dark ground, beside the
   live names. */
.logo img {
  flex-shrink: 0;
  width: 42px;
  height: 48px;
  border-radius: 8px;
}

.logo-names {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid var(--border-2);
}

.logo-name {
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.1;
}

.logo-business {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* When the header is narrow for the size of its text (a small phone with the text size doubled),
   the names beside the mark are kept for screen readers but not drawn, so the menu button stays on
   the screen and the page is no wider than the phone (audit D-23, 10 November 2026). The mark
   itself carries "BwM". The header's width never depends on what is in it, so it can be measured. */
.site-header {
  container: site-header / inline-size;
}

@container site-header (max-width: 17rem) {
  .logo-names {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9688rem;
}

.site-nav a:hover {
  background: rgba(246, 241, 232, 0.08);
}

.site-nav a[aria-current='page'] {
  color: var(--pink-text);
}

.site-nav .nav-cta {
  background: var(--pink);
  color: var(--on-pink);
  margin-left: 6px;
  padding: 0 18px;
}

.site-nav .nav-cta:hover {
  background: #ff3ea5;
}

/* On the contact page the button is the current page. It keeps its dark text: the pink used for
   the other current links cannot be read on the pink button (audit D-17, 10 November 2026). */
.site-nav .nav-cta[aria-current='page'] {
  color: var(--on-pink);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(21, 21, 29, 0.8);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms var(--ease);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 960px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    background: rgba(10, 10, 15, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
  }

  .js .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .js .site-nav ul {
    flex-direction: column;
  }

  .js .site-nav a {
    width: 100%;
    font-size: 1.125rem;
  }

  .js .site-nav .nav-cta {
    justify-content: center;
    margin: 12px 0 0;
  }

  .site-header {
    padding-inline: 16px;
  }

  .logo img {
    width: 35px;
    height: 40px;
  }

  .logo-name {
    font-size: 1.0625rem;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--pink);
  color: var(--on-pink);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}

.button:hover {
  background: #ff3ea5;
  box-shadow: 0 10px 36px rgba(255, 20, 147, 0.35);
  transform: translateY(-2px);
}

.button-ghost {
  background: rgba(246, 241, 232, 0.04);
  color: var(--text);
  border-color: rgba(246, 241, 232, 0.28);
}

.button-ghost:hover {
  background: rgba(246, 241, 232, 0.1);
  box-shadow: none;
}

.button .arrow {
  transition: transform 200ms var(--ease);
}

.button:hover .arrow {
  transform: translateX(4px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Shared type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
  margin: 0 0 18px;
  color: var(--pink-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--spectrum);
  border-radius: 2px;
}

.iridescent {
  background: var(--spectrum);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.motion .iridescent {
  animation: shimmer 7s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  color: var(--muted);
  max-width: 60ch;
}

.section {
  position: relative;
  padding: clamp(64px, 8vw, 112px) 0;
}

.section + .section {
  padding-top: clamp(24px, 3vw, 48px);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.section-head p {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0;
}

/* Hero */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 48px) 0 clamp(56px, 9vw, 104px);
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 15, 0.94) 0%, rgba(10, 10, 15, 0.72) 38%, rgba(10, 10, 15, 0.08) 72%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 10, 15, 0) 36%);
}

.hero-content {
  width: var(--shell);
  margin-inline: auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.75rem, 11vw, 9.5rem);
  max-width: 9ch;
}

/* Matt's headline, chosen on 26 September 2026: the brand line, then what it means for you. */
.hero-tagline {
  display: block;
  margin-top: 0.25em;
  font-size: clamp(1.75rem, 4.2vw, 3.5rem);
  line-height: 1.1;
  max-width: 18ch;
}

/* On a laptop the screen is wide but short, and a headline sized by width alone pushed the
   introduction and both buttons below the first screen. Here the headline is also limited by the
   screen's height and the second line of the headline runs on one line, so the buttons sit within
   the first 700 px at 1366 by 768, 1280 by 720 and 1440 by 900 (audit D-11, 10 November 2026).
   Taller screens and phones are unchanged. */
@media (min-width: 900px) and (max-height: 920px) {
  .hero h1 {
    font-size: clamp(3.75rem, min(11vw, 14.5vh), 9.5rem);
    max-width: 12ch;
  }

  .hero-tagline {
    font-size: clamp(1.75rem, min(4.2vw, 5.6vh), 3.5rem);
    max-width: none;
  }

  /* Once the line about where Matt coaches is switched on (COACHING_AREA in build.mjs), the
     headline gives up a little more height so the buttons still sit within the first 700 px. */
  .hero-content:has(.area-line) h1 {
    font-size: clamp(3.75rem, min(11vw, 12.5vh), 9.5rem);
    max-width: 15ch;
  }
}

.hero .lede {
  margin-top: 24px;
  color: #d9d5de;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
  color: var(--faint);
  font-size: 0.9375rem;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
}

.scroll-cue span {
  width: 22px;
  height: 36px;
  border: 2px solid var(--border-2);
  border-radius: 12px;
  position: relative;
}

.scroll-cue span::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--pink);
}

.motion .scroll-cue span::after {
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  80% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(10, 10, 15, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.motion-toggle:hover {
  background: rgba(30, 30, 40, 0.9);
}

/* Page hero for inner pages */

.page-hero {
  position: relative;
  padding: calc(var(--header-height) + clamp(56px, 9vw, 112px)) 0 clamp(48px, 7vw, 88px);
  isolation: isolate;
  overflow: hidden;
}

.page-hero .shell > * {
  max-width: 820px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 15, 0.96) 0%, rgba(10, 10, 15, 0.7) 55%, rgba(10, 10, 15, 0.35) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 10, 15, 0) 50%);
}

.glow {
  overflow-x: clip;
}

.glow::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  right: -12vw;
  top: -20vw;
  background: radial-gradient(circle, rgba(255, 20, 147, 0.22), rgba(59, 100, 245, 0.12) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.motion .glow::after {
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-6vw, 5vw, 0) scale(1.12);
  }
}

/* Marquee */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--ink-2);
  padding: 22px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  padding-left: 48px;
}

.motion .marquee-track {
  animation: marquee 38s linear infinite;
}

.motion-paused .marquee-track {
  animation-play-state: paused;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 241, 232, 0.55);
}

.marquee span:nth-child(3n + 1) {
  color: var(--text);
  -webkit-text-stroke: 0;
}

.marquee span:nth-child(3n + 2) {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  padding: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  background: var(--surface);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
  color: var(--text);
  text-decoration: none;
}

.pillar:hover {
  border-color: rgba(255, 79, 174, 0.55);
}

.pillar img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.pillar:hover img {
  transform: scale(1.06);
}

.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 10, 15, 0.96) 12%, rgba(10, 10, 15, 0.45) 55%, rgba(10, 10, 15, 0.05) 100%);
}

.pillar-number {
  position: absolute;
  top: 20px;
  left: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.72);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--text);
}

.pillar h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.25rem;
  text-transform: uppercase;
  line-height: 1;
}

.pillar p {
  margin: 0;
  color: #d9d5de;
}

.pillar .more {
  margin-top: 16px;
  color: var(--pink-text);
  font-weight: 700;
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillar {
    min-height: 420px;
  }
}

/* Steps */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.25rem;
  line-height: 1;
  margin-bottom: 18px;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 2px;
  background: var(--spectrum);
  transform-origin: left;
  border-radius: 2px;
}

.motion [data-reveal].step::after {
  transform: scaleX(0);
  transition: transform 900ms var(--ease) 250ms;
}

.motion [data-reveal].step.is-visible::after {
  transform: scaleX(1);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* App showcase */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.phone-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 110%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(66, 232, 224, 0.12), rgba(59, 100, 245, 0.07) 45%, transparent 68%);
}

.phone {
  position: relative;
  width: min(354px, 80vw);
  padding: 5px;
  border: 1px solid #454d57;
  border-radius: 43px;
  background: linear-gradient(135deg, #333b45, #11171e 45%, #343d47);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.42);
}

.phone-screens {
  position: relative;
  width: 100%;
  /* The app screens are taken at iPhone size, 430 by 932 points, and saved at 760 by 1647. */
  aspect-ratio: 760 / 1647;
  border-radius: 38px;
  overflow: hidden;
  background: var(--ink);
}

.phone-screens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 240ms var(--ease);
}

.phone-screens img.is-current {
  opacity: 1;
}

.phone-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border: 2px solid #293342;
  border-radius: 50%;
  background: #080d12;
  z-index: 2;
}

.screen-controls {
  display: flex;
  align-items: center;
  justify-content: safe center;
  /* Nine screens: on a narrow phone the choices wrap onto a second line rather than hide off the edge. */
  flex-wrap: wrap;
  gap: 6px;
  width: min(100%, 480px);
  margin-top: 22px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.screen-controls::-webkit-scrollbar {
  display: none;
}

.screen-dot {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 7px 5px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--muted);
  font: 700 0.8125rem var(--body);
  cursor: pointer;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease);
}

.screen-dot:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.screen-dot[aria-current='true'] {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
}

.screen-caption {
  text-align: center;
  color: var(--muted);
  margin: 8px 0 0;
  min-height: 1.6em;
}

.screen-note {
  margin: 2px 0 0;
  color: var(--faint);
  font-size: 0.875rem;
  text-align: center;
}

.feature-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.feature-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-list .icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 20, 147, 0.12);
  color: var(--pink-text);
}

.feature-list .icon svg {
  width: 20px;
  height: 20px;
}

.feature-list strong {
  display: block;
}

.feature-list span.detail {
  color: var(--muted);
}

@media (max-width: 900px) {
  .showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase .phone-stage {
    order: 2;
  }
}

/* Statement band */

.statement {
  position: relative;
  padding: clamp(96px, 14vw, 180px) 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.statement-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.statement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.motion .statement-media img {
  animation: slow-pan 24s ease-in-out infinite alternate;
}

@keyframes slow-pan {
  from {
    transform: scale(1.05) translateX(-2%);
  }
  to {
    transform: scale(1.14) translateX(2%);
  }
}

.statement::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(10, 10, 15, 0.35) 0%, rgba(10, 10, 15, 0.86) 70%);
}

.statement .display {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(3rem, 9vw, 7.5rem);
}

.statement p.lede {
  margin: 24px auto 0;
  color: #e6e2ea;
}

/* About teaser and about page */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 20, 147, 0.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(59, 100, 245, 0.35), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait .portrait-mark {
  width: 46%;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5));
}

.motion .portrait .portrait-mark {
  animation: float 8s ease-in-out infinite;
}

.portrait-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(10, 10, 15, 0.72);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.about h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-transform: uppercase;
  line-height: 0.95;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 34px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--spectrum);
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px);
  mask: radial-gradient(circle, transparent 5px, #000 6px);
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about .portrait {
    max-width: 420px;
  }
}

/* Call to action band */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(80px, 11vw, 140px) 0;
}

.cta-band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 15, 0.94) 0%, rgba(10, 10, 15, 0.7) 60%, rgba(10, 10, 15, 0.4) 100%);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.cta-grid h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  text-transform: uppercase;
  line-height: 0.95;
}

@media (max-width: 760px) {
  .cta-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* QR code card */

.qr-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 2px solid transparent;
  background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--spectrum) border-box;
  color: var(--paper-text);
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.qr-card img {
  width: 168px;
  height: 168px;
  image-rendering: pixelated;
}

.qr-card p {
  margin: 0;
  max-width: 18ch;
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.qr-card.small img {
  width: 112px;
  height: 112px;
}

/* Cards, details and tables used across pages */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 18px 0;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.feature-card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--spectrum);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(255, 20, 147, 0.12);
  color: var(--pink-text);
}

.feature-card .icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1875rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.qualification-list {
  margin: 14px 0 0;
  padding-left: 1.2em;
  color: var(--text);
}

.qualification-list li + li {
  margin-top: 6px;
}

.qualification-list li::marker {
  color: var(--pink-text);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split + .split {
  margin-top: clamp(64px, 9vw, 120px);
}

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  text-transform: uppercase;
  line-height: 0.95;
}

@media (min-width: 861px) {
  .split.reverse .split-media {
    order: 2;
  }
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-media {
    max-width: 520px;
  }
}

details {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

details p {
  color: var(--muted);
}

.faq {
  max-width: 820px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9688rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-2);
}

.table-wrap {
  overflow-x: auto;
}

pre {
  white-space: pre-wrap;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Pages of reading: privacy, terms, support, deletion, licences, invitation */

.prose-page main {
  width: min(820px, 100% - 40px);
  margin-inline: auto;
  padding: calc(var(--header-height) + 56px) 0 80px;
}

.prose-page main h1 {
  margin: 0 0 12px;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
}

.prose-page main h2 {
  margin-top: 2em;
}

.prose-page main li {
  margin-bottom: 0.35em;
}

.updated {
  color: var(--faint);
  font-size: 0.9375rem;
  margin-top: 40px;
}

/* The short version and the contents list at the top of the privacy notice (audit D-20,
   10 November 2026). NOT DESIGN APPROVED. */
.prose-page main .notice-summary {
  margin-top: 28px;
}

.prose-page main .notice-summary h2 {
  margin-top: 0;
}

.notice-summary ul {
  padding-left: 1.2em;
}

.notice-summary li::marker {
  color: var(--pink-text);
}

.notice-summary p {
  color: var(--muted);
  font-size: 0.9688rem;
}

.prose-page main .notice-contents h2 {
  margin: 1.4em 0 0.4em;
  font-size: 1.1875rem;
}

.notice-contents ol {
  margin: 0;
  padding-left: 1.6em;
  columns: 2 16em;
  column-gap: 32px;
}

.notice-contents li {
  break-inside: avoid;
}

.notice-contents a {
  display: inline-block;
  padding: 4px 0;
}

/* Getting the app: the App Store badge and one line about Android (audit D-07 and D-08,
   10 November 2026). NOT DESIGN APPROVED. The badge is Apple's artwork, shown unchanged at the
   height of the site's buttons, with clear space around it. */

.get-app {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 20px 0 0;
}

.store-badge {
  display: inline-block;
  flex: none;
  border-radius: 9px;
}

.store-badge img {
  width: auto;
  height: 52px;
}

.get-app-note {
  flex: 1 1 16ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.9688rem;
}

.get-app-more {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9688rem;
}

.try-app {
  margin: 28px 0 0;
}

.try-app h3 {
  margin: 0 0 8px;
}

.try-app p {
  color: var(--muted);
}

/* A long sentence as a band heading is set smaller than the two or three word ones. */
.cta-grid h2.cta-title-long {
  font-size: clamp(2.25rem, 5vw, 4rem);
  max-width: 16ch;
}

/* The invitation page's hint, filled in by invite.js when the app did not open (audit D-13). */
.invite-hint {
  margin: 0;
  font-weight: 700;
}

.invite-hint:empty {
  display: none;
}

/* The enquiry form (audit D-03, 10 November 2026). NOT DESIGN APPROVED. Fields follow the app's
   own: a label above each box, the site's surface and border colours, and the cyan focus ring. */

.enquiry {
  margin-top: 24px;
}

.enquiry-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--faint);
  border-radius: 12px;
  background: var(--ink-2);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 0;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.field [aria-invalid='true'] {
  border-color: var(--pink-text);
}

.field-hint,
.field-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The box people never see. It is out of sight, out of the tab order and hidden from screen
   readers, and a message that arrives with it filled in is not sent. */
.enquiry-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.enquiry-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--pink-text);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 700;
}

.enquiry-error:empty {
  display: none;
}

.enquiry-form .button {
  justify-self: start;
  /* A button does not take the page's typeface by itself, as a link does. */
  font-family: inherit;
}

.enquiry-form .button:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.enquiry-done {
  max-width: 640px;
  padding: 20px 24px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface);
}

.enquiry-done:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.enquiry-done h3 {
  margin-top: 0;
}

.enquiry-done > :last-child {
  margin-bottom: 0;
}

.enquiry-done li {
  margin-bottom: 0.35em;
}

/* The smaller copy at the foot of the home and coaching pages sits on a card over the picture. */
.enquiry-compact {
  margin-top: 0;
  padding: 22px 24px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: rgba(14, 14, 20, 0.88);
}

.enquiry-compact .enquiry-form {
  gap: 14px;
}

.enquiry-compact .enquiry-done {
  padding: 0;
  border: 0;
  background: none;
}

.cta-grid.cta-enquiry {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
}

@media (max-width: 860px) {
  .cta-grid.cta-enquiry {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-grid .card h3 {
  margin-top: 0;
}

.contact-grid .card .checks {
  margin-bottom: 16px;
}

.contact-grid .card .qr-card {
  margin-top: 4px;
}

/* Switched off until Matt gives the content (audit D-01, D-04 and D-06, 10 November 2026). NOT
   DESIGN APPROVED. None of these classes appears on a published page while the settings at the top
   of src/build.mjs are off: the packages and prices section, the line about where Matt coaches,
   and the banner on a draft. */

.package-grid {
  align-items: stretch;
}

.package-card h3 {
  margin: 0 0 8px;
}

.package-price {
  margin: 0;
  font-size: 1.125rem;
}

.package-price strong {
  font-family: var(--display);
  font-size: 2.75rem;
  line-height: 1;
}

.package-nutrition {
  margin: 4px 0 16px;
  color: var(--muted);
}

.package-card .checks {
  margin-bottom: 16px;
}

.package-extra {
  margin: 0;
  color: var(--muted);
  font-size: 0.9688rem;
}

.package-terms {
  max-width: 820px;
  margin-top: 28px;
}

.draft-banner {
  border: 2px dashed var(--pink-text);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: var(--surface);
}

p.draft-banner {
  margin-bottom: 24px;
}

.area-line {
  margin-top: 12px;
  font-weight: 700;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.contact-grid .qr-card {
  justify-self: start;
}

.big-link {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 3rem);
  text-transform: uppercase;
  text-decoration: none;
  word-break: break-word;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--ink-2);
  padding: 64px 0 40px;
  color: var(--muted);
  font-size: 0.9688rem;
}

.footer-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 32px;
}

.footer-grid .qr-card {
  align-self: start;
}

.footer-brand img {
  width: 126px;
  height: auto;
  margin-bottom: 16px;
  border-radius: 12px;
}

.footer-brand p {
  max-width: 32ch;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-bottom {
  width: var(--shell);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 0.875rem;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Reveal on scroll, only when motion is welcome and the script is running */

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms var(--ease),
    transform 800ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.motion [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }

  .pillar {
    transform: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-media,
  .marquee,
  .motion-toggle {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
