/* HelloRegulars marketing site.
   Brand tokens match the product (owner portal + wallet passes): espresso,
   latte, cream. No framework, no build step — a marketing page has no
   business being an Angular app. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2-variations"),
       url("/assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --espresso: #3b2a20;
  --latte: #b98f5d;
  --cream: #f7f2ea;
  --text: #26211c;
  /* Latte is a decoration colour only — it does not meet AA against cream,
     so it is never used for body text. This is the muted text colour. */
  --muted: #6b5d52;
  --rule: #e2d8c9;
  --white: #fffdfa;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- type ---- */

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--espresso);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 1rem; font-weight: 640; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 0.85rem; font-weight: 600; }
h3 { font-size: 1.125rem; margin: 0 0 0.35rem; font-weight: 620; }

p { margin: 0 0 1rem; max-width: var(--measure); }
.lead { font-size: 1.1875rem; }

a { color: var(--espresso); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--espresso);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- layout ---- */

section { padding: 4.25rem 0; }
.band { background: var(--white); }

.sec-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 340;
  line-height: 1;
  color: var(--latte);
  opacity: 0.5;
  margin: 0 0 0.75rem;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--espresso);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

/* ---- buttons ---- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 2px solid var(--espresso);
}
.btn-primary { background: var(--espresso); color: var(--cream); }
.btn-primary:hover { background: #2c1f18; }
.btn-secondary { background: transparent; color: var(--espresso); }
.btn-secondary:hover { background: rgba(59, 42, 32, 0.07); }

/* ---- demo card ---- */

.demo {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 1.5rem;
}
.demo img {
  width: 168px;
  height: 168px;
  display: block;
  border-radius: 10px;
}
.demo-body { flex: 1 1 16rem; }
.demo-body p:last-of-type { margin-bottom: 0; }

/* One join path per device. A computer can only offer the QR (clicking the
   button there downloads a bare .pkpass file); a phone can only use the
   button (nobody can scan their own screen). Coarse-pointer = phone/tablet. */
.demo-phone { display: none; }
@media (hover: none) and (pointer: coarse) {
  .demo-phone { display: block; }
  .demo-desktop { display: none; }
  .demo .demo-qr { display: none; }
}

/* ---- interactive builder ---- */

/* align-items start: the form height changes per card type, and centring
   would make the controls jump vertically on every switch. */
.builder { display: grid; gap: 2.5rem; margin-top: 2rem; align-items: start; }
@media (min-width: 52rem) {
  .builder { grid-template-columns: 1fr 20.5rem; gap: 3.5rem; }
}

.builder-controls { display: grid; gap: 1.4rem; align-content: start; max-width: 26rem; }
/* display:grid would otherwise defeat the UA's [hidden] rule — the controls
   must stay invisible until site.js removes the attribute. */
.builder-controls[hidden] { display: none; }
.control { margin: 0; }
.control label, .control legend {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--espresso);
  margin-bottom: 0.4rem;
  padding: 0;
}
.control input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--rule);
  border-radius: 10px;
}
.control input[type="text"]:focus { border-color: var(--espresso); outline: none; }
fieldset.control { border: 0; padding: 0; margin: 0; }

.seg { display: inline-flex; border: 2px solid var(--espresso); border-radius: 10px; overflow: hidden; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: grid;
  place-items: center;
  min-width: 3.25rem;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--espresso);
}
.seg label + label span { border-left: 2px solid var(--espresso); }
.seg input:checked + span { background: var(--espresso); color: var(--cream); }
.seg input:focus-visible + span { outline: 3px solid var(--espresso); outline-offset: -3px; }

.swatches { display: flex; gap: 0.9rem; }
.swatch { position: relative; }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.swatch span {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--sw);
  text-indent: -9999px;
  overflow: hidden;
  border: 3px solid transparent;
}
.swatch input:checked + span { border-color: var(--espresso); box-shadow: 0 0 0 3px var(--cream) inset; }
.swatch input:focus-visible + span { outline: 3px solid var(--espresso); outline-offset: 3px; }

.builder-outro { margin-top: 2.25rem; font-weight: 600; color: var(--espresso); }

/* ---- the two remaining steps ---- */

.next-steps { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 48rem) { .next-steps { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.step-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.75rem;
}
.step-card h3 { margin-top: 1.25rem; }
.step-card p:last-child { margin-bottom: 0; }

/* ---- small phone variant for the step cards ---- */

.phone-sm { width: 15rem; border-radius: 38px; margin: 0 auto 1rem; }
.phone-sm .phone-screen { border-radius: 28px; padding: 3rem 0.7rem 1.1rem; }
/* The enrol page and staff app are light surfaces, not a dark lock screen. */
.phone .screen-light { background: #f6efe4; }

/* ---- the real enrol page, miniature (enrol.ts hero + sheet) ---- */

.enrol-hero {
  background: linear-gradient(160deg, #d9b98f, var(--latte));
  border-radius: 16px;
  padding: 1rem 0.75rem 0.9rem;
  text-align: center;
  color: var(--espresso);
}
.enrol-logo {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--white);
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  position: relative;
}
.enrol-logo::after {
  content: "";
  position: absolute;
  inset: 22%;
  background: var(--latte);
  -webkit-mask: var(--mug-mask) center / contain no-repeat;
  mask: var(--mug-mask) center / contain no-repeat;
}
.enrol-shop { font-weight: 800; font-size: 1rem; margin: 0; max-width: none; }
.enrol-sub { font-size: 0.68rem; font-weight: 600; opacity: 0.8; margin: 0.15rem 0 0; max-width: none; }
.enrol-count {
  text-align: center;
  font-weight: 800;
  color: var(--espresso);
  font-size: 0.9375rem;
  margin: 0.9rem 0 0.7rem;
  max-width: none;
}
.wallet-btn {
  display: block;
  background: #17130f;
  color: #fffdfa;
  text-align: center;
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 12px;
  padding: 0.65rem 0;
  margin: 0 0.3rem 0.55rem;
}

/* Mirrors the staff app's card screen (staff-app scan → card flow): shop
   header, customer first name, count, stamp grid, the two real buttons. */
.scanner { padding: 0.2rem 0.3rem; }
.scan-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 640;
  font-size: 1.125rem;
  color: var(--espresso);
  margin: 0;
  max-width: none;
}
.scan-count {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0.1rem 0 0.8rem;
  max-width: none;
}
.scan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.scan-grid span { aspect-ratio: 1; border-radius: 50%; background: var(--espresso); }
.scan-grid span.todo { background: none; border: 2px dashed rgba(59, 42, 32, 0.3); }
.scan-head {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  margin: 0 0 0.7rem;
  max-width: none;
}
.scan-btn {
  background: var(--espresso);
  color: var(--cream);
  text-align: center;
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 10px;
  padding: 0.55rem 0;
  margin: 0;
  max-width: none;
}
.scan-btn.ghost {
  background: none;
  color: var(--espresso);
  border: 2px solid var(--espresso);
  opacity: 0.5;
  padding: 0.42rem 0;
  margin-top: 0.5rem;
}


/* ---- pricing ---- */

.price {
  background: var(--white);
  border: 2px solid var(--espresso);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 1.5rem;
}
.price .amount {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 650;
  color: var(--espresso);
  line-height: 1;
  margin: 0 0 0.5rem;
}
.price .trial {
  font-weight: 600;
  color: var(--espresso);
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

/* ---- lists ---- */

.plain { padding-left: 1.2rem; max-width: var(--measure); }
.plain li { margin-bottom: 0.6rem; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 1.25rem 0 1.25rem;
}
.chips li {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  color: var(--espresso);
}
.chips a { text-decoration: none; }
.chips a:hover { text-decoration: underline; }

/* ---- faq ---- */

.faq { margin-top: 1.5rem; }
.faq h3 { margin-top: 1.75rem; }
.faq h3:first-child { margin-top: 0; }

/* ---- founder ---- */

.founder {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 1.5rem;
}
.sig { font-weight: 600; color: var(--espresso); margin-bottom: 0; }

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
footer a { color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1rem; }

/* ---- legal pages ---- */

.legal { padding: 3.5rem 0; }
.legal h2 { margin-top: 2.25rem; font-size: 1.375rem; }
.legal .updated { color: var(--muted); font-size: 0.9375rem; }

/* Wide content must scroll inside its own container, never the page body. */
.scroll-x { overflow-x: auto; }

/* ---- comparison table (guide pages) ---- */

.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.compare th, .compare td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.compare thead th {
  font-family: "Fraunces", Georgia, serif;
  color: var(--espresso);
  font-size: 1rem;
}
.compare tbody th { color: var(--espresso); font-weight: 700; white-space: nowrap; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

.plain-steps { padding-left: 1.2rem; max-width: var(--measure); }
.plain-steps li { margin-bottom: 0.9rem; }

/* ---- scroll reveal ----
   Hidden state only when JS is present AND motion is allowed, so no-JS and
   reduced-motion readers always see everything. */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* ============================================================
   Brand chrome — added after the first draft: the page had no
   logo and nothing to look at, on a site selling a visual product.
   ============================================================ */

/* Latte gradient hairline across the top of every page. */
body::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #d9b98f, var(--latte));
}

.site-header { padding: 1.25rem 0; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.site-nav a:hover { text-decoration: underline; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.9375rem; border-radius: 8px; }
.site-nav .btn-sm:hover { text-decoration: none; }
@media (max-width: 40rem) {
  .site-nav a:not(.btn) { display: none; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--espresso);
  letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; display: block; }
.brand:hover { text-decoration: none; }

/* ---- hero layout with the pass alongside ---- */

.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}
.hero { padding: 2.5rem 0 3.5rem; }

/* ---- the pass mockup ----
   A representation of a real HelloRegulars pass, drawn in CSS so it stays
   crisp and costs no image weight. Decorative: aria-hidden, because the
   copy beside it already says everything this shows. */

.pass, .pass-sm {
  --top-a: #d9b98f;
  --top-b: var(--latte);
  --top-ink: var(--espresso);
  --stamp: var(--espresso);
}
/* Mirrors the real Apple storeCard render (portal pass preview): one flat
   colour over the whole card, ink text, white stamps carrying the mark in
   the card colour. Deliberately not prettier than the product. */
.pass {
  background: var(--top-b);
  color: var(--top-ink);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(59, 42, 32, 0.16), 0 2px 6px rgba(59, 42, 32, 0.08);
  overflow: hidden;
  max-width: 22rem;
  margin: 0 auto;
  border: 1px solid rgba(59, 42, 32, 0.08);
}
.pass-top {
  background: none;
  color: var(--top-ink);
  padding: 1.1rem 1.25rem 0.6rem;
}

/* ---- phone frame around a pass ---- */

.phone {
  background: #241c16;
  border-radius: 46px;
  padding: 12px;
  /* Explicit width so the aspect ratio derives HEIGHT from it — with width
     auto, the ratio resolves from content height and the device changes
     size whenever the card inside does. */
  width: 20.5rem;
  max-width: 100%;
  /* Real iPhone body proportions — the frame must not stretch with content. */
  aspect-ratio: 39 / 80;
  display: flex;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 30px 60px rgba(59, 42, 32, 0.28), 0 4px 12px rgba(59, 42, 32, 0.12);
}
.phone::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 13px;
  background: #241c16;
}
.phone-screen {
  flex: 1;
  background: linear-gradient(180deg, #4a3b30, #2b211a);
  border-radius: 34px;
  padding: 3.5rem 0.9rem 2rem;
  overflow: hidden;
}
.phone .pass { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); max-width: none; }

/* ---- the hero wallet: three cards, tap to expand, like Apple Wallet ----
   Each card is a full pass whose body collapses to leave only its header
   strip. The header is a real <button>, so it works by keyboard too. */

.wallet .pass + .pass { margin-top: 0.55rem; }

/* Everything must fit the fixed phone: tighter rhythm inside the wallet. */
.wallet { padding-bottom: 1.25rem; }
.wallet .pass-top { padding: 0.9rem 1.25rem 0.45rem; }
.wallet .pass-body { padding: 0.85rem 1.25rem 0.95rem; }
.wallet .pass-grid { gap: 0.55rem; margin-bottom: 0.85rem; }
/* Real passes put their field pairs on one row. */
.wallet .field { display: inline-block; vertical-align: top; margin: 0 1.5rem 0.4rem 0; }
.wallet .pass-qr { width: 3.1rem; height: 3.1rem; margin-top: 0.7rem; }

.wallet button.pass-top {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.wallet .pass-top .pass-kicker,
.wallet .pass-top .pass-shop { display: block; margin: 0; }
.wallet .pass-top .pass-kicker { margin-bottom: 0.1rem; }
.wallet button.pass-top:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: -6px;
  border-radius: 12px;
}

.wallet .pass .pass-body { max-height: 30rem; overflow: hidden; }
.wallet .pass.closed .pass-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.wallet .pass.closed { box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.3); }
@media (prefers-reduced-motion: no-preference) {
  .wallet .pass .pass-body {
    transition: max-height 0.45s ease, padding 0.45s ease, opacity 0.3s ease;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .pass-grid span:not(.todo) {
    animation: stamp-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
  }
  .hero .pass-grid span:nth-child(1) { animation-delay: 0.4s; }
  .hero .pass-grid span:nth-child(2) { animation-delay: 0.7s; }
  .hero .pass-grid span:nth-child(3) { animation-delay: 1.0s; }
  @keyframes stamp-in {
    from { transform: scale(0); opacity: 0; }
  }
}
.pass-shop { font-weight: 700; font-size: 1.0625rem; margin: 0; }
.pass-kicker {
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.pass-body { padding: 1.25rem; }
.pass-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.pass-grid span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
}
.pass-grid span.todo {
  background: none;
  border: 2px dashed var(--top-ink);
  opacity: 0.5;
}

.pass .field dt, .pass-sm .field dt { color: var(--top-ink); opacity: 0.7; }
.pass .field dd, .pass-sm .field dd { color: var(--top-ink); }

/* The white barcode chip every real pass carries at the bottom. */
.pass-qr {
  display: block;
  width: 3.75rem;
  height: 3.75rem;
  background: var(--white);
  border-radius: 10px;
  margin: 1.2rem auto 0.2rem;
}

/* Filled stamps on the stamp-card mockups carry the same Font Awesome mug
   the product stamps with (scripts/lib/brand-svg.mjs STAMP_MARKS.mug, via
   stamp-marks.generated.ts). Mask over a white glyph, so it works on every
   builder colour. The visit-pack mockup stays plain — those are visits. */
:root {
  --mug-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%3E%3Cpath%20transform%3D%22translate(20.55%2023.822222222222223)%20scale(0.10225694444444444)%22%20d%3D%22M152-16c-13.3%200-24%2010.7-24%2024%200%2038.9%2023.4%2059.4%2039.1%2073.1l1.1%201c16.3%2014.3%2023.8%2021.8%2023.8%2037.9%200%2013.3%2010.7%2024%2024%2024s24-10.7%2024-24c0-38.9-23.4-59.4-39.1-73.1l-1.1-1C183.5%2031.7%20176%2024.1%20176%208%20176-5.3%20165.3-16%20152-16zM96%20192c-17.7%200-32%2014.3-32%2032l0%20192c0%2053%2043%2096%2096%2096l192%200c41.8%200%2077.4-26.7%2090.5-64l5.5%200c70.7%200%20128-57.3%20128-128S518.7%20192%20448%20192L96%20192zM448%20384l0-128c35.3%200%2064%2028.7%2064%2064s-28.7%2064-64%2064zM288%208c0-13.3-10.7-24-24-24S240-5.3%20240%208c0%2038.9%2023.4%2059.4%2039.1%2073.1l1.1%201c16.3%2014.3%2023.8%2021.8%2023.8%2037.9%200%2013.3%2010.7%2024%2024%2024s24-10.7%2024-24c0-38.9-23.4-59.4-39.1-73.1l-1.1-1C295.5%2031.7%20288%2024.1%20288%208z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
:root {
  --scissors-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%3E%3Cpath%20transform%3D%22translate(20.55%2020.55)%20scale(0.1150390625)%22%20d%3D%22M192%20256l-39.5%2039.5c-12.6-4.9-26.2-7.5-40.5-7.5-61.9%200-112%2050.1-112%20112s50.1%20112%20112%20112%20112-50.1%20112-112c0-14.3-2.7-27.9-7.5-40.5L499.2%2076.8c7.1-7.1%207.1-18.5%200-25.6-28.3-28.3-74.1-28.3-102.4%200L256%20192%20216.5%20152.5c4.9-12.6%207.5-26.2%207.5-40.5%200-61.9-50.1-112-112-112S0%2050.1%200%20112%2050.1%20224%20112%20224c14.3%200%2027.9-2.7%2040.5-7.5L192%20256zm97.9%2097.9L396.8%20460.8c28.3%2028.3%2074.1%2028.3%20102.4%200%207.1-7.1%207.1-18.5%200-25.6l-145.3-145.3-64%2064zM64%20112a48%2048%200%201%201%2096%200%2048%2048%200%201%201%20-96%200zm48%20240a48%2048%200%201%201%200%2096%2048%2048%200%201%201%200-96z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
:root {
  --flower-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%3E%3Cpath%20transform%3D%22translate(24.23125%2020.55)%20scale(0.1150390625)%22%20d%3D%22M128%20480c38.2%200%2072.5-16.8%2096-43.3%2023.5%2026.6%2057.8%2043.3%2096%2043.3%2070.7%200%20128-57.3%20128-128%200-38.2-16.8-72.5-43.3-96%2026.6-23.5%2043.3-57.8%2043.3-96%200-70.7-57.3-128-128-128-38.2%200-72.5%2016.8-96%2043.3-23.5-26.6-57.8-43.3-96-43.3-70.7%200-128%2057.3-128%20128%200%2038.2%2016.8%2072.5%2043.3%2096-26.6%2023.5-43.3%2057.8-43.3%2096%200%2070.7%2057.3%20128%20128%20128zm96-304a80%2080%200%201%201%200%20160%2080%2080%200%201%201%200-160z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --star-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%3E%3Cpath%20transform%3D%22translate(20.55%2023.822222222222223)%20scale(0.10225694444444444)%22%20d%3D%22M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3%205.1-21.4%2013.1L193.1%20125.3%2033.2%20150.7c-8.9%201.4-16.3%207.7-19.1%2016.3s-.5%2018%205.8%2024.4l114.4%20114.5-25.2%20159.9c-1.4%208.9%202.3%2017.9%209.6%2023.2s16.9%206.1%2025%202L288.1%20417.6%20432.4%20491c8%204.1%2017.7%203.3%2025-2s11-14.2%209.6-23.2L441.7%20305.9%20556.1%20191.4c6.4-6.4%208.6-15.8%205.8-24.4s-10.1-14.9-19.1-16.3L383%20125.3%20309.5-18.9z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.mark-mug .pass-grid span:not(.todo),
.mark-scissors .pass-grid span:not(.todo),
.mark-flower .pass-grid span:not(.todo),
.mark-star .pass-grid span:not(.todo),
.scan-grid span:not(.todo) { position: relative; }
.mark-mug .pass-grid span:not(.todo)::after,
.mark-scissors .pass-grid span:not(.todo)::after,
.mark-flower .pass-grid span:not(.todo)::after,
.mark-star .pass-grid span:not(.todo)::after,
.scan-grid span:not(.todo)::after {
  content: "";
  position: absolute;
  inset: 12%;
  /* On a wallet pass the mark inside the white stamp takes the card colour,
     exactly as the real strip renderer draws it. */
  background: var(--top-b);
  -webkit-mask: var(--mug-mask) center / contain no-repeat;
  mask: var(--mug-mask) center / contain no-repeat;
}
/* The staff-app mockup is not a wallet pass: espresso circles, white mark. */
.scan-grid span:not(.todo)::after { background: var(--white); }
.mark-scissors .pass-grid span:not(.todo)::after {
  -webkit-mask-image: var(--scissors-mask);
  mask-image: var(--scissors-mask);
}
.mark-flower .pass-grid span:not(.todo)::after {
  -webkit-mask-image: var(--flower-mask);
  mask-image: var(--flower-mask);
}
.mark-star .pass-grid span:not(.todo)::after {
  -webkit-mask-image: var(--star-mask);
  mask-image: var(--star-mask);
}

/* ---- compact pass variants for the "what else it does" blocks ----
   Field labels and structure mirror the real passes (backend/src/balanceDisplay.ts
   and apple/passBuilder.ts): a stamp card shows STAMPS + REWARD, a visit pack shows
   VISITS LEFT + EACH VISIT, an offer shows OFFER + VALID UNTIL and has no grid. */


.pass-sm {
  background: var(--top-b);
  color: var(--top-ink);
  border: 1px solid rgba(59, 42, 32, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(59, 42, 32, 0.1);
}
.pass-sm .pass-top { padding: 0.6rem 0.8rem; }
.pass-sm .pass-shop { font-size: 0.8125rem; }
.pass-sm .pass-kicker { font-size: 0.6rem; }
.pass-sm .pass-body { padding: 0.8rem; }

.field { margin-bottom: 0.7rem; }
.field:last-child { margin-bottom: 0; }
.field dt {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.1rem;
}
.field dd {
  margin: 0;
  font-weight: 700;
  color: var(--espresso);
  font-size: 1.0625rem;
  line-height: 1.25;
}
.field dd.small { font-size: 0.875rem; font-weight: 600; }

.pass-sm .pass-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin: 0 0 0.7rem;
}
.pass-sm .pass-qr { width: 2.5rem; height: 2.5rem; margin-top: 0.8rem; border-radius: 8px; }

/* ---- lock-screen notification mockup ---- */

.notif {
  background: rgba(59, 42, 32, 0.92);
  color: var(--cream);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  box-shadow: 0 6px 16px rgba(59, 42, 32, 0.18);
  max-width: 21rem;
  margin-top: 1.75rem;
}
.notif img { width: 26px; height: 26px; border-radius: 6px; flex: none; }
.notif-text { min-width: 0; }
.notif-app {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 0.15rem;
}
.notif-body { margin: 0; font-size: 0.875rem; line-height: 1.4; max-width: none; }

.wrap-wide { max-width: 62rem; }

/* Pre-launch: conversion CTAs are visible but inert until the apps are live. */
.btn-soon { opacity: .55; cursor: default; pointer-events: none; user-select: none; }
