/* ==========================================================================
   PKBL.asia — Court theme tokens (matches PKBL.asia-design / themes.jsx · court)
   ========================================================================== */

:root {
  --bg: #F4EFE3;          /* cream */
  --surface: #FBF8F0;     /* lighter cream */
  --fg: #0E2A22;          /* deep court green ink */
  --mute: #5C6B62;
  --line: #CFC8B6;
  --accent: #0B3D2E;      /* court green */
  --accent-hover: #0a3327;
  --accent-text: #F5C518; /* sport yellow */
  --lemon: #F5C518;
  --lemon-hover: #FFD23F;
  --accent-soft: rgba(11, 61, 46, 0.06);
  --overlay: rgba(14, 42, 34, 0.55);

  --radius-btn: 6px;
  --radius-card: 6px;
  --radius-sm: 4px;

  --font: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* ==========================================================================
   Layout
   ========================================================================== */

.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Top bar
   ========================================================================== */

.topbar {
  padding: 22px 48px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__chip {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mute);
}

.wordmark {
  font-family: var(--font);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.025em;
  color: var(--fg);
  display: inline-flex;
  align-items: baseline;
}

.wordmark__dot { color: var(--accent); font-weight: 800; }

/* Pickleball mark */
.ball {
  width: 26px;
  height: 26px;
  flex: none;
  position: relative;
  border-radius: 50%;
  background: var(--lemon);
}

.ball::before,
.ball::after,
.ball__hole {
  content: "";
  position: absolute;
  width: 13%;
  height: 13%;
  border-radius: 50%;
  background: rgba(11, 61, 46, 0.32);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ball::before { transform: translate(-50%, -50%) translate(0, -32%); }
.ball::after  { transform: translate(-50%, -50%) translate(0, 32%); }
.ball__hole.l { transform: translate(-50%, -50%) translate(-32%, 0); }
.ball__hole.r { transform: translate(-50%, -50%) translate(32%, 0); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 64px 48px 72px;
  position: relative;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.lemon-line {
  width: 40px;
  height: 4px;
  background: var(--lemon);
  border-radius: 2px;
  flex: none;
}

.eyebrow__text {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mute);
}

.hero__h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--fg);
  text-wrap: balance;
}

.hero__sub {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.5;
  color: var(--mute);
  margin: 0 0 32px;
  max-width: 560px;
  text-wrap: pretty;
}

.hero__note {
  font-size: 14px;
  color: var(--mute);
  margin: 22px 0 0;
  line-height: 1.5;
  max-width: 480px;
}

/* ==========================================================================
   CTA Button
   ========================================================================== */

.cta {
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: var(--radius-btn);
  padding: 16px 28px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
  display: inline-block;
  text-decoration: none;
}

.cta:hover { background: var(--accent-hover); }
.cta--full { width: 100%; }
.cta--lemon {
  background: var(--lemon);
  color: var(--fg);
}
.cta--lemon:hover { background: var(--lemon-hover); }

/* ==========================================================================
   Bullets section
   ========================================================================== */

.bullets {
  padding: 36px 48px 56px;
  border-top: 1px solid var(--line);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mute);
  margin-bottom: 26px;
}

.bullets__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bullets__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg);
}

.bullets__num {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.bullets__text {
  flex: 1;
  text-wrap: pretty;
}

/* ==========================================================================
   Closing section
   ========================================================================== */

.closing {
  padding: 56px 48px 64px;
  background: var(--accent);
  color: var(--bg);
  border-top: 1px solid var(--line);
}

.closing .eyebrow__text {
  color: rgba(244, 239, 227, 0.7);
}

.closing__pitch {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.022em;
  margin: 0 0 32px;
  color: var(--bg);
  max-width: 700px;
  text-wrap: pretty;
}

.closing__note {
  font-size: 13px;
  color: rgba(244, 239, 227, 0.7);
  margin: 22px 0 0;
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 28px 48px 36px;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--mute);
}

.footer .wordmark { font-size: 14px; }

.footer a { color: var(--mute); text-decoration: none; }
.footer a:hover { color: var(--fg); }

.footer__sep { margin: 0 6px; opacity: 0.5; }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
  animation: lbFade 0.2s ease;
}

.lightbox[data-open="true"] { display: flex; }

@keyframes lbFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__card {
  background: var(--surface);
  border-radius: 8px;
  padding: 40px 44px 36px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(11, 61, 46, 0.18),
              0 6px 18px rgba(11, 61, 46, 0.08);
  font-family: var(--font);
  color: var(--fg);
  position: relative;
  animation: lbPop 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes lbPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
}
.lightbox__close:hover { background: var(--accent-soft); color: var(--fg); }

.lightbox__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.lightbox__brand .wordmark { font-size: 15px; }

.lightbox__h2 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.lightbox__sub {
  font-size: 14.5px;
  color: var(--mute);
  margin: 0 0 22px;
  line-height: 1.5;
}

.lightbox__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mute);
}

.lightbox__input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  background: #FFF;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s ease;
}
.lightbox__input:focus { border-color: var(--accent); }

.lightbox__legal {
  font-size: 12px;
  color: var(--mute);
  margin: 18px 0 0;
  line-height: 1.5;
}

/* Lightbox-disable scroll on body */
body[data-lb-open="true"] { overflow: hidden; }

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 640px) {
  .topbar { padding: 16px 22px 14px; }
  .topbar .wordmark { font-size: 17px; }
  .ball { width: 22px; height: 22px; }

  .hero { padding: 28px 22px 36px; }
  .hero__h1 { font-size: 32px; line-height: 1.1; }
  .hero__sub { font-size: 16px; }
  .eyebrow { margin-bottom: 18px; }
  .lemon-line { width: 28px; }

  .bullets { padding: 32px 22px 32px; }
  .bullets__item { font-size: 16px; }
  .section-label { margin-bottom: 18px; }

  .closing { padding: 32px 22px 32px; }
  .closing__pitch { font-size: 22px; margin-bottom: 24px; }

  .footer { padding: 22px 22px 28px; }

  .lightbox { padding: 20px; }
  .lightbox__card { padding: 32px 24px 28px; }
  .lightbox__h2 { font-size: 24px; }
}

/* ==========================================================================
   Survey page
   ========================================================================== */

.survey {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 64px 36px;
}

.survey__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 6px;
  min-height: 32px;
}

.survey__back {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mute);
  padding: 6px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
}
.survey__back:hover { color: var(--fg); }
.survey__back[hidden] { visibility: hidden; }

.survey__dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.survey__dot {
  height: 6px;
  width: 6px;
  border-radius: 999px;
  background: var(--line);
  transition: width 0.3s ease, background 0.3s ease;
}

.survey__dot[data-active="true"] {
  background: var(--accent);
  width: 18px;
}

.survey__hdr {
  padding: 18px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.survey__hdr-line {
  font-size: 14px;
  line-height: 1.45;
  max-width: 50ch;
  color: var(--mute);
}

.survey__stage {
  flex: 1;
  min-height: 0;
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.survey__step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: stepIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes stepIn {
  from { opacity: 0; transform: translate3d(20px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.survey__q { display: flex; flex-direction: column; gap: 8px; }

.survey__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mute);
}

.survey__title {
  margin: 0;
  font-family: var(--font);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  text-wrap: pretty;
}

.survey__kicker {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 36ch;
  color: var(--mute);
}

.survey__fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}

.survey__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.survey__field-lbl {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mute);
}

.survey__input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--fg);
  resize: none;
}
.survey__input:focus { border-color: var(--accent); }

.survey__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.survey__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: left;
  font-size: 15px;
  line-height: 1.4;
  color: var(--fg);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.survey__row:hover { border-color: var(--accent); }
.survey__row[data-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.survey__check {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.15s;
}
.survey__row[data-selected="true"] .survey__check {
  border-color: var(--accent);
  background: var(--accent);
}

.survey__radio {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.survey__row[data-selected="true"] .survey__radio { border-color: var(--accent); }
.survey__radio span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: transparent;
  display: block;
}
.survey__row[data-selected="true"] .survey__radio span { background: var(--accent); }

.survey__row-lbl { display: flex; flex-direction: column; gap: 4px; }
.survey__row-sub { font-size: 12px; color: var(--mute); }

.survey__foot {
  padding: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.survey__skip {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mute);
  font-family: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 0;
}
.survey__skip:hover { color: var(--fg); }

.survey__next {
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: var(--radius-btn);
  padding: 13px 28px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, background 0.18s;
}
.survey__next:hover:not([disabled]) { transform: translateY(-1px); background: var(--accent-hover); }
.survey__next[disabled] { opacity: 0.4; cursor: not-allowed; }

.survey__done {
  align-items: flex-start;
  gap: 24px;
  padding-top: 32px;
}

.survey__done-mark {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
}

.survey__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute);
}

@media (max-width: 640px) {
  .survey { padding: 14px 22px 20px; }
  .survey__title { font-size: 28px; }
  .survey__hdr { padding: 10px 0 18px; }
}
