/* The homepage only (pages/index.html). The other site pages keep cloud-pages.css.
   Lime is the action colour (buttons), pink the line colour (rings, outlines),
   the same split the app itself uses. */

@font-face {
  font-family: "Geist";
  src: url("/assets/home/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --lime: #9fd402;
  --lime-rgb: 159, 212, 2;
  --on-lime: #0d1400;
  --pink: #fa2993;
  --pink-rgb: 250, 41, 147;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  /* dark: a court under lights */
  --bg: #070b10;
  --bg-rgb: 7, 11, 16;
  --bg-2: #0c121a;
  --text: #eef2f6;
  --muted: #9aa6b5;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(18, 24, 33, 0.58);
  --glass-edge: rgba(255, 255, 255, 0.12);
  --glass-hi: rgba(255, 255, 255, 0.08);
  --tile: #0f151e;
  --pink-text: #ff5aae;
  --lime-text: #b6e83a;
  --shadow-rgb: 0, 0, 0;
  --photo-opacity: 0.85;
  --scrim-1: 0.8; --scrim-2: 0.55; --scrim-3: 0.12; --scrim-4: 0.25;
  --hl-end: var(--lime);
  --halo: none;
  --halo-a: 0;
  --field: rgba(6, 9, 13, 0.7);
  color-scheme: dark;
}

/* light: the same court in daylight */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f6f1;
    --bg-rgb: 243, 246, 241;
    --bg-2: #e9eee6;
    --text: #0c1219;
    --muted: #4b5664;
    --line: rgba(12, 18, 25, 0.1);
    --glass: rgba(255, 255, 255, 0.62);
    --glass-edge: rgba(255, 255, 255, 0.85);
    --glass-hi: rgba(255, 255, 255, 0.7);
    --tile: #ffffff;
    --pink-text: #c20f69;
    --lime-text: #4a6800;
    --shadow-rgb: 22, 40, 20;
    --photo-opacity: 1;
    --scrim-1: 0.9; --scrim-2: 0.74; --scrim-3: 0.04; --scrim-4: 0.1;
    --hl-end: #6a9400;
    --halo-a: 0.9;
    --halo: 0 0 18px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.7);
    --field: rgba(255, 255, 255, 0.9);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f6f1;
  --bg-rgb: 243, 246, 241;
  --bg-2: #e9eee6;
  --text: #0c1219;
  --muted: #4b5664;
  --line: rgba(12, 18, 25, 0.1);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-hi: rgba(255, 255, 255, 0.7);
  --tile: #ffffff;
  --pink-text: #c20f69;
  --lime-text: #4a6800;
  --shadow-rgb: 22, 40, 20;
  --photo-opacity: 1;
    --scrim-1: 0.9; --scrim-2: 0.74; --scrim-3: 0.04; --scrim-4: 0.1;
    --hl-end: #6a9400;
    --halo-a: 0.9;
    --halo: 0 0 18px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.7);
  --field: rgba(255, 255, 255, 0.9);
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }

.glass {
  background: linear-gradient(135deg, var(--glass-hi), transparent 55%), var(--glass);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 60px -20px rgba(var(--shadow-rgb), 0.45);
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .nav { background: var(--bg-2) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 inherit; font-family: inherit; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible, .link:focus-visible, .theme:focus-visible, input:focus-visible {
  outline: 2px solid var(--pink); outline-offset: 3px;
}
.btn.sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn.lime {
  background: var(--lime); color: var(--on-lime);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 28px -10px rgba(var(--lime-rgb), 0.7);
}
.btn.pink {
  background: var(--pink); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 26px -10px rgba(var(--pink-rgb), 0.7);
}
.btn.ghost {
  color: var(--text); background: var(--glass);
  border-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

/* hover lifts only with a real pointer, so a tap on a phone does not leave a button raised */
@media (hover: hover) {
  .btn.lime:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 16px 34px -10px rgba(var(--lime-rgb), 0.8); }
  .btn.pink:hover { transform: translateY(-1px); }
  .btn.ghost:hover { border-color: rgba(var(--pink-rgb), 0.6); }
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(var(--bg-rgb), 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--max); margin: 0 auto; height: 68px;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.mark { display: flex; align-items: center; gap: 8px; text-decoration: none; }
/* The O of OpenPlay is a pickleball: drawn inline (index.html) so it sits on
   the baseline like a letter and scales with the type. */
.ball-o {
  display: inline-block; width: 0.92em; height: 0.92em; flex: none;
  vertical-align: -0.13em; margin: 0 0.05em 0 0.01em; overflow: visible;
}
.ball-o .shell { fill: var(--lime); stroke: var(--pink); stroke-width: 1.7; }
.ball-o .holes { fill: var(--on-lime); }
.mark .word { font-weight: 800; font-size: 26px; letter-spacing: -0.035em; }
.mark .by { font-weight: 600; font-size: 14px; color: var(--muted); margin-left: 2px; }
.club-logo { height: 34px; width: auto; flex: none; }
.nav-right { display: flex; align-items: center; gap: 14px; }
#nav { display: flex; align-items: center; gap: 14px; }
.link { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text); opacity: .85; }
.link:hover { opacity: 1; }
.who { font-size: 14px; color: var(--muted); max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.theme {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0; border-radius: 999px; cursor: pointer;
  color: var(--text); background: var(--glass); border: 1px solid var(--line);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.theme:active { transform: scale(0.94); }
.theme svg {
  grid-area: 1 / 1; width: 20px; height: 20px; fill: currentColor;
  transition: opacity .35s var(--ease), transform .55s var(--ease);
}
.theme .i-sun { color: var(--lime-text); }
.theme[data-current="dark"] .i-moon,
.theme[data-current="light"] .i-sun { opacity: 0; transform: rotate(-70deg) scale(0.5); }
@media (hover: hover) { .theme:hover { border-color: rgba(var(--pink-rgb), 0.6); } }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  --nav-h: 69px;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100lvh - var(--nav-h));
  display: flex; align-items: center;
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
}
.hero-photo {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%;
  opacity: var(--photo-opacity);
  filter: saturate(1.1);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), var(--scrim-1)) 0%, rgba(var(--bg-rgb), var(--scrim-2)) 40%, rgba(var(--bg-rgb), var(--scrim-3)) 75%, rgba(var(--bg-rgb), var(--scrim-4)) 100%),
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.2) 0%, rgba(var(--bg-rgb), 0) 40%, var(--bg) 100%);
}
.hero-in {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center; gap: clamp(24px, 4vw, 56px);
}
.hero h1 {
  font-size: clamp(40px, 4.3vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em;
  max-width: 13ch;
}
.hero h1 .hl {
  background: linear-gradient(100deg, var(--lime-text) 10%, var(--hl-end) 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .brand-word { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* light mode: a soft glow keeps the copy readable over the photo */
.hero h1, .lead { text-shadow: var(--halo); }
.hero h1 .hl { text-shadow: none; filter: drop-shadow(0 0 10px rgba(255, 255, 255, var(--halo-a))); }
.lead { margin-top: 22px; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 40ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------------------------------------------------------------- devices */
.stage {
  --px: 0; --py: 0;
  position: relative; aspect-ratio: 1.38; width: 100%;
  perspective: 1600px;
}
.glow {
  position: absolute; inset: 8% 0 0 6%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 45% at 62% 46%, rgba(var(--lime-rgb), 0.28), transparent 70%),
    radial-gradient(35% 40% at 28% 72%, rgba(var(--pink-rgb), 0.24), transparent 70%);
  filter: blur(30px);
}
.dev {
  position: absolute; margin: 0;
  transform:
    translate3d(calc(var(--px) * var(--d) * -14px), calc(var(--py) * var(--d) * -10px), 0)
    rotateY(calc(var(--px) * 5deg)) rotateX(calc(var(--py) * -4deg));
  transition: transform .9s var(--ease);
  will-change: transform;
}
.dev img { width: 100%; height: auto; }

/* screens catch the light */
.lid, .ipad .screen, .phone .screens { position: relative; overflow: hidden; }
.lid::after, .ipad .screen::after, .phone .screens::after {
  z-index: 1;
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 28%, transparent 42%);
}

.laptop { --d: 1; top: 2%; right: 0; width: 86%; z-index: 1; }
.lid {
  border-radius: 14px 14px 4px 4px; padding: 1.4% 1.4% 2.6%;
  background: linear-gradient(180deg, #1d222a, #0d1014);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 80px -30px rgba(var(--shadow-rgb), 0.7);
}
.lid img { border-radius: 4px; }
.base {
  position: relative; height: 0; padding-bottom: 3.2%;
  margin: 0 -7%;
  border-radius: 2px 2px 18px 18px / 2px 2px 100% 100%;
  background: linear-gradient(180deg, #d9dde3 0%, #a7adb6 45%, #6c727c 100%);
  box-shadow: 0 30px 50px -18px rgba(var(--shadow-rgb), 0.75);
}
.base::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 38%;
  transform: translateX(-50%); border-radius: 0 0 10px 10px; background: rgba(0, 0, 0, 0.18);
}

.ipad, .phone { container-type: inline-size; }

/* iPad: space-grey aluminium edge, even black glass bezel, front camera, top button */
.ipad { --d: 2; left: 0; bottom: -2%; width: 30%; z-index: 2; }
.ipad .frame {
  position: relative; padding: 0.9cqw; border-radius: 7.4cqw;
  background: linear-gradient(135deg, #a3a7ae 0%, #4b4f56 22%, #8c9097 48%, #3b3f45 76%, #858990 100%);
  box-shadow: 0 34px 60px -18px rgba(var(--shadow-rgb), 0.75), 0 8px 18px -8px rgba(var(--shadow-rgb), 0.5);
}
.ipad .frame::before {
  content: ""; position: absolute; top: -0.6cqw; right: 15%; width: 10%; height: 1cqw;
  border-radius: 1cqw 1cqw 0 0; background: linear-gradient(180deg, #8d9198, #5a5e65);
}
.ipad .bezel {
  position: relative; padding: 4.6cqw; border-radius: 6.6cqw;
  background: #07080a; box-shadow: inset 0 0 0 0.35cqw #15171b;
}
.ipad .cam {
  position: absolute; top: 1.65cqw; left: 50%; width: 1.4cqw; height: 1.4cqw; margin-left: -0.7cqw;
  border-radius: 50%; background: radial-gradient(circle at 38% 38%, #3d4d6b 0 22%, #0c1017 62%);
}
.ipad .screen { aspect-ratio: 820 / 1180; border-radius: 2.4cqw; background: #0b0e13; }
.ipad .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 1.1s var(--ease); }
.ipad .screen img.on { opacity: 1; }

/* iPhone: titanium band, thin bezel, Dynamic Island, action + volume buttons left, side button right */
.phone { --d: 3; right: 4%; bottom: -5%; width: 18%; z-index: 3; }
.phone .frame {
  position: relative; padding: 1.6cqw; border-radius: 17cqw;
  background: linear-gradient(135deg, #cfd2d6 0%, #777b83 20%, #e4e6e9 44%, #666a71 72%, #b6b9be 100%);
  box-shadow: 0 34px 60px -16px rgba(var(--shadow-rgb), 0.8), 0 8px 18px -8px rgba(var(--shadow-rgb), 0.5);
}
.phone .frame::before, .phone .frame::after, .phone .bezel::before {
  content: ""; position: absolute; width: 1.3cqw; background: linear-gradient(90deg, #6e727a, #a2a6ad);
}
.phone .frame::before { left: -1cqw; top: 17%; height: 4.5%; border-radius: 1cqw 0 0 1cqw; }
.phone .frame::after {
  left: -1cqw; top: 25%; height: 15%; border-radius: 1cqw 0 0 1cqw;
  background: linear-gradient(180deg, #8a8e95 0 44%, transparent 44% 56%, #8a8e95 56% 100%);
}
.phone .bezel { position: relative; padding: 3cqw; border-radius: 15.4cqw; background: #040506; }
.phone .bezel::before { right: -5.6cqw; top: 27%; height: 11%; border-radius: 0 1cqw 1cqw 0; background: linear-gradient(270deg, #6e727a, #a2a6ad); }
.screens { aspect-ratio: 600 / 1298; border-radius: 12.6cqw; background: #0b0e13; }
/* the app starts below the status bar, as on a real iPhone, so the island never sits on it */
.screens img { position: absolute; top: 13cqw; left: 0; width: 100%; height: auto; opacity: 0; transition: opacity .9s var(--ease); }
.screens img.on { opacity: 1; }
.island {
  position: absolute; z-index: 2; top: 3.2cqw; left: 50%; transform: translateX(-50%);
  width: 30cqw; height: 8.6cqw; border-radius: 999px; background: #030304;
}

/* load-in: the copy rises, the devices settle in one after another */
@media (prefers-reduced-motion: no-preference) {
  .rise > * { animation: rise .9s var(--ease) both; }
  .rise > *:nth-child(2) { animation-delay: .08s; }
  .rise > *:nth-child(3) { animation-delay: .16s; }
  .laptop { animation: settle 1.1s var(--ease) .15s both; }
  .ipad { animation: settle 1.1s var(--ease) .3s both; }
  .phone { animation: settle 1.1s var(--ease) .45s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { opacity: 0; translate: 0 40px; } }

/* ---------------------------------------------------------------- find a club */
.find-wrap {
  position: relative; z-index: 4;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.find {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 24px 40px; align-items: center;
  border-radius: var(--radius); padding: clamp(20px, 3vw, 32px);
}
.find h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 750; }
.find-text p { margin-top: 6px; color: var(--muted); }
.find-field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.find-row {
  display: flex; align-items: center; gap: 0;
  background: var(--field); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 5px 5px 20px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.find-row:focus-within { border-color: rgba(var(--pink-rgb), 0.7); box-shadow: 0 0 0 4px rgba(var(--pink-rgb), 0.15); }
.find-row input {
  flex: 1; min-width: 0; height: 44px; padding: 0 8px 0 1px;
  font: 600 16px/1 inherit; font-family: inherit; color: var(--text);
  background: transparent; border: 0; outline: 0;
}
.find-row input::placeholder { color: var(--muted); opacity: 0.75; font-weight: 500; }
.find-row .btn { height: 44px; }
.error { color: var(--pink-text); font-size: 14px; min-height: 1.4em; margin-top: 8px; padding-left: 20px; }

/* ---------------------------------------------------------------- how a night runs */
section.night, section.bento, section.close {
  max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter);
}
.night { padding-top: clamp(72px, 9vw, 120px); }
.sec-h { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.035em; }
.steps {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  position: relative;
}
/* the baseline the three stops sit on */
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px;
  background: linear-gradient(90deg, var(--lime), rgba(var(--lime-rgb), 0.15));
  transform-origin: left; transform: scaleX(var(--drawn, 1));
  transition: transform 1.4s var(--ease) .1s;
}
.steps li { position: relative; padding-top: 44px; }
.stop {
  position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--pink);
  box-shadow: 0 0 0 6px rgba(var(--pink-rgb), 0.12);
}
.steps h3 { font-size: 21px; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--muted); max-width: 34ch; }

/* ---------------------------------------------------------------- bento */
.bento {
  padding-top: clamp(72px, 9vw, 120px);
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 300px 300px 230px;
}
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--tile); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  box-shadow: 0 20px 50px -30px rgba(var(--shadow-rgb), 0.5);
  transition: transform .5s var(--ease), border-color .4s var(--ease);
}
@media (hover: hover) {
  .tile:hover { transform: translateY(-3px); border-color: rgba(var(--pink-rgb), 0.35); }
}
.t-copy { position: relative; z-index: 1; padding: 26px 28px; }
.t-copy h3 { font-size: 22px; font-weight: 750; }
.t-copy p { margin-top: 8px; color: var(--muted); max-width: 38ch; }

.t-queue { grid-column: span 4; grid-row: span 2; }
.shot {
  flex: 1; margin: 0 28px; border-radius: 12px 12px 0 0;
  border: 1px solid var(--line); border-bottom: 0;
  background-image: url("/assets/home/laptop.png"); background-repeat: no-repeat;
  box-shadow: 0 -10px 40px -12px rgba(var(--lime-rgb), 0.25);
}
.shot-queue { background-size: 150% auto; background-position: 0% 100%; }

.t-phone { grid-column: span 2; grid-row: span 2; justify-content: flex-end; }
.t-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-phone::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 8, 12, 0.9) 100%);
}
.t-copy.over h3 { color: #fff; }
.t-copy.over p { color: rgba(255, 255, 255, 0.78); }

.t-rank { grid-column: span 2; flex-direction: row; }
.t-rank .t-copy { flex: 1.2; padding-right: 8px; }
.shot-rank {
  flex: 1; margin: 22px 0 0 0; border-radius: 12px 0 0 0; border-right: 0;
  background-size: 400% auto; background-position: 68% 36%;
}
.t-tour { grid-column: span 2; justify-content: flex-end; }
.t-tour img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* a pink wash from the corner, then dark at the foot so the words read */
.t-tour::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--pink-rgb), 0.45), transparent 60%),
    linear-gradient(180deg, rgba(5, 8, 12, 0.05) 0%, rgba(5, 8, 12, 0.5) 48%, rgba(5, 8, 12, 0.92) 100%);
}
.t-club {
  grid-column: span 2; justify-content: flex-end;
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(var(--lime-rgb), 0.45), transparent 60%),
    url("https://images.unsplash.com/photo-1711996151738-657bd95b7cdb?auto=format&fit=crop&w=700&q=60") center / cover;
}
.t-club::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 12, 0.15), rgba(5, 8, 12, 0.88));
}
.t-club .t-copy h3 { color: #fff; }
.t-club .t-copy p { color: rgba(255, 255, 255, 0.8); }

/* ---------------------------------------------------------------- closing band */
.close { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(56px, 7vw, 96px); }
.close {
  position: relative;
}
.close-photo {
  width: 100%; height: clamp(380px, 42vw, 520px); object-fit: cover; object-position: center 40%;
  border-radius: calc(var(--radius) + 6px);
}
.close-card {
  position: relative; z-index: 1;
  width: min(560px, calc(100% - 48px)); margin: -220px 0 0 clamp(24px, 5vw, 64px);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
}
.close-card h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.close-card p { margin-top: 12px; color: var(--muted); }
.close-card .cta { margin-top: 24px; }

/* ---------------------------------------------------------------- footer */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.foot strong { color: var(--text); }
.foot { align-items: center; }
/* Padlock's social links; icons are Phosphor (MIT) */
.socials { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.socials-h { font-weight: 600; color: var(--muted); }
.socials-links { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
  color: var(--pink-text); text-decoration: none;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.socials a:active { transform: scale(0.94); }
.socials a svg { width: 21px; height: 21px; fill: currentColor; }
/* Reclub's own mark, cut out of its logo and tinted the same pink as the others */
.i-reclub {
  /* the R is a tall solid letter, so it sits smaller than the round icons to look the same size */
  width: 17px; height: 17px; background: currentColor;
  -webkit-mask: url("/assets/home/reclub-mark.png") center / contain no-repeat;
  mask: url("/assets/home/reclub-mark.png") center / contain no-repeat;
}
.socials a:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
@media (hover: hover) { .socials a:hover { border-color: rgba(var(--pink-rgb), 0.6); } }
@media (max-width: 767px) {
  .foot { flex-direction: column; align-items: flex-start; gap: 18px; }
}
.foot-mark { display: inline-flex; align-items: center; gap: 6px; }
.foot-mark strong { font-size: 17px; }
.foot-mark .club-logo { height: 30px; }
/* the homepage's own version; bump it with each homepage update */
.foot-mark .ver {
  margin-left: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .night .steps { --drawn: 0; }
  .night.in .steps { --drawn: 1; }
  .bento .tile { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .4s var(--ease); }
  .bento.in .tile { opacity: 1; transform: none; }
  .bento.in .tile:nth-child(2) { transition-delay: .07s; }
  .bento.in .tile:nth-child(3) { transition-delay: .14s; }
  .bento.in .tile:nth-child(4) { transition-delay: .21s; }
  .bento.in .tile:nth-child(5) { transition-delay: .28s; }
  @media (hover: hover) { .bento.in .tile:hover { transform: translateY(-3px); transition-delay: 0s; } }
}

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1023px), (max-width: 1199px) and (orientation: portrait) {
  /* the copy sits above the devices here, so the fade runs top to bottom */
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(var(--bg-rgb), var(--scrim-1)) 0%, rgba(var(--bg-rgb), var(--scrim-2)) 46%,
      rgba(var(--bg-rgb), var(--scrim-3)) 62%, rgba(var(--bg-rgb), var(--scrim-3)) 82%, var(--bg) 100%);
  }
  .hero-in { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(44px, 6.6vw, 60px); max-width: 16ch; }
  .lead { max-width: 48ch; }
  .cta { margin-top: 28px; }
  .stage { width: min(100%, 880px); justify-self: center; }
  .find { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; }
  .t-queue { grid-column: span 2; grid-row: auto; min-height: 420px; }
  .t-phone { grid-column: span 1; grid-row: auto; min-height: 360px; }
  .t-rank { grid-column: span 1; flex-direction: column; min-height: 360px; }
  .t-rank .shot-rank { margin: 0 0 0 28px; min-height: 170px; background-size: 450% auto; background-position: 66% 18%; }
  .t-tour, .t-club { grid-column: span 1; min-height: 220px; }
  .t-tour { min-height: 300px; }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 767px) {
  .nav-in { height: 60px; gap: 10px; }
  .mark { gap: 6px; }
  .link { white-space: nowrap; }
  .nav-right { gap: 10px; }
  .theme { width: 36px; height: 36px; }
  .theme svg { width: 18px; height: 18px; }
  .mark .word { font-size: 22px; }
  .mark .club-logo { height: 27px; }
  .link { font-size: 14px; }
  #nav .btn.sm { display: none; } /* the hero's own button is right below */
  .hero { --nav-h: 61px; padding-top: 28px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 46px); }
  .cta .btn { flex: 1; }
  .stage { aspect-ratio: 1.15; margin-top: 8px; }
  .laptop { width: 96%; right: -2%; }
  .ipad { width: 34%; }
  .phone { width: 23%; right: 2%; bottom: -3%; }
  .find-row { padding-left: 16px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: top; transform: scaleY(var(--drawn, 1));
    background: linear-gradient(180deg, var(--lime), rgba(var(--lime-rgb), 0.15)); }
  .steps li { padding: 0 0 0 48px; }
  .bento { grid-template-columns: 1fr; }
  .t-queue, .t-phone, .t-rank, .t-tour, .t-club { grid-column: auto; }
  .t-queue { min-height: 400px; }
  .t-tour { min-height: 320px; }
  .shot-queue { background-size: 260% auto; }
  .close-card { width: auto; margin: -120px 16px 0; }
  .close-photo { height: 300px; }
}

/* the smallest phones */
@media (max-width: 389px) {
  .nav-in { padding: 0 12px; }
  .mark .word { font-size: 20px; }
  .mark .club-logo { height: 24px; }
}
@media (max-width: 300px) {
  #nav .link { display: none; } /* the hero's Log in button sits right below */
}

/* phones held sideways and other short, wide screens: side by side again, like a laptop */
@media (min-width: 640px) and (max-width: 1023px) and (max-height: 560px) {
  .hero { padding: 24px 0 40px; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; }
  .hero h1 { font-size: clamp(30px, 4.6vw, 40px); max-width: 12ch; }
  .lead { font-size: 15px; margin-top: 14px; }
  .cta { margin-top: 20px; }
  .cta .btn { height: 44px; padding: 0 18px; font-size: 15px; flex: none; }
  .stage { width: 100%; aspect-ratio: 1.38; margin-top: 0; }
  .laptop { width: 86%; right: 0; }
  .ipad { width: 30%; }
  .phone { width: 18%; right: 4%; bottom: -5%; }
}
