/* =========================================================
   LOYALTY CHIPS — Luxury Pages
   Page-scoped editorial patterns. Loaded after luxury.css.
   Reuses tokens defined in luxury.css :root.
   ========================================================= */

/* ---------- Mono utility ---------- */
.lx-mono,
.theme-white-slate .lx-mono,
.theme-cream-app .lx-mono {
  font-family: var(--lx-mono);
  font-feature-settings: 'ss01' off;
  letter-spacing: -.01em;
}

/* ---------- Hairline section rule ---------- */
.lx-hairline-rule {
  border: 0;
  border-top: var(--lx-rule);
  margin: 0;
  width: 100%;
}

/* ---------- Italic Fraunces lede (long-form pages) ---------- */
.theme-white-slate .lx-italic-lede,
.theme-cream-app .lx-italic-lede {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  letter-spacing: -.012em;
  color: var(--lx-ink-2);
  max-width: 60ch;
  padding-left: 1ch;
  border-left: 2px solid var(--lx-gold);
  margin: clamp(28px, 3vw, 40px) 0;
}

/* ---------- Pullquote callout ---------- */
.lx-pullquote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -.022em;
  color: var(--lx-ink);
  max-width: 28ch;
  margin: clamp(40px, 5vw, 80px) auto;
  padding: clamp(20px, 2vw, 28px) 0 clamp(20px, 2vw, 28px) clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--lx-gold);
  position: relative;
}
.lx-pullquote::before {
  content: '\201C';
  position: absolute;
  top: -.1em;
  left: clamp(8px, 1.4vw, 18px);
  font-size: 1em;
  color: var(--lx-gold);
  opacity: .55;
  line-height: 1;
}
.lx-pullquote-attr {
  display: block;
  margin-top: 18px;
  font-family: var(--lx-mono);
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lx-slate);
  font-weight: 500;
}

/* ---------- Form fields (replaces inline styles on index.html) ---------- */
.lx-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.lx-form-grid + .lx-form-grid { margin-top: 0; }
@media (max-width: 720px) {
  .lx-form-grid { grid-template-columns: 1fr; }
}

.lx-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lx-form-field > span,
.lx-form-field > label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lx-slate-2);
  font-weight: 500;
}
.lx-form-field input,
.lx-form-field select,
.lx-form-field textarea {
  padding: 13px 14px;
  border: 1px solid var(--lx-line-2);
  border-radius: var(--lx-radius-sm);
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--lx-ink);
  transition: border-color .18s var(--lx-ease), box-shadow .18s var(--lx-ease);
  -webkit-appearance: none;
  appearance: none;
}
.lx-form-field input:focus,
.lx-form-field select:focus,
.lx-form-field textarea:focus {
  outline: none;
  border-color: var(--lx-ink);
  box-shadow: 0 0 0 3px rgba(10, 21, 48, .08);
}
.lx-form-field input::placeholder { color: var(--lx-mist); }

.lx-form-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.lx-form-trust {
  margin-top: 22px;
  padding-top: 22px;
  border-top: var(--lx-rule);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--lx-slate-2);
}
.lx-form-trust span:nth-child(even) { color: var(--lx-mist); }

/* ---------- Pricing grid (4-col with auto-fit fallback) ---------- */
.lx-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
@media (max-width: 1080px) {
  .lx-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .lx-pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- Newsletter input refinement (footer) ---------- */
.theme-white-slate .newsletter input {
  padding: 11px 13px;
  border: 1px solid var(--lx-line-2);
  border-radius: var(--lx-radius-sm);
  font-size: 13px;
  background: #fff;
  color: var(--lx-ink);
  font-family: 'Inter', sans-serif;
}
.theme-white-slate .newsletter input:focus {
  outline: none;
  border-color: var(--lx-ink);
  box-shadow: 0 0 0 3px rgba(10, 21, 48, .08);
}

/* =========================================================
   FEATURES — numbered editorial rows
   ========================================================= */
.lx-feature-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lx-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(60px, 8vw, 120px) 0;
  border-top: var(--lx-rule);
  position: relative;
}
.lx-feature-row:first-child { border-top: 0; }
.lx-feature-row.is-flipped > .lx-feature-text { order: 2; }
.lx-feature-row.is-flipped > .lx-feature-visual { order: 1; }

@media (max-width: 880px) {
  .lx-feature-row { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .lx-feature-row.is-flipped > .lx-feature-text { order: 1; }
  .lx-feature-row.is-flipped > .lx-feature-visual { order: 2; }
}

.lx-feature-numeral {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: var(--lx-numeral);
  line-height: .85;
  color: var(--lx-ink);
  letter-spacing: -.04em;
  opacity: .92;
  font-feature-settings: 'ss01' on, 'lnum' on;
  font-variation-settings: 'opsz' 144;
  margin-bottom: clamp(12px, 1.4vw, 22px);
  display: block;
}
.lx-feature-numeral .accent-num {
  color: var(--lx-gold);
  font-style: normal;
  font-weight: 500;
}

.lx-feature-text h2 {
  font-size: clamp(28px, 3.6vw, 48px) !important;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0 0 16px;
}
.lx-feature-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--lx-slate);
  max-width: 52ch;
  margin: 0 0 14px;
}

.lx-feature-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lx-feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--lx-slate);
  line-height: 1.55;
}
.lx-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 12px;
  height: 1px;
  background: var(--lx-gold);
}

.lx-feature-visual {
  position: relative;
  border-radius: var(--lx-radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--lx-mist-bg) 100%);
  border: 1px solid var(--lx-line);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--lx-shadow-2);
}
.lx-feature-visual img,
.lx-feature-visual svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.lx-feature-visual.is-cover img { object-fit: cover; }

/* =========================================================
   TOUR — sticky rail scroll story
   ========================================================= */
.lx-tour-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(40px, 5vw, 80px) 0;
}
@media (max-width: 880px) {
  .lx-tour-wrap { grid-template-columns: 1fr; gap: 32px; }
}

.lx-tour-rail {
  position: sticky;
  top: 110px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 16px;
  border-left: var(--lx-rule);
}
@media (max-width: 880px) {
  .lx-tour-rail {
    position: relative;
    top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    border-left: 0;
    border-top: var(--lx-rule);
    padding: 16px 0 0;
  }
}

.lx-tour-rail-item {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lx-mist);
  font-weight: 500;
  transition: color .25s var(--lx-ease);
  display: flex;
  align-items: baseline;
  gap: 10px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
.lx-tour-rail-item .num {
  font-family: var(--lx-mono);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--lx-mist);
  transition: color .25s var(--lx-ease);
}
.lx-tour-rail-item.is-active {
  color: var(--lx-ink);
}
.lx-tour-rail-item.is-active .num {
  color: var(--lx-gold);
}
.lx-tour-rail-item:hover { color: var(--lx-ink-2); }

.lx-tour-scenes {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 120px);
}

.lx-tour-scene {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-content: center;
  scroll-margin-top: 100px;
}

.lx-tour-scene .lx-scene-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 60ch;
}
.lx-tour-scene h2 {
  font-size: clamp(34px, 4.4vw, 60px) !important;
  letter-spacing: -.028em;
  line-height: 1.02;
  margin: 0;
}
.lx-tour-scene p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--lx-slate);
  max-width: 56ch;
}

.lx-tour-scene .lx-scene-visual {
  border-radius: var(--lx-radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--lx-mist-bg) 100%);
  border: 1px solid var(--lx-line);
  box-shadow: var(--lx-shadow-2);
  aspect-ratio: 16 / 10;
  position: relative;
}
.lx-tour-scene .lx-scene-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   INDUSTRY LP — accent tints
   ========================================================= */
.lp-tint-warm { background: linear-gradient(180deg, var(--lx-paper) 0%, var(--lx-tint-warm) 100%); }
.lp-tint-cool { background: linear-gradient(180deg, var(--lx-paper) 0%, var(--lx-tint-cool) 100%); }
.lp-tint-emerald { background: linear-gradient(180deg, var(--lx-paper) 0%, var(--lx-tint-emerald) 100%); }

.lp-tint-warm .lx-card,
.lp-tint-cool .lx-card,
.lp-tint-emerald .lx-card {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.88) 100%);
}

.lp-tint-warm .lx-final-card { background: linear-gradient(180deg, #fff 0%, var(--lx-tint-warm) 100%); }
.lp-tint-cool .lx-final-card { background: linear-gradient(180deg, #fff 0%, var(--lx-tint-cool) 100%); }
.lp-tint-emerald .lx-final-card { background: linear-gradient(180deg, #fff 0%, var(--lx-tint-emerald) 100%); }

.lp-tint-warm .pill,
.lp-tint-cool .pill,
.lp-tint-emerald .pill { backdrop-filter: blur(10px) saturate(1.1); }

/* LP scenarios block */
.lx-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(32px, 4vw, 56px);
}
@media (max-width: 880px) {
  .lx-scenarios { grid-template-columns: 1fr; }
}
.lx-scenario {
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
}
.lx-scenario .lx-scenario-time {
  font-family: var(--lx-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lx-gold);
  margin-bottom: 12px;
  display: block;
}
.lx-scenario h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  color: var(--lx-ink);
  margin: 0 0 10px;
}
.lx-scenario p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--lx-slate);
  margin: 0;
}

/* =========================================================
   REWARD PAGE — device tray (cream surface for phone mockup)
   ========================================================= */
body.reward-page {
  background: var(--lx-cream);
}

body.reward-page .reward-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
}
@media (max-width: 980px) {
  body.reward-page .reward-stage {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }
}

body.reward-page .reward-context {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
}
body.reward-page .reward-context .logo { margin-bottom: 4px; }
body.reward-page .reward-context h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--lx-ink);
  margin: 0;
}
body.reward-page .reward-context p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--lx-slate);
  margin: 0;
}
body.reward-page .reward-context-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.reward-page .reward-context-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--lx-slate);
  line-height: 1.5;
}
body.reward-page .reward-context-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 12px;
  height: 1px;
  background: var(--lx-gold);
}

.lx-device-tray {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--lx-radius-xl);
  background: linear-gradient(160deg, #fff 0%, var(--lx-cream) 100%);
  border: 1px solid var(--lx-line-2);
  box-shadow: var(--lx-shadow-3);
  overflow: hidden;
}
.lx-device-tray::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--lx-radius-xl) - 6px);
  border: 1px solid var(--lx-gold);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
.lx-device-tray .phone-wrap {
  position: relative;
  z-index: 1;
}

/* Reward page status bar (moved out of inline <style>) */
body.reward-page .phone-wrap {
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
}
body.reward-page .phone { position: relative; }
body.reward-page .status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 6px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.85);
  position: relative; z-index: 2;
}
body.reward-page .status-bar .right {
  display: flex; gap: 6px; align-items: center; font-size: 11px; opacity: .7;
}
body.reward-page .status-bar .right .b {
  padding: 1px 5px; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; font-size: 9px;
}
body.reward-page .confetti {
  position: absolute; width: 8px; height: 8px;
  top: 0; opacity: 0;
  animation: lx-fall 2.4s ease-out forwards;
}
@keyframes lx-fall {
  0% { transform: translateY(-40px) rotate(0); opacity: 1; }
  100% { transform: translateY(420px) rotate(540deg); opacity: 0; }
}
body.reward-page .hidden { display: none !important; }

/* =========================================================
   SCROLL REVEAL (paired with luxury.js IntersectionObserver)
   ========================================================= */
.lx-reveal {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--lx-ease-out), transform .6s var(--lx-ease-out);
  will-change: opacity, transform;
}
.lx-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .lx-reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   LEGAL — long-form prose
   ========================================================= */
.theme-white-slate .legal-prose {
  max-width: 64ch;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--lx-slate);
}
.theme-white-slate .legal-prose h2 {
  font-size: clamp(24px, 2.6vw, 32px) !important;
  margin: clamp(40px, 4vw, 56px) 0 16px;
  line-height: 1.15;
}
.theme-white-slate .legal-prose h3 {
  font-size: clamp(18px, 1.8vw, 22px) !important;
  margin: 32px 0 10px;
  line-height: 1.2;
}
.theme-white-slate .legal-prose p { margin: 0 0 16px; }
.theme-white-slate .legal-prose ul,
.theme-white-slate .legal-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.theme-white-slate .legal-prose li { margin-bottom: 8px; }
.theme-white-slate .legal-prose a {
  color: var(--lx-ink);
  text-decoration: underline;
  text-decoration-color: var(--lx-gold);
  text-underline-offset: 3px;
}
.theme-white-slate .legal-prose a:hover { text-decoration-thickness: 2px; }

.legal-meta {
  font-family: var(--lx-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lx-slate-2);
  margin-bottom: 6px;
}

/* =========================================================
   LEGAL PAGES — long-form prose treatment
   Maps to existing .legal-shell / .legal-hero / .legal-wrap.legal-card
   ========================================================= */

.theme-white-slate.legal-shell {
  background: var(--lx-paper);
}

.theme-white-slate.legal-shell .legal-main {
  padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px);
}

.theme-white-slate.legal-shell .legal-hero {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: left;
}
.theme-white-slate.legal-shell .legal-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 14px 0 12px;
}
.theme-white-slate.legal-shell .legal-hero .muted {
  font-family: var(--lx-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lx-slate-2);
}

.theme-white-slate.legal-shell .legal-wrap.legal-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px);
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.92) 100%);
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius-lg);
  box-shadow: var(--lx-shadow-1);
  font-size: 16px;
  line-height: 1.7;
  color: var(--lx-slate);
}

.theme-white-slate.legal-shell .legal-wrap.legal-card h2 {
  font-size: clamp(22px, 2.4vw, 28px) !important;
  margin: clamp(36px, 4vw, 48px) 0 14px;
  line-height: 1.18;
  letter-spacing: -.018em;
  color: var(--lx-ink);
}
.theme-white-slate.legal-shell .legal-wrap.legal-card h2:first-child {
  margin-top: 0;
}
.theme-white-slate.legal-shell .legal-wrap.legal-card h3 {
  font-size: clamp(17px, 1.7vw, 20px) !important;
  margin: 28px 0 10px;
  line-height: 1.22;
}
.theme-white-slate.legal-shell .legal-wrap.legal-card p {
  margin: 0 0 16px;
}
.theme-white-slate.legal-shell .legal-wrap.legal-card ul,
.theme-white-slate.legal-shell .legal-wrap.legal-card ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.theme-white-slate.legal-shell .legal-wrap.legal-card li { margin-bottom: 8px; }
.theme-white-slate.legal-shell .legal-wrap.legal-card a {
  color: var(--lx-ink);
  text-decoration: underline;
  text-decoration-color: var(--lx-gold);
  text-underline-offset: 3px;
  transition: text-decoration-thickness .15s var(--lx-ease);
}
.theme-white-slate.legal-shell .legal-wrap.legal-card a:hover {
  text-decoration-thickness: 2px;
}
.theme-white-slate.legal-shell .legal-wrap.legal-card strong {
  color: var(--lx-ink);
  font-weight: 600;
}

.theme-white-slate.legal-shell .legal-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: var(--lx-rule);
}
