:root{
  --brand: oklch(0.70 0.11 195);
  --brand-btn: oklch(0.50 0.10 196);
  --brand-dark: oklch(0.40 0.09 197);
  --brand-darker: oklch(0.24 0.06 200);
  --gold: oklch(0.78 0.13 85);
  --gold-ink: oklch(0.32 0.09 85);
  --ink: oklch(0.20 0.02 195);
  --muted: oklch(0.38 0.02 195);
  --bg: oklch(0.985 0.004 195);
  --surface: oklch(0.955 0.02 195);
  --line: oklch(0.87 0.02 195);
  --white: oklch(1 0 0);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
  --content-max: var(--container);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Manrope', sans-serif;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}
h1,h2,h3{
  font-family:'Fraunces', serif;
  font-weight:600;
  line-height:1.08;
  margin:0 0 0.5em;
  text-wrap:balance;
  letter-spacing:-0.01em;
}
p{margin:0 0 1em; max-width:65ch;}
a{color:inherit;}
img,svg{display:block; max-width:100%;}
button{font-family:inherit;}
.container{max-width:var(--container); margin:0 auto; padding:0 24px;}
.visually-hidden{position:absolute; width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal]{
  opacity:0;
  transform:translateY(18px);
  transition:opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay:var(--delay, 0s);
}
[data-reveal].is-visible{opacity:1; transform:translateY(0);}
@media (prefers-reduced-motion: reduce){
  [data-reveal]{opacity:1 !important; transform:none !important; transition:none !important;}
  html{scroll-behavior:auto;}
}

/* ---------- Header ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:oklch(0.985 0.004 195 / 0.86);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:24px;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-family:'Fraunces', serif; font-weight:600; font-size:1.25rem;
  text-decoration:none; color:var(--ink);
}
.logo.logo--product{
  gap:0;
  font-size:inherit;
  font-family:inherit;
  font-weight:inherit;
  line-height:0;
}
.logo.logo--product .product-logo-img{
  display:block;
  height:2.125rem;
  width:auto;
  max-width:min(15rem, 52vw);
  object-fit:contain;
}
.logo .mark{
  width:30px;height:30px;border-radius:9px;
  background:var(--brand);
  display:flex;align-items:center;justify-content:center;
  color:var(--white);
}
nav.primary{display:flex; gap:28px; align-items:center; flex:1; justify-content:center;}
nav.primary a{
  text-decoration:none; font-weight:600; font-size:0.95rem; color:var(--ink);
  position:relative; padding:4px 0;
}
nav.primary a::after{
  content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;
  background:var(--brand); transform:scaleX(0); transform-origin:left;
  transition:transform 0.35s var(--ease);
}
nav.primary a:hover::after, nav.primary a[aria-current="page"]::after{transform:scaleX(1);}
nav.primary a[aria-current="page"]{color:var(--brand);}
.lang-toggle{
  display:flex; align-items:center; gap:6px;
  border:1px solid var(--line); border-radius:999px; padding:6px 6px;
  font-weight:700; font-size:0.82rem; background:var(--white); cursor:pointer;
}
.lang-toggle{cursor:pointer;}
.lang-toggle span{padding:4px 10px; border-radius:999px; display:inline-block;}
.lang-toggle span.active{background:var(--brand); color:var(--white);}
header.site .nav-row .lang-toggle{margin-left:auto;}
.site-header-signout{margin-right:4px;}
@media (min-width: 901px){
  header.site .nav-row .nav-toggle{display:none;}
}

/* ---------- Hero (home) ---------- */
.hero{
  position:relative;
  background:
    radial-gradient(120% 140% at 85% -10%, oklch(0.60 0.15 85 / 0.35), transparent 55%),
    linear-gradient(180deg, var(--brand-darker), var(--brand-dark) 55%, var(--brand-dark));
  color:var(--white);
  overflow:hidden;
  padding:96px 0 84px;
}
.hero-pattern{
  position:absolute; inset:0; opacity:0.15; pointer-events:none;
  background-image: radial-gradient(circle, oklch(1 0 0 / 0.7) 1.4px, transparent 1.6px);
  background-size:26px 26px;
  mask-image:linear-gradient(180deg, black, transparent 85%);
}
.hero-grid{
  position:relative; display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center;
}
.eyebrow-tag{
  display:inline-flex; align-items:center; gap:8px;
  font-size:0.85rem; font-weight:700; color:var(--white);
  background:oklch(1 0 0 / 0.14); border:1px solid oklch(1 0 0 / 0.28);
  padding:7px 14px; border-radius:999px; margin-bottom:22px;
}
.hero h1{font-size:clamp(2.3rem, 4.6vw, 3.6rem); color:var(--white); max-width:14ch;}
.hero p.lead{font-size:1.15rem; color:oklch(0.95 0.01 195 / 0.88); max-width:46ch;}
.cta-row{display:flex; align-items:center; gap:22px; flex-wrap:wrap; margin-top:28px;}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:700; font-size:1rem; text-decoration:none;
  padding:14px 26px; border-radius:999px;
  transition:transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.3s var(--ease);
  border:1px solid transparent;
  cursor:pointer;
}
.btn:hover{transform:translateY(-2px);}
.btn-solid{background:var(--gold); color:var(--brand-darker);}
.btn-solid:hover{box-shadow:0 14px 30px -12px oklch(0.78 0.13 85 / 0.55);}
.btn-ghost{background:transparent;border-color:oklch(1 0 0 / 0.4); color:var(--white);}
.btn-ghost:hover{background:oklch(1 0 0 / 0.1);}
.btn-outline{background:transparent;border:1px solid var(--line); color:var(--ink);}
.side-links{margin-top:18px; display:flex; flex-direction:column; gap:8px; font-size:0.92rem; color:oklch(0.95 0.01 195 / 0.8);}
.side-links a{font-weight:700; color:var(--white); text-decoration:underline; text-underline-offset:3px; text-decoration-color:oklch(1 0 0 / 0.4);}

.hero-card{
  position:relative; background:var(--white); color:var(--ink);
  border-radius:22px; padding:26px; box-shadow:0 30px 60px -25px oklch(0.20 0.06 200 / 0.55);
  transform:rotate(2deg);
}
.hero-card .row{display:flex; align-items:center; justify-content:space-between; margin-bottom:16px;}
.hero-card .brandline{display:flex; align-items:center; gap:8px; font-weight:800; font-size:0.9rem;}
.stars{display:flex; gap:6px; margin:14px 0;}
.star{width:26px;height:26px;color:var(--gold);}
.qr-code{
  width:100%; max-width:190px; margin:8px auto 4px; border-radius:14px;
  border:1px solid var(--line); padding:10px; background:var(--white); display:block;
}
.hero-card .caption{text-align:center; font-size:0.85rem; color:var(--muted); font-weight:600;}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero{
  background:linear-gradient(180deg, var(--brand-darker), var(--brand-dark));
  color:var(--white); padding:64px 0 56px;
}
.page-hero h1{color:var(--white); font-size:clamp(1.9rem, 3.6vw, 2.6rem); max-width:20ch;}
.page-hero p.lead{color:oklch(0.95 0.01 195 / 0.85); font-size:1.05rem; max-width:52ch;}

/* ---------- Section shell ---------- */
section{padding:96px 0;}
.section-head{max-width:640px; margin:0 0 52px;}
.section-head h2{font-size:clamp(1.7rem, 3vw, 2.4rem);}
.section-head p{color:var(--muted); font-size:1.05rem;}
.alt{background:var(--surface);}

/* ---------- Universal card / stars section ---------- */
.card-split{display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center;}
.check-list{list-style:none; margin:0 0 28px; padding:0; display:flex; flex-direction:column; gap:16px;}
.check-list li{display:flex; gap:14px; align-items:flex-start; font-weight:600;}
.check-list svg{flex:none; width:22px;height:22px; color:var(--brand); margin-top:2px;}
.device-mock{
  background:var(--brand-darker); border-radius:28px; padding:22px;
  box-shadow:0 40px 70px -30px oklch(0.20 0.05 195 / 0.4);
}
.device-mock .screen{
  background:var(--white); border-radius:18px; padding:22px; color:var(--ink);
}
.device-mock .brandline{display:flex; align-items:center; gap:8px; font-weight:800; margin-bottom:18px;}
.progress-track{height:10px; border-radius:999px; background:var(--line); overflow:hidden; margin:10px 0 6px;}
.progress-fill{height:100%; width:70%; background:linear-gradient(90deg, var(--brand), var(--gold)); border-radius:999px;}
.fine{font-size:0.82rem; color:var(--muted); font-weight:700;}

/* ---------- Why choose (asymmetric, not identical cards) ---------- */
.why-grid{display:grid; grid-template-columns:1.05fr 1fr; gap:64px; align-items:start;}
.why-feature{
  display:flex; gap:18px; padding:22px 0; border-bottom:1px solid var(--line);
}
.why-feature:first-child{padding-top:0;}
.why-feature:last-child{border-bottom:none;}
.why-feature .num{
  font-family:'Fraunces', serif; font-size:1.4rem; color:var(--brand); font-weight:600; width:2ch;
}
.why-feature h3{font-size:1.05rem; margin-bottom:4px;}
.why-feature p{color:var(--muted); margin:0; font-size:0.98rem;}
.highlight-block{
  background:var(--brand-darker); color:var(--white); border-radius:24px; padding:44px;
  position:relative; overflow:hidden;
}
.highlight-block::before{
  content:""; position:absolute; inset:-40% -20% auto auto; width:280px;height:280px;
  background:radial-gradient(circle, oklch(0.78 0.13 85 / 0.5), transparent 70%);
}
.highlight-block h3{color:var(--white); font-size:1.6rem; position:relative; max-width:16ch;}
.highlight-block p{color:oklch(0.95 0.01 195 / 0.85); position:relative;}
.highlight-block .quote-mark{font-family:'Fraunces', serif; font-size:3rem; color:var(--gold); line-height:1; margin-bottom:6px;}

/* ---------- How it works (legitimate sequence) ---------- */
.steps{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:0;
  counter-reset:step;
}
.step{position:relative; padding:0 22px 0 0;}
.step:not(:last-child)::after{
  content:""; position:absolute; top:26px; left:0; right:-22px; height:2px;
  background:var(--line);
}
.step .step-num{
  width:52px;height:52px;border-radius:50%;
  background:var(--white); border:2px solid var(--brand);
  color:var(--brand); font-family:'Fraunces', serif; font-weight:600; font-size:1.2rem;
  display:flex; align-items:center; justify-content:center;
  position:relative; z-index:2; margin-bottom:20px;
}
.step h3{font-size:1.05rem;}
.step p{color:var(--muted); font-size:0.95rem;}

/* ---------- Pricing ---------- */
.pricing-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; align-items:stretch;}
.plan{
  background:var(--white); border:1px solid var(--line); border-radius:20px; padding:32px;
  display:flex; flex-direction:column; transition:transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.plan:hover{transform:translateY(-6px); box-shadow:0 24px 50px -28px oklch(0.20 0.05 195 / 0.35);}
.plan.popular{background:var(--brand-darker); color:var(--white); border-color:transparent;}
.plan .tag{
  align-self:flex-start; font-size:0.78rem; font-weight:800; letter-spacing:0.02em;
  background:var(--gold); color:var(--brand-darker); padding:5px 12px; border-radius:999px; margin-bottom:16px;
}
.plan h3{font-size:1.2rem; margin-bottom:4px;}
.plan .price{font-family:'Fraunces', serif; font-size:2rem; font-weight:600; margin-bottom:18px;}
.plan.popular .price, .plan.popular h3{color:var(--white);}
.plan ul{list-style:none; padding:0; margin:0 0 28px; display:flex; flex-direction:column; gap:12px; flex:1;}
.plan li{display:flex; gap:10px; font-size:0.95rem;}
.plan li svg{flex:none; width:18px;height:18px; margin-top:3px; color:var(--brand);}
.plan.popular li svg{color:var(--gold);}
.plan .btn{justify-content:center; width:100%;}
.plan.popular .btn-outline{background:transparent;border:1px solid oklch(1 0 0 / 0.4); color:var(--white);}
.plan:not(.popular) .btn-outline{background:transparent;border:1px solid var(--line); color:var(--ink);}

/* ---------- Search bar (Find a shop) ---------- */
.search-bar{
  display:flex; gap:12px; background:var(--white); border:1px solid var(--line);
  border-radius:16px; padding:8px; box-shadow:0 20px 40px -30px oklch(0.2 0.05 195 / 0.4);
  flex-wrap:wrap;
}
.search-field{
  flex:1; min-width:180px; display:flex; align-items:center; gap:10px;
  padding:10px 14px; border-radius:12px;
}
.search-field:not(:last-of-type){border-right:1px solid var(--line);}
.search-field svg{flex:none; width:18px;height:18px; color:var(--muted);}
.search-field input{
  border:none; outline:none; font:inherit; font-size:0.95rem; width:100%; background:transparent; color:var(--ink);
}
.search-field input::placeholder{color:var(--muted);}
.search-bar .btn{padding:12px 22px;}

/* ---------- Shop list rows (Find) ---------- */
.shop-list{display:flex; flex-direction:column; border-top:1px solid var(--line);}
.shop-row{
  display:flex; align-items:center; gap:18px; padding:20px 4px; border-bottom:1px solid var(--line);
  transition:background 0.3s var(--ease);
}
.shop-row:hover{background:var(--surface);}
.shop-avatar{
  flex:none; width:52px;height:52px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces', serif; font-weight:600; font-size:1.1rem; color:var(--white);
}
.shop-info{flex:1; min-width:0;}
.shop-info h3{font-size:1rem; margin-bottom:2px;}
.shop-meta{font-size:0.9rem; color:var(--muted); margin:0; display:flex; gap:8px; flex-wrap:wrap;}
.shop-tag{
  font-size:0.75rem; font-weight:700; color:var(--brand-btn); background:oklch(0.70 0.11 195 / 0.14);
  padding:3px 10px; border-radius:999px; flex:none;
}
.shop-row .btn{flex:none; padding:10px 18px; font-size:0.9rem;}

/* ---------- Shop grid (Discover) ---------- */
.featured-strip{display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin-bottom:64px;}
.featured-card{
  border-radius:20px; overflow:hidden; position:relative; color:var(--white);
  min-height:200px; display:flex; align-items:flex-end; padding:22px;
}
.featured-card::before{content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 30%, oklch(0.15 0.05 195 / 0.85));}
.featured-card .content{position:relative;}
.featured-card .tag{
  display:inline-block; font-size:0.72rem; font-weight:800; letter-spacing:0.02em;
  background:var(--gold); color:var(--brand-darker); padding:4px 10px; border-radius:999px; margin-bottom:8px;
}
.featured-card h3{color:var(--white); font-size:1.1rem; margin-bottom:2px;}
.featured-card p{color:oklch(0.95 0.01 195 / 0.85); font-size:0.85rem; margin:0;}

.filter-row{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:32px;}
.chip{
  font-size:0.88rem; font-weight:700; padding:8px 16px; border-radius:999px;
  border:1px solid var(--line); background:var(--white); cursor:pointer;
  transition:background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chip.active, .chip:hover{background:var(--brand-btn); color:var(--white); border-color:var(--brand-btn);}

.shop-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:20px;}
.shop-card{
  background:var(--white); border:1px solid var(--line); border-radius:18px; padding:22px;
  transition:transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.shop-card:hover{transform:translateY(-4px); box-shadow:0 20px 40px -26px oklch(0.2 0.05 195 / 0.35);}
.shop-card .shop-avatar{margin-bottom:14px;}
.shop-card h3{font-size:1.02rem; margin-bottom:2px;}

/* ---------- Auth card (My Perk / Merchant sign-in) ---------- */
.auth-wrap{max-width:440px; margin:0 auto;}
.auth-wrap--merchant{max-width:min(100%, 600px);}
.auth-card{
  background:var(--white); border:1px solid var(--line); border-radius:22px; padding:38px;
  box-shadow:0 30px 60px -34px oklch(0.2 0.05 195 / 0.45);
}
.auth-card h2{font-size:1.4rem; margin-bottom:6px;}
.auth-card .lead-sm{color:var(--muted); font-size:0.95rem; margin-bottom:24px;}
.field{margin-bottom:16px;}
.field label{display:block; font-size:0.85rem; font-weight:700; margin-bottom:6px;}
.field input{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--line);
  font:inherit; font-size:0.95rem; outline:none; transition:border-color 0.25s var(--ease);
  background:var(--white); color:var(--ink);
}
.field input:focus{border-color:var(--brand);}
.auth-card .btn{width:100%; justify-content:center; margin-top:6px;}
.auth-divider{display:flex; align-items:center; gap:12px; margin:22px 0; color:var(--muted); font-size:0.85rem;}
.auth-divider::before, .auth-divider::after{content:""; flex:1; height:1px; background:var(--line);}
.auth-switch{text-align:center; font-size:0.9rem; color:var(--muted); margin-top:18px;}
.auth-switch a{color:var(--brand-btn); font-weight:700; text-decoration:underline; text-underline-offset:3px;}

/* ---------- Passport (My Perk signed-in) ---------- */
.passport-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:20px;}
.passport-card{
  background:var(--white); border:1px solid var(--line); border-radius:20px; padding:24px;
}
.passport-card .row{display:flex; align-items:center; justify-content:space-between; margin-bottom:14px;}
.passport-card .brandline{display:flex; align-items:center; gap:10px; font-weight:800;}
.reward-banner{
  margin-top:14px; background:oklch(0.78 0.13 85 / 0.16); border:1px dashed var(--gold-ink);
  color:var(--gold-ink); font-weight:700; font-size:0.85rem; padding:10px 12px; border-radius:12px;
  text-align:center;
}

/* ---------- Merchant dashboard preview ---------- */
.stat-row{display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; margin-bottom:40px;}
.stat-tile{background:var(--white); border:1px solid var(--line); border-radius:18px; padding:24px;}
.stat-tile .value{font-family:'Fraunces', serif; font-size:2rem; font-weight:600;}
.stat-tile .label{color:var(--muted); font-size:0.88rem; font-weight:600;}
.stat-tile .delta{font-size:0.8rem; font-weight:700; color:oklch(0.5 0.14 150);}
.table-wrap{background:var(--white); border:1px solid var(--line); border-radius:18px; overflow:hidden;}
table.data{width:100%; border-collapse:collapse; font-size:0.92rem;}
table.data th{
  text-align:left; padding:14px 20px; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.03em;
  color:var(--muted); background:var(--surface); font-weight:700;
}
table.data td{padding:14px 20px; border-top:1px solid var(--line);}
table.data tr:hover td{background:oklch(0.955 0.012 195 / 0.6);}
.pill{font-size:0.78rem; font-weight:700; padding:4px 10px; border-radius:999px;}
.pill.redeemed{background:oklch(0.5 0.14 150 / 0.14); color:oklch(0.4 0.12 150);}
.pill.pending{background:oklch(0.78 0.13 85 / 0.2); color:var(--gold-ink);}

/* ---------- Footer ---------- */
footer.site{background:var(--brand-darker); color:oklch(0.95 0.01 195 / 0.85); padding:56px 0 32px;}
.footer-grid{display:flex; justify-content:space-between; flex-wrap:wrap; gap:32px; padding-bottom:32px; border-bottom:1px solid oklch(1 0 0 / 0.15);}
footer.site .logo{color:var(--white);}
.footer-links{display:flex; gap:28px; flex-wrap:wrap; font-weight:600; font-size:0.92rem;}
footer.site a{text-decoration:none;}
footer.site a:hover{text-decoration:underline;}
.footer-bottom{padding-top:24px; font-size:0.85rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}

@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-card{transform:none; max-width:360px;}
  .card-split, .why-grid{grid-template-columns:1fr; gap:40px;}
  .steps{grid-template-columns:1fr 1fr; row-gap:36px;}
  .step:nth-child(2)::after{display:none;}
  .pricing-grid{grid-template-columns:1fr;}
  .featured-strip{grid-template-columns:1fr;}
  .stat-row{grid-template-columns:1fr 1fr;}
  nav.primary{display:none;}
  .search-field:not(:last-of-type){border-right:none;}
  .search-bar{flex-direction:column;}
}
@media (max-width: 560px){
  .steps{grid-template-columns:1fr;}
  .step::after{display:none;}
  section{padding:64px 0;}
  .stat-row{grid-template-columns:1fr;}
  .shop-row{flex-wrap:wrap;}
}

/* ---------- App integration (marketing + consumer chrome) ---------- */
body.marketing{
  margin:0;
  font-family:'Manrope', sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
}

.marketing-main{min-height:50vh;}

/* Shared chrome topbar (merchant portal, platform admin) */
.marketing-topbar{
  position:sticky; top:0; z-index:10; width:100%;
  background:oklch(1 0 0 / 0.94);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.marketing-topbar-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0.75rem 1.25rem;
  display:flex;
  align-items:center;
  gap:1rem;
}
.marketing-logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  flex-shrink:0;
  line-height:0;
}
.marketing-logo .product-logo-img{
  display:block;
  height:2.125rem;
  width:auto;
  max-width:min(15rem, 52vw);
  object-fit:contain;
}
.marketing-nav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:0.25rem 1.25rem;
  flex:1;
  min-width:0;
}
.marketing-nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:0.8125rem;
  font-weight:500;
  padding:0.45rem 0.65rem;
  border-radius:999px;
  white-space:nowrap;
}
.marketing-nav a:hover,
.marketing-nav a:focus{
  color:var(--brand-dark);
  background:var(--surface);
}
.marketing-nav a[aria-current="page"]{
  color:var(--brand-dark);
  background:var(--surface);
}
.marketing-lang-btn{
  background:transparent;
  border:1px solid var(--line);
  color:var(--brand-dark);
  border-radius:999px;
  padding:0.3rem 0.75rem;
  font-size:0.8125rem;
  font-weight:600;
  min-height:36px;
  cursor:pointer;
  flex-shrink:0;
  font-family:inherit;
}
.marketing-lang-btn:hover{background:var(--surface);}
.marketing-topbar-tools{
  display:flex;
  align-items:center;
  gap:0.5rem;
  margin-left:auto;
  flex-shrink:0;
}
.marketing-menu-btn{
  display:none;
  align-items:center;
  justify-content:center;
  width:2.5rem;
  height:2.5rem;
  padding:0;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  cursor:pointer;
  color:var(--ink);
}
.marketing-menu-btn:hover{background:var(--surface);}
.marketing-menu-icon,
.marketing-menu-icon::before,
.marketing-menu-icon::after{
  display:block;
  width:1.125rem;
  height:2px;
  background:currentColor;
  border-radius:1px;
  transition:transform 0.2s ease, opacity 0.2s ease;
}
.marketing-menu-icon{position:relative;}
.marketing-menu-icon::before,
.marketing-menu-icon::after{
  content:'';
  position:absolute;
  left:0;
}
.marketing-menu-icon::before{top:-6px;}
.marketing-menu-icon::after{top:6px;}
.marketing-menu-btn--open .marketing-menu-icon{background:transparent;}
.marketing-menu-btn--open .marketing-menu-icon::before{top:0; transform:rotate(45deg);}
.marketing-menu-btn--open .marketing-menu-icon::after{top:0; transform:rotate(-45deg);}
@media (max-width:768px){
  .marketing-topbar-inner{flex-wrap:wrap; align-items:center; position:relative;}
  .marketing-menu-btn{display:inline-flex;}
  .marketing-nav{
    display:none;
    order:3;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:0.35rem 0 0.75rem;
    border-top:1px solid var(--line);
    margin-top:0.35rem;
  }
  .marketing-nav.marketing-nav--open{display:flex;}
  .marketing-nav a{
    padding:0.7rem 0.25rem;
    font-size:0.9375rem;
    border-radius:0;
    border-bottom:1px solid var(--surface);
  }
  .marketing-nav a:last-child{border-bottom:none;}
  .marketing-nav a[aria-current="page"]{background:transparent;}
}
@media (min-width:769px){
  .marketing-menu-btn{display:none;}
  .marketing-nav{display:flex; flex:1; min-width:0;}
}

.marketing-footer{
  text-align:center;
  padding:1.5rem 1.25rem 2rem;
  font-size:0.8125rem;
  color:var(--muted);
}
.marketing-footer p{margin:0.25rem 0;}
.marketing-footer a{color:var(--brand-dark); text-decoration:none;}
.marketing-footer a:hover{text-decoration:underline;}

/* Button aliases used by forms */
.btn-primary{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-weight:700; font-size:1rem; text-decoration:none;
  padding:14px 26px; border-radius:999px; border:1px solid transparent;
  cursor:pointer; font-family:inherit;
  background:var(--gold); color:var(--brand-darker);
  transition:transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.3s var(--ease);
}
.btn-primary:hover:not(:disabled){transform:translateY(-2px); box-shadow:0 14px 30px -12px oklch(0.78 0.13 85 / 0.55);}
.btn-primary:disabled{opacity:0.6; cursor:not-allowed;}
.btn-primary--large{padding:16px 30px; font-size:1.05rem;}
.btn-primary--teal{background:var(--brand-btn); color:var(--white);}
.btn-primary--teal:hover{box-shadow:0 14px 30px -12px oklch(0.50 0.10 196 / 0.45);}

.btn-secondary, .btn-outline.btn-secondary{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-weight:700; font-size:1rem; text-decoration:none;
  padding:14px 26px; border-radius:999px;
  background:transparent; border:1px solid var(--line); color:var(--ink);
  cursor:pointer; font-family:inherit;
  transition:transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.btn-secondary:hover{transform:translateY(-2px);}

.btn-text{background:none;border:none;padding:0;font:inherit;font-weight:700;color:var(--brand-btn);cursor:pointer;text-decoration:underline;text-underline-offset:3px;}
.btn-link{color:var(--brand-btn);font-weight:700;text-decoration:underline;text-underline-offset:3px;}

/* Form field aliases */
.field-group{margin-bottom:16px;}
.field-group label{display:block; font-size:0.85rem; font-weight:700; margin-bottom:6px;}
.field-group input, .field-group textarea, .field-group select{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--line);
  font:inherit; font-size:0.95rem; outline:none; transition:border-color 0.25s var(--ease);
  background:var(--white); color:var(--ink);
}
.field-group input:focus{border-color:var(--brand);}
.field-hint, .section-hint{font-size:0.85rem; color:var(--muted); margin:6px 0 0;}

.signup-card, .merchant-panel-card{background:var(--white); border:1px solid var(--line); border-radius:22px; padding:32px; box-shadow:0 30px 60px -34px oklch(0.2 0.05 195 / 0.45);}
.signup-submit{width:100%;}
.signup-footnote{font-size:0.85rem; color:var(--muted); text-align:center; margin:14px 0 0;}
.signup-message{padding:14px 16px; border-radius:12px; margin-bottom:16px; font-size:0.92rem;}
.signup-message.error{background:oklch(0.55 0.15 25 / 0.1); color:oklch(0.45 0.14 25);}
.signup-message.info{background:oklch(0.70 0.11 195 / 0.12); color:var(--brand-dark);}

.merchant-mode-switch{display:flex; gap:8px; margin-bottom:24px; padding:6px; background:var(--surface); border-radius:999px;}
.merchant-mode-tab{flex:1; border:none; background:transparent; padding:10px 16px; border-radius:999px; font:inherit; font-weight:700; font-size:0.88rem; color:var(--muted); cursor:pointer; transition:background 0.3s var(--ease), color 0.3s var(--ease);}
.merchant-mode-tab.is-active{background:var(--white); color:var(--ink); box-shadow:0 2px 8px oklch(0.2 0.05 195 / 0.08);}
.merchant-panel-title{font-family:'Fraunces', serif; font-size:clamp(1.5rem, 3vw, 2rem); margin:0 0 8px;}
.merchant-panel-lead{color:var(--muted); margin:0 0 20px; max-width:52ch;}
.merchant-panel-eyebrow{font-size:0.85rem; font-weight:700; color:var(--brand); margin:0 0 8px;}
.merchant-feature-list{list-style:none; margin:0 0 24px; padding:0; display:flex; flex-direction:column; gap:10px;}
.merchant-feature-list li{display:flex; gap:10px; font-weight:600; font-size:0.95rem;}
.merchant-feature-list li::before{content:""; flex:none; width:20px; height:20px; margin-top:2px; background:var(--brand); mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat;}
.merchant-panel-foot, .merchant-panel-hint{text-align:center; font-size:0.9rem; color:var(--muted);}
.merchant-dev-hint{font-size:0.85rem; color:var(--muted); margin-top:12px;}

/* Mobile nav */
.nav-toggle{
  display:none; align-items:center; justify-content:center;
  width:2.5rem; height:2.5rem; padding:0;
  border:1px solid var(--line); border-radius:999px;
  background:var(--white); cursor:pointer; color:var(--ink);
}
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after{
  display:block; width:1.125rem; height:2px; background:currentColor; border-radius:1px;
  transition:transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-toggle-icon{position:relative;}
.nav-toggle-icon::before, .nav-toggle-icon::after{content:''; position:absolute; left:0;}
.nav-toggle-icon::before{top:-6px;}
.nav-toggle-icon::after{top:6px;}
.nav-toggle--open .nav-toggle-icon{background:transparent;}
.nav-toggle--open .nav-toggle-icon::before{top:0; transform:rotate(45deg);}
.nav-toggle--open .nav-toggle-icon::after{top:0; transform:rotate(-45deg);}

@media (max-width: 900px){
  .nav-toggle{display:inline-flex;}
  nav.primary{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:oklch(0.985 0.004 195 / 0.98);
    backdrop-filter:saturate(140%) blur(10px);
    border-bottom:1px solid var(--line); padding:12px 24px 20px;
    box-shadow:0 20px 40px -24px oklch(0.2 0.05 195 / 0.25);
  }
  nav.primary.is-open{display:flex;}
  nav.primary a{padding:12px 0;}
  header.site .nav-row{position:relative; flex-wrap:wrap;}
}

.header-link{
  background:transparent; border:1px solid var(--line); color:var(--ink);
  border-radius:999px; padding:6px 14px; font:inherit; font-size:0.82rem; font-weight:700; cursor:pointer;
}

/* Legal / privacy */
.legal-main{padding:64px 0;}
.legal-prose{max-width:720px; margin:0 auto;}
.legal-prose h1{font-family:'Fraunces', serif;}
.legal-prose h2{font-family:'Fraunces', serif; font-size:1.25rem; margin-top:2rem;}
.legal-prose p, .legal-prose li{color:var(--muted); line-height:1.65;}
.legal-prose__updated{font-size:0.9rem; color:var(--muted);}

/* Discover featured card backgrounds */
.featured-card .shop-avatar{display:none;}
.featured-card--has-logo .featured-card-bg{
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0.35;
}

/* Shop card logo in grid */
.shop-card .shop-avatar{width:48px;height:48px;font-size:1rem;margin-bottom:0;}
.directory-card-logo{width:48px;height:48px;border-radius:14px;object-fit:cover;}
.directory-card-mark{
  width:48px;height:48px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces', serif; font-weight:600; font-size:1rem; color:var(--white);
}

/* Consumer passport page */
.page{max-width:var(--container); margin:0 auto; padding:0 24px 64px;}

/* Guest My Perk landing — full-width marketing sections */
main.passport-guest > section{
  max-width:none;
  width:100%;
  margin-inline:0;
}

main.passport-guest > .page-hero{
  padding-bottom:56px;
}

main.passport-guest > section:has(.auth-wrap){
  padding-top:0;
  padding-bottom:72px;
}

main.passport-guest > section.alt{
  padding-top:80px;
  padding-bottom:80px;
}

main.passport-guest .page-hero h1{
  font-family:'Fraunces', serif;
  color:var(--white);
  font-size:clamp(1.9rem, 3.6vw, 2.6rem);
  max-width:20ch;
}

main.passport-guest .page-hero p.lead{
  color:oklch(0.95 0.01 195 / 0.88);
}

main.passport-guest .section-head p{
  color:var(--muted);
}

.passport-guest-qr{
  max-width:280px;
  margin:56px auto 0;
  text-align:center;
}

.passport-guest-qr .caption{
  margin-top:10px;
  font-size:0.85rem;
  color:var(--muted);
  font-weight:600;
}

/* Signed-in wallet shell — compact hero, not marketing gradient */
.page--balance .page-hero{
  padding:1.25rem 0 0.75rem;
  background:none;
  color:var(--ink);
}

.page--balance .page-hero h1,
.page--balance .page-hero .greeting{
  color:var(--ink);
  font-family:'Manrope', sans-serif;
  font-size:1.25rem;
  font-weight:700;
  max-width:none;
}

.page--balance .page-hero p.lead,
.page--balance .subtitle{
  color:var(--muted);
}

.page--balance .card, .page--balance .auth-card{margin-top:0;}
.section-title{font-family:'Fraunces', serif; font-size:1.2rem; margin:0 0 8px;}

/* Check icon inline */
.check-icon{flex:none; width:22px; height:22px; color:var(--brand); margin-top:2px;}
.plan-feature-icon{flex:none; width:18px; height:18px; margin-top:3px; color:var(--brand);}
.plan.popular .plan-feature-icon{color:var(--gold);}
