/* SqueezeWatch — "THE RECEIPTS" design system.
   Outrage-comedy: warm paper, money green, alarm red, big numbers. */
:root {
  --paper: #F8FAF3;
  --paper-dim: #E9F0E0;
  --ink: #14210F;
  --ink-soft: #55624C;
  --squeeze: #22B14C;
  --alarm: #E63946;
  --alarm-dark: #B91F2C;
  --teal: #0F766E;
  --line: #DDE6CF;
  --radius: 10px;
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; background: var(--squeeze);
  display: inline-flex; align-items: flex-end; justify-content: center;
  gap: 3px; padding-bottom: 6px; border-radius: 4px;
}
.brand-mark span { display: block; width: 5px; background: var(--ink); }
.brand-mark span:nth-child(1) { height: 14px; }
.brand-mark span:nth-child(2) { height: 9px; }
.brand-mark span:nth-child(3) { height: 5px; }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-name em { font-style: normal; color: var(--squeeze); }
.topnav { display: flex; gap: 1.1rem; }
.topnav a {
  color: var(--paper); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  opacity: 0.85;
}
.topnav a:hover { opacity: 1; color: var(--squeeze); }
.topnav a.cta {
  background: var(--squeeze); color: var(--ink); padding: 0.35rem 0.8rem;
  border-radius: 999px; opacity: 1;
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink); color: var(--paper);
  padding: 3.2rem 1.2rem 2.6rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--squeeze) 0 18px, var(--ink) 18px 36px);
}
.kicker {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.22em; color: var(--squeeze);
  border: 1px solid var(--squeeze); border-radius: 999px;
  padding: 0.3rem 0.9rem; margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 8vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.01em; max-width: 16ch; margin: 0 auto 1rem;
}
.hero h1 .hl { color: var(--squeeze); }
.hero p.lede { max-width: 34rem; margin: 0 auto 1.6rem; color: #d8d3c6; font-size: 1.06rem; }
.hero-ctas { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; font-weight: 800; text-decoration: none;
  padding: 0.8rem 1.5rem; border-radius: 999px; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--squeeze); color: var(--ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: #6b655a; color: var(--paper); }
.btn-ghost:hover { border-color: var(--squeeze); color: var(--squeeze); }

/* stat strip */
.statstrip {
  display: flex; justify-content: center; gap: 2.2rem; flex-wrap: wrap;
  background: var(--squeeze); color: var(--ink);
  padding: 0.9rem 1rem; font-family: var(--font-mono);
}
.statstrip .stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.statstrip .stat span { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- sections ---------- */
.section { padding: 3rem 1.2rem; max-width: 1080px; margin: 0 auto; }
.section h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  margin-bottom: 0.4rem; line-height: 1.1;
}
.section .sub { color: var(--ink-soft); margin-bottom: 1.8rem; max-width: 44rem; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.2rem; position: relative;
}
.step .n {
  font-family: var(--font-display); font-size: 0.8rem; color: var(--paper);
  background: var(--ink); display: inline-block; padding: 0.15rem 0.6rem;
  border-radius: 999px; margin-bottom: 0.7rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.93rem; color: var(--ink-soft); }
.step .demo { font-family: var(--font-mono); font-size: 0.85rem; margin-top: 0.7rem;
  background: var(--paper-dim); border-radius: 6px; padding: 0.55rem 0.7rem; }
.step .demo .down { color: var(--alarm); font-weight: 700; }

/* ---------- receipt cards (ledger) ---------- */
.ledger-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.receipt {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.receipt-top { padding: 1rem 1.1rem 0.8rem; }
.exhibit {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em;
  color: var(--ink-soft); text-transform: uppercase; margin-bottom: 0.3rem;
}
.receipt h3 { font-size: 1.12rem; line-height: 1.25; margin-bottom: 0.15rem; }
.receipt .brandline { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.7rem; }
.cat-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; background: var(--paper-dim); border-radius: 999px;
  padding: 0.15rem 0.6rem; margin-bottom: 0.6rem; color: var(--ink-soft);
}
.shrinkviz { margin: 0.4rem 0 0.8rem; }
.shrinkviz .row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; }
.shrinkviz .lbl { font-family: var(--font-mono); font-size: 0.72rem; width: 52px; color: var(--ink-soft); }
.shrinkviz .barwrap { flex: 1; background: var(--paper-dim); border-radius: 4px; height: 14px; position: relative; }
.shrinkviz .bar { height: 100%; border-radius: 4px; background: var(--ink); }
.shrinkviz .bar.after { background: var(--alarm); }
.shrinkviz .val { font-family: var(--font-mono); font-size: 0.8rem; min-width: 64px; text-align: right; }
.receipt-tear { border-top: 2px dashed var(--line); margin: 0 1.1rem; position: relative; }
.receipt-bottom { padding: 0.8rem 1.1rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.peroz { font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.5; }
.peroz .was { color: var(--ink-soft); text-decoration: line-through; }
.peroz .now { font-weight: 700; }
.hike-badge {
  font-family: var(--font-display); background: var(--alarm); color: #fff;
  font-size: 1.05rem; padding: 0.35rem 0.7rem; border-radius: 8px; white-space: nowrap;
  transform: rotate(2deg);
}
.receipt-src { padding: 0 1.1rem 1rem; font-size: 0.78rem; color: var(--ink-soft); }
.receipt-src a { color: var(--teal); }

/* toolbar (ledger filters) */
.toolbar {
  display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.4rem; align-items: center;
}
.toolbar input[type="search"], .toolbar select {
  font: inherit; padding: 0.6rem 0.9rem; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; min-width: 0;
}
.toolbar input[type="search"] { flex: 1; min-width: 180px; }
.result-count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- submit form ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; max-width: 640px; margin: 0 auto;
}
.form-card label { display: block; font-weight: 700; font-size: 0.9rem; margin: 1rem 0 0.3rem; }
.form-card label small { font-weight: 400; color: var(--ink-soft); }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; font: inherit; padding: 0.65rem 0.8rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-note {
  font-size: 0.85rem; color: var(--ink-soft); background: var(--paper-dim);
  border-radius: 8px; padding: 0.8rem 1rem; margin: 1.2rem 0;
}
.form-success {
  display: none; text-align: center; padding: 2rem 1rem;
}
.form-success h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.5rem; }

/* ---------- coming soon / phases ---------- */
.phase2 {
  background: var(--ink); color: var(--paper); border-radius: 14px;
  padding: 2rem 1.5rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.phase2 h2 { color: var(--squeeze); }
.phase2 p { color: #d8d3c6; max-width: 36rem; }
.phase2 .pill {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  border: 1px dashed var(--squeeze); color: var(--squeeze); border-radius: 999px;
  padding: 0.35rem 0.9rem; margin-bottom: 0.8rem; display: inline-block;
}

/* ---------- footer ---------- */
footer {
  background: var(--ink); color: #b9b3a6; padding: 2.2rem 1.2rem;
  font-size: 0.88rem; margin-top: 2rem;
}
.foot-inner { max-width: 1080px; margin: 0 auto; display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; }
.foot-inner .brand-name { color: var(--paper); }
footer a { color: var(--squeeze); }
.methodology { max-width: 34rem; }
.methodology strong { color: var(--paper); }

@media (max-width: 640px) {
  .topnav a:not(.cta) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .statstrip { gap: 1.2rem; }
}
