/* Connect landing page — That Pickleball Realtor. Mobile first. */

:root {
  --black: #050505;
  --black-soft: #0b0b0b;
  --charcoal: #16181c;
  --navy: #0a2342;
  --white: #ffffff;
  --cream: #fcf5ed;
  --cyan: #00d2ff;
  --cyan-deep: #00a8c8;
  --lime: #c8f031;
  --gold: #c4a35a;
  --muted: #8b9198;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-head: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --max: 720px;
  --tap: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--lime); }
::selection { background: var(--cyan); color: var(--black); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  background: var(--cyan);
  color: var(--black);
  padding: 8px 14px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.logo { flex: 0 0 auto; display: flex; align-items: center; }
.logo img { height: 38px; width: auto; max-width: 120px; }
.topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 16px;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  background: transparent;
  color: var(--white);
}
.btn .icon { width: 16px; height: 16px; flex: 0 0 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: var(--black); }
.btn-primary:hover, .btn-primary:focus-visible { background: #4de0ff; color: var(--black); }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--cyan); color: var(--cyan); }
.btn-lg { min-height: 56px; padding: 16px 24px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .short { display: inline; }
.btn .full { display: none; }
.btn[disabled] { opacity: 0.65; pointer-events: none; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 32px 20px 28px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  max-width: 880px;
  margin: 0 auto;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 210, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 20% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000 20%, transparent 70%);
}
.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 12px;
}
.pin {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(200, 240, 49, 0.2);
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.94;
  margin: 0 0 12px;
}
h1 { font-size: clamp(2.6rem, 12vw, 4.4rem); }
h2 { font-size: 1.8rem; margin-bottom: 16px; }
.lead {
  position: relative;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
}
.hero-phone {
  position: relative;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero-phone a { color: var(--cyan); }

/* Form */
.form-wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto 48px;
}
.connect-form { display: grid; gap: 16px; }
.card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 18px 22px;
  box-shadow: var(--shadow);
}
.hint {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.grid-2 .field { margin-bottom: 0; }
.field span, legend {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field span em {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap);
  background: #0c0d10;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px;
  color: var(--white);
  outline: none;
  font-size: 16px; /* prevents iOS zoom */
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.2);
}
.field input:user-invalid,
.field select:user-invalid,
.consent:has(input:user-invalid) {
  /* only after interaction where supported */
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%008b9198' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.choice-set, .intent-set {
  border: 0;
  margin: 6px 0 0;
  padding: 0;
}
.choice-set legend, .intent-set legend { margin-bottom: 10px; }
.choice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.choice-pill {
  position: relative;
  display: block;
  cursor: pointer;
}
.choice-pill input, .intent-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 10px 8px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c0d10;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
.choice-pill input:checked + span,
.choice-pill input:focus-visible + span {
  border-color: var(--cyan);
  background: rgba(0, 210, 255, 0.12);
  color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.25);
}
.choice-pill input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.intent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.intent-card { position: relative; cursor: pointer; }
.intent-face {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 96px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #0c0d10;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.intent-card input:checked + .intent-face,
.intent-card input:focus-visible + .intent-face {
  border-color: var(--cyan);
  background: rgba(0, 210, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.25);
}
.intent-card input:focus-visible + .intent-face { outline: 2px solid var(--cyan); outline-offset: 2px; }
.intent-icon {
  width: 36px;
  height: 36px;
  color: var(--cyan);
  margin-bottom: 6px;
}
.intent-icon svg { width: 100%; height: 100%; }
.intent-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}
.intent-sub { color: var(--muted); font-size: 0.88rem; }
.intent-card input:checked + .intent-face .intent-title { color: var(--cyan); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  cursor: pointer;
}
.consent input {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 2px;
  accent-color: var(--cyan);
}
.form-status { min-height: 1.2em; margin: 10px 0 0; color: var(--lime); font-size: 0.92rem; }
.form-status.is-error { color: #ff8a8a; }
.fine-print { margin: 14px 0 0; color: var(--muted); font-size: 0.85rem; }

/* Thanks */
.thanks {
  background: var(--charcoal);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 20px;
  padding: 32px 22px;
  box-shadow: var(--shadow);
}
.thanks h2 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }

/* Footer */
.site-footer {
  background: #000;
  border-top: 1px solid var(--line);
  padding: 36px 20px 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}
.footer-inner { max-width: 960px; margin: 0 auto; display: grid; gap: 28px; }
.footer-brand img { width: min(100%, 220px); margin-bottom: 12px; }
.footer-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.luxe-logo { width: min(100%, 200px); margin-bottom: 8px; }
.footer-eho { display: flex; gap: 12px; align-items: flex-start; }
.eho-mark { width: 44px; height: 44px; flex: 0 0 44px; }
.footer-eho p { margin: 0; font-size: 0.78rem; line-height: 1.55; color: rgba(255,255,255,0.62); }
.copyright { max-width: 960px; margin: 24px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.82rem; color: rgba(255,255,255,0.55); }

@media (min-width: 600px) {
  .logo img { height: 44px; max-width: none; }
  .btn .short { display: none; }
  .btn .full { display: inline; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .intent-grid { grid-template-columns: repeat(3, 1fr); }
  .intent-face { align-items: flex-start; min-height: 140px; }
  .hero { padding: 48px 24px 36px; }
  .card { padding: 24px; }
  .form-wrap { width: min(100% - 40px, var(--max)); }
  .footer-inner { grid-template-columns: 1.1fr 0.8fr; }
  .footer-eho { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .hero { padding-top: 56px; }
  h1 { font-size: 5rem; }
  .footer-inner { grid-template-columns: 1.1fr 0.7fr 1.3fr; }
  .footer-eho { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
