/*
 * ResellBestie marketing site
 * "Teal Trust" design system: Ming brand · Red Damask actions ·
 * Sapling surfaces. 16px body floor, AA contrast, action color reserved
 * for CTAs, touch targets 44px+, soft pillowy radii. Single sans: Archivo.
 */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #fdfbf8;
  --surface: #ffffff;
  --text: #1e252b;
  --text-2: #333e46;
  --text-3: #4a5863;
  --accent: #2d5269;       /* Ming — brand */
  --accent-deep: #1d3544;
  --accent-soft: #eff3f6;
  --action: #d95d45;       /* Red Damask — CTAs */
  --action-deep: #bb4f3a;
  --action-soft: #fcf2f0;
  --border: #dce1e3;
  --shadow: 0 1px 2px rgba(20, 40, 50, 0.05);
  --shadow-cta: none;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 920px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

main { flex: 1; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / nav ---- */

header.site {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand .mark { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.brand .bn span { color: var(--accent-deep); }

nav.site {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav.site a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

nav.site a:hover,
nav.site a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* ---- Hero ---- */

.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
}

.hero p.lead {
  font-size: 20px;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

/* ---- CTAs ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--action);
  color: white;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Cards / features ---- */

.features {
  padding: 56px 0;
}

.features h2 {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.feature h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
}

.feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

/* ---- Long-form content (privacy, terms) ---- */

.content {
  padding: 48px 0 96px;
}

.content h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.content .updated {
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.005em;
}

.content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.content p,
.content li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.content ul, .content ol {
  padding-left: 24px;
  margin: 8px 0 16px;
}

.content li { margin-bottom: 6px; }

.content a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content code {
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 16px;
}

.callout strong { color: var(--accent-deep); }

/* ---- Footer ---- */

footer.site {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: auto;
}

footer.site .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

footer.site a:hover { color: var(--accent-deep); }

footer.site .copyright {
  color: var(--text-3);
  font-size: 14px;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .hero { padding: 40px 0 32px; }
  nav.site a { font-size: 15px; padding: 10px 10px; }
  .container { padding: 0 16px; }
  .features { padding: 40px 0; }
  .feature { padding: 24px 20px; }
}
