/* ============================================
   Card Fulfillment System — Public marketing site
   Design tokens + page styles. Self-contained;
   does not depend on main.css.
   ============================================ */

:root {
  /* ---------- Color: brand ---------- */
  --primary:        #2424eb;
  --primary-hover:  #1a1ab8;
  --primary-light:  #eef0ff;
  --primary-ink:    #ffffff;

  --accent:         #C2562B;
  --accent-hover:   #A14620;
  --accent-light:   #FBEFE7;

  /* ---------- Color: semantic ---------- */
  --success:    #10B981;
  --success-bg: #D1FAE5;
  --success-ink:#065F46;

  --warning:    #F59E0B;
  --warning-bg: #FEF3C7;
  --warning-ink:#92400E;

  --danger:     #DC2626;
  --danger-bg:  #FEE2E2;
  --danger-ink: #991B1B;

  --info:       #3B82F6;
  --info-bg:    #DBEAFE;
  --info-ink:   #1E40AF;

  /* ---------- Color: neutrals ---------- */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* ---------- Color: surfaces ---------- */
  --bg-page:       #ffffff;
  --bg-alt:        #f6f6f8;
  --bg-dark:       #0f172a;
  --surface:       #ffffff;
  --border:        var(--slate-200);
  --border-strong: var(--slate-300);

  /* ---------- Color: foreground ---------- */
  --fg-1: var(--slate-900);
  --fg-2: var(--slate-700);
  --fg-3: var(--slate-500);
  --fg-4: var(--slate-400);
  --fg-on-dark: #ffffff;

  /* ---------- Type ---------- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Monaco', 'Courier New', monospace;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    800;

  --fs-h1:      3.5rem;
  --lh-h1:      1.05;
  --fs-h2:      2.25rem;
  --lh-h2:      1.15;
  --fs-h3:      1.5rem;
  --lh-h3:      1.3;
  --fs-h4:      1.125rem;
  --lh-h4:      1.4;
  --fs-body:    1rem;
  --lh-body:    1.6;
  --fs-small:   0.875rem;
  --lh-small:   1.5;
  --fs-caption: 0.75rem;
  --lh-caption: 1.4;

  --track-tight:  -0.025em;
  --track-normal: 0;
  --track-wide:   0.05em;

  /* ---------- Spacing ---------- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-8:  3rem;
  --space-10: 4rem;
  --space-12: 6rem;

  --section-py-mobile:  4rem;
  --section-py-desktop: 6rem;
  --container-max:      1200px;
  --container-pad:      1.5rem;

  /* ---------- Radii ---------- */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-pill: 9999px;

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0,0,0,0.05);
  --shadow-primary: 0 4px 6px -1px rgba(36, 36, 235, 0.20);

  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:  150ms;
  --duration:       200ms;
  --duration-slow:  300ms;
  --transition:     all var(--duration) var(--ease);

  --z-nav:   50;
  --z-modal: 200;
}

@media (max-width: 768px) {
  :root {
    --fs-h1:   2.25rem;
    --lh-h1:   1.1;
    --fs-h2:   1.75rem;
    --lh-h2:   1.2;
    --fs-h3:   1.25rem;
    --lh-h3:   1.35;
    --fs-h4:   1rem;
    --lh-h4:   1.45;
    --fs-body: 1rem;
    --lh-body: 1.6;
  }
}

/* ============================================
   Resets + base
   ============================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-2);
  background: var(--bg-page);
}
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { text-decoration: underline; }
p { margin: 0; color: var(--fg-2); }

h1, .h1 {
  font-family: var(--font-sans);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--track-tight);
  font-weight: var(--weight-black);
  color: var(--fg-1);
  margin: 0;
}
h2, .h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--track-tight);
  font-weight: var(--weight-bold);
  color: var(--fg-1);
  margin: 0;
}
h3, .h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--weight-semibold);
  color: var(--fg-1);
  margin: 0;
}
h4, .h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--weight-semibold);
  color: var(--fg-1);
  margin: 0;
}
small, .small {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}
.caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--fg-3);
}
code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ============ Container ============ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-narrow { max-width: 800px; }

/* ============ Eyebrow ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  border-radius: var(--radius-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--primary-hover); transform: scale(0.98); }
.btn-primary:active { transform: scale(0.95); }
.btn-outline {
  background: #fff; color: var(--fg-1);
  border-color: var(--slate-300);
}
.btn-outline:hover { background: var(--slate-50); }
.btn-text {
  background: transparent; color: var(--fg-1); padding: 0 12px;
  border: none; font-weight: 600;
}
.btn-text:hover { color: var(--primary); background: var(--slate-50); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* ============ Sticky nav ============ */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 64px;
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg-1); font-weight: 800; font-size: 15px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand i { color: var(--primary); font-size: 19px; }
.nav-links {
  flex: 1;
  display: flex; gap: 4px; justify-content: center;
}
.nav-links a {
  padding: 8px 14px; font-size: 14px; font-weight: 500;
  color: var(--fg-2); border-radius: 6px;
}
.nav-links a:hover { background: var(--slate-50); color: var(--fg-1); text-decoration: none; }
.nav-links a.active { color: var(--primary); background: var(--primary-light); }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--fg-1); padding: 8px;
}
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px var(--container-pad) 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.nav-mobile a {
  padding: 10px 12px; color: var(--fg-1); font-weight: 500; font-size: 15px;
  border-radius: 6px;
}
.nav-mobile a:hover { background: var(--slate-50); text-decoration: none; }
.nav-mobile-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* ============ Hero ============ */
.hero {
  padding: 88px 0 72px;
  background: radial-gradient(120% 80% at 80% 0%, rgba(36,36,235,0.06) 0%, transparent 60%),
              linear-gradient(180deg, #fff 0%, #fafbff 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
}
.hero-text h1 { margin-bottom: 18px; }
.hero-text .lead {
  font-size: 19px; line-height: 1.55; color: var(--fg-3);
  max-width: 560px;
}
.hero-ctas {
  display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap;
}
.hero-points {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 32px;
  font-size: 14px; color: var(--fg-2);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points i { color: var(--success); }

.hero-media {
  position: relative;
  overflow: visible;
}
.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 1195;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--bg-alt);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
.hero-badge {
  position: absolute;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: 14px;
  color: var(--fg-1);
  white-space: nowrap;
}
.hero-badge i {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  flex-shrink: 0;
}
.hero-badge-cashback { top: 18px; left: -18px; transform: rotate(-3deg); }
.hero-badge-cashback i { background: var(--accent-light); color: var(--accent); }
.hero-badge-ship { bottom: 22px; right: -16px; transform: rotate(2deg); }
.hero-badge-ship i { background: var(--success-bg); color: var(--success); }

/* ============ Sections ============ */
.section { padding: var(--section-py-desktop) 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.section-head .caption { display: inline-block; margin-bottom: 12px; color: var(--primary); }
.section-head h2 { margin-bottom: 12px; }
.section-sub { font-size: 17px; color: var(--fg-3); line-height: 1.55; }

/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
.service {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.service:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-body { padding: 28px 24px; }
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}
.service:nth-child(2) .service-icon { background: var(--accent-light); color: var(--accent); }
.service:nth-child(3) .service-icon { background: var(--success-bg); color: var(--success); }
.service:nth-child(4) .service-icon { background: #FEF3C7; color: var(--warning-ink); }
.service h3 { font-size: 17px; margin-bottom: 8px; }
.service p { font-size: 14px; color: var(--fg-3); line-height: 1.55; }

/* ============ How it works ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  align-items: start;
}
.steps::before {
  content: ""; position: absolute;
  top: 28px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--accent), var(--accent-light));
  z-index: 0;
}
.step {
  position: relative; z-index: 1;
  padding: 0 16px;
  text-align: center;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff; color: var(--primary);
  border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 700;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 6px #fff;
}
.step:nth-child(3) .step-num { color: var(--accent); border-color: var(--accent); }
.step:nth-child(4) .step-num { color: var(--accent); border-color: var(--accent); }
.section-alt .step-num { box-shadow: 0 0 0 6px var(--bg-alt); }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--fg-3); line-height: 1.55; }

/* ============ Card types ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.card-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-tile-thumb {
  aspect-ratio: 5/4;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(135deg, #e6e8f7 0%, #cdd1ec 100%);
  color: var(--primary);
}
.card-tile-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.card-tile-thumb img:not([src]),
.card-tile-thumb img[src=""] {
  display: none;
}
.card-tile-thumb .thumb-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.card-tile-thumb img[src]:not([src=""]) + .thumb-fallback { display: none; }

.card-tile:nth-child(6n+2) .card-tile-thumb { background: linear-gradient(135deg, #f4ddd0 0%, #e7c4b1 100%); color: var(--accent); }
.card-tile:nth-child(6n+3) .card-tile-thumb { background: linear-gradient(135deg, #e6f0ea 0%, #c9e0d3 100%); color: #0f5b3e; }
.card-tile:nth-child(6n+4) .card-tile-thumb { background: linear-gradient(135deg, #fff1d6 0%, #ffd9a3 100%); color: #92400E; }
.card-tile:nth-child(6n+5) .card-tile-thumb { background: linear-gradient(135deg, #f0e0f7 0%, #d9bce8 100%); color: #6b21a8; }
.card-tile:nth-child(6n+6) .card-tile-thumb { background: linear-gradient(135deg, #ddeefc 0%, #b6d3ee 100%); color: #1e40af; }

.card-tile-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--border);
}
.card-tile-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-tile h3 { font-size: 16px; margin-bottom: 4px; }
.card-tile-dim { font-size: 13px; color: var(--fg-3); font-family: var(--font-mono); margin-bottom: 12px; }
.card-tile-price {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--fg-2);
}
.card-tile-price strong { color: var(--fg-1); font-weight: 700; font-size: 15px; }
.cards-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--fg-3);
  background: var(--slate-50);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* ============ Pricing ============ */
.pricing-grid {
  display: grid;
  /* auto-fit so 1, 2, 3, 4, 5+ tiers all flow naturally — admin defines tier count */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.ptier {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: var(--transition);
}
.ptier:hover { box-shadow: var(--shadow-md); }
.ptier-feature {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.ptier-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ptier h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--fg-3); font-weight: 600; margin-bottom: 12px;
}
.ptier-volume {
  font-size: 15px; color: var(--fg-2); margin-bottom: 8px;
}
.ptier-volume strong { color: var(--fg-1); font-weight: 700; }
.ptier-percent {
  font-size: 56px; font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em; line-height: 1;
  margin-bottom: 4px;
}
.ptier-percent small { font-size: 16px; color: var(--fg-3); font-weight: 500; letter-spacing: 0; }
.ptier-sub { color: var(--fg-3); font-size: 14px; margin: 8px 0 24px; }
.ptier ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.ptier li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--fg-2);
}
.ptier li i { color: var(--success); width: 16px; }

/* ============ FAQ ============ */
.faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0;
  padding: 20px 24px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--fg-1); cursor: pointer; text-align: left;
}
.faq-q i { color: var(--fg-4); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); color: var(--primary); }
.faq-a {
  padding: 0 24px 20px;
  font-size: 14px; color: var(--fg-3); line-height: 1.7;
  max-width: 720px;
}
.faq-item:not(.open) .faq-a { display: none; }

/* ============ Contact ============ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: start;
}
.contact-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row > i {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 14px; flex-shrink: 0;
}
.contact-row .contact-label {
  display: block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--fg-3);
  margin-bottom: 2px;
}
.contact-row .contact-value {
  font-size: 15px; color: var(--fg-1); font-weight: 500;
  word-break: break-word;
}
.contact-row a { color: var(--fg-1); }
.contact-row a:hover { color: var(--primary); }

.contact-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1a1ab8 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; gap: 16px;
}
.contact-cta h3 { color: #fff; font-size: 22px; }
.contact-cta p { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.6; }
.contact-cta .btn { align-self: flex-start; }
.contact-cta .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.contact-cta .btn-primary:hover { background: var(--slate-50); }
.contact-cta a { color: #fff; text-decoration: underline; }

/* ============ Footer ============ */
.footer {
  background: var(--bg-dark); color: var(--slate-300);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1e293b;
}
.brand-light { color: #fff; }
.brand-light i { color: #818CF8; }
.footer-tag {
  color: var(--slate-400); font-size: 14px;
  margin-top: 14px;
  max-width: 280px; line-height: 1.55;
}
.footer-copy { color: var(--slate-500); font-size: 13px; margin-top: 14px; }
.footer h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--slate-400); font-weight: 600; margin-bottom: 14px;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--slate-300); font-size: 14px; }
.footer ul a:hover { color: #fff; text-decoration: none; }
.footer .footer-contact-line {
  font-size: 13px; color: var(--slate-400); line-height: 1.7;
}
.footer .footer-contact-line a { color: var(--slate-300); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 13px; color: var(--slate-500);
  flex-wrap: wrap; gap: 12px;
}
.footer-legal-links { display: flex; gap: 18px; }
.footer-legal-links a { color: var(--slate-400); font-size: 13px; }

/* ============================================
   Auth pages (login / register)
   Uses two-column layout on desktop, stacks on mobile.
   ============================================ */

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
}

/* Minimal top nav with brand only */
.auth-mini-nav {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.auth-mini-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.auth-mini-nav .back-link {
  font-size: 14px; font-weight: 500; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.auth-mini-nav .back-link:hover { color: var(--primary); text-decoration: none; }

/* Two-column main: form + value-prop panel */
.auth-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.auth-form-col {
  display: flex; align-items: center; justify-content: center;
  padding: 56px var(--container-pad);
  background: var(--bg-page);
}
.auth-card {
  width: 100%; max-width: 440px;
  background: #fff;
}
.auth-card-header {
  margin-bottom: 28px;
}
.auth-card-header h1 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.auth-card-header p {
  font-size: 15px; color: var(--fg-3);
}

/* Value-prop side panel */
.auth-side {
  background: linear-gradient(135deg, var(--primary) 0%, #1a1ab8 100%);
  color: #fff;
  padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, rgba(255,255,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.auth-side-inner { position: relative; max-width: 460px; }
.auth-side .auth-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14); color: #fff;
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  margin-bottom: 24px;
}
.auth-side h2 {
  color: #fff;
  font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.auth-side p.auth-side-lead {
  color: rgba(255,255,255,0.85);
  font-size: 16px; line-height: 1.55;
  margin-bottom: 32px;
}
.auth-side ul.auth-benefits {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 36px;
}
.auth-side .auth-benefit {
  display: flex; gap: 14px; align-items: flex-start;
}
.auth-side .auth-benefit-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15);
  color: #fff; font-size: 14px;
}
.auth-side .auth-benefit-text {
  color: rgba(255,255,255,0.92);
  font-size: 14px; line-height: 1.5;
}
.auth-side .auth-benefit-text strong { color: #fff; font-weight: 700; }
.auth-side-footnote {
  font-size: 13px; color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
}

/* Form fields scoped under .auth-shell to avoid clashing with admin .form-control */
.auth-shell .field { margin-bottom: 18px; }
.auth-shell .field-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--fg-1);
  margin-bottom: 6px;
}
.auth-shell .field-label.required::after {
  content: ' *';
  color: var(--danger);
}
.auth-shell .field-input {
  width: 100%; height: 44px;
  padding: 0 14px;
  font-family: var(--font-sans); font-size: 14px;
  color: var(--fg-1);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.auth-shell .field-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 36, 235, 0.12);
}
.auth-shell .field-input.has-error {
  border-color: var(--danger);
}
.auth-shell .field-input.has-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.auth-shell .field-help {
  font-size: 12px; color: var(--fg-3);
  margin-top: 6px;
}
.auth-shell .field-error {
  font-size: 12px; color: var(--danger);
  margin-top: 6px;
  display: flex; align-items: center; gap: 6px;
}

/* Checkbox field (Terms agreement etc.) */
.auth-shell .field-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.5; color: var(--fg-2);
  margin: 8px 0 18px;
}
.auth-shell .field-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary);
}
.auth-shell .field-checkbox a { color: var(--primary); font-weight: 600; }

/* Alert banners (flash messages) */
.auth-shell .auth-alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
}
.auth-shell .auth-alert i { flex-shrink: 0; margin-top: 2px; }
.auth-shell .auth-alert-error {
  background: var(--danger-bg); color: var(--danger-ink);
  border: 1px solid #FECACA;
}
.auth-shell .auth-alert-success {
  background: var(--success-bg); color: var(--success-ink);
  border: 1px solid #A7F3D0;
}

/* Bottom legal footer (small, dark) */
.auth-mini-footer {
  background: var(--bg-dark); color: var(--slate-400);
  padding: 18px 0;
}
.auth-mini-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  flex-wrap: wrap; gap: 12px;
}
.auth-mini-footer-inner a { color: var(--slate-300); }
.auth-mini-footer-inner a:hover { color: #fff; text-decoration: none; }
.auth-mini-footer .legal-links { display: flex; gap: 18px; }

.auth-card-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--fg-3);
  text-align: center;
}
.auth-card-footer a { color: var(--primary); font-weight: 600; }

/* Auth responsive: collapse value-prop on smaller screens */
@media (max-width: 1024px) {
  .auth-main { grid-template-columns: 1fr; }
  .auth-side {
    padding: 40px var(--container-pad);
    order: 2;
  }
  .auth-side h2 { font-size: 24px; }
  .auth-form-col { order: 1; padding: 40px var(--container-pad); }
}
@media (max-width: 768px) {
  .auth-mini-nav-inner { height: 56px; }
  .auth-form-col { padding: 28px var(--container-pad); }
  .auth-side { padding: 32px var(--container-pad); }
  .auth-mini-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============ Legal pages (terms / privacy / refund) ============ */
.legal-hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.legal-hero .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg-3); font-size: 14px; font-weight: 500;
  margin-bottom: 16px;
}
.legal-hero .back-link:hover { color: var(--primary); text-decoration: none; }
.legal-hero h1 { margin-bottom: 12px; }
.legal-hero .legal-meta { color: var(--fg-3); font-size: 14px; }

.legal-body { padding: 48px 0 64px; }
.legal-body section { margin-bottom: 36px; }
.legal-body h2 {
  font-size: 22px; margin-bottom: 14px;
  color: var(--fg-1);
  display: flex; align-items: baseline; gap: 12px;
}
.legal-body h2 .legal-num {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  letter-spacing: 0;
}
.legal-body h3 { font-size: 16px; margin: 20px 0 8px; color: var(--fg-1); }
.legal-body p, .legal-body li {
  font-size: 15px; color: var(--fg-2);
  line-height: 1.7;
}
.legal-body p { margin-bottom: 12px; }
.legal-body ul { padding-left: 22px; list-style: disc; margin-bottom: 12px; }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--fg-1); font-weight: 600; }
.legal-body code {
  background: var(--slate-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--accent);
}
.legal-toc {
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.legal-toc h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--fg-3); font-weight: 600; margin-bottom: 12px;
}
.legal-toc ol {
  list-style: none; padding: 0; margin: 0;
  columns: 2; column-gap: 32px;
}
.legal-toc li {
  font-size: 14px;
  margin-bottom: 6px;
  break-inside: avoid;
}
.legal-toc a { color: var(--fg-2); }
.legal-toc a:hover { color: var(--primary); }
.legal-footer-note {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--accent-hover);
  margin-top: 32px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 600px; margin: 0 auto; }
  .hero-badge-cashback { left: 8px; }
  .hero-badge-ship { right: 8px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .steps::before { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .ptier-feature { transform: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-mobile { display: flex; }
  .nav-mobile[hidden] { display: none; }
  .section { padding: var(--section-py-mobile) 0; }
  .hero { padding: 56px 0 40px; }
  .hero-text .lead { font-size: 17px; }
  .hero-badge { font-size: 12px; padding: 8px 12px; }
  .hero-badge i { width: 24px; height: 24px; font-size: 11px; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .legal-body h2 { flex-direction: column; gap: 6px; }
  .legal-toc ol { columns: 1; }
}
