:root {
  --bg: #F6F4EE;
  --surface: #FFFFFF;
  --primary: #1E4635;
  --primary-dark: #163528;
  --accent: #C9A961;
  --accent-dark: #A88A48;
  --leaf: #4E8C66;
  --text: #1A1A1A;
  --muted: #6B6B6B;
  --border: #E6E2D8;
  --danger: #B23A3A;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-feature-settings: "ss01" on;
  letter-spacing: -0.01em;
}
.tabular { font-variant-numeric: tabular-nums; }

.bg-cream { background: var(--bg); }
.bg-surface { background: var(--surface); }
.bg-primary { background: var(--primary); }
.bg-primary-dark { background: var(--primary-dark); }
.bg-accent { background: var(--accent); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-leaf { color: var(--leaf); }
.text-muted { color: var(--muted); }
.border-light { border-color: var(--border); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: 0.625rem; font-weight: 500; font-size: 0.95rem;
  transition: all 0.15s ease; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #1A1A1A; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 0.95rem 1.75rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; }

.offset-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 1rem;
  overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block; color: inherit; text-decoration: none;
}
.offset-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,26,26,0.07); }
.offset-card .photo {
  aspect-ratio: 4 / 3; background: #EAE7DD; background-size: cover; background-position: center; position: relative;
}

.verified-pill {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem;
  font-size: 0.72rem; font-weight: 600; background: rgba(30,70,53,0.08); color: var(--primary);
  border-radius: 999px; letter-spacing: 0.01em;
}
.verified-pill.gold { background: rgba(201,169,97,0.16); color: var(--accent-dark); }
.verified-pill.leaf { background: rgba(78,140,102,0.12); color: var(--leaf); }

.stat-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.stat-row:last-child { border-bottom: 0; }
.stat-row .k { color: var(--muted); }
.stat-row .v { font-weight: 500; }

.input, .select, .textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 0.625rem;
  padding: 0.7rem 0.9rem; font-size: 0.95rem; color: var(--text); font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,70,53,0.12);
}
.textarea { min-height: 8rem; resize: vertical; }
.label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; }
.help { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }
.divider { height: 1px; background: var(--border); border: 0; }

.shimmer { background: linear-gradient(90deg, #EAE7DD 0%, #F4F1E8 50%, #EAE7DD 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; border-radius: 0.5rem; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.checkmark::before { content: "✓"; display: inline-block; margin-right: 0.3rem; color: var(--leaf); font-weight: 700; }
.stars { color: var(--accent); letter-spacing: 0.05em; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.nav-link { color: var(--text); font-size: 0.92rem; font-weight: 500; padding: 0.5rem 0.85rem; border-radius: 0.5rem; }
.nav-link:hover { background: var(--bg); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(26,26,26,0.5); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 1rem; }
.modal { background: var(--surface); border-radius: 1rem; max-width: 32rem; width: 100%; padding: 1.75rem; }

.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0.625rem; font-size: 0.9rem; z-index: 80; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }

.hero-grid {
  background-image:
    radial-gradient(circle at 18% 20%, rgba(95,168,119,0.14), transparent 42%),
    radial-gradient(circle at 82% 60%, rgba(201,169,97,0.12), transparent 42%);
}

.wizard-step { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.82rem; color: var(--muted); background: transparent; border: 1px solid var(--border); }
.wizard-step.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.wizard-step.done { background: rgba(30,70,53,0.08); color: var(--primary); border-color: rgba(30,70,53,0.2); }

.trust-logos > * { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }

/* Avatars */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: #fff; font-weight: 600; line-height: 1; flex: 0 0 auto; overflow: hidden; vertical-align: middle; }
.seller-byline { display: flex; align-items: center; gap: 0.65rem; }

/* Stat counters */
.stat-counter { text-align: center; }
.stat-counter .num { font-family: 'Fraunces', Georgia, serif; font-size: 2.25rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-counter .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 0.35rem; }

/* Activity ticker */
.ticker { overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 2.5rem; animation: ticker-scroll 38s linear infinite; will-change: transform; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { color: var(--muted); font-size: 0.85rem; }
.ticker-item b { color: var(--text); font-weight: 600; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.seller-card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.18s ease, box-shadow 0.18s ease; color: inherit; text-decoration: none; }
.seller-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,26,26,0.07); }

/* Impact metric chip */
.impact { display: inline-flex; align-items: baseline; gap: 0.35rem; }
.impact .v { font-family: 'Fraunces', Georgia, serif; font-weight: 600; color: var(--leaf); }

/* Certificate */
.cert {
  border: 2px solid var(--accent); border-radius: 0.75rem; padding: 1.5rem; background:
    repeating-linear-gradient(45deg, rgba(201,169,97,0.05) 0 10px, transparent 10px 20px), var(--surface);
  text-align: center;
}
.cert .seal { width: 64px; height: 64px; border-radius: 999px; background: var(--accent); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.4rem; }
