/* ============================================================
   Landmark Rewards — shared design system
   Heading: Playfair Display  ·  Body / labels: Jost
   Palette: gold + cream + ink, with a festive "prize" accent layer.
   Fonts: Playfair Display (display) + Jost (body). Imported here so every
   page linking this stylesheet gets them; index.html additionally <link>s
   them with preconnect for a faster first paint.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  /* Gold scale */
  --gold-50:  #f5e9c8;
  --gold-100: #ecdcb0;
  --gold-200: #e0c98c;
  --gold-300: #cdac6a;
  --gold-400: #b68c3b;   /* hairlines */
  --gold-500: #aa8453;   /* primary accent */
  --gold-600: #8c6a3f;
  --gold-700: #6e5322;

  /* Cream backgrounds */
  --cream-0: #fffff7;
  --cream-1: #fffff2;
  --cream-2: #fefee0;
  --cream-3: #fbf3d1;

  /* Champagne */
  --champ-1: #faf5e7;
  --champ-2: #f3ead0;
  --champ-3: #e8d6a9;

  /* Ink (text) */
  --ink-900: #1b1b1b;
  --ink-800: #221d1a;
  --ink-700: #3d362f;
  --ink-500: #5a5048;
  --ink-400: #6c5f53;
  --ink-200: #b8afa5;

  /* Prize accent (festive layer — wheel, countdown, prize CTAs only) */
  --prize-pulse: #ffd54a;
  --prize-deep:  #8b6a2c;

  /* Status */
  --ok:     #2db77c;
  --warn:   #d97706;
  --danger: #b91c1c;

  /* Radii */
  --r-pill: 999px;
  --r-2xl: 22px;
  --r-3xl: 30px;
  --r-lg: 16px;

  /* Shadows — soft, warm, luxe */
  --luxe:    0 1px 2px rgba(34,29,26,.04), 0 18px 44px -22px rgba(110,83,34,.30);
  --luxe-sm: 0 1px 2px rgba(34,29,26,.05), 0 8px 22px -14px rgba(110,83,34,.28);
  --luxe-lg: 0 2px 6px rgba(34,29,26,.05), 0 40px 80px -34px rgba(110,83,34,.40);

  --eyebrow-sp: .22em;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', system-ui, sans-serif;
  color: var(--ink-800);
  background: var(--cream-0);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--ink-900);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -.01em;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }

/* Keyboard focus — visible gold ring, never on mouse clicks */
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link for keyboard / screen-reader users */
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 100; background: var(--ink-900); color: var(--cream-0);
  padding: 10px 20px; border-radius: 0 0 var(--r-lg) var(--r-lg);
  font-size: 14px; transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}
.container-narrow { max-width: 880px; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--eyebrow-sp);
  text-transform: uppercase;
  color: var(--gold-600);
}

.gold-divider {
  width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  border: 0;
}
.gold-divider.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease, filter .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink-900);
  color: var(--cream-0);
  box-shadow: var(--luxe-sm);
}
.btn-primary:hover { background: #000; box-shadow: var(--luxe); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(110,83,34,.6);
}
.btn-gold:hover { filter: brightness(1.05); }
.btn-prize {
  background: linear-gradient(135deg, var(--prize-pulse), var(--gold-500));
  color: #3a2c0e;
  font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(255,213,74,.55);
}
.btn-prize:hover { filter: brightness(1.04); }
.btn-ghost {
  background: transparent;
  color: var(--ink-800);
  border-color: var(--gold-300);
}
.btn-ghost:hover { background: var(--champ-1); border-color: var(--gold-400); }
.btn-lg { padding: 16px 34px; font-size: 15px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Inputs (pill) ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: var(--eyebrow-sp); text-transform: uppercase;
  color: var(--ink-400);
}
.input, .select, textarea.input {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: var(--ink-800);
  background: #fff;
  border: 1px solid var(--champ-3);
  border-radius: var(--r-pill);
  padding: 14px 20px;
  width: 100%;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
textarea.input { border-radius: var(--r-lg); resize: vertical; min-height: 84px; line-height: 1.5; }
.input::placeholder { color: var(--ink-200); }
.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(182,140,59,.14);
  background: #fff;
}
.input:disabled { background: var(--champ-1); color: var(--ink-400); cursor: not-allowed; }
.input-lg { padding: 17px 24px; font-size: 17px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .input { padding-left: 48px; }
.input-icon-wrap svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-200); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--champ-2);
  border-radius: var(--r-2xl);
  box-shadow: var(--luxe-sm);
}
.card-3xl { border-radius: var(--r-3xl); }
.card-pad { padding: clamp(20px, 3vw, 32px); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  border: 1px solid transparent;
}
.tier-top10    { background: linear-gradient(135deg, var(--gold-300), var(--gold-600)); color: #fff; }
.tier-top50    { background: var(--champ-2); color: var(--gold-700); border-color: var(--gold-200); }
.tier-community { background: var(--cream-2); color: var(--ink-400); border-color: var(--champ-3); }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 10px;
  align-items: center; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink-900); color: var(--cream-0);
  padding: 13px 20px; border-radius: var(--r-pill);
  box-shadow: var(--luxe-lg); font-size: 14px;
  animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2);
}
.toast .tcheck { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Public top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,247,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--champ-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { height: 40px; width: auto; }
.brand .word { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 600; letter-spacing: .01em; line-height: 1.05; }
.brand .word em { font-style: italic; font-weight: 400; opacity: .9; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { font-size: 14px; color: var(--ink-500); transition: color .15s; white-space: nowrap; }
.nav-links > a:hover, .nav-links > a.active { color: var(--ink-900); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .nav-back { white-space: nowrap; }
.lang-switch { display:inline-flex; align-items:center; gap:6px; font-size:12px; letter-spacing:.08em; color:var(--ink-400); white-space:nowrap; }
.lang-switch a { color:var(--ink-400); }
.lang-switch a[aria-current="true"] { color:var(--ink-900); font-weight:600; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink-800); }
.nav-drawer-cta { display: none; }   /* shown only inside the mobile drawer */

/* "Join" nav item — styled as a pill to stand out */
.nav-links > a.nav-join {
  display: inline-flex; align-items: center;
  background: var(--ink-900); color: var(--cream-0) !important;
  padding: 7px 16px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 13.5px;
  transition: background .15s, box-shadow .15s;
  box-shadow: var(--luxe-sm);
}
.nav-links > a.nav-join:hover { background: #000; box-shadow: var(--luxe); }
.nav-links > a.nav-join.active { background: #000; }

/* Mobile nav drawer */
@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--cream-0); border-bottom: 1px solid var(--champ-2);
    box-shadow: var(--luxe); padding: 8px 0 4px;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, visibility .3s;
  }
  .nav-links.open { max-height: 520px; visibility: visible; }
  .nav-links > a { padding: 14px clamp(20px, 5vw, 56px); border-bottom: 1px solid var(--champ-1); }
  .nav-cta .btn { display: none; }            /* top-bar buttons move into the drawer */
  .nav-burger { display: block; }
  .nav-drawer-cta { display: flex; flex-direction: column; gap: 10px; padding: 16px clamp(20px, 5vw, 56px) 6px; }
  .nav-cta > .lang-switch { display:none; }
  .nav-drawer-cta .lang-switch { justify-content:center; padding:4px 0; }
}

/* ---------- Footer (mirrors the main site) ---------- */
.site-footer { background: var(--ink-900); color: var(--champ-2); margin-top: 90px; }
.site-footer a { color: var(--champ-3); }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.5fr; gap: 40px; padding: 64px 0 40px; align-items: start; }
.foot-brand .brand { align-items: center; }
.foot-brand .brand .mark { height: 52px; }
.foot-brand .brand .word { color: #fff; font-size: 24px; }
.foot-eyebrow { margin-top: 16px; font-size: 11px; font-weight: 500; letter-spacing: var(--eyebrow-sp); text-transform: uppercase; color: var(--gold-200); }
.foot-blurb { margin-top: 14px; font-size: 14px; line-height: 1.7; color: var(--champ-3); max-width: 40ch; opacity: .85; }
.site-footer h4 {
  color: #fff; font-size: 13px; letter-spacing: var(--eyebrow-sp);
  text-transform: uppercase; font-family: 'Jost', sans-serif; font-weight: 500; margin-bottom: 16px;
}
.site-footer .foot-link { display: block; font-size: 14px; color: var(--champ-3); padding: 5px 0; opacity: .82; line-height: 1.4; }
.site-footer .foot-link:hover { opacity: 1; color: var(--gold-200); }
.foot-hours { font-size: 14px; color: var(--champ-2); margin-bottom: 12px; line-height: 1.35; }
.foot-hours span { display: block; font-size: 12px; color: var(--ink-200); }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(232,214,169,.22); color: var(--champ-3);
  transition: color .15s, border-color .15s;
}
.foot-social a:hover { color: var(--gold-200); border-color: var(--gold-300); }
.site-footer .foot-bottom {
  border-top: 1px solid rgba(232,214,169,.15); padding: 22px 0;
  font-size: 12.5px; color: var(--ink-200);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.foot-mainlink { color: var(--gold-300); }

@media (max-width: 980px) {
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Utilities ---------- */
.muted { color: var(--ink-400); }
.center { text-align: center; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.bg-champ { background: var(--champ-1); }
.bg-cream2 { background: var(--cream-2); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Restored shared components + utilities (used by the check page + admin) ---------- */
html { scroll-padding-top: 88px; }   /* keep anchored sections clear of the sticky nav */

/* Entry-source badges (check-entry history, admin ledger) */
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: var(--r-pill); }
.src-service { background: #eef6f0; color: #1f7a52; }
.src-amoe    { background: #eef1f8; color: #3a4f8a; }
.src-bonus   { background: #f8f0e6; color: var(--gold-700); }
.src-adjust  { background: #f6eeee; color: #8a3a3a; }
.src .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Status pill (admin campaign status) */
.pill-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: var(--r-pill); }
.pill-active { background: #eaf7f1; color: #1f7a52; }
.pill-active .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* Stat tile (admin dashboard) */
.stat-tile { background: #fff; border: 1px solid var(--champ-2); border-radius: var(--r-2xl); padding: 22px 24px; box-shadow: var(--luxe-sm); }
.stat-tile .stat-label { font-size: 11px; letter-spacing: var(--eyebrow-sp); text-transform: uppercase; color: var(--ink-400); }
.stat-tile .stat-value { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 600; color: var(--ink-900); line-height: 1.05; margin-top: 8px; }
.stat-tile .stat-sub { font-size: 13px; color: var(--ink-400); margin-top: 4px; }

/* Flex utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

/* Larger footer social tap targets (a11y) */
.foot-social a { width: 42px; height: 42px; }

/* Reduced-motion: stop the looping pulse dot */
@media (prefers-reduced-motion: reduce) {
  .stage-eyebrow .pulse { animation: none; }
}

/* Pre-launch placeholder rows (Guest N @ 0 entries) — muted "sample" look */
.is-sample { opacity: .6; }

/* ---------- Check-result actions (overflow-proof) ---------- */
.res-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.res-actions-row { display: flex; gap: 12px; }
.res-actions-row .btn { flex: 1; min-width: 0; }
@media (max-width: 480px) { .res-actions-row { flex-direction: column; } }

/* ---------- Fast share modal ---------- */
.share-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(26, 21, 14, .52);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .18s ease;
}
.share-modal.show { opacity: 1; }
.share-sheet {
  width: 100%; max-width: 460px; background: var(--cream-0);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: 22px 22px calc(24px + env(safe-area-inset-bottom));
  box-shadow: var(--luxe-lg);
  transform: translateY(18px); transition: transform .22s cubic-bezier(.2,.9,.3,1.2);
}
.share-modal.show .share-sheet { transform: none; }
@media (min-width: 560px) {
  .share-modal { align-items: center; padding: 20px; }
  .share-sheet { border-radius: var(--r-2xl); }
}
.share-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.share-sheet-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--ink-900); margin: 0; }
.share-close {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: var(--cream-2); color: var(--ink-500); display: grid; place-items: center;
  transition: background .2s ease, color .2s ease;
}
.share-close svg { width: 17px; height: 17px; }
.share-close:hover { background: var(--champ-2); color: var(--ink-800); }
.share-acts { display: flex; flex-direction: column; gap: 10px; }
.share-act { gap: 10px; }
.share-ic { line-height: 0; display: inline-flex; }
.share-act .share-ic svg { width: 19px; height: 19px; }
.share-socials { display: flex; gap: 12px; justify-content: center; margin: 18px 0 2px; }
.share-soc {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--cream-1); border: 1px solid var(--champ-2); color: var(--gold-700);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.share-soc svg { width: 23px; height: 23px; }
.share-soc:hover { transform: translateY(-2px); background: var(--champ-1); box-shadow: var(--luxe-sm); }
.share-dl {
  width: 100%; margin-top: 14px; padding-top: 16px; cursor: pointer;
  border: 0; border-top: 1px solid var(--champ-1); background: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Jost', sans-serif; font-size: 13.5px; color: var(--ink-400);
  transition: color .2s ease;
}
.share-dl .share-ic svg { width: 17px; height: 17px; }
.share-dl:hover { color: var(--gold-700); }
.share-dl:disabled { opacity: .5; cursor: not-allowed; }
