/* ============================================================
   MOVE IT 2026 — Brand Stylesheet
   Colors: #AEE1F9 #62CCFE #006AFE (main)
           #245DB3 #6A26F1 #02CCB3 #FE006A (accents)
   Font:   Poppins
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --blue-50:  #AEE1F9;
  --blue-200: #62CCFE;
  --blue-500: #006AFE;
  --navy:     #245DB3;
  --purple:   #6A26F1;
  --teal:     #02CCB3;
  --pink:     #FE006A;
  --white:    #FFFFFF;
  --gray:     #666666;
  --light:    #F4F8FC;
  --black:    #000000;
  --radius:   14px;
  --shadow:   0 8px 24px rgba(36, 93, 179, 0.08);

  /* Motion tokens */
  --t-fast:   .15s cubic-bezier(.4, 0, .2, 1);
  --t-base:   .28s cubic-bezier(.4, 0, .2, 1);
  --t-slow:   .5s  cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a1a;
  background: var(--light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Global motion: page fade, section reveal ----------
   IMPORTANT: don't animate `transform` on <body> — doing so makes
   the body a containing block for fixed-position descendants, which
   would break `#fab-stack { position: fixed }`. Animate opacity only. */
body {
  animation: page-fade .45s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes page-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal — toggled by js/common.js via IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.2, .8, .2, 1),
              transform .6s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .reveal { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }
}

a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 100;
  padding: 14px 0;
  transition: box-shadow var(--t-base), background var(--t-base), backdrop-filter var(--t-base);
}
.navbar.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 4px 20px rgba(36,93,179,.12);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: nowrap; }
body { overflow-x: hidden; }
.navbar a.brand,
.navbar a.brand:hover,
.navbar a.brand:focus,
.navbar a.brand:visited,
.navbar a.brand:active {
  display: flex; align-items: center; gap: 12px;
  transition: transform var(--t-base);
  text-decoration: none !important;
}
.navbar a.brand:hover { transform: translateY(-1px); }
.navbar a.brand .brand-text,
.navbar a.brand:hover .brand-text { text-decoration: none !important; }
.navbar .brand img { height: 56px; width: auto; transition: transform var(--t-base); }
/* Only the MOVE IT logo gets the playful tilt on hover; the KMS logo stays put. */
.navbar .brand:hover img:not(.brand-kms) { transform: rotate(-4deg) scale(1.04); }
.navbar .brand-text {
  font-weight: 700; color: var(--navy); font-size: 13px; letter-spacing: 3px;
  padding: 3px 10px; border: 1.5px solid var(--blue-500); border-radius: 20px;
  background: var(--blue-50);
}
.navbar nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Hamburger — hidden on desktop, shown on mobile */
.navbar .hamburger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1.5px solid rgba(36,93,179,.2);
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.navbar .hamburger:hover { background: var(--blue-50); border-color: var(--blue-500); }
.navbar .hamburger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform var(--t-base), top var(--t-base), opacity var(--t-fast);
}
.navbar .hamburger span:nth-child(1) { top: 14px; }
.navbar .hamburger span:nth-child(2) { top: 21px; }
.navbar .hamburger span:nth-child(3) { top: 28px; }
.navbar.nav-open .hamburger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.navbar.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.navbar.nav-open .hamburger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.navbar nav a {
  padding: 8px 14px; border-radius: 8px; color: #333; font-weight: 500; font-size: 14px;
  position: relative;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.navbar nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--blue-500); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--t-base);
}
.navbar nav a:hover { background: var(--blue-50); color: var(--navy); text-decoration: none; transform: translateY(-1px); }
.navbar nav a:hover::after { transform: scaleX(1); }
.navbar nav a.active { background: var(--blue-500); color: var(--white); }
.navbar nav a.active::after { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--navy) 60%, var(--purple) 100%);
  color: var(--white);
  padding: 72px 0 140px;           /* leave room under the curve */
  position: relative;
  overflow: hidden;
}

/* ---------- IT / digital background layer (behind everything) ---------- */
/* 1. Faint tech grid + circuit nodes */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,.18) 1.5px, transparent 2.5px);
  background-size: 48px 48px, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, 24px 24px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 55%, transparent 100%);
  opacity: .55;
  pointer-events: none;
  animation: grid-drift 40s linear infinite;
  z-index: 0;
}
@keyframes grid-drift {
  to { background-position: -48px -48px, -48px -48px, -24px -24px; }
}

/* 2. Matrix-style falling code columns */
.hero .matrix {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: .35;
  mix-blend-mode: screen;
}
.hero .matrix .col {
  position: absolute;
  top: -120%;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
  color: #AEE1F9;
  text-shadow: 0 0 8px rgba(174,225,249,.8), 0 0 16px rgba(98,204,254,.4);
  white-space: pre;
  animation: matrix-fall linear infinite;
  writing-mode: vertical-rl;
}
@keyframes matrix-fall {
  from { transform: translateY(0);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { transform: translateY(260%); opacity: 0; }
}

/* 3. Floating code snippets / tech keywords */
.hero .snippets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero .snippets span {
  position: absolute;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  text-shadow: 0 0 10px rgba(0,106,254,.4);
  letter-spacing: .5px;
  animation: snippet-float 10s ease-in-out infinite;
  white-space: nowrap;
}
.hero .snippets span.accent { color: #AEE1F9; font-weight: 600; }
@keyframes snippet-float {
  0%,100% { transform: translateY(0);    opacity: .35; }
  50%     { transform: translateY(-14px); opacity: .85; }
}

/* 4. SVG circuit lines drawing themselves */
.hero .circuit {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}
.hero .circuit path {
  fill: none;
  stroke: rgba(174,225,249,.65);
  stroke-width: 1.2;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  filter: drop-shadow(0 0 4px rgba(174,225,249,.6));
  animation: circuit-draw 8s ease-in-out infinite;
}
.hero .circuit path:nth-child(2) { animation-delay: 2s;  stroke: rgba(98,204,254,.7); }
.hero .circuit path:nth-child(3) { animation-delay: 4s;  stroke: rgba(255,255,255,.55); }
.hero .circuit circle {
  fill: #AEE1F9;
  filter: drop-shadow(0 0 6px rgba(174,225,249,.9));
  animation: node-blink 2.4s ease-in-out infinite;
}
.hero .circuit circle:nth-child(odd) { animation-delay: .8s; }
@keyframes circuit-draw {
  0%   { stroke-dashoffset: 600; }
  50%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -600; }
}
@keyframes node-blink {
  0%,100% { opacity: .3; transform: scale(.8); }
  50%     { opacity: 1;  transform: scale(1.2); }
}

/* make sure hero content stays above the new layers */
.hero .container { position: relative; z-index: 2; }
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 70px;
  background: var(--light);
  /* a soft curve along the bottom edge only */
  clip-path: ellipse(140% 100% at 50% 100%);
  z-index: 1;
  pointer-events: none;
}
.section-light + .hero::after,
.hero + section.section-light .hero::after { background: var(--white); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 52px; font-weight: 800; letter-spacing: -1px; line-height: 1.05;
  animation: slide-up .7s cubic-bezier(.2,.8,.2,1) both .1s;
}
.hero h1 .accent { color: var(--blue-50); }
.hero p.lead { font-size: 17px; margin-top: 14px; opacity: .95; max-width: 565px;
  animation: slide-up .7s cubic-bezier(.2,.8,.2,1) both .22s;
}
.hero p.lead + p.lead { margin-top: 10px; }
.hero .hero-sub {
  font-size: 22px; margin-top: 10px; opacity: .95; font-weight: 500;
  animation: slide-up .7s cubic-bezier(.2,.8,.2,1) both .18s;
}
.hero .cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap;
  animation: slide-up .7s cubic-bezier(.2,.8,.2,1) both .34s;
}
.hero .reg-code {
  margin-top: 18px; display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  animation: slide-up .7s cubic-bezier(.2,.8,.2,1) both .42s;
}
.hero .reg-code-label {
  font-size: .9rem; color: var(--white); opacity: .85;
  font-weight: 500;
}
.hero .reg-code-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; cursor: pointer;
  font-family: inherit;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 10px;
  color: var(--white);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.hero .reg-code-chip:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.7);
}
.hero .reg-code-chip:active { transform: scale(.97); }
.hero .reg-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700; font-size: 1rem; letter-spacing: .12em;
  color: var(--white);
}
.hero .reg-code-copy { color: var(--white); opacity: .8; flex: none; }
.hero .reg-code-chip:hover .reg-code-copy { opacity: 1; }
.hero .reg-code-copied {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--white);
  font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  border-radius: 9px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-fast);
}
.hero .reg-code-chip.is-copied .reg-code-copied { opacity: 1; }
.hero .badge-chip { animation: slide-up .6s cubic-bezier(.2,.8,.2,1) both; }
.hero-visual { text-align: center; animation: slide-up .8s cubic-bezier(.2,.8,.2,1) both .3s; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ============== Animated hero scene (no logo) ============== */
.hero-scene {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

/* Pulsing concentric rings around the centre */
.hero-scene .ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 140px; height: 140px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(.4);
  animation: ring-pulse 3.6s cubic-bezier(.2,.8,.2,1) infinite;
}
.hero-scene .ring.r2 { animation-delay: 1.2s; }
.hero-scene .ring.r3 { animation-delay: 2.4s; }
@keyframes ring-pulse {
  0%   { transform: translate(-50%,-50%) scale(.4); opacity: .85; }
  100% { transform: translate(-50%,-50%) scale(3); opacity: 0; }
}

/* Glowing core orb spinning in the middle */
.hero-scene .core {
  position: absolute;
  top: 50%; left: 50%;
  width: 140px; height: 140px;
  margin: -70px 0 0 -70px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff 0%, #AEE1F9 35%, #62CCFE 75%);
  box-shadow: 0 0 80px rgba(174,225,249,.55), inset 0 -10px 20px rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 20px;
  animation: core-breathe 4s ease-in-out infinite;
}
.hero-scene .core small {
  color: var(--blue-500); font-size: 11px; margin-top: 4px; letter-spacing: 3px;
}
@keyframes core-breathe {
  0%,100% { transform: scale(1);      box-shadow: 0 0 80px rgba(174,225,249,.55); }
  50%     { transform: scale(1.06);   box-shadow: 0 0 110px rgba(174,225,249,.8); }
}

/* Rotating orbit + dashed trail connecting the sports */
.hero-scene .orbit {
  position: absolute; inset: 6%;
  animation: orbit-rotate 22s linear infinite;
}
@keyframes orbit-rotate {
  to { transform: rotate(360deg); }
}
.hero-scene .orbit-path {
  position: absolute; inset: 0;
  border: 2px dashed rgba(255,255,255,.35);
  border-radius: 50%;
}

/* The 3 sport medallions live on the orbit so they travel with it;
   each one counter-rotates so the emoji stays upright */
.hero-scene .sport {
  position: absolute;
  width: 76px; height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; line-height: 1;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.5);
  box-shadow: 0 16px 30px rgba(0,0,0,.25);
  animation: orbit-counter 22s linear infinite;
}
@keyframes orbit-counter {
  to { transform: rotate(-360deg); }
}

/* anchor points around the orbit (12, 4, 8 o'clock) */
.hero-scene .sport.run  { top: 0;   left: 50%; }
.hero-scene .sport.bike { top: 75%; left: 93%; }
.hero-scene .sport.swim { top: 75%; left: 7%;  }

/* per-sport micro-animations layered via an inner span */
.hero-scene .sport .ico {
  display: inline-block;
  animation-duration: 1.4s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.hero-scene .sport.run  .ico { animation-name: run-bounce; }
.hero-scene .sport.bike .ico { animation-name: bike-tilt; animation-duration: 2.2s; }
.hero-scene .sport.swim .ico { animation-name: swim-bob;  animation-duration: 2.2s; }

@keyframes run-bounce {
  0%,100% { transform: translateY(0)  rotate(0); }
  50%     { transform: translateY(-8px) rotate(-6deg); }
}
@keyframes bike-tilt {
  0%,100% { transform: rotate(-4deg); }
  50%     { transform: rotate(4deg) translateX(3px); }
}
@keyframes swim-bob {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50%     { transform: translateY(4px) rotate(4deg); }
}

/* Coloured sport accents on heading */
.hero h1 .s-run, .hero h1 .s-swim, .hero h1 .s-cycle {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: word-shine 3.5s ease-in-out infinite;
}
.hero h1 .s-run   { background-image: linear-gradient(120deg, #AEE1F9, #62CCFE, #AEE1F9); }
.hero h1 .s-swim  { background-image: linear-gradient(120deg, #02CCB3, #62CCFE, #02CCB3); animation-delay: .3s; }
.hero h1 .s-cycle { background-image: linear-gradient(120deg, #C4B4FF, #AEE1F9, #C4B4FF); animation-delay: .6s; }
@keyframes word-shine {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* Floating particles */
.hero-scene .dot {
  position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.7);
  box-shadow: 0 0 12px rgba(255,255,255,.55);
  animation: dot-drift 6s ease-in-out infinite;
}
.hero-scene .dot.d1 { top: 12%; left: 14%; }
.hero-scene .dot.d2 { top: 22%; right: 10%; animation-delay: 1.2s; width: 6px; height: 6px; }
.hero-scene .dot.d3 { bottom: 18%; left: 38%; animation-delay: 2.1s; width: 5px; height: 5px; }
.hero-scene .dot.d4 { top: 60%; right: 22%; animation-delay: 3.3s; width: 7px; height: 7px; }
.hero-scene .dot.d5 { bottom: 10%; right: 40%; animation-delay: 4.4s; }
@keyframes dot-drift {
  0%,100% { transform: translateY(0);    opacity: .35; }
  50%     { transform: translateY(-22px); opacity: 1; }
}

/* Wavy swim lines at the bottom */
.hero-scene .waves {
  position: absolute;
  left: 0; right: 0; bottom: -2%;
  width: 100%; height: 40px;
  pointer-events: none;
}
.hero-scene .waves path {
  fill: none;
  stroke: rgba(255,255,255,.6);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  animation: wave-flow 2.4s linear infinite;
}
.hero-scene .waves path.w2 { stroke: rgba(255,255,255,.35); animation-duration: 3.2s; animation-direction: reverse; }
@keyframes wave-flow {
  to { stroke-dashoffset: -28; }
}

.badge-chip {
  display: inline-block; padding: 6px 14px; border-radius: 30px;
  background: rgba(255,255,255,.18); color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: .4px; backdrop-filter: blur(4px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 0;
  transition: transform var(--t-fast), box-shadow var(--t-base),
              background var(--t-base), color var(--t-base), border-color var(--t-base);
  font-family: inherit;
  position: relative; overflow: hidden;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .05s; }
/* ripple-style highlight on press */
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity var(--t-base);
  pointer-events: none;
}
.btn:hover::before { opacity: 1; }
.btn-primary { background: var(--blue-500); color: var(--white); }
.btn-primary:hover { background: var(--navy); box-shadow: 0 8px 18px rgba(0,106,254,.35); }
.btn-accent { background: var(--pink); color: var(--white); }
.btn-accent:hover { background: #d1004f; }
.btn-ghost { background: rgba(255,255,255,.15); color: var(--white); border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-outline { background: transparent; color: var(--blue-500); border: 2px solid var(--blue-500); }
.btn-outline:hover { background: var(--blue-500); color: var(--white); }
.btn-danger { background: var(--pink); color: var(--white); }
.btn-strava { background: #FC4C02; color: var(--white); }
.btn-strava:hover { background: #d93f00; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
section h2 { font-size: 34px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
section .sub { color: var(--gray); font-size: 15px; margin-bottom: 32px; }

.section-light { background: var(--white); }

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

.card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  border: 1px solid rgba(36,93,179,.06);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(36, 93, 179, 0.14);
  border-color: rgba(0,106,254,.15);
}
.card h3 { color: var(--navy); font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.card p { color: #333; font-size: 14px; }

.info-card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 14px; color: var(--white);
  transition: transform var(--t-base);
}
.info-card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.info-card .icon.gift  { background: var(--pink); }
.info-card .icon img   { width: 100%; height: 100%; object-fit: contain; }
/* Sport icons render the bundled PNG and shouldn't sit on a tinted square. */
.info-card .icon.run,
.info-card .icon.swim,
.info-card .icon.bike { background: transparent; border-radius: 0; }

/* Icon + title render on a single row above the description. */
.info-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.info-card-head .icon { margin-bottom: 0; flex-shrink: 0; }
.info-card-head h3 { margin: 0; }
.hero-scene .sport .ico img { width: 70px; height: 70px; object-fit: contain; display: block; }

.stat {
  background: var(--white); padding: 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 4px solid var(--blue-500);
  transition: transform var(--t-base), box-shadow var(--t-base), border-left-width var(--t-base);
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(36,93,179,.14);
  border-left-width: 8px;
}
.stat .num { font-size: 32px; font-weight: 800; color: var(--navy); }
.stat .label { color: var(--gray); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Tables ---------- */
.table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--navy); color: var(--white); }
thead th { padding: 14px 16px; text-align: left; font-weight: 600; font-size: 13px; letter-spacing: .4px; }
tbody td { padding: 14px 16px; border-bottom: 1px solid #eef2f7; }
tbody tr { transition: background var(--t-fast), transform var(--t-fast); }
tbody tr:hover { background: #f6faff; }
tbody tr:last-child td { border-bottom: 0; }

.status { display: inline-block; padding: 4px 10px; border-radius: 30px; font-size: 12px; font-weight: 600; }
.status-valid       { background: #e3fbf3; color: #028a6e; }
.status-invalid     { background: #ffe4ee; color: #b4004c; }
.status-review      { background: #fff4d8; color: #a67800; }
.status-ignored     { background: #eef2f7; color: #666; }
.status-pre-event   { background: #e2eeff; color: #245DB3; }
.status-post-event  { background: #eef0f4; color: #4a5568; }
.status-active   { background: #e2eeff; color: var(--blue-500); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); max-width: 640px; margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 14px; font-family: inherit; font-size: 14px;
  border: 1.5px solid #dae3ef; border-radius: 10px; background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: var(--blue-200);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(0,106,254,.14);
  transform: translateY(-1px);
}
.field .hint { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy); color: rgba(255,255,255,.85);
  padding: 40px 0 28px; font-size: 14px; margin-top: 60px;
}
.footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--white); margin-bottom: 12px; font-size: 15px; }
.footer a { color: rgba(255,255,255,.75); display: block; padding: 4px 0; }
.footer a:hover { color: var(--white); text-decoration: none; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; margin-top: 28px; text-align: center; font-size: 13px; opacity: .7; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; }
.partner-logo {
  background: var(--white);
  padding: 18px 22px; border-radius: 14px; box-shadow: var(--shadow);
  font-weight: 700; color: var(--navy); font-size: 15px;
  min-width: 160px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform var(--t-base), box-shadow var(--t-base), color var(--t-base);
}
.partner-logo .plogo {
  display: block;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(36,93,179,.12);
}
.partner-logo .pname { line-height: 1.25; max-width: 180px; }
.partner-logo .ptier {
  font-size: 10px; color: var(--gray); text-transform: uppercase; letter-spacing: 1.5px;
  font-weight: 600;
}
.partner-logo:hover {
  transform: translateY(-4px) scale(1.03);
  color: var(--blue-500);
  box-shadow: 0 16px 32px rgba(36,93,179,.16);
}
.partner-logo.title { padding: 24px 28px; }
.partner-logo.title .pname { font-size: 18px; }

/* Compact thumbnail for admin tables */
.plogo-sm {
  width: 36px; height: 36px; border-radius: 8px;
  vertical-align: middle; margin-right: 8px;
  box-shadow: 0 2px 6px rgba(36,93,179,.12);
}

/* ---------- Rules list ---------- */
.rule-block { background: var(--white); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); margin-bottom: 16px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-left-color var(--t-base);
  border-left: 4px solid transparent;
}
.rule-block:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 32px rgba(36,93,179,.12);
  border-left-color: var(--blue-500);
}
.rule-block h3 { color: var(--blue-500); font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.rule-block ul { padding-left: 22px; color: #333; font-size: 14px; }
.rule-block li { margin-bottom: 6px; }

.point-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0 14px; }
.point-pill {
  background: linear-gradient(135deg, var(--blue-200), var(--blue-500));
  color: var(--white); padding: 10px 18px; border-radius: 40px; font-weight: 600; font-size: 14px;
  transition: transform var(--t-base), box-shadow var(--t-base);
  cursor: default;
}
.point-pill:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 22px rgba(0,106,254,.3);
}

/* ---------- Leaderboard ---------- */
.rank-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; font-weight: 700; font-size: 13px;
  background: #e2eeff; color: var(--navy);
}
.rank-pill.gold   { background: #ffd700; color: #5a4500; }
.rank-pill.silver { background: #cdd2d8; color: #2b2f35; }
.rank-pill.bronze { background: #e5a96b; color: #4a2a00; }
.highlight-me { background: #fff7de !important; }
.highlight-me td { border-color: #f5d781; }

/* ---------- Tabs (admin) ---------- */
.tabs .tab {
  font-family: inherit;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: #444;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px; /* overlap the .tabs container border */
  transition: color var(--t-fast), border-color var(--t-base), background var(--t-fast);
}
.tabs .tab:hover { color: var(--navy); background: rgba(0,106,254,.06); }
.tabs .tab.active { color: var(--blue-500); border-bottom-color: var(--blue-500); }

.tab-panel { animation: tab-fade .3s cubic-bezier(.2,.8,.2,1); }
.tab-panel[hidden] { display: none; }
@keyframes tab-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Sidebar (admin) ---------- */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 70px); }
.sidebar { background: var(--navy); color: var(--white); padding: 24px 0; }
.sidebar h4 { color: rgba(255,255,255,.6); padding: 0 24px; margin-bottom: 8px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.sidebar a {
  display: block; padding: 12px 24px; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500;
  border-left: 3px solid transparent;
  transition: background var(--t-fast), color var(--t-fast),
              border-left-color var(--t-base), padding-left var(--t-base);
}
.sidebar a:hover { background: rgba(255,255,255,.08); color: var(--white); text-decoration: none; padding-left: 30px; }
.sidebar a.active { background: rgba(255,255,255,.12); border-left-color: var(--blue-200); color: var(--white); }
.main-panel { padding: 32px 40px; background: var(--light); }

/* ---------- Dashboard progress ---------- */
.progress-card {
  background: linear-gradient(135deg, var(--blue-500), var(--navy));
  color: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.progress-card .big { font-size: 46px; font-weight: 800; line-height: 1; }
.progress-card .lbl { font-size: 13px; opacity: .85; text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }
.progress-bar { background: rgba(255,255,255,.25); height: 10px; border-radius: 30px; margin-top: 18px; overflow: hidden; }
.progress-bar > div {
  background: linear-gradient(90deg, var(--blue-50), var(--blue-200));
  height: 100%; border-radius: 30px;
  animation: progress-grow 1.4s cubic-bezier(.2, .8, .2, 1) both;
  background-size: 200% 100%;
}
@keyframes progress-grow {
  from { width: 0 !important; }
}

/* ---------- Banner / Alert ---------- */
.banner {
  background: #fff4d8; color: #8a5a00; padding: 14px 18px; border-radius: 10px;
  border-left: 4px solid #f4c040; font-size: 14px; margin-bottom: 18px;
}
.banner.info { background: #e2eeff; color: var(--navy); border-left-color: var(--blue-500); }
.banner.danger { background: #ffe4ee; color: #9c0045; border-left-color: var(--pink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 40px 0 96px; }
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero h1 { font-size: 34px; line-height: 1.1; }
  .hero p.lead { margin-left: 0; margin-right: 0; }
  .hero .cta { justify-content: flex-start; }
  .hero-scene { max-width: 320px; aspect-ratio: 1 / 1; margin-top: 24px; margin-left: 0; margin-right: auto; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .footer .container { grid-template-columns: 1fr; gap: 24px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: flex; overflow-x: auto; padding: 10px; gap: 4px; }
  .sidebar a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding-left: 14px !important; }
  .sidebar a:hover { padding-left: 14px !important; }
  .sidebar a.active { border-bottom-color: var(--blue-200); border-left-color: transparent; }
  .sidebar h4 { display: none; }
  .main-panel { padding: 20px; }
  section { padding: 40px 0; }
  section h2 { font-size: 26px; }
  .container { padding: 0 18px; }

  /* Hamburger + drawer */
  .navbar .container { position: relative; }
  .navbar .brand img { height: 44px; }
  .navbar .brand-text { font-size: 15px; }
  .navbar .hamburger { display: block; }
  .navbar nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px; right: 16px;
    background: var(--white);
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(36,93,179,.18);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    z-index: 99;
    animation: nav-slide .22s cubic-bezier(.2,.8,.2,1);
  }
  .navbar.nav-open nav { display: flex; }
  .navbar nav a { padding: 12px 14px; border-radius: 10px; font-size: 15px; width: 100%; }
  .navbar nav a::after { display: none; }
  .navbar nav a.btn { width: 100%; justify-content: center; margin-top: 4px; }

  /* Dim the page behind the open drawer */
  .navbar.nav-open::after {
    content: ''; position: fixed; inset: 70px 0 0 0;
    background: rgba(0,0,0,.28); z-index: 98;
    animation: fade-in .22s ease;
  }
}
@keyframes nav-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero .badge-chip { font-size: 12px; }
  .stat .num { font-size: 26px; }
  .card { padding: 20px; }
  .hero-scene { max-width: 260px; }
}

/* ============================================================
   Modal — used by the T-shirt Size guide
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(36, 93, 179, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* Use flex-start + margin:auto so short-height viewports can scroll the whole backdrop
     (align-items:center traps the top of an oversized modal above the viewport). */
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0; transition: opacity .22s ease;
}
.modal-backdrop.is-open { opacity: 1; }
.modal-backdrop[hidden] { display: none !important; }

.modal {
  background: var(--white);
  width: 100%; max-width: 920px;
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(36, 93, 179, 0.35);
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(.98);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  position: relative;
  margin: auto;                    /* vertical center when it fits */
}
/* On tall viewports, pin the header + footer and scroll only the table area. */
@media (min-height: 640px) {
  .modal {
    max-height: calc(100vh - 48px);
    overflow: hidden;              /* clip rounded corners so inner region scrolls */
  }
}
.modal-backdrop.is-open .modal { transform: none; }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.22);
  font-size: 26px; line-height: 1; color: #ffffff;
  font-weight: 400;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
  z-index: 3;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-close:hover,
.modal-close:focus {
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  border-color: var(--white);
  transform: rotate(90deg);
  outline: none;
}

.modal-head {
  padding: 22px 32px 18px;
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--navy) 100%);
  color: var(--white);
  flex: 0 0 auto;                  /* stays visible, doesn't shrink */
}
.modal-head h2 { font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.modal-head p  { color: rgba(255,255,255,.9); font-size: 14px; max-width: 640px; }

.modal .sg-recommender {
  padding: 18px 32px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(to bottom, #f7fbff, var(--white));
  flex: 0 0 auto;
}
.modal .sg-recommender .banner { margin-top: 14px; margin-bottom: 0; }

.modal .sg-table-wrap {
  flex: 1 1 auto; min-height: 0;   /* key: allow this region to shrink + scroll */
  overflow: auto;
  padding: 18px 32px;
}
.sg-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px; min-width: 640px;
}
.sg-table thead th {
  background: var(--navy); color: var(--white);
  padding: 10px 8px; text-align: center;
  font-weight: 600; letter-spacing: .5px;
  border: 1px solid rgba(255,255,255,.12);
}
.sg-table thead th.sg-label { text-align: left; padding-left: 18px; }
.sg-table tbody td {
  padding: 10px 8px; text-align: center;
  border-bottom: 1px solid #eef2f7;
  border-right: 1px solid #f4f8fc;
}
.sg-table tbody tr:nth-child(even) { background: #f9fcff; }
.sg-table tbody tr:hover { background: var(--blue-50); }
.sg-table .sg-row-head {
  text-align: left; font-weight: 600; color: var(--navy);
  background: #f4f8fc; padding-left: 18px;
  position: sticky; left: 0; z-index: 1;
  border-right: 2px solid var(--blue-200);
}

.modal-foot {
  padding: 14px 32px 18px;
  border-top: 1px solid #eef2f7;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--white);
  flex: 0 0 auto;
}
.modal-foot .sg-note {
  font-size: 13px; color: var(--gray); flex: 1; min-width: 220px;
}

/* Size-guide trigger button next to the label */
.size-guide-trigger {
  margin-left: 8px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 30px;
  border: 1.5px solid var(--blue-500);
  background: var(--blue-50); color: var(--blue-500);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
  vertical-align: middle;
}
.size-guide-trigger:hover,
.size-guide-trigger:active,
.size-guide-trigger:focus {
  background: var(--blue-500); color: var(--white); transform: translateY(-1px);
}
@media (max-width: 640px) {
  .field label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .size-guide-trigger { margin-left: 0; padding: 5px 14px; font-size: 13px; }
}

@media (max-width: 640px) {
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal {
    max-width: 100%;
    max-height: 100vh; height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  .modal-close { top: 10px; right: 10px; }
  .modal-head { padding: 18px 20px 14px; padding-right: 60px; }
  .modal-head h2 { font-size: 18px; }
  .modal-head p { font-size: 13px; }
  .modal .sg-recommender { padding: 14px 16px; }
  .modal .sg-recommender .form-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .modal .sg-recommender .hint { display: none; }
  .modal .sg-table-wrap { padding: 14px 0; }
  .sg-table { font-size: 12px; min-width: 560px; }
  .sg-table thead th { padding: 8px 6px; }
  .sg-table tbody td { padding: 8px 6px; }
  .sg-table .sg-row-head {
    background: #eef5ff; padding-left: 12px; white-space: nowrap;
    box-shadow: 2px 0 0 var(--blue-200);
  }
  .modal-foot {
    padding: 12px 16px; gap: 10px;
    flex-direction: column; align-items: stretch;
    /* Pin the action button above the iOS home-bar */
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .modal-foot .sg-note { font-size: 12px; text-align: center; min-width: 0; }
  .modal-foot .btn { width: 100%; }
}

@media (max-width: 420px) {
  .sg-table { min-width: 480px; }
}

/* Consent checkbox row — keep checkbox compact, align with text on its right. */
.consent-field { margin-top: 18px; }
.consent-label {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.5; color: #333; cursor: pointer;
  padding: 14px 16px; background: var(--blue-50);
  border: 1.5px solid #cfe1f7; border-radius: 12px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.consent-label:hover { border-color: var(--blue-200); background: #e9f3ff; }
.consent-label input[type="checkbox"] {
  /* override the global .field input { width: 100% } */
  width: 20px !important; height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue-500);
  padding: 0; border-radius: 4px;
  cursor: pointer;
}
.consent-label span { flex: 1; }
.consent-label a { font-weight: 600; }

/* ============================================================
   Floating action stack — Discord + Strava CTAs (always visible
   over any content, centered on the right edge of the viewport).
   ============================================================ */
#fab-stack {
  position: fixed !important;
  right: 20px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);    /* vertical centre */
  z-index: 9999 !important;
  display: flex; flex-direction: column;
  gap: 14px;
  align-items: flex-end;
  pointer-events: none;           /* children re-enable */
}
/* Give the buttons themselves the bob animation, not the whole stack,
   so the stack's own transform can stay as a plain centring offset. */
#fab-stack .fab-btn { animation: fab-bob 4.2s ease-in-out infinite; }
#fab-stack .fab-strava .fab-btn { animation-delay: .4s; }
@keyframes fab-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}
#fab-stack .fab {
  position: relative;
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  animation: fab-in .35s cubic-bezier(.2, .8, .2, 1);
}
#fab-stack .fab[hidden] { display: none; }
#fab-stack .fab-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
#fab-stack .fab-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  text-decoration: none;
}
#fab-stack .fab-label {
  background: rgba(255,255,255,.96);
  color: var(--navy);
  font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 24px;
  box-shadow: 0 6px 18px rgba(36, 93, 179, 0.18);
  order: -1;              /* place label left of the button */
  white-space: nowrap;
  transform: translateX(6px); opacity: 0;
  transition: transform var(--t-base), opacity var(--t-base);
  pointer-events: none;
}
#fab-stack .fab:hover .fab-label {
  transform: translateX(0); opacity: 1;
}
#fab-stack .fab-close {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: #1a1a1a; color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity var(--t-base);
  display: flex; align-items: center; justify-content: center;
}
#fab-stack .fab:hover .fab-close { opacity: 1; }
#fab-stack .fab-close:hover { background: var(--pink); }

/* Gentle pulse on first appearance to draw the eye */
#fab-stack .fab-btn::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 currentColor;
  animation: fab-pulse 2.4s ease-out 3;
  pointer-events: none;
}
#fab-stack .fab-strava .fab-btn::after { color: #FC4C02; }
#fab-stack .fab-discord .fab-btn::after { color: #5865F2; }

@keyframes fab-pulse {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: .6; }
  70%  { box-shadow: 0 0 0 14px transparent; opacity: 0; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: 0; }
}
@keyframes fab-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  /* On phones: pin to bottom-right (thumb-reachable) instead of mid-right */
  #fab-stack {
    right: 14px;
    top: auto; bottom: 20px;
    transform: none;
    animation: none;
    gap: 10px;
  }
  #fab-stack .fab-btn { width: 52px; height: 52px; }
  #fab-stack .fab-label { display: none; }
  #fab-stack .fab-close { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #fab-stack .fab-btn::after { animation: none; }
}
