/*
  Fernhill Lido: outdoor pool website (Screenery template)
  The page is the lido: board-marked concrete ground, turquoise pool tile, white-painted civic signage, red and white lane ropes.
  Every number that matters (lanes, depths, temperatures, prices) is set large in the condensed civic face.

  Contents
   1. Tokens
   2. Base and browser surfaces
   3. Grounds: concrete, tile, lane rope
   4. Components: buttons, signs, plates, fields, steppers, checkbox, notices
   5. Header
   6. Hero: pool drawing, conditions board, thermometer
   7. Booking: timetable, booker, lane picker, ticket
   8. Memberships calculator
   9. History: facade and timeline
  10. Lessons and clubs
  11. Questions
  12. Footer
  13. Motion
  14. Narrow screens
*/

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette */
  --concrete: #d7d3ca;       /* the ground: poured concrete in daylight */
  --concrete-deep: #bdb8ad;  /* board seams, shadows on concrete */
  --concrete-lift: #e8e5de;  /* the pool coping, freshly scrubbed */
  --paint: #f7f6f2;          /* white sign paint */
  --ink: #13232e;            /* civic navy-black, all text */
  --ink-soft: #33434d;       /* secondary text on concrete and paint (7:1 on paint) */
  --tile: #2bb5bd;           /* pool tile turquoise */
  --tile-light: #8fdde0;     /* pale tile, washes */
  --tile-deep: #0b5d6b;      /* deep end, text-safe with white */
  --red: #d43a2c;            /* lane rope red, warnings */
  --red-ink: #a8271c;        /* red as text on paint (5.9:1) */
  --sun: #f2c230;            /* early birds, the dawn */
  --sauna: #e88a5e;          /* sauna timber glow */

  /* Session colours */
  --c-early: #f6d571;
  --c-lane: #6fd0d4;
  --c-family: #f7f6f2;
  --c-sauna: #f0a985;

  /* Type */
  --f-sign: "Fira Sans Condensed", "Arial Narrow", sans-serif;
  --f-body: "Fira Sans", system-ui, sans-serif;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  --t-display: clamp(2.6rem, 1.4rem + 4.4vw, 5.4rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 7rem;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --max: 1360px;

  /* Shape and depth */
  --r-1: 3px;
  --r-2: 6px;
  --line: 2px solid var(--ink);
  --shadow: 0 2px 0 rgb(19 35 46 / 0.18), 0 14px 28px -14px rgb(19 35 46 / 0.4);
  --shadow-sm: 0 1px 0 rgb(19 35 46 / 0.16), 0 6px 14px -8px rgb(19 35 46 / 0.4);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Textures */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .13 0 0 0 0 .18 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  --boards: repeating-linear-gradient(180deg,
      transparent 0 calc(2.75rem - 2px), rgb(19 35 46 / 0.09) calc(2.75rem - 2px) 2.75rem),
    repeating-linear-gradient(180deg,
      rgb(255 255 255 / 0.10) 0 0.7rem, transparent 0.7rem 1.6rem, rgb(19 35 46 / 0.025) 1.6rem 2.75rem);
  --rope: repeating-linear-gradient(90deg,
      var(--red) 0 14px, var(--paint) 14px 15px, var(--paint) 15px 29px, var(--ink) 29px 30px,
      var(--paint) 30px 44px, var(--ink) 44px 45px, var(--paint) 45px 59px, var(--paint) 59px 60px);
}

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  color-scheme: light;
  scrollbar-color: var(--tile-deep) var(--concrete);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--concrete);
  background-image: var(--noise), var(--boards);
  accent-color: var(--tile-deep);
  caret-color: var(--red);
  overflow-x: clip;
}
::selection { background: var(--tile); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--tile-deep); }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: var(--s-4); top: -4rem; z-index: 50; background: var(--ink); color: var(--paint); padding: var(--s-3) var(--s-4); }
.skip:focus { top: var(--s-4); }
[hidden] { display: none !important; }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* ---------- 3. Grounds ---------- */
.rope-rule, .foot-rope {
  height: 12px;
  background: var(--rope);
  border-block: 2px solid var(--ink);
}
.rope-rule { margin-inline: var(--gutter); max-width: var(--max); }
@media (min-width: 1460px) { .rope-rule { margin-inline: auto; } }

/* ---------- 4. Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0.55rem 1.1rem;
  font-family: var(--f-sign); font-weight: 700; font-size: var(--t-md); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border: var(--line); border-radius: var(--r-1);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn--ink { background: var(--ink); color: var(--paint); box-shadow: var(--shadow-sm); }
.btn--ink:hover { background: var(--tile-deep); border-color: var(--tile-deep); }
.btn--line { background: var(--paint); color: var(--ink); }
.btn--line:hover { background: var(--tile-light); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 0.7rem 1.4rem; font-size: 1.125rem; }
.btn--sm { min-height: 40px; padding: 0.35rem 0.85rem; font-size: var(--t-sm); }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--concrete-deep); border-color: var(--concrete-deep); color: var(--ink-soft); box-shadow: none; cursor: not-allowed; }

/* Signs: painted civic headings */
.sign {
  font-family: var(--f-sign); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.98;
}
.sign--lg { font-size: var(--t-xl); }
.display {
  font-family: var(--f-sign); font-weight: 800; font-size: var(--t-display); line-height: 0.94; letter-spacing: -0.012em;
  text-transform: uppercase;
}
.display .hl { color: var(--tile-deep); }

/* Plates: small enamel signs */
.plate {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--t-sm);
  padding: 0.35rem 0.75rem; background: var(--ink); color: var(--paint); border-radius: var(--r-1);
}
.plate-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #5fe0a0; box-shadow: 0 0 0 3px rgb(95 224 160 / 0.25); }
.plate--closed .plate-dot { background: var(--red); box-shadow: 0 0 0 3px rgb(212 58 44 / 0.3); }

.sec-head { display: grid; gap: var(--s-4); max-width: 62rem; margin-bottom: var(--s-6); }
.sec-head p { max-width: 64ch; color: var(--ink-soft); font-size: var(--t-md); }

/* Fields */
.field { display: grid; gap: var(--s-1); }
.field label { font-weight: 600; font-size: var(--t-sm); }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input:not([type="range"]) {
  min-height: 46px; padding: 0.55rem 0.75rem; background: #fff; border: var(--line); border-radius: var(--r-1);
  transition: box-shadow 160ms var(--ease);
}
.field input:not([type="range"]):focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tile); }
.field input[aria-invalid="true"] { border-color: var(--red-ink); box-shadow: 0 0 0 3px rgb(212 58 44 / 0.25); }
.field-err { color: var(--red-ink); font-size: var(--t-sm); font-weight: 600; min-height: 0; }
.field-err:empty { display: none; }

.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-sm); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; background: #fff; border: var(--line); border-radius: var(--r-1); color: transparent; }
.check input:checked + .check-box { background: var(--ink); color: var(--paint); }
.check input:focus-visible + .check-box { outline: 3px solid var(--red); outline-offset: 2px; }
.check input[aria-invalid="true"] + .check-box { border-color: var(--red-ink); }

.stepper { display: inline-flex; align-items: center; border: var(--line); border-radius: var(--r-1); background: #fff; }
.st-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; }
.st-btn:hover:not(:disabled) { background: var(--tile-light); }
.st-btn:disabled { color: #8d959a; cursor: not-allowed; }
.st-val { min-width: 2rem; text-align: center; font-family: var(--f-sign); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }

.notice { display: flex; gap: var(--s-3); padding: var(--s-4); border: var(--line); border-radius: var(--r-1); }
.notice > .ic { width: 1.6rem; height: 1.6rem; margin-top: 2px; }
.notice > div { display: grid; gap: var(--s-2); justify-items: start; font-size: var(--t-sm); }
.notice-h { font-family: var(--f-sign); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
.notice--full { background: var(--c-early); }
.notice--error { background: #fbe3df; border-color: var(--red-ink); }
.notice--error > .ic { color: var(--red-ink); }

/* ---------- 5. Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) var(--gutter);
  background: color-mix(in srgb, var(--concrete) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; min-height: 44px; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-family: var(--f-sign); font-weight: 600; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
.brand-name b { font-weight: 800; }
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav a:not(.btn) { font-family: var(--f-sign); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; padding-block: 0.6rem; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--red); }
.menu-btn { display: none; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3); background: var(--paint); border: var(--line); border-radius: var(--r-1); font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- 6. Hero ---------- */
main > section { padding-inline: var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-6) var(--s-7);
  padding-block: var(--s-7) var(--s-8); align-items: center;
}
.hero-copy { display: grid; gap: var(--s-5); justify-items: start; }
.lede { font-size: 1.1875rem; max-width: 52ch; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.pool { margin: 0; display: grid; gap: var(--s-2); }
.pool-svg { width: 100%; height: auto; border: var(--line); box-shadow: var(--shadow); background: var(--concrete-lift); }
.pool-cap { font-size: var(--t-sm); color: var(--ink-soft); }
.sw1 { transform: translate(250px, 150px); }
.sw2 { transform: translate(420px, 235px); }
.sw3 { transform: translate(150px, 320px); }

.board {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); gap: 0;
  background: var(--paint); border: var(--line); box-shadow: var(--shadow);
}
.board-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); padding: var(--s-3) var(--s-5); background: var(--ink); color: var(--paint); }
.board-head .sign { font-size: 1.5rem; letter-spacing: 0.04em; }
.board-date { font-family: var(--f-sign); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.board-body { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-5); border-right: var(--line); }
.thermo { width: 64px; flex: none; }
.thermo-fill { transform-box: fill-box; transform-origin: 50% 100%; }
.water { display: grid; gap: var(--s-1); }
.water-label { font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.water-temp { font-family: var(--f-sign); font-weight: 800; font-size: clamp(3.6rem, 2.6rem + 3vw, 5.2rem); line-height: 0.9; font-variant-numeric: tabular-nums; color: var(--tile-deep); }
.water-temp .unit { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); vertical-align: top; margin-left: 0.05em; }
.water-note { font-size: var(--t-sm); color: var(--ink-soft); max-width: 30ch; }
.conds { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 1px; background: var(--concrete-deep); }
.conds > div { padding: var(--s-4) var(--s-5); background: var(--paint); display: grid; gap: var(--s-2); align-content: center; }
.conds dt { display: flex; align-items: center; gap: var(--s-2); font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--t-sm); }
.conds dt .ic { color: var(--tile-deep); }
.conds dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- 7. Booking ---------- */
.book { padding-block: var(--s-8); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(22rem, 26rem); gap: var(--s-6); align-items: start; }

.tt-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; margin-bottom: var(--s-4); font-size: var(--t-sm); font-weight: 500; }
.key { display: inline-flex; align-items: center; gap: var(--s-2); }
.key::before { content: ""; width: 1rem; height: 1rem; border: var(--line); border-radius: 2px; }
.key--early::before { background: var(--c-early); }
.key--lane::before { background: var(--c-lane); }
.key--family::before { background: var(--c-family); }
.key--sauna::before { background: var(--c-sauna); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.live-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--red); }

.tt-days, .tt { display: grid; grid-template-columns: 5.5rem repeat(7, minmax(0, 1fr)); gap: 6px; }
.tt-days { margin-bottom: 6px; }
.tt-days::before { content: ""; grid-column: 1; }
.day {
  grid-column: var(--col); grid-row: 1;
  display: grid; justify-items: center; gap: 0; min-height: 52px; padding: var(--s-1);
  background: var(--paint); border: var(--line); border-radius: var(--r-1);
  font-family: var(--f-sign); text-transform: uppercase; letter-spacing: 0.05em;
}
.day b { font-weight: 800; font-size: 1.05rem; }
.day-date { font-size: var(--t-xs); font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.day.is-today b::after { content: " today"; font-weight: 600; font-size: 0.75rem; }
.day[aria-selected="true"] { background: var(--ink); color: var(--paint); }
.day[aria-selected="true"] .day-date { color: var(--tile-light); }
.day:hover:not([aria-selected="true"]) { background: var(--tile-light); }

.tt-band {
  grid-column: 1; grid-row: var(--row);
  align-self: stretch; display: flex; align-items: center;
  font-family: var(--f-sign); font-weight: 700; font-size: var(--t-sm); text-transform: uppercase; letter-spacing: 0.06em;
  border-top: var(--line); padding-top: var(--s-1);
}
.slot {
  grid-column: var(--col); grid-row: var(--row);
  position: relative; display: grid; gap: 3px; align-content: start; text-align: left;
  min-height: 6.4rem; padding: 0.5rem 0.55rem 0.55rem;
  border: var(--line); border-radius: var(--r-1); background: var(--c-lane);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), opacity 220ms var(--ease);
}
.slot--early { background: var(--c-early); }
.slot--family { background: var(--c-family); }
.slot--sauna { background: var(--c-sauna); }
.slot:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.slot[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paint), 0 0 0 6px var(--ink); z-index: 1; }
.slot.in-day { outline: 2px dashed var(--ink); outline-offset: 2px; }
.slot.in-day:focus-visible, .slot:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.slot-time { font-size: var(--t-xs); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slot-name { font-family: var(--f-sign); font-weight: 800; font-size: 1rem; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em; }
.slot-left { font-size: var(--t-xs); font-weight: 500; font-variant-numeric: tabular-nums; }
.slot-band { display: none; }
.rope {
  display: block; height: 8px; margin-top: auto; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden;
  background: rgb(255 255 255 / 0.65);
  position: relative;
}
.rope::after {
  content: ""; position: absolute; inset: 0; width: calc(var(--fill, 0) * 100%);
  background: var(--rope); transition: width 600ms var(--ease);
}
.slot.is-full { background-image: repeating-linear-gradient(135deg, rgb(19 35 46 / 0.09) 0 6px, transparent 6px 12px); }
.slot.is-full .slot-left { font-weight: 700; text-decoration: underline 2px var(--red); text-underline-offset: 0.2em; }
.slot.is-past { opacity: 0.55; }
.slot.is-past .slot-left { font-weight: 600; }
.slot.bump .slot-left { animation: bump 900ms var(--ease); }
.tt-hl { grid-column: 2; grid-row: 2 / 8; margin: -3px; background: rgb(11 93 107 / 0.16); border: 2px dashed var(--tile-deep); border-radius: var(--r-2); pointer-events: none; transition: grid-column 0s; }
.field-err.is-info { color: var(--ink-soft); font-weight: 500; }
.prices { grid-column: 1; grid-row: 2; display: grid; gap: var(--s-3); }
.price-table { width: 100%; border-collapse: collapse; background: var(--paint); border: var(--line); box-shadow: var(--shadow-sm); font-variant-numeric: tabular-nums; }
.price-table caption { text-align: left; padding: var(--s-3) var(--s-4); background: var(--ink); color: var(--paint); font-family: var(--f-sign); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.2rem; }
.price-table th, .price-table td { padding: 0.65rem var(--s-4); border-bottom: 1px solid var(--concrete-deep); text-align: left; }
.price-table thead th { font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--t-sm); background: var(--tile-light); border-bottom: var(--line); }
.price-table tbody th { font-weight: 600; }
.price-table td { font-family: var(--f-sign); font-weight: 700; font-size: 1.15rem; }
.price-table .num { text-align: right; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.prices-note { font-size: var(--t-sm); color: var(--ink-soft); max-width: 70ch; }
.tt-foot { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--ink-soft); max-width: 70ch; }

/* The booker panel */
.booker, .ticket {
  grid-column: 2; grid-row: 1 / span 2;
  position: sticky; top: 5.5rem;
  display: grid; gap: var(--s-5);
  padding: var(--s-5); background: var(--paint); border: var(--line); box-shadow: var(--shadow);
}
.booker-head { display: grid; gap: var(--s-2); margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) 0; padding: var(--s-4) var(--s-5); background: var(--tile); border-bottom: var(--line); }
.booker-title { font-family: var(--f-sign); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.booker-sel { font-weight: 600; font-variant-numeric: tabular-nums; }
.step { margin: 0; padding: 0; border: 0; display: grid; gap: var(--s-3); min-width: 0; }
.step-h { font-family: var(--f-sign); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0; margin-bottom: var(--s-3); }
.step-note { font-size: var(--t-sm); color: var(--ink-soft); }
.step[disabled] { opacity: 0.55; }

.speeds, .seg { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--line); border-radius: var(--r-1); overflow: hidden; }
.seg { grid-template-columns: repeat(2, 1fr); }
.speed, .seg button {
  display: grid; gap: 0; justify-items: center; min-height: 52px; padding: 0.35rem; border: 0; background: #fff;
  font-family: var(--f-sign); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem;
}
.speed + .speed, .seg button + button { border-left: var(--line); }
.speed span { font-family: var(--f-body); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: var(--t-xs); color: var(--ink-soft); }
.speed[aria-checked="true"], .seg button[aria-checked="true"] { background: var(--ink); color: var(--paint); }
.speed[aria-checked="true"] span { color: var(--tile-light); }
.speed:hover:not([aria-checked="true"]), .seg button:hover:not([aria-checked="true"]) { background: var(--tile-light); }
.speed:disabled { color: #6b7479; cursor: not-allowed; background: var(--concrete-lift); }

.lanes { display: grid; border: var(--line); background: var(--tile); }
.lane {
  display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: center; gap: var(--s-3);
  min-height: 44px; padding: 0.3rem 0.6rem 0.3rem 0; border: 0; background: transparent; text-align: left;
  border-bottom: 4px solid transparent;
  border-image: var(--rope) 0 0 4 0 / 0 0 4px 0 / 0 repeat;
  position: relative;
}
.lane:last-child { border-image: none; border-bottom: 0; }
.lane-no { align-self: stretch; display: grid; place-items: center; background: var(--paint); border-right: var(--line); font-family: var(--f-sign); font-weight: 800; font-size: 1.2rem; }
.lane-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.lane-dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); background: rgb(255 255 255 / 0.85); }
.lane-dots i.on { background: var(--ink); }
.lane-dots i.you { background: var(--red); border-color: var(--ink); }
.lane-left { font-size: var(--t-xs); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lane:disabled { cursor: default; }
.lane:disabled .lane-dots, .lane:disabled .lane-left { opacity: 0.5; }
.lane:disabled .lane-no { background: var(--concrete-lift); color: #5d676c; }
.lane:hover:not(:disabled) { background: rgb(255 255 255 / 0.25); }
.lane[aria-checked="true"] { background: var(--tile-light); }
.lane[aria-checked="true"] .lane-no { background: var(--ink); color: var(--paint); }
.lane.is-lane-full:not(:disabled) .lane-left { color: var(--ink); }

.who { list-style: none; margin: 0; padding: 0; display: grid; }
.who li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--s-3); padding-block: var(--s-2); border-bottom: 1px solid var(--concrete-deep); }
.who li:first-child { border-top: 1px solid var(--concrete-deep); }
.who-name { display: grid; font-weight: 600; line-height: 1.25; }
.who-sub { font-weight: 400; font-size: var(--t-xs); color: var(--ink-soft); }
.who-price { font-family: var(--f-sign); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.who li.is-off .who-name, .who li.is-off .who-price { color: #5d676c; }
.who li.is-off .who-price { font-family: var(--f-body); font-weight: 500; font-size: var(--t-xs); max-width: 9rem; text-align: right; }

.total { display: grid; gap: var(--s-2); padding: var(--s-4); background: var(--concrete-lift); border: var(--line); border-radius: var(--r-1); }
.total-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.total-lines li { display: flex; justify-content: space-between; gap: var(--s-3); }
.total-sum { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding-top: var(--s-2); border-top: var(--line); font-weight: 600; }
.total-sum strong { font-family: var(--f-sign); font-weight: 800; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }

.step--details { gap: var(--s-4); }
.submit { position: relative; }
.spinner { display: none; width: 1.2rem; height: 1.2rem; border: 3px solid rgb(247 246 242 / 0.35); border-top-color: var(--paint); border-radius: 50%; animation: spin 800ms linear infinite; }
.submit.is-loading .spinner { display: inline-block; }
.submit.is-loading { cursor: progress; }
.booker-small { font-size: var(--t-xs); color: var(--ink-soft); }
.booker.is-full-state .step, .booker.is-full-state .total, .booker.is-full-state .submit { display: none; }

/* Ticket (success) */
.ticket { gap: var(--s-4); background: var(--paint); }
.ticket:focus { outline: none; }
.ticket:focus-visible { outline: none; }
.ticket-top { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) 0; padding: var(--s-5); background: var(--tile-deep); color: var(--paint); border-bottom: 3px dashed var(--paint); outline: 2px solid var(--ink); }
.ticket-org { font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--t-sm); color: var(--tile-light); }
.ticket-h { font-family: var(--f-sign); font-weight: 800; font-size: 2rem; text-transform: uppercase; line-height: 1; }
.ticket-rows { margin: 0; display: grid; }
.ticket-rows > div { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s-3); padding-block: var(--s-2); border-bottom: 1px solid var(--concrete-deep); }
.ticket-rows dt { font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--t-sm); }
.ticket-rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.ticket-code { display: grid; justify-items: center; gap: var(--s-1); padding: var(--s-4); border: var(--line); background: var(--c-early); }
.ticket-code span { font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--t-sm); }
.ticket-code strong { font-family: var(--f-sign); font-weight: 800; font-size: 2.6rem; letter-spacing: 0.08em; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket-note { font-size: var(--t-sm); color: var(--ink-soft); }

/* ---------- 8. Memberships ---------- */
.members { padding-block: var(--s-8); }
.calc { display: grid; grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr); gap: var(--s-6); align-items: start; background: var(--paint); border: var(--line); box-shadow: var(--shadow); padding: var(--s-5); }
.calc-in { display: grid; gap: var(--s-5); }
.calc-in label { font-family: var(--f-sign); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; letter-spacing: 0.02em; }
.calc-in output { font-variant-numeric: tabular-nums; color: var(--tile-deep); }
input[type="range"] { width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 12px; background: var(--rope); border: var(--line); border-radius: 6px; }
input[type="range"]::-moz-range-track { height: 12px; background: var(--rope); border: var(--line); border-radius: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--sun); border: var(--line); box-shadow: var(--shadow-sm); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--sun); border: var(--line); }
.range-scale { display: flex; justify-content: space-between; font-size: var(--t-xs); font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.calc-verdict { font-size: 1.125rem; font-weight: 500; padding: var(--s-4); background: var(--tile-light); border: var(--line); border-radius: var(--r-1); }
.calc-verdict b { font-weight: 700; }

.plans { display: grid; border: var(--line); background: var(--tile); }
.plan {
  display: grid; grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: var(--s-1) var(--s-4); align-items: center;
  padding: var(--s-4); border-bottom: 6px solid transparent; border-image: var(--rope) 0 0 6 0 / 0 0 6px 0 / 0 repeat;
  transition: background-color 300ms var(--ease);
}
.plan:last-child { border-image: none; border-bottom: 0; }
.plan-head { grid-row: 1 / 3; display: grid; gap: 2px; }
.plan-head h3 { font-family: var(--f-sign); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; line-height: 1.05; }
.plan-price { font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.plan-price b { font-weight: 700; }
.plan-bar { height: 22px; background: rgb(255 255 255 / 0.55); border: var(--line); border-radius: 2px; overflow: hidden; }
.plan-fill { display: block; height: 100%; width: 50%; background: var(--ink); transition: width 500ms var(--ease), background-color 300ms var(--ease); }
.plan-maths { grid-column: 2; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.plan-cost { grid-column: 3; grid-row: 1 / 3; font-family: var(--f-sign); font-weight: 800; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; min-width: 6.5ch; text-align: right; }
.plan.is-best { background: var(--paint); }
.plan.is-best .plan-fill { background: var(--tile-deep); }
.plan.is-best .plan-head h3::after { content: "Cheapest"; display: inline-block; margin-left: var(--s-2); padding: 0.1rem 0.4rem; background: var(--red-ink); color: #fff; font-size: 0.75rem; letter-spacing: 0.06em; vertical-align: 0.2em; border-radius: 2px; }
.members-small { margin-top: var(--s-4); max-width: 75ch; font-size: var(--t-sm); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- 9. History ---------- */
.history { padding-block: var(--s-8); }
.facade { margin: 0 0 var(--s-6); padding: var(--s-5) var(--s-5) 0; background: linear-gradient(180deg, #bfe6ea, #e9f6f6 70%); border: var(--line); overflow: hidden; }
.facade svg { width: 100%; height: auto; }
.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--s-5);
}
.timeline li { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-5); position: relative; }
.timeline li::before { content: ""; position: absolute; left: 0; right: calc(-1 * var(--s-5)); top: 0; height: 10px; background: var(--rope); border-block: 2px solid var(--ink); }
.timeline li:nth-child(4n)::before { right: 0; }
.timeline li::after { content: ""; position: absolute; left: 0; top: -7px; width: 20px; height: 20px; background: var(--sun); border: var(--line); border-radius: 50%; }
.tl-year { font-family: var(--f-sign); font-weight: 800; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--tile-deep); }
.timeline h3 { font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; font-size: 1.2rem; letter-spacing: 0.02em; }
.timeline p:not(.tl-year) { font-size: var(--t-sm); color: var(--ink-soft); }

/* ---------- 10. Lessons and clubs ---------- */
.lessons { padding-block: var(--s-8); }
.lessons-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6); align-items: start; }
.table-wrap { background: var(--paint); border: var(--line); box-shadow: var(--shadow); overflow-x: auto; }
.lesson-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.lesson-table caption { text-align: left; padding: var(--s-3) var(--s-4); background: var(--ink); color: var(--paint); font-family: var(--f-sign); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.2rem; }
.lesson-table th, .lesson-table td { padding: 0.7rem var(--s-4); text-align: left; border-bottom: 1px solid var(--concrete-deep); vertical-align: top; }
.lesson-table thead th { font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--tile-light); border-bottom: var(--line); }
.lesson-table tbody th { font-family: var(--f-sign); font-weight: 700; font-size: 1.05rem; }
.lesson-table .num { text-align: right; font-weight: 600; }
.lesson-table tbody tr:last-child > * { border-bottom: 0; }
.clubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: var(--line); }
.clubs li { display: grid; gap: var(--s-1); padding-block: var(--s-4); border-bottom: var(--line); }
.clubs h3 { font-family: var(--f-sign); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; letter-spacing: 0.01em; }
.clubs p { font-size: var(--t-sm); color: var(--ink-soft); max-width: 60ch; }
.clubs .club-meta { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 11. Questions ---------- */
.faq { padding-block: var(--s-8) var(--s-9); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 19rem); gap: var(--s-7); align-items: start; }
.faq-list { display: grid; border-top: var(--line); max-width: 62rem; }
.depth-sign { margin: 0; display: grid; gap: var(--s-3); }
.depth-sign svg { width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgb(19 35 46 / 0.3)); transform: rotate(1.5deg); }
.depth-sign figcaption { font-size: var(--t-sm); color: var(--ink-soft); }
.faq details { border-bottom: var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 56px; padding-block: var(--s-3); cursor: pointer; list-style: none;
  font-family: var(--f-sign); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform 260ms var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq summary:hover { color: var(--tile-deep); }
.faq details p { padding-bottom: var(--s-5); max-width: 68ch; color: var(--ink-soft); }

/* ---------- 12. Footer ---------- */
.foot { background: var(--ink); color: var(--paint); }
.foot-rope { border-color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--s-6); padding: var(--s-7) var(--gutter) var(--s-6); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.foot-name { font-family: var(--f-sign); font-weight: 600; font-size: 2rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--s-2); }
.foot-name b { font-weight: 800; color: var(--tile); }
.foot-brand p:not(.foot-name) { color: #c9d2d6; max-width: 40ch; font-size: var(--t-sm); }
.foot-h { font-family: var(--f-sign); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; color: var(--tile); margin-bottom: var(--s-3); }
.foot address { font-style: normal; font-size: var(--t-sm); line-height: 1.8; }
.foot a { text-decoration-color: var(--tile); }
.foot a:focus-visible { outline-color: var(--sun); }
.hours { border-collapse: collapse; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.hours th { text-align: left; font-weight: 500; padding: 0.2rem var(--s-3) 0.2rem 0; color: #c9d2d6; }
.hours td { padding: 0.2rem 0; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); font-size: var(--t-sm); }
.foot-links a { display: inline-block; padding-block: 0.35rem; }
.foot-small { padding: var(--s-4) var(--gutter) var(--s-6); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; font-size: var(--t-xs); color: #aebbc1; border-top: 1px solid #2c3d48; }

/* ---------- 13. Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bump { 0% { background: var(--sun); } 100% { background: transparent; } }
@keyframes rise { from { transform: scaleY(0.12); } to { transform: scaleY(1); } }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(40px); } }
@keyframes swim-r { from { transform: translate(90px, 150px); } to { transform: translate(560px, 150px); } }
@keyframes swim-l { from { transform: translate(560px, 235px) scaleX(-1); } to { transform: translate(90px, 235px) scaleX(-1); } }
@keyframes swim-r2 { from { transform: translate(90px, 320px); } to { transform: translate(560px, 320px); } }

@media (prefers-reduced-motion: no-preference) {
  /* Signature moment: the thermometer rises to today's water while the pool comes to life */
  .thermo-fill { animation: rise 1800ms var(--ease) 300ms both; }
  .caustic { animation: drift 7s ease-in-out infinite alternate; }
  .sw1 { animation: swim-r 26s linear infinite; }
  .sw2 { animation: swim-l 21s linear infinite; }
  .sw3 { animation: swim-r2 34s linear -12s infinite; }
  .ticket:not([hidden]) { animation: ticket-in 600ms var(--ease); }
  @keyframes ticket-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}

/* ---------- 14. Narrow screens ---------- */
@media (max-width: 1180px) {
  .nav { gap: var(--s-4); }
  .nav a:not(.btn) { font-size: var(--t-sm); }
  .book-grid { grid-template-columns: minmax(0, 1fr) minmax(20rem, 23rem); }
}
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-2) var(--gutter) var(--s-5); background: var(--concrete); border-bottom: var(--line); box-shadow: var(--shadow);
  }
  .nav:not(.is-open) { display: none; }
  .nav a:not(.btn) { padding-block: 0.85rem; border-bottom: 1px solid var(--concrete-deep); font-size: 1.1rem; }
  .nav-cta { margin-top: var(--s-4); }
  .no-js .nav { display: flex; position: static; }
  .hero { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .booker, .ticket { position: static; grid-column: 1; grid-row: auto; }
  .prices { grid-row: auto; order: 3; }
  .faq-grid { grid-template-columns: 1fr; }
  .depth-sign { max-width: 15rem; }
  .calc { grid-template-columns: 1fr; }
  .lessons-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li:nth-child(2n)::before { right: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  /* Timetable becomes one day at a time */
  .tt-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .tt-days::before { display: none; }
  .day { grid-column: auto; }
  .day.is-today b::after { content: ""; }
  .day.is-today .day-date::after { content: " today"; }
  .tt { display: flex; flex-direction: column; gap: var(--s-2); }
  .tt-band, .tt-hl { display: none; }
  .tt .slot.off-day { display: none; }
  .slot { grid-template-columns: 5.6rem 1fr auto; grid-template-rows: auto auto; min-height: 0; padding: var(--s-3); gap: 2px var(--s-3); align-items: center; }
  .slot-band { display: block; grid-column: 1; grid-row: 1; font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; font-size: var(--t-xs); letter-spacing: 0.06em; }
  .slot-time { grid-column: 1; grid-row: 2; }
  .slot-name { grid-column: 2; grid-row: 1; font-size: 1.15rem; }
  .rope { grid-column: 2; grid-row: 2; margin-top: 0; }
  .slot-left { grid-column: 3; grid-row: 1 / 3; text-align: right; max-width: 6rem; }
  .slot.in-day { outline: 0; }
  .board { grid-template-columns: 1fr; }
  .board-body { border-right: 0; border-bottom: var(--line); }
  .conds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conds > div:last-child { grid-column: 1 / -1; }
  .plan { grid-template-columns: minmax(0, 1fr) auto; }
  .plan-head { grid-row: auto; grid-column: 1; }
  .plan-cost { grid-column: 2; grid-row: 1; }
  .plan-bar { grid-column: 1 / -1; }
  .plan-maths { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .brand-name { font-size: 1.2rem; }
  .menu-btn span { display: none; }
  .menu-btn { width: 44px; justify-content: center; padding: 0; }
  .hero { padding-top: var(--s-5); gap: var(--s-5); }
  .hero-actions .btn { width: 100%; }
  .conds { grid-template-columns: 1fr; }
  .conds > div { padding: var(--s-3) var(--s-4); }
  .board-body { padding: var(--s-4); }
  .board-head { padding-inline: var(--s-4); }
  .day { padding-inline: 0; }
  .day b { font-size: 0.95rem; }
  .booker, .ticket, .calc { padding: var(--s-4); }
  .booker-head, .ticket-top { margin: calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) 0; padding-inline: var(--s-4); }
  .who li { grid-template-columns: 1fr auto; }
  .who-price { grid-column: 1; grid-row: 2; }
  .who li .stepper { grid-column: 2; grid-row: 1 / 3; }
  .who li.is-off .who-price { text-align: left; max-width: none; }
  .slot { grid-template-columns: 5.4rem 1fr auto; padding: var(--s-2) var(--s-3); }
  .price-table th, .price-table td { padding: 0.55rem var(--s-2); }
  .price-table thead th { font-size: 0.6875rem; letter-spacing: 0.02em; }
  .price-table td { font-size: 1rem; }
  .price-table .key::before { display: none; }
  .timeline { grid-template-columns: 1fr; gap: var(--s-5); }
  .timeline li { padding-top: 0; padding-left: var(--s-6); }
  .timeline li::before { left: 4px; right: auto; top: 0; bottom: calc(-1 * var(--s-5)); width: 10px; height: auto; background: repeating-linear-gradient(180deg, var(--red) 0 14px, var(--paint) 14px 28px); border-block: 0; border-inline: 2px solid var(--ink); }
  .timeline li:last-child::before { bottom: 0; }
  .timeline li::after { left: -1px; top: 0.6rem; }
  .tl-year { font-size: 2.2rem; }
  .faq summary { font-size: 1.1rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .lesson-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .lesson-table caption { display: block; }
  .lesson-table, .lesson-table tbody { display: block; }
  .lesson-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--concrete-deep); }
  .lesson-table tbody tr:last-child { border-bottom: 0; }
  .lesson-table th, .lesson-table td { padding: 0; border: 0; }
  .lesson-table tbody td:not(.num) { grid-column: 1 / -1; color: var(--ink-soft); }
  .lesson-table tbody td.num { grid-column: 2; grid-row: 1; font-family: var(--f-sign); font-weight: 800; font-size: 1.1rem; }
  .ticket-code strong { font-size: 2.1rem; }
}
