/*
 * The Lefkowitz Group — /lander conversion page
 * Extends styles.css tokens. Dark-navy hero + white form card.
 * All classes prefixed .lander-* to avoid collision with main site.
 */

/* ── Nav ─────────────────────────────────────────────────────── */

.lander-nav {
  background: var(--accent-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.lander-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.lander-nav .wordmark { color: var(--bg); text-decoration: none; display: inline-flex; align-items: center; }
.lander-nav .wordmark-the { color: rgba(250, 247, 242, 0.55); }
.lander-nav .wordmark-name { color: var(--bg); }
.lander-nav .wordmark-img,
.lander-footer .wordmark-img { height: 64px; width: auto; max-width: none; display: block; }
.lander-footer .wordmark-img--footer { height: 80px; }
@media (max-width: 640px) {
  .lander-nav-inner { height: 64px; }
  .lander-nav .wordmark-img { height: 44px; }
  .lander-footer .wordmark-img--footer { height: 60px; }
}

.lander-phone {
  color: rgba(250, 247, 242, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.lander-phone:hover { color: var(--bg); }

@media (max-width: 640px) {
  .lander-nav { position: static; }
  .lander-phone { display: none; }
}

/* Homepage variant — adds Resources link + primary CTA in nav (form is below fold) */
.lander-nav-utility {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.lander-nav-link {
  color: rgba(250, 247, 242, 0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.lander-nav-link:hover { color: var(--bg); }
.lander-nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  color: var(--accent-navy);
  border: 1px solid var(--bg);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.lander-nav-cta:hover {
  background: rgba(250, 247, 242, 0.88);
  color: var(--accent-navy);
}
@media (max-width: 640px) {
  .lander-nav-link { display: none; }
  .lander-nav-cta { padding: 8px 14px; font-size: 13px; }
}

/* ── Hero ─────────────────────────────────────────────────────── */

.lander-hero {
  background: var(--accent-navy);
  padding: 64px 0 80px;
}

.lander-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "left right"
    "trust right";
  column-gap: var(--space-8);
  row-gap: 0;
  align-items: start;
}

.lander-left { grid-area: left; }
.lander-right { grid-area: right; }
.lander-trust-block { grid-area: trust; }
/* Trust list already has its own margin-top; row-gap is 0 so spacing comes only from there */

/* Left copy */

.lander-hero-h1 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.6);
  line-height: 1.3;
  margin: 0 0 var(--space-4) 0;
}

.lander-hero-h2 {
  color: var(--bg);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--space-5) 0;
}

.lander-hero-h2 em {
  font-style: normal;
  color: #F0C040;
}

.lander-hero-sub {
  font-size: 18px;
  color: rgba(250, 247, 242, 0.72);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 0;
}

.lander-trust-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lander-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(250, 247, 242, 0.85);
  font-size: 15px;
  line-height: 1.4;
}

.lander-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.12);
  border: 1.5px solid rgba(250, 247, 242, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: #F0C040;
  font-size: 13px;
  font-weight: 700;
}

.lander-left-phone {
  margin-top: var(--space-6);
  color: rgba(250, 247, 242, 0.55);
  font-size: 14px;
}

.lander-left-phone a {
  color: rgba(250, 247, 242, 0.85);
  text-decoration: none;
  font-weight: 600;
}

.lander-left-phone a:hover { color: var(--bg); }

@media (max-width: 960px) {
  .lander-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "trust";
    row-gap: var(--space-6);
    column-gap: 0;
  }
  .lander-hero { padding: 48px 0 56px; }
  /* On mobile, trust block sits below the form — its own top margin would double up with row-gap */
  .lander-trust-block .lander-trust-list { margin-top: 0; }
}

/* Mobile-only reorder: form card appears between H2 and body paragraph so buckets sit above the fold.
   `display: contents` on .lander-left lifts its children (h1, h2, p) up so they become siblings of
   .lander-right and .lander-trust-block — then `order` does the work. DOM source order unchanged. */
@media (max-width: 768px) {
  .lander-hero-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-areas: none;
    row-gap: var(--space-5);
  }
  .lander-left { display: contents; }
  .lander-hero-grid .lander-hero-h1  { order: 1; }
  .lander-hero-grid .lander-hero-h2  { order: 2; }
  .lander-hero-grid .lander-right    { order: 3; }
  .lander-hero-grid .lander-hero-sub { order: 4; }
  .lander-hero-grid .lander-trust-block { order: 5; }
}

/* ── Form card ────────────────────────────────────────────────── */

.lander-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.28), 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Progress bar */
.lander-progress {
  height: 3px;
  background: var(--bg-alt);
  border-radius: 2px;
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.lander-progress-fill {
  height: 100%;
  background: var(--accent-navy);
  transition: width 280ms ease;
  border-radius: 2px;
}

.lander-step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-5);
}

/* SSR skeleton — visible until lander-form.js mounts the real form */
.lander-skeleton { display: flex; flex-direction: column; gap: 14px; }
.lander-skeleton-row,
.lander-skeleton-btn {
  background: var(--bg-alt);
  will-change: opacity;
  animation: lander-skeleton-pulse 1.6s ease-in-out infinite;
}
.lander-skeleton-row { height: 14px; border-radius: 4px; }
.lander-skeleton-row--lg { height: 44px; }
.lander-skeleton-btn { height: 44px; border-radius: 6px; margin-top: 8px; }
@keyframes lander-skeleton-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lander-skeleton-row, .lander-skeleton-btn { animation: none; opacity: 0.8; }
}

/* Noscript fallback — only renders if JS is disabled */
.lander-noscript {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--fg);
  line-height: 1.5;
}
.lander-noscript a { color: var(--accent-navy); font-weight: 600; }

/* Card headings */
.card-h {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--fg);
  margin: 0 0 var(--space-2) 0;
}

.card-sub {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0 0 var(--space-5) 0;
  line-height: 1.5;
}

/* Band selector buttons */
.band-btns { display: flex; flex-direction: column; gap: 8px; }

.band-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg);
  transition: border-color 100ms, background 100ms;
  text-align: left;
}

.band-btn:hover {
  border-color: var(--accent-navy);
  background: rgba(21, 40, 68, 0.03);
}

.band-btn.selected {
  border-color: var(--accent-navy);
  background: rgba(21, 40, 68, 0.06);
  font-weight: 600;
}

.band-arrow {
  color: var(--fg-muted);
  font-size: 15px;
  transition: color 100ms;
}

.band-btn.selected .band-arrow,
.band-btn:hover .band-arrow { color: var(--accent-navy); }

/* Card continue button */
.card-cta {
  width: 100%;
  margin-top: var(--space-4);
  min-height: 48px;
  font-size: 15px;
}

.card-cta:disabled {
  background: var(--border);
  color: var(--fg-muted);
  cursor: not-allowed;
}

.card-note {
  font-size: 12px;
  color: var(--fg-muted);
  text-align: center;
  margin: var(--space-3) 0 0;
  line-height: 1.4;
}

/* Card step: checkboxes */
.card-checks { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }

/* Single attestation line at the bottom of the contact step */
.card-attestation {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: calc(-1 * var(--space-2));
  margin-bottom: var(--space-5);
  font-size: 13px;
  color: var(--muted, #5a5a5a);
  line-height: 1.45;
}
.card-attestation input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
}

/* Card step: text inputs */
.card-fields { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-5); }

.card-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.card-field input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg);
  min-height: 44px;
  transition: border-color 100ms;
}

.card-field input:focus {
  outline: none;
  border-color: var(--accent-navy);
  box-shadow: 0 0 0 3px rgba(21, 40, 68, 0.1);
}

/* Advance interest radios */
.advance-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-2);
}

.advance-radio-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  color: var(--fg);
  transition: border-color 100ms, background 100ms;
  background: #fff;
}

.advance-radio-btn:hover {
  border-color: var(--accent-navy);
  background: rgba(21, 40, 68, 0.03);
}

.advance-radio-btn input { accent-color: var(--accent-navy); width: 16px; height: 16px; flex-shrink: 0; }

/* Card back/continue row */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.card-back {
  font-size: 14px;
  padding: 10px 14px;
  min-height: 40px;
}

.card-error {
  color: var(--accent-oxblood);
  font-size: 13px;
  min-height: 1.4em;
  margin-top: var(--space-2);
}

/* Outcome screens */
.outcome-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.outcome-icon--qualified { background: rgba(47, 107, 63, 0.1); color: var(--success); }
.outcome-icon--soft { background: rgba(21, 40, 68, 0.07); color: var(--fg-muted); }

.outcome-h {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--fg);
  margin: 0 0 var(--space-3) 0;
  line-height: 1.25;
}

.outcome-p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0 0 var(--space-5) 0;
}

.outcome-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-navy);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  min-height: 48px;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: background 120ms;
}

.outcome-cta:hover { background: var(--accent-navy-hover); color: var(--bg); }

.outcome-advance-note {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: rgba(21, 40, 68, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.outcome-advance-note strong { color: var(--fg); }

/* Intake host card sits under the white form card on the navy hero —
   match the form card (white bg) so the right column reads as one stack. */
.lander-right .intake-host { background: #fff; margin-top: var(--space-4); }

/* ── Stats strip ──────────────────────────────────────────────── */

.lander-stats {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.lander-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.lander-stat { padding-left: var(--space-4); border-left: 2px solid var(--accent-navy); }

.lander-stat-value {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--accent-navy);
  line-height: 1;
  margin-bottom: 6px;
}

.lander-stat-label { font-size: 13px; color: var(--fg-muted); line-height: 1.4; max-width: 24ch; }

@media (max-width: 960px) { .lander-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lander-stats-grid { grid-template-columns: 1fr; } }

/* ── How the advance works ────────────────────────────────────── */

.lander-how { padding: var(--section-y) 0; }

.lander-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.lander-step {
  padding: var(--space-5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.lander-step-num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--accent-oxblood);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.lander-step h3 { font-size: 19px; margin-bottom: var(--space-2); }
.lander-step p { font-size: 14.5px; color: var(--fg-muted); margin: 0; line-height: 1.55; }

/* Advance compare box */
.advance-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: var(--space-7);
  max-width: 560px;
}

.advance-col {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.advance-col--us {
  background: rgba(21, 40, 68, 0.05);
  border-color: var(--accent-navy);
}

.advance-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-2);
}

.advance-col-value {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.1;
  color: var(--fg);
}

.advance-col--us .advance-col-value { color: var(--accent-navy); }

.advance-col-desc { font-size: 13px; color: var(--fg-muted); margin-top: var(--space-2); }

@media (max-width: 720px) { .lander-steps { grid-template-columns: 1fr; } .advance-compare { max-width: 100%; } }

/* ── FAQ ──────────────────────────────────────────────────────── */

.lander-faq { background: var(--bg-alt); padding: var(--section-y) 0; }

/* ── Final CTA ────────────────────────────────────────────────── */

.lander-final-cta {
  background: var(--accent-oxblood);
  color: var(--bg);
  padding: 72px 0;
  text-align: center;
}

.lander-final-cta h2 { color: var(--bg); margin-bottom: var(--space-3); }
.lander-final-cta p { color: rgba(250, 247, 242, 0.82); margin-bottom: var(--space-6); max-width: 56ch; margin-left: auto; margin-right: auto; }

.lander-final-btn {
  background: var(--bg);
  color: var(--accent-oxblood);
  font-weight: 700;
  font-size: 16px;
  min-height: 52px;
  padding: 16px 32px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 120ms;
}

.lander-final-btn:hover { background: rgba(250, 247, 242, 0.9); color: var(--accent-oxblood); }

/* ── Footer (minimal) ─────────────────────────────────────────── */

.lander-footer {
  background: var(--fg);
  color: var(--bg);
  padding: var(--space-7) 0;
}

.lander-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
}

.lander-footer-links { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.lander-footer-links a { color: rgba(250, 247, 242, 0.65); font-size: 13px; text-decoration: none; }
.lander-footer-links a:hover { color: var(--bg); text-decoration: underline; }

.lander-disclaimer p {
  font-size: 11.5px;
  color: rgba(250, 247, 242, 0.55);
  line-height: 1.55;
  max-width: none;
}

.lander-disclaimer strong { color: rgba(250, 247, 242, 0.75); }

/* ── Urgency bar ──────────────────────────────────────────────── */

.urgency-bar {
  background: #7a1515;
  color: rgba(250, 247, 242, 0.9);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 11px 20px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.urgency-bar strong { color: #fff; }

.urgency-link {
  color: rgba(250, 247, 242, 0.9);
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}

.urgency-link:hover { color: #fff; }

/* ── Filing Problem section ───────────────────────────────────── */

.lander-problem { padding: var(--section-y) 0; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.problem-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.problem-card {
  padding: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--accent-navy);
}

.problem-stat {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1;
  color: var(--accent-navy);
  margin-bottom: var(--space-3);
}

.problem-card h3 { font-size: 18px; margin-bottom: var(--space-2); }
.problem-card p { font-size: 14px; color: var(--fg-muted); margin: 0; line-height: 1.6; }

@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }

/* ── Mobile sticky CTA ────────────────────────────────────────── */

.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--accent-navy);
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 960px) {
  .mobile-sticky-cta { display: block; }
}

.mobile-sticky-btn {
  width: 100%;
  background: var(--bg);
  color: var(--accent-navy);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  min-height: 48px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 120ms;
}

.mobile-sticky-btn:hover { background: rgba(250, 247, 242, 0.9); }

/* ── Credentials stats override ───────────────────────────────── */

.stats-grid--creds .stat-value {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
}
