/* ============================================================
   KasiBuy — Foundational Design System
   kasibuy.ubuntutown.co.za
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --charcoal:        #141414;
  --charcoal-soft:   #211E1B;
  --charcoal-line:   #2E2925;
  --sunset:          #FF6A1F;
  --sunset-deep:     #E2541A;
  --sunset-soft:     #FFE3D2;
  --commerce:        #1F9D55;
  --commerce-deep:   #167B41;
  --commerce-soft:   #D4F2DE;
  --cream:           #F7EFE0;
  --cream-deep:      #EEDFC2;
  --cream-line:      #E4D2A9;

  /* Functional */
  --bg:              var(--cream);
  --surface:         #FFFDF7;
  --ink:             var(--charcoal);
  --ink-soft:        #4A4239;
  --ink-mute:        #8B7F6E;
  --line:            #E8DBBE;
  --danger:          #C8442C;
  --warning:         #E3A218;
  --info:            #2563EB;

  /* Type scale (mobile-first) */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-40: 2.5rem;
  --fs-56: 3.5rem;

  /* Spacing (4pt grid) */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem;
  --s-4: 1rem;     --s-5: 1.25rem; --s-6: 1.5rem;
  --s-8: 2rem;     --s-10: 2.5rem; --s-12: 3rem;
  --s-16: 4rem;    --s-20: 5rem;   --s-24: 6rem;

  /* Radius — rounded, friendly */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows — soft, warm */
  --shadow-sm: 0 1px 2px rgba(20,20,20,0.06);
  --shadow-md: 0 6px 18px -6px rgba(20,20,20,0.12);
  --shadow-lg: 0 24px 48px -16px rgba(20,20,20,0.18);
  --shadow-glow: 0 8px 32px -8px rgba(255,106,31,0.45);

  /* Container */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 140ms;
  --t-base: 240ms;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-16);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-8) 0; }
::selection { background: var(--sunset); color: #fff; }

/* ---------- 3. Typography ---------- */
.h-display,
.h-1, .h-2, .h-3, .h-4 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.h-display { font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 800; }
.h-1       { font-size: clamp(1.875rem, 4.5vw, 3rem); }
.h-2       { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.h-3       { font-size: var(--fs-24); letter-spacing: -0.01em; }
.h-4       { font-size: var(--fs-20); letter-spacing: -0.005em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sunset-deep);
}
.lede { font-size: var(--fs-18); color: var(--ink-soft); line-height: 1.6; }
.mute { color: var(--ink-mute); }
.balance { text-wrap: balance; }

/* ---------- 4. Layout System ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section-cream    { background: var(--cream); }
.section-surface  { background: var(--surface); }
.section-charcoal { background: var(--charcoal); color: var(--cream); }
.section-charcoal .h-1,
.section-charcoal .h-2,
.section-charcoal .h-3,
.section-charcoal .h-display { color: var(--cream); }
.section-charcoal .lede { color: rgba(247,239,224,0.78); }
.section-charcoal .eyebrow { color: var(--sunset); }
.section-sunset { background: var(--sunset); color: var(--charcoal); }
.section-green  { background: var(--commerce); color: #fff; }
.section-green .lede,
.section-sunset .lede { color: rgba(20,20,20,0.78); }

.section-head {
  display: flex; flex-direction: column; gap: var(--s-3);
  margin-bottom: var(--s-8); max-width: 720px;
}
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.stack-lg { display: flex; flex-direction: column; gap: var(--s-8); }
.row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; }

/* ---------- 5. Buttons ---------- */
.btn {
  --bg: var(--charcoal);
  --fg: #fff;
  --bdr: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.875rem 1.375rem;
  font-weight: 700;
  font-size: var(--fs-16);
  line-height: 1;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--bdr);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn:hover  { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--sunset-soft); outline-offset: 2px; }

.btn-primary    { --bg: var(--sunset); --fg: #fff; --bdr: var(--sunset); }
.btn-primary:hover { box-shadow: var(--shadow-glow); }
.btn-secondary  { --bg: var(--charcoal); --fg: var(--cream); --bdr: var(--charcoal); }
.btn-success    { --bg: var(--commerce); --fg: #fff; --bdr: var(--commerce); }
.btn-ghost      { --bg: transparent; --fg: var(--ink); --bdr: var(--line); }
.btn-ghost-dark { --bg: transparent; --fg: var(--cream); --bdr: rgba(247,239,224,0.28); }
.btn-cream      { --bg: var(--cream); --fg: var(--charcoal); --bdr: var(--cream); }

.btn-sm { padding: 0.625rem 1rem; font-size: var(--fs-14); }
.btn-lg { padding: 1.125rem 1.75rem; font-size: var(--fs-18); }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

.btn-telegram {
  --bg: #229ED9; --fg: #fff; --bdr: #229ED9;
}

/* Tag / chip */
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0.375rem 0.75rem;
  font-size: var(--fs-12);
  font-weight: 700;
  border-radius: var(--r-pill);
  background: var(--cream-deep);
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.chip-sunset   { background: var(--sunset-soft); color: var(--sunset-deep); }
.chip-green    { background: var(--commerce-soft); color: var(--commerce-deep); }
.chip-charcoal { background: var(--charcoal); color: var(--cream); }
.chip-outline  { background: transparent; border: 1px solid var(--line); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 6. Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-flat { box-shadow: none; }
.card-elevated { box-shadow: var(--shadow-md); border-color: transparent; }
.card-charcoal { background: var(--charcoal-soft); border-color: var(--charcoal-line); color: var(--cream); }
.card-charcoal .mute { color: rgba(247,239,224,0.6); }
.card-sunset   { background: var(--sunset); border-color: var(--sunset); color: var(--charcoal); }
.card-green    { background: var(--commerce); border-color: var(--commerce); color: #fff; }
.card-cream    { background: var(--cream-deep); border-color: var(--cream-line); }

.card-header { display: flex; align-items: center; gap: var(--s-3); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--sunset-soft); color: var(--sunset-deep);
  font-size: var(--fs-24);
  flex-shrink: 0;
}
.card-icon.green    { background: var(--commerce-soft); color: var(--commerce-deep); }
.card-icon.charcoal { background: var(--charcoal); color: var(--cream); }
.card-icon.cream    { background: var(--cream); color: var(--charcoal); }

.card-title { font-size: var(--fs-20); font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.card-body  { color: var(--ink-soft); font-size: var(--fs-16); line-height: 1.6; margin: 0; }
.card-charcoal .card-body { color: rgba(247,239,224,0.78); }
.card-foot  { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }

/* Product / seller card variant */
.card-media {
  margin: calc(var(--s-6) * -1) calc(var(--s-6) * -1) 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
  position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .chip { position: absolute; top: var(--s-3); left: var(--s-3); }

/* ---------- 7. Trust badges ---------- */
.badge-trust {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink-soft);
}
.badge-trust .badge-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--commerce);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}
.section-charcoal .badge-trust {
  background: var(--charcoal-soft);
  border-color: var(--charcoal-line);
  color: var(--cream);
}

.trust-strip {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4);
  align-items: center;
}

/* ---------- 8. Stats ---------- */
.stat {
  display: flex; flex-direction: column; gap: var(--s-1);
  padding: var(--s-5) 0;
}
.stat-value {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sunset);
}
.stat-charcoal .stat-value { color: var(--sunset); }
.stat-green   .stat-value { color: var(--commerce); }
.stat-label { font-size: var(--fs-14); font-weight: 600; color: var(--ink-soft); }
.section-charcoal .stat-label { color: rgba(247,239,224,0.72); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-grid > .stat { border-top: 2px solid var(--line); }
.section-charcoal .stat-grid > .stat { border-top-color: var(--charcoal-line); }

/* ---------- 9. CTA blocks ---------- */
.cta-block {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex; flex-direction: column; gap: var(--s-5);
  isolation: isolate;
}
.cta-block::after {
  content: "";
  position: absolute; inset: auto -10% -40% auto;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255,106,31,0.65), transparent 70%);
  z-index: -1;
}
.cta-block .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cta-block.cta-sunset { background: var(--sunset); color: var(--charcoal); }
.cta-block.cta-sunset::after { display: none; }
.cta-block.cta-green  { background: var(--commerce); color: #fff; }
.cta-block.cta-green::after { display: none; }
.cta-block.cta-cream  { background: var(--cream-deep); color: var(--charcoal); }
.cta-block.cta-cream::after { display: none; }

.cta-inline {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5);
  background: var(--cream-deep);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--sunset);
}

/* ---------- 10. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,239,224,0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-weight: 800; font-size: var(--fs-20); letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: url('/assets/brand/mark.svg') center / contain no-repeat;
  font-size: 0;
  flex-shrink: 0;
}
.brand .brand-buy { color: var(--commerce); }
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; color: var(--ink-mute); text-transform: uppercase; }
.site-footer .brand small,
.mobile-nav-panel .brand small { color: rgba(247,239,224,0.55); }

/* Inline verified seller badge — sized via font-size */
.kb-verified {
  display: inline-block;
  width: 1em; height: 1em;
  background: url('/assets/brand/verified.svg') center / contain no-repeat;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* Campaign stamp — drop onto any card corner */
.kb-stamp {
  position: absolute;
  width: 88px; height: 88px;
  background: url('/assets/brand/campaign-stamp.svg') center / contain no-repeat;
  transform: rotate(-8deg);
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(20,20,20,0.25));
}
.kb-stamp.top-right { top: -16px; right: -10px; }
.kb-stamp.top-left  { top: -16px; left:  -10px; }
.kb-stamp.bottom-right { bottom: -16px; right: -10px; transform: rotate(6deg); }
@media (max-width: 640px) {
  .kb-stamp { width: 68px; height: 68px; }
}

.nav-desktop {
  display: none;
  gap: var(--s-2);
  align-items: center;
}
.nav-desktop a {
  padding: 0.5rem 0.875rem;
  font-weight: 600; font-size: var(--fs-14);
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-desktop a:hover { color: var(--ink); background: var(--cream-deep); }
.nav-desktop a.active { color: var(--ink); background: var(--cream-deep); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); }

.nav-toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--charcoal);
  color: var(--cream);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .nav-toggle  { display: none; }
}

/* ---------- 11. Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.mobile-nav.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.mobile-nav-scrim {
  position: absolute; inset: 0;
  background: rgba(20,20,20,0.5);
}
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 88vw);
  background: var(--charcoal);
  color: var(--cream);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-base) var(--ease);
  padding: var(--s-5) var(--s-6) var(--s-8);
  gap: var(--s-6);
  overflow-y: auto;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-close {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--charcoal-soft);
  color: var(--cream);
  display: grid; place-items: center;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: var(--s-1); }
.mobile-nav-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-3);
  border-radius: var(--r-md);
  font-size: var(--fs-20);
  font-weight: 700;
  color: var(--cream);
  border-bottom: 1px solid var(--charcoal-line);
}
.mobile-nav-links a:hover { background: var(--charcoal-soft); }
.mobile-nav-links a::after { content: "→"; color: var(--sunset); opacity: 0.7; }
.mobile-nav-foot {
  margin-top: auto;
  display: flex; flex-direction: column; gap: var(--s-3);
}
.mobile-nav-foot .meta { font-size: var(--fs-12); color: rgba(247,239,224,0.55); letter-spacing: 0.08em; text-transform: uppercase; }
body.nav-open { overflow: hidden; }

/* ---------- 12. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: var(--s-10);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: var(--s-12); }
}
.hero-copy { display: flex; flex-direction: column; gap: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255,106,31,0.25), transparent 60%),
    linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-soft) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual .floater {
  position: absolute;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-md);
  display: flex; gap: var(--s-3); align-items: center;
  max-width: 80%;
}
.hero-visual .floater.top { top: 6%; left: 6%; }
.hero-visual .floater.bottom { bottom: 6%; right: 6%; background: var(--sunset); color: var(--charcoal); }
.hero-visual .floater .swatch {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--commerce-soft); display: grid; place-items: center;
  font-size: var(--fs-20);
  flex-shrink: 0;
}
.hero-visual .floater small { display: block; font-size: var(--fs-12); color: var(--ink-mute); }
.hero-visual .floater strong { font-size: var(--fs-14); font-weight: 800; }

/* ============================================================
   Hero — Proof Stack (replaces dark mockup block)
   A lightweight, all-CSS composition: Mini App phone + 4 floaters
   ============================================================ */
.proof-stack {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 1 / 1.18;
  isolation: isolate;
}

/* Soft township-warmth glow behind the stack */
.proof-stack::before {
  content: "";
  position: absolute; inset: 4% 8%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255,106,31,0.22), transparent 70%),
    radial-gradient(closest-side, rgba(31,157,85,0.16) 50%, transparent 75%);
  filter: blur(8px);
  z-index: -1;
}

/* ---- Mini App phone preview (anchor) ---- */
.proof-phone {
  position: absolute;
  top: 4%; bottom: 4%;
  left: 18%; right: 8%;
  background: var(--charcoal);
  border-radius: 32px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 24px 64px -22px rgba(20,20,20,0.45),
    inset 0 0 0 1.5px var(--charcoal-line);
  display: flex; flex-direction: column;
  color: var(--cream);
  z-index: 1;
}
.proof-phone::before {
  /* notch */
  content: "";
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 14px;
  background: #000;
  border-radius: 0 0 12px 12px;
  z-index: 3;
}

/* 1. Status bar */
.pp-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px 4px;
  font-size: 9px; font-weight: 800;
  color: rgba(247,239,224,0.75);
  letter-spacing: 0.05em;
}
.pp-status .sys { display: inline-flex; align-items: center; gap: 5px; }
.pp-status .bars { letter-spacing: -1px; }
.pp-status .battery {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid currentColor; border-radius: 2px;
  padding: 1px 2px;
  position: relative;
  font-size: 7px;
}
.pp-status .battery::after {
  content: ""; position: absolute; right: -2px; top: 1px;
  width: 1px; height: 2px; background: currentColor;
}

/* 2 + 3. Telegram top bar with KasiBuy title */
.pp-tg-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 8px;
  background: var(--charcoal-soft);
  border-bottom: 1px solid var(--charcoal-line);
}
.pp-tg-bar .back { font-size: 18px; line-height: 1; color: var(--telegram); font-weight: 600; }
.pp-tg-bar .tg-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: url('/assets/brand/mark.svg') center / contain no-repeat;
  flex-shrink: 0;
}
.pp-tg-bar .name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; line-height: 1.15; }
.pp-tg-bar .name strong { font-size: 12px; font-weight: 800; color: var(--cream); }
.pp-tg-bar .name small { font-size: 8.5px; color: rgba(247,239,224,0.55); letter-spacing: 0.02em; }
.pp-tg-bar .menu {
  font-size: 16px; color: rgba(247,239,224,0.6); letter-spacing: 1px; line-height: 1;
}

/* Body wraps the scrollable feel */
.pp-body {
  flex: 1; min-height: 0;
  padding: 10px 12px 6px;
  display: flex; flex-direction: column;
  gap: 9px;
  overflow: hidden;
}

/* 4. Greeting */
.pp-greet { display: flex; flex-direction: column; gap: 1px; }
.pp-greet strong { font-size: 13px; font-weight: 800; color: var(--cream); letter-spacing: -0.005em; }
.pp-greet small { font-size: 9.5px; color: rgba(247,239,224,0.55); }

/* 5. Search bar */
.pp-search {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: var(--charcoal-soft);
  border: 1px solid var(--charcoal-line);
  border-radius: 999px;
  font-size: 10.5px;
  color: rgba(247,239,224,0.5);
}
.pp-search .ico { font-size: 11px; }
.pp-search .kbd {
  margin-left: auto;
  font-size: 8px; padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--charcoal-line);
  color: rgba(247,239,224,0.45);
}

/* 6. Category chips */
.pp-cats {
  display: flex; gap: 5px;
  overflow: hidden;
  flex-wrap: nowrap;
}
.pp-cat {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9.5px; font-weight: 700;
  border: 1px solid var(--charcoal-line);
  color: rgba(247,239,224,0.65);
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.pp-cat.is-active {
  background: var(--sunset);
  border-color: var(--sunset);
  color: var(--charcoal);
}

/* 7. Campaign banner — refreshed */
.proof-banner {
  height: 64px;
  border-radius: 12px;
  background:
    radial-gradient(80% 100% at 80% 0%, rgba(255,255,255,0.28), transparent 50%),
    linear-gradient(140deg, var(--sunset) 0%, var(--sunset-deep) 100%);
  padding: 8px 10px;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 1px;
  position: relative;
  overflow: hidden;
  color: var(--charcoal);
}
.proof-banner::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  filter: blur(4px);
}
.proof-banner .eyebrow-mini {
  font-size: 7.5px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
}
.proof-banner strong { font-size: 11.5px; font-weight: 800; line-height: 1.1; }
.proof-banner .meta-line { font-size: 8.5px; font-weight: 700; opacity: 0.72; }

/* 8. Section heading (Hot local deals) */
.pp-section {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 800;
  color: var(--cream);
  margin-top: 1px;
}
.pp-section .link { color: var(--sunset); font-size: 9.5px; font-weight: 700; }

/* 9. Product cards with verified badges */
.pp-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pp-prod {
  background: var(--charcoal-soft);
  border: 1px solid var(--charcoal-line);
  border-radius: 10px;
  padding: 6px;
  display: flex; flex-direction: column;
  gap: 3px;
  position: relative;
  overflow: hidden;
}
.pp-prod .img {
  width: 100%;
  aspect-ratio: 1.7 / 1;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 20px;
  position: relative;
}
.pp-prod .img .deal {
  position: absolute; top: 3px; left: 3px;
  background: var(--charcoal); color: var(--sunset);
  padding: 1px 5px; border-radius: 999px;
  font-size: 7.5px; font-weight: 800; letter-spacing: 0.04em;
}
.pp-prod .name {
  display: flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 800;
  color: var(--cream);
  white-space: nowrap; overflow: hidden;
}
.pp-prod .name strong {
  font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; flex: 1;
}
.pp-prod .verified {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--commerce);
  color: #fff;
  display: inline-grid; place-items: center;
  font-size: 7px; font-weight: 900;
  flex-shrink: 0;
  line-height: 1;
}
.pp-prod .meta { font-size: 8.5px; color: rgba(247,239,224,0.5); }
.pp-prod .price-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1px;
}
.pp-prod .price { font-size: 11.5px; font-weight: 800; color: var(--sunset); }
.pp-prod .strike { font-size: 8.5px; color: rgba(247,239,224,0.35); text-decoration: line-through; }

/* 10. Bottom navigation */
.pp-tabbar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 5px 4px 3px;
  background: var(--charcoal-soft);
  border-top: 1px solid var(--charcoal-line);
}
.pp-tab {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 7.5px; font-weight: 700;
  color: rgba(247,239,224,0.4);
  padding: 2px 4px;
  letter-spacing: 0.02em;
}
.pp-tab .ti { font-size: 15px; line-height: 1; }
.pp-tab.is-active { color: var(--sunset); }
.pp-tab .badge {
  position: absolute; transform: translate(8px, -3px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sunset);
  border: 1.5px solid var(--charcoal-soft);
}

/* 11. Bot footer */
.pp-bot-footer {
  text-align: center;
  padding: 3px 8px 6px;
  background: var(--charcoal-soft);
  font-size: 7.5px;
  color: rgba(247,239,224,0.4);
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.pp-bot-footer b { color: var(--telegram); font-weight: 800; }

/* Mobile compact: phone slightly smaller, body padding reduced */
@media (max-width: 640px) {
  .pp-status   { padding: 14px 16px 3px; font-size: 8px; }
  .pp-tg-bar   { padding: 5px 9px 6px; }
  .pp-body     { padding: 8px 9px 5px; gap: 7px; }
  .proof-banner { height: 54px; padding: 7px 9px; }
  .proof-banner strong { font-size: 10.5px; }
  .pp-prod     { padding: 5px; border-radius: 9px; }
  .pp-prod .img { font-size: 17px; }
  .pp-tabbar   { padding: 4px 2px 2px; }
  .pp-tab .ti  { font-size: 13px; }
}

/* ---- Floating proof cards ---- */
.proof-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 36px -12px rgba(20,20,20,0.28);
  z-index: 2;
  max-width: 230px;
}
.proof-card .pc-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.proof-card .pc-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.proof-card .pc-text strong {
  font-size: 12px; font-weight: 800;
  letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proof-card .pc-text small {
  font-size: 10px; color: var(--ink-mute);
}
.proof-card .pc-pill {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--commerce-soft); color: var(--commerce-deep);
  flex-shrink: 0;
}

/* Position each card */
.proof-card.is-seller {
  top: 6%; left: -2%;
}
.proof-card.is-seller .pc-icon { background: var(--sunset-soft); color: var(--sunset-deep); }

.proof-card.is-campaign {
  top: 32%; left: -6%;
  background: var(--sunset);
  border-color: var(--sunset);
  color: var(--charcoal);
}
.proof-card.is-campaign .pc-icon { background: var(--charcoal); color: var(--sunset); }
.proof-card.is-campaign .pc-text small { color: rgba(20,20,20,0.7); }
.proof-card.is-campaign .pc-pill { background: var(--charcoal); color: var(--sunset); }

.proof-card.is-notif {
  bottom: 30%; right: -6%;
  background: var(--telegram);
  border-color: var(--telegram-deep);
  color: #fff;
  max-width: 220px;
}
.proof-card.is-notif .pc-icon { background: rgba(255,255,255,0.18); color: #fff; }
.proof-card.is-notif .pc-text small { color: rgba(255,255,255,0.78); }
.proof-card.is-notif .pc-pill { background: rgba(255,255,255,0.18); color: #fff; }

.proof-card.is-parcel {
  bottom: 2%; left: -4%;
  border: 2px solid var(--commerce);
  background: var(--surface);
}
.proof-card.is-parcel .pc-icon { background: var(--commerce); color: #fff; }
.proof-card.is-parcel .pc-pill { background: var(--commerce); color: #fff; }

/* Subtle float animation — disabled for reduced motion */
@keyframes pc-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.proof-card { animation: pc-float 6s ease-in-out infinite; }
.proof-card.is-campaign { animation-delay: -1.5s; }
.proof-card.is-notif    { animation-delay: -3s; }
.proof-card.is-parcel   { animation-delay: -4.5s; }
@media (prefers-reduced-motion: reduce) {
  .proof-card { animation: none; }
}

/* Mobile: tighten the stack so it doesn't dominate the page */
@media (max-width: 640px) {
  .proof-stack { max-width: 360px; aspect-ratio: 1 / 1.1; }
  .proof-phone { left: 22%; right: 4%; border-radius: 26px; }
  .proof-card { padding: 8px 10px; gap: 8px; max-width: 190px; border-radius: 12px; }
  .proof-card .pc-icon { width: 30px; height: 30px; font-size: 15px; }
  .proof-card .pc-text strong { font-size: 11px; }
  .proof-card .pc-text small { font-size: 9px; }
  .proof-card.is-seller   { left: -4%; }
  .proof-card.is-campaign { left: -8%; }
  .proof-card.is-notif    { right: -8%; }
}

/* ---------- 13. Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(247,239,224,0.78);
  padding-block: var(--s-12) var(--s-8);
  margin-top: var(--s-16);
}
.footer-grid {
  display: grid;
  gap: var(--s-8);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-col h4 {
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sunset);
  margin: 0 0 var(--s-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a { color: var(--cream); font-weight: 500; }
.footer-col a:hover { color: var(--sunset); }
.footer-brand { display: flex; flex-direction: column; gap: var(--s-3); max-width: 360px; }
.footer-brand p { color: rgba(247,239,224,0.65); font-size: var(--fs-14); line-height: 1.6; }
.footer-bottom {
  margin-top: var(--s-10);
  padding-top: var(--s-6);
  border-top: 1px solid var(--charcoal-line);
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  align-items: center; justify-content: space-between;
  font-size: var(--fs-12);
  color: rgba(247,239,224,0.5);
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* ---------- 14. Utilities ---------- */
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.hide-mobile { display: none; }
.only-mobile { display: initial; }
@media (min-width: 760px) {
  .hide-mobile { display: initial; }
  .only-mobile { display: none; }
}

.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;
}

.divider-warm { height: 1px; background: var(--cream-line); }

/* Township coverage tag list */
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
}
.tag-cloud .chip { background: transparent; border: 1px solid var(--line); }

/* Logos / proof strip */
.proof-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-6) var(--s-8);
  padding: var(--s-5) 0;
  opacity: 0.85;
}
.proof-strip span {
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: var(--fs-14); color: var(--ink-mute);
}

/* Inline icon (emoji-as-icon fallback) */
.i { display: inline-grid; place-items: center; line-height: 1; }

/* ============================================================
   15. Telegram bridge
   ============================================================ */
:root {
  --telegram: #229ED9;
  --telegram-deep: #1A88BD;
}

/* Device-aware visibility — set by kasibuy-telegram.js on <html data-device="..."> */
[data-only="desktop"]      { display: none; }
[data-only="mobile"]       { display: none; }
[data-only="ios"]          { display: none; }
[data-only="android"]      { display: none; }
html[data-device="desktop"] [data-only="desktop"] { display: revert; }
html[data-device="ios"]     [data-only="mobile"],
html[data-device="android"] [data-only="mobile"],
html[data-device="mobile"]  [data-only="mobile"]  { display: revert; }
html[data-device="ios"]     [data-only="ios"]     { display: revert; }
html[data-device="android"] [data-only="android"] { display: revert; }

/* Bridge hero card */
.tg-bridge {
  display: grid;
  gap: var(--s-8);
  align-items: center;
  grid-template-columns: 1fr;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
@media (min-width: 860px) {
  .tg-bridge { grid-template-columns: 1.1fr 1fr; gap: var(--s-10); }
}
.tg-bridge-copy { display: flex; flex-direction: column; gap: var(--s-4); }
.tg-bridge-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.tg-bridge-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  font-size: var(--fs-12); color: var(--ink-mute);
}
.tg-bridge-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--cream-deep); padding: 2px 6px; border-radius: 6px;
  color: var(--ink);
}

/* QR component */
.qr-frame {
  --qr-size: 248px;
  width: var(--qr-size);
  max-width: 100%;
  aspect-ratio: 1;
  margin-inline: auto;
  padding: var(--s-4);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255,106,31,0.18), transparent 60%),
    linear-gradient(160deg, var(--charcoal), var(--charcoal-soft));
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}
.qr-frame::before {
  content: "";
  position: absolute; inset: var(--s-3);
  border-radius: var(--r-lg);
  background: var(--surface);
  z-index: -1;
}
.qr-host {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--ink-mute);
  font-size: var(--fs-12);
}
.qr-host.is-loading::after {
  content: "Generating…";
  color: var(--ink-mute);
}
.qr-host svg { width: 100%; height: 100%; display: block; border-radius: var(--r-md); }
.qr-host.is-failed { background: var(--cream-deep); border-radius: var(--r-md); padding: var(--s-4); }
.qr-fallback {
  display: flex; flex-direction: column; gap: var(--s-2);
  text-align: center;
  color: var(--ink-soft);
}
.qr-fallback strong { color: var(--ink); font-size: var(--fs-16); }
.qr-fallback code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-12);
  word-break: break-all;
  background: var(--surface);
  padding: var(--s-2); border-radius: 6px; border: 1px solid var(--line);
}
.qr-caption {
  margin-top: var(--s-3);
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--fs-14);
}
.qr-caption strong { color: var(--ink); }

/* Telegram CTA button preset (re-uses .btn .btn-telegram already in §5) */
.btn-telegram::before {
  content: "";
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.894 8.221l-1.97 9.28c-.145.658-.537.818-1.084.508l-3-2.21-1.446 1.394c-.16.16-.295.295-.605.295l.213-3.053 5.56-5.022c.242-.213-.054-.334-.373-.122l-6.87 4.326-2.96-.924c-.64-.203-.658-.64.135-.953l11.566-4.458c.538-.196 1.006.128.832.943z'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}

/* Intent cards (Buyer / Seller / Partner) */
.intent-card {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.intent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.intent-card .card-icon { background: var(--telegram); color: #fff; }
.intent-card.is-seller .card-icon { background: var(--sunset); color: #fff; }
.intent-card.is-partner .card-icon { background: var(--commerce); color: #fff; }
.intent-card .intent-meta {
  font-size: var(--fs-12); color: var(--ink-mute);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

/* Numbered "how to" steps */
.steps { display: grid; gap: var(--s-4); counter-reset: kbstep; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step::before {
  counter-increment: kbstep;
  content: counter(kbstep);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--sunset);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: var(--fs-18);
}
.step h3 { margin: 0 0 var(--s-1); font-size: var(--fs-18); font-weight: 800; }
.step p  { margin: 0; color: var(--ink-soft); }

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-3);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--sunset); font-size: var(--fs-24); font-weight: 800;
  transition: transform var(--t-fast) var(--ease);
}
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-soft); margin: var(--s-3) 0 0; }

/* Manual fallback link list */
.tg-links {
  display: grid; gap: var(--s-2);
  background: var(--cream-deep);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.tg-links a {
  display: flex; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-12);
  color: var(--ink);
  word-break: break-all;
}
.tg-links a:hover { border-color: var(--sunset); }
.tg-links a span:first-child { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; flex-shrink: 0; }
.tg-links a span:last-child  { color: var(--ink-mute); text-align: right; }

/* Ecosystem flow: Website → Bot → Mini App */
.flow {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
.flow-step {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.flow-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.flow-step .role {
  font-size: var(--fs-12); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700;
}
.flow-step h3 { margin: 0; font-size: var(--fs-20); font-weight: 800; letter-spacing: -0.01em; }
.flow-step p { margin: 0; color: var(--ink-soft); }
.flow-step .flow-tag {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0.25rem 0.625rem;
  font-size: var(--fs-12); font-weight: 700;
  border-radius: var(--r-pill);
  background: var(--cream-deep); color: var(--charcoal);
  align-self: flex-start;
}
.flow-step.is-web    .flow-icon { background: var(--cream-deep); color: var(--charcoal); }
.flow-step.is-bot    .flow-icon { background: var(--telegram, #229ED9); color: #fff; }
.flow-step.is-app    .flow-icon { background: var(--sunset); color: #fff; }
.flow-arrow {
  display: grid; place-items: center;
  color: var(--sunset);
  font-size: var(--fs-32);
  font-weight: 800;
  padding: var(--s-2) 0;
}
@media (min-width: 960px) {
  .flow { grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: stretch; gap: var(--s-3); }
  .flow-arrow { writing-mode: horizontal-tb; }
}
.flow-step .flow-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-size: var(--fs-24);
  flex-shrink: 0;
}

/* Two-column "For Buyers / For Sellers" split */
.split {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
.split-pane {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column; gap: var(--s-4);
  isolation: isolate;
  min-height: 100%;
}
.split-pane.for-buyers  { background: var(--commerce); color: #fff; }
.split-pane.for-sellers { background: var(--charcoal); color: var(--cream); }
.split-pane.for-sellers::after {
  content: ""; position: absolute; inset: auto -10% -40% auto;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255,106,31,0.55), transparent 70%);
  z-index: -1;
}
.split-pane h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.split-pane ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--s-2);
}
.split-pane ul li {
  display: flex; align-items: flex-start; gap: var(--s-3);
  font-size: var(--fs-16);
}
.split-pane ul li::before {
  content: "✓";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.split-pane.for-sellers ul li::before { background: var(--sunset); color: var(--charcoal); }
.split-pane .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: auto; }
.split-pane .pane-eyebrow {
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
}

/* Township commerce hero background — abstract pattern */
.hero-township {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(255,106,31,0.18), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(31,157,85,0.14), transparent 60%),
    var(--cream);
}
.hero-township::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(20,20,20,0.06) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: 0 0;
  mask-image: radial-gradient(120% 80% at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 30%, #000, transparent 75%);
  pointer-events: none;
  opacity: 0.6;
}
.hero-township > * { position: relative; }

/* Banner shown when desktop user clicks a Telegram link (paired via data-tg-fallback) */
.tg-fallback-panel {
  position: fixed; left: 50%; bottom: var(--s-5);
  transform: translateX(-50%) translateY(140%);
  z-index: 80;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; gap: var(--s-4);
  max-width: min(560px, 92vw);
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-base) var(--ease);
}
.tg-fallback-panel.open { transform: translateX(-50%) translateY(0); }
.tg-fallback-panel .body { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-14); }
.tg-fallback-panel strong { font-size: var(--fs-16); color: var(--cream); }
.tg-fallback-panel .close {
  margin-left: auto;
  background: var(--charcoal-soft);
  color: var(--cream);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  font-size: var(--fs-12);
}
