/* ============================================================
   Perks page (perks.html). Loads after members.css.
   Three paid tiers, visible in the layout:
     Spotlight  one big brand-coloured banner at the top
     Featured   the Featured partners row
     Listing    coupon cards by category
   Bottom: the pitch to businesses.
   ============================================================ */

body.pk-body {
  --paper: #fff7fa;
  --deep: #5c0020;
  --butter: #ffd66b;
  --line: rgba(153, 0, 51, 0.13);
  background: var(--paper);
  background-image: none;
}
.pk {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.5rem clamp(1rem, 4vw, 2rem) 0;
}
.pk-ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.pk button:focus-visible, .pk a:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

/* ---------- header ---------- */
.pk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 0.8rem 0 1rem; }
.pk-head__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 8vw, 3.2rem); letter-spacing: -0.035em; line-height: 1; color: var(--deep); }
.pk-head__sub { margin-top: 0.45rem; color: var(--ink-soft); font-size: 0.98rem; }
.pk-listbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 2px solid var(--deep);
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-weight: 900;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.pk-listbtn:hover { background: var(--deep); color: #fff; }
.pk-listbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pk-sample { margin-bottom: 1rem; font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }

/* ---------- shared bits ---------- */
.pk-logo {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.pk-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.pk-logo--lg { width: 72px; height: 72px; border-radius: 20px; font-size: 1.5rem; background: #fff; color: var(--brand); }
.pk-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--butter);
  color: var(--deep);
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pk-badge .pk-ico { width: 11px; height: 11px; }
.pk-badge--members { background: var(--blush-soft); color: var(--maroon); }
.pk-badge--spot { background: rgba(255, 255, 255, 0.95); color: var(--deep); }
.pk-ends { display: inline-block; font-size: 0.76rem; font-weight: 700; color: var(--ink-soft); }

.pk-act { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 0.9rem; }
.pk-code {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.5rem 0 0.85rem;
  border: 2px dashed rgba(153, 0, 51, 0.35);
  border-radius: 12px;
  background: var(--paper);
  font-family: var(--font-body);
  color: var(--deep);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pk-code:hover { border-color: var(--maroon); }
.pk-code__val { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.08em; overflow: hidden; text-overflow: ellipsis; }
.pk-code__copy { flex-shrink: 0; padding: 0.2rem 0.55rem; border-radius: 999px; background: #fff; font-size: 0.74rem; font-weight: 900; color: var(--maroon); }
.pk-code.is-copied { border-style: solid; border-color: #1f7a4d; background: #e7f6ee; }
.pk-code.is-copied .pk-code__copy { background: #1f7a4d; color: #fff; }
.pk-code--locked { cursor: default; justify-content: flex-start; gap: 0.4rem; color: var(--ink-soft); font-weight: 700; font-size: 0.86rem; }
.pk-visit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 12px;
  background: var(--maroon);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  text-decoration: none;
}
.pk-visit:hover { background: var(--deep); }
.pk-visit--unlock { background: var(--butter); color: var(--deep); }
.pk-visit--unlock:hover { background: var(--deep); color: #fff; }

/* ---------- spotlight ---------- */
.pk-spot {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.3rem 1.3rem 1.25rem;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.28), transparent 45%),
    radial-gradient(rgba(255, 255, 255, 0.12) 1.4px, transparent 1.8px) 0 0 / 16px 16px,
    var(--brand);
  box-shadow: 0 28px 50px -30px color-mix(in srgb, var(--brand) 90%, #000);
}
.pk-spot__top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.pk-spot .pk-ends { color: rgba(255, 255, 255, 0.9); }
.pk-spot__main { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.pk-spot__name { font-weight: 900; font-size: 0.95rem; }
.pk-spot__name span { font-weight: 400; opacity: 0.85; }
.pk-spot__offer { margin-top: 0.15rem; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.02; letter-spacing: -0.03em; }
.pk-spot__blurb { margin-top: 0.4rem; font-size: 0.92rem; opacity: 0.92; max-width: 46ch; }
.pk-spot .pk-act { padding-top: 1.2rem; max-width: 460px; }
.pk-spot .pk-code { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.pk-spot .pk-code:hover { border-color: #fff; }
.pk-spot .pk-visit { background: #fff; color: var(--brand); }
.pk-spot .pk-visit:hover { background: var(--butter); color: var(--deep); }
@media (max-width: 480px) { .pk-spot__main { align-items: flex-start; } .pk-logo--lg { width: 56px; height: 56px; font-size: 1.2rem; } }

.pk-lockline {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
}
.pk-lockline svg { width: 18px; height: 18px; fill: none; stroke: var(--rose); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 1px; }
.pk-lockline a { color: var(--maroon); font-weight: 900; }

/* ---------- sections ---------- */
.pk-sec { margin-top: 2.4rem; }
.pk-sec__title { margin-bottom: 0.9rem; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 5vw, 1.8rem); letter-spacing: -0.02em; color: var(--deep); }

.pk-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 320px);
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: calc(clamp(1rem, 4vw, 2rem) * -1);
  padding: 0.3rem clamp(1rem, 4vw, 2rem) 1rem;
  scrollbar-width: none;
}
.pk-rail::-webkit-scrollbar { display: none; }
.pk-rail > * { scroll-snap-align: start; }
@media (min-width: 820px) {
  .pk-rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}

.pk-chips { display: flex; gap: 0.45rem; overflow-x: auto; margin: 0 calc(clamp(1rem, 4vw, 2rem) * -1) 1.1rem; padding: 2px clamp(1rem, 4vw, 2rem); scrollbar-width: none; }
.pk-chips::-webkit-scrollbar { display: none; }
.pk-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
}
.pk-chip .pk-ico { color: var(--rose); }
.pk-chip span { font-size: 0.74rem; font-weight: 900; color: var(--ink-soft); }
.pk-chip[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.pk-chip[aria-pressed="true"] .pk-ico, .pk-chip[aria-pressed="true"] span { color: var(--butter); }

.pk-cat { margin-bottom: 1.8rem; }
.pk-cat__title { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.7rem; font-size: 0.74rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose); }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.8rem; }

/* ---------- coupon card ---------- */
.pk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px -22px rgba(92, 0, 32, 0.6);
  transition: transform 0.15s, box-shadow 0.15s;
}
.pk-card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(92, 0, 32, 0.7); }
.pk-card__top { display: flex; align-items: center; gap: 0.7rem; }
.pk-card__who { flex: 1; min-width: 0; }
.pk-card__name { font-weight: 900; font-size: 0.95rem; color: var(--deep); line-height: 1.25; }
.pk-card__meta { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.1rem; font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-card__meta .pk-ico { width: 13px; height: 13px; color: var(--rose); }
.pk-card__offer { margin-top: 0.85rem; font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.015em; color: var(--deep); }
.pk-card__blurb { margin-top: 0.35rem; font-size: 0.86rem; color: var(--ink); line-height: 1.45; }
.pk-card .pk-ends { margin-top: 0.35rem; }
.pk-card--feat { border: 2px solid var(--brand); box-shadow: 0 16px 30px -22px color-mix(in srgb, var(--brand) 80%, #000); }
.pk-card--feat::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 16px 16px 0 0; background: var(--brand); }
.pk-card.is-locked { background: linear-gradient(180deg, #fff 55%, var(--blush-soft)); }
.pk-card.is-locked .pk-logo { filter: grayscale(0.5); opacity: 0.8; }

/* ---------- for business ---------- */
.pk-biz {
  margin: 3.5rem calc(clamp(1rem, 4vw, 2rem) * -1) 0;
  padding: 3rem clamp(1.25rem, 5vw, 3rem) 3.5rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 102, 196, 0.25), transparent 40%),
    var(--deep);
  color: #fff;
  border-radius: 28px 28px 0 0;
  scroll-margin-top: 1rem;
}
.pk-biz__kicker { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; color: var(--butter); }
.pk-biz__title { margin-top: 0.4rem; max-width: 22ch; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 7vw, 2.8rem); line-height: 1.05; letter-spacing: -0.03em; }
.pk-biz__title span { color: var(--butter); }
.pk-biz__sub { margin-top: 0.8rem; max-width: 52ch; opacity: 0.85; line-height: 1.55; }
.pk-biz__why { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pk-biz__why li { padding: 1rem 1.05rem; border-radius: 16px; background: rgba(255, 255, 255, 0.08); font-size: 0.9rem; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.pk-biz__why b { display: block; margin-bottom: 0.2rem; color: #fff; font-size: 1rem; }
.pk-biz__h3 { margin-top: 2.4rem; font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; }

.pk-tiers { margin-top: 0.9rem; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: stretch; }
.pk-tier { position: relative; padding: 1.2rem 1.15rem 1.1rem; border-radius: 18px; background: #fff; color: var(--ink); }
.pk-tier--mid { box-shadow: inset 0 0 0 3px var(--rose); }
.pk-tier--top { background: var(--butter); color: var(--deep); }
.pk-tier__flag { position: absolute; top: -0.65rem; right: 1rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--hotpink); color: #fff; font-size: 0.6875rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.pk-tier__name { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; color: var(--deep); }
.pk-tier__desc { margin-top: 0.2rem; font-size: 0.88rem; color: var(--ink-soft); }
.pk-tier--top .pk-tier__desc { color: var(--deep); opacity: 0.8; }
.pk-tier ul { list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.88rem; }
.pk-tier li { position: relative; padding-left: 1.5rem; }
.pk-tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15em;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background: var(--blush-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23990033' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 64% no-repeat;
}
.pk-tier--top li::before { background-color: #fff; }

.pk-steps { list-style: none; counter-reset: step; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pk-steps li { counter-increment: step; position: relative; padding: 1rem 1rem 1rem 3.4rem; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.9rem; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.pk-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem; top: 1rem;
  width: 1.8rem; height: 1.8rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--butter);
  color: var(--deep);
  font-weight: 900;
}
.pk-steps b { display: block; color: #fff; }

.pk-biz__cta { margin-top: 2.2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.pk-biz__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0 1.8rem;
  border-radius: 999px;
  background: var(--butter);
  color: var(--deep);
  font-weight: 900;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s, background 0.15s;
}
.pk-biz__btn:hover { background: #fff; transform: translateY(-2px); }
.pk-biz__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pk-biz__note { font-size: 0.84rem; opacity: 0.75; }

/* the floating WhatsApp help bubble sits on the dark band; keep it readable */
.pk-body .wafab { box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.5); }

@media (prefers-reduced-motion: reduce) {
  .pk-card, .pk-listbtn, .pk-biz__btn, .pk-code { transition: none; }
}

/* folded business pitch: a small strip until opened */
.pk-bizstrip {
  margin: 2.5rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 2px dashed rgba(92, 0, 32, 0.25);
  background: #fff;
}
.pk-bizstrip p { flex: 1 1 260px; font-size: 0.95rem; line-height: 1.45; }
.pk-bizstrip b { color: var(--deep); }
.pk-bizstrip__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 1.3rem;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  font-weight: 900;
  font-size: 0.92rem;
  text-decoration: none;
}
.pk-bizstrip__btn:hover { background: var(--maroon); }
.pk-biz { position: relative; animation: pk-open 0.35s ease both; }
.pk-biz__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}
.pk-biz__close:hover { background: rgba(255, 255, 255, 0.2); }
.pk-biz__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@keyframes pk-open { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pk-biz { animation: none; } }

/* members-only, viewer not verified: blurred stand-in code with a lock */
.pk-code--locked { position: relative; overflow: hidden; justify-content: center; background: var(--blush-soft); border-color: rgba(153, 0, 51, 0.25); }
.pk-code__blur {
  position: absolute;
  left: 0.85rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--deep);
  filter: blur(5px);
  opacity: 0.55;
  user-select: none;
}
.pk-code__lockmsg {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  color: var(--maroon);
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 4px 10px -6px rgba(92, 0, 32, 0.5);
}
.pk-code__lockmsg .pk-ico { width: 12px; height: 12px; }
