/* PlanPing stylesheet — updated to match brand graphic */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1a5fa8;
  --blue-dark:   #0e3d6e;
  --blue-mid:    #1e6db5;
  --blue-light:  #e8f1fb;
  --green:       #2e8b3a;
  --green-light: #e8f5ea;
  --green-mid:   #3a9e3f;
  --amber:       #b45309;
  --amber-bg:    #fffbeb;
  --red:         #b91c1c;
  --red-bg:      #fef2f2;
  --text:        #1a2332;
  --muted:       #5a6a7e;
  --border:      #dde4ed;
  --card:        #ffffff;
  --page:        #f4f7fb;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Nav ── */
.nav {
  background: #fff;
  border-bottom: 2px solid var(--border);
  padding: .75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue-dark); font-weight: 700; font-size: 1.2rem; letter-spacing: -.3px; }
.brand-icon { font-size: 1.4rem; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--blue); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, #1a7a5e 100%);
  padding: 3rem 1.5rem 3.5rem;
  overflow: hidden;
}
.hero-compact { padding: 1.5rem; }
.hero-inner { max-width: 1100px; margin: 0 auto; }

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(58,158,63,.25);
  color: #7dd98a;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: .9rem;
  border: 1px solid rgba(58,158,63,.4);
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  color: #fff;
  line-height: 1.15;
  margin-bottom: .75rem;
}
h1 em { font-style: italic; color: #7dd98a; }

.hero-sub {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  font-weight: 300;
  margin-bottom: 1.75rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-trust {
  display: flex;
  gap: 1rem;
  margin-top: .9rem;
  flex-wrap: wrap;
}
.hero-trust span {
  color: rgba(255,255,255,.65);
  font-size: .8rem;
  font-weight: 500;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  display: block;
}

/* ── Search ── */
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-input {
  flex: 1;
  padding: 13px 18px;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.search-input:focus { box-shadow: 0 0 0 3px rgba(58,158,63,.4); }
.btn-search {
  background: var(--green-mid);
  color: #fff;
  border: none;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .15s;
}
.btn-search:hover { background: #2a7d33; }
.search-error { color: #fca5a5; font-size: .88rem; margin-top: .5rem; }

/* ── Stats band ── */
.stats-band {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 700; color: var(--blue); line-height: 1; }
.stat-label { display: block; font-size: .78rem; color: var(--muted); margin-top: .2rem; text-transform: uppercase; letter-spacing: .5px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Main ── */
.main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }

/* ── Features ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.feature:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.feature-icon { font-size: 1.6rem; margin-bottom: .7rem; }
.feature h3 { font-size: .95rem; font-weight: 600; margin-bottom: .35rem; color: var(--blue-dark); }
.feature p { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ── How it works ── */
.how-it-works { margin: 2.5rem 0; }
.how-it-works h2 { font-size: 1.4rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 1.25rem; text-align: center; }
.steps { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.step-num {
  width: 36px; height: 36px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
  margin: 0 auto .75rem;
}
.step h4 { font-size: .9rem; font-weight: 600; margin-bottom: .35rem; color: var(--blue-dark); }
.step p { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.step-arrow { font-size: 1.5rem; color: var(--border); font-weight: 300; }

/* ── Coverage note ── */
.coverage-note {
  background: var(--blue-light);
  border: 1px solid #c3d9f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: .88rem;
  color: var(--blue-dark);
}
.coverage-note a { color: var(--blue); font-weight: 500; }

/* ── Banners ── */
.banner { padding: .85rem 1.1rem; border-radius: 8px; font-size: .88rem; margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.banner-green { background: var(--green-light); color: var(--green); border: 1px solid #b7e4bc; }
.banner-amber { background: var(--amber-bg); color: var(--amber); border: 1px solid #fde68a; }
.banner a { color: inherit; font-weight: 500; }
.btn-link { background: none; border: none; cursor: pointer; font-size: .88rem; color: inherit; font-weight: 500; text-decoration: underline; font-family: inherit; padding: 0; }

/* ── Results ── */
.results-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.results-title { font-size: 1.15rem; font-weight: 600; color: var(--blue-dark); }
.results-sub { font-size: .82rem; color: var(--muted); margin-top: .2rem; }

/* ── App cards ── */
.app-list { display: flex; flex-direction: column; gap: .75rem; }
.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  transition: box-shadow .15s;
}
.app-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.app-card.status-approved { border-left-color: var(--green); }
.app-card.status-refused  { border-left-color: var(--red); }
.app-card.status-pending  { border-left-color: var(--blue); }

.app-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .5rem; flex-wrap: wrap; }
.app-meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.app-ref { font-size: .8rem; font-weight: 600; color: var(--blue); font-family: monospace; }
.app-council { font-size: .78rem; color: var(--muted); }
.app-distance { font-size: .78rem; color: var(--muted); background: var(--page); padding: 2px 8px; border-radius: 10px; }
.app-badges { display: flex; gap: .4rem; flex-wrap: wrap; }

.app-address { font-size: .95rem; font-weight: 600; margin-bottom: .3rem; color: var(--text); }
.app-description { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.app-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.app-date { font-size: .78rem; color: var(--muted); }
.app-actions { display: flex; gap: .5rem; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 12px; font-size: .75rem; font-weight: 500; }
.badge-householder { background: #eff6ff; color: var(--blue); }
.badge-full        { background: #faf5ff; color: #7c3aed; }
.badge-listed      { background: #fff7ed; color: #c2410c; }
.badge-tree        { background: #f0fdf4; color: var(--green); }
.badge-prior       { background: #fefce8; color: #854d0e; }
.badge-other       { background: var(--page); color: var(--muted); }
.badge-approved    { background: var(--green-light); color: var(--green); }
.badge-refused     { background: var(--red-bg); color: var(--red); }
.badge-pending     { background: #eff6ff; color: var(--blue); }
.badge-withdrawn   { background: var(--page); color: var(--muted); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); background: #fff; color: var(--text); padding: 7px 14px; border-radius: 8px; font-size: .83rem; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif; text-decoration: none; transition: all .15s; }
.btn:hover { background: var(--page); border-color: #b0bec9; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-sm { padding: 5px 11px; font-size: .78rem; }
.btn-full { width: 100%; justify-content: center; padding: 11px; }

/* ── CTA band ── */
.cta-band {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--blue-light), #e8f5ea);
  border: 1px solid #c3d9f0;
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-band strong { color: var(--blue-dark); }
.cta-band span { color: var(--muted); font-size: .9rem; margin-left: .4rem; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.25rem; margin-bottom: .5rem; color: var(--blue-dark); }
.empty-state p { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }

/* ── Modals ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: #fff; border-radius: 16px; padding: 1.75rem; width: 100%; max-width: 420px; position: relative; transform: translateY(12px); transition: transform .2s; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1rem; padding: 4px 8px; border-radius: 5px; }
.modal-close:hover { background: var(--page); }
.modal-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .25rem; color: var(--blue-dark); }
.modal-sub { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-label { font-size: .78rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .3px; }
.form-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; font-family: 'Inter', sans-serif; outline: none; color: var(--text); }
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,95,168,.1); }
.privacy-note { font-size: .75rem; color: var(--muted); margin-top: .75rem; }

/* ── Toast ── */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(80px); background: #1a2332; color: #fff; padding: 11px 22px; border-radius: 9px; font-size: .88rem; z-index: 200; opacity: 0; transition: all .3s; pointer-events: none; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Footer ── */
.footer { background: var(--blue-dark); border-top: 1px solid rgba(255,255,255,.1); padding: 2rem 1.5rem; margin-top: 3rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-inner a { color: rgba(255,255,255,.6); text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  h1 { font-size: 2rem; }
  .search-form { flex-direction: column; }
  .btn-search { justify-content: center; }
  .stats-band { gap: 1rem; }
  .stat-divider { display: none; }
  .results-header { flex-direction: column; }
  .cta-band { flex-direction: column; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .step { max-width: 100%; }
}

/* ── About page ── */
.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.about-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .6rem;
}
.about-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: .5rem;
}
.about-card p:last-child { margin-bottom: 0; }
.about-card a { color: var(--blue); }
