/* Akim Personal Trainer
   Every colour, typeface and motif traces back to the business card.
   Colours measured from the card: black #060606, gold #C69852, off-white #E6E6E6, steel #A6A5A5. */

/* ---------- Fonts (self-hosted: no requests to Google, so no visitor IPs shared) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Marck Script";
  src: url("../fonts/marck-script-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the swap to Montserrat doesn't shift the layout */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  size-adjust: 113%;
  ascent-override: 85.5%;
  descent-override: 22.2%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --black: #060606;
  --panel: #14120E;
  --gold: #C69852;
  --gold-hi: #D4AA69;
  --white: #E6E6E6;
  --steel: #A6A5A5;
  --line: rgba(198, 152, 82, 0.38);
  --hair: #27231D;

  --font: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --script: "Marck Script", "Brush Script MT", cursive;

  --header-h: 64px;
  --callbar-h: 60px;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --section-y: clamp(80px, 10vw, 136px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* The card's diagonal: 64deg from horizontal. Rotating a vertical line by 26deg gives it. */
  --slash-rot: 26deg;
  --cot64: 0.4877;
}
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--black);
  color-scheme: dark;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom));
  overflow-x: clip;
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}
body.menu-open { overflow: hidden; }

[hidden] { display: none !important; } /* the hidden attribute always wins over a component's display */
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--black); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.scroll-marker { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; visibility: hidden; } /* js/main.js */
.skip-link {
  position: absolute; left: 12px; top: -200px; z-index: 100;
  background: var(--gold); color: var(--black);
  padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
  scroll-margin-top: var(--header-h);
}
.section--panel { background: var(--panel); }
/* a section that carries on the previous one's background only needs the space below it */
.section--joined { padding-top: 0; }

/* Placeholders that must be replaced before launch: impossible to miss, easy to search for */
.todo {
  color: var(--gold-hi);
  background: rgba(198, 152, 82, 0.08);
  outline: 1px dashed rgba(212, 170, 105, 0.65);
  outline-offset: 1px;
  padding: 0 0.3em;
  font-style: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Type ---------- */
.h2 {
  font-weight: 700;
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  max-width: 18ch;
  text-wrap: balance;
}
.h3 {
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.3;
}
.lead {
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.6;
  max-width: 52ch;
}
p { max-width: 62ch; }
.muted { color: var(--steel); }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 1.1em; }

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 1024px) {
  /* heading beside its intro, both starting at the top, so the title is read first */
  .section-head--split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
  }
  .section-head--split .h2 { max-width: 14ch; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 54px;
  padding: 0 1.7em;
  font: 600 0.8125rem/1.2 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  background: none;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn--line { color: var(--white); border-color: var(--line); }
.btn--line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn--sm { min-height: 44px; padding: 0 1.25em; font-size: 0.75rem; }

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.45em;
  transition: color 0.2s;
}
.link:hover { color: var(--gold-hi); }

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Brand lockup: name | rule | place (from the card's "24/7 GYM | REDDITCH") ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand__name {
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--gold);
}
.brand__rule { width: 1.5px; height: 30px; background: var(--white); opacity: 0.8; }
.brand__sub {
  font-weight: 500;
  font-size: 0.625rem;
  line-height: 1.6;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--hair);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav { display: none; }
.site-header__end { display: flex; align-items: center; gap: 12px; }
/* The Book button sits in the header at every size. Phones show "Book"; the rest of the label stays for screen readers. */
.header-cta { display: inline-flex; min-height: 40px; padding: 0 14px; }
.header-cta[aria-current="page"] { border-color: var(--gold); color: var(--gold-hi); }
.header-cta__more {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
@media (min-width: 600px) {
  .header-cta { padding: 0 1.25em; }
  .header-cta__more { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}
/* just above the width where the full seven-link menu appears, "Book" alone so everything fits on one line */
@media (min-width: 1200px) and (max-width: 1339px) {
  .header-cta__more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 12px;
  margin-right: -4px;
  background: none;
  border: 0;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 22px; height: 12px; }
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 10.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 5.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 5.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--black);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__links a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.25;
  text-decoration: none;
}
.mobile-menu__links a:hover { color: var(--gold-hi); }
.mobile-menu__links .mobile-menu__free { color: var(--gold-hi); }
.mobile-menu__ctas { display: grid; gap: 12px; margin-top: 32px; }

/* Phones: logo, Book button and menu button on one line. The menu button shows just its icon (screen readers
   still hear "Menu"), and below 400px the logo is the AKIM wordmark alone. */
@media (max-width: 599px) {
  .site-header__end { gap: 8px; }
  .header-cta { padding: 0 12px; }
  .menu-toggle { padding: 0 10px; margin-right: -10px; min-width: 44px; justify-content: center; }
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 479px) {
  .site-header__inner { gap: 12px; }
  .brand { gap: 10px; }
  .brand__name { font-size: 1.25rem; }
  .brand__sub { font-size: 0.5625rem; letter-spacing: 0.2em; }
}
@media (max-width: 399px) {
  .brand__rule, .brand__sub { display: none; }
  .btn { font-size: 0.75rem; letter-spacing: 0.1em; padding: 0 1.1em; }
}

/* Full nav from 1200px (six links need it); narrower screens use the Menu button (main.js uses the same width) */
@media (min-width: 1200px) {
  .menu-toggle, .mobile-menu { display: none !important; }
  .nav { display: flex; align-items: center; gap: clamp(18px, 1.7vw, 34px); }
  .nav a {
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--steel);
    text-decoration: none;
    transition: color 0.2s;
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1.5px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav a:hover { color: var(--white); }
  .nav a.nav__free { color: var(--gold-hi); } /* the free plans stand out in the menu */
  .nav a.nav__free:hover { color: var(--white); }
  .nav a:hover::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { color: var(--white); }
  .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .header-cta { min-height: 44px; }
  .site-header__end { gap: clamp(20px, 2.5vw, 40px); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.hero__visual { position: relative; }
.hero__visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 74%, transparent 100%);
}
.hero__line { display: none; }
.hero__inner {
  position: relative;
  margin-top: -18vw;
  padding-bottom: clamp(56px, 10vw, 96px);
}
.hero__title {
  font-weight: 700;
  line-height: 1;
}
.hero__kicker {
  display: block;
  margin-bottom: 18px;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
}
.hero__line-text {
  display: block;
  white-space: nowrap;
  font-size: clamp(2.3rem, 11.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.hero__slash {
  color: var(--gold);
  font-weight: 500;
}
.hero__intro {
  margin-top: 22px;
  max-width: 36ch;
  color: var(--steel);
}
.hero__ctas {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  justify-items: start;
}
.hero__ctas .btn--gold { width: 100%; }

@media (min-width: 600px) {
  .hero__visual img { aspect-ratio: 1448 / 926; }
  .hero__inner { margin-top: -10vw; }
  .hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
  .hero__ctas .btn--gold { width: auto; }
}

/* Desktop: copy on the left, Akim on the right, the card's 64deg hairlines in the gap between them.
   Geometry scales with the hero height (--H): the image is 76% of --H tall and starts just right of the
   long line's foot (--xb), which keeps both lines clear of his head and arms at every width. */
@media (min-width: 1024px) {
  .hero {
    container-type: inline-size;
    --H: clamp(600px, min(calc(100svh - var(--header-h)), 52vw), 880px);
    --cl: max(var(--gutter), calc((100cqw - var(--max)) / 2));
    --xb: calc(var(--cl) + (100cqw - 2 * var(--cl)) * 0.44);
    min-height: var(--H); /* grows if the text needs more room (e.g. 1024px wide screens) */
  }
  /* The photo fills the right-hand column for the full height of the hero, so he sits centred beside the
     text (top of his hair at the header line, waist at the trust strip). The image has a transparent
     background, so the gold lines run behind him rather than across him. */
  .hero__visual {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--xb) - 40px);
    right: 0;
    z-index: 1;
  }
  .hero__visual picture { display: block; height: 100%; }
  .hero__visual img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 54% 0; /* centres his body (it spans 14-88% of the photo's width) in the column */
    -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%), linear-gradient(to right, transparent 0, #000 10%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, #000 84%, transparent 100%), linear-gradient(to right, transparent 0, #000 10%);
    mask-composite: intersect;
  }
  .hero__inner { z-index: 2; }
  .hero__line {
    display: block;
    position: absolute;
    z-index: 0;
    bottom: 0;
    width: 1.5px;
    background: var(--gold);
    transform-origin: bottom left;
    transform: rotate(var(--slash-rot));
    pointer-events: none;
  }
  /* long line: from the floor up to about 55% of the hero height, stopping short of his arm */
  .hero__line--long { left: calc(var(--xb) - 24px); height: calc(var(--H) * 0.5); }
  /* short line: higher and further left, like the broken slash on the card back */
  .hero__line--short {
    left: var(--xb);
    bottom: calc(var(--H) * 0.58);
    height: calc(var(--H) * 0.36);
    opacity: 0.7;
  }
  .hero__inner {
    min-height: var(--H);
    margin-top: 0;
    padding-block: 48px;
    display: flex;
    align-items: center;
  }
  .hero__copy { width: calc(var(--xb) - var(--cl) - 32px); padding-top: 2vh; }
  .hero__kicker { font-size: 0.8125rem; margin-bottom: 24px; }
  .hero__line-text { font-size: clamp(3.25rem, 5.3vw, 4.5rem); }
  .hero__intro { font-size: 1.125rem; }
}

/* One orchestrated entrance: the hairlines draw up from the floor while the headline settles */
@media (prefers-reduced-motion: no-preference) {
  .hero__kicker, .hero__line-text, .hero__intro, .hero__ctas, .hero__free {
    animation: rise 0.8s var(--ease) both;
  }
  .hero__line-text:nth-of-type(2) { animation-delay: 0.08s; }
  .hero__line-text:nth-of-type(3) { animation-delay: 0.16s; }
  .hero__line-text:nth-of-type(4) { animation-delay: 0.24s; }
  .hero__intro { animation-delay: 0.36s; }
  .hero__ctas { animation-delay: 0.44s; }
  .hero__free { animation-delay: 0.56s; }
  .hero__line { animation: draw 1.1s 0.2s var(--ease) both; }
  .hero__line--short { animation-delay: 0.55s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(0.4em); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  from { transform: rotate(var(--slash-rot)) scaleY(0); }
  to { transform: rotate(var(--slash-rot)) scaleY(1); }
}

/* The hero's link to the free plans: a gold FREE tag, the offer and an arrow */
.hero__free {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 26px;
  padding: 7px 14px 7px 7px;
  border: 1px solid var(--line);
  background: rgba(6, 6, 6, 0.6);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.hero__free-tag {
  flex: none;
  padding: 4px 8px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__free svg { flex: none; width: 18px; height: 18px; color: var(--gold); transition: transform 0.25s var(--ease); }
.hero__free:hover { border-color: var(--gold); color: var(--gold-hi); }
.hero__free:hover svg { transform: translateX(3px); }

/* ---------- Free training plans: a section that shouts FREE ---------- */
.free {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(198, 152, 82, 0.16), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(198, 152, 82, 0.08), transparent 70%),
    var(--black);
  border-bottom: 1px solid var(--line);
}
.free__head { display: grid; gap: 28px; margin-bottom: clamp(40px, 6vw, 64px); }
.free__title { font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.625rem); line-height: 1.1; text-wrap: balance; }
/* the word FREE, huge and gold; a highlight sweeps across it once as the section comes into view */
.free__big {
  display: block;
  margin-bottom: 0.04em;
  font-size: clamp(5rem, 3rem + 10vw, 10rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--gold);
  background: linear-gradient(100deg, var(--gold) 40%, #f3dcae 50%, var(--gold) 60%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.free__head.is-in .free__big { animation: sheen 1.6s 0.4s var(--ease) both; }
@keyframes sheen {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
.free__intro { display: grid; gap: 20px; }
.free__perks { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.free__perks li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; }
.free__perks svg { width: 18px; height: 18px; color: var(--gold); }
@media (min-width: 1024px) {
  .free__head { grid-template-columns: 1fr 1fr; align-items: end; gap: clamp(32px, 6vw, 96px); }
}

.free__plans { display: grid; gap: 20px; }
.free-plan {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
@media (hover: hover) {
  .free-plan:hover { border-color: var(--gold); transform: translateY(-3px); }
}
/* a cover in the style of the PDF's own front page, with a FREE ribbon across the corner */
.free-plan__cover {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  aspect-ratio: 4 / 3;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(160deg, #110f0c, #050505 65%);
  container-type: inline-size; /* the title sizes itself to the cover's width */
  border-bottom: 1px solid var(--line);
}
.free-plan__cover::before {
  content: "";
  position: absolute;
  right: 24%;
  bottom: 0;
  width: 1.5px;
  height: 120%;
  background: var(--gold);
  opacity: 0.35;
  transform: rotate(var(--slash-rot));
  transform-origin: bottom left;
}
.free-plan__brand {
  position: absolute;
  top: clamp(20px, 3vw, 32px);
  left: clamp(20px, 3vw, 32px);
  max-width: calc(100% - 150px); /* wraps before it reaches the FREE ribbon */
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.free-plan__name-big {
  position: relative;
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: clamp(1.75rem, 15cqi, 3.75rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.free-plan__name-big span { color: var(--gold); }
.free-plan__kind { position: relative; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.free-plan__ribbon {
  position: absolute;
  top: 28px;
  right: -48px;
  width: 190px;
  padding: 8px 0;
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--black);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.free-plan__body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); }
.free-plan__body > p { color: var(--steel); }
.free-plan__name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.free-plan__price {
  padding: 3px 10px;
  border: 1.5px solid var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.free-plan__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.9375rem; }
.free-plan__facts strong { margin-right: 4px; font-size: 1.1875rem; color: var(--gold); }
.free-plan__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; padding-top: 10px; }
.free-plan__actions .btn { width: 100%; }
.free-plan__file { font-size: 0.875rem; color: var(--steel); }
.free__more { margin-top: clamp(32px, 4vw, 48px); color: var(--steel); }
.free__more .link { color: var(--white); }
@media (min-width: 600px) {
  .free-plan__actions .btn { width: auto; }
}
/* tablets: one plan per row, cover beside the text; larger screens: the three plans side by side */
/* a single free plan (or any plan on tablets) shows its cover beside the text; several plans sit side by side on larger screens */
@media (min-width: 600px) and (max-width: 1099px) {
  .free-plan { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .free-plan__cover { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .free__plans { grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
  .free__plans:has(> .free-plan:only-child) { grid-template-columns: 1fr; }
  .free-plan:only-child { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .free-plan:only-child .free-plan__cover { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
}

/* ---------- Trust strip: thin gold dividers, as between the card's icons and labels ---------- */
.trust {
  background: var(--panel);
  border-block: 1px solid var(--hair);
}
.trust__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.trust__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 26px 0 26px 18px;
  border-left: 1px solid var(--line);
}
.trust__item:nth-child(odd) { border-left: 0; padding-left: 0; }
.trust__item:nth-child(n+3) { border-top: 1px solid var(--hair); }
.trust__value {
  display: block;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.35;
}
.trust__label {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--steel);
}
@media (min-width: 900px) {
  /* sized to its items (currently two), left-aligned, separated by the card's gold rule */
  .trust__list { grid-template-columns: none; grid-auto-flow: column; justify-content: start; }
  .trust__item { padding: 34px clamp(40px, 5vw, 72px); }
  .trust__item:nth-child(odd) { border-left: 1px solid var(--line); padding-left: clamp(40px, 5vw, 72px); }
  .trust__item:first-child { border-left: 0; padding-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 0; }
  .trust__value { font-size: 1.3125rem; }
}

/* ---------- About: the photo fills the whole section as its background ---------- */
/* The section keeps its original size: the figure still occupies the photo's original space in the layout,
   but the picture inside it is positioned against the section and covers it edge to edge. */
.about {
  position: relative;
  overflow: hidden;
  container-type: inline-size; /* also makes the section the picture's positioning box */
}
.about__grid { display: grid; gap: 40px; }
.about__photo { aspect-ratio: 1012 / 770; }
.about__photo picture { position: absolute; inset: 0; }
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 0; /* keeps his whole head in frame on phones and tablets */
}
/* phones: face shows in the top part (where the photo used to be); the text area below is darkened */
.about__photo picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 6, 0) 0%, rgba(6, 6, 6, 0) 34%, rgba(6, 6, 6, 0.74) 50%, rgba(6, 6, 6, 0.8) 100%);
}
.about__copy { position: relative; z-index: 1; }
.about__copy .h2 { margin-bottom: 24px; }
@media (min-width: 1024px) {
  .about__grid {
    --about-gap: clamp(48px, 6vw, 104px);
    grid-template-columns: 5fr 6fr;
    gap: var(--about-gap);
    align-items: center;
  }
  /* spacer: same height as the original photo (left column width at 1012:770) */
  .about__photo {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: auto;
    min-height: calc((min(100cqw - 2 * var(--gutter), var(--max)) - var(--about-gap)) * 5 / 11 * 770 / 1012);
  }
  .about__photo img { object-position: 0 50%; }
  /* measured: his back sits behind the text at most widths, so the text area gets an even ~76% wash
     (enough for 4.5:1 contrast on every text colour), easing off at the far right */
  .about__photo picture::after {
    background: linear-gradient(90deg, rgba(6, 6, 6, 0) 0%, rgba(6, 6, 6, 0) 32%, rgba(6, 6, 6, 0.76) 44%, rgba(6, 6, 6, 0.76) 85%, rgba(6, 6, 6, 0.6) 100%);
  }
  .about__copy { grid-column: 2; grid-row: 1; }
}

/* ---------- Fight photos: the kick large, the other two shots beside it (below it on phones) ---------- */
.fight { padding-block: clamp(48px, 6vw, 88px); }
.fight__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.fight__grid li { position: relative; background: var(--panel); }
.fight__grid img { width: 100%; height: auto; }
.fight__main { grid-column: 1 / -1; }
@media (min-width: 600px) {
  /* the large photo sets the height; the two smaller ones fill half of it each */
  .fight__grid { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
  .fight__main { grid-column: 1; grid-row: 1 / 3; }
  .fight__grid li:not(.fight__main) img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
  }
}

/* ---------- Services: icon | rule | label rows, as on the card back ---------- */
.goals { border-top: 1px solid var(--hair); }
.goal {
  display: grid;
  gap: 18px 40px;
  padding-block: 30px;
  border-bottom: 1px solid var(--hair);
}
.goal__head {
  display: grid;
  grid-template-columns: 32px 1.5px 1fr;
  gap: 18px;
  align-items: center;
}
.goal__icon { width: 32px; height: 32px; color: var(--gold); }
.goal__rule { height: 44px; background: var(--gold); opacity: 0.75; }
.goal__meta { margin-top: 4px; font-size: 0.875rem; color: var(--steel); }
.goal__body { display: grid; gap: 14px; }
.goal__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 2px;
}
.goal__body p { color: var(--steel); }
@media (min-width: 900px) {
  /* three services side by side (the goal__body detail rows are saved in _design/saved-for-later.html;
     if they come back, the old row layout was: .goal { grid-template-columns: minmax(280px, 4fr) 7fr; }) */
  .goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 48px); border-top: 0; }
  .goal { display: block; padding-block: 32px; border-top: 1px solid var(--hair); }
  .goal__body { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- Price cards (Personal training & boxing, Online coaching), each opening a details dialog ---------- */
.eyebrow {
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.pkgs, .pkg-row { --pkg-gap: 12px; }
.pkgs { display: grid; gap: var(--pkg-gap); }
/* group headings (Personal training & boxing): a small label over a hairline */
.pkg-group__title {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pkg-group + .pkg-row,
.pkg-row > .pkg-group + .pkg-group { margin-top: clamp(40px, 5vw, 56px); }
.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 32px);
  background: var(--panel);
  border: 1px solid var(--hair);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
/* gold edge that draws across the top on hover, like the nav underline */
.pkg::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
/* cards take the opposite background to their section */
.section--panel .pkg { background: var(--black); }
.pkg__num { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gold); }
.pkg__name { font-weight: 600; font-size: 1.25rem; line-height: 1.3; text-wrap: balance; }
.pkg__num + .pkg__name { margin-top: 18px; }
/* the whole card is the button: its ::after stretches over the card, and carries the focus ring */
.pkg__open {
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.pkg__open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pkg__open:focus-visible { outline: none; }
.pkg__open:focus-visible::after { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.pkg__tag { margin-top: 10px; font-size: 0.9375rem; color: var(--steel); }
.pkg__foot { margin-top: auto; padding-top: 32px; }
.pkg__price {
  font-weight: 700;
  font-size: clamp(2.25rem, 1.9rem + 1vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--gold);
}
.pkg__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.pkg__plus { position: relative; width: 12px; height: 12px; flex: none; transition: transform 0.35s var(--ease); }
.pkg__plus::before,
.pkg__plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--gold);
}
.pkg__plus::after { transform: rotate(90deg); }
.pkg:active { transform: scale(0.99); }
@media (hover: hover) {
  .pkg:hover { border-color: var(--line); transform: translateY(-3px); }
  .pkg:hover:active { transform: translateY(-3px) scale(0.99); }
  .pkg:hover::before { transform: scaleX(1); }
  .pkg:hover .pkg__more { color: var(--gold-hi); }
  .pkg:hover .pkg__plus { transform: rotate(90deg); }
}
@media (min-width: 640px) {
  .pkgs, .pkg-row { --pkg-gap: 16px; }
  .pkgs { grid-template-columns: 1fr 1fr; }
  .pkg:only-child { grid-column: 1 / -1; } /* a group with one card uses the full width */
}
@media (min-width: 1200px) {
  .pkgs, .pkg-row { --pkg-gap: clamp(12px, 1.4vw, 20px); }
  .pkgs { grid-template-columns: repeat(4, 1fr); }
  .pkgs--3 { grid-template-columns: repeat(3, 1fr); } /* Online coaching: six plans in two rows of three */
  /* the single session (one column) and boxing (two columns) share a row of three equal columns; the shared
     subgrid rows keep both headings, and both sets of cards, level with each other */
  .pkg-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: var(--pkg-gap);
    row-gap: 18px;
  }
  .pkg-row > .pkg-group { grid-row: span 2; display: grid; grid-template-rows: subgrid; }
  .pkg-row > .pkg-group + .pkg-group { margin-top: 0; grid-column: span 2; }
  .pkg-row .pkg-group__title { margin-bottom: 0; }
  .pkg-row > .pkg-group:first-child .pkgs { grid-template-columns: 1fr; }
  .pkg-row > .pkg-group + .pkg-group .pkgs { grid-template-columns: 1fr 1fr; }
}

/* Details dialog: a centred panel on larger screens, a sheet from the bottom on phones.
   Opening and closing fade and slide where the browser supports it; elsewhere it simply appears. */
.pkg-dialog {
  --from: translateY(24px);
  width: min(680px, 100% - 2 * var(--gutter));
  max-width: none;
  max-height: min(88dvh, 900px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-top: 2px solid var(--gold);
  background: var(--panel);
  color: var(--white);
  opacity: 0;
  transform: var(--from);
  transition: opacity 0.2s ease-in, transform 0.2s ease-in, overlay 0.2s allow-discrete, display 0.2s allow-discrete;
}
.pkg-dialog[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}
@starting-style {
  .pkg-dialog[open] { opacity: 0; transform: var(--from); }
}
.pkg-dialog::backdrop {
  background: rgba(6, 6, 6, 0);
  transition: background-color 0.25s, overlay 0.25s allow-discrete, display 0.25s allow-discrete;
}
.pkg-dialog[open]::backdrop { background: rgba(6, 6, 6, 0.8); }
@starting-style {
  .pkg-dialog[open]::backdrop { background: rgba(6, 6, 6, 0); }
}
body:has(.pkg-dialog[open]) { overflow: hidden; }

.pkg-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--hair);
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.pkg-dialog__close:hover { border-color: var(--gold); color: var(--gold-hi); }
.pkg-dialog__close svg { width: 20px; height: 20px; }
.pkg-dialog__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--hair) transparent;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 44px) 32px;
}
.pkg-dialog__head { padding-right: 48px; padding-bottom: 26px; border-bottom: 1px solid var(--hair); }
.pkg-dialog__head .eyebrow { margin-bottom: 14px; }
.pkg-dialog__title { font-weight: 700; font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.125rem); line-height: 1.15; text-wrap: balance; }
.pkg-dialog__price { margin-top: 14px; font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--gold); }
.pkg-dialog__tag { margin-top: 14px; font-size: 1.0625rem; }
.pkg-dialog__body { padding-top: 24px; }
.pkg-dialog__body > p { color: var(--steel); }
.pkg-dialog__body > p + p { margin-top: 1em; }
.pkg-dialog__label {
  margin: 30px 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
/* list markers are the card's gold diagonal */
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.3em;
  width: 1.5px;
  height: 1.05em;
  background: var(--gold);
  transform: rotate(var(--slash-rot));
}
.pkg-dialog__foot {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 16px clamp(22px, 4vw, 44px) calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
  background: var(--panel);
}
.pkg-dialog__foot .btn { width: 100%; }
.pkg-dialog__how { flex-basis: 100%; font-size: 0.875rem; color: var(--steel); }
@media (max-width: 599px) {
  .pkg-dialog {
    --from: translateY(100%);
    width: 100%;
    max-height: calc(100dvh - 40px);
    margin: auto 0 0;
    border-inline: 0;
    border-bottom: 0;
  }
}
@media (min-width: 600px) {
  .pkg-dialog__foot .btn { width: auto; }
}

/* ---------- How it works ---------- */
.steps { display: grid; gap: 44px; counter-reset: step; }
.step { border-top: 1px solid var(--line); padding-top: 26px; }
.step__num {
  display: block;
  font-weight: 600;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--gold);
}
.step__of { font-size: 1rem; font-weight: 500; color: var(--steel); margin-left: 0.15em; }
.step__title { margin: 18px 0 10px; }
.step p { color: var(--steel); }
.steps__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: clamp(48px, 6vw, 72px);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); }
}

/* ---------- Results ---------- */
.quotes { display: grid; gap: 20px; }
.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  background: var(--black);
  border: 1px solid var(--hair);
}
.quote blockquote { font-size: 1.125rem; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: 16px; }
.quote__photo {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  font-size: 0.625rem;
  color: var(--steel);
  text-align: center;
  line-height: 1.2;
}
.quote__name { display: block; font-weight: 600; }
.quote__meta { display: block; font-size: 0.875rem; color: var(--steel); }
.ba { display: grid; gap: 20px; margin-top: 20px; }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--black);
  border: 1px dashed var(--line);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--steel);
}
.ba__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
}
.disclaimer { margin-top: 28px; font-size: 0.8125rem; color: var(--steel); max-width: 70ch; }
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .ba { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reviews ---------- */
/* The first review is featured: its photo beside the quote. Reviews accepted in the dashboard follow as cards
   (js/main.js), in columns so cards with and without photos pack together. */
.review { display: grid; background: var(--black); border: 1px solid var(--hair); }
.review__photo { background: var(--panel); }
.review__photo img { width: 100%; height: auto; }
.review__body { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 26px 24px 28px; }
.review__text::before {
  content: "\201C";
  display: block;
  height: 0.5em;
  margin-bottom: 0.15em;
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
}
.review__text p { max-width: 60ch; }
.review__text p + p { margin-top: 1em; }
.review__who { display: grid; gap: 2px; }
.review__who::before { content: ""; width: 36px; height: 1.5px; margin-bottom: 12px; background: var(--gold); }
.review__name { font-weight: 600; }
.review__meta { font-size: 0.875rem; color: var(--steel); }

.review--featured .review__photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; }
.review--featured .review__text { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.6; }
@media (min-width: 600px) {
  .review__body { padding: 32px 34px 34px; }
  .review--featured { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .review--featured .review__photo { position: relative; min-height: 100%; }
  .review--featured .review__photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .review--featured .review__body { min-height: clamp(420px, 52vw, 600px); }
}
@media (min-width: 900px) {
  .review--featured { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .review--featured .review__body { padding: clamp(40px, 5vw, 72px); }
}

.review-list { margin-top: 16px; columns: 1; column-gap: 16px; }
.review-card { break-inside: avoid; margin-bottom: 16px; }
.review-card .review__photo img { max-height: 560px; object-fit: cover; }
.review-card .review__text::before { font-size: 3.5rem; }
@media (min-width: 700px) { .review-list { columns: 2; } }
@media (min-width: 1100px) { .review-list { columns: 3; } }

.reviews__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: clamp(32px, 4vw, 48px);
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 40px; }
.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-hi); }
.faq__plus { position: relative; width: 16px; height: 16px; flex: none; margin-top: 0.3em; }
.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--gold);
  transition: transform 0.25s var(--ease);
}
.faq__plus::after { transform: rotate(90deg); }
.faq details[open] .faq__plus::after { transform: rotate(0deg); }
.faq__a { padding-bottom: 26px; color: var(--steel); }
@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: 4fr 7fr; gap: clamp(48px, 6vw, 104px); align-items: start; }
  .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
}

/* ---------- Instagram ---------- */
.social__head { display: grid; gap: 28px; }
.social__handle {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  color: var(--gold);
  text-decoration: none;
}
.social__handle:hover { color: var(--gold-hi); }
.social__buttons { display: grid; gap: 12px; }
/* One row of three photos from his Instagram, in Instagram's 4:5 portrait shape, each linking to its post */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: clamp(40px, 5vw, 56px);
}
.ig-grid a { display: block; background: var(--panel); }
.ig-grid a:focus-visible { outline-offset: 2px; }
@media (min-width: 600px) {
  .ig-grid { gap: 6px; }
}
.ig-tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 12px;
  background: var(--panel);
  border: 1px dashed var(--line);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--steel);
}
@media (min-width: 600px) {
  .social__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
}
@media (min-width: 1024px) {
  .social__head { grid-template-columns: 1fr auto; align-items: end; }
}

/* Ready for real photos: drop an <img> into any placeholder slot and it fills it (see README) */
.ig-grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.quote__photo:has(> img) { border: 0; }
.quote__photo img { width: 100%; height: 100%; object-fit: cover; }
.ba__frame:has(> img) { padding: 0; border: 0; }
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__frame:has(> img) .ba__tag { z-index: 1; background: var(--black); padding: 2px 8px; }

/* ---------- Final call to action ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.cta-band__inner { position: relative; z-index: 1; }
.cta-band__sign { display: inline-block; margin-bottom: 26px; }
.cta-band__script {
  display: block;
  font-family: var(--script);
  font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem);
  line-height: 1.1;
  color: var(--gold);
  transform: rotate(-6deg);
  transform-origin: left bottom;
}
.cta-band__swoosh { width: 100%; height: 14px; margin-top: -8px; color: var(--gold); }
.cta-band__title { max-width: 16ch; }
.cta-band__phone {
  display: inline-block;
  white-space: nowrap;
  margin-top: clamp(24px, 4vw, 40px);
  font-weight: 700;
  font-size: clamp(2rem, 10vw, 6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s;
}
.cta-band__phone:hover { color: var(--gold-hi); }
.cta-band__alt { margin-top: 26px; color: var(--steel); }
.cta-band__line { display: none; }
@media (min-width: 1024px) {
  .cta-band__line {
    display: block;
    position: absolute;
    bottom: 0;
    width: 1.5px;
    background: var(--gold);
    transform-origin: bottom left;
    transform: rotate(var(--slash-rot));
  }
  .cta-band__line--long { right: 26%; height: 115%; }
  .cta-band__line--short { right: 17%; bottom: 46%; height: 60%; opacity: 0.7; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hair);
  padding-block: 64px 32px;
}
.footer__grid { display: grid; gap: 40px; }
.footer__about { margin-top: 20px; color: var(--steel); max-width: 34ch; }
.footer__title { font-size: 0.875rem; font-weight: 600; margin-bottom: 14px; }
.footer__list { display: grid; gap: 10px; color: var(--steel); }
.footer__list a { text-decoration: none; transition: color 0.2s; }
.footer__list a:hover { color: var(--white); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--white);
  transition: border-color 0.2s, color 0.2s;
}
.socials a:hover { border-color: var(--gold); color: var(--gold-hi); }
.socials svg { width: 20px; height: 20px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-size: 0.8125rem;
  color: var(--steel);
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--white); }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--callbar-h);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.callbar svg { width: 20px; height: 20px; }
.callbar__call { background: var(--gold); color: var(--black); }
.callbar__wa { color: var(--gold); }
@media (min-width: 768px) {
  .callbar { display: none; }
}

/* ---------- Simple pages (privacy, 404) ---------- */
.page { padding-block: clamp(56px, 8vw, 104px) var(--section-y); }
.page h1 { font-weight: 700; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.1; }
.page__updated { margin-top: 12px; color: var(--steel); font-size: 0.9375rem; }
.prose { margin-top: 48px; max-width: 68ch; }
.prose h2 { font-weight: 700; font-size: 1.375rem; line-height: 1.3; margin-top: 44px; }
.prose p, .prose ul { margin-top: 14px; color: var(--steel); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--white); text-decoration-color: var(--gold); text-underline-offset: 0.3em; }
.prose strong { color: var(--white); font-weight: 600; }

/* ---------- Booking page: session, then day, then time, then details ---------- */
.booking__intro { margin-top: 18px; max-width: 48ch; color: var(--steel); }
.booking__intro a { color: var(--white); }
.booking__notice {
  margin-top: 20px;
  padding: 12px 16px;
  max-width: none;
  border: 1px dashed var(--line);
  color: var(--gold-hi);
  font-size: 0.9375rem;
}
.booking__form { position: relative; display: grid; margin-top: clamp(32px, 5vw, 56px); }
.bstep { min-width: 0; margin: 0; padding: 28px 0 36px; border: 0; border-top: 1px solid var(--hair); }
.bstep:disabled { opacity: 0.4; }
.bstep legend { float: left; width: 100%; padding: 0; margin-bottom: 22px; }
.bstep legend ~ * { clear: left; }
.bstep__title { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
.bstep__num {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 700;
}
.bstep__hint { margin-bottom: 16px; color: var(--steel); }
.bstep__note { margin-top: 14px; font-size: 0.875rem; color: var(--steel); }

/* Session choice: radio cards (the real radio stays on top, invisible, so clicks and keys work natively) */
.picks { display: grid; gap: 10px; }
.pick { position: relative; display: block; }
.pick input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick__body {
  position: relative;
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 16px 18px 16px 52px;
  background: var(--panel);
  border: 1px solid var(--hair);
  transition: border-color 0.2s, background-color 0.2s;
}
.pick__body::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--steel);
  border-radius: 50%;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.pick:hover .pick__body { border-color: var(--line); }
.pick input:checked + .pick__body { border-color: var(--gold); background: rgba(198, 152, 82, 0.08); }
.pick input:checked + .pick__body::before { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 4px var(--panel); }
.pick input:focus-visible + .pick__body { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.pick__name { font-weight: 600; line-height: 1.35; }
.pick__meta { font-size: 0.875rem; color: var(--steel); }
@media (min-width: 600px) {
  .picks { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .picks { grid-template-columns: repeat(4, 1fr); }
}

/* Calendar */
.cal { max-width: 440px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cal__month { font-weight: 600; font-size: 1.0625rem; }
.cal__nav {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--hair);
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.2s;
}
.cal__nav:hover:not(:disabled) { border-color: var(--gold); }
.cal__nav:disabled { opacity: 0.3; cursor: default; }
.cal__nav svg { width: 18px; height: 18px; }
.cal__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal__grid th {
  padding: 6px 0 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.cal__grid abbr { text-decoration: none; }
.cal__grid td { padding: 2px; text-align: center; }
.cal__day {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  color: #5d5950;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.cal__day.is-free { border-color: var(--hair); color: var(--white); cursor: pointer; }
.cal__day.is-free::after {
  content: "";
  position: absolute;
  bottom: 16%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
}
.cal__day.is-free:hover { border-color: var(--gold); }
.cal__day.is-today { text-decoration: underline; text-decoration-color: var(--steel); text-underline-offset: 0.3em; }
.cal__day[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--black); }
.cal__day[aria-pressed="true"]::after { background: var(--black); }
.cal__status { margin-top: 12px; font-size: 0.9375rem; color: var(--steel); }
.cal__status a { color: var(--white); }

/* Times */
.times__group + .times__group { margin-top: 18px; }
.times__label {
  margin-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.time { position: relative; display: block; }
.time input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.time span {
  display: grid;
  place-items: center;
  min-height: 48px;
  background: var(--panel);
  border: 1px solid var(--hair);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.time:hover span { border-color: var(--gold); }
.time input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--black); }
.time input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* Details */
.field { display: grid; gap: 8px; max-width: 440px; margin-bottom: 22px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  background: var(--panel);
  border: 1px solid #3d382f;
  border-radius: 0;
  color: var(--white);
  font: inherit;
  font-size: 1.0625rem; /* 16px or more, so phones don't zoom in on focus */
}
.field input:focus { outline: 2px solid var(--gold-hi); outline-offset: 0; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: #ff8f80; }
.field__hint { font-size: 0.875rem; color: var(--steel); }
.field__error { font-size: 0.875rem; font-weight: 600; color: #ff9b8f; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.summary {
  max-width: 440px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: var(--panel);
  border-left: 2px solid var(--gold);
}
.summary__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.summary__text { margin-top: 4px; font-weight: 600; }
.booking__small { max-width: 440px; margin-bottom: 22px; font-size: 0.875rem; color: var(--steel); }
.booking__small a { color: var(--white); }
.booking__submit { width: 100%; max-width: 440px; }
.booking__submit[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.form-error { max-width: 440px; margin-top: 16px; font-weight: 600; color: #ff9b8f; }
.form-error:empty { display: none; }
.form-error a { color: var(--white); }

/* Leave a review page: the booking page's fields, plus a text box, a photo picker and a consent box */
.review-form { margin-top: clamp(32px, 5vw, 56px); max-width: 640px; }
.field--wide { max-width: 640px; }
.field__label { font-weight: 600; font-size: 0.9375rem; }
.field__optional { font-weight: 400; color: var(--steel); }
.field textarea {
  width: 100%;
  min-height: 180px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid #3d382f;
  border-radius: 0;
  color: var(--white);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.6;
  resize: vertical;
}
.field textarea:focus { outline: 2px solid var(--gold-hi); outline-offset: 0; border-color: var(--gold); }
.field textarea[aria-invalid="true"] { border-color: #ff8f80; }
.photo-pick { position: relative; }
.field .photo-pick__input {
  position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%);
}
.field .photo-pick__button { justify-self: start; font-size: 0.75rem; cursor: pointer; }
.photo-pick__input:focus-visible + .photo-pick__button { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.photo-pick__input[aria-invalid="true"] + .photo-pick__button { border-color: #ff8f80; }
.photo-preview { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; }
.photo-preview__frame { width: 220px; max-width: 100%; background: var(--panel); border: 1px solid var(--hair); }
.photo-preview__img { display: block; width: 100%; height: auto; }
.field .check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-weight: 400; cursor: pointer; }
.field .check input { all: revert; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.field .check input[aria-invalid="true"] { outline: 2px solid #ff8f80; outline-offset: 2px; }
.btn--quiet { border-color: transparent; color: var(--steel); text-decoration: underline; text-underline-offset: 0.3em; text-transform: none; letter-spacing: 0; font-size: 0.875rem; font-weight: 500; padding: 0 8px; }
.btn--quiet:hover { color: var(--white); }

.booking__done {
  max-width: 640px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(24px, 4vw, 40px);
  background: var(--panel);
  border: 1px solid var(--line);
}
.booking__done:focus { outline: none; }
.booking__done .h2 { margin-bottom: 16px; }
.booking__done .link { display: inline-block; margin-top: 24px; }

@media (min-width: 1024px) {
  .booking__form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "service service" "day time" "day details";
    align-items: start;
    column-gap: clamp(48px, 6vw, 96px);
  }
  #step-service { grid-area: service; }
  #step-day { grid-area: day; }
  #step-time { grid-area: time; }
  #step-details { grid-area: details; }
}

.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Scroll reveal (only section headings; respects reduced motion) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Christmas theme (added 17 Nov 2026) ----------
   Everything here only applies while <html> has class="xmas" (index, book, review, privacy and 404 pages), so the
   whole theme switches off by removing that class, and on again next year by adding it. Elements that only make
   sense at Christmas carry class="xmas-only". The decorations are pointer-events: none, hidden from screen readers,
   and still (no falling snow, no twinkling) for anyone who prefers reduced motion. */
html:not(.xmas) .xmas-only { display: none !important; }
.xmas {
  --panel: #0d1912;          /* deep pine instead of dark brown for the panel sections, cards and pop-ups */
  --hair: #1d2a21;
  --xmas-red: #b0141e;       /* holly red: backgrounds with white text (7.1:1) */
  --xmas-red-hi: #ff7b72;    /* red for lines and text on the dark backgrounds (8:1 on black) */
  --snow: #f4f1ea;
}

/* Fairy lights hanging from the bottom of the header; every other bulb twinkles */
.xmas .site-header::before,
.xmas .site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 22px;
  margin-top: -4px;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 120px 22px;
}
.xmas .site-header::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cpath d='M0 4Q30 16 60 4Q90 16 120 4' fill='none' stroke='%233b382c' stroke-width='1.4'/%3E%3Crect x='13' y='7.6' width='4' height='3.4' rx='0.6' fill='%235a5440'/%3E%3Cellipse cx='15' cy='15' rx='3.3' ry='4.7' fill='%23e8423c'/%3E%3Crect x='43' y='7.6' width='4' height='3.4' rx='0.6' fill='%235a5440'/%3E%3Cellipse cx='45' cy='15' rx='3.3' ry='4.7' fill='%23f5c44c'/%3E%3Crect x='73' y='7.6' width='4' height='3.4' rx='0.6' fill='%235a5440'/%3E%3Cellipse cx='75' cy='15' rx='3.3' ry='4.7' fill='%233fc07c'/%3E%3Crect x='103' y='7.6' width='4' height='3.4' rx='0.6' fill='%235a5440'/%3E%3Cellipse cx='105' cy='15' rx='3.3' ry='4.7' fill='%23fff0c8'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 2px rgba(255, 214, 150, 0.45)); }
.xmas .site-header::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cdefs%3E%3Cfilter id='b' x='-1' y='-1' width='3' height='3'%3E%3CfeGaussianBlur stdDeviation='2.6'/%3E%3C/filter%3E%3C/defs%3E%3Cellipse cx='15' cy='15' rx='5' ry='6' fill='%23ff5a50' filter='url%28%23b%29'/%3E%3Cellipse cx='75' cy='15' rx='5' ry='6' fill='%234be08f' filter='url%28%23b%29'/%3E%3C/svg%3E"); opacity: 0.9; }

/* Falling snow: two layers at different sizes and speeds, over the page but under the header and menu */
.xmas body::before,
.xmas body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  z-index: 45;
  pointer-events: none;
  background-repeat: repeat;
  will-change: transform;
}
.xmas body::before { top: -420px; height: calc(100vh + 420px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='420' viewBox='0 0 340 420'%3E%3Ccircle cx='30' cy='40' r='1.8' fill='%23fff' fill-opacity='0.85'/%3E%3Ccircle cx='190' cy='90' r='1.3' fill='%23fff' fill-opacity='0.7'/%3E%3Ccircle cx='300' cy='150' r='2.1' fill='%23fff' fill-opacity='0.8'/%3E%3Ccircle cx='90' cy='210' r='1.4' fill='%23fff' fill-opacity='0.65'/%3E%3Ccircle cx='240' cy='280' r='1.9' fill='%23fff' fill-opacity='0.85'/%3E%3Ccircle cx='140' cy='350' r='1.2' fill='%23fff' fill-opacity='0.6'/%3E%3Ccircle cx='320' cy='390' r='1.5' fill='%23fff' fill-opacity='0.7'/%3E%3C/svg%3E"); background-size: 340px 420px; animation: xmas-snow-near 16s linear infinite; }
.xmas body::after { top: -560px; height: calc(100vh + 560px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='560' viewBox='0 0 520 560'%3E%3Ccircle cx='60' cy='70' r='2.6' fill='%23fff' fill-opacity='0.45'/%3E%3Ccircle cx='310' cy='30' r='3.2' fill='%23fff' fill-opacity='0.4'/%3E%3Ccircle cx='450' cy='220' r='2.4' fill='%23fff' fill-opacity='0.5'/%3E%3Ccircle cx='170' cy='300' r='3' fill='%23fff' fill-opacity='0.35'/%3E%3Ccircle cx='390' cy='430' r='2.8' fill='%23fff' fill-opacity='0.45'/%3E%3Ccircle cx='40' cy='480' r='2.2' fill='%23fff' fill-opacity='0.4'/%3E%3C/svg%3E"); background-size: 520px 560px; animation: xmas-snow-far 30s linear infinite; }
@keyframes xmas-snow-near { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 420px, 0); } }
@keyframes xmas-snow-far { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 560px, 0); } }
@keyframes xmas-twinkle { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.15; } }
@media (prefers-reduced-motion: no-preference) {
  .xmas .site-header::after { animation: xmas-twinkle 1.8s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .xmas body::before, .xmas body::after { display: none; }
}

/* A Santa hat on the A of AKIM */
.xmas-hat { display: none; }
.xmas .brand__name { position: relative; }
.xmas .xmas-hat {
  display: block;
  position: absolute;
  left: -10px;
  top: -14px;
  width: 27px;
  height: auto;
  transform: rotate(-16deg);
  pointer-events: none;
}

/* Hero: a gold "Merry Christmas" in the card's script, above the headline */
.hero__xmas {
  display: block;
  margin-bottom: 14px;
  font-family: var(--script);
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  line-height: 1.1;
  color: var(--gold);
  rotate: -4deg; /* the rotate property, not transform, so the entrance animation doesn't undo it */
  transform-origin: left bottom;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__xmas { animation: rise 0.8s var(--ease) both; }
}
.hero__xmas { text-shadow: 0 2px 14px rgba(6, 6, 6, 0.7); }
/* Phones and tablets: the text overlaps the bottom of the photo, so move it down by the greeting's height to keep
   the greeting on the dark fade instead of on Akim */
@media (max-width: 599px) {
  .xmas .hero__inner { margin-top: calc(-18vw + 50px); }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .xmas .hero__inner { margin-top: calc(-10vw + 40px); }
}

/* The free plan's ribbon turns holly red, like a gift */
.xmas .free-plan__ribbon { background: var(--xmas-red); color: #fff; }
.footer__xmas { margin-top: 14px; font-family: var(--script); font-size: 1.75rem; line-height: 1.2; color: var(--gold); }

/* ---------- Christmas sale: 50% off everything paid (added 17 Nov 2026) ----------
   Only while <html> has class="sale" (until midnight UK time on New Year's Day, see js/season.js): sale prices,
   tags, banner and countdowns carry class="sale-only", the usual prices and messages class="usual-only".
   The red falls back to its own value, so the sale still looks right if the Christmas theme is switched off. */
html:not(.sale) .sale-only { display: none !important; }
html.sale .usual-only { display: none !important; }
.xmas-bar {
  display: block;
  padding: 9px var(--gutter);
  background: var(--xmas-red, #b0141e);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
}
.xmas-bar strong { margin-right: 0.5em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.xmas-bar__more { margin-left: 0.4em; font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 0.25em; }
.xmas-bar__more::after { content: " \2192"; }
.xmas-bar:hover .xmas-bar__more { text-decoration-thickness: 2px; }
.xmas-bar:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
/* The countdown keeps one width from the first paint ("on New Year's Eve") to the ticking time ("in 42d 13h 59m
   59s" is 10.5em in Montserrat with even-width digits), so starting it never moves the banner or the page */
[data-countdown] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.xmas-bar [data-countdown] { display: inline-block; min-width: 10.6em; text-align: left; }
@media (max-width: 599px) {
  .xmas-bar { padding-block: 8px; font-size: 0.8125rem; }
  .xmas-bar strong { letter-spacing: 0.08em; }
  .xmas-bar__long, .xmas-bar__more { display: none; } /* the whole bar is the link */
}

.sale-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 9px;
  background: var(--xmas-red, #b0141e);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pkg-dialog__head .sale-tag { margin: 16px 0 0; }
.pkg-dialog__head .sale-tag + .pkg-dialog__price { margin-top: 10px; }
/* the usual price, struck through in red, beside the sale price */
.price-was {
  margin-left: 0.35em;
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--steel);
  text-decoration-line: line-through;
  text-decoration-color: var(--xmas-red-hi, #ff7b72);
  text-decoration-thickness: 2px;
  white-space: nowrap;
}
.pick__meta .price-was { font-size: 1em; text-decoration-thickness: 1.5px; }

/* the hero's sale link sits above the free plan link, in the same style with a red tag */
.hero__sale { display: flex; width: fit-content; border-color: rgba(255, 123, 114, 0.5); }
.hero__sale .hero__free-tag { background: var(--xmas-red, #b0141e); color: #fff; }
.sale .hero__sale + .hero__free { margin-top: 10px; }

/* The countdown at the top of the prices */
.sale-count {
  display: grid;
  gap: 20px 40px;
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 72px);
  padding: clamp(20px, 3vw, 32px);
  background: var(--panel);
  border: 1px solid var(--hair);
  border-left: 4px solid var(--xmas-red, #b0141e);
}
.sale-count__title { font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.25; }
.sale-count__when { margin-top: 8px; color: var(--steel); }
.sale-count__clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sale-count__unit {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 12px 6px 10px;
  background: var(--black);
  border: 1px solid var(--hair);
  border-top: 2px solid var(--xmas-red, #b0141e);
}
.sale-count__num {
  font-weight: 700;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.sale-count__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
@media (min-width: 900px) {
  .sale-count { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
}
