/* ============================================================
   QuickBack — storefront styles
   Palette: deep pine ink / warm paper / coral "cash" / mint / slate
   Type: Bricolage Grotesque (display) · Inter (body) · Space Mono (figures)
   ============================================================ */

:root {
  --ink:        #0C2B26;
  --ink-soft:   #1d4a42;
  --paper:      #F5F2EC;
  --paper-2:    #EDE8DE;
  --cash:       #FF5C35;
  --cash-deep:  #E8410F;
  --mint:       #B6E3C6;
  --mint-deep:  #5fae7f;
  --slate:      #8A968F;
  --line:       rgba(12, 43, 38, 0.14);

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
em { font-style: italic; color: var(--cash); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--slate); }
a { color: inherit; }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--cash-deep);
  margin: 0 0 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  border: 2px solid var(--ink); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--cash); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn:focus-visible { outline: 3px solid var(--cash-deep); outline-offset: 3px; }

/* ---------- topbar / wallet ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--display); font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -0.03em; display: flex; align-items: center; gap: 9px; }
.brand-back { color: var(--cash); }
.brand-mark { width: 18px; height: 18px; border-radius: 50%; background: var(--cash); box-shadow: inset 0 0 0 4px var(--ink); display: inline-block; }
.brand-mark.sm { width: 14px; height: 14px; box-shadow: inset 0 0 0 3px var(--ink); }
.topnav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; font-size: 15px; }
.topnav a { text-decoration: none; opacity: .75; }
.topnav a:hover { opacity: 1; color: var(--cash-deep); }

.wallet {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  padding: 8px 8px 8px 16px; border-radius: 999px;
}
.wallet-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.wallet-amount { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--mint); transition: transform .2s ease; }
.wallet-amount.bump { transform: scale(1.18); }
.wallet-cash { font-family: var(--display); font-weight: 700; font-size: 13px; border: 0; border-radius: 999px; padding: 7px 13px; background: var(--cash); color: var(--ink); cursor: pointer; }
.wallet-cash:disabled { background: var(--ink-soft); color: var(--slate); cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.hero h1 { font-size: clamp(44px, 7vw, 84px); margin: 0 0 22px; }
.lede { font-size: clamp(17px, 1.8vw, 20px); max-width: 30ch; color: var(--ink-soft); }
.hero-cta { display: flex; gap: 14px; margin: 30px 0 14px; flex-wrap: wrap; }
.hero-fineprint { font-family: var(--mono); font-size: 12.5px; color: var(--slate); }

/* signature receipt */
.receipt {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 22px; box-shadow: 7px 7px 0 var(--ink);
  position: relative;
}
.receipt-head { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.receipt-store { color: var(--ink); font-weight: 600; }
.receipt-order { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 15px; }
.receipt-order .mono { font-size: 20px; font-weight: 700; }
.perf { height: 0; border-top: 2px dashed var(--line); margin: 18px -22px; }

.lane { padding: 14px 0; }
.lane + .lane { border-top: 1px solid var(--line); }
.lane-top { display: flex; justify-content: space-between; align-items: center; }
.lane-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; }
.tag-quick { background: var(--cash); color: var(--ink); }
.tag-shop { background: var(--paper-2); color: var(--slate); }
.lane-figure { font-size: 30px; font-weight: 700; }
.lane-now .lane-figure { color: var(--cash-deep); }
.lane-status { font-size: 13px; margin-top: 6px; }
.lane-now .lane-status { color: var(--mint-deep); font-weight: 600; }

.bar { height: 7px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin: 10px 0 7px; }
.bar-fill { display: block; height: 100%; width: 4%; background: var(--slate); border-radius: 999px; transition: width 1s linear; }

.receipt-replay {
  display: block; margin: 16px 0 0 auto;
  font-family: var(--mono); font-size: 11px; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; color: var(--slate); cursor: pointer;
}
.receipt-replay:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- how ---------- */
.how { max-width: var(--maxw); margin: 0 auto; padding: clamp(30px,5vw,60px) clamp(16px,4vw,40px); }
.how h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 36px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.step-no { display: block; font-size: 28px; font-weight: 700; color: var(--cash); margin-bottom: 14px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- compare ---------- */
.compare { background: var(--ink); color: var(--paper); margin-top: 30px; }
.compare-grid {
  max-width: 880px; margin: 0 auto; padding: clamp(40px,6vw,72px) clamp(16px,4vw,40px) 18px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px,3vw,36px); align-items: stretch;
}
.compare-col { border-radius: var(--r-md); padding: 26px; }
.compare-quick { background: var(--cash); color: var(--ink); }
.compare-shop { background: var(--ink-soft); }
.compare-col h3 { font-size: 24px; margin-bottom: 16px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li { padding: 9px 0; border-top: 1px solid rgba(255,255,255,.16); font-size: 15px; }
.compare-quick li { border-top-color: rgba(12,43,38,.18); }
.compare-col li:first-child { border-top: 0; }
.compare-vs { align-self: center; font-size: 22px; font-weight: 700; opacity: .6; }
.compare-line { text-align: center; max-width: 60ch; margin: 8px auto 0; padding: 0 20px clamp(40px,6vw,64px); color: var(--mint); font-size: 16px; }

/* ---------- stores ---------- */
.stores { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px,6vw,72px) clamp(16px,4vw,40px); }
.stores-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.stores h2 { font-size: clamp(28px,4vw,44px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink-soft); }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.store {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.store:hover { transform: translateY(-3px); box-shadow: 5px 7px 0 var(--ink); border-color: var(--ink); }
.store-logo { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; font-size: 19px; margin-bottom: 6px; }
.store-name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.store-cat { font-size: 12px; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }
.store-rate { margin-top: auto; padding-top: 12px; }
.store-rate .now { font-family: var(--mono); font-weight: 700; font-size: 26px; color: var(--cash-deep); }
.store-rate .now small { font-size: 13px; }
.store-rate .later { font-size: 12px; color: var(--slate); }
.store .btn { margin-top: 12px; width: 100%; }

/* ---------- extension ---------- */
.ext {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(30px,5vw,60px) clamp(16px,4vw,40px) 80px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,5vw,60px); align-items: center;
}
.ext h2 { font-size: clamp(28px,4vw,44px); margin-bottom: 18px; }
.ext-load { font-family: var(--mono); font-size: 14px; padding-left: 20px; color: var(--ink-soft); line-height: 1.9; }
.ext-load code { background: var(--paper-2); padding: 2px 6px; border-radius: 6px; font-size: 13px; }
.ext-mock { display: grid; place-items: center; }
.ext-bubble {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: 7px 7px 0 var(--cash); padding: 18px; width: 260px;
}
.ext-bubble-head { display: flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.ext-bubble-store { font-size: 14px; margin: 0 0 12px; }
.ext-bubble .btn { width: 100%; }
.ext-bubble-note { font-size: 11px; margin: 10px 0 0; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 40px clamp(16px,4vw,40px); }
.foot-brand { font-family: var(--display); font-weight: 800; font-size: 26px; margin-bottom: 12px; }
.foot-brand .brand-back { color: var(--cash); }
.foot-disclaimer { max-width: 72ch; font-size: 13px; color: var(--slate); line-height: 1.6; margin: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(140%);
  background: var(--ink); color: var(--paper); padding: 14px 22px; border-radius: 999px;
  font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 80;
  transition: transform .3s cubic-bezier(.2,.9,.3,1.2); display: flex; gap: 10px; align-items: center;
}
.toast .mono { color: var(--mint); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero, .ext { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-vs { display: none; }
  .topnav { display: none; }
  .wallet-label { display: none; }
}
