/* Maxx Reward — Unified Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
  --bg: #f8f7ff;
  --bg-alt: #f0eeff;
  --card: #ffffff;
  --card-subtle: #fcfbfe;
  --fg: #13102b;
  --fg-muted: #5e5977;
  --line: #e3dff5;
  --line-subtle: #eeebfa;
  --primary: #5b3df5;
  --primary-hover: #4829e2;
  --primary-light: #ece8ff;
  --primary-gradient: linear-gradient(135deg, #5b3df5 0%, #8951ff 100%);
  --accent-gold: #ffb800;
  --accent-green: #00b060;
  --shadow-sm: 0 2px 8px rgba(35, 17, 85, 0.04);
  --shadow-md: 0 8px 24px rgba(35, 17, 85, 0.08);
  --shadow-lg: 0 16px 40px rgba(35, 17, 85, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --max-w: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a18;
    --bg-alt: #131024;
    --card: #18142e;
    --card-subtle: #1e1a38;
    --fg: #f4f2ff;
    --fg-muted: #a49fc4;
    --line: #2e284f;
    --line-subtle: #241f3f;
    --primary-light: #241c4d;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--fg);
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  text-decoration: underline;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .header {
    background: rgba(12, 10, 24, 0.85);
  }
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(91, 61, 245, 0.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  text-decoration: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(91, 61, 245, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91, 61, 245, 0.45);
  text-decoration: none;
}
.btn-secondary {
  background: var(--card);
  color: var(--fg) !important;
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  border-color: var(--primary);
  text-decoration: none;
}

/* Main Container */
.main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 1.25rem 4rem;
}

/* Legal & Document Layout */
.doc-container {
  max-width: 840px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.doc-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.doc-header h1 {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--fg-muted);
  font-size: 0.88rem;
}
.doc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}
.doc-content h2 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line-subtle);
}
.doc-content h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.5rem;
}
.doc-content p, .doc-content li {
  color: var(--fg-muted);
  font-size: 0.98rem;
  line-height: 1.68;
  margin-bottom: 0.85rem;
}
.doc-content ul, .doc-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.doc-content strong {
  color: var(--fg);
}
.callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.callout-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}
.callout-success {
  border-left-color: var(--accent-green);
  background: rgba(0, 176, 96, 0.08);
}

/* Landing Page Hero */
.hero {
  text-align: center;
  padding: 3rem 0 3.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 3.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--fg) 55%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.2rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 3.5rem 0 2rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Feature Grid */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.section-title p {
  color: var(--fg-muted);
  font-size: 1.05rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Brand Grid (Cuelinks Shopping) */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 3.5rem;
}
.brand-chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
}
.brand-rate {
  font-size: 0.82rem;
  color: var(--accent-green);
  font-weight: 600;
  margin-top: 0.35rem;
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 4rem;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.faq-item p {
  color: var(--fg-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 3.5rem 1.25rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  color: var(--fg);
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.6rem;
}
.footer-col a {
  color: var(--fg-muted);
  font-size: 0.92rem;
}
.footer-col a:hover {
  color: var(--primary);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid var(--line-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .doc-container { padding: 1.5rem; }
  .nav-links { display: none; }
}
