:root {

  /* Pitch-at-night palette */
  --bg: #060b09;
  --bg-2: #081310;
  --surface: rgba(var(--gp-deep), 0.72);
  --surface-solid: var(--gp-solid);
  --line: rgba(var(--gp-hair), 0.12);
  --chalk: var(--gp-text-2);

  --text: var(--gp-text);
  --muted: var(--gp-muted);
  --muted-2: var(--gp-muted-2);

  --accent: #16a34a;
  --accent-light: #22c55e;
  --lime: #a3e635;
  --gold: #e8b04b; /* Floodlight Gold — shared brand accent with the app; reserved for "key moments" (launch) */

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

/* A11y: a clear keyboard focus ring for every control on the public pages
   (keyboard users only, so mouse clicks stay clean). None existed before. */
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip link: the first thing a keyboard/screen-reader user reaches, letting
   them jump past the repeated header straight to the page's main content.
   Off-screen until focused, then it slides into the top-left. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 1000;
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  font: 600 0.9rem "Inter", system-ui, sans-serif;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(34, 197, 94, 0.16), transparent 60%),
    radial-gradient(900px 600px at 100% 110%, rgba(163, 230, 53, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ------------------------------------------------------------------ *
 *  Animated pitch backdrop
 * ------------------------------------------------------------------ */
.pitch {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* mowing stripes */
.pitch::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: repeating-linear-gradient(
    115deg,
    rgba(34, 197, 94, 0.045) 0px,
    rgba(34, 197, 94, 0.045) 90px,
    rgba(var(--gp-deep), 0) 90px,
    rgba(var(--gp-deep), 0) 180px
  );
  transform: rotate(-1.5deg);
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 30%, transparent 80%);
}

.pitch-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1100px, 150vw);
  height: auto;
  transform: translate(-50%, -52%);
  opacity: 0.5;
}

.pitch-lines .draw {
  stroke: var(--chalk);
  stroke-width: 1.4;
  fill: none;
  opacity: 0.35;
  stroke-dasharray: var(--len, 2000);
  stroke-dashoffset: var(--len, 2000);
  animation: draw 2.4s var(--ease) forwards;
}

.pitch-lines .draw.d2 { animation-delay: 0.15s; }
.pitch-lines .draw.d3 { animation-delay: 0.3s; }
.pitch-lines .draw.d4 { animation-delay: 0.45s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* drifting glow orb */
.orb {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.55), transparent 70%);
  animation: drift 22s ease-in-out infinite;
}
.orb.orb-2 {
  right: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.28), transparent 70%);
  animation-duration: 28s;
  animation-direction: reverse;
}
.orb.orb-1 { left: -140px; top: -120px; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
}

/* floating sphere — a neutral spark, not tied to any one sport */
.ball {
  position: absolute;
  top: 18%;
  right: 12%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #eafff2 0%, #7fe6a4 45%, var(--accent) 100%);
  box-shadow:
    0 18px 44px rgba(34, 197, 94, 0.35),
    inset -6px -8px 14px rgba(0, 0, 0, 0.22),
    inset 4px 5px 10px rgba(255, 255, 255, 0.35);
  opacity: 0.85;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}

@media (max-width: 640px) {
  .ball { top: 8%; right: 8%; width: 34px; height: 34px; }
  .orb { width: 320px; height: 320px; }
}

/* ------------------------------------------------------------------ *
 *  Layout
 * ------------------------------------------------------------------ */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 40px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.brand .mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #05140b;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.brand .dim { color: var(--muted-2); font-weight: 500; }
.brand .brandmk { display: block; flex-shrink: 0; }

/* Brand lockup — the field-mark + full wordmark, used as the logo on the
   static panel pages (login, contact). Links home, like a logo should. */
.brandlock {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: var(--display); font-weight: 700; color: var(--text);
  font-size: 1.05rem; letter-spacing: -0.01em;
}
.brandlock .brandmk { display: block; flex-shrink: 0; }
.brandlock .dim { color: var(--muted-2); font-weight: 500; }
.brandlock:hover { color: var(--gp-text); }

/* Account control — the same dropdown the rendered marketing pages use, so the
   coming-soon door matches. Signed out: a plain Sign in link. Signed in (via
   the header script): the member's name opens account / go-to-app / log out. */
.acct { position: relative; display: inline-block; text-align: left; }
.acct-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: rgba(var(--gp-deep), 0.55); border: 1px solid var(--line);
  color: var(--chalk); border-radius: 999px; padding: 5px 11px 5px 6px;
  font: inherit; font-size: 0.9rem; line-height: 1;
}
.acct-btn:hover { border-color: rgba(var(--gp-hair), 0.34); }
.acct-btn:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.acct-av {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #04140b; font-weight: 700; font-size: 0.78rem; font-family: var(--display);
}
.acct-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-cx { opacity: 0.7; transition: transform 0.15s ease; }
.acct-btn[aria-expanded="true"] .acct-cx { transform: rotate(180deg); }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); z-index: 60;
}
.acct-menu[hidden] { display: none; }
.acct-menu a, .acct-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: none; border: 0; color: var(--gp-text-3); font: inherit; font-size: 0.92rem;
  padding: 9px 10px; border-radius: 9px; text-decoration: none; cursor: pointer;
}
.acct-menu a:hover, .acct-menu a:focus-visible,
.acct-menu button:hover, .acct-menu button:focus-visible {
  background: rgba(34, 197, 94, 0.12); color: var(--text); outline: none;
}
.acct-menu .sep { height: 1px; background: rgba(var(--gp-hair), 0.1); margin: 5px 4px; }
.acct-menu .danger:hover, .acct-menu .danger:focus-visible { background: rgba(232, 110, 90, 0.14); color: var(--gp-danger-text); }

.topbar-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
}

.topbar-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.topbar-links a:hover { color: var(--text); }

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vh, 72px) 0;
}

.center-wrap {
  width: min(100%, 860px);
  margin: 0 auto;
  text-align: center;
}

/* ------------------------------------------------------------------ *
 *  Hero
 * ------------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  color: var(--chalk);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.6);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(163, 230, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}

h1 {
  margin: 26px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

h1 .accent {
  background: linear-gradient(120deg, var(--accent-light), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 22px auto 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.7;
}

/* staggered entrance */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.9s var(--ease) forwards;
}
.reveal.r1 { animation-delay: 0.05s; }
.reveal.r2 { animation-delay: 0.18s; }
.reveal.r3 { animation-delay: 0.31s; }
.reveal.r4 { animation-delay: 0.44s; }
.reveal.r5 { animation-delay: 0.57s; }

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ *
 *  Waitlist
 * ------------------------------------------------------------------ */
.waitlist {
  margin: 40px auto 0;
  max-width: 480px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gp-hair), 0.14);
  background: rgba(var(--gp-deep), 0.5);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.waitlist-form:focus-within {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12), var(--shadow);
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0 12px 0 18px;
  outline: none;
}

.waitlist-form input::placeholder { color: var(--muted-2); }

/* honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  border: none;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: #05140b;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: 999px;
  padding: 13px 24px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.35);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.7; cursor: default; }

/* Anchor buttons (used on the marketing/launch pages) render as real buttons. */
a.btn { display: inline-block; text-decoration: none; text-align: center; }
/* Secondary "ghost" button: outline instead of the filled green pill. Defined
   after .btn so it wins on combined class="btn btn-ghost". */
.btn-ghost {
  background: transparent;
  color: var(--gp-text-2);
  border: 1px solid rgba(var(--gp-hair), 0.22);
}
.btn-ghost:hover:not(:disabled) {
  border-color: rgba(34, 197, 94, 0.6);
  color: var(--gp-text);
  background: rgba(34, 197, 94, 0.08);
  box-shadow: none;
}

.waitlist-note {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 0.85rem;
}

.waitlist-msg {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.waitlist-msg.show { opacity: 1; transform: none; }
.waitlist-msg.ok { color: var(--lime); }
.waitlist-msg.err { color:var(--gp-danger-text); }

/* success swap-in */
.waitlist.done .waitlist-form,
.waitlist.done .waitlist-note { display: none; }

.success-card {
  display: none;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}
.waitlist.done .success-card { display: flex; }

.success-card .check {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--lime));
  color: #05140b;
  font-size: 1.2rem;
  animation: pop 0.5s var(--ease);
}
.success-card h3 { margin: 0 0 2px; font-family: var(--display); font-size: 1rem; }
.success-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

/* ------------------------------------------------------------------ *
 *  Teaser pills
 * ------------------------------------------------------------------ */
.teasers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 44px auto 0;
  max-width: 620px;
}

.teaser {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--gp-deep), 0.5);
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.teaser:hover {
  color: var(--text);
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}
.teaser .ico { font-size: 1.05rem; }

/* ------------------------------------------------------------------ *
 *  Footer
 * ------------------------------------------------------------------ */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-size: 0.85rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-footer a:hover { color: var(--text); border-bottom-color: var(--accent); }

/* ------------------------------------------------------------------ *
 *  Cards / panels (contact + login pages)
 * ------------------------------------------------------------------ */
.panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.panel .eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

.panel h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.panel-sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Forms */
.form { margin: 28px 0 0; }

.form-group { margin-bottom: 20px; text-align: left; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--chalk);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(var(--gp-deep), 0.55);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(34, 197, 94, 0.08);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-2); }

/* Onboarding-form helpers: a row that STACKS on narrow screens (was a fixed
   multi-column flex that cramped city/state/ZIP on a phone), per-field errors,
   a helper hint, and a show/hide-password control. */
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-row .form-group { flex: 1 1 130px; }
.field-error { display: block; margin-top: 6px; font-size: 0.82rem; font-weight: 500; color:var(--gp-danger-text); }
.field-error:empty { display: none; }
.form-group input[aria-invalid="true"] { border-color:var(--gp-danger-text); }
.form-hint { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--muted-2); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted);
  font: 600 0.82rem "Inter", system-ui, sans-serif; cursor: pointer;
  padding: 6px 8px; border-radius: 6px;
}
.pw-toggle:hover { color: var(--chalk); }

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  text-align: left;
}
.form-checkbox input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.form-checkbox label { margin: 0; color: var(--muted); font-size: 0.92rem; cursor: pointer; }

.btn-block { width: 100%; padding: 15px 24px; }

.auth-divider {
  position: relative;
  text-align: center;
  margin: 28px 0;
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.auth-divider span {
  position: relative;
  padding: 0 12px;
  background: var(--surface-solid);
  color: var(--muted-2);
  font-size: 0.85rem;
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
}
.btn-social {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(var(--gp-deep), 0.5);
  color: var(--text);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-social:hover:not(:disabled) { border-color: var(--accent); background: rgba(34, 197, 94, 0.1); }
.btn-social:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-footer { margin-top: 22px; font-size: 0.92rem; }
.auth-footer p { margin: 10px 0; color: var(--muted); }

.link-accent, .link-subtle {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link-accent { color: var(--chalk); }
.link-accent:hover { color: var(--accent-light); border-bottom-color: var(--accent); }
.link-subtle { color: var(--accent-light); }
.link-subtle:hover { color: var(--chalk); border-bottom-color: var(--accent); }

.soon-pill {
  display: inline-block;
  margin-top: 26px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
  color: var(--chalk);
  font-size: 0.85rem;
  font-weight: 500;
}

.panel-note {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}
.back-link:hover { color: var(--text); }

/* center the card pages vertically */
.centered-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 48px);
}

/* ------------------------------------------------------------------ *
 *  Reduced motion
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .pitch-lines .draw { stroke-dashoffset: 0; }
}

@media (max-width: 560px) {
  .topbar-links { gap: 16px; }
  .topbar-links .hide-sm { display: none; }
  .waitlist-form { flex-direction: column; border-radius: var(--radius); padding: 10px; }
  .waitlist-form input[type="email"] { padding: 12px 14px; }
  .btn { width: 100%; padding: 14px; }
  .social-buttons { grid-template-columns: 1fr; }
}

/* ── member nav + user menu ───────────────────────────────────────────
   The menu is a <details>: no script opens it, which is what keeps it
   working under a CSP with no inline handlers. */
.topbar-links .navpage { display: none; }
@media (min-width: 720px) { .topbar-links .navpage { display: inline; } }

.usermenu { position: relative; display: inline-block; }
.usermenu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(var(--gp-hair2), .14);
  border-radius: 999px;
  color: var(--gp-text-3);
  font-size: .86rem;
  line-height: 1;
  white-space: nowrap;
}
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary:hover { border-color: rgba(var(--gp-hair2), .28); }
.usermenu > summary:focus-visible { outline: 2px solid #4ade80; outline-offset: 2px; }
.usermenu[open] > summary { border-color: rgba(74, 222, 128, .5); }
.um-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; }
.um-caret { font-size: .7em; opacity: .7; }

.usermenu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid rgba(var(--gp-hair2), .12);
  border-radius: 12px;
  background: var(--gp-solid);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.usermenu-panel a,
.usermenu-panel .um-signout {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--gp-text-3);
  font-size: .88rem;
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  width: 100%;
  cursor: pointer;
  font: inherit;
}
.usermenu-panel a:hover,
.usermenu-panel .um-signout:hover { background: rgba(var(--gp-hair2), .07); color: var(--gp-text); }
.usermenu-panel .um-signout { border-top: 1px solid rgba(var(--gp-hair2), .08); margin-top: 4px; color: var(--gp-danger-text); }

/* Light theme (html[data-theme="light"], set by /theme.js). Text, lines and
   panels follow the shared tokens in /theme.css; these are the site's own. */
html[data-theme="light"] {
  --bg: #f4f1e8;
  --bg-2: #ebe7da;
  --accent: #16a34a;
  --accent-light: #15803d;
  --lime: #4d7c0f;
  --gold: #9a6512;
  --shadow: 0 30px 80px rgba(6, 28, 23, 0.12);
}
