/* ============================================================
   NETWORKING GOLF — HOMEPAGE (the national picker)
   One job: choose your state. The map is the whole page.
   Depends on css/site.css for tokens, .state/.pin/.map-tip,
   .modal, .btn, .eyebrow.
   ============================================================ */

html, body.home { height: 100%; }
body.home {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 620px at 50% 30%, rgba(63,124,90,.20), transparent 62%),
    radial-gradient(700px 500px at 82% 88%, rgba(26,85,64,.22), transparent 60%),
    var(--pine-950);
}

/* ---- minimal nav ---- */
.home-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 46px);
}
.home-wl-link {
  font-family: var(--f-label); font-weight: 600; font-size: 13.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  padding: 10px 16px; border: 1px solid rgba(244,239,225,.2); border-radius: 999px;
  transition: color .15s, border-color .15s, background .15s;
}
.home-wl-link:hover { color: var(--brass); border-color: var(--brass); background: rgba(194,161,77,.06); }

/* ---- main: intro + map + status, centered ---- */
.home-main {
  flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(14px, 2.4vh, 30px);
  padding: clamp(8px, 2vh, 24px) clamp(16px, 4vw, 40px) clamp(20px, 3vh, 36px);
  text-align: center;
}
.home-intro { max-width: 720px; }
.home-intro .eyebrow { margin-bottom: 16px; }
.home-h1 {
  font-family: var(--f-display); font-weight: 560;
  font-size: clamp(38px, 6vw, 74px); line-height: 1.0; letter-spacing: -.02em;
  margin-bottom: 14px;
}
.home-sub {
  font-size: clamp(15.5px, 1.7vw, 18px);
  color: color-mix(in srgb, var(--paper) 74%, transparent);
  max-width: 56ch; margin: 0 auto;
}

/* ---- the map ---- */
.home-map { position: relative; width: min(1060px, 94vw); margin: 0 auto; }
.home-map-stage { position: relative; width: 100%; aspect-ratio: 975 / 610; }
.home-map-stage svg { width: 100%; height: 100%; overflow: visible; display: block; }
/* tooltip follows the cursor in viewport space */
#homeTip { position: fixed; }
.home-noscript { padding-top: 40px; color: var(--paper); }
.home-noscript a { color: var(--brass); }

/* homepage map reads bigger + brighter than the card version */
body.home .state { fill: #123a2c; stroke: var(--pine-950); stroke-width: 1; transition: fill .18s; }
body.home .state:hover { fill: #1c5240; cursor: pointer; }
body.home .state-queue { fill: #16473604; }
body.home .state-queue:hover { fill: #1c5240; }
body.home .state-utah { fill: var(--fairway); cursor: pointer; filter: drop-shadow(0 0 22px rgba(94,168,124,.5)); }
body.home .state-utah:hover { fill: var(--fairway-bright); }

.home-legend {
  display: flex; justify-content: center; gap: 26px; margin-top: 18px;
}

.home-status {
  display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 4px;
}
.home-status-line {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .03em;
  color: color-mix(in srgb, var(--paper) 62%, transparent);
}
.home-status-line span { color: color-mix(in srgb, var(--paper) 42%, transparent); }
.home-enter {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-label); font-weight: 700; font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--pine-950); background: var(--brass);
  padding: 14px 28px; border-radius: 999px;
  box-shadow: 0 8px 26px rgba(194,161,77,.32), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.home-enter:hover { background: #d3b25e; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(194,161,77,.44); }
.home-enter:active { transform: translateY(0); }

/* ---- footer ---- */
.home-foot {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px clamp(20px, 4vw, 46px);
  border-top: 1px solid rgba(244,239,225,.08);
  font-size: 12.5px; color: color-mix(in srgb, var(--paper) 45%, transparent);
}
.home-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.home-foot a { color: color-mix(in srgb, var(--paper) 60%, transparent); text-decoration: none; }
.home-foot a:hover { color: var(--brass); }

/* ---- "Enter Utah" chip that floats on the map by the flag ---- */
.map-enter-chip {
  position: absolute; z-index: 6; transform: translate(-50%, -100%);
  font-family: var(--f-label); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pine-950); background: var(--paper);
  padding: 7px 13px; border-radius: 999px; white-space: nowrap; text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.4); pointer-events: auto;
  display: inline-flex; align-items: center; gap: 7px;
}
.map-enter-chip::after { content: "→"; }
.map-enter-chip:hover { background: var(--brass); }

/* waitlist modal specifics */
.modal-card-wl { width: min(560px, 100%); }
.wl-modal-sub { font-size: 15px; color: var(--ink-soft); margin: 8px 0 20px; }
.wl-field { margin-bottom: 14px; }
.wl-field label { display: block; font-family: var(--f-label); font-weight: 600; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.wl-field input, .wl-field select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--paper-dark); border-radius: 10px; background: #fff;
}
.wl-field input:focus, .wl-field select:focus { outline: none; border-color: var(--brass); }
.wl-modal-body .btn { width: 100%; margin-top: 6px; }
.wl-modal-note { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-soft); text-align: center; margin-top: 12px; }

@media (max-height: 720px) {
  .home-intro .home-sub { display: none; }
  .home-legend { margin-top: 12px; }
}
@media (max-width: 640px) {
  .home-map { width: 96vw; }
  .home-h1 { font-size: clamp(34px, 11vw, 52px); }
  .home-foot { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .home-nav { padding: 16px; gap: 10px; }
  .home-nav .nav-word { font-size: 17px; }
  .home-nav .nav-mark { width: 28px; height: 28px; }
  .home-wl-link { font-size: 11px; padding: 8px 12px; letter-spacing: .06em; }
}
