/* ==========================================================================
   The product site — what a dive club buys, and from whom
   --------------------------------------------------------------------------
   Deliberately the same palette as the thing it's selling, but louder. A
   marketing site that looks nothing like the product is a promise the product
   then breaks — so the colours are the product's colours, turned up.

   One rule runs through the grids: every line of cards carries the same
   number. No auto-fit anywhere, because auto-fit is what leaves one card
   stranded on the last row.
   ========================================================================== */

:root {
  --ink:        #04222a;
  --graphite:   #0b2a33;
  --surface:    #0f3742;
  --surface-2:  #14434f;
  --line:       rgba(160, 240, 255, 0.14);
  --line-2:     rgba(160, 240, 255, 0.26);

  --aqua:       #4fe0d2;
  --aqua-deep:  #189a9a;
  --seafoam:    #9df0dc;
  --sand:       #ffd89a;
  --coral:      #ff8a72;
  --amber:      #ffcf6e;
  --green:      #6fe6a8;
  --violet:     #b39cff;
  --pink:       #ff9ec7;
  --sky:        #7cc9ff;
  /* The FoxFace yellow, straight off the fish. */
  --fox:        #F5B70A;

  --text:       #e6fbff;
  --muted:      #b3d6de;
  --faint:      #85acb7;

  --maxw:       1140px;
  /* The sticky header's height, in one place. It is needed twice — to set the
     bar, and to keep anchors from landing underneath it — and two hand-typed
     copies of the same number is how they end up disagreeing. */
  --headerH:    104px;
  --font:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Anchors have to land BELOW the header.
   -------------------------------------------------------------------------
   The header is sticky and 104px tall, and there was no scroll offset at all,
   so every jump to an anchor — "Start a club" going to #start, every link in
   the menu — scrolled the target flush to the top of the window and then drew
   the header on top of it. The heading you had just asked for was the one
   thing hidden.

   scroll-padding-top on the root fixes every anchor at once, including any
   added later, which scroll-margin-top on each target would not. The extra
   24px is so the heading has air above it rather than being welded to the
   underside of the bar. */
html {
  scroll-behavior: auto; /* links snap straight to the place, never slide (your rule) */
  scroll-padding-top: calc(var(--headerH) + 24px);
}

body {
  margin: 0;
  /* No overflow-x here. Clipping <body> is what stops the sticky header
     sticking on an iPhone; nothing is too wide, so nothing needs clipping. */
  font-family: var(--font);
  background: var(--ink); color: var(--text);
  line-height: 1.62; -webkit-font-smoothing: antialiased;
}

/* Deep water, lit from above, with a colour cast that shifts down the page. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 480px at 22% -12%, rgba(146,255,236,.22), transparent 62%),
    radial-gradient(820px 400px at 78% -6%, rgba(124,201,255,.16), transparent 60%),
    radial-gradient(700px 520px at 96% 40%, rgba(179,156,255,.10), transparent 66%),
    radial-gradient(760px 520px at 4% 78%, rgba(255,138,114,.08), transparent 64%),
    linear-gradient(180deg, #0e3a45 0%, #0a2a33 52%, #04202a 100%);
}

/* Sunlight through the surface — slow, and easy to miss, which is the point.
   -------------------------------------------------------------------------
   This layer is 70vh tall and FIXED, and every gradient in it runs across
   rather than down. So it did not fade out at the bottom, it stopped: a hard
   horizontal seam right across the page, in the same place on every page,
   staying put as you scrolled — which reads as two backgrounds that failed to
   line up rather than as light.

   The mask is the fix. The shafts now fade to nothing over the lower half of
   their own height, so there is no edge to notice. */
body::after {
  content: ""; position: fixed; inset: -20% -20% auto -20%; height: 70vh; z-index: -1;
  pointer-events: none; opacity: .30;
  background:
    linear-gradient(102deg, transparent 42%, rgba(190,255,244,.16) 47%, transparent 52%),
    linear-gradient(94deg,  transparent 60%, rgba(190,255,244,.12) 65%, transparent 70%),
    linear-gradient(110deg, transparent 22%, rgba(190,255,244,.10) 26%, transparent 31%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 38%, transparent 96%);
          mask-image: linear-gradient(180deg, #000 0 38%, transparent 96%);
  animation: shafts 19s ease-in-out infinite alternate;
}
@keyframes shafts {
  from { transform: translateX(-3%) skewX(-3deg); }
  to   { transform: translateX(3%)  skewX(3deg); }
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
a { color: var(--aqua); text-decoration: none; }
a:hover { color: var(--seafoam); }

h1, h2, h3 { margin: 0 0 .55rem; line-height: 1.14; letter-spacing: -.022em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 680; }
p  { margin: 0 0 1rem; color: var(--muted); }
.lede { font-size: clamp(1.05rem, 1.9vw, 1.3rem); max-width: 62ch; }

/* The one phrase worth colouring in a headline. */
.glow {
  background: linear-gradient(100deg, var(--seafoam), var(--aqua) 40%, var(--sky) 78%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(9, 39, 48, .84);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 14px; height: var(--headerH); }

/* The house lockup as supplied, with DIVING set beneath it. The word is
   letter-spaced to sit under the full width of FOXFACE, the way the Studio,
   Lab and Trade lockups do it. */
.brand { display: inline-flex; align-items: center; color: var(--text); }
.brand .lockup { display: grid; justify-items: center; gap: 4px; }
.brand .lockup img {
  width: auto; height: 64px; display: block;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.3), filter .3s;
}
.brand:hover .lockup img {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 6px 18px rgba(245,183,10,.28));
}
.brand .lockup .sub {
  font-size: .62rem; letter-spacing: .48em; text-transform: uppercase;
  color: var(--fox); font-weight: 750; text-indent: .48em; line-height: 1;
}

/* The picker and the button are two different offers and must not read as one
   control — they were touching. */
.nav-links { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav-links > .lang-pick { margin-left: 14px; }
.nav-links > .lang-pick + .btn { margin-left: 12px; }
.nav-links > a {
  padding: 8px 13px; border-radius: 10px; color: var(--muted); font-size: .92rem;
  font-weight: 550;
}
.nav-links > a:hover { color: var(--text); background: rgba(190,250,255,.08); }
.nav-links > a.here { color: var(--text); }
@media (max-width: 860px) { .nav-links a.hide-sm, .lang-pick.hide-sm { display: none; } }

/* ---------- buttons ----------
   .btn wins over .nav-links a — the header's Start-a-club button was
   inheriting the muted nav colour and coming out grey on aqua. */
.btn, .nav-links > a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 680; font-size: .97rem; cursor: pointer;
  transition: transform .16s, box-shadow .22s, background .22s, border-color .22s;
}
.btn:active { transform: translateY(1px); }

.btn-primary, .nav-links > a.btn-primary {
  background: linear-gradient(135deg, #7bf5e4, var(--aqua) 46%, #12a3a3);
  color: #04262b; box-shadow: 0 10px 28px rgba(79,224,210,.26);
}
.btn-primary:hover, .nav-links > a.btn-primary:hover {
  background: linear-gradient(135deg, #9dfced, #58e8da 46%, #17b5b0);
  box-shadow: 0 16px 40px rgba(79,224,210,.4); color: #04262b;
  transform: translateY(-2px);
}
.btn-ghost, .nav-links > a.btn-ghost {
  background: rgba(190,250,255,.06); border-color: var(--line-2); color: var(--text);
}
.btn-ghost:hover, .nav-links > a.btn-ghost:hover {
  background: rgba(190,250,255,.12); border-color: var(--aqua); color: var(--text);
}
.btn-sm, .nav-links > a.btn-sm { padding: 9px 17px; font-size: .89rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* A price is one phrase. Left as separate spans they became separate flex
   children of the button, and the 8px gap opened up in front of the comma:
   "£20 a month , no setup fee". */
.btn .quote { display: inline; }

/* ---------- language picker ---------- */
.lang-pick { position: relative; }
.lang-pick > button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
  background: rgba(190,250,255,.06); border: 1px solid var(--line-2);
  color: var(--muted); font: inherit; font-size: .87rem; font-weight: 600;
}
.lang-pick > button:hover { color: var(--text); border-color: var(--aqua); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  min-width: 190px; padding: 6px; display: none;
  background: #0d323d; border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 22px 50px rgba(2,16,22,.6);
}
.lang-pick.open .lang-menu { display: grid; }
.lang-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 8px 11px; border-radius: 8px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); font: inherit; font-size: .9rem;
}
.lang-menu button:hover { background: rgba(190,250,255,.09); color: var(--text); }
.lang-menu button[aria-current="true"] { color: var(--aqua); font-weight: 650; }
.lang-menu .flag { font-size: 1.05rem; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 9vw, 104px) 0; position: relative; }
.section-head { max-width: 64ch; margin-bottom: 42px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--seafoam); font-weight: 700; margin-bottom: 14px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--aqua);
  box-shadow: 0 0 0 0 rgba(79,224,210,.55); animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(79,224,210,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(79,224,210,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,224,210,0); }
}

/* A band that isn't the same colour as everything above it. */
.band {
  background:
    radial-gradient(700px 340px at 18% 0%, rgba(124,201,255,.10), transparent 62%),
    radial-gradient(600px 320px at 88% 100%, rgba(179,156,255,.10), transparent 60%),
    rgba(4,34,42,.46);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

.hero { padding-top: clamp(56px, 10vw, 116px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero .lede { margin-top: 18px; }

/* ---------- grids ----------
   Named by what divides them. A line of cards always carries the same number
   as every other line, at every width — so the counts and the columns are
   written down rather than left to auto-fit. */
.grid { display: grid; gap: 20px; }

.grid-9 { grid-template-columns: 1fr; }                       /* 9 cards: 1 */
@media (min-width: 940px) { .grid-9 { grid-template-columns: repeat(3, 1fr); } }

.grid-6 { grid-template-columns: 1fr; }                       /* 6 cards: 1 / 2 / 3 */
@media (min-width: 640px) { .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 { grid-template-columns: 1fr; }                       /* 4 cards: 1 / 2 / 4 */
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.grid-2 { grid-template-columns: 1fr; }                       /* 2 or 4 cards: 1 / 2 */
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards ----------
   Each carries an accent colour, set per card with --accent. The tile, the
   top edge and the hover glow all come from that one variable. */
.card {
  --accent: var(--aqua);
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--surface), var(--graphite) 78%);
  border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
  transition: transform .28s cubic-bezier(.2,.8,.3,1), border-color .28s, box-shadow .28s;
}
/* The top edge lights up in the card's own colour. */
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .45; transition: opacity .28s;
}
/* A wash of that colour, swept in from the corner on hover. */
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px 200px at 84% -10%,
              color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 22px 46px rgba(2,18,24,.5),
              0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}
.card:hover::before { opacity: 1; }
.card:hover::after  { opacity: 1; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card > * { position: relative; z-index: 1; }

/* The icon sits in a tile of its own colour and lifts when the card does. */
.card .ico {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 13px; font-size: 1.35rem; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.4), background .3s;
}
.card:hover .ico {
  transform: translateY(-3px) rotate(-7deg) scale(1.1);
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}
.card h3 .accent { color: var(--accent); }

/* Nothing fades in on the way down the page. A card that isn't there until
   you reach it reads as the page still loading; the only motion left is what
   answers something the reader did — a hover, a click. */
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .card:hover, .shot:hover { transform: none; }
  .eyebrow .dot { animation: none; }
}

/* ---------- ticks ---------- */
.tick { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tick li { display: flex; gap: 11px; color: var(--muted); }
.tick li::before { content: "✓"; color: var(--green); font-weight: 700; flex: none; }
.tick b { color: var(--text); font-weight: 620; }

/* ---------- the miniatures ----------
   Honest reproductions of real screens, built from the same markup the product
   uses. Not screenshots: they can't go stale, they resize, and they translate
   along with everything else. Bigger than they were — a screen you can't read
   is not a screenshot, it's a texture. */
.shot {
  border: 1px solid var(--line-2); border-radius: 15px; overflow: hidden;
  background: var(--graphite); box-shadow: 0 22px 50px rgba(2,20,26,.5);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s, border-color .3s;
}
.shot:hover {
  transform: translateY(-5px) scale(1.008);
  border-color: rgba(79,224,210,.42);
  box-shadow: 0 30px 66px rgba(2,20,26,.62), 0 0 0 1px rgba(79,224,210,.14);
}
.shot-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), #113a45);
  font-size: .82rem; color: var(--muted); font-weight: 600;
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.shot-bar i:nth-child(1) { background: rgba(255,138,114,.75); }
.shot-bar i:nth-child(2) { background: rgba(255,207,110,.75); }
.shot-bar i:nth-child(3) { background: rgba(111,230,168,.75); }
.shot-bar .tail { margin-left: auto; color: var(--faint); font-size: .72rem; font-weight: 500; }
.shot-body { padding: 16px; display: grid; gap: 10px; font-size: .95rem; }

.row {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); transition: border-color .2s, background .2s;
}
.row:hover { border-color: var(--line-2); background: #123c48; }
.row b { font-weight: 640; }
.row .sub { color: var(--faint); font-size: .84rem; }
.row .lead { min-width: 0; }

.pill {
  /* inline-flex rather than a bare span: as a flex item a span is blockified,
     and a block puts its text at the top of whatever height it ends up with.
     Centring here means no future height rule can strand the label again. */
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 650;
  border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; flex: none;
}
.pill.on    { color: var(--green); border-color: rgba(111,230,168,.5); background: rgba(111,230,168,.13); }
.pill.warn  { color: var(--amber); border-color: rgba(255,207,110,.5); background: rgba(255,207,110,.13); }
.pill.bad   { color: var(--coral); border-color: rgba(255,138,114,.5); background: rgba(255,138,114,.13); }
.pill.info  { color: var(--sky);   border-color: rgba(124,201,255,.5); background: rgba(124,201,255,.13); }
.pill.post  { color: var(--violet); border-color: rgba(179,156,255,.5); background: rgba(179,156,255,.13); }
.mini-btn {
  padding: 6px 14px; border-radius: 9px; border: 0; font: inherit; font-size: .82rem;
  font-weight: 660; cursor: pointer; flex: none;
  background: linear-gradient(135deg, #7bf5e4, var(--aqua) 50%, #14a5a2); color: #04262b;
  transition: filter .2s, transform .2s;
}
.mini-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* A screenshot on one side, what it means on the other, sides alternating. */
.feature { display: grid; gap: 30px; align-items: center; margin-bottom: 34px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 46px; }
  .feature.flip > .shot { order: 2; }
  .feature.flip > .say  { order: 1; }
}
.feature:last-child { margin-bottom: 0; }
.say h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 12px; }
.say p:last-child { margin-bottom: 0; }
.say .eyebrow { margin-bottom: 10px; }


/* ---------- price ---------- */
.price {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 20px; padding: 34px;
  background: linear-gradient(150deg, var(--surface), var(--graphite));
  max-width: 520px;
}
.price .amount {
  font-size: 3.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(100deg, var(--seafoam), var(--aqua) 55%, var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price .per { color: var(--faint); font-weight: 600; font-size: 1rem; }
.price .tick { margin-top: 22px; }

/* ---------- about ---------- */
.about { display: grid; gap: 28px; grid-template-columns: minmax(0,1fr); }
@media (min-width: 820px) { .about { grid-template-columns: 260px minmax(0,1fr); align-items: start; } }
.portrait {
  aspect-ratio: 1; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--surface-2), var(--graphite));
  display: grid; place-items: center; text-align: center; padding: 20px;
  color: var(--faint); font-size: .82rem;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: rgba(5,30,38,.66);
  padding: 44px 0 48px; margin-top: 40px;
}
/* The footer's first column: the FoxFace Diving lockup, then who this is.
   The whole lockup, exactly as in the header — the mark with DIVING set
   beneath it — rather than the fish alone with the name typeset next to it.
   Two treatments of one logo on a page is two logos, and the reader has to
   work out whether they mean the same thing. */
.foot-brand { display: block; }
.foot-lockup { display: inline-block; margin-bottom: 14px; color: var(--text); }
.foot-lockup .lockup { display: grid; justify-items: center; gap: 4px; }
.foot-lockup .lockup img {
  width: auto; height: 64px; display: block;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.3);
}
.foot-lockup:hover .lockup img { transform: translateY(-2px) scale(1.03); }
/* Same treatment as the header's, at the same proportions: the word is
   letter-spaced to the width of FOXFACE above it. Copied deliberately rather
   than shared — the header's rule is scoped to .brand, and hanging a second
   selector on it would mean neither could be changed without the other. */
.foot-lockup .lockup .sub {
  font-size: .62rem; letter-spacing: .48em; text-transform: uppercase;
  color: var(--fox); font-weight: 750; text-indent: .48em; line-height: 1;
}
@media (max-width: 560px) {
  .foot-lockup .lockup img { height: 56px; }
}

.foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
.foot-grid h4 { margin: 0 0 10px; font-size: .78rem; letter-spacing: .1em;
                text-transform: uppercase; color: var(--seafoam); }
.foot-links { display: grid; gap: 7px; font-size: .9rem; }
/* An address and the line explaining it are one thing. Tight under the
   address, generous before the next one, so which belongs to which is obvious
   without reading either. */
.foot-links .note { margin-top: -3px; margin-bottom: 9px; line-height: 1.4; }
.foot-links .note:last-child { margin-bottom: 0; }
.foot-bottom {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  justify-content: space-between; color: var(--faint); font-size: .84rem;
}
/* The credit is a link in the sentence now, not a second logo. */
.foot-bottom a { color: var(--muted); text-decoration: underline;
                 text-underline-offset: 2px; text-decoration-thickness: 1px; }
.foot-bottom a:hover { color: var(--aqua); }

/* ---------- the reef, same as the product but brighter ----------
   On the product it sits behind a club's records and must not compete. Here
   it is the thing being sold, so the fish are allowed their colours. */
.reef { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.reef .bub {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.92),
              rgba(200,245,255,.3) 45%, rgba(160,230,255,.07) 72%);
  border: 1px solid rgba(220,250,255,.42);
  animation: reef-rise linear infinite; will-change: transform;
}
@keyframes reef-rise {
  0%   { transform: translate3d(0,0,0) scale(.8); opacity: 0; }
  7%   { opacity: .85; }
  75%  { opacity: .6; }
  100% { transform: translate3d(20px,-105vh,0) scale(1.15); opacity: 0; }
}
.reef .fish {
  position: absolute; animation: reef-swim-r linear infinite; will-change: transform;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.28));
}
.reef .fish.left { animation-name: reef-swim-l; }
@keyframes reef-swim-r {
  0%   { transform: translate3d(-18vw,0,0) rotate(-2deg); }
  25%  { transform: translate3d(14vw,-18px,0) rotate(2deg); }
  50%  { transform: translate3d(45vw,12px,0) rotate(-2deg); }
  75%  { transform: translate3d(76vw,-12px,0) rotate(2deg); }
  100% { transform: translate3d(120vw,0,0) rotate(-2deg); }
}
@keyframes reef-swim-l {
  0%   { transform: translate3d(120vw,0,0) scaleX(-1) rotate(2deg); }
  25%  { transform: translate3d(76vw,-14px,0) scaleX(-1) rotate(-2deg); }
  50%  { transform: translate3d(45vw,10px,0) scaleX(-1) rotate(2deg); }
  75%  { transform: translate3d(14vw,-10px,0) scaleX(-1) rotate(-2deg); }
  100% { transform: translate3d(-18vw,0,0) scaleX(-1) rotate(2deg); }
}
/* The tail keeps time with the swimming, so the fish looks like it's driving. */
.reef .fish .tail { transform-origin: 22px 16px; animation: flick 1.1s ease-in-out infinite; }
@keyframes flick {
  0%, 100% { transform: rotate(-13deg); }
  50%      { transform: rotate(13deg); }
}
@media (prefers-reduced-motion: reduce) { .reef { display: none; } }

/* A code is read out loud and typed in, so it gets a typeface where a 1 and
   an l are different shapes. */
.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .06em;
}
/* Until the demo club is actually deployed, the button that opens it says so
   rather than sending somebody to a dead address. */
.btn.not-yet {
  opacity: .55; cursor: not-allowed; pointer-events: none;
  background: rgba(190,250,255,.06); border-color: var(--line-2); color: var(--muted);
  box-shadow: none;
}

.note { font-size: .86rem; color: var(--faint); }
.note b { color: var(--muted); }

/* ==========================================================================
   Other ways of showing things
   --------------------------------------------------------------------------
   A page made entirely of cards reads as a page with nothing to say — every
   idea gets the same box, so none of them look more important than any other.
   These are the other shapes: a numbered run of steps, a plain question and
   answer, a two-column ledger of what's in and what isn't, a line worth
   stopping on, and a row of figures.
   ========================================================================== */

/* ---------- numbered steps ----------
   For something that genuinely happens in order. The rule connecting them is
   the point: it says these are consecutive, which a row of cards cannot. */
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li {
  position: relative; counter-increment: step;
  padding: 0 0 30px 62px; border-left: 2px solid var(--line);
  margin-left: 21px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: -22px; top: -4px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums;
  background: linear-gradient(150deg, var(--surface-2), var(--graphite));
  border: 2px solid color-mix(in srgb, var(--aqua) 45%, var(--line));
  color: var(--aqua);
}
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; max-width: 62ch; }
.steps .when {
  display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 650;
  letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
}
@media (min-width: 900px) {
  .steps.across { grid-template-columns: repeat(2, 1fr); column-gap: 44px; }
}

/* ---------- questions and answers ----------
   A question is a heading and an answer is prose. Boxing each pair adds a
   border and takes away the reading rhythm. */
.qa { display: grid; gap: 0; }
.qa > div {
  padding: 22px 0; border-top: 1px solid var(--line);
  display: grid; gap: 6px;
}
.qa > div:last-child { border-bottom: 1px solid var(--line); }
/* Every one of these is a decision with a reason under it, and a column of
   identical white headings read as a list of features rather than a set of
   arguments. Seafoam picks them out without competing with the gradient in
   the headline above them. */
.qa h3 { margin: 0; color: var(--seafoam); }
.qa p { margin: 0; max-width: 74ch; }
@media (min-width: 860px) {
  .qa > div { grid-template-columns: minmax(0, 26ch) minmax(0, 1fr); gap: 12px 40px; }
  .qa h3 { grid-column: 1; }
  .qa p  { grid-column: 2; }
}

/* ---------- the other way to pay ----------
   Offered, not pushed. It sits under the monthly figure rather than beside it,
   because a club choosing between two prices of equal weight has been given a
   decision it did not ask for. */
.price-alt {
  margin: 16px 0 0; padding: 13px 16px;
  border: 1px dashed var(--line); border-radius: 12px;
  display: grid; gap: 3px; text-align: left;
}
.price-alt b    { color: var(--seafoam); font-weight: 650; }
.price-alt span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.price-alt span b { color: var(--text); }

/* ---------- the rest of the family ----------
   Named, linked and said out loud, because "one of a family" without the
   family in it asks the reader to take our word for something they could
   simply be shown. */
.family { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 2px; }
.family a {
  display: grid; gap: 2px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.family a:hover, .family a:focus-visible {
  border-color: var(--aqua); background: rgba(79, 224, 210, .07); transform: translateX(3px);
}
.family b    { color: var(--seafoam); font-weight: 650; }
.family span { color: var(--muted); font-size: .93rem; }
@media (prefers-reduced-motion: reduce) {
  .family a { transition: none; }
  .family a:hover, .family a:focus-visible { transform: none; }
}

/* ---------- what's in, what isn't ----------
   Two columns that mean opposite things, so they get opposite marks and
   opposite colours rather than being told apart by their heading alone. */
.ledger { display: grid; gap: 26px; }
@media (min-width: 820px) { .ledger { grid-template-columns: 1fr 1fr; gap: 44px; } }
.ledger h3 {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px;
}
.ledger ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ledger li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ledger li b { color: var(--text); font-weight: 640; display: block; }
.ledger li span { color: var(--muted); font-size: .93rem; }
.ledger .in  h3 { color: var(--green); }
.ledger .out h3 { color: var(--faint); }
.ledger .in  li::before { content: "✓"; color: var(--green); font-weight: 800; }
.ledger .out li::before { content: "—"; color: var(--faint); font-weight: 800; }

/* ---------- a line worth stopping on ---------- */
.pull {
  margin: 0; padding: 30px 0 30px 30px;
  border-left: 4px solid var(--aqua);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 1.4;
  font-weight: 620; letter-spacing: -.015em; color: var(--text);
  max-width: 46ch; text-wrap: balance;
}
.pull footer { margin-top: 14px; font-size: .88rem; font-weight: 550; color: var(--faint); }

/* ---------- figures ---------- */
.stats { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line);
         border-radius: 16px; overflow: hidden; }
@media (min-width: 700px)  { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: var(--graphite); padding: 24px; display: grid; gap: 4px; }
.stats b {
  font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--aqua);
}
.stats span { font-size: .9rem; color: var(--muted); }
.stats .foot { font-size: .8rem; color: var(--faint); }

/* ---------- prose beside something ---------- */
.split { display: grid; gap: 30px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 52px; } }
.split .prose p:last-child { margin-bottom: 0; }

/* ---------- the languages table ---------- */
.langs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.langs th, .langs td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.langs th {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); font-weight: 700;
}
.langs tbody tr:hover { background: rgba(190,250,255,.04); }
/*  Flag and language on one line, always.
    ---------------------------------------------------------------------
    The flag was an inline span with a right margin, so the cell wrapped
    wherever the column got tight — which, with this set of languages, was
    always and only "Nederlands", the longest of them. Every other row
    looked deliberate and that one looked broken, which is worse than all
    of them wrapping: it reads as a mistake about the Dutch rather than a
    narrow column.

    A two-part flex row instead. The flag can't be separated from the name
    because they are now siblings on one line rather than text that happens
    to start with an emoji, and nowrap keeps the name itself whole. Names
    of languages are short; there is nothing here that needs to break. */
.langs .lang-name {
  color: var(--text); font-weight: 620;
  display: flex; align-items: baseline; gap: 9px;
  white-space: nowrap;
}
.langs .flag { font-size: 1.1rem; }
.table-wrap { overflow-x: auto; }

/* ---------- the drawn portrait ---------- */
.portrait-drawn {
  /* 4:5, not square: it holds a person now rather than a drawing, and a
     square crop either cut his head or left him swimming in ground. */
  aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: linear-gradient(165deg, #0f4250, var(--graphite) 70%);
  display: block;
}
.portrait-drawn svg,
.portrait-drawn img {
  width: 100%; height: 100%; display: block;
  /* cover, so the frame can be any shape at any width and he stays centred
     rather than squashed. */
  object-fit: cover; object-position: 50% 22%;
}
.portrait-note { margin-top: 10px; font-size: .78rem; color: var(--faint); }

/* ---------- a card that is a note, not a feature ---------- */
.aside {
  border: 1px dashed var(--line-2); border-radius: 14px; padding: 20px 22px;
  background: rgba(190,250,255,.03);
}
.aside h3 { margin-bottom: 6px; }
.aside p:last-child { margin-bottom: 0; }
.aside.soon { border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.aside.soon h3 { color: var(--amber); }

/* ---------- the price, given the whole width ----------
   It was a narrow card with the figure, the terms and the list all stacked in
   one column, which read as a jumble. The figure and the terms belong
   together on one side; what is and isn't in the price is a ledger on the
   other, and there is room for both. */
.price-panel {
  display: grid; gap: 34px;
  border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(620px 320px at 8% 0%, rgba(79,224,210,.10), transparent 62%),
    linear-gradient(150deg, var(--surface), var(--graphite) 72%);
}
@media (min-width: 940px) {
  .price-panel { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 48px; align-items: start; }
  .price-panel .ledger { grid-template-columns: 1fr 1fr; gap: 36px; }
}
.price-figure .amount {
  font-size: clamp(3.2rem, 7vw, 4.4rem); font-weight: 800;
  letter-spacing: -.035em; line-height: 1;
  background: linear-gradient(100deg, var(--seafoam), var(--aqua) 55%, var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-figure .per {
  color: var(--muted); font-weight: 620; font-size: 1.05rem; margin-top: 4px;
}
.price-figure .terms { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.price-figure .note { margin: 0; max-width: 40ch; }
.price-figure .btn-row { margin-top: 22px; }

/* ---------- the line under the hero ----------
   Every hero ends in a rule. The subtlety is WHICH element draws it.

   First attempt had the hero draw its own and the following band drop its top
   border. That gives one line on paper, but where a shaded band follows, the
   line and the edge of the shading are then drawn by two different boxes — so
   the hero's bottom padding sits above the line while the band's colour starts
   at it, and you see the split and the rule in two different places.

   So: whichever element owns the colour change owns the line. A band draws its
   own top border, and the hero only draws one when what follows it is NOT a
   band and therefore has no edge of its own. */
.hero:has(+ :not(.band)) { border-bottom: 1px solid var(--line); }

/* :has() is everywhere by now, but if it ever isn't, the fallback is a hero
   with no rule rather than a doubled one — the quieter of the two failures. */
@supports not selector(:has(*)) {
  .hero { border-bottom: 1px solid var(--line); }
  .hero + .band { border-top: 0; }
}

/* ---------- the logbook card ----------
   A diver's own details, set out the way a logbook front page is: label on
   the left, fact on the right, ruled between. It is a different shape from
   everything else on the page on purpose — this is a record, not a claim. */
.logbook {
  border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background: linear-gradient(165deg, var(--surface), var(--graphite) 76%);
}
.logbook > header {
  padding: 16px 24px; border-bottom: 1px solid var(--line-2);
  background: rgba(190,250,255,.04);
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.logbook > header h3 { margin: 0; font-size: 1rem; }
.logbook > header .who { font-size: .82rem; color: var(--faint); margin-left: auto; }
.logbook dl { margin: 0; padding: 6px 24px 20px; display: grid; }
.logbook dt {
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; padding-top: 16px;
}
.logbook dd {
  margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  color: var(--text); font-weight: 560;
}
.logbook dd:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.logbook dd .sub { display: block; color: var(--faint); font-size: .86rem; font-weight: 450; }
.logbook .count { font-variant-numeric: tabular-nums; font-weight: 750; color: var(--aqua); }
.logbook .kit { display: grid; gap: 5px; }
.logbook .kit span { color: var(--muted); font-weight: 450; font-size: .93rem; }
.logbook .kit span b { color: var(--text); font-weight: 620; }
@media (min-width: 720px) {
  .logbook dl { grid-template-columns: minmax(0, 15ch) minmax(0, 1fr); column-gap: 30px; }
  .logbook dt { padding-top: 18px; }
  .logbook dd { padding-top: 18px; }
  .logbook dt + dd { border-bottom: 1px solid var(--line); }
}
.logbook .fun { color: var(--fox); font-weight: 680; }

/* ==========================================================================
   The consent banner
   --------------------------------------------------------------------------
   Refusing must be exactly as easy as agreeing, so the two buttons are the
   same size, in the same place, with no dark pattern between them. It sits at
   the foot of the window rather than over the middle of the page: it has to
   be noticed, not to hold the page hostage.
   ========================================================================== */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(7, 36, 45, .97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -20px 60px rgba(2, 16, 22, .55);
}
.consent-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px;
  display: grid; gap: 22px;
  /* It is pinned to the BOTTOM of the screen and grows upwards, so anything
     taller than the screen grows off the TOP — where there is no scrollbar,
     because the banner is fixed. On a 320×568 phone, which is an iPhone SE
     and still a phone people have, the heading and the first paragraph were
     above the top edge and could not be reached by any means. Since one of
     those paragraphs is the one saying what the cookies are for, the banner
     was asking for consent while hiding the thing being consented to.

     So it is never taller than the screen, and scrolls inside itself when
     the content needs more room than that. The buttons stay at the bottom
     where the thumb is either way. */
  max-height: 88vh;
  max-height: 88dvh;      /* the real height once a phone's toolbars are in */
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (min-width: 900px) {
  .consent-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 44px;
                   align-items: center; }
}
.consent h2 { font-size: 1.05rem; margin: 0 0 8px; }
.consent p { margin: 0 0 8px; font-size: .9rem; max-width: 68ch; }
.consent p:last-child { margin-bottom: 0; }
.consent-tags { color: var(--faint); font-size: .84rem; }
.consent-tags b { color: var(--muted); font-weight: 620; }
.consent-more { font-size: .86rem; }

.consent-opt {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  font-size: .92rem; color: var(--muted); cursor: pointer;
}
.consent-opt input { width: 17px; height: 17px; accent-color: var(--aqua); cursor: pointer; }
.consent-opt:hover span { color: var(--text); }

/* Equal weight, deliberately — and now equal effort too. Accept and reject are
   both one click, both this button, both this size. The regulator's test is
   whether refusing is as easy as agreeing, and a grid of two identical cells
   is the shortest way to be able to answer yes. */
.consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.consent-btns .btn { padding: 12px 16px; font-size: .93rem; width: 100%; }
.consent .note { margin-top: 10px; }

/* The per-tag choice, folded away until it is asked for. Nobody should have to
   assemble a yes out of checkboxes, but somebody who wants measurement without
   advertising must still be able to say so. */
.consent-choices .consent-btns { grid-template-columns: 1fr; }

/* "Choose what to allow" is quieter than the two above on purpose: those two
   must match each other, and making this a third equal button would suggest a
   three-way decision when it is really a door to the same two answers. */
.consent-pick {
  display: block; margin: 12px auto 0; padding: 6px 2px;
  background: none; border: 0; color: var(--aqua);
  font: inherit; font-size: .86rem;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.consent-pick:hover { color: var(--text); }

/* ---------- legal pages ---------- */
.legal { max-width: 74ch; }
.legal h2 { margin-top: 2.4rem; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: 1.6rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.1rem; display: grid; gap: 8px; margin: 0 0 1rem; }
.legal .updated {
  font-size: .84rem; color: var(--faint);
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px;
}
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 0 1.4rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line);
                       vertical-align: top; }
.legal th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
            color: var(--faint); font-weight: 700; }
.legal td b { color: var(--text); font-weight: 620; }
.legal .flag-note {
  border-left: 3px solid var(--amber); padding: 14px 18px; margin: 0 0 1.6rem;
  background: rgba(255, 207, 110, .07); border-radius: 0 10px 10px 0;
}
.legal .flag-note p { color: var(--text); margin: 0; font-size: .92rem; }

/* The footer's small print, under everything else. */
.foot-legal {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: .82rem; color: var(--faint);
  padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line);
}
.foot-legal .linkish {
  background: none; border: 0; padding: 0; font: inherit; color: var(--aqua);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.foot-legal .linkish:hover { color: var(--seafoam); }

/* ---------- the enquiry form ---------- */
.enquiry {
  border: 1px solid var(--line-2); border-radius: 20px; padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(150deg, var(--surface), var(--graphite) 74%);
  display: grid; gap: 16px;
}
.enquiry .pair { display: grid; gap: 16px; }
@media (min-width: 620px) { .enquiry .pair { grid-template-columns: 1fr 1fr; } }
.enquiry label {
  display: grid; gap: 6px;
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); font-weight: 700;
}
.enquiry input, .enquiry textarea, .enquiry select {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  background: rgba(4, 26, 33, .6); border: 1px solid var(--line-2);
  color: var(--text); font: inherit; font-size: .96rem; font-weight: 450;
  letter-spacing: normal; text-transform: none;
}
.enquiry input:focus, .enquiry textarea:focus, .enquiry select:focus {
  outline: 2px solid var(--aqua); outline-offset: 1px; border-color: var(--aqua);
}
.enquiry textarea { min-height: 130px; resize: vertical; }
.enquiry input:disabled, .enquiry textarea:disabled, .enquiry select:disabled {
  opacity: .5; cursor: not-allowed;
}
.enquiry .row-end { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.enquiry .said { font-size: .9rem; color: var(--seafoam); margin: 0; }


/* ==========================================================================
   PHONES AND TABLETS
   --------------------------------------------------------------------------
   The site was drawn at desktop width and it showed. Measured on a 375px
   screen before this block existed: the page scrolled sideways by 66px, the
   header ate 105px before a word of content, and the fish swam behind the
   body copy rather than out in the margins, because on a narrow screen there
   are no margins — the text is the full width.

   Everything here is a fix for something seen, not a precaution.
   ========================================================================== */

/* ---------- 1. nothing scrolls sideways ----------
   The header's row of links was wider than the phone, and everything else
   followed it: the reef measured 441px on a 375px screen and the bubbles
   were positioned out in the overflow. `clip` rather than `hidden` because
   `hidden` on the root silently kills position: sticky further down. */
/* The reef is the only thing that was ever too wide, and it is clipped where
   it lives rather than the whole page being clipped around it. A clip on the
   root or on <body> is what stops a sticky header sticking in Safari. */
.reef { max-width: 100vw; overflow: hidden; }

/* ---------- 2. the header, on a phone and a tablet ----------
   Four pages, a language picker and a button do not fit across a phone. They
   fold behind one control instead.

   1024px, not 860. 860 was the width at which the row stops FITTING, which is
   not the same as the width at which it stops being comfortable — at 900 it
   fitted, in the sense that nothing overlapped, with the links jammed against
   the button and every tap target within a few pixels of its neighbour. An
   iPad in landscape is 1024 and a fingertip is about 9mm; at that size the
   menu is the better control even though the row would technically go in. */
.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .site-header .wrap { position: relative; }

  /* 250px of logo is a desktop's worth. */
  .brand .lockup img { height: 64px; }
  .brand .lockup .sub { font-size: .54rem; letter-spacing: .40em; text-indent: .40em; }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto;
    width: 46px; height: 46px;            /* a finger is about 44px across */
    background: transparent; border: 1px solid var(--line-2); border-radius: 12px;
    cursor: pointer; color: var(--text); padding: 0;
  }
  .nav-toggle:hover { background: rgba(190,250,255,.08); }
  .nav-toggle .bars { display: block; width: 19px; }
  .nav-toggle .bars i {
    display: block; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .22s ease, opacity .16s ease;
  }
  .nav-toggle .bars i + i { margin-top: 5px; }

  /* Three bars become a cross, so the control says what it will do next. */
  .nav-open .nav-toggle .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle .bars i:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* The panel. Hidden by height rather than display:none so it can animate,
     and made unreachable to the keyboard while closed — a menu you can tab
     into but cannot see is worse than one that isn't there. */
  .nav-links {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 0 14px;
    background: var(--bg-2, #0b2a33);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0,0,0,.34);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .26s ease, visibility 0s linear .26s, padding .26s ease;
    z-index: 60;
  }
  .nav-open .nav-links {
    max-height: 70vh; overflow-y: auto; visibility: visible;
    padding: 10px 14px 16px;
    transition: max-height .28s ease, visibility 0s, padding .28s ease;
  }

  .nav-links > a {
    min-height: 50px; display: flex; align-items: center;
    padding: 0 12px; font-size: 1rem; border-radius: 10px;
  }
  .nav-links > a.here { background: rgba(190,250,255,.07); }
  .nav-links > a.btn { margin-top: 10px; width: 100%; min-height: 50px; }
  .nav-links > .lang-pick { margin: 8px 0 0; }
  .nav-links > .lang-pick + .btn { margin-left: 0; }

  /* "What it does" was hidden on small screens because the row was full.
     Behind a menu there is room for every page, so it comes back. */
  .nav-links a.hide-sm, .lang-pick.hide-sm { display: flex; }

  /* While the panel is over the page, the page underneath stays put.
     Fixed rather than `overflow: hidden` — clipping <body> is what stops the
     sticky header sticking on an iPhone, which this stylesheet says twice
     elsewhere and then did anyway every time the menu opened. `top` is set
     in JavaScript to the scroll offset, and restored when it closes. */
  body.nav-locked {
    position: fixed;
    left: 0; right: 0; width: 100%;
  }
}

/* ---------- 3. let the words be read ----------
   The reef is the best thing on the page at desktop width and the worst on a
   phone, where it swims through the middle of every sentence. It stays —
   dimmed enough that the text wins, alive enough to still be a reef. */
@media (max-width: 720px) {
  .reef { opacity: .38; }
  /* 46 bubbles is a lot of compositing for a phone, and most of them land on
     top of a paragraph. Keep roughly every third one. */
  .reef .bub:nth-child(3n+1) { display: none; }
  .reef .bub:nth-child(3n+2) { display: none; }
  /* Behind a heading a fish is decoration; behind a paragraph it's noise. */
  .lede, .hero p, .card p, section p { position: relative; z-index: 1; }
}

/* ---------- 4. the hero ----------
   Five lines of heading and a nine-line paragraph is most of a phone screen
   before anything is offered. Tighten both, and let the buttons be the thing
   the thumb finds. */
@media (max-width: 720px) {
  .hero { padding-top: 34px; padding-bottom: 30px; }
  h1 { font-size: clamp(2rem, 8.2vw, 2.4rem); line-height: 1.1; }
  .hero .lede { font-size: 1.02rem; line-height: 1.5; }
  .eyebrow { font-size: .68rem; letter-spacing: .16em; }

  /* Two buttons side by side become two thin buttons. Stack them, full width,
     so either is a comfortable target. */
  .btn-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-row .btn { width: 100%; min-height: 50px; }
}

/* ---------- 5. everything else that was sized for a mouse ---------- */
@media (max-width: 720px) {
  section { padding: 44px 0; }
  .wrap   { padding-left: 18px; padding-right: 18px; }

  /* Cards were carrying desktop padding on a 340px-wide card. */
  .card, .say, .price-panel { padding: 20px 18px; }

  /* A table on a phone scrolls inside its own box rather than dragging the
     whole page sideways with it. */
  .table-wrap, .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Anything TAPPABLE clears 44px — and a pill is not tappable. It is a
     status label, and giving it a 44px floor stretched the box while the
     text stayed at the top of it: 6px above, 23px below. Every "Approved"
     and "Insurance expires" in the screenshots sat high because of it.

     Links and buttons are also inline by default, so a minimum height on
     them strands their text the same way unless they are told to centre it. */
  .lang-pick button, .foot-grid a, .qa a {
    min-height: 44px;
    display: inline-flex; align-items: center;
  }
  .qa a { display: inline-block; }        /* headings — a floor, not a box */
  .lang-pick button { padding: 10px 14px; }
}

/* The same floor, up to where the menu stops.
   --------------------------------------------------------------------------
   The block above stops at 720px, which was right when the hamburger started
   at 860 — everything between was a small laptop with a mouse. The menu now
   starts at 1024px, and the two widths that were the whole reason for raising
   it, an iPad in portrait (768) and in landscape (1024), are both inside the
   gap. So on exactly the devices the breakpoint was changed for, a finger was
   being offered a 35px language picker and 34px footer links.

   Only the controls that are genuinely small: the cards and buttons are
   comfortably over the floor already, and a blanket rule here would stretch
   every pill on the page the way it did once before. */
@media (min-width: 721px) and (max-width: 1024px) and (pointer: coarse) {
  .lang-pick button, .foot-grid a, .qa a, .nav-links > a {
    min-height: 44px;
    display: inline-flex; align-items: center;
  }
  .qa a { display: inline-block; }
  .lang-pick button { padding: 10px 14px; }
}

/* ---------- 6. tablets ----------
   A tablet is not a big phone: it has the width for two columns, and the
   nine-card grid deliberately stays at one until it can take three, because
   nine over two columns leaves a ragged last row of one. */
@media (min-width: 721px) and (max-width: 1024px) {
  .wrap { padding-left: 28px; padding-right: 28px; }
  section { padding: 64px 0; }
  /* Landscape tablets are wide enough for the three-across it was designed
     for; portrait ones are not, and stay at one. */
  .hero .lede { max-width: 46ch; }
}
@media (min-width: 860px) { .grid-9 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 7. a phone that is really a small tablet ---------- */
@media (max-width: 400px) {
  .brand .lockup img { height: 56px; }
  .nav-links > a { font-size: .84rem; padding: 0 7px; }
  .nav-links > a.btn { padding: 9px 13px; font-size: .85rem; }
}


/* ---------- 8. the line under the hero ----------
   On desktop it marks where the hero ends and the page begins, and it lines
   up with the colour change. On a phone the hero already ends at a colour
   change and the rule just adds a bar across a small screen. */
@media (max-width: 1024px) {
  .hero { border-bottom: 0 !important; }
  .hero + .band { border-top: 0; }
}

/* ---------- 9. the footer ----------
   Three separate horizontal rules were stacking up down here: the band above
   the footer drew one, the footer drew its own 40px below it, and the legal
   and copyright rows each drew another. Read top to bottom that is a double
   line before the footer and two more inside it.

   One rule per real division: the band's own bottom edge separates the page
   from the footer, and one line inside separates the small print from the
   rest. */
.band + .site-footer { border-top: 0; }
.site-footer .foot-bottom { border-top: 0; margin-top: 6px; padding-top: 0; }

/* The three legal links belong together on one line — they were wrapping
   after the trading name and breaking across two. */
.site-footer .foot-legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
}
.site-footer .foot-legal > span { flex: 1 1 100%; }
@media (min-width: 620px) {
  .site-footer .foot-legal > span { flex: 0 1 auto; margin-right: auto; }
}
/* Whatever the width, Privacy · Cookies · Terms stay on one line together. */
.site-footer .foot-legal .legal-links {
  display: flex; gap: 18px; white-space: nowrap; flex: 0 0 auto;
}

/* The Studio mark was sitting alone on a line of its own under the copyright,
   looking like something that had fallen off. It belongs beside the line it
   credits. */
.site-footer .foot-bottom {
  display: flex; flex-wrap: nowrap; align-items: center;
  justify-content: space-between; gap: 16px;
}
/* The FoxFace Studio lockup that used to sit here is gone. With the full
   FoxFace Diving lockup now at the top left of the footer, this was a second
   FoxFace logo a few inches away saying something different — and the one
   that had to be explained. Who made it is a sentence, so it is set as one. */
@media (max-width: 480px) {
  .site-footer .foot-bottom { gap: 12px; }
  .site-footer .foot-bottom span { font-size: .82rem; }
}


/* ============================================================
   FoxFace Diving — demo dashboard + live popup
   Every colour is one of your existing custom properties, so
   dark, light and underwater are all handled already. No new
   palette, no per-theme overrides.
   ============================================================ */

/* ── section shell ───────────────────────────────────────── */
.dd-section .lede { max-width: 60ch; }

.dd-panel { margin-top: 30px; }

/* the panel is wide and busy; kill the hover lift it would
   otherwise inherit from .shot, which feels wrong at this size */
.dd-panel.shot:hover { transform: none; }

.dd-body { gap: 14px; }

/* Sits under the moving illustration and has to be read as one thought, so
   the first clause is bold and the measure is short enough not to sprawl. */
/* Full width, and short enough to sit on two lines there. It had a 58ch
   measure on it, which is right for a paragraph you read and wrong for a
   caption under a wide illustration: it made a narrow three-line column with
   the rest of the page empty beside it. */
.dd-caveat {
  margin: 18px 0 0;
  font-size: .86rem;
  line-height: 1.6;
  color: var(--muted);
}
.dd-caveat b { color: var(--text); font-weight: 650; }

/* the little pulse in the window bar */
.dd-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  margin-right: 6px;
  vertical-align: middle;
  animation: dd-pulse 2.4s ease-out infinite;
}
@keyframes dd-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79,224,210,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(79,224,210,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,224,210,0); }
}

/* ── the four numbers ────────────────────────────────────── */
.dd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dd-stat {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  transition: border-color .2s, background .2s;
}
.dd-stat:hover { border-color: var(--line-2); }

.dd-stat-k {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}

.dd-stat-v {
  font-size: 1.85rem;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.dd-stat-v.dd-warn { color: var(--amber); }

.dd-stat-of {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--faint);
}

.dd-stat-n {
  font-size: .78rem;
  color: var(--muted);
}
.dd-bad { color: var(--coral); font-weight: 640; }

/* a number that just changed */
.dd-stat-v.dd-bump { animation: dd-bump .5s cubic-bezier(.2,.8,.3,1); }
@keyframes dd-bump {
  0%   { transform: translateY(0)     ; color: var(--text); }
  35%  { transform: translateY(-3px)  ; color: var(--aqua); }
  100% { transform: translateY(0)     ; color: var(--text); }
}

/* ── chart + feed side by side ───────────────────────────── */
.dd-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 10px;
  align-items: stretch;
}

.dd-chart-card,
.dd-feed-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  padding: 14px 15px;
}

/* the left column runs as tall as the feed, so it holds the chart
   at the top and the expiry list underneath rather than dead space */
.dd-chart-card {
  display: flex;
  flex-direction: column;
}

.dd-feed-card {
  position: relative;   /* the detail panel slides over this */
  overflow: hidden;
}

.dd-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: .8rem;
  font-weight: 680;
  color: var(--text);
  margin-bottom: 12px;
}
.dd-card-note {
  font-size: .74rem;
  font-weight: 500;
  color: var(--faint);
}

/* ── the chart ───────────────────────────────────────────── */
.dd-chart {
  display: block;
  width: 100%;
  height: 96px;
  overflow: visible;
}

/* The chart is DRAWN, then animated — not animated into existence.
   --------------------------------------------------------------------------
   Its resting state used to be a line with a 400-unit dash offset (invisible),
   a transparent area and a transparent dot, with .dd-seen — added by
   JavaScript, from an IntersectionObserver — as the only thing that ever made
   any of it appear. So the chart was blank for anybody whose script hadn't
   run, hadn't been allowed to run, or whose browser has no observer: the
   panel drew its frame, its heading and its caption around an empty box.

   This is the same fault as the charity paragraph that vanished permanently
   and took a day to find. The rule that came out of it: content is there on
   arrival, and motion only ever answers something the reader did.

   So the chart is fully visible at rest. The animation is now an addition —
   applied only when JavaScript has said the panel is in view, and only by
   REPLAYING it from hidden to shown. A reader with no JavaScript sees the
   finished chart, which is the thing worth seeing. */
.dd-chart-area { opacity: 1; }
.dd-chart-dot  { opacity: 1; }

/* Hidden only once the observer exists to bring it back: the class is put on
   the panel by the same script that watches for it scrolling into view, so if
   that script never runs, neither does this. */
.dd-panel.dd-animates .dd-chart-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
.dd-panel.dd-animates .dd-chart-area,
.dd-panel.dd-animates .dd-chart-dot { opacity: 0; }

/* drawn in when the panel scrolls into view (JS adds .dd-seen) */
.dd-panel.dd-seen .dd-chart-line {
  animation: dd-draw 1.8s cubic-bezier(.3,.8,.3,1) forwards;
}
.dd-panel.dd-seen .dd-chart-area {
  animation: dd-fade .9s ease-out .6s forwards;
}
.dd-panel.dd-seen .dd-chart-dot {
  animation: dd-fade .5s ease-out 1.5s forwards;
}
@keyframes dd-draw { to { stroke-dashoffset: 0; } }
@keyframes dd-fade { to { opacity: 1; } }

.dd-chart-dot { filter: drop-shadow(0 0 5px rgba(79,224,210,.7)); }

.dd-chart-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: .78rem;
  color: var(--muted);
}
.dd-chart-foot b {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.dd-up { color: var(--green); font-weight: 640; }
.dd-up::before { content: "↑ "; }

/* ── what's about to bite ────────────────────────────────── */
.dd-due {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  align-content: start;
}
.dd-due-head {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}
.dd-due-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: .8rem;
}
.dd-due-row span:first-child {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-due-when {
  flex: 0 0 auto;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.dd-due-when.soon { color: var(--amber); }
.dd-due-when.late { color: var(--coral); }

/* ── the feed ────────────────────────────────────────────── */
.dd-feed {
  display: grid;
  gap: 8px;
  /* room for six rows; stops the page jumping as items arrive */
  min-height: 318px;
  align-content: start;
}

/* feed rows reuse .row, so only the extras live here */
.dd-feed .row {
  cursor: pointer;
  padding: 10px 12px;
  gap: 10px;
}
.dd-feed .row:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

.dd-feed-icon {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: .95rem;
  background: rgba(160,240,255,.06);
  border: 1px solid var(--line);
}
.dd-feed-icon.kit    { border-color: rgba(79,224,210,.4);  background: rgba(79,224,210,.1); }
.dd-feed-icon.boat   { border-color: rgba(124,201,255,.4); background: rgba(124,201,255,.1); }
.dd-feed-icon.dive   { border-color: rgba(111,230,168,.4); background: rgba(111,230,168,.1); }
.dd-feed-icon.notice { border-color: rgba(179,156,255,.4); background: rgba(179,156,255,.1); }
.dd-feed-icon.alert  { border-color: rgba(255,207,110,.4); background: rgba(255,207,110,.1); }

/* let the middle take the slack, so the icon, the text, the time and
   the pill line up down the list however long the words are */
.dd-feed .lead { flex: 1 1 auto; }

.dd-feed .lead b {
  display: block;
  font-size: .89rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-feed .sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-feed-time {
  flex: 0 0 auto;
  min-width: 34px;
  text-align: right;
  font-size: .72rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
/* the status pills sit in one column rather than ragged */
.dd-feed .pill { min-width: 94px; }

/* On a phone, the words get the room.
   --------------------------------------------------------------------------
   A feed row is an icon, the text, a time and a status pill, and three of
   those four are fixed widths. At 375px — which is most iPhones — the card's
   inner width is about 255px, and the icon (30), the gaps (30), the time (34)
   and the pill (94) took 188 of it. The text, which is the entire point of
   the row, had 67px: enough for "Kit reque…" and then an ellipsis.

   This is the illustration that sells the product. On a phone it was showing
   a coloured square, three dots and a pill.

   So below 560px the row becomes two lines: the icon and the words across the
   top, and the time and the pill underneath on their own row, where they take
   the width they need without stealing it from the sentence. The pill loses
   its alignment column, which only ever existed to keep a list tidy at a
   width where there was room to be tidy. */
@media (max-width: 560px) {
  .dd-feed .row {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .dd-feed .lead {
    /* flex-basis 0 with a min-width of 0 lets the text shrink properly
       instead of being held open by its own longest word. */
    flex: 1 1 0; min-width: 0;
  }
  .dd-feed-time {
    order: 3;
    min-width: 0;
    text-align: left;
    margin-left: 40px;          /* under the words, not under the icon */
  }
  .dd-feed .pill {
    order: 4;
    min-width: 0;
    margin-left: auto;
  }
  /* Two lines are available now, so the title needn't be cut at all and the
     detail underneath can take a second line before it is. */
  .dd-feed .lead b { white-space: normal; }
  .dd-feed .sub {
    white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  /* Rows are taller now, so the reserved height would leave a gap under the
     list. Let it size itself. */
  .dd-feed { min-height: 0; }
}

/* a row arriving */
.dd-feed .row.dd-new { animation: dd-arrive .55s cubic-bezier(.2,.8,.3,1); }
@keyframes dd-arrive {
  from { opacity: 0; transform: translateY(-9px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* ── the drill-in ────────────────────────────────────────── */
.dd-detail {
  position: absolute;
  inset: 0;
  padding: 14px 15px;
  background: var(--surface);
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateX(101%);
  opacity: 0;
  pointer-events: none;

  /* Out of sight is not out of the page.
     ----------------------------------------------------------------------
     The panel slides off to the right and stops taking clicks — which
     handles the mouse and does nothing whatever for the keyboard. Its three
     buttons were still in the tab order, so anybody tabbing through the home
     page went from the last real control into three invisible ones somewhere
     off the right-hand edge, pressing Return on things they could not see. A
     screen reader read the whole panel out as part of the page.

     `visibility: hidden` takes it out of the tab order and out of the
     accessibility tree, and unlike `display: none` it still animates — the
     delay holds the visibility until the slide has finished, so the panel
     leaves exactly as it did before. `inert` would be the modern way to say
     this; it is not supported widely enough yet to be the only thing saying
     it. */
  visibility: hidden;
  transition: transform .34s cubic-bezier(.2,.8,.3,1), opacity .22s,
              visibility 0s linear .34s;
}
.dd-detail.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: transform .34s cubic-bezier(.2,.8,.3,1), opacity .22s,
              visibility 0s;
}
/* `hidden` is the browser's own word for "not here". It must win over the
   `display: flex` above, or the attribute is decorative. */
.dd-detail[hidden] { display: none !important; }

.dd-detail-back {
  align-self: start;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .76rem;
  font-weight: 640;
  color: var(--aqua);
  cursor: pointer;
}
.dd-detail-back:hover { color: var(--seafoam); }

.dd-detail-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.dd-detail-avatar {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, var(--aqua), var(--seafoam));
}
.dd-detail-head b { font-size: .96rem; font-weight: 680; }
.dd-detail-head .pill { margin-left: auto; }

.dd-detail-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 16px;
  margin: 0;
  font-size: .82rem;
}
.dd-detail-grid dt {
  color: var(--faint);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  align-self: center;
}
.dd-detail-grid dd {
  margin: 0;
  color: var(--text);
  font-weight: 560;
}

.dd-detail-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.dd-ghost-btn {
  padding: 6px 14px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: none;
  font: inherit;
  font-size: .82rem;
  font-weight: 640;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.dd-ghost-btn:hover { border-color: var(--line-2); color: var(--text); }

.dd-detail-foot {
  margin: 0;
  font-size: .74rem;
  color: var(--faint);
  line-height: 1.45;
}

/* ── blurred surnames ────────────────────────────────────── */
/* Wrapped round the part of a name we don't show. Real length, real
   shape, unreadable — the way a screenshot gets redacted before it
   goes in a brochure. First names stay, so the rows still read like
   people rather than case numbers. */
.dd-redact {
  filter: blur(4.2px);
  -webkit-filter: blur(4.2px);
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
  /* the blur bleeds past the glyphs; give it somewhere to go so it
     doesn't clip against the next word or the ellipsis */
  display: inline-block;
  padding: 0 3px;
  vertical-align: baseline;
}

/* the drill-in sets names larger, so the blur scales with them */
.dd-detail-head .dd-redact { filter: blur(5px); -webkit-filter: blur(5px); }

/* Safari on iOS drops sub-pixel blurs on small text; nudge it up */
@supports (-webkit-touch-callout: none) {
  .dd-redact { filter: blur(5px); -webkit-filter: blur(5px); }
}

/* screen readers get the word, not the blur */
.dd-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── seed list is markup, not decoration ─────────────────── */
.dd-seed { display: none !important; }


/* ============================================================
   Bottom-left popup
   ============================================================ */
.ff-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: min(340px, calc(100vw - 40px));
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 40px 12px 13px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: var(--graphite);
  box-shadow: 0 18px 44px rgba(2,20,26,.55);
  /* hidden state */
  opacity: 0;
  transform: translateY(14px) scale(.97);
  pointer-events: none;
  transition: opacity .4s ease, transform .45s cubic-bezier(.2,.8,.3,1);
}
.ff-popup.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ff-popup-icon {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 1rem;
  background: rgba(79,224,210,.1);
  border: 1px solid rgba(79,224,210,.4);
}

.ff-popup-text { min-width: 0; display: grid; gap: 2px; }
.ff-popup-text b {
  font-size: .84rem;
  font-weight: 680;
  color: var(--text);
  line-height: 1.3;
}
.ff-popup-meta {
  font-size: .76rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-popup-time { font-size: .7rem; color: var(--faint); }

/* the honesty tag — delete this block if you drop the tag */
.ff-popup-tag {
  position: absolute;
  top: 10px; right: 34px;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--sand);
  border: 1px solid rgba(255,216,154,.45);
  background: rgba(255,216,154,.12);
  border-radius: 999px;
  padding: 2px 7px;
}

.ff-popup-close {
  position: absolute;
  top: 7px; right: 7px;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--faint);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.ff-popup-close:hover { color: var(--text); background: rgba(160,240,255,.08); }


/* ============================================================
   Narrower screens
   ============================================================ */
@media (max-width: 900px) {
  .dd-stats { grid-template-columns: repeat(2, 1fr); }
  .dd-split { grid-template-columns: 1fr; }
  .dd-feed  { min-height: 0; }
}

@media (max-width: 560px) {
  .dd-stat-v { font-size: 1.55rem; }
  .dd-feed .row { padding: 9px 11px; }
  .ff-popup {
    left: 12px; right: 12px; bottom: 12px;
    max-width: none;
  }
}

/* the window-bar tail is long; let it drop away on small screens
   rather than squeeze the title */
@media (max-width: 480px) {
  .dd-panel .shot-bar .tail { display: none; }
}


/* ============================================================
   Somebody who asked for less movement
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .dd-live-dot { animation: none; }
  .dd-chart-line { stroke-dashoffset: 0; }
  .dd-chart-area,
  .dd-chart-dot { opacity: 1; }
  .dd-panel.dd-seen .dd-chart-line,
  .dd-panel.dd-seen .dd-chart-area,
  .dd-panel.dd-seen .dd-chart-dot { animation: none; }
  .dd-feed .row.dd-new { animation: none; }
  .dd-stat-v.dd-bump { animation: none; }
  .dd-detail { transition: opacity .01s; }
  .ff-popup  { transition: opacity .01s; }
}


/* ============================================================
   What's changed
   ============================================================ */
.notes { max-width: 760px; }

.notes-month + .notes-month { margin-top: 40px; }
.notes-month > h2 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 750;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* SCOPED. These two were written as a bare `.note`, which is also the name of
   the small grey caption used on nine other pages — under the price, under
   each address in the footer, under the enquiry form. So every caption on the
   site quietly picked up 18px of padding and a rule under it.

   In the footer that was more than untidy: the caption saying which address
   is which ended up equidistant between the two addresses, with a line drawn
   under it, so "about your club, or the price" read as if it belonged to the
   address BELOW it rather than the one above. A footer that tells you the
   wrong address for a fault report is worse than one that tells you nothing.

   The changelog's entries are always inside .notes, so that is where this
   belongs. */
.notes .note { padding: 18px 0; border-bottom: 1px solid var(--line); }
.notes .note:last-child { border-bottom: 0; }

.note-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.note-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  flex: 1 1 auto;
}
/* The date sits at the end of the row and never wraps under the title. */
.note-day {
  flex: 0 0 auto;
  font-size: .76rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.note p { margin: 0; color: var(--muted); max-width: 68ch; }

@media (max-width: 560px) {
  .note-head h3 { flex-basis: 100%; order: 3; }
  .note-day { margin-left: auto; }
}


/* Where the four steps land. The steps are the answer to "what happens if I
   do this", so the button that starts it belongs at the bottom of them. */
.start-pay {
  margin-top: 34px;
  padding: 26px 28px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(56, 189, 248, .07), rgba(56, 189, 248, .02));
  text-align: center;
}
.start-pay h3 { margin: 0 0 6px; font-size: 1.15rem; }
.start-pay p { margin: 0 auto; max-width: 52ch; color: var(--muted); font-size: .9rem; }
.start-pay .btn-row { margin: 18px 0 0; justify-content: center; }
.start-pay .note { margin-top: 14px; }

/* "or, if you'd rather ask first" — a rule with the words sitting in it, so
   the enquiry form reads as the second option rather than a second attempt. */
.start-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 4px;
  color: var(--muted);
  font-size: .82rem;
  text-transform: lowercase;
  letter-spacing: .02em;
}
.start-or::before, .start-or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-2);
}

/* The tenth that goes to the sea. Sits under the price, quiet rather than a
   badge — it is a fact about the invoice, not a sticker. */
.give {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(111, 230, 168, .05);
  text-align: left;
}
.give-head { display: flex; align-items: baseline; gap: 9px; font-size: .92rem; }
.give-head a { color: var(--aqua); }
.give p { margin: 8px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }


/* The tenth, surfacing.
   --------------------------------------------------------------------------
   No card, no band, no rule: just the sentence sitting on the page like the
   rest of the writing. The panel and the strip before it both had the same
   problem — a box drawn round three lines to make them feel important, which
   makes them feel boxed instead.

   What earns the attention is the arrival. The paragraph rises into place
   from below, blurred and faint at the bottom and sharp at the top, the way
   something looks coming up through water; a few bubbles go up past it.

   THE TEXT IS ALWAYS THERE. It is moved and blurred, never removed and never
   hidden: it stays in the document, stays selectable, and is read out in full
   by a screen reader at any point in the animation. And it settles — this
   runs once on arrival rather than looping, because a sentence that keeps
   moving is a sentence nobody finishes reading. For anyone who has asked for
   less motion it does not run at all: see the bottom of this block.

   A whale used to swim across and eat the paragraph. It was replaced, and
   the eight attempts at drawing it are the reason this file has a section
   marked RETIRED further down. */
/* The bubbles drift a few pixels sideways as they rise, so clip WHERE IT
   LIVES — never on the root or on <body>, because a clip up there is what
   stops the sticky header sticking in Safari. That was learned from the reef.

   `overflow-x: clip` and not `hidden`: hidden on one axis forces the other to
   scroll, which would cut the tops off the bubbles as they leave. `clip`
   leaves the vertical alone. */
.give-band { padding: 0; border: 0; background: none; overflow-x: clip; }
.give-eat {
  position: relative;
  max-width: 62ch;
  margin: 0 auto;
  padding: 26px 0 30px;
}

.give-eat h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.25;
}
.give-eat .share {
  font-weight: 800;
  background: linear-gradient(100deg, var(--seafoam), var(--green) 55%, var(--aqua));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.give-eat p { margin: 0; color: var(--muted); line-height: 1.65; }
.give-eat p + p { margin-top: 8px; }
.give-eat .small { font-size: .85rem; color: var(--faint); }
.give-eat .pill { margin-bottom: 12px; }

/* The words, and the bubbles going up past them.
   -------------------------------------------------------------------------
   THE WORDS ARE NEVER HIDDEN IN THEIR RESTING STATE. They sit upright and
   legible with no animation at all, and the rise below is added by a class
   once the section has been scrolled to. An earlier version had the paragraph
   invisible by default and depended on an animation to reveal it — which is
   exactly how it ended up gone permanently when that animation was wrong.
   Visible is the default; motion is the addition. */
.give-words { position: relative; z-index: 1; }

/* It surfaces.
   -------------------------------------------------------------------------
   Three things were wrong with the first attempt, and only the third one
   really mattered.

   It rose 26px in 1.5s — too small and too brisk to read as anything but a
   fade-in. Something coming up from depth decelerates: fast while it is deep,
   slowing as it nears the surface. That is a long ease-out, not a short one.

   It also moved as ONE SLAB. The pill, the heading and both paragraphs
   travelled locked together, which is a box sliding, not water. They now
   arrive in sequence, a tenth of a second apart, so the block loosens on the
   way up and settles line by line.

   And it goes slightly PAST its resting place and comes back — the bob of
   something breaking the surface. Without that overshoot it reads as a lift,
   with it, as buoyancy. It is 5px; you would not consciously see it, and you
   would notice it missing.

   Transform, opacity and filter only. No masks and no clip-path anywhere near
   this: a mask is what made the paragraph vanish permanently last time, and
   the resting state here has no animation in it at all — without the class,
   without JavaScript, or with reduced motion, the words are simply there. */
@keyframes surface {
  0%   { transform: translateY(76px) scale(.974); opacity: 0; filter: blur(16px); }
  22%  {                                          opacity: .85; }
  38%  {                                          opacity: 1;  filter: blur(9px); }
  /* The water thins on the way up rather than the blur switching off at the
     end. Most of the clearing happens in the last third, because that is
     where the surface is. */
  58%  {                                                       filter: blur(5px); }
  74%  {                                                       filter: blur(2px); }
  86%  { transform: translateY(-7px) scale(1);                 filter: blur(0); }
  100% { transform: none;                         opacity: 1;  filter: none; }
}
.give-eat.surfaced .give-words > * {
  animation: surface 3.4s cubic-bezier(.19, 1, .22, 1) both;
}
/* Deepest first. The pill is the smallest thing and arrives ahead of the
   heading; the second paragraph is last, so the eye is led down the block in
   the order it should read it. */
.give-eat.surfaced .give-words > :nth-child(2) { animation-delay: .10s; }
.give-eat.surfaced .give-words > :nth-child(3) { animation-delay: .20s; }
.give-eat.surfaced .give-words > :nth-child(4) { animation-delay: .30s; }
.give-eat.surfaced .give-words > :nth-child(5) { animation-delay: .40s; }

/* ---- the bubbles ----
   These belong to the rise. They start when the words start, they come up
   through them, and they go — the whole thing is one event, not a paragraph
   with an aquarium behind it.

   Nothing loops. At rest every bubble is opacity 0 and has no animation on it
   at all, so before the section is reached, and under reduced motion, there
   is nothing here but the sentence.

   THE COLOUR was the reason nothing appeared the first time: a near-white
   gradient at .85 alpha, which on a pale ground is white on white. Mixed from
   the page's own --aqua now, so it holds on every theme. */
.give-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* NOT clipped. They have to leave in every direction, including upwards and
     downwards past this block — a clip here is what made every earlier version
     a stream up a pipe. The band's own overflow-x: clip stops any of it
     reaching the page as a sideways scrollbar. */
  overflow: visible;
}
/* The whole cloud rides up with the paragraph, on the same curve and the same
   clock as the words. One animation for the layer, so the bubbles keep their
   ring while the ring itself surfaces — rather than each bubble having to
   carry the climb as well as the scatter. */
.give-eat.surfaced .give-bubbles {
  animation: cloud-rise 3.4s cubic-bezier(.19, 1, .22, 1) both;
}
@keyframes cloud-rise {
  0%   { transform: translateY(76px); }
  86%  { transform: translateY(-7px); }
  100% { transform: none; }
}
/* Most behind the words. A few IN FRONT, so the text is inside the water
   rather than pasted on top of a picture of it. */
.give-bubbles.is-back  { z-index: 0; }
.give-bubbles.is-front { z-index: 2; }

/* Two elements, two transforms. The climb is on the <i>, the sideways drift
   on its ::before — one element cannot run two animations that both write
   `transform`, the second silently wins, and that is how the drift vanished
   and left them going straight up like a progress bar. */
/* Placed on the ring by left/top, moved only by transform. */
.give-bubbles i {
  position: absolute;
  opacity: 0;
}
.give-eat.surfaced .give-bubbles i {
  animation: bubble-burst var(--dur, 3s) cubic-bezier(.28, .6, .34, 1) var(--delay, 0s) both;
}
.give-bubbles i::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* A bubble is a lens: bright where the light hits it, bright again at the
     far rim where its wall is edge-on, and almost nothing through the middle.
     The rim is what makes it a bubble instead of a dot. */
  background:
    radial-gradient(circle at 32% 28%,
      color-mix(in srgb, white 85%, var(--aqua)) 0%,
      color-mix(in srgb, var(--aqua) 45%, transparent) 38%,
      color-mix(in srgb, var(--aqua) 8%, transparent) 62%,
      transparent 70%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--aqua) 40%, transparent),
    0 0 6px color-mix(in srgb, var(--aqua) 22%, transparent);
}
/* The ones in front are the SMALLEST and the faintest. A fat circle over a
   letter is a smudge; a 5px one at half strength is a bubble you read
   straight through. */
.give-bubbles.is-front i::before { opacity: .5; }

/* One line, out from the middle.
   -------------------------------------------------------------------------
   Every bubble does the same three things along its own direction:

     out of hiding   pulled back toward the centre and small — behind the
                     words, which is where they have to come from
     into the ring   its resting place around the paragraph, held while the
                     whole cloud is still rising
     away            further along the same line and gone, as the paragraph
                     reaches the surface

   Because the scattering direction is the direction it emerged along, the
   whole thing reads as one burst opening outwards. The ones above the block
   leave upwards, the ones below leave downwards, the ones at the sides go
   sideways — every direction at once, which is the point. */
@keyframes bubble-burst {
  0%   { transform: translate(calc(var(--dx, 0px) * -.45),
                              calc(var(--dy, 0px) * -.45)) scale(.18);
         opacity: 0; }
  12%  { opacity: .55; }
  24%  { opacity: .92; }
  /* Passing through its resting place rather than stopping at it. The earlier
     version held here and then set off again, and a hold followed by a start
     is a step you can see — which is what made it look mechanical. It never
     stops moving now; it only slows down. */
  42%  { transform: translate(0, 0) scale(1); opacity: .95; }
  62%  { transform: translate(calc(var(--dx, 0px) * .26),
                              calc(var(--dy, 0px) * .26)) scale(1.06);
         opacity: .82; }
  /* A long fade rather than a short one. Bubbles that wink out together read
     as one switch being thrown; these thin away. */
  82%  { transform: translate(calc(var(--dx, 0px) * .68),
                              calc(var(--dy, 0px) * .68)) scale(1.16);
         opacity: .42; }
  100% { transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(1.3);
         opacity: 0; }
}

/* The whale that used to live here — ninety lines styling artwork nothing
   rendered any more — has gone, along with the SVG in site.js and whale.py
   that generated it. It is in the repository's history if it ever comes
   back. What replaced it is the bubbles above. */

/* Somebody who has asked for less motion gets the sentence and nothing else:
   no rise, no bubbles. Note the words need no rescuing here — their resting
   state is already visible, so turning everything off leaves them readable
   rather than leaving them gone. */
@media (prefers-reduced-motion: reduce) {
  .give-eat.surfaced .give-words > * { animation: none; }
  .give-eat.surfaced .give-bubbles { animation: none; }
  .give-bubbles { display: none; }
}


/* ============================================================
   Writing
   ============================================================ */
.wrap.narrow { max-width: 720px; }

.post-meta { font-size: .78rem; color: var(--faint); margin: 0; }

.post-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-card:last-child { border-bottom: 0; }
.post-card h2 { font-size: 1.24rem; margin: 6px 0 8px; line-height: 1.25; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--aqua); }
.post-card p:last-child { margin: 0; color: var(--muted); }

/* The body of a post. Wider line-height than the marketing pages: these are
   read, not skimmed. */
.post p { line-height: 1.72; margin: 0 0 18px; color: var(--muted); }
.post h2 {
  font-size: 1.12rem;
  margin: 34px 0 12px;
  padding-top: 4px;
}
.post-list { margin: 0 0 20px; padding-left: 20px; }
.post-list li { line-height: 1.6; margin-bottom: 9px; color: var(--muted); }
.post .pull { margin: 26px 0; }

/* Where the product is mentioned, said once and set apart, so a reader can
   see exactly where the writing stops and the selling starts. */
.post-note {
  border-left: 2px solid var(--line-2);
  padding: 2px 0 2px 16px;
  font-size: .88rem;
}
.post-foot {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.post-foot p { font-size: .88rem; color: var(--muted); }

/* The policy tables have four columns, and on a 320px phone "EU / US, under standard clauses" pushed the whole
   page sideways. Below 420px the table keeps to the screen and long words break instead (5 Nov 2026). */
@media (max-width: 420px) {
  .legal table { table-layout: fixed; width: 100%; font-size: .78rem; }
  .legal th, .legal td { padding: 7px 4px; overflow-wrap: anywhere; }
  .legal th { font-size: .64rem; letter-spacing: .04em; }
}
