:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --primary: #16a34a;
  --primary-dark: #15803d;
  --border: #e5e7eb;
  --green: #16a34a;
  --yellow: #d97706;
  --red: #dc2626;
  --max-width: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-header .logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--text); }
.site-header .logo img { height: 40px; width: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }

/* Sections */
section { padding: 4rem 0; }
section.alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 0.75rem;
}
.section-lead { color: var(--text-muted); margin-bottom: 2rem; max-width: 720px; }

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.92)),
    url('assets/images/hero.jpg') center/cover no-repeat;
}
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 0.25rem; }
.hero .subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 1.5rem; font-style: italic; }
.hero .tagline { font-size: 1.4rem; max-width: 640px; margin: 0 auto 2rem; }

/* Trust strip */
.trust-strip {
  padding: 1.5rem 0;
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-strip li { display: flex; align-items: center; gap: 0.5rem; }
.trust-strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Triage cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.card.green { border-left-color: var(--green); }
.card.yellow { border-left-color: var(--yellow); }
.card.red { border-left-color: var(--red); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1;
}
.card.green .card-icon { background: var(--green); }
.card.yellow .card-icon { background: var(--yellow); }
.card.red .card-icon { background: var(--red); }
.card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.card.green h3 { color: var(--green); }
.card.yellow h3 { color: var(--yellow); }
.card.red h3 { color: var(--red); }
.card p { color: var(--text-muted); }

/* How it works */
.steps { display: grid; gap: 1.5rem; max-width: 760px; }
.step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.step p { color: var(--text-muted); }

/* Builders */
.builders { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 720px) { .builders { grid-template-columns: 1fr 1fr; } }
.builder h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.builder p { color: var(--text-muted); margin-bottom: 0.75rem; }

/* FAQ */
.faq {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq details {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details:hover { border-color: #cbd5e1; }
.faq details[open] {
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.faq summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-radius: 12px;
  transition: color 0.15s;
}
.faq summary:hover { color: var(--primary-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
  border-color: var(--primary);
}
.faq details > *:not(summary) {
  padding: 0 1.5rem;
  color: var(--text-muted);
}
.faq details > *:not(summary):first-of-type { padding-top: 0.25rem; }
.faq details > *:not(summary):last-child { padding-bottom: 1.25rem; }
.faq details p { margin-bottom: 0.75rem; }
.faq details p:last-of-type { margin-bottom: 0; }
.faq details ul { padding-left: 3rem; margin-top: 0.5rem; }
.faq details li { margin-bottom: 0.5rem; }

/* Contact */
.contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.contact-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}
.contact-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* Footer */
.site-footer {
  background: var(--text);
  color: white;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
}
.site-footer a { color: white; text-decoration: underline; }
.site-footer .links { margin-top: 0.5rem; font-size: 0.85rem; opacity: 0.8; }

/* Terms page */
.legal { padding: 3rem 0; }
.legal h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.legal h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.legal p, .legal ul { margin-bottom: 1rem; color: var(--text-muted); }
.legal ul { padding-left: 1.5rem; }
.legal .meta { color: var(--text-muted); font-style: italic; font-size: 0.95rem; }

@media (max-width: 640px) {
  .hero h1 { font-size: 2.25rem; }
  .hero .tagline { font-size: 1.15rem; }
  .section-title { font-size: 1.5rem; }
  section { padding: 3rem 0; }
}
