:root {
  --paper: #FFFFFF;
  --paper-raised: #FFFFFF;
  --paper-tint: #F7F7F7;
  --ink: #121212;
  --ink-soft: #55575A;
  --forest: #121212;
  --forest-deep: #000000;
  --marigold: #E8A33D;
  --stamp-red: #E31E24;
  --stamp-red-deep: #B3151A;
  --line: rgba(18, 18, 18, 0.14);

  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 4px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--forest-deep);
  letter-spacing: -0.01em;
}

/* ---------- Hazard trim ---------- */
.hazard-trim {
  height: 8px;
  background: repeating-linear-gradient(135deg, var(--stamp-red) 0 16px, var(--ink) 16px 32px);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--forest);
  color: var(--paper-raised);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--forest-deep);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.topnav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.topnav a {
  text-decoration: none;
  color: var(--ink);
}
.nav-cta {
  background: var(--forest);
  color: var(--paper-raised) !important;
  padding: 9px 18px;
  border-radius: var(--radius);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--stamp-red);
  color: var(--paper-raised);
}
.btn-primary:hover { background: #a83a26; }
.btn-ghost {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest-deep);
}
.btn-ghost:hover { background: rgba(31,58,46,0.06); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp-red);
  margin: 0 0 18px;
}
.hero-copy h1 {
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.04;
  margin-bottom: 22px;
}
.hero-lede {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 46ch;
  margin: 0 0 30px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-note {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Receipt ---------- */
.receipt-wrap {
  display: flex;
  justify-content: center;
  transform: rotate(1.4deg);
}
.receipt {
  background: var(--paper-raised);
  width: 100%;
  max-width: 340px;
  box-shadow: 0 18px 40px rgba(20, 39, 32, 0.16), 0 2px 0 rgba(0,0,0,0.02);
  position: relative;
}
.receipt-torn {
  height: 12px;
  background:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0/10px 12px repeat-x,
    linear-gradient(-135deg, var(--paper) 50%, transparent 50%) 0 0/10px 12px repeat-x;
  background-color: var(--paper-raised);
}
.receipt-torn.top { transform: scaleY(-1); }
.receipt-body { padding: 26px 26px 18px; }
.r-store {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  margin: 0 0 2px;
  letter-spacing: 0.02em;
}
.r-sub {
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.r-line {
  color: var(--line);
  margin: 6px 0;
  font-size: 13px;
  letter-spacing: -0.5px;
  overflow: hidden;
  white-space: nowrap;
}
.r-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 3px 0;
}
.r-row span:first-child { color: var(--ink-soft); }
.r-items-label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin: 4px 0 6px;
}
.r-total span { font-weight: 600; }
.r-barcode-slot {
  margin: 16px 0 4px;
  border: 1.5px dashed var(--line);
  border-radius: 3px;
  padding: 10px 8px;
  text-align: center;
}
.r-barcode-slot img {
  max-width: 100%;
  max-height: 46px;
  display: block;
  margin: 0 auto 4px;
}
.r-barcode-fallback {
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--ink);
  margin: 0 0 2px;
}
.r-barcode-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.r-thanks {
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Perks ---------- */
.perks { padding: 40px 0 80px; }
.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.perk {
  background: var(--paper-raised);
  padding: 30px 24px;
}
.perk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--forest);
  color: var(--paper-raised);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
.perk h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.perk p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Section heads ---------- */
.section-eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp-red);
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 14px;
}
.section-lede {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 56ch;
  margin: 0 0 40px;
}

/* ---------- Tasks ---------- */
.tasks { padding: 20px 0 80px; }
.task-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.task-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  position: relative;
}
.task-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: repeating-linear-gradient(135deg, var(--stamp-red) 0 10px, var(--ink) 10px 20px);
}
.task-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.task-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--stamp-red);
  font-size: 15px;
}
.task-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.task-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.task-meta {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--ink-soft);
}
.task-meta li { margin-bottom: 4px; }

/* ---------- Store categories ---------- */
.stores {
  padding: 20px 0 80px;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.store-cell {
  background: var(--paper-raised);
  padding: 26px 16px;
  text-align: center;
}
.store-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.store-cat {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}
.stores-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 18px 0 0;
  max-width: 60ch;
}

/* ---------- Work in your area ---------- */
.area {
  padding: 20px 0 88px;
}
.area-panel {
  background: var(--forest-deep);
  border-radius: 8px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.area-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(135deg, var(--stamp-red) 0 14px, #fff 14px 28px);
}
.area-copy .section-eyebrow { color: var(--stamp-red); }
.area-copy .section-title { color: #fff; }
.area-copy .section-lede { color: rgba(255,255,255,0.72); margin-bottom: 26px; }

.area-widget {
  background: var(--paper-raised);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
}
.area-status {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.area-status.found {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}
.area-pin {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 22px;
}
.area-btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.area-disclaimer {
  font-size: 11px;
  color: var(--ink-soft);
  margin: 16px 0 0;
}

/* ---------- How it pays ---------- */
.how { padding: 20px 0 88px; }
.how-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.how-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 26px;
  border-bottom: 1px dashed var(--line);
}
.how-step:last-child { border-bottom: none; padding-bottom: 0; }
.how-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--stamp-red);
  min-width: 40px;
}
.how-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.how-step p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Apply ---------- */
.apply {
  padding: 20px 0 96px;
}
.apply-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  background: var(--forest-deep);
  border-radius: 8px;
  padding: 52px;
}
.apply-intro .section-title,
.apply-intro .section-eyebrow { color: var(--paper-raised); }
.apply-intro .section-eyebrow { color: var(--stamp-red); }
.apply-intro .section-lede { color: rgba(255, 255, 255, 0.75); }
.apply-contact {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}
.apply-contact p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 6px;
}
.apply-contact a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--stamp-red);
  text-decoration: none;
}

.apply-form {
  background: var(--paper-raised);
  border-radius: 6px;
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--forest);
}
textarea { resize: vertical; }
.form-status {
  margin: 14px 0 0;
  font-size: 13px;
  min-height: 18px;
}
.form-status.ok { color: var(--forest); }
.form-status.err { color: var(--stamp-red); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-inner { text-align: center; }
.footer .brand { justify-content: center; margin-bottom: 18px; }
.footer-barcode {
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.footer-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .how-grid, .apply-grid, .area-panel { grid-template-columns: 1fr; }
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .receipt-wrap { transform: none; margin-top: 20px; }
  .apply-grid, .area-panel { padding: 28px; }
  .store-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .perks-grid, .task-grid { grid-template-columns: 1fr; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .topnav { gap: 16px; font-size: 13px; }
  .hero { padding: 44px 0 40px; }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .area-widget { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}