/* ============================================
   Reward Offer Guide — Global Stylesheet
   Mobile-first, clean, compliant design
   ============================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-bg:          #FFFDF7;
  --color-bg-alt:      #FFF9ED;
  --color-surface:     #FFFFFF;
  --color-text:        #2D2D2D;
  --color-text-muted:  #6B6B6B;
  --color-text-light:  #999999;
  --color-primary:     #2563EB;
  --color-primary-hover:#1D4ED8;
  --color-primary-soft: #EFF6FF;
  --color-accent:      #F59E0B;
  --color-accent-soft:  #FFF7E6;
  --color-border:      #E8E4DA;
  --color-border-light:#F0ECE2;
  --color-success:     #16A34A;
  --color-check:       #22C55E;
  --font-family:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.07);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.10);
  --shadow-cta: 0 4px 14px rgba(37,99,235,.35);
  --max-width:  720px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 72px; /* space for sticky CTA on mobile */
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }
ul, ol { list-style: none; }

/* ---------- Layout Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top Navigation Bar ---------- */
.top-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.92);
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name .brand-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-accent), #D97706);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-link-home {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.nav-link-home:hover { color: var(--color-primary); }

/* ---------- Hero Section ---------- */
.hero {
  text-align: center;
  padding: 48px 0 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent-soft);
  color: #92400E;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(245,158,11,.2);
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Treasure Chest Illustration */
.hero-illustration {
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
  position: relative;
}

.chest-body {
  width: 120px;
  height: 72px;
  background: linear-gradient(180deg, #D97706 0%, #B45309 100%);
  border-radius: 12px 12px 16px 16px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 6px 20px rgba(180,83,9,.3);
}

.chest-body::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #92400E;
  transform: translateY(-50%);
}

.chest-body::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 4px;
  border: 2px solid #92400E;
}

.chest-lid {
  width: 128px;
  height: 40px;
  background: linear-gradient(180deg, #FBBF24 0%, #D97706 100%);
  border-radius: 16px 16px 4px 4px;
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  transform-origin: bottom left;
  box-shadow: 0 -2px 10px rgba(251,191,36,.3);
  animation: lidFloat 3s ease-in-out infinite;
}

@keyframes lidFloat {
  0%, 100% { transform: translateX(-50%) rotate(-4deg); }
  50%      { transform: translateX(-50%) rotate(-7deg); }
}

.chest-sparkle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-accent);
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle-1 { width: 8px; height: 8px; top: 12px; left: 30px; animation-delay: 0s; }
.sparkle-2 { width: 6px; height: 6px; top: 8px;  right: 28px; animation-delay: .5s; }
.sparkle-3 { width: 5px; height: 5px; top: 24px; left: 16px; animation-delay: 1s; }
.sparkle-4 { width: 7px; height: 7px; top: 18px; right: 14px; animation-delay: 1.5s; }

@keyframes sparkle {
  0%, 100% { opacity: .3; transform: scale(.8) translateY(0); }
  50%      { opacity: 1;  transform: scale(1.2) translateY(-4px); }
}

.hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

.hero .subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.hero .disclosure-text {
  font-size: 13px;
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 38px; }
  .hero .subtitle { font-size: 18px; }
  .hero-illustration { width: 160px; height: 160px; }
}

/* ---------- CTA Button ---------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-cta);
  text-decoration: none;
  min-width: 220px;
}

.cta-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
  color: #fff;
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn .cta-arrow {
  font-size: 18px;
  transition: transform var(--transition);
}

.cta-btn:hover .cta-arrow {
  transform: translateX(3px);
}

.cta-small-text {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 12px;
  line-height: 1.5;
}

/* ---------- Sticky Mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: 12px 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .cta-btn {
  width: 100%;
  max-width: 400px;
  padding: 13px 24px;
  font-size: 15px;
}

@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ---------- Section Shared ---------- */
.section {
  padding: 40px 0;
}

.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-text);
  letter-spacing: -.01em;
}

@media (min-width: 768px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
}

/* ---------- How It Works ---------- */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.step-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .steps-grid { flex-direction: row; gap: 16px; }
  .step-card { flex-direction: column; text-align: center; align-items: center; flex: 1; padding: 28px 20px; }
  .step-number { margin-bottom: 4px; }
}

/* ---------- Info Box ---------- */
.info-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  line-height: 1.7;
}

.info-box p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.info-box p + p {
  margin-top: 14px;
}

/* ---------- Checklist ---------- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.55;
}

.check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-check);
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

/* ---------- Bottom CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: 48px 0 32px;
}

.cta-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.cta-section .cta-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .final-disclosure {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .cta-section { padding: 64px 0 48px; }
  .cta-section h2 { font-size: 28px; }
}

/* ---------- Footer ---------- */
.footer {
  background: #1F1F1F;
  color: #BCBCBC;
  padding: 40px 0 32px;
}

.footer-brand {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 13px;
  color: #BCBCBC;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-divider {
  height: 1px;
  background: #333;
  margin-bottom: 20px;
}

.footer-disclaimer {
  font-size: 11px;
  color: #777;
  line-height: 1.65;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1F1F1F;
  color: #E0E0E0;
  padding: 16px 20px;
  z-index: 200;
  display: none;
  border-top: 1px solid #333;
  animation: slideUp .4s ease;
}

.cookie-banner.show {
  display: block;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner p {
  font-size: 13px;
  line-height: 1.55;
  color: #CCC;
}

.cookie-banner a {
  color: #93C5FD;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.cookie-btn-accept {
  background: var(--color-primary);
  color: #fff;
}

.cookie-btn-accept:hover {
  background: var(--color-primary-hover);
}

.cookie-btn-manage {
  background: transparent;
  color: #CCC;
  border: 1px solid #555;
}

.cookie-btn-manage:hover {
  border-color: #999;
  color: #fff;
}

@media (min-width: 768px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-actions { flex-shrink: 0; }
}

/* ---------- Inner / Legal Pages ---------- */
.page-header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
  padding: 40px 0 36px;
  text-align: center;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -.02em;
}

.page-header .effective-date {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 8px;
}

@media (min-width: 768px) {
  .page-header { padding: 56px 0 48px; }
  .page-header h1 { font-size: 32px; }
}

.legal-content {
  padding: 36px 0 48px;
}

.legal-content h2 {
  font-size: 19px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.legal-content p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 0;
  margin-bottom: 14px;
}

.legal-content ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-content ul li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: var(--color-primary);
  font-weight: 700;
}

.legal-content .numbered-section {
  counter-reset: legal-item;
}

.legal-content .numbered-item {
  counter-increment: legal-item;
}

/* ---------- Contact Form ---------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.contact-info-item .info-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--color-primary-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-family);
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.form-submit:hover {
  background: var(--color-primary-hover);
}

.form-disclaimer {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 16px;
  line-height: 1.55;
}

/* ---------- About Page Lists ---------- */
.about-list {
  margin-bottom: 20px;
}

.about-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.about-list.do-list li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  color: var(--color-success);
  font-weight: 700;
  font-size: 14px;
}

.about-list.donot-list li::before {
  content: '✗';
  position: absolute;
  left: 4px;
  color: #DC2626;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Screen reader only */
.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;
}

/* ---------- Cookie Preferences Modal ---------- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-overlay.show {
  display: flex;
}

.cookie-modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.cookie-modal h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cookie-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.cookie-pref-item:last-child {
  border-bottom: none;
}

.cookie-pref-label {
  font-size: 14px;
  font-weight: 500;
}

.cookie-pref-desc {
  font-size: 12px;
  color: var(--color-text-light);
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #D1D5DB;
  border-radius: 24px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle input:checked + .toggle-slider {
  background: var(--color-primary);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle input:disabled + .toggle-slider {
  opacity: .6;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.cookie-modal-actions .cookie-btn {
  flex: 1;
}
