:root {
  --green: #176b4d;
  --green-dark: #0e4a34;
  --ink: #1c2420;
  --muted: #5c675f;
  --paper: #f3f0ea;
  --white: #ffffff;
  --line: #ddd6cb;
  --soft: #e7f2ec;
  --ok-bg: #e7f5ee;
  --ok: #13543e;
  --bad-bg: #f8ecec;
  --bad: #8a2b2b;
  --shadow: 0 1px 0 rgba(28, 36, 32, 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Segoe UI", system-ui, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
p { margin: 0; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-140%);
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 200;
}
.skip:focus { transform: none; }

header {
  background: var(--paper);
  border-top: 4px solid var(--green);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; min-height: 48px; }
.logo img { height: 48px; width: auto; display: block; }
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
}
nav a:hover { background: var(--soft); color: var(--green-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.band { background: var(--white); }
.kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-heading { max-width: 40rem; margin-bottom: 32px; }
.section-heading h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 40px); }
.section-heading p { color: var(--muted); font-size: 18px; }

.hero { padding: 72px 0 28px; }
.hero-inner { max-width: 40rem; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 58px);
  color: var(--green-dark);
}
.lede { font-size: 19px; color: #3d4944; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.text-link { font-weight: 650; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  line-height: 1.2;
}
.button-green { background: var(--green); color: white; border-color: var(--green); }
.button-green:hover { background: var(--green-dark); border-color: var(--green-dark); color: white; }
.button-outline { background: var(--white); color: var(--green-dark); border-color: var(--green); }
.button-outline:hover { background: var(--soft); }
.button:disabled { opacity: 0.65; cursor: wait; }
.button-block { width: 100%; }

.filter {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  margin-bottom: 28px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}
.hint { margin-top: 6px; color: var(--muted); font-size: 14px; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #858b87;
  border-radius: 8px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.deal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.band .deal-card { background: var(--paper); }
.example-flag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 3px 8px;
  border: 1px solid #b7d4c6;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}
.category { color: var(--muted); font-size: 14px; font-weight: 650; margin-bottom: 4px; }
.business-name { font-size: 22px; margin: 0 0 12px; }
.discount { color: var(--green); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.deal-description { color: #3d4944; flex: 1; margin-bottom: 18px; }
.deal-area { color: var(--muted); font-size: 14px; margin: -4px 0 8px; }
.deal-fine { color: var(--muted); font-size: 13px; margin: -8px 0 12px; }
.deal-links { font-size: 14px; margin: -4px 0 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.empty {
  padding: 28px;
  border: 1px dashed #c9c2b6;
  border-radius: 12px;
  color: var(--muted);
  background: var(--white);
}

.notice, .success, .check-result {
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 20px;
}
.notice, .check-result.invalid { background: var(--bad-bg); color: var(--bad); }
.success, .check-result.valid { background: var(--ok-bg); color: var(--ok); }
.check-result { display: none; margin-top: 16px; margin-bottom: 0; }
.check-result.show { display: block; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  padding-top: 8px;
  border-top: 2px solid var(--green);
}
.step-number {
  display: block;
  margin: 16px 0 8px;
  color: var(--green);
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 28px;
}
.step h3 { margin: 0 0 8px; font-size: 24px; }
.step p { color: #3d4944; }

.claimed-list { display: grid; gap: 12px; }
.claimed-card, .offers-empty, .contact-card, .form-card, .desk {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.claimed-card { padding: 18px 20px; }
.claimed-code {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--soft);
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 750;
  letter-spacing: 0.04em;
  word-break: break-word;
}
.offers-empty { padding: 28px; color: var(--muted); }

.business-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 48px;
  align-items: start;
}
.benefits { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 18px; }
.benefits li { padding-top: 16px; border-top: 1px solid var(--line); }
.benefits strong { display: block; margin-bottom: 4px; }
.form-card, .desk, .contact-card { padding: 24px; }
.form-card h3, .desk h3 { margin: 0 0 6px; font-size: 26px; }
.form-card > p, .desk > p { color: var(--muted); margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.success { display: none; margin-top: 16px; margin-bottom: 0; }
.form-status { display: none; margin-top: 16px; margin-bottom: 0; }
.form-status.show { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.desk { max-width: 34rem; }
.redeem-log { margin-top: 22px; display: grid; gap: 8px; }
.redeem-log h3 { margin: 0 0 4px; font-size: 18px; }
.redeem-entry {
  display: flex;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.redeem-entry span:last-child { color: var(--muted); white-space: nowrap; }
#redeemButton { margin-top: 12px; }

.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list span { color: var(--muted); }
.privacy h3 { margin: 0 0 8px; font-size: 22px; }
.privacy p { color: #3d4944; }

footer {
  background: #14241e;
  color: #cbd8d2;
  padding: 36px 20px 42px;
}
footer .wrap { display: grid; gap: 8px; }
footer strong { color: white; font-size: 18px; }
footer a { color: #d5e4dc; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 36, 30, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-card {
  width: min(440px, 100%);
  background: var(--white);
  border-radius: 14px;
  padding: 28px 24px;
}
.modal-card h2 { margin: 0 0 8px; font-size: 30px; }
.modal-code {
  margin: 18px 0;
  padding: 16px;
  background: var(--soft);
  color: var(--green-dark);
  font-weight: 750;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-align: center;
  border-radius: 8px;
  word-break: break-word;
}
.modal-card .button { width: 100%; margin-top: 18px; }
.demo-note { margin-top: 12px; color: var(--muted); font-size: 14px; }

@media (max-width: 800px) {
  .nav { align-items: flex-start; }
  nav { width: 100%; }
  .filter, .steps, .business-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  section { padding: 52px 0; }
  .logo img { height: 42px; }
  .redeem-entry { flex-direction: column; }
  .redeem-entry span:last-child { white-space: normal; }
}

.optional { font-weight: 400; color: var(--muted); }
.portal-note { margin-top: 16px; color: var(--muted); font-size: 15px; }
.claimed-flag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid #b7d4c6;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}
.claimed-card.expired { opacity: 0.65; }
.claimed-card.expired .claimed-flag { border-color: #c9c2b6; color: var(--muted); }

/* 404 page */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound .wrap { max-width: 40rem; }
.notfound h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 12px; color: var(--green-dark); }
.notfound p { color: var(--muted); font-size: 18px; margin-bottom: 22px; }
.notfound .links { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

/* Founding partner block (shown while no deals are live) */
.founding {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.founding-copy { max-width: 46rem; }
.founding h3 { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 32px); color: var(--green-dark); }
.founding-copy > p:not(.founding-flag):not(.founding-dates) { color: #3d4944; margin-bottom: 16px; }
.founding-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.founding-list li { padding-left: 26px; position: relative; color: #3d4944; }
.founding-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.founding-list strong { color: var(--ink); }
.founding-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.founding-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.founding-flag {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  background: var(--green);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.claim-terms { margin-top: 20px; color: var(--muted); font-size: 14px; }
.claimed-expiry { margin-top: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.modal-expiry { margin: -6px 0 12px; color: var(--green-dark); font-weight: 650; font-size: 15px; }
.modal-expiry:empty { display: none; }
.modal-expiry.expired-text { color: var(--bad); }

/* Legal pages (/privacy, /customer-terms) */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 46rem; }
.legal h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 46px); color: var(--green-dark); }
.legal h2 { margin: 36px 0 10px; font-size: 26px; }
.legal h3 { margin: 22px 0 8px; font-size: 20px; }
.legal p, .legal li { color: #3d4944; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .meta-line { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.draft-label {
  margin: 0 0 22px;
  padding: 12px 16px;
  background: #fff3cd;
  border: 1px solid #f0d58a;
  border-radius: 10px;
  color: #5c4400;
  font-weight: 700;
}
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 16px; background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.legal .summary { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px 6px; margin-bottom: 8px; }
.founding-dates { display: inline-block; margin: 0 0 14px 8px; color: var(--green-dark); font-size: 14px; font-weight: 700; }
/* Keep the claimed code on one line on phones (it used to split after "NBR-", which staff could misread). */
.modal-code { font-size: clamp(15px, 4.4vw, 22px); letter-spacing: 0.04em; word-break: break-all; padding: 16px 10px; }
.claimed-card.expired .claimed-code { background: #eceeed; color: var(--muted); text-decoration: line-through; }
