/* =====================================================================
   REVCHK — design system
   Mobile-first. Every breakpoint is min-width; the phone layout is the
   base case, not a fallback.

   Palette taken directly from the Revchk logo:
     navy   #16324F   type, dark surfaces      (the roof and tagline)
     green  #46B12F   primary actions, "go"    (the REV wordmark, the tick)
     leaf   #7FC11A   accents and highlights   (the figures, the arc)
     blue   #0F8ED1   links, information       (the CHK wordmark, the hand)
     amber  #FCBE10   prices and attention     (the heart, the pound coin)

   Type      Nunito (display, matching the rounded wordmark)
             Public Sans (body) · Space Mono (references and money)
   Signature The stock ticket — every item's Revchk reference and price
             rendered as a punched tag, used identically on the shop
             front and in the back office.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=Public+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* --- Tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --navy:       #16324F;
  --navy-dk:    #0E2338;
  --green:      #46B12F;
  --green-dk:   #38901F;
  --leaf:       #7FC11A;
  --blue:       #0F8ED1;
  --blue-dk:    #0B72AA;
  --amber:      #FCBE10;
  --amber-dk:   #D99E00;

  /* Surfaces and type */
  --ink:        #16324F;
  --ink-soft:   #2B4A66;
  --paper:      #F2F6FA;
  --paper-dk:   #E2EBF2;
  --card:       #FFFFFF;
  --slate:      #5C7086;
  --line:       rgba(22, 50, 79, 0.14);
  --line-soft:  rgba(22, 50, 79, 0.08);
  --alert:      #C8452B;
  --alert-soft: #FBEDE9;

  /* Status */
  --go:    #46B12F;
  --hold:  #D99E00;
  --done:  #0F8ED1;
  --stop:  #C8452B;
  --quiet: #5C7086;

  --display: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:    'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r:    10px;
  --r-lg: 18px;
  --shadow:    0 1px 2px rgba(22,50,79,.06), 0 6px 18px rgba(22,50,79,.07);
  --shadow-lg: 0 12px 44px rgba(22,50,79,.16);

  --gut: 18px;
  --max: 1200px;
}

/* --- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 8px; top: 8px; }

/* --- Layout ------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 780px; }
.section { padding: 44px 0; }
.section-tight { padding: 28px 0; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.push { margin-left: auto; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.hide { display: none !important; }

/* --- Type helpers ------------------------------------------------- */
.eyebrow {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--slate);
  margin: 0 0 10px;
}
.lede { font-size: 1.1rem; color: var(--ink-soft); }
.muted { color: var(--slate); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.strong { font-weight: 700; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* =====================================================================
   SIGNATURE — the lot ticket
   ===================================================================== */
.ticket {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--amber); color: var(--ink);
  padding: 4px 10px 4px 8px;
  position: relative;
  border-radius: 2px;
}
.ticket::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink); opacity: .32; flex: none;
}
.ticket-quiet { background: var(--paper-dk); color: var(--ink-soft); }
.ticket-dark  { background: var(--ink); color: var(--amber); }
.ticket-dark::before { background: var(--amber); opacity: .5; }

/* Price ticket — the punched tag */
.price-tag {
  display: inline-block;
  font-family: var(--mono); font-weight: 700;
  font-size: 1.25rem; line-height: 1;
  background: var(--ink); color: #fff;
  padding: 10px 14px 10px 18px;
  position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
}
.price-tag-lg { font-size: 2rem; padding: 14px 20px 14px 26px; }
.price-tag-sold { background: var(--alert); }

/* --- Pills / statuses --------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; font-family: var(--mono);
  padding: 3px 8px; border-radius: 20px;
  background: var(--paper-dk); color: var(--ink-soft);
  white-space: nowrap;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-go    { background: #ECF7E8; color: var(--green-dk); }
.pill-hold  { background: #FFF6DC; color: var(--amber-dk); }
.pill-done  { background: #E6F4FC; color: var(--blue-dk); }
.pill-stop  { background: var(--alert-soft); color: var(--stop); }
.pill-quiet { background: var(--paper-dk); color: var(--quiet); }

/* --- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  letter-spacing: .01em;
  padding: 13px 22px; min-height: 48px;
  border: 2px solid var(--ink); border-radius: var(--r);
  background: var(--ink); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--navy-dk); border-color: var(--navy-dk); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dk); border-color: var(--green-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-quiet {
  background: var(--card); border-color: var(--line); color: var(--ink-soft);
  font-family: var(--body); font-weight: 600;
}
.btn-quiet:hover { background: var(--paper-dk); border-color: var(--ink); color: var(--ink); }
.btn-danger { background: var(--alert); border-color: var(--alert); }
.btn-danger:hover { background: #A63722; border-color: #A63722; }
.btn-sm { padding: 7px 13px; min-height: 38px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .45; pointer-events: none; }
.btn-link {
  background: none; border: 0; padding: 0; min-height: 0;
  font-family: var(--body); font-weight: 600; color: var(--blue);
  text-decoration: underline; cursor: pointer;
}

/* --- Cards / panels ----------------------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px;
}
.card-flush { padding: 0; overflow: hidden; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--card), var(--paper));
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1rem; letter-spacing: .01em; }
.panel-body { padding: 18px; }
.panel-body-flush { padding: 0; }
.panel-foot { padding: 14px 18px; border-top: 1px solid var(--line); background: var(--paper); }

/* --- Notices ------------------------------------------------------ */
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--r);
  border-left: 4px solid var(--slate); background: var(--paper-dk);
  margin-bottom: 16px; font-size: .94rem;
}
.notice-success { border-color: var(--green); background: #ECF7E8; }
.notice-error   { border-color: var(--alert); background: var(--alert-soft); }
.notice-warn    { border-color: var(--amber-dk); background: #FFF6DC; }
.notice-info    { border-color: var(--blue); background: #E6F4FC; }
.notice p:last-child { margin-bottom: 0; }

/* --- Forms -------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field > label, .label {
  display: block; font-weight: 600; font-size: .9rem;
  margin-bottom: 5px; color: var(--ink);
}
.hint { display: block; font-size: .82rem; color: var(--slate); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; min-height: 48px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--card); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--blue); outline: none;
  box-shadow: 0 0 0 3px rgba(27,75,58,.14);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230F1E19' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.input-money { font-family: var(--mono); font-weight: 700; }
.field-error .input, .field-error .select, .field-error .textarea { border-color: var(--alert); }
.error-text { display: block; color: var(--alert); font-size: .84rem; font-weight: 600; margin-top: 5px; }
.check {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r); background: var(--card); cursor: pointer;
  margin-bottom: 10px;
}
.check:hover { border-color: var(--blue); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.check span { font-size: .92rem; }
.check-inline { display: inline-flex; padding: 8px 12px; margin: 0 8px 8px 0; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--slate);
  padding: 0; margin-bottom: 10px;
}
.form-grid { display: grid; gap: 0 16px; }
.required { color: var(--alert); }

/* --- Tables ------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th {
  text-align: left; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--slate);
  font-weight: 700; padding: 11px 14px; border-bottom: 1.5px solid var(--line);
  white-space: nowrap; background: var(--paper);
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--paper); }
table.data td.num, table.data th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.data tfoot td {
  font-weight: 700; border-top: 2px solid var(--ink); background: var(--paper);
}
.empty { padding: 40px 20px; text-align: center; color: var(--slate); }
.empty h3 { color: var(--ink); }

/* --- Pagination --------------------------------------------------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 22px; }
.pager a, .pager span {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); text-decoration: none; color: var(--ink);
  font-family: var(--mono); font-size: .85rem;
}
.pager a:hover { border-color: var(--ink); background: var(--paper-dk); }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.pager .gap { border: 0; background: none; min-width: 20px; }

/* =====================================================================
   PUBLIC SITE
   ===================================================================== */
.site-head {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.site-head-in { display: flex; align-items: center; gap: 14px; padding: 12px var(--gut); max-width: var(--max); margin: 0 auto; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-mark {
  font-family: var(--display); font-weight: 800; font-size: 1.4rem;
  letter-spacing: -.03em; color: var(--ink); text-transform: uppercase;
}
.brand-mark em { font-style: normal; color: var(--blue); }
.brand-tag {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate);
}
.nav { display: none; gap: 22px; margin-left: auto; align-items: center; }
.nav a { font-weight: 600; font-size: .93rem; text-decoration: none; color: var(--ink-soft); }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on { box-shadow: inset 0 -3px 0 var(--amber); }
.head-cta { margin-left: auto; }
.nav-toggle {
  margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle span::before { content: ''; position: absolute; top: -6px; }
.nav-toggle span::after  { content: ''; position: absolute; top: 6px; }
.nav-mobile {
  display: none; border-top: 1px solid var(--line); background: var(--card);
  padding: 10px var(--gut) 18px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; padding: 13px 0; border-bottom: 1px solid var(--line-soft);
  text-decoration: none; font-weight: 600; color: var(--ink);
}
.nav-mobile .btn { margin-top: 14px; }

/* Hero — the thesis: what you own, and what it turns into */
.hero { background: var(--navy); color: #fff; padding: 46px 0 0; overflow: hidden; }
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero h1 .hl {
  background: var(--amber); color: var(--ink);
  padding: 0 .18em; display: inline-block; transform: rotate(-1.2deg);
}
.hero .eyebrow { color: var(--amber); }
.hero p { color: rgba(255,255,255,.86); font-size: 1.06rem; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* The split: your garage → their hands. Ledger strip along the bottom. */
.hero-ledger {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero-ledger div {
  padding: 16px 4px; border-right: 1px solid rgba(255,255,255,.16);
}
.hero-ledger div:last-child { border-right: 0; }
.hero-ledger .n {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 700;
  color: var(--amber); display: block; line-height: 1.1;
}
.hero-ledger .l {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.66); font-family: var(--mono);
}

/* Split — the deal, stated plainly */
.deal { background: var(--ink); color: #fff; padding: 30px 0; }
.deal-in { display: grid; gap: 20px; align-items: center; }
.deal-split { display: flex; align-items: stretch; border: 2px solid var(--amber); border-radius: var(--r); overflow: hidden; }
.deal-split div { padding: 16px 18px; }
.deal-split .theirs { background: var(--amber); color: var(--ink); flex: 7; }
.deal-split .ours   { flex: 3; }
.deal-split .pc { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; line-height: 1; display: block; }
.deal-split .who { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); opacity: .8; }

/* Steps — a real sequence, so numbering carries meaning */
.steps { counter-reset: step; display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.step { counter-increment: step; background: var(--card); padding: 22px 20px; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  color: var(--ink); background: var(--amber);
  padding: 3px 8px; border-radius: 2px; display: inline-block; margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--slate); font-size: .95rem; }

/* Item grid */
.items { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.item-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--ink); }
.item-card a.cover { text-decoration: none; color: inherit; display: block; }
.item-shot { position: relative; aspect-ratio: 4 / 3; background: var(--paper-dk); overflow: hidden; }
.item-shot img { width: 100%; height: 100%; object-fit: cover; }
.item-shot .ticket { position: absolute; top: 10px; left: 10px; z-index: 2; }
.item-shot .flag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--mono); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 8px; border-radius: 2px; background: var(--ink); color: #fff;
}
.item-shot .flag-sold { background: var(--alert); }
.item-shot .flag-reserved { background: var(--hold); }
.item-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item-body h3 { font-size: 1rem; margin: 0; line-height: 1.3; letter-spacing: -.01em; }
.item-body h3 a { text-decoration: none; color: var(--ink); }
.item-body h3 a:hover { text-decoration: underline; }
.item-meta { font-size: .8rem; color: var(--slate); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.item-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.item-price { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; }
.no-shot { display: grid; place-items: center; height: 100%; color: var(--slate); font-family: var(--mono); font-size: .78rem; }

/* Filters */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 22px; }
.filters .field { margin-bottom: 12px; }
.filter-grid { display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--card); font-size: .84rem; text-decoration: none; color: var(--ink-soft);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .x { font-weight: 700; opacity: .6; }

/* Item detail */
.item-hero { display: grid; gap: 22px; }
.gallery-main {
  position: relative; aspect-ratio: 4 / 3; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumbs button {
  padding: 0; border: 2px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--card); cursor: pointer; aspect-ratio: 1;
}
.gallery-thumbs button.on { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec th {
  text-align: left; font-weight: 600; color: var(--slate); padding: 9px 0;
  width: 40%; border-bottom: 1px solid var(--line-soft); font-size: .88rem;
}
.spec td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.buy-box { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 18px; }
.buy-box .price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

/* Sticky mobile action bar on the item page */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 10px var(--gut); padding-bottom: max(10px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -4px 20px rgba(15,30,25,.1);
}
.sticky-buy .p { font-family: var(--mono); font-weight: 700; font-size: 1.15rem; }
.sticky-buy .btn { flex: 1; }

/* Footer */
.site-foot { background: var(--ink); color: rgba(255,255,255,.72); padding: 40px 0 28px; margin-top: 50px; }
.site-foot h4 { color: #fff; font-size: .82rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.site-foot a { color: rgba(255,255,255,.72); text-decoration: none; display: block; padding: 5px 0; font-size: .92rem; }
.site-foot a:hover { color: var(--amber); }
.foot-grid { display: grid; gap: 26px; }
.foot-base {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .82rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* Prose pages */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary {
  cursor: pointer; padding: 16px 0; font-weight: 700; font-family: var(--display);
  font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--mono); color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--slate); }

/* =====================================================================
   ADMIN
   ===================================================================== */
.admin { background: var(--paper); min-height: 100vh; padding-bottom: 76px; }
.admin-head {
  background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 60;
}
.admin-head-in {
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gut); max-width: 1500px; margin: 0 auto;
}
.admin-head .brand-mark { color: #fff; font-size: 1.15rem; }
.admin-head .brand-mark em { color: var(--amber); }
.admin-head .who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.admin-head .who .name { color: rgba(255,255,255,.8); display: none; }
.admin-nav { display: none; }
.admin-main { max-width: 1500px; margin: 0 auto; padding: 20px var(--gut) 40px; }

/* Bottom tab bar — intake happens on a phone, so the nav lives under the thumb */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 65;
  background: var(--card); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px 8px; text-decoration: none; color: var(--slate);
  font-size: .66rem; font-weight: 600; letter-spacing: .02em;
  position: relative;
}
.tabbar a.on { color: var(--ink); }
.tabbar a.on::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 3px; background: var(--amber); }
.tabbar svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.tabbar .badge {
  position: absolute; top: 4px; right: 50%; margin-right: -20px;
  background: var(--alert); color: #fff; font-family: var(--mono);
  font-size: .6rem; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; display: grid; place-items: center; padding: 0 4px;
}

.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.page-head h1 { font-size: 1.6rem; margin: 0; }
.page-head .sub { color: var(--slate); font-size: .9rem; margin-top: 3px; }
.crumb { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.crumb a { color: var(--slate); text-decoration: none; }
.crumb a:hover { color: var(--ink); }

/* Stat tiles */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); margin-bottom: 22px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 15px 16px; position: relative; overflow: hidden;
}
.tile .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.tile .v { font-family: var(--mono); font-weight: 700; font-size: 1.6rem; line-height: 1.15; margin-top: 5px; letter-spacing: -.02em; }
.tile .n { font-size: .8rem; color: var(--slate); margin-top: 3px; }
.tile-accent { border-left: 4px solid var(--amber); }
.tile-money  { border-left: 4px solid var(--blue); }
.tile-due    { border-left: 4px solid var(--alert); }
.tile a { text-decoration: none; }

/* Mini bar chart, drawn with divs — no chart library needed */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 8px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bars .fill { width: 100%; background: var(--blue); border-radius: 2px 2px 0 0; min-height: 3px; position: relative; }
.bars .bar:last-child .fill { background: var(--amber); }
.bars .lab { font-family: var(--mono); font-size: .64rem; color: var(--slate); text-transform: uppercase; }
.bars .val { font-family: var(--mono); font-size: .68rem; font-weight: 700; }

/* Work queue list */
.queue { list-style: none; margin: 0; padding: 0; }
.queue li { border-bottom: 1px solid var(--line-soft); }
.queue li:last-child { border-bottom: 0; }
.queue a {
  display: flex; gap: 12px; align-items: center; padding: 13px 18px;
  text-decoration: none; color: inherit;
}
.queue a:hover { background: var(--paper); }
.queue .t { font-weight: 600; font-size: .93rem; }
.queue .s { font-size: .8rem; color: var(--slate); }
.queue .r { margin-left: auto; text-align: right; white-space: nowrap; }

/* Admin item rows */
.rows { display: grid; gap: 10px; }
.rowcard {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 11px 13px; text-decoration: none; color: inherit;
}
.rowcard:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.rowcard .shot {
  width: 62px; height: 62px; flex: none; border-radius: var(--r);
  background: var(--paper-dk); overflow: hidden;
}
.rowcard .shot img { width: 100%; height: 100%; object-fit: cover; }
.rowcard .meat { min-width: 0; flex: 1; }
.rowcard .t { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.rowcard .s { font-size: .8rem; color: var(--slate); margin-top: 2px; }
.rowcard .end { text-align: right; white-space: nowrap; }

/* Photo manager */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.photo { position: relative; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper-dk); }
.photo.is-primary { border-color: var(--amber); }
.photo img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.photo .tools { display: flex; border-top: 1px solid var(--line); }
.photo .tools form { flex: 1; display: flex; }
.photo .tools button {
  flex: 1; border: 0; background: var(--card); padding: 8px 4px;
  font-size: .7rem; font-weight: 700; cursor: pointer; color: var(--ink-soft);
  border-right: 1px solid var(--line);
}
.photo .tools form:last-child button { border-right: 0; }
.photo .tools button:hover { background: var(--paper-dk); }
.photo .tools .del:hover { background: var(--alert); color: #fff; }
.photo .badge-primary {
  position: absolute; top: 6px; left: 6px;
  background: var(--amber); color: var(--ink);
  font-family: var(--mono); font-size: .62rem; font-weight: 700;
  padding: 2px 6px; border-radius: 2px; text-transform: uppercase;
}
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--r-lg);
  padding: 24px 18px; text-align: center; background: var(--card);
}
.dropzone.drag { border-color: var(--blue); background: #E6F4FC; }
.dropzone input[type=file] { display: block; margin: 12px auto 0; max-width: 100%; }

/* Money summary block */
.ledger { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ledger .line {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 16px; border-bottom: 1px solid var(--line-soft); font-size: .92rem;
}
.ledger .line:last-child { border-bottom: 0; }
.ledger .line .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.ledger .line-total { background: var(--ink); color: #fff; font-weight: 700; }
.ledger .line-total .v { color: var(--amber); font-size: 1.1rem; }
.ledger .line-sub { background: var(--paper); font-weight: 700; }
.ledger .line-minus .v { color: var(--alert); }

/* Split view */
.split { display: grid; gap: 18px; }
.filterbar {
  display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px; margin-bottom: 18px;
}
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.tabs a {
  padding: 9px 15px; border-radius: 20px; text-decoration: none;
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line); white-space: nowrap;
}
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs a:hover { border-color: var(--ink); }
.tabs .count { font-family: var(--mono); font-size: .74rem; opacity: .7; margin-left: 4px; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--gut); background: var(--blue-dk); }
.login-card { width: 100%; max-width: 400px; background: var(--card); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--shadow-lg); }
.login-card .brand { justify-content: center; margin-bottom: 6px; }
.login-card h1 { font-size: 1.35rem; text-align: center; margin-bottom: 22px; }

/* Statement (print) */
.statement { background: #fff; padding: 30px var(--gut); }
.statement-doc { max-width: 760px; margin: 0 auto; }
.statement-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 3px solid var(--ink); padding-bottom: 16px; margin-bottom: 22px; }

/* Error page */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px var(--gut); }
.error-page .code { font-family: var(--mono); font-size: 4rem; font-weight: 700; color: var(--amber); line-height: 1; }

/* =====================================================================
   Breakpoints
   ===================================================================== */
@media (min-width: 560px) {
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .hero-ledger { grid-template-columns: repeat(4, 1fr); }
  .filterbar { grid-template-columns: 2fr 1fr 1fr; align-items: end; }
  .deal-in { grid-template-columns: 1.2fr 1fr; }
}

@media (min-width: 800px) {
  :root { --gut: 28px; }
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .head-cta { margin-left: 0; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .item-hero { grid-template-columns: 1.25fr 1fr; gap: 34px; align-items: start; }
  .sticky-buy { display: none; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .split { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .split-even { grid-template-columns: 1fr 1fr; }
  .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: 64px; }
  .filter-grid { grid-template-columns: repeat(4, 1fr); }

  /* Admin switches from tab bar to top nav on wide screens */
  .tabbar { display: none; }
  .admin { padding-bottom: 0; }
  .admin-nav {
    display: flex; gap: 2px; overflow-x: auto;
    background: var(--blue-dk); padding: 0 var(--gut);
  }
  .admin-nav-in { display: flex; gap: 2px; max-width: 1500px; margin: 0 auto; width: 100%; }
  .admin-nav a {
    padding: 12px 15px; color: rgba(255,255,255,.74); text-decoration: none;
    font-size: .88rem; font-weight: 600; white-space: nowrap; position: relative;
  }
  .admin-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
  .admin-nav a.on { color: #fff; }
  .admin-nav a.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; background: var(--amber); }
  .admin-nav .badge {
    display: inline-block; background: var(--amber); color: var(--ink);
    font-family: var(--mono); font-size: .66rem; font-weight: 700;
    padding: 0 5px; border-radius: 8px; margin-left: 5px;
  }
  .admin-head .who .name { display: inline; }
}

@media (min-width: 1000px) {
  .tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}

/* --- Print -------------------------------------------------------- */
@media print {
  .site-head, .site-foot, .admin-head, .admin-nav, .tabbar, .sticky-buy,
  .no-print, .btn, .pager { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .panel, .card { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  a { text-decoration: none; color: #000; }
}

/* --- Motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .item-card:hover, .btn:hover { transform: none; }
}

/* =====================================================================
   Brand marks
   The logo artwork is flat colour on white, so it is used as-is on light
   surfaces. On the navy footer and admin bar the emblem is knocked back
   and paired with the CSS wordmark, which can be recoloured freely.
   ===================================================================== */

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}
@media (min-width: 720px) { .brand-logo { height: 42px; } }

.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand-tag {
  font-family: var(--body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--slate);
}
@media (max-width: 719px) { .brand-tag { display: none; } }

/* Footer emblem on navy: white artwork would show a box, so it is masked
   down to a soft monochrome and the wordmark carries the colour. */
.foot-mark { height: 52px; width: auto; margin-bottom: 10px; }
.site-foot .brand-mark { color: #fff; display: block; }
.site-foot .brand-mark em { color: var(--leaf); font-style: normal; }

.admin-head .brand { flex-direction: row; align-items: center; gap: 9px; }
.admin-mark { height: 30px; width: auto; }

.login-logo { height: 44px; width: auto; margin: 0 auto 14px; }

/* --- Hero: the brand's own colour order, left to right ------------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(15,142,209,.30), transparent 60%),
    radial-gradient(90% 80% at 8% 0%, rgba(127,193,26,.24), transparent 62%),
    var(--navy);
}
.hero::after {
  /* The arc from the emblem, echoed as a hairline under the hero. */
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--leaf) 0%, var(--green) 34%, var(--blue) 68%, var(--amber) 100%);
}
.hero .eyebrow { color: var(--leaf); }
.hero .lede { color: rgba(255,255,255,.86); }

/* --- Price tag: amber, as the pound coin in the logo --------------- */
.price-tag { background: var(--amber); color: var(--navy); font-weight: 700; }
.price-tag-sold { background: var(--paper-dk); color: var(--slate); }

/* --- Ticket: navy stock tag with a leaf punch --------------------- */
.ticket { background: var(--navy); color: #fff; }
.ticket-quiet { background: var(--paper-dk); color: var(--ink-soft); }
.ticket-dark { background: var(--navy-dk); color: #fff; }

/* --- Benefit strip, mirroring the five icons on the logo ---------- */
.benefits {
  display: grid; gap: 2px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden;
  margin: 28px 0 6px;
}
@media (min-width: 900px) { .benefits { grid-template-columns: repeat(5, 1fr); } }
.benefit {
  background: var(--card); padding: 20px 14px; text-align: center;
}
.benefit svg { width: 34px; height: 34px; margin: 0 auto 10px; display: block; }
.benefit h3 {
  font-size: .82rem; font-family: var(--mono); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--navy);
  margin: 0 0 4px;
}
.benefit p { font-size: .88rem; color: var(--slate); margin: 0; }
.benefit:nth-child(1) svg { color: var(--amber); }
.benefit:nth-child(2) svg { color: var(--green); }
.benefit:nth-child(3) svg { color: var(--blue); }
.benefit:nth-child(4) svg { color: var(--green); }
.benefit:nth-child(5) svg { color: var(--amber); }

/* --- Strapline, set in the logo's own two-colour treatment -------- */
.strapline {
  text-align: center; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.4rem); line-height: 1.15;
  margin: 26px 0 6px; letter-spacing: -.02em;
}
.strapline .a { color: var(--green); }
.strapline .b { color: var(--blue); }
.strapline + .strapline-sub {
  text-align: center; color: var(--slate); font-size: .95rem; margin: 0 0 8px;
}

/* --- Ledger on a dark surface -------------------------------------
   The ledger is designed for white panels. Inside the navy hero its
   light row backgrounds would put white text on near-white, so the
   whole component is restated for dark ground. */
.hero .ledger,
.deal .ledger {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
  color: #fff;
}
.hero .ledger .line,
.deal .ledger .line { border-bottom-color: rgba(255,255,255,.14); }

.hero .ledger .line-sub,
.deal .ledger .line-sub {
  background: rgba(255,255,255,.09);
  color: #fff;
}
.hero .ledger .line-minus .val,
.deal .ledger .line-minus .val { color: #FF9C86; }

.hero .ledger .line-total,
.deal .ledger .line-total {
  background: var(--green);
  color: #fff;
}
.hero .ledger .line-total .val,
.deal .ledger .line-total .val { color: #fff; }

/* The markup uses .val for figures; keep the legacy .v selector working. */
.ledger .line .val {
  font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600;
}
.ledger .line-total .val { color: var(--amber); font-size: 1.1rem; }
.ledger .line-minus .val { color: var(--alert); }

/* =====================================================================
   LIGHT REBUILD
   Revchk sells a service to ordinary people, so the site reads like a
   local firm rather than a dark software product. White ground, navy
   type, green for the single action that matters.

   Colour rules, applied without exception:
     - Amber is never a background for body text. It is a rule, an
       underline or a small badge, nothing more.
     - Green backgrounds carry white text only, at button size.
     - Every text/background pair below clears WCAG AA.
   ===================================================================== */

body { background: #fff; }

/* --- Header: the logo sits on white, which is what it was drawn for -- */
.site-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.site-head-in { align-items: center; }
.brand-logo { height: 38px; }
@media (min-width: 720px) { .brand-logo { height: 46px; } }

.nav a { color: var(--navy); font-weight: 600; }
.nav a:hover { color: var(--green-dk); }

/* --- Hero: light, roomy, one job ----------------------------------- */
.hero-light {
  background: #fff;
  padding: 30px 0 8px;
  text-align: left;
}
.hero-light::after { display: none; }

.hero-light .kicker {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green-dk);
  background: #EDF7E8;
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 16px;
}

.hero-light h1 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(2rem, 8.5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 0 0 14px;
}
.hero-light h1 .hl {
  color: var(--green);
}

.hero-light .sub {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 0 22px;
}
@media (min-width: 860px) { .hero-light .sub { font-size: 1.15rem; max-width: 46ch; } }

.hero-cta { display: grid; gap: 10px; }
@media (min-width: 560px) { .hero-cta { grid-auto-flow: column; justify-content: start; } }
.hero-cta .btn { padding: 15px 26px; font-size: 1rem; }

.hero-assure {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero-assure span {
  display: flex; align-items: center; gap: 7px;
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
}
.hero-assure svg { width: 17px; height: 17px; color: var(--green); flex: 0 0 17px; }

/* --- Figure panel: plain numbers, no monospace, no dark ------------- */
.figures {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  margin: 26px 0 0;
}
.figures .fig-head {
  background: var(--paper);
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: .93rem;
  color: var(--navy);
}
.figures .row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .97rem;
}
.figures .row span:first-child { color: var(--ink-soft); }
.figures .row span:last-child { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.figures .row.deduct span:last-child { color: var(--slate); font-weight: 600; }
.figures .row.total {
  border-bottom: 0;
  background: #EDF7E8;
  padding: 16px 18px;
}
.figures .row.total span:first-child { color: var(--green-dk); font-weight: 700; }
.figures .row.total span:last-child { color: var(--green-dk); font-size: 1.3rem; }

/* --- Section rhythm ------------------------------------------------- */
.band { padding: 46px 0; }
.band-tint { background: var(--paper); }
.band h2 {
  font-family: var(--display); font-weight: 800; color: var(--navy);
  font-size: clamp(1.45rem, 5.5vw, 2rem); letter-spacing: -.02em;
  margin: 0 0 10px; line-height: 1.15;
}
.band .band-sub { color: var(--ink-soft); font-size: 1.02rem; max-width: 58ch; margin: 0 0 26px; }

/* --- Numbered steps ------------------------------------------------- */
.flow { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow .stage {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 20px; position: relative;
}
.flow .stage::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 1rem;
  margin-bottom: 13px;
}
.flow .stage h3 { font-size: 1.02rem; color: var(--navy); margin: 0 0 6px; font-weight: 700; }
.flow .stage p { margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.55; }

/* --- Marketplace links ---------------------------------------------- */
.markets { display: grid; gap: 12px; }
@media (min-width: 700px) { .markets { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.market {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; text-decoration: none; transition: border-color .15s, transform .15s;
}
.market:hover { border-color: var(--green); transform: translateY(-2px); }
.market .ico {
  flex: 0 0 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
}
.market .ico svg { width: 23px; height: 23px; }
.market .txt strong { display: block; color: var(--navy); font-size: .99rem; }
.market .txt span { display: block; color: var(--slate); font-size: .85rem; margin-top: 2px; }
.market .go { margin-left: auto; color: var(--green); font-weight: 700; font-size: 1.2rem; }

/* --- Category pills -------------------------------------------------- */
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.taglist span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: .89rem; font-weight: 600; color: var(--ink-soft);
}

/* --- Inline lead form ------------------------------------------------ */
.leadbox {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 20px; box-shadow: var(--shadow);
}
.leadbox h2 { margin-top: 0; }
@media (min-width: 860px) { .leadbox { padding: 32px; } }

/* --- Footer ---------------------------------------------------------- */
.site-foot { background: var(--navy); }
.site-foot h4 { color: #fff; }
.site-foot a { color: rgba(255,255,255,.82); }
.site-foot a:hover { color: var(--leaf); }
.site-foot .small { color: rgba(255,255,255,.72); }
.foot-base { color: rgba(255,255,255,.6); border-top-color: rgba(255,255,255,.16); }

/* Never put type on amber. Amber is a rule or a badge. */
.accent-rule { height: 4px; width: 62px; background: var(--amber); border-radius: 3px; margin: 0 0 18px; }

/* --- Hero corrections ------------------------------------------------ */
/* On a phone the assurances read as a stacked list, not a jammed row. */
.hero-assure {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 620px) {
  .hero-assure { grid-auto-flow: column; grid-template-columns: none; justify-content: start; gap: 26px; }
}
.hero-assure span { gap: 9px; line-height: 1.3; }

/* Stacked buttons match each other; side by side they size to content. */
.hero-cta { grid-template-columns: 1fr; }
.hero-cta .btn { width: 100%; justify-content: center; }
@media (min-width: 560px) {
  .hero-cta { grid-template-columns: none; }
  .hero-cta .btn { width: auto; }
}

/* Which release is actually running. Quiet, but always visible, so an
   upload that did not land cannot be mistaken for one that did. */
.version-stamp {
  position: fixed; right: 10px; bottom: 8px; z-index: 5;
  font-size: 11px; color: #8497A9; background: rgba(255,255,255,.9);
  padding: 4px 9px; border-radius: 999px; border: 1px solid #E3EAF0;
  pointer-events: none;
}
@media (max-width: 720px) { .version-stamp { display: none; } }

/* ===================================================================
   Settings
   Sixty settings in one scroll was unusable. A list down the side, one
   section shown at a time, and a search that looks across all of them.
   Without JavaScript every section is visible, so nothing is unreachable.
   =================================================================== */
.settings-shell {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-flex-wrap: wrap; flex-wrap: wrap;
  margin-left: -10px; margin-right: -10px;
}
.settings-nav  { width: 100%; padding: 0 10px; margin-bottom: 16px; }
.settings-body { width: 100%; padding: 0 10px; min-width: 0; }
@media (min-width: 900px) {
  .settings-nav { width: 274px; margin-bottom: 0; }
}

.settings-search { margin-bottom: 10px; }
.settings-search .input { font-size: .92rem; }

.settings-tab {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid #E3EAF0; border-radius: 10px;
  padding: 11px 13px; margin-bottom: 6px; color: #16324F;
  font-family: inherit; font-size: .92rem; font-weight: 600;
}
.settings-tab:hover { border-color: #B9C7D4; }
.settings-tab.on { background: #16324F; border-color: #16324F; color: #fff; }
.settings-tab svg { width: 17px; height: 17px; margin-right: 10px; flex: 0 0 17px; opacity: .8; }
.st-text {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  -webkit-align-items: center; align-items: center;
  width: 100%;
}
.st-count { font-size: .74rem; font-weight: 700; opacity: .6; }

/* Everything is visible by default, so the page still works with no
   JavaScript. The script adds .js-tabs, which turns on the sections. */
.settings-nav { display: none; }
.settings-shell.js-tabs .settings-nav { display: block; }
@media (min-width: 900px) {
  .settings-shell.js-tabs .settings-nav { display: block; }
}
.settings-shell.js-tabs .settings-panel { display: none; }
.settings-shell.js-tabs .settings-panel.on { display: block; }
.settings-shell.js-tabs .settings-body { width: 100%; }
@media (min-width: 900px) {
  .settings-shell.js-tabs .settings-body { width: calc(100% - 274px); }
}

.setting-row { position: relative; }
.setting-key {
  display: block; font-size: .72rem; color: #A8B6C4; margin-top: 4px;
}

.settings-save {
  position: sticky; bottom: 0; z-index: 4;
  background: rgba(242,246,250,.96);
  border-top: 1px solid #E3EAF0;
  padding: 12px 0; margin-top: 6px;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-flex-wrap: wrap; flex-wrap: wrap;
}
.settings-save .btn { margin-right: 12px; }

.settings-nomatch {
  background: #fff; border: 1px solid #E3EAF0; border-radius: 12px;
  padding: 22px; text-align: center; color: #55697E; font-size: .93rem;
}

/* ===================================================================
   Dashboard
   =================================================================== */
.period-bar {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-flex-wrap: wrap; flex-wrap: wrap;
  margin: 14px -3px 0;
}
.period-bar a {
  display: inline-block; margin: 0 3px 6px; padding: 7px 13px;
  background: #fff; border: 1px solid #E3EAF0; border-radius: 999px;
  font-size: .84rem; font-weight: 600; color: #55697E; text-decoration: none;
}
.period-bar a:hover { border-color: #B9C7D4; color: #16324F; }
.period-bar a.on { background: #16324F; border-color: #16324F; color: #fff; }

.kpi-grid {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-flex-wrap: wrap; flex-wrap: wrap;
  margin: 0 -6px 4px;
}
.kpi-grid > .kpi { width: 50%; }
@media (min-width: 900px) { .kpi-grid > .kpi { width: 25%; } }
.kpi {
  padding: 0 6px 12px;
}
.kpi > .k, .kpi > .v, .kpi > .s { display: block; }
.kpi {
  background: none; border: 0;
}
.kpi .k, .kpi .v, .kpi .s { padding-left: 16px; padding-right: 16px; }
.kpi .k { padding-top: 15px; }
.kpi .s { padding-bottom: 15px; }
.kpi {
  position: relative;
}
.kpi::before {
  content: ''; position: absolute; top: 0; left: 6px; right: 6px; bottom: 12px;
  background: #fff; border: 1px solid #E3EAF0; border-radius: 12px; z-index: 0;
}
.kpi .k, .kpi .v, .kpi .s { position: relative; z-index: 1; }
.kpi .k {
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #8497A9;
}
.kpi .v {
  font-size: 1.75rem; font-weight: 800; color: #16324F; line-height: 1.1; margin-top: 6px;
}
.kpi .s { font-size: .8rem; color: #55697E; margin-top: 5px; }
.kpi-money::before { background: #EDF7E9; border-color: rgba(70,177,47,.3); }
.kpi-money .v { color: #2F7D1F; }

.dl { display: inline-block; font-weight: 700; font-size: .78rem; margin-left: 4px; }
.dl.up   { color: #2F7D1F; }
.dl.down { color: #C8452B; }
.dl.flat, .dl.new { color: #8497A9; }

.dash-split {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-flex-wrap: wrap; flex-wrap: wrap;
  margin: 0 -8px;
}
.dash-main { width: 100%; padding: 0 8px; min-width: 0; }
.dash-side { width: 100%; padding: 0 8px; min-width: 0; }
@media (min-width: 1100px) {
  .dash-main { width: 62%; }
  .dash-side { width: 38%; }
}

.chart { display: block; max-width: 100%; }
.spark { display: block; }

.statlist { margin: 0; }
.statlist > div {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  -webkit-align-items: baseline; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid #EFF3F7;
}
.statlist > div:last-child { border-bottom: 0; }
.statlist dt { margin: 0; color: #55697E; font-size: .92rem; }
.statlist dd { margin: 0; font-weight: 700; color: #16324F; font-size: .98rem; }

.explainer {
  background: #F6F9FB; border-left: 3px solid #0F8ED1;
  border-radius: 0 8px 8px 0; padding: 12px 14px; margin-top: 14px;
}
.explainer p { margin: 0 0 8px; font-size: .88rem; color: #31465C; line-height: 1.55; }
.explainer p:last-child { margin-bottom: 0; }

/* Raw webhook payload, for working out why something did not match. */
pre.payload {
  background: #16324F; color: #E8F0F6; padding: 16px; border-radius: 10px;
  overflow: auto; font-size: .78rem; line-height: 1.55; max-height: 520px;
}

/* ===================================================================
   Taking payment at the doorstep
   Big targets and clear state: this is used one-handed, outdoors, with
   somebody waiting.
   =================================================================== */
.waiting-box {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  background: #F6F9FB; border: 1px dashed #C3D0DC; border-radius: 12px;
  padding: 20px; color: #55697E; font-size: .95rem;
}
.pulse {
  width: 12px; height: 12px; border-radius: 50%; background: #0F8ED1;
  margin-right: 12px; flex: 0 0 12px;
  -webkit-animation: pulse 1.4s infinite; animation: pulse 1.4s infinite;
}
@-webkit-keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.cand {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-flex-wrap: wrap; flex-wrap: wrap;
  background: #EDF7E9; border: 2px solid #46B12F; border-radius: 12px;
  padding: 16px; margin-bottom: 10px;
}
.cand-what { -webkit-box-flex: 1; -webkit-flex: 1 1 200px; flex: 1 1 200px; }
.cand-what strong { display: block; font-size: 1.5rem; color: #205417; line-height: 1.2; }
.cand-what .tiny { display: block; color: #3A6B2C; margin-top: 3px; }
.cand form { margin-left: auto; }
.cand .btn { padding: 14px 24px; font-size: 1rem; }
@media (max-width: 560px) {
  .cand form { margin-left: 0; width: 100%; margin-top: 12px; }
  .cand .btn { width: 100%; }
}
.cand-new { -webkit-animation: landed .5s ease; animation: landed .5s ease; }
@-webkit-keyframes landed { from { -webkit-transform: scale(.97); opacity: .4; } }
@keyframes landed { from { transform: scale(.97); opacity: .4; } }

.msg-warn {
  background: #FFF8E4; border-left: 4px solid #FCBE10; border-radius: 0 8px 8px 0;
  padding: 13px 16px; margin-bottom: 14px; font-size: .93rem; color: #6B4E00;
}
