/* --- Variables --- */
:root {
  --color-bg: #fafaf9;
  --color-bg-alt: #fff;
  --color-text: #1c1917;
  --color-text-muted: #57534e;
  --color-border: #e7e5e4;
  --color-accent: #1e3a5f;
  --color-accent-hover: #2d4a6f;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 720px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --radius: 4px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg);
}

/* --- Typography --- */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 var(--space-lg);
  color: var(--color-text);
}

h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--color-text);
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Sections --- */
.section {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-intro {
  margin-bottom: var(--space-md);
}

/* --- Hero --- */
.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  max-width: 38em;
}

.cta-primary {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.cta-primary:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

.hero-trust {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- How it works --- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.steps li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-border);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50%;
}

.steps h3 {
  margin-top: 0;
}

.steps p {
  font-size: 0.95rem;
  margin: 0;
}

/* --- Who this is for --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
}

.card {
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--color-text);
}

/* --- Product categories --- */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-xs);
}

.category-list li {
  padding: var(--space-xs) 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.category-list li::before {
  content: "— ";
  color: var(--color-text-muted);
}

/* --- Why businesses join --- */
.benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.benefits li:last-child {
  margin-bottom: 0;
}

/* --- Form --- */
.intake-form {
  max-width: 32em;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.field-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2357534e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-right: 2.5rem;
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 400;
  cursor: pointer;
}

.checkbox-label input,
.radio-label input {
  width: auto;
  margin: 0;
}

.intake-form .cta-primary {
  margin-top: var(--space-xs);
}

/* --- About --- */
.about p {
  max-width: 38em;
}

/* --- FAQ --- */
.faq-list {
  margin: 0;
}

.faq-list dt {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin: var(--space-lg) 0 var(--space-xs);
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 0 0 0;
  padding: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer-note {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  main {
    padding: var(--space-md);
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .category-list {
    grid-template-columns: 1fr;
  }

  .steps li {
    flex-direction: column;
    gap: var(--space-sm);
  }
}
