/* =========================================================================
   CIPTA — design tokens
   The receipt is the review.

   A receipt-as-design-language system: thermal-print paper, ink, perforations,
   tabular numerals, stamp marks. Cream paper + ink-black + a single active red.
   No purple gradients. No Inter. No glass. No neumorphism.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=JetBrains+Mono:wght@400;500;700&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  /* --- paper & ink ---------------------------------------------------- */
  --paper:           #F4EDE0;   /* base thermal cream                       */
  --paper-warm:      #EDE3D2;   /* surface depth                            */
  --paper-edge:      #DCCFB4;   /* tear / edge                              */
  --paper-deep:      #C9BFA8;   /* perforation, faint rules                 */

  --ink:             #1A1410;   /* primary text                             */
  --ink-soft:        #4A3F35;   /* secondary text                           */
  --ink-faded:       #6F644F;   /* tertiary text — passes WCAG AA on paper  */
  --ink-ghost:       #B8AC9A;   /* very faint visual dividers (non-text)    */

  /* --- the one active color ------------------------------------------ */
  --stamp:           #C8351C;   /* receipt total / VERIFIED stamp red       */
  --stamp-deep:      #6B2918;   /* aged stamp                                */
  --stamp-bleed:     rgba(200, 53, 28, 0.08); /* watermark wash             */

  /* --- dark thermal (for app night use) ------------------------------ */
  --night-paper:     #16120D;
  --night-ink:       #F4EDE0;
  --night-ink-soft:  #C9BFA8;
  --night-stamp:     #FF6A4D;

  /* --- type ----------------------------------------------------------- */
  --font-display:    "Fraunces", "Times New Roman", Georgia, serif;
  --font-body:       "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:       "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* --- scale (modular, 1.250 + a display jump) ----------------------- */
  --t-xs:   0.75rem;     /* 12 - fineprint */
  --t-sm:   0.875rem;    /* 14 - meta      */
  --t-base: 1rem;        /* 16 - body      */
  --t-md:   1.125rem;    /* 18 - lead      */
  --t-lg:   1.5rem;      /* 24 - section   */
  --t-xl:   2.25rem;     /* 36 - heading   */
  --t-2xl:  3.75rem;     /* 60 - display   */
  --t-3xl:  6rem;        /* 96 - hero      */
  --t-4xl:  9rem;        /* 144 - poster   */

  /* --- spacing (8pt-ish) --------------------------------------------- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* --- form ----------------------------------------------------------- */
  --r-sm: 2px;
  --r-md: 4px;       /* receipts are mostly square. tiny radii only.       */
  --r-lg: 8px;
  --r-pill: 999px;

  --rule-thin:  1px;
  --rule-mid:   1.5px;
  --rule-thick: 2px;

  --shadow-paper:   0 1px 0 rgba(26,20,16,0.04), 0 12px 32px -16px rgba(26,20,16,0.18);
  --shadow-stamp:   0 0 0 1px var(--stamp), inset 0 0 0 1px rgba(255,255,255,0.4);
  --shadow-lift:    0 24px 60px -28px rgba(26,20,16,0.32);
}

/* =========================================================================
   PAPER GRAIN
   Subtle SVG noise overlay so every surface reads as paper, not screen.
   ========================================================================= */
.paper-grain {
  position: relative;
  isolation: isolate;
}
.paper-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0 0.06  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.paper-grain > * { position: relative; z-index: 1; }

/* =========================================================================
   PERFORATION  —  dotted divider in the receipt vernacular
   ========================================================================= */
.perforation {
  display: block;
  height: 14px;
  border: 0;
  background-image: radial-gradient(circle at 4px 7px, var(--paper-deep) 1.6px, transparent 1.8px);
  background-size: 12px 14px;
  background-repeat: repeat-x;
}
.perforation--ink {
  background-image: radial-gradient(circle at 4px 7px, var(--ink-soft) 1.4px, transparent 1.6px);
}

/* tear edge — top or bottom of a "torn" receipt card */
.tear-top, .tear-bottom {
  --tooth: 14px;
  position: relative;
}
.tear-top::before, .tear-bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: var(--tooth);
  background:
    radial-gradient(circle at 7px var(--tooth),
      transparent 7px, var(--paper) 7.5px) 0 0 / 14px var(--tooth) repeat-x;
}
.tear-top::before    { top: calc(-1 * var(--tooth) + 1px); }
.tear-bottom::after  { bottom: calc(-1 * var(--tooth) + 1px); transform: scaleY(-1); }

/* =========================================================================
   ITEMIZED ROW  —  item ......... value, the receipt's basic atom
   ========================================================================= */
.itemized {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-base);
  color: var(--ink);
  letter-spacing: 0.01em;
}
.itemized__label  { white-space: nowrap; }
.itemized__leader {
  flex: 1 1 auto;
  border-bottom: 1.5px dotted var(--ink-faded);
  transform: translateY(-4px);
  min-width: 24px;
}
.itemized__value  {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.itemized--total .itemized__label,
.itemized--total .itemized__value {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stamp);
}

/* =========================================================================
   STAMP MARKS  —  rotated, ink-bleed, slightly imperfect
   ========================================================================= */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 14px;
  border: 2px solid var(--stamp);
  color: var(--stamp);
  background: var(--stamp-bleed);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transform: rotate(-6deg);
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 24px rgba(200,53,28,0.08), inset 0 0 1px rgba(0,0,0,0.2);
  filter: contrast(1.05);
}
.stamp::before { content: "✓"; font-style: normal; font-size: 1em; }

.stamp--lg { font-size: var(--t-md); padding: 10px 22px; letter-spacing: 0.22em; }
.stamp--ghost { opacity: 0.6; }

/* =========================================================================
   RECEIPT CARD  —  a paper artifact
   ========================================================================= */
.receipt {
  background: var(--paper);
  color: var(--ink);
  padding: var(--s-7) var(--s-6);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-paper);
  position: relative;
  isolation: isolate;
  font-family: var(--font-body);
  max-width: 420px;
  margin: 0 auto;
}
.receipt__head {
  text-align: center;
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.receipt__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--t-xl);
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.receipt__store {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.receipt__meta {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink-faded);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* =========================================================================
   STARS  —  itemized receipts are scored, not priced
   We render with monospace asterisks so they live in the tabular grid.
   ========================================================================= */
.stars {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--stamp);
}
.stars__off { color: var(--paper-deep); }

/* =========================================================================
   BUTTONS  —  primary = ink stamp; secondary = receipt-line
   ========================================================================= */
.btn {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  border: 2px solid var(--ink);
}
.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover {
  transform: translate(-1px,-1px);
  box-shadow: 4px 4px 0 0 var(--ink);
}
.btn--paper {
  background: transparent;
  color: var(--ink);
}
.btn--paper:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn--stamp {
  background: var(--stamp);
  border-color: var(--stamp);
  color: var(--paper);
}
.btn--stamp:hover {
  transform: translate(-1px,-1px);
  box-shadow: 4px 4px 0 0 var(--stamp-deep);
}

/* =========================================================================
   TICKER  —  scrolling marquee for live reviews
   ========================================================================= */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker {
  overflow: hidden;
  border-block: 1.5px solid var(--ink);
  background: var(--paper-warm);
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: var(--s-7);
  animation: ticker-scroll 60s linear infinite;
}
.ticker__item::before {
  content: "★ ";
  color: var(--stamp);
  margin-right: 8px;
}

/* =========================================================================
   PRINT-FEED REVEAL  —  receipt printing in line by line
   ========================================================================= */
@keyframes feed-in {
  from { transform: translateY(-8px); opacity: 0; clip-path: inset(0 0 100% 0); }
  to   { transform: translateY(0);    opacity: 1; clip-path: inset(0 0 0 0); }
}
.feed-in   { animation: feed-in 480ms cubic-bezier(.2,.7,.2,1) both; }
.feed-in-1 { animation-delay: 80ms; }
.feed-in-2 { animation-delay: 200ms; }
.feed-in-3 { animation-delay: 340ms; }
.feed-in-4 { animation-delay: 480ms; }
.feed-in-5 { animation-delay: 620ms; }
.feed-in-6 { animation-delay: 760ms; }
.feed-in-7 { animation-delay: 900ms; }

/* =========================================================================
   GLOBAL  —  body baseline for raw HTML pages
   ========================================================================= */
.cipta-body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.display { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.02em; line-height: 0.92; }
.mono    { font-family: var(--font-mono); }
.upper   { text-transform: uppercase; letter-spacing: 0.16em; }
.fineprint { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-faded); letter-spacing: 0.14em; text-transform: uppercase; }

/* =========================================================================
   PHONE MOCKUP  —  Shows the app inside an iPhone-style frame.
   Use to demonstrate UI screens. Frame is dark/ink, screen is paper.
   ========================================================================= */
.phone {
  width: 280px;
  height: 580px;
  background: var(--ink);
  border-radius: 38px;
  padding: 10px;
  position: relative;
  box-shadow:
    0 0 0 2px var(--ink),
    0 22px 60px -20px rgba(26,20,16,0.45),
    inset 0 0 0 1.5px rgba(255,255,255,0.08);
}
.phone__screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.phone__notch {
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px;
  background: var(--ink);
  border-radius: 14px;
  z-index: 5;
}
.phone__statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 6px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.phone__statusbar-icons {
  display: inline-flex; gap: 4px; font-size: 10px; letter-spacing: 0.05em;
}
.phone__appbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1.5px solid var(--ink);
}
.phone__appbar-side {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--ink);
  width: 22px;
}
.phone__appbar-title {
  font-family: var(--font-display); font-style: italic;
  font-weight: 900; font-size: 16px;
  letter-spacing: -0.01em;
}
.phone__body {
  flex: 1; overflow: hidden;
  padding: 16px 18px;
  font-family: var(--font-body);
  position: relative;
}
.phone__body--scan {
  background: var(--ink);
  color: var(--paper);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 18px;
}
.phone__viewfinder {
  width: 78%; aspect-ratio: 0.62;
  background: var(--paper);
  position: relative;
  box-shadow: 0 0 0 2px var(--paper-deep), 0 0 0 4px transparent;
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 12px;
  font-family: var(--font-mono); font-size: 9px;
  color: var(--ink);
  text-align: center;
  gap: 6px;
}
.phone__viewfinder::before, .phone__viewfinder::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--stamp);
}
.phone__viewfinder::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.phone__viewfinder::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.phone__viewfinder-store { font-family: var(--font-display); font-weight: 900; font-size: 12px; letter-spacing: -0.01em; }
.phone__viewfinder-line {
  display: flex; justify-content: space-between; width: 100%;
  border-bottom: 1px dotted var(--ink-faded);
  padding-bottom: 2px; padding-top: 2px;
}
.phone__scan-prompt {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--paper-deep); text-align: center;
}
.phone__scan-prompt strong { color: var(--paper); display: block; font-family: var(--font-display); font-size: 17px; font-style: italic; text-transform: none; letter-spacing: -0.01em; margin-bottom: 4px; }
.phone__scan-shutter {
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 3px solid var(--paper);
  background: var(--stamp);
  position: relative;
}
.phone__scan-shutter::after {
  content: ""; position: absolute; inset: 6px;
  border-radius: 999px; border: 1.5px solid var(--paper);
}

.phone__rate-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--ink-faded);
}
.phone__rate-row:last-child { border-bottom: 0; }
.phone__rate-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink); letter-spacing: 0.02em;
}
.phone__rate-stars {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--stamp); letter-spacing: 0.16em;
}
.phone__rate-stars-off { color: var(--paper-deep); }
.phone__rate-prompt {
  font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-faded); margin-bottom: 8px;
}

.phone__verified-receipt {
  text-align: center;
  padding: 6px 0 10px;
}
.phone__verified-store {
  font-family: var(--font-display); font-weight: 900;
  font-size: 13px; letter-spacing: -0.01em;
}
.phone__verified-meta {
  font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-faded); margin-top: 4px;
}
.phone__divider {
  border: 0; border-top: 1.5px dashed var(--ink-faded);
  margin: 10px -8px;
}
.phone__verified-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  font-family: var(--font-mono); font-size: 11px;
}
.phone__verified-line-name { color: var(--ink); }
.phone__verified-line-stars { color: var(--stamp); letter-spacing: 0.16em; font-size: 11px; }
.phone__verified-total {
  display: flex; justify-content: space-between;
  font-family: var(--font-display); font-weight: 900;
  font-size: 12px; letter-spacing: -0.01em;
  margin-top: 4px;
}
.phone__verified-stamp {
  position: absolute; top: 84px; right: 12px;
  border: 2px solid var(--stamp); color: var(--stamp);
  background: rgba(200,53,28,0.08);
  font-family: var(--font-display); font-style: italic;
  font-weight: 800; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em;
  padding: 4px 10px; border-radius: 2px;
  transform: rotate(-7deg);
}
.phone__tabbar {
  display: flex; justify-content: space-around;
  padding: 10px 12px;
  border-top: 1.5px solid var(--ink);
  background: var(--paper-warm);
}
.phone__tabbar a {
  font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-faded); text-decoration: none;
  text-align: center;
}
.phone__tabbar a span { display: block; font-size: 14px; margin-bottom: 1px; color: inherit; }
.phone__tabbar a.is-active { color: var(--ink); }

/* =========================================================================
   PERSONAL LEDGER SECTION  —  Your meals, on the record
   ========================================================================= */
.ledger {
  padding: 96px 0;
  background: var(--paper-warm);
  border-block: 1.5px solid var(--ink);
}
.ledger__container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ledger__grid {
  display: grid; grid-template-columns: 1fr; gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) { .ledger__grid { grid-template-columns: 1fr 1fr; gap: 96px; padding: 24px 0; } }
.ledger__copy h2 { margin-top: 16px; }
.ledger__copy p.lede, .ledger__copy .lede { margin-top: 24px; }
.ledger__uses {
  list-style: none; padding: 0; margin: 32px 0;
  display: grid; gap: 14px;
  border-top: 1.5px dashed var(--ink-faded);
  padding-top: 24px;
}
.ledger__uses li {
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-style: italic;
  color: var(--ink);
  padding-left: 28px;
  position: relative;
  line-height: 1.4;
}
.ledger__uses li::before {
  content: "?";
  position: absolute; left: 0; top: 0;
  color: var(--stamp);
  font-weight: 900; font-style: normal;
  font-family: var(--font-display);
  font-size: var(--t-lg); line-height: 1;
}
.ledger__cta {
  font-family: var(--font-mono); font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink); border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px; transition: color 160ms;
  text-decoration: none;
  display: inline-block;
}
.ledger__cta:hover { color: var(--stamp); border-color: var(--stamp); }

.ledger__receipt-stage {
  position: relative;
  display: flex; justify-content: center;
}
.ledger__receipt-stage::after {
  content: ""; position: absolute; inset: -4% -8%; z-index: -1;
  background: radial-gradient(closest-side, rgba(200,53,28,0.10), transparent 70%);
}
.ledger__receipt {
  width: min(440px, 100%);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-paper);
  padding: 36px 28px 24px;
  position: relative;
  transform: rotate(0.6deg);
}
.ledger__receipt::before, .ledger__receipt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: radial-gradient(circle at 7px 12px, transparent 7px, var(--paper-warm) 7.5px) 0 0 / 14px 12px repeat-x;
}
.ledger__receipt::before { top: -10px; }
.ledger__receipt::after { bottom: -10px; transform: scaleY(-1); }
.ledger__receipt-head {
  text-align: center; margin-bottom: 16px;
}
.ledger__receipt-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--t-md); letter-spacing: -0.02em;
}
.ledger__receipt-sub {
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faded); margin-top: 4px;
}
.ledger__row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  padding: 8px 0;
  align-items: baseline;
}
.ledger__date {
  color: var(--ink-faded);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--t-xs);
}
.ledger__where {
  color: var(--ink);
}
.ledger__where small {
  display: block;
  color: var(--ink-faded);
  font-size: var(--t-xs);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.ledger__rating { color: var(--stamp); font-weight: 700; letter-spacing: 0.18em; }
.ledger__rating-off { color: var(--paper-deep); }
.ledger__divider { border: 0; border-top: 1.5px dashed var(--ink-faded); margin: 14px -8px; }
.ledger__total-label {
  grid-column: 1 / 3;
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--t-md); letter-spacing: -0.01em;
}
.ledger__total-value {
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--ink-faded); letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ledger__count-label {
  grid-column: 1 / 3;
  font-family: var(--font-mono); font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-faded);
}
.ledger__count-value {
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--ink-faded);
}
.ledger__footer-id {
  text-align: center;
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faded); margin-top: 8px;
}

/* =========================================================================
   APP STORE BADGES  —  real Apple / Google CTA pattern
   Use real store URLs in the href when known.
   ========================================================================= */
.store-badges {
  display: inline-flex; flex-wrap: wrap; gap: 12px;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  padding: 11px 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
  min-width: 168px;
  font-family: var(--font-body);
}
.store-badge:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--stamp);
}
.store-badge svg {
  width: 26px; height: 26px; flex-shrink: 0; fill: var(--paper);
}
.store-badge__text {
  display: flex; flex-direction: column; line-height: 1.05; text-align: left;
}
.store-badge__small {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--paper-deep);
  margin-bottom: 2px;
}
.store-badge__big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.store-badge--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.store-badge--paper svg { fill: var(--ink); }
.store-badge--paper .store-badge__small { color: var(--ink-faded); }

/* =========================================================================
   STICKY MOBILE INSTALL BAR  —  always-visible CTA on mobile
   ========================================================================= */
.install-bar {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 70;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  padding: 10px 14px;
  display: none;
  align-items: center; justify-content: space-between;
  gap: 12px;
  box-shadow: 0 14px 32px -12px rgba(26,20,16,0.45);
}
@media (max-width: 720px) { .install-bar { display: flex; } }
.install-bar__copy {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--paper-deep);
}
.install-bar__copy strong { color: var(--paper); display: block; font-family: var(--font-display); font-style: italic; font-size: 16px; letter-spacing: -0.01em; text-transform: none; margin-top: 2px; }
.install-bar__ctas { display: inline-flex; gap: 8px; flex-shrink: 0; }
.install-bar__btn {
  background: var(--paper); color: var(--ink);
  padding: 8px 12px; border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.install-bar__btn svg { width: 13px; height: 13px; fill: var(--ink); }

/* selection */
::selection { background: var(--ink); color: var(--paper); }

/* focus */
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: var(--r-sm); }
