/* ============== Deal Checker (any LA property) ============== */

.any-body { background: var(--bg-soft); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(10,91,204,0.14) 0%, transparent 50%),
    linear-gradient(180deg, #F7F8FA 0%, #EEF2F7 100%);
  padding: 48px 24px 28px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 920px; margin: 0 auto; }
.hero .eyebrow { margin-bottom: 10px; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--t-4xl);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.hero-lede {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--muted);
  max-width: 740px;
  margin-bottom: 30px;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

/* Input card */
.input-card {
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--sh-3);
  border: 1px solid var(--line);
}
.input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-end;
}
.input-row-small { margin-top: 6px; margin-bottom: 20px; }
.or {
  color: var(--muted);
  font-size: var(--t-sm);
  font-style: italic;
  padding-bottom: 12px;
}
.input-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.input-field label {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.input-field input {
  font-size: var(--t-md);
  padding: 12px 14px;
}
.input-field.zip { flex: 0 0 110px; }
.input-field.price { flex: 0 0 220px; }

.input-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--line-2);
  margin-top: 8px;
}

/* Result section */
.result-wrap { padding: 32px 24px 80px; }
.result-inner { max-width: 1180px; margin: 0 auto; }

.verdict-banner {
  padding: 26px 32px;
  border-radius: var(--r-xl);
  margin-bottom: 28px;
  color: white;
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  box-shadow: var(--sh-2);
  position: relative;
  overflow: hidden;
}
.verdict-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
}
.verdict-banner.green { background: linear-gradient(135deg, #0E7F3E 0%, #166534 100%); }
.verdict-banner.yellow { background: linear-gradient(135deg, #D97706 0%, #B45309 100%); }
.verdict-banner.red { background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%); }
.verdict-banner.gray { background: linear-gradient(135deg, #475569 0%, #1F2937 100%); }
.verdict-banner .sub {
  display: block;
  font-size: var(--t-sm);
  font-weight: 500;
  margin-top: 8px;
  opacity: 0.95;
  font-variant-numeric: tabular-nums;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
.result-main { display: flex; flex-direction: column; gap: 20px; }
.result-aside {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deal-breakdown {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.deal-row {
  display: flex;
  justify-content: space-between;
  background: var(--bg);
  padding: 12px 16px;
  font-size: var(--t-sm);
}
.deal-row .lbl { color: var(--muted); }
.deal-row .v {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.deal-row .v.positive { color: var(--green); }
.deal-row .v.negative { color: var(--red); }

.cta-panel {
  background: linear-gradient(140deg, var(--ink) 0%, var(--ink-2) 100%);
  color: white;
  border: 0;
}
.cta-panel .eyebrow { color: var(--accent-soft); }
.cta-panel h4 { color: white; }
.cta-panel .hint { color: rgba(255,255,255,0.7); }
.cta-panel .btn { background: white; color: var(--ink); border-color: white; }
.cta-panel .btn:hover { background: var(--accent-soft); }

/* Loading overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.btn-block { width: 100%; display: flex; }

/* Topbar sits on hero */
.any-body .topbar { background: rgba(255,255,255,0.94); }

@media (max-width: 880px) {
  .result-grid { grid-template-columns: 1fr; }
  .result-aside { position: static; }
  .input-row { flex-wrap: wrap; }
  .input-field.zip, .input-field.price { flex: 1 1 auto; }
  .hero h1 { font-size: var(--t-3xl); }
}
