/* ============================================
   CartIQ — Brand Stylesheet
   ============================================ */

/* --- Variables --- */
:root {
  --cream: #F8F6F1;
  --cream-dark: #EDE9E0;
  --green: #1B4332;
  --green-light: #2D6A4F;
  --green-muted: #52B788;
  --amber: #D97706;
  --amber-light: #F59E0B;
  --red: #DC2626;
  --ink: #1A1A18;
  --ink-light: #4A4A46;
  --white: #FFFFFF;
  --border: #D4CFC6;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --max-w: 1100px;
  --section-pad: 120px;
}

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

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

a { color: inherit; text-decoration: none; }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
}
.btn-primary:hover { background: var(--green-light); }
.btn-primary:active { transform: scale(0.98); }
.btn-large { padding: 18px 36px; font-size: 16px; border-radius: 10px; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--green);
}
.nav-cta {
  background: var(--green);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--green-light); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 120px 80px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.hero::before {
  content: '';
  position: fixed;
  top: 0; right: 0;
  width: 50vw;
  height: 100vh;
  background: radial-gradient(ellipse at 80% 30%, rgba(82, 183, 136, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 5.5vw, 76px);
  font-weight: 700;
  color: var(--green);
  line-height: 1.08;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-light);
  max-width: 440px;
  margin-bottom: 40px;
}
.hero-actions { margin-bottom: 16px; }
.hero-note {
  font-size: 13px;
  color: var(--ink-light);
}

/* Hero Visual — Cart Preview */
.hero-visual {
  position: relative;
  z-index: 1;
}
.cart-visual {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 40px rgba(27, 67, 50, 0.1), 0 1px 4px rgba(27, 67, 50, 0.06);
  border: 1px solid var(--border);
  position: relative;
}
.cart-visual::before {
  content: '';
  position: absolute;
  top: -24px; right: -24px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, var(--amber-light) 0%, transparent 70%);
  opacity: 0.5;
  border-radius: 50%;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.cart-item:last-of-type { border-bottom: none; }
.item-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.item-dot.green { background: var(--green-muted); }
.item-dot.amber { background: var(--amber); }
.item-dot.red { background: var(--red); }
.item-info { flex: 1; }
.item-name { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.item-tag { display: block; font-size: 11px; color: var(--ink-light); margin-top: 2px; }
.item-tag.sale { color: var(--green-muted); }
.item-price { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.was {
  text-decoration: line-through;
  color: var(--ink-light);
  font-weight: 400;
  font-size: 13px;
  margin-left: 4px;
}
.cart-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}
.cart-budget {
  background: var(--green);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.budget-label { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500; }
.budget-amount { font-size: 22px; font-weight: 700; color: var(--white); font-family: var(--font-display); }
.budget-target { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ============================================
   HOW IT WORKS
   ============================================ */
.howitworks {
  padding: var(--section-pad) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  margin-bottom: 64px;
}
.section-header.centered {
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  color: var(--green);
  line-height: 1.12;
}
.steps {
  display: flex;
  align-items: center;
  gap: 24px;
}
.step { flex: 1; }
.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 20px;
  color: var(--green);
  margin-bottom: 12px;
}
.step p {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.65;
}
.step-connector {
  flex-shrink: 0;
  color: var(--green-muted);
  opacity: 0.4;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: var(--section-pad) 80px;
  background: var(--green);
}
.features .section-header { margin-bottom: 56px; }
.features .eyebrow { color: var(--green-muted); }
.features h2 { color: var(--white); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.feature-card {
  background: rgba(255,255,255,0.06);
  border-radius: 0;
  padding: 36px 32px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}
.feature-card.tall { grid-row: span 2; }
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(82, 183, 136, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--green-muted);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
}

/* ============================================
   DIFFERENT
   ============================================ */
.different {
  padding: var(--section-pad) 80px;
  background: var(--cream-dark);
}
.different-inner { max-width: var(--max-w); margin: 0 auto; }
.different-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 16px;
}
.different-inner > h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  color: var(--green);
  margin-bottom: 56px;
  line-height: 1.15;
}
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.compare-col h4 {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.compare-col.negative h4 { color: var(--ink-light); }
.compare-col.positive h4 { color: var(--green); }
.compare-col ul { list-style: none; }
.compare-col li {
  font-size: 15px;
  line-height: 1.6;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.compare-col.negative li { color: var(--ink-light); }
.compare-col.positive li { color: var(--ink); }
.compare-col li::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: middle;
  flex-shrink: 0;
}
.compare-col.negative li::before { background: var(--red); opacity: 0.6; }
.compare-col.positive li::before { background: var(--green-muted); }

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  padding: var(--section-pad) 80px;
  background: var(--cream);
}
.manifesto blockquote {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-style: italic;
  font-weight: 300;
  color: var(--green);
  line-height: 1.4;
  max-width: 820px;
  margin: 0 auto 64px;
  text-align: center;
}
.stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.4;
  max-width: 140px;
  display: block;
  margin: 0 auto;
}

/* ============================================
   CLOSING
   ============================================ */
.closing {
  padding: 120px 80px;
  background: var(--green);
  text-align: center;
}
.closing-inner { max-width: 600px; margin: 0 auto; }
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}
.closing p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 48px;
}
.closing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.btn-large {
  font-size: 17px;
  padding: 20px 48px;
  background: var(--white);
  color: var(--green);
}
.btn-large:hover { background: var(--cream); }
.closing-note {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 64px 80px 40px;
  background: var(--cream-dark);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  color: var(--ink-light);
  max-width: 260px;
  line-height: 1.6;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--green); }
.footer-col span {
  display: block;
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.5;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 32px 64px;
    gap: 48px;
  }
  .hero-headline { font-size: 44px; }
  .howitworks, .features, .different, .manifesto, .closing, .footer {
    padding-left: 32px;
    padding-right: 32px;
  }
  .features { padding-top: 80px; padding-bottom: 80px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.tall { grid-row: span 1; }
  .steps { flex-direction: column; gap: 0; }
  .step-connector { transform: rotate(90deg); }
  .comparison { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 32px; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .howitworks, .features, .different, .manifesto, .closing { padding-top: 80px; padding-bottom: 80px; }
  .cart-visual { padding: 20px; }
}