: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-validity { color: var(--muted); font-size: 13px; margin: -6px 0 12px; }
.deal-full { color: #8a4b00; background: #fff6e8; border: 1px solid #f0d9b5; border-radius: 8px; font-size: 14px; font-weight: 600; padding: 8px 10px; margin: 0 0 12px; }
.deal-card.is-full .button:disabled { background: #c9d3cf; border-color: #c9d3cf; color: #3d4944; cursor: not-allowed; }
.deal-links { font-size: 14px; margin: -4px 0 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.deal-where { margin: -2px 0 12px; font-size: 14px; color: #3d4944; line-height: 1.4; }
.deal-where .deal-addr { display: block; font-weight: 600; color: var(--ink); }
.deal-where .deal-hours { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.deal-where a.directions { display: inline-block; margin-top: 4px; font-weight: 650; color: var(--green); }
.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); }
.contact-list + .contact-text-note { margin: -16px 0 28px; }
.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 8px; color: var(--green-dark); font-weight: 650; font-size: 15px; }
.modal-where { margin: 0 0 12px; font-size: 15px; color: #3d4944; line-height: 1.4; }
.modal-where:empty { display: none; }
.modal-where a { color: var(--green); font-weight: 650; }
.claimed-where { margin: 6px 0 0; font-size: 13px; color: #3d4944; line-height: 1.35; }
.claimed-where a { color: var(--green); font-weight: 650; }
.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; }

/* Counter redemption: full-screen PIN pad and the green Redeemed screen */
.button-counter { width: 100%; margin-top: 14px; background: var(--ink); border-color: var(--ink); color: #fff; }
.modal-card .button-counter + .button { margin-top: 10px; }
.claimed-use { margin-top: 10px; width: 100%; padding: 10px 14px; font-size: 15px; }
.counter[hidden], .counter-pad[hidden], .counter-done[hidden] { display: none; }
.counter { position: fixed; inset: 0; z-index: 1000; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; }
body.counter-open { overflow: hidden; }
.counter-pad { max-width: 420px; margin: 0 auto; padding: 14px 20px 24px; min-height: 100%; display: flex; flex-direction: column; text-align: center; }
.counter-top { display: flex; justify-content: space-between; align-items: center; }
.counter-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.counter-cancel { background: none; border: 0; color: var(--green-dark); font: inherit; font-weight: 650; font-size: 16px; padding: 10px 4px; cursor: pointer; }
.counter-shop { margin: 6px 0 0; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.counter-offer { margin: 4px 0 0; font-size: 20px; font-weight: 750; color: var(--green); }
.counter-code { margin: 8px 0 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .04em; color: #3d4944; word-break: break-all; }
.counter-title { margin: 18px 0 10px; font-size: 19px; line-height: 1.25; }
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 0 0 6px; }
.pin-dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--green-dark); }
.pin-dots span.on { background: var(--green-dark); }
.counter-msg { min-height: 2.6em; margin: 6px 0; font-size: 15px; font-weight: 650; color: var(--bad); }
.counter-msg.busy { color: var(--muted); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 auto; width: 100%; max-width: 320px; }
.pin-pad button { font: inherit; font-size: 28px; font-weight: 650; padding: 14px 0; min-height: 62px; border-radius: 14px; border: 1px solid var(--line); background: #f3f6f4; color: var(--ink); cursor: pointer; touch-action: manipulation; }
.pin-pad button:active { background: #dfe9e4; }
.pin-pad button.pin-fn { font-size: 17px; background: #fff; }
.pin-pad.locked button { opacity: .4; pointer-events: none; }
.counter-hint { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.counter-done { min-height: 100%; background: #137a4f; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 28px 22px; }
.done-check { margin: 0 0 14px; font-size: clamp(44px, 14vw, 64px); font-weight: 850; line-height: 1.05; }
.done-shop { margin: 0; font-size: 24px; font-weight: 800; }
.done-offer { margin: 6px 0 0; font-size: 22px; font-weight: 700; }
.done-time { margin: 16px 0 0; font-size: 18px; font-weight: 650; }
.done-code { margin: 6px 0 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; opacity: .9; word-break: break-all; }
.done-button { margin-top: 28px; width: 100%; max-width: 320px; background: #fff; color: #137a4f; border-color: #fff; }

/* Launch date line in the founding block, and the deal preview (/preview) */
.founding-launch { margin: -4px 0 10px; font-weight: 700; color: var(--green-dark); }
.preview-promo { margin-top: 26px; padding: 18px 20px; border: 1px dashed #b7d4c6; border-radius: 12px; background: var(--soft); }
.preview-promo h3 { margin: 0 0 6px; font-size: 19px; }
.preview-promo p { margin: 0 0 12px; color: #3d4944; }
.preview-main { padding: 28px 0 56px; }
.preview-banner { background: #fff6e8; border: 1px solid #f0d9b5; color: #6b3d00; border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 0 0 18px; }
.preview-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 28px; align-items: start; }
.preview-form .form-group { margin-bottom: 14px; }
.preview-form .hint { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.preview-phone { position: sticky; top: 16px; }
.preview-phone-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.preview-screen { border: 8px solid #1f2a26; border-radius: 28px; background: var(--paper); padding: 18px 14px; min-height: 360px; }
.deal-card.is-preview { position: relative; }
.deal-card.is-preview::after { content: "Preview"; position: absolute; top: 10px; right: 10px; background: #fff6e8; border: 1px solid #f0d9b5; color: #6b3d00; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.deal-card.is-preview button { pointer-events: none; }
.preview-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.preview-price { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.preview-price .big { font-size: 26px; font-weight: 800; color: var(--green); margin: 2px 0; }
.preview-price table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.preview-price td { padding: 5px 0; border-top: 1px solid var(--line); }
.preview-price td:last-child { text-align: right; font-weight: 700; }
.preview-price tr.on td { color: var(--green-dark); background: var(--soft); }
.preview-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 18px; }
.preview-own { background: var(--soft); border: 1px solid #b7d4c6; border-radius: 10px; padding: 10px 14px; margin: 0 0 18px; }
@media (max-width: 760px) {
  .preview-layout { grid-template-columns: 1fr; }
  .preview-phone { position: static; order: -1; }
  .preview-screen { border-width: 6px; border-radius: 22px; }
}
.pv-check { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.pv-check input { width: auto; }
