:root {
  --ink: #16171a;
  --muted: #62656d;
  --soft: #f3f2ee;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #deddd7;
  --accent: #635bff;
  --accent-dark: #4c45dc;
  --accent-soft: #e9e7ff;
  --green: #1f7a5a;
  --green-soft: #e1f1e9;
  --warm: #f0ddc8;
  --shell: 1160px;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(23, 24, 28, 0.12);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.narrow {
  max-width: 800px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(222, 221, 215, 0.8);
  backdrop-filter: blur(18px);
}

.nav-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.wordmark {
  width: max-content;
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 1;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

.desktop-nav {
  display: flex;
  gap: 30px;
}

.desktop-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.desktop-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-row > .button {
  justify-self: end;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(99, 91, 255, 0.22);
  transition: background 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding-inline: 17px;
  font-size: 14px;
}

.text-link {
  color: var(--ink);
  font-weight: 750;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

/* Merchant homepage: grounded in the front door, not a software dashboard */
.merchant-hero {
  padding: 28px 0 0;
}

.merchant-hero-card {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: end;
  gap: 48px;
  overflow: hidden;
  padding: clamp(34px, 5.5vw, 70px);
  border-radius: 28px;
  background: #282521;
  box-shadow: 0 18px 60px rgba(23, 24, 28, 0.13);
}

.merchant-hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 13, 12, 0.94) 0%, rgba(14, 13, 12, 0.79) 44%, rgba(14, 13, 12, 0.28) 78%),
    linear-gradient(0deg, rgba(14, 13, 12, 0.62), transparent 48%);
}

.merchant-hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.merchant-hero-copy {
  max-width: 700px;
  color: var(--white);
}

.merchant-hero-copy h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(52px, 6.3vw, 78px);
}

.merchant-hero-copy > p {
  max-width: 590px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 21px);
}

.business-lookup {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(160px, 1fr) auto;
  width: min(760px, 100%);
  padding: 7px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.business-lookup input {
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--line);
  outline: 0;
  color: var(--ink);
}

.business-lookup input:focus {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.business-lookup .button {
  min-height: 50px;
  padding-inline: 18px;
  white-space: nowrap;
}

.merchant-hero-copy .merchant-hero-note {
  display: inline-block;
  max-width: 650px;
  margin: 16px 0 0;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.3);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.merchant-hero-note strong {
  color: var(--white);
}

.hero-result-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.hero-result-head,
.hero-result-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-result-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hero-result-head strong,
.hero-result-head span {
  display: block;
}

.hero-result-head strong {
  font-size: 14px;
}

.hero-result-head div span,
.hero-result-total span {
  color: var(--muted);
  font-size: 10px;
}

.hero-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.hero-result-grid div {
  padding: 14px;
  border-radius: 12px;
  background: var(--soft);
}

.hero-result-grid strong,
.hero-result-grid span {
  display: block;
}

.hero-result-grid strong {
  font-size: 29px;
  letter-spacing: -0.05em;
}

.hero-result-grid span {
  color: var(--muted);
  font-size: 10px;
}

.hero-result-total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hero-result-total strong {
  color: var(--green);
  font-size: 20px;
}

.merchant-trust {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.merchant-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.merchant-trust-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.merchant-trust-grid strong {
  color: var(--ink);
}

.merchant-trust-grid strong::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
}

.merchant-outcomes .section-intro {
  max-width: 900px;
}

.merchant-outcomes .section-intro h2 {
  margin-bottom: 22px;
}

.merchant-outcomes .section-intro p {
  max-width: 620px;
}

.merchant-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.merchant-outcome {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 22px;
}

.merchant-outcome h3 {
  max-width: 280px;
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.08;
}

.merchant-outcome p {
  max-width: 300px;
  margin: 0;
  color: rgba(22, 23, 26, 0.68);
}

.outcome-new {
  background: #efe2d4;
}

.outcome-return {
  background: #e2eee7;
}

.outcome-repeat {
  background: #e8e6fa;
}

.outcome-number strong,
.outcome-number span {
  display: block;
}

.outcome-number strong {
  font-size: 58px;
  letter-spacing: -0.07em;
  line-height: 1;
}

.outcome-number span {
  margin-top: 6px;
  color: rgba(22, 23, 26, 0.62);
  font-size: 13px;
  font-weight: 750;
}

.hero {
  padding: clamp(76px, 9vw, 126px) 0 clamp(72px, 8vw, 112px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  align-items: start;
  gap: clamp(56px, 8vw, 112px);
}

.hero-copy {
  max-width: 650px;
}

.product-label {
  display: block;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 25px;
  font-size: clamp(50px, 6.2vw, 82px);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(35px, 4.2vw, 54px);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.headline-stack span {
  display: block;
}

.hero-lede,
.section-copy {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.hero-lede {
  max-width: 630px;
  margin-bottom: 32px;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 27px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

.hero-notes li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--green);
  font-weight: 900;
}

.product-frame,
.lift-card {
  position: relative;
  padding: 22px;
  border: 1px solid #d8d7d2;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 38px -80px -60px 90px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(3px);
}

.product-topbar,
.lift-head,
.campaign-row,
.lift-row,
.collection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.product-topbar {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.product-topbar .product-label,
.lift-head .product-label {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
}

.product-topbar strong {
  display: block;
  font-size: 18px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.reach-block {
  padding: 27px 2px 24px;
}

.reach-block .product-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
}

.reach-number {
  font-size: 58px;
  font-weight: 780;
  letter-spacing: -0.07em;
  line-height: 1;
}

.reach-block p,
.metric-note {
  display: block;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric {
  padding: 17px;
  border-radius: 13px;
  background: var(--soft);
}

.metric .product-label {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
}

.metric strong {
  font-size: 25px;
}

.campaign-row {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.campaign-row .product-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
}

.campaign-row strong {
  display: block;
  font-size: 14px;
}

.campaign-count {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}

.preview-note {
  margin: 12px 2px 0;
  color: #8b8d93;
  font-size: 10px;
  text-align: right;
}

.value-strip {
  padding: 38px 0;
  border-block: 1px solid var(--line);
  background: var(--white);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
}

.value-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.value-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 16px;
}

.section {
  padding: clamp(82px, 10vw, 132px) 0;
}

.section-intro {
  max-width: 800px;
  margin-bottom: 62px;
}

.section-intro h2 {
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.steps li {
  min-height: 220px;
  padding: 30px 34px 10px 0;
  border-right: 1px solid var(--line);
}

.steps li + li {
  padding-left: 34px;
}

.steps li:last-child {
  border-right: 0;
}

.step-number {
  display: block;
  margin-bottom: 42px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.steps p {
  max-width: 310px;
  color: var(--muted);
}

.section-contrast {
  background: var(--ink);
  color: var(--white);
}

.proof-grid,
.member-story,
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(52px, 9vw, 120px);
}

.section-contrast .section-copy {
  max-width: 560px;
  color: #b9bbc2;
}

.lift-card {
  color: var(--ink);
  box-shadow: none;
}

.lift-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.lift-head .product-label {
  margin: 0;
}

.lift-row {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.lift-row strong {
  color: var(--ink);
}

.bar {
  height: 9px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--soft);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.bar-muted span {
  background: #b8bac1;
}

.lift-result {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.lift-result strong {
  color: var(--green);
  font-size: 29px;
  letter-spacing: -0.04em;
}

.lift-result span {
  color: var(--muted);
  font-size: 13px;
}

/* Card states and stamps, modeled after the native collection */
.card-state-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  border: 1px solid #d8d7d2;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.state-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 9px 24px rgba(23, 24, 28, 0.08);
}

.state-card.is-want {
  border: 2px dashed #7790ad;
}

.state-card-art {
  position: relative;
  display: grid;
  height: 94px;
  margin: 6px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: var(--warm);
}

.is-want .state-card-art {
  background: #c7c7c5;
  filter: grayscale(1);
}

.is-loved .state-card-art {
  background: #3f806c;
}

.is-custom .state-card-art {
  background: #6f91df;
}

.is-loved .state-art-mark,
.is-custom .state-art-mark {
  color: rgba(255, 255, 255, 0.58);
}

.state-category {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.state-art-mark {
  color: rgba(23, 24, 28, 0.32);
  font-size: 32px;
  font-weight: 850;
}

.state-card-body {
  position: relative;
  min-height: 142px;
  padding: 8px 10px 10px;
}

.state-card-body small,
.state-card-body strong,
.state-card-body > span,
.state-card-body b {
  display: block;
}

.state-card-body small,
.state-card-body > span,
.state-card-body b {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.state-card-body strong {
  overflow: hidden;
  margin: 3px 0;
  font-size: 13px;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-card-body b {
  position: absolute;
  right: 9px;
  bottom: 8px;
  left: 9px;
}

.is-want .state-card-body b {
  color: #4f6f96;
}

.round-stamp {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 13px auto 0;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 6px currentColor;
  font-size: 19px;
  line-height: 1;
}

.round-stamp.want {
  color: #4f6f96;
}

.round-stamp.loved {
  color: #c65b58;
}

.round-stamp.custom {
  color: #a15f92;
}

.bookmark-mark {
  display: block;
  width: 11px;
  height: 15px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

.card-state-panel > .preview-note {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.member-copy {
  max-width: 560px;
}

.collection-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.collection-item {
  justify-content: initial;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.collection-item:last-child {
  border-bottom: 0;
}

.collection-item .place-mark {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(22, 23, 26, 0.08);
  border-radius: 10px;
  background: #e7e8eb;
  color: #62656d;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  box-shadow: 0 4px 10px rgba(23, 24, 28, 0.08);
}

.collection-item .mark-coffee {
  background: var(--warm);
  color: #724e30;
}

.collection-item .mark-dinner {
  background: #dfd5f8;
  color: #504074;
}

.collection-item.is-saved .place-mark {
  background: #e3e5ea;
}

.collection-item div {
  min-width: 0;
}

.collection-item strong,
.collection-item span {
  display: block;
}

.collection-item div span {
  color: var(--muted);
  font-size: 12px;
}

.place-state {
  margin-left: auto;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.place-state.muted {
  color: var(--muted);
}

.is-saved {
  background: #f6f6f4;
}

/* Member card stack: app-native motif with no image payload */
.member-card-stage {
  position: relative;
  width: min(440px, 100%);
  height: 520px;
  margin: 0 auto;
}

.stack-card,
.place-card-ui {
  position: absolute;
  width: 300px;
  aspect-ratio: 5 / 7;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--white);
}

.stack-card-left {
  top: 55px;
  left: 28px;
  transform: rotate(-8deg);
  background: #e8e6df;
}

.stack-card-right {
  top: 36px;
  right: 18px;
  transform: rotate(7deg);
  background: var(--accent-soft);
}

.place-card-ui {
  z-index: 2;
  top: 18px;
  left: 50%;
  overflow: hidden;
  transform: translateX(-50%);
  box-shadow: var(--shadow);
}

.place-card-ui.is-foil {
  border-color: #d8b93e;
  background: linear-gradient(150deg, #e4c340, #9d7c18);
}

.place-card-art {
  position: relative;
  display: grid;
  height: 210px;
  margin: 10px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--warm);
}

.place-card-ui.is-foil .place-card-art {
  background: linear-gradient(150deg, #7f5735, #bd7c39);
  color: rgba(255, 234, 203, 0.64);
}

.place-card-ui.is-foil .place-card-art::before,
.place-card-ui.is-foil .place-card-art::after {
  display: none;
}

.place-card-art::before,
.place-card-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(114, 78, 48, 0.22);
  border-radius: 50%;
}

.place-card-art::before {
  width: 170px;
  height: 170px;
}

.place-card-art::after {
  width: 110px;
  height: 110px;
}

.place-initials {
  z-index: 1;
  color: #724e30;
  font-size: 38px;
  font-weight: 850;
  letter-spacing: -0.07em;
}

.place-icon {
  width: 48%;
  height: auto;
}

.place-badge {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.place-card-content {
  padding: 9px 18px 18px;
}

.place-card-content .product-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
}

.place-card-ui.is-foil .place-card-content .product-label,
.place-card-ui.is-foil .place-card-stats {
  color: rgba(23, 24, 28, 0.72);
}

.place-card-content h3 {
  margin-bottom: 4px;
  font-size: 23px;
}

.hero-card-stamp {
  width: 44px;
  height: 44px;
  margin: 7px auto;
  border-width: 2px;
  box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 5px currentColor;
  font-size: 16px;
}

.hero-stamp-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 5px 2px 8px;
}

.round-stamp.coffee {
  color: #8a4f1f;
}

.stamp-cup {
  display: block;
  width: 22px;
  height: 22px;
}

.place-card-stats {
  display: flex;
  gap: 24px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.place-card-stats strong {
  color: var(--ink);
}

.friend-note {
  position: absolute;
  z-index: 3;
  right: -8px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 260px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 24, 28, 0.12);
}

.grab-note {
  border-color: #d8b93e;
  background: #fff9df;
}

.grab-note .friend-avatar {
  background: #c79a15;
}

.friend-avatar {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 850;
}

.friend-note strong,
.friend-note div span {
  display: block;
}

.friend-note strong {
  font-size: 12px;
}

.friend-note div span {
  color: var(--muted);
  font-size: 10px;
}

.member-card-stage > .preview-note {
  position: absolute;
  right: 0;
  bottom: 0;
}

.faq-section {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.faq {
  max-width: 800px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 23px 46px 23px 0;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 19px;
  right: 4px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  max-width: 680px;
  margin: -4px 0 24px;
  color: var(--muted);
}

.signup-section {
  background: #edece7;
}

.signup-grid {
  align-items: start;
}

.lead-form {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 50px rgba(23, 24, 28, 0.08);
}

.field {
  margin-bottom: 17px;
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #cccbc5;
  border-radius: 9px;
  outline: 0;
  background: var(--white);
  color: var(--ink);
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field.is-invalid input {
  border-color: #b93838;
}

.error {
  display: block;
  min-height: 17px;
  margin-top: 4px;
  color: #a52e2e;
  font-size: 11px;
}

.lead-form .button {
  width: 100%;
}

.form-note,
.form-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.form-status:not(:empty) {
  color: var(--green);
  font-weight: 700;
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 50px;
  color: var(--muted);
  font-size: 12px;
}

.footer-row p {
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

/* Supporting pages */
.page-hero {
  padding: clamp(74px, 9vw, 124px) 0 74px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero .hero-lede {
  max-width: 760px;
}

.page-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
}

.page-grid + .page-grid {
  margin-top: 90px;
  padding-top: 90px;
  border-top: 1px solid var(--line);
}

.page-copy {
  max-width: 720px;
}

.page-copy p,
.page-copy li {
  color: var(--muted);
  font-size: 17px;
}

.page-copy h3 {
  margin-top: 34px;
}

.page-copy ul {
  padding-left: 20px;
}

.principles {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.principle {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.principle strong {
  display: block;
  margin-bottom: 5px;
}

.principle p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 900px) {
  .merchant-hero-card {
    min-height: 780px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .merchant-hero-card::after {
    background:
      linear-gradient(90deg, rgba(14, 13, 12, 0.91), rgba(14, 13, 12, 0.48)),
      linear-gradient(0deg, rgba(14, 13, 12, 0.78), transparent 52%);
  }

  .hero-result-card {
    width: min(360px, 100%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .product-frame {
    max-width: 560px;
  }

  .product-frame::before {
    inset: 38px -30px -35px 70px;
  }

  .value-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .value-grid {
    gap: 26px;
  }

  .steps li,
  .steps li + li {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step-number {
    margin-bottom: 18px;
  }

  .proof-grid,
  .member-story,
  .signup-grid {
    gap: 54px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .nav-row {
    min-height: 64px;
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  h1 {
    font-size: clamp(40px, 11.7vw, 46px);
  }

  h2 {
    font-size: 38px;
  }

  .merchant-hero {
    padding-top: 14px;
  }

  .merchant-hero-card {
    min-height: 0;
    gap: 30px;
    padding: 28px 20px 22px;
    border-radius: 18px;
  }

  .merchant-hero-card::after {
    background:
      linear-gradient(90deg, rgba(14, 13, 12, 0.94), rgba(14, 13, 12, 0.67)),
      linear-gradient(0deg, rgba(14, 13, 12, 0.82), transparent 45%);
  }

  .merchant-hero-photo {
    object-position: 58% center;
  }

  .merchant-hero-copy h1 {
    font-size: clamp(40px, 11.5vw, 48px);
  }

  .business-lookup {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .business-lookup input {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .business-lookup .button {
    width: 100%;
    margin-top: 7px;
    white-space: normal;
  }

  .hero-result-card {
    padding: 16px;
  }

  .merchant-trust-grid,
  .merchant-outcome-grid {
    grid-template-columns: 1fr;
  }

  .merchant-trust-grid {
    gap: 12px;
  }

  .merchant-outcome {
    min-height: 270px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-grid {
    gap: 58px;
  }

  .button-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-notes {
    flex-direction: column;
    gap: 7px;
  }

  .product-frame,
  .lift-card {
    padding: 16px;
    border-radius: 16px;
  }

  .member-card-stage {
    height: 500px;
  }

  .stack-card,
  .place-card-ui {
    width: 272px;
  }

  .place-card-art {
    height: 190px;
  }

  .friend-note {
    right: 0;
    min-width: 245px;
  }

  .card-state-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }

  .state-card {
    width: min(230px, 100%);
    margin-inline: auto;
  }

  .state-card-art {
    height: 132px;
  }

  .state-card-body {
    min-height: 158px;
  }

  .state-card-body strong {
    font-size: 17px;
  }

  .round-stamp {
    margin-top: 15px;
  }

  .reach-number {
    font-size: 48px;
  }

  .proof-grid,
  .member-story,
  .signup-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .section-intro { margin-bottom: 34px; }

  .metric-grid,
  .form-pair {
    grid-template-columns: 1fr;
  }

  .campaign-row {
    align-items: flex-start;
  }

  .collection-item {
    gap: 12px;
  }

  .place-state {
    display: none;
  }

  .footer-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .page-grid {
    gap: 22px;
  }

  .page-grid + .page-grid {
    margin-top: 64px;
    padding-top: 64px;
  }
}

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

  .button {
    transition: none;
  }
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.story-quote {
  margin: 0;
  font-size: 17px;
  font-weight: 550;
  line-height: 1.5;
}

.story-owner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.story-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.story-avatar.tint-a { background: #efe2d4; }
.story-avatar.tint-b { background: #e2eee7; }
.story-avatar.tint-c { background: #e8e6fa; }

.story-owner strong,
.story-owner span {
  display: block;
  line-height: 1.35;
}

.story-owner strong {
  font-size: 14.5px;
}

.story-owner span {
  color: var(--muted);
  font-size: 13px;
}

.story-result {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.story-result strong {
  font-size: 30px;
  letter-spacing: -0.04em;
}

.story-result span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.compare-scroll {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  font-size: 14.5px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.compare-table tbody th {
  width: 21%;
  font-weight: 750;
}

.compare-table td {
  color: rgba(22, 23, 26, 0.72);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table .is-irl {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 650;
}

.compare-table thead .is-irl {
  color: var(--accent-dark);
  font-weight: 850;
}

.reach-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.hood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hood-chip {
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.hood-chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.reach-panel {
  padding: 30px;
  background: var(--white);
  border: 1px solid #d8d7d2;
  border-radius: 22px;
  /* The panel is white but lives inside a dark contrast section, so reset the text
     color to ink — otherwise the headline numbers inherit white and vanish. */
  color: var(--ink);
}

.reach-headline strong {
  display: block;
  font-size: 56px;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.reach-headline span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.reach-headline b {
  color: var(--ink);
}

.reach-subrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reach-subrow strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.reach-subrow span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
}

.reach-panel .button {
  width: 100%;
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .reach-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .reach-headline strong {
    font-size: 44px;
  }

  .reach-panel {
    padding: 24px;
  }
}

/* Internal ops portal */
.ops-body {
  --ops-bg: #f6f8fb;
  --ops-panel: #ffffff;
  --ops-ink: #171b22;
  --ops-muted: #667085;
  --ops-line: #d9e0e8;
  --ops-soft: #edf2f7;
  --ops-accent: #0f766e;
  --ops-accent-dark: #115e59;
  --ops-danger: #b42318;
  --ops-warning: #946200;
  --ops-blue: #344054;
  margin: 0;
  background: var(--ops-bg);
  color: var(--ops-ink);
  font-size: 14px;
}

.ops-body button,
.ops-body input,
.ops-body select,
.ops-body textarea {
  font: inherit;
}

/* Keep the centered view toggle from shifting when one view scrolls and the
   other doesn't. */
html:has(.ops-body) {
  scrollbar-gutter: stable;
}

.ops-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 64px;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--ops-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

/* Toggle stays dead center in both views; the brand and right-slot columns
   are equal 1fr tracks so it never drifts when the right slot's contents
   change width between corporate and merchant view. */
.ops-view-toggle {
  justify-self: center;
}

.ops-top-right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
  min-width: 0;
}

.ops-brand {
  justify-self: start;
  color: var(--ops-ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.ops-brand span {
  color: var(--ops-accent);
}

.ops-top-actions,
.ops-action-row,
.ops-toggle-row,
.ops-panel-head,
.ops-detail-head,
.ops-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.ops-top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ops-top-actions .ops-button {
  white-space: nowrap;
}

.ops-top-actions[hidden] {
  display: none;
}

.ops-session {
  padding: 6px 9px;
  border: 1px solid var(--ops-line);
  border-radius: 999px;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 700;
}

/* "Demo data" pill — shown in the topbar's right slot in both views whenever
   the transport seam (ops-fallback.js) has flipped offline. */
.ops-demo-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--ops-line);
  border-radius: 999px;
  background: var(--ops-soft);
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ops-demo-pill[hidden] {
  display: none;
}

/* The merchant-view "Viewing as" picker, relocated into the topbar's right
   slot so it sits where the corporate actions sit — same chrome, same spot. */
.ops-top-picker {
  justify-content: flex-start;
}

.ops-select-compact {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ops-ink);
  font-weight: 700;
}

.ops-select-compact:focus {
  border-color: var(--ops-accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.ops-button,
.ops-icon-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  cursor: pointer;
}

.ops-button {
  padding: 0 14px;
  background: var(--ops-accent);
  color: #ffffff;
}

.ops-button:hover {
  background: var(--ops-accent-dark);
}

.ops-button-secondary {
  border-color: var(--ops-line);
  background: var(--ops-panel);
  color: var(--ops-ink);
}

.ops-button-secondary:hover {
  background: var(--ops-soft);
}

.ops-button-danger {
  background: var(--ops-danger);
}

.ops-button-danger:hover {
  background: #912018;
}

.ops-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ops-icon-button {
  width: 34px;
  padding: 0;
  border-color: var(--ops-line);
  background: var(--ops-panel);
  color: var(--ops-muted);
}

.ops-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 390px;
  min-height: calc(100vh - 64px);
}

.ops-shell[hidden] {
  display: none;
}

.ops-sidebar,
.ops-detail {
  background: var(--ops-panel);
}

.ops-sidebar {
  padding: 18px;
  border-right: 1px solid var(--ops-line);
}

.ops-workspace {
  min-width: 0;
  padding: 18px;
}

.ops-detail {
  min-width: 0;
  max-height: calc(100vh - 64px);
  overflow: auto;
  border-left: 1px solid var(--ops-line);
}

.ops-search,
.ops-filter-block,
.ops-audit {
  margin-bottom: 20px;
}

.ops-search label,
.ops-filter-block > span,
.ops-filter-block label,
.ops-field label,
.ops-stat span,
.ops-detail-head span,
.ops-metric-grid span,
.ops-audit h2 {
  display: block;
  margin-bottom: 7px;
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ops-search input,
.ops-field input,
.ops-field select,
.ops-filter-block select,
.ops-danger textarea {
  width: 100%;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ops-ink);
  outline: 0;
}

.ops-search input,
.ops-field input,
.ops-field select,
.ops-filter-block select {
  height: 40px;
  padding: 0 10px;
}

.ops-danger textarea {
  min-height: 80px;
  padding: 10px;
  resize: vertical;
}

.ops-search input:focus,
.ops-field input:focus,
.ops-field select:focus,
.ops-filter-block select:focus,
.ops-danger textarea:focus {
  border-color: var(--ops-accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.ops-segmented {
  display: grid;
  gap: 6px;
}

.ops-segmented button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ops-muted);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.ops-segmented button[aria-pressed="true"] {
  border-color: var(--ops-accent);
  background: #e5f4f2;
  color: var(--ops-accent-dark);
}

.ops-segmented-row {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--ops-line);
  border-radius: 999px;
  background: var(--ops-soft);
}

.ops-segmented-row button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.ops-segmented-row button[aria-pressed="true"] {
  border-color: transparent;
  background: #ffffff;
  color: var(--ops-ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.ops-audit h2 {
  margin: 0 0 10px;
}

.ops-audit ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-audit li {
  padding: 10px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: var(--ops-bg);
}

.ops-audit strong,
.ops-audit span {
  display: block;
}

.ops-audit strong {
  font-size: 12px;
}

.ops-audit span {
  overflow: hidden;
  color: var(--ops-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-toast {
  min-height: 20px;
  margin-bottom: 10px;
  color: var(--ops-accent);
  font-size: 13px;
  font-weight: 750;
  opacity: 0;
}

.ops-toast.is-visible {
  opacity: 1;
}

.ops-toast.is-error {
  color: var(--ops-danger);
}

.ops-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ops-workspace-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.ops-workspace-head p {
  margin: 4px 0 0;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 700;
}

.ops-tabs {
  flex: none;
}

.ops-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ops-stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: var(--ops-panel);
}

.ops-stat span {
  margin-bottom: 4px;
}

.ops-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.ops-panel {
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: var(--ops-panel);
}

.ops-panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ops-line);
}

.ops-panel-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.ops-panel-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.ops-panel-head p {
  margin: 3px 0 0;
  color: var(--ops-muted);
  font-size: 12px;
}

.ops-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
  margin-bottom: 14px;
}

.ops-priority-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.ops-priority-item,
.ops-action-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: #ffffff;
}

.ops-priority-copy,
.ops-action-card div {
  min-width: 0;
}

.ops-priority-copy span,
.ops-action-card span {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--ops-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ops-priority-copy strong,
.ops-action-card strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-priority-copy p,
.ops-action-card p {
  margin: 3px 0 0;
  color: var(--ops-muted);
  font-size: 12px;
  line-height: 1.35;
}

.ops-priority-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.ops-report-grid,
.ops-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.ops-report-grid article,
.ops-brief-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: var(--ops-bg);
}

.ops-report-grid span,
.ops-brief-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--ops-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ops-report-grid strong,
.ops-brief-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 21px;
  line-height: 1.1;
}

.ops-report-grid small,
.ops-brief-grid small {
  display: block;
  margin-top: 5px;
  color: var(--ops-muted);
  font-size: 11px;
  line-height: 1.3;
}

.ops-report-grid small.is-up,
.ops-brief-grid small.is-up {
  color: var(--ops-accent-dark);
}

.ops-report-grid small.is-down,
.ops-brief-grid small.is-down {
  color: var(--ops-danger);
}

.ops-report-panel > .ops-report-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-action-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-report-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ops-line);
}

.ops-report-controls .ops-filter-block,
.ops-report-controls .ops-field {
  margin-bottom: 0;
}

.ops-report-presets .ops-segmented-row {
  flex-wrap: wrap;
  border-radius: 8px;
}

.ops-report-presets .ops-segmented-row button {
  flex: 1 1 84px;
  text-align: center;
}

.ops-table-wrap {
  max-height: calc(100vh - 232px);
  overflow: auto;
}

.ops-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 13px;
}

.ops-report-table {
  min-width: 920px;
}

.ops-table th,
.ops-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ops-line);
  text-align: left;
  vertical-align: middle;
}

.ops-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fafb;
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-row {
  cursor: pointer;
}

.ops-row:hover {
  background: #f8fbfb;
}

.ops-row.is-selected {
  background: #e5f4f2;
}

.ops-row strong,
.ops-row span {
  display: block;
}

.ops-row td:first-child strong {
  font-size: 13.5px;
}

.ops-row td:first-child span {
  color: var(--ops-muted);
  font-size: 12px;
}

.ops-row td:last-child small {
  display: block;
  max-width: 220px;
  margin-top: 3px;
  color: var(--ops-muted);
  font-size: 11px;
  line-height: 1.3;
}

.ops-next-action {
  display: block;
  max-width: 220px;
  font-weight: 800;
  line-height: 1.25;
}

.ops-priority-high .ops-next-action,
.ops-next-action.ops-priority-high,
.ops-action-card.ops-priority-high span,
.ops-priority-item.ops-priority-high span {
  color: var(--ops-danger);
}

.ops-next-action.ops-priority-medium,
.ops-action-card.ops-priority-medium span,
.ops-priority-item.ops-priority-medium span {
  color: var(--ops-warning);
}

.ops-next-action.ops-priority-low,
.ops-action-card.ops-priority-low span,
.ops-priority-item.ops-priority-low span {
  color: var(--ops-accent-dark);
}

.ops-empty-row {
  color: var(--ops-muted);
  text-align: center;
}

.ops-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.ops-pill-live {
  border-color: #a7d7c5;
  background: #e7f6ee;
  color: #17634a;
}

.ops-pill-onboarding,
.ops-pill-prospect {
  border-color: #c5d7f3;
  background: #edf4ff;
  color: #2458a4;
}

.ops-pill-paused {
  border-color: #ead28f;
  background: #fff7dc;
  color: var(--ops-warning);
}

.ops-pill-closed {
  border-color: #f4b4ac;
  background: #fff0ee;
  color: var(--ops-danger);
}

.ops-detail-empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  color: var(--ops-muted);
  font-weight: 750;
}

.ops-detail-empty[hidden],
.ops-detail-content[hidden] {
  display: none;
}

.ops-detail-content {
  padding: 18px;
}

.ops-detail-head {
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ops-line);
}

.ops-detail-head-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.ops-button-small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.ops-detail-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.ops-detail-head p {
  margin: 5px 0 0;
  color: var(--ops-muted);
  font-size: 13px;
}

.ops-detail-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--ops-line);
}

.ops-detail-section h3 {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: 0;
}

.ops-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ops-section-head h3 {
  margin: 0;
}

.ops-inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.ops-brief-grid {
  padding: 0;
  margin-bottom: 10px;
}

.ops-action-list {
  display: grid;
  gap: 8px;
}

.ops-action-card {
  background: var(--ops-bg);
}

.ops-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ops-metric-grid div {
  padding: 10px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: var(--ops-bg);
}

.ops-metric-grid span {
  margin-bottom: 3px;
}

.ops-metric-grid strong {
  display: block;
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-form {
  display: grid;
  gap: 12px;
}

.ops-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ops-field {
  min-width: 0;
}

.ops-toggle-row {
  align-items: stretch;
}

.ops-toggle {
  display: flex;
  flex: 1;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ops-ink);
  font-weight: 700;
}

.ops-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--ops-accent);
}

.ops-form :disabled {
  background: var(--ops-soft);
  color: var(--ops-muted);
}

.ops-campaign-list {
  display: grid;
  gap: 10px;
}

.ops-campaign {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: var(--ops-bg);
}

.ops-campaign strong,
.ops-campaign span {
  display: block;
}

.ops-campaign span {
  color: var(--ops-muted);
  font-size: 12px;
}

.ops-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce5ec;
}

.ops-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ops-accent);
}

.ops-campaign dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
}

.ops-campaign dt {
  color: var(--ops-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-campaign dd {
  margin: 0;
  font-weight: 800;
}

.ops-danger p {
  margin: 0;
  color: var(--ops-danger);
  font-size: 12px;
  font-weight: 750;
}

.ops-danger textarea {
  margin: 10px 0;
}

.ops-modal-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.42);
}

.ops-modal-backdrop[hidden] {
  display: none;
}

.ops-modal {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.ops-modal-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

@media (max-width: 1220px) {
  .ops-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .ops-detail {
    grid-column: 1 / -1;
    max-height: none;
    border-top: 1px solid var(--ops-line);
    border-left: 0;
  }

  .ops-stat-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .ops-insight-grid {
    grid-template-columns: 1fr;
  }

  .ops-report-controls {
    grid-template-columns: 1fr;
  }

  .ops-report-panel > .ops-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-table-wrap {
    max-height: 520px;
  }
}

@media (max-width: 760px) {
  .ops-workspace-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-tabs {
    width: 100%;
  }

  .ops-tabs button {
    flex: 1;
    text-align: center;
  }

  .ops-topbar {
    position: static;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "right right";
    row-gap: 10px;
    padding: 12px 14px;
  }

  .ops-brand {
    grid-area: brand;
  }

  .ops-view-toggle {
    grid-area: toggle;
  }

  .ops-top-right {
    grid-area: right;
    justify-self: stretch;
    flex-wrap: wrap;
  }

  .ops-top-actions {
    flex: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ops-shell {
    grid-template-columns: 1fr;
  }

  .ops-sidebar,
  .ops-detail {
    border-right: 0;
    border-left: 0;
  }

  .ops-workspace,
  .ops-sidebar,
  .ops-detail-content {
    padding: 14px;
  }

  .ops-stat-grid,
  .ops-metric-grid,
  .ops-two,
  .ops-report-date-fields,
  .ops-campaign dl,
  .ops-report-grid,
  .ops-brief-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ops-toggle-row {
    flex-direction: column;
  }

  .ops-priority-item,
  .ops-action-card {
    grid-template-columns: 1fr;
  }

  .ops-priority-actions,
  .ops-inline-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .ops-stat-grid,
  .ops-metric-grid,
  .ops-two,
  .ops-report-date-fields,
  .ops-campaign dl,
  .ops-report-grid,
  .ops-brief-grid {
    grid-template-columns: 1fr;
  }

  .ops-report-panel > .ops-report-grid,
  .ops-action-summary-grid {
    grid-template-columns: 1fr;
  }

  .ops-section-head,
  .ops-priority-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-section-head .ops-button,
  .ops-priority-actions .ops-button {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------- */
/* Merchant view — the "View as merchant" dashboard (website/js/merchant.js). */
/* Warmer than corporate ops: cream/paper surfaces, gold/foil for print-run   */
/* material, stamp red reserved for Loved/stamp marks — mirrors the app's     */
/* IRLColor palette (cream, foil, stampRed, accent) rather than ops teal.     */
/* ---------------------------------------------------------------------- */

/* The print modal lives outside .mv-shell in the DOM, so the palette is
   scoped to both roots. */
.mv-shell,
.mv-modal-backdrop {
  --mv-bg: #f1efe8;
  --mv-panel: #fcfbf7;
  --mv-ink: #191817;
  --mv-muted: rgba(25, 24, 23, 0.6);
  --mv-faint: rgba(25, 24, 23, 0.35);
  --mv-line: rgba(25, 24, 23, 0.1);
  --mv-accent: #6d5be8;
  --mv-accent-soft: #eee7ff;
  --mv-stamp-red: #c8362b;
  --mv-foil: #c9a227;
  --mv-foil-light: #f3de8a;
  --mv-foil-dark: #8c6d1f;
  --mv-bench: #e7e5df;
  --mv-green: #2f8a6b;
  --mv-blue: #3d5a80;
}

.mv-shell {
  min-height: calc(100vh - 64px);
  padding: 24px 20px 60px;
  background: var(--mv-bg);
  color: var(--mv-ink);
}

.mv-shell[hidden] {
  display: none;
}

.mv-toast {
  max-width: 1100px;
  min-height: 20px;
  margin: 0 auto 10px;
  color: var(--mv-accent);
  font-size: 13px;
  font-weight: 750;
  opacity: 0;
}

.mv-toast.is-visible {
  opacity: 1;
}

.mv-toast.is-error {
  color: var(--mv-stamp-red);
}

.mv-header {
  max-width: 1100px;
  margin: 0 auto 20px;
}

/* The "Viewing as" picker now lives in the topbar (ops.html's
   [data-merchant-actions]) so both views' identity/actions line up — this
   header is just the merchant's name + neighborhood eyebrow. */
.mv-identity h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.mv-eyebrow {
  margin: 3px 0 0;
  color: var(--mv-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.mv-loading {
  max-width: 1100px;
  margin: 40px auto;
  color: var(--mv-muted);
  font-weight: 700;
  text-align: center;
}

.mv-loading[hidden] {
  display: none;
}

.mv-dashboard {
  display: grid;
  max-width: 1100px;
  margin: 0 auto;
  gap: 14px;
}

.mv-dashboard[hidden] {
  display: none;
}

.mv-card {
  padding: 16px;
  border: 1px solid var(--mv-line);
  border-radius: 22px;
  background: var(--mv-panel);
  box-shadow: 0 1px 2px rgba(25, 24, 23, 0.04);
}

.mv-section-label {
  margin: 0 0 8px;
  color: var(--mv-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Loved hero */

.mv-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mv-hero-stamp {
  display: grid;
  flex: none;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 999px;
  background: var(--mv-stamp-red);
  color: #ffffff;
  font-size: 26px;
  transform: rotate(-8deg);
  box-shadow: 0 6px 16px rgba(200, 54, 43, 0.28);
}

.mv-hero-body {
  min-width: 0;
}

.mv-hero-line {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
}

.mv-hero-pct {
  font-size: 22px;
}

.mv-hero-word {
  color: var(--mv-stamp-red);
  font-size: 18px;
  font-weight: 800;
}

.mv-hero-detail {
  margin: 4px 0 0;
  color: var(--mv-muted);
  font-size: 13px;
}

/* Stat trio */

.mv-stat-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mv-stat {
  padding: 12px;
  border: 1px solid var(--mv-line);
  border-radius: 18px;
  background: var(--mv-panel);
}

.mv-stat-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}

.mv-stat-delta {
  color: var(--mv-green);
  font-size: 10px;
  font-weight: 800;
}

.mv-stat-label {
  color: var(--mv-muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Recommended action + weekly report */

.mv-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 12px;
}

.mv-next-action h2,
.mv-weekly-report h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.mv-next-action p:not(.mv-section-label) {
  margin: 8px 0 0;
  color: var(--mv-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mv-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mv-mini-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--mv-line);
  border-radius: 999px;
  background: var(--mv-panel);
  color: var(--mv-ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.mv-mini-button:hover {
  background: #ffffff;
}

.mv-mini-button-primary {
  border-color: transparent;
  background: var(--mv-accent);
  color: #ffffff;
}

.mv-mini-button-primary:hover {
  background: #5c4bd9;
}

.mv-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mv-report-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.mv-date-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mv-date-presets button,
.mv-date-fields input,
.mv-date-fields select {
  min-height: 30px;
  border: 1px solid var(--mv-line);
  border-radius: 999px;
  background: var(--mv-panel);
  color: var(--mv-ink);
  font-size: 11px;
  font-weight: 800;
}

.mv-date-presets button {
  flex: 1 1 86px;
  padding: 0 10px;
  cursor: pointer;
}

.mv-date-presets button[aria-pressed="true"] {
  border-color: var(--mv-accent);
  background: var(--mv-accent-soft);
  color: var(--mv-accent);
}

.mv-date-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 0.8fr);
  align-items: center;
  gap: 6px;
}

.mv-date-fields label {
  color: var(--mv-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mv-date-fields input,
.mv-date-fields select {
  min-width: 0;
  padding: 0 8px;
  outline: 0;
}

.mv-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mv-report-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--mv-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
}

.mv-report-grid span {
  display: block;
  overflow: hidden;
  color: var(--mv-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mv-report-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.1;
}

.mv-report-grid small {
  display: block;
  margin-top: 4px;
  color: var(--mv-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
}

.mv-report-grid small.is-up {
  color: var(--mv-green);
}

.mv-report-grid small.is-down {
  color: var(--mv-stamp-red);
}

/* Acquired through IRL */

.mv-ltv-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: 30px;
  font-weight: 800;
}

.mv-ltv-line span {
  color: var(--mv-muted);
  font-size: 13px;
  font-weight: 700;
}

.mv-ltv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.mv-ltv-meta span {
  color: var(--mv-muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mv-ltv-meta strong {
  margin-right: 5px;
  color: var(--mv-ink);
  font-size: 13px;
}

/* Collector funnel */

.mv-funnel {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.mv-funnel-stage {
  flex: 1;
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid var(--mv-line);
  border-radius: 12px;
  background: var(--mv-panel);
}

.mv-funnel-label {
  display: block;
  overflow: hidden;
  color: var(--mv-muted);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mv-funnel-value {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 800;
}

.mv-funnel-chevron {
  display: flex;
  align-items: center;
  color: var(--mv-faint);
  font-weight: 800;
}

/* Neighborhood reach */

.mv-reach-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mv-reach-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.mv-reach-head span {
  color: var(--mv-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mv-reach-bar {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mv-bench);
  font-size: 0;
}

.mv-reach-seg {
  height: 100%;
}

.mv-reach-cardholders {
  background: var(--mv-foil);
}

.mv-reach-wanttogo {
  background: var(--mv-foil-light);
}

.mv-reach-undiscovered {
  background: transparent;
}

.mv-reach-legend {
  display: grid;
  gap: 5px;
  margin: 10px 0;
}

.mv-legend-row {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--mv-muted);
  font-size: 11px;
  font-weight: 700;
}

.mv-legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
}

.mv-swatch-cardholders {
  background: var(--mv-foil);
}

.mv-swatch-wanttogo {
  background: var(--mv-foil-light);
}

.mv-swatch-undiscovered {
  background: var(--mv-bench);
}

.mv-reach-line {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

/* Print a run CTA */

.mv-print-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--mv-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(109, 91, 232, 0.28);
}

.mv-print-cta:hover {
  background: #5c4bd9;
}

/* Suggested segment */

.mv-suggested {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1.2px solid rgba(109, 91, 232, 0.32);
  border-radius: 22px;
  background: var(--mv-accent-soft);
  text-align: left;
  cursor: pointer;
}

.mv-suggested-eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--mv-accent);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mv-suggested-title {
  font-size: 15px;
  font-weight: 800;
}

.mv-suggested-detail {
  color: var(--mv-muted);
  font-size: 13px;
}

.mv-suggested-cta {
  margin-top: 2px;
  color: var(--mv-accent);
  font-size: 12px;
  font-weight: 800;
}

/* Live print runs */

.mv-run-list {
  display: grid;
  gap: 10px;
}

.mv-run-card {
  padding: 14px;
  border: 1px solid var(--mv-line);
  border-radius: 20px;
  background: var(--mv-panel);
}

.mv-run-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.mv-run-offer {
  font-size: 13.5px;
  font-weight: 800;
}

.mv-run-offer::before {
  content: "\2726";
  margin-right: 6px;
  color: var(--mv-foil-dark);
}

.mv-run-audience {
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(243, 222, 138, 0.4);
  color: var(--mv-foil-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mv-run-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mv-bench);
}

.mv-run-progress span {
  display: block;
  height: 100%;
  background: var(--mv-foil);
}

.mv-run-meta {
  margin: 8px 0 0;
  color: var(--mv-muted);
  font-size: 10.5px;
  font-weight: 700;
}

.mv-run-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.mv-run-stat {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
}

.mv-run-stat em {
  color: var(--mv-muted);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.mv-run-return {
  margin-left: auto;
  color: var(--mv-green);
  font-size: 14px;
  font-weight: 800;
}

.mv-run-just-printed {
  margin-left: auto;
  padding: 4px;
  border: 1.2px solid var(--mv-stamp-red);
  color: var(--mv-stamp-red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  transform: rotate(-4deg);
}

.mv-empty {
  padding: 16px;
  border: 1px dashed var(--mv-line);
  border-radius: 14px;
  color: var(--mv-muted);
  text-align: center;
}

/* Stamp signals */

.mv-signal-bars {
  display: grid;
  gap: 12px;
}

.mv-signal-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mv-signal-label {
  width: 92px;
  flex: none;
  font-size: 12.5px;
  font-weight: 700;
}

.mv-signal-track {
  flex: 1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mv-bench);
}

.mv-signal-fill {
  display: block;
  height: 100%;
}

.mv-signal-loved {
  background: var(--mv-stamp-red);
}

.mv-signal-wanttogo {
  background: var(--mv-blue);
}

.mv-signal-lists {
  background: var(--mv-faint);
}

.mv-signal-display {
  width: 40px;
  flex: none;
  color: var(--mv-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.mv-signal-note {
  margin: 12px 0 0;
  color: var(--mv-muted);
  font-size: 11.5px;
}

/* Print flow modal */

.mv-modal-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(25, 24, 23, 0.45);
}

.mv-modal-backdrop[hidden] {
  display: none;
}

.mv-modal {
  width: min(480px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 22px;
  background: var(--mv-bg);
  box-shadow: 0 24px 80px rgba(25, 24, 23, 0.3);
}

.mv-modal-head {
  padding: 18px 18px 0;
}

.mv-modal-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.mv-modal-body {
  display: grid;
  gap: 20px;
  padding: 18px;
}

.mv-field-group {
  display: grid;
  gap: 8px;
}

.mv-offer-chips {
  display: flex;
  gap: 8px;
}

.mv-offer-chip {
  flex: 1;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--mv-line);
  border-radius: 17px;
  background: var(--mv-panel);
  color: var(--mv-ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mv-offer-chip.is-active {
  border-color: var(--mv-accent);
  background: var(--mv-accent-soft);
  color: var(--mv-accent);
}

.mv-audience-rows {
  display: grid;
  gap: 8px;
}

.mv-audience-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--mv-line);
  border-radius: 16px;
  background: var(--mv-panel);
  color: var(--mv-ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mv-audience-row.is-active {
  border-color: var(--mv-accent);
  background: var(--mv-accent-soft);
  color: var(--mv-accent);
}

.mv-audience-name {
  flex: 1;
  text-align: left;
}

.mv-audience-count {
  color: var(--mv-muted);
  font-size: 12px;
  font-weight: 800;
}

.mv-audience-check {
  width: 16px;
  height: 16px;
  border: 1.6px solid var(--mv-faint);
  border-radius: 999px;
}

.mv-audience-row.is-active .mv-audience-check {
  border-color: var(--mv-accent);
  background: var(--mv-accent);
  box-shadow: inset 0 0 0 3px var(--mv-accent-soft);
}

.mv-run-size-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mv-run-size-value {
  color: var(--mv-ink);
  font-size: 11px;
  font-weight: 800;
}

.mv-field-group input[type="range"] {
  width: 100%;
  accent-color: var(--mv-accent);
}

.mv-maxspend-card {
  padding: 14px;
  border: 1px solid var(--mv-line);
  border-radius: 20px;
  background: var(--mv-panel);
}

.mv-maxspend-line {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.mv-maxspend-line strong {
  margin-left: 6px;
}

.mv-maxspend-note {
  margin: 4px 0 0;
  color: var(--mv-muted);
  font-size: 12px;
}

.mv-modal-foot {
  padding: 0 18px 18px;
}

.mv-print-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  /* flex drops the whitespace text nodes around the count span */
  gap: 0.32em;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--mv-accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.mv-print-button:hover {
  background: #5c4bd9;
}

.mv-modal-confirm {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 40px 24px;
  text-align: center;
}

.mv-modal-confirm[hidden] {
  display: none;
}

.mv-confirm-card {
  display: grid;
  width: 200px;
  height: 280px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-radius: 20px;
  background: linear-gradient(155deg, var(--mv-foil-light), var(--mv-foil) 55%, var(--mv-foil-dark));
  box-shadow: 0 18px 40px rgba(140, 109, 31, 0.35);
}

.mv-confirm-card-offer {
  font-size: 24px;
  font-weight: 800;
  color: #2a1f0d;
}

.mv-confirm-card-merchant {
  color: rgba(42, 31, 13, 0.7);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mv-modal-confirm h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.mv-modal-confirm p {
  margin: 0;
  max-width: 320px;
  color: var(--mv-muted);
  font-size: 13.5px;
}

.mv-modal-confirm .mv-print-button {
  max-width: 240px;
}

@media (max-width: 760px) {
  .mv-action-grid {
    grid-template-columns: 1fr;
  }

  .mv-stat-trio {
    grid-template-columns: repeat(3, 1fr);
  }

  .mv-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mv-date-fields {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mv-funnel {
    flex-wrap: wrap;
  }

  .mv-funnel-stage {
    min-width: 46%;
  }
}

@media (max-width: 480px) {
  .mv-stat-trio {
    grid-template-columns: 1fr;
  }

  .mv-report-head,
  .mv-action-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .mv-mini-button {
    width: 100%;
  }

  .mv-report-grid {
    grid-template-columns: 1fr;
  }

  .mv-date-presets button {
    flex-basis: 100%;
  }

  .mv-run-foot {
    flex-wrap: wrap;
  }
}

/* =====================================================================
   Interaction & motion layer
   Feedback on press (not just hover), a clear keyboard focus ring, live
   hover states, and a restrained scroll-reveal. Everything here degrades
   to static under prefers-reduced-motion.
   ===================================================================== */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Press feedback: respond the instant a control is pressed --- */
.button,
.button-small {
  transition: background 160ms ease, transform 150ms var(--ease-out),
    box-shadow 200ms ease;
}

.button:active,
.button-small:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 14px rgba(99, 91, 255, 0.18);
}

/* --- Keyboard focus: a visible, consistent ring for tab users --- */
.button:focus-visible,
.button-small:focus-visible,
.desktop-nav a:focus-visible,
.footer-links a:focus-visible,
.wordmark:focus-visible,
.text-link:focus-visible,
.hood-chip:focus-visible,
.faq summary:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* --- Cards lift a touch on hover so the page feels alive --- */
.story-card,
.merchant-outcome,
.collection-item,
.hero-result-card,
.state-card,
.principle {
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease;
}

.story-card:hover,
.merchant-outcome:hover,
.state-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* --- Neighborhood chips: hover, press, and a smooth selected swap --- */
.hood-chip {
  transition: background 180ms ease, color 180ms ease,
    transform 150ms var(--ease-out), box-shadow 180ms ease;
}

.hood-chip:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.hood-chip:active {
  transform: scale(0.95);
}

.hood-chip[aria-pressed="true"] {
  box-shadow: 0 6px 16px rgba(23, 24, 28, 0.16);
}

/* --- FAQ: hover cue and a marker that rotates instead of hard-swapping --- */
.faq summary {
  transition: color 160ms ease;
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary::after {
  transition: transform 240ms var(--ease-out);
}

/* Keep the glyph a "+" and spin it into an "×" on open, rather than hard-swapping
   the character to "–". */
.faq details[open] summary::after {
  content: "+";
  transform: rotate(45deg);
}

/* --- Animated stat bars (lift card) fill from the left when revealed --- */
.bar span {
  transition: width 900ms var(--ease-out);
}

/* --- A soft fade when a live value swaps (reach category) --- */
.reach-swap {
  animation: reach-fade 340ms var(--ease-out);
}

@keyframes reach-fade {
  from {
    opacity: 0.2;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Scroll reveal: gentle fade + rise as sections enter the viewport ---
   Hidden state only applies once JS has flagged support, so content is never
   stuck invisible if scripts fail. --- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .button-small,
  .hood-chip,
  .story-card,
  .merchant-outcome,
  .state-card,
  .bar span,
  .faq summary::after {
    transition: none;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reach-swap {
    animation: none;
  }
}

/* =====================================================================
   Members hero — holographic place card
   Mirrors the app's HoloCard: the card tilts toward the pointer, a foil
   sheen sweeps across it, and the stacked cards fan out. On touch it drifts
   gently on its own. All motion is disabled under prefers-reduced-motion.
   ===================================================================== */

.member-card-stage {
  perspective: 1100px;
}

.place-card-ui {
  transition: transform 420ms var(--ease-out), box-shadow 420ms ease;
  will-change: transform;
}

/* Pointer-driven tilt — vars set by motion.js; defaults keep it flat with no JS. */
.member-card-stage.is-live .place-card-ui {
  transform: translateX(-50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    scale(1.03);
  transition: transform 120ms linear, box-shadow 420ms ease;
  box-shadow: 0 44px 90px rgba(23, 24, 28, 0.3);
}

/* Foil sheen: a soft diagonal highlight that sweeps across the foil card. */
.foil-sheen {
  position: absolute;
  inset: -45% -15%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 58%
  );
  mix-blend-mode: soft-light;
  transform: translate(-35%, -10%);
  animation: foil-sheen 5.5s ease-in-out infinite;
}

.place-card-ui:not(.is-foil) .foil-sheen {
  display: none;
}

@keyframes foil-sheen {
  0%,
  100% {
    transform: translate(-35%, -12%);
  }
  50% {
    transform: translate(35%, 12%);
  }
}

/* Stacked cards fan outward while the card is being played with. */
.stack-card {
  transition: transform 500ms var(--ease-out);
}

.member-card-stage.is-live .stack-card-left {
  transform: rotate(-13deg) translate(-16px, 6px);
}

.member-card-stage.is-live .stack-card-right {
  transform: rotate(12deg) translate(16px, 4px);
}

/* Idle drift — the only card motion on touch devices. */
.member-card-stage.is-idle .place-card-ui {
  animation: card-float 7s ease-in-out infinite;
}

@keyframes card-float {
  0%,
  100% {
    transform: translateX(-50%) rotateY(-6deg) rotateX(2deg);
  }
  50% {
    transform: translateX(-50%) rotateY(6deg) rotateX(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .place-card-ui,
  .stack-card {
    transition: none;
    animation: none;
  }

  .foil-sheen {
    animation: none;
    opacity: 0.5;
  }
}
