/* Store Energy — placeholder brand palette (swap with real brand later) */
:root {
  --navy: #0a2540;
  --navy-2: #123a63;
  --green: #16b364;
  --green-dark: #0e8a4c;
  --amber: #f59e0b;
  --red: #dc2626;
  --bg: #f4f7fa;
  --card: #ffffff;
  --ink: #16283c;
  --muted: #5b7083;
  --line: #e3eaf1;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  padding-bottom: 70px;
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px; background: #fff; color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.logo { height: 48px; display: block; }
.tag { font-size: .8rem; color: var(--muted); }

/* ---------- landing ---------- */
.hero {
  max-width: 640px; margin: 0 auto; padding: 48px 20px 40px; text-align: center;
}
.hero h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 10px; color: var(--navy); }
.hero .sub { color: var(--muted); margin: 0 0 26px; }
.addr-form { display: flex; flex-direction: column; gap: 10px; }
.addr-form input {
  padding: 15px 16px; font-size: 1rem; border: 2px solid var(--line);
  border-radius: var(--radius); outline: none; background: #fff;
}
.addr-form input:focus { border-color: var(--green); }
.addr-form button, .manual button, .lead button, .sticky-cta button {
  padding: 15px 18px; font-size: 1.05rem; font-weight: 700; color: #fff;
  background: var(--green); border: 0; border-radius: var(--radius); cursor: pointer;
}
.addr-form button:active { background: var(--green-dark); }
.linklike { background: none; border: 0; color: var(--navy-2); text-decoration: underline; cursor: pointer; margin-top: 14px; font-size: .95rem; }
.manual { text-align: left; margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.manual label { font-size: .9rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.manual label.row { flex-direction: row; align-items: center; gap: 8px; }
.manual select, .manual input[type="text"] { padding: 12px; border: 2px solid var(--line); border-radius: 10px; font-size: 1rem; }
.trust { margin-top: 22px; font-size: .8rem; color: var(--muted); }
.ac-wrap { position: relative; flex: 1; display: flex; }
.ac-wrap input { width: 100%; }
.ac-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10,37,64,.12); overflow: hidden; text-align: left;
}
.ac-item { padding: 12px 14px; cursor: pointer; font-size: .95rem; border-bottom: 1px solid var(--line); }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item.hot { background: #eef6f1; }
.staff-link {
  background: none; border: 0; cursor: pointer; color: #9fb2c2;
  font-size: 1.2rem; line-height: 1; padding: 6px 10px; letter-spacing: 2px;
  vertical-align: middle;
}
.staff-link:hover { color: var(--navy); }
.error { margin-top: 14px; color: var(--red); font-size: .95rem; }
.hidden { display: none !important; }

/* ---------- results ---------- */
#results { max-width: 640px; margin: 0 auto; padding: 18px 14px 40px; }
.loc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.chip { background: var(--navy); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: .8rem; }
.chip.soft { background: #dde7f0; color: var(--navy); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.headline { text-align: center; }
.headline .big { font-size: 1.9rem; font-weight: 800; color: var(--green-dark); }
.headline .more { color: var(--amber); font-weight: 700; margin-top: 4px; }
.headline .note { color: var(--muted); font-size: .85rem; margin-top: 6px; }

.refine { display: flex; flex-direction: column; gap: 14px; }
.refine-item { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.refine-item em { color: var(--muted); font-style: normal; font-size: .8rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: fit-content; }
.seg button { padding: 8px 14px; border: 0; background: #fff; cursor: pointer; font-size: .9rem; color: var(--muted); }
.seg button.on { background: var(--navy); color: #fff; font-weight: 700; }

.group-title { margin: 22px 4px 10px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.prog { padding: 0; overflow: hidden; }
.prog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 15px 16px; cursor: pointer; }
.prog-head h3 { margin: 0 0 3px; font-size: 1rem; color: var(--navy); }
.prog-head .value { font-size: .92rem; color: var(--green-dark); font-weight: 700; }
.prog-head .desc { font-size: .88rem; color: var(--muted); margin-top: 5px; }
.badges { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; flex-shrink: 0; }
.badge { font-size: .68rem; font-weight: 800; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.active { background: #d9f5e7; color: var(--green-dark); }
.badge.closing { background: #fdeccd; color: #92610a; }
.badge.possible { background: #e3ecff; color: #2b4ea8; }
.badge.waitlist { background: #efe3ff; color: #6d3bb8; }
.badge.coming { background: #dde7f0; color: var(--navy); }
.badge.expired { background: #f1d7d7; color: var(--red); }
.badge.conf { background: #eef2f6; color: var(--muted); font-weight: 600; }
.prog-body { border-top: 1px solid var(--line); padding: 14px 16px; font-size: .92rem; display: none; }
.prog.open .prog-body { display: block; }
.prog-body .confirm { background: #f2f7ff; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: .88rem; }
.prog-body .confirm b { color: #2b4ea8; }
.staff-extra { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; font-size: .85rem; color: var(--muted); }
.staff-extra a { color: var(--navy-2); word-break: break-all; }
.verified { font-size: .75rem; color: var(--muted); margin-top: 10px; }

.expired-section .prog { opacity: .8; }
.expired-toggle { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; }

.disclaimer { font-size: .82rem; color: var(--muted); }
.lead h2 { margin: 0 0 6px; color: var(--navy); }
.lead p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.lead form { display: flex; flex-direction: column; gap: 10px; }
.lead input { padding: 13px 14px; border: 2px solid var(--line); border-radius: 10px; font-size: 1rem; }
.lead-note { font-size: .75rem; color: var(--muted); }
#leadThanks { padding: 10px 0; color: var(--green-dark); font-size: 1.05rem; }

.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: 10px;
  justify-content: space-between; align-items: center; padding: 10px 14px;
  background: var(--navy); color: #fff; font-size: .9rem; z-index: 50;
}
.sticky-cta button { padding: 10px 16px; font-size: .9rem; border-radius: 10px; }

footer { display: flex; justify-content: space-between; padding: 24px 18px 90px; color: var(--muted); font-size: .8rem; max-width: 640px; margin: 0 auto; }
.staff-link { color: #c3cfda; text-decoration: none; }

@media (min-width: 560px) {
  .hero h1 { font-size: 2.2rem; }
  .addr-form { flex-direction: row; }
  .addr-form input { flex: 1; }
}
