/* ============================================
   Rare Haul Design System
   "Turn old cards into new value."
   ============================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
  /* Primary — Bold red (energy, excitement) */
  --primary: #E63946;
  --primary-dk: #C1121F;
  --primary-lt: #FFB4A2;

  /* Secondary — Trustworthy blue (parent-friendly) */
  --secondary: #457B9D;
  --secondary-dk: #1D3557;
  --secondary-lt: #A8DADC;

  /* Accent — Warm gold (treasure/vault) */
  --accent: #F4A261;
  --accent-dk: #E76F51;
  --accent-lt: #FADCB0;

  /* Backgrounds */
  --bg: #FFFFFF;
  --surface: #F8F9FA;
  --surface-alt: #EEF0F2;
  --dark-bg: #1D3557;
  --dark-surface: #264573;

  /* Text */
  --heading: #1D3557;
  --body: #495057;
  --muted: #6C757D;
  --white: #FFFFFF;
  --light-text: #A8DADC;

  /* Borders */
  --border: #DEE2E6;
  --border-light: #E9ECEF;

  /* Status */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  margin-bottom: 1rem;
  color: var(--body);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--primary-dk); }

.text-muted { color: var(--muted); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-dark {
  background: var(--dark-bg);
  color: var(--white);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }
.section-dark p { color: var(--light-text); }

.section-alt {
  background: var(--surface);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius-full);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dk);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--secondary-dk);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--heading);
}
.btn-accent:hover {
  background: var(--accent-dk);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--heading);
}
.btn-white:hover {
  background: var(--surface);
  color: var(--heading);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* --- Cards --- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: all var(--duration) var(--ease);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-lt);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-accent .card-icon {
  background: var(--accent-lt);
  color: var(--accent-dk);
}

.card-secondary .card-icon {
  background: var(--secondary-lt);
  color: var(--secondary);
}

/* --- Badge / Tag --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-primary {
  background: var(--primary-lt);
  color: var(--primary-dk);
}

.badge-accent {
  background: var(--accent-lt);
  color: var(--accent-dk);
}

.badge-success {
  background: #D1FAE5;
  color: #065F46;
}

/* --- Pill / Stat --- */
.stat {
  text-align: center;
}
.stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--heading);
  font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--heading);
  background: var(--bg);
  transition: border-color var(--duration) var(--ease);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lt);
}

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

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--heading);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--duration) var(--ease);
}
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--header-height) + clamp(3rem, 8vw, 5rem));
  padding-bottom: clamp(3rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-badge {
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 4/3;
}

/* --- Steps / How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h4 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- Testimonial --- */
.testimonial {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--heading);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  color: var(--heading);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Footer --- */
.footer {
  background: var(--dark-bg);
  color: var(--light-text);
  padding: clamp(3rem, 6vw, 4rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand span { color: var(--primary); }

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: var(--light-text);
  font-size: 0.9rem;
  transition: color var(--duration) var(--ease);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--dark-surface);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
  max-width: 500px;
}

/* --- Product Card --- */
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-info {
  padding: 1.25rem;
}

.product-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.product-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.product-price .was {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  margin-left: 0.5rem;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  color: var(--body);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .nav-links,
  .nav-cta { display: none; }
  .menu-toggle { display: block; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-cta.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(var(--header-height) + 200px);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 0 1.5rem 1.5rem;
    gap: 0.75rem;
  }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .btn-lg { width: 100%; }
  .hero-actions { flex-direction: column; }
}

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-auto { margin-top: auto; }
.pt-header { padding-top: var(--header-height); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
