/*
 * Landing page — signed-out marketing surface at "/".
 * Rendered by /scripts/landing.js into #landing-root when the user is signed
 * out. All hues come from tokens.css (no hex literals); overlay/shadow alphas
 * use the ink rgba pattern from wizard.css. No var() fallbacks.
 */

/* When the landing is active, hide the app chrome (tabs gate to sign-in and
   are meaningless to a cold visitor). */
body.landing-active .topnav,
body.landing-active main {
  display: none;
}

#landing-root {
  display: none;
}
body.landing-active #landing-root {
  display: block;
}

/* ===== nav ===== */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ugf-surface);
  border-bottom: 1px solid var(--ugf-border);
}
.lp-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-wordmark {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ugf-ink);
}
.lp-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-link {
  font-size: 14px;
  color: var(--ugf-slate);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 6px;
}
.lp-link:hover {
  color: var(--ugf-ink);
}

/* ===== buttons ===== */
.lp-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--ugf-radius-md);
  padding: 12px 22px;
  border: 1px solid transparent;
  transition: background 160ms ease, transform 120ms ease, border-color 160ms ease;
}
.lp-btn-primary {
  background: var(--ugf-accent);
  color: var(--ugf-surface);
}
.lp-btn-primary:hover {
  background: var(--ugf-accent-ink);
  transform: translateY(-1px);
}
.lp-btn-primary:active {
  transform: translateY(0);
}
.lp-btn-ghost {
  background: transparent;
  color: var(--ugf-ink);
  border-color: var(--ugf-border-strong);
}
.lp-btn-ghost:hover {
  border-color: var(--ugf-accent);
  color: var(--ugf-accent);
}
.lp-btn:focus-visible,
.lp-link:focus-visible,
.lp-modal-x:focus-visible {
  outline: 2px solid var(--ugf-accent);
  outline-offset: 2px;
}
.lp-btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}
.lp-btn-block {
  width: 100%;
}
.lp-btn-on-accent {
  background: var(--ugf-surface);
  color: var(--ugf-accent-ink);
}
.lp-btn-on-accent:hover {
  background: var(--ugf-accent-tint);
  transform: translateY(-1px);
}

/* ===== layout ===== */
.lp-section {
  padding: 0 28px;
}
.lp-wrap {
  max-width: 1080px;
  margin: 0 auto;
}
.lp-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ugf-accent);
  margin: 0 0 8px;
}

/* ===== hero ===== */
.lp-hero {
  padding-top: 76px;
  padding-bottom: 60px;
}
.lp-hero h1 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 18ch;
  color: var(--ugf-ink);
}
.lp-lede {
  font-size: 19px;
  color: var(--ugf-slate);
  margin: 0 0 28px;
  max-width: 44ch;
}
.lp-lede .lp-free {
  color: var(--ugf-accent);
  font-weight: 600;
}
.lp-cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.lp-hero-note {
  font-size: 13px;
  color: var(--ugf-text-tertiary);
  margin-top: 16px;
}

/* ===== how it works ===== */
.lp-band {
  background: var(--ugf-surface-muted);
  padding-top: 56px;
  padding-bottom: 56px;
  margin-top: 8px;
}
.lp-band h2,
.lp-cov h2,
.lp-concierge h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: var(--ugf-ink);
}
.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lp-step {
  background: var(--ugf-surface);
  border: 1px solid var(--ugf-border);
  border-radius: var(--ugf-radius-lg);
  padding: 22px 20px;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.lp-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--ugf-shadow-card);
}
.lp-step .lp-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ugf-accent-tint);
  color: var(--ugf-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.lp-step h3 {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--ugf-ink);
}
.lp-step p {
  font-size: 14px;
  color: var(--ugf-slate);
  margin: 0;
}
.lp-step.lp-featured {
  border-color: var(--ugf-accent);
  box-shadow: 0 0 0 1px var(--ugf-accent);
}
.lp-step.lp-featured .lp-num {
  background: var(--ugf-accent);
  color: var(--ugf-surface);
}
.lp-step .lp-tag {
  position: absolute;
  top: -11px;
  left: 18px;
  background: var(--ugf-accent);
  color: var(--ugf-surface);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: var(--ugf-radius-sm);
}
.lp-step.lp-soon {
  background: var(--ugf-surface-muted);
  border-style: dashed;
}
.lp-step.lp-soon .lp-num {
  background: var(--ugf-border);
  color: var(--ugf-slate);
}
.lp-step.lp-soon h3,
.lp-step.lp-soon p {
  color: var(--ugf-text-tertiary);
}
.lp-badge-soon {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ugf-slate);
  background: var(--ugf-border);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* ===== coverage ===== */
.lp-cov {
  padding-top: 60px;
  padding-bottom: 56px;
}
.lp-cov h2 {
  max-width: 24ch;
}
.lp-cov-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.lp-stat .lp-big {
  font-size: 40px;
  font-weight: 700;
  color: var(--ugf-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.lp-stat .lp-lbl {
  font-size: 12px;
  color: var(--ugf-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}
.lp-src-row {
  flex: 1;
  min-width: 280px;
}
.lp-src-row .lp-label {
  font-size: 14px;
  color: var(--ugf-slate);
  margin-bottom: 12px;
}
.lp-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lp-src-pill {
  background: var(--ugf-surface);
  border: 1px solid var(--ugf-border-strong);
  border-radius: 20px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ugf-ink);
}
.lp-src-pill.lp-soon-pill {
  border-style: dashed;
  color: var(--ugf-text-tertiary);
  background: transparent;
}

/* ===== concierge ===== */
.lp-concierge {
  background: var(--ugf-accent);
  padding-top: 60px;
  padding-bottom: 60px;
  margin-top: 8px;
}
.lp-concierge .lp-eyebrow {
  color: var(--ugf-accent-tint);
}
.lp-concierge h2 {
  color: var(--ugf-surface);
}
.lp-concierge p {
  font-size: 17px;
  color: var(--ugf-accent-tint);
  max-width: 52ch;
  margin: 0 0 26px;
}

/* ===== footer ===== */
.lp-footer {
  padding: 30px 28px;
  border-top: 1px solid var(--ugf-border);
}
.lp-foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ugf-text-tertiary);
}

/* ===== qualify modal ===== */
.lp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 21, 0.45);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.lp-overlay.lp-open {
  opacity: 1;
  pointer-events: auto;
}
.lp-modal {
  background: var(--ugf-surface);
  border-radius: var(--ugf-radius-lg);
  width: 100%;
  max-width: 460px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(26, 24, 21, 0.25);
  transform: translateY(12px) scale(0.98);
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.lp-overlay.lp-open .lp-modal {
  transform: translateY(0) scale(1);
}
.lp-modal h3 {
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--ugf-ink);
}
.lp-modal-sub {
  font-size: 14px;
  color: var(--ugf-slate);
  margin: 0 0 20px;
}
.lp-field {
  margin-bottom: 14px;
}
.lp-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ugf-ink);
}
.lp-field input,
.lp-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ugf-ink);
  border: 1px solid var(--ugf-border-strong);
  border-radius: var(--ugf-radius-md);
  padding: 11px 13px;
  background: var(--ugf-surface);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.lp-field input::placeholder,
.lp-field textarea::placeholder {
  color: var(--ugf-text-soft);
}
.lp-field input:focus-visible,
.lp-field textarea:focus-visible {
  outline: none;
  border-color: var(--ugf-accent);
  box-shadow: 0 0 0 3px var(--ugf-accent-tint);
}
.lp-field textarea {
  min-height: 64px;
  resize: vertical;
}
.lp-field.lp-invalid input,
.lp-field.lp-invalid textarea {
  border-color: var(--ugf-urgent);
}
.lp-err {
  color: var(--ugf-urgent-text);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
.lp-field.lp-invalid .lp-err {
  display: block;
}
.lp-form-error {
  color: var(--ugf-urgent-text);
  font-size: 13px;
  margin: 0 0 12px;
  display: none;
}
.lp-modal-x {
  float: right;
  cursor: pointer;
  color: var(--ugf-text-tertiary);
  font-size: 20px;
  line-height: 1;
  border: none;
  background: none;
}
.lp-modal-x:hover {
  color: var(--ugf-ink);
}

/* confirmation */
.lp-confirm {
  text-align: center;
  padding: 8px 0;
}
.lp-confirm .lp-check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ugf-fit-strong-bg);
  color: var(--ugf-fit-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
  animation: lp-pop 320ms cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
@keyframes lp-pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.lp-confirm h3 {
  margin-bottom: 6px;
}
.lp-confirm p {
  font-size: 14px;
  color: var(--ugf-slate);
  margin: 0 0 18px;
}
.lp-confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.lp-hidden {
  display: none;
}

@media (max-width: 820px) {
  .lp-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp-hero h1 {
    font-size: 34px;
  }
}
@media (max-width: 520px) {
  .lp-steps {
    grid-template-columns: 1fr;
  }
}
