/* ---------- Tokens & reset ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f5f2;
  --color-text: #15171c;
  --color-text-muted: #52555e;
  --color-border: #e2e1dc;
  --color-accent: #9c2f2b;
  --color-accent-dark: #7c2521;
  --color-accent-tint: #f7ebe9;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1120px;
  --container-narrow: 760px;
  --radius: 8px;
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 700; line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: 2.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.9rem; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; }
a { color: var(--color-accent); }
a:hover { color: var(--color-accent-dark); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.section-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4.5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-intro {
  max-width: 640px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
}

.nav-logo {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--color-text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a:hover { color: var(--color-accent); }

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn-primary:disabled { background: var(--color-text-muted); cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 4rem; }
.hero-wrap {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.hero-trust {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

/* ---------- Cards & grids ---------- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.signal-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}
.signal-list li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}
.signal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.card-link {
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
}

.own-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-card {
  border-top: 2px solid var(--color-accent);
  padding-top: 1rem;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 3rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.step {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.step p { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 0; }

.principles-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 2rem;
}
.principles-list li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}
.principles-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- Experience / evidence ---------- */
.proof-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 2rem;
}
.proof-list li {
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.96rem;
}
.proof-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.case-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--color-bg);
}
/* Center a trailing unpaired card instead of leaving it stranded in
   the first column (adapts automatically as cards are added/removed). */
.case-grid > .case-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 0.75rem);
  margin: 0 auto;
}
.case-card p { color: var(--color-text-muted); font-size: 0.94rem; margin-bottom: 0; }
.placeholder {
  font-style: italic;
  color: var(--color-text-muted);
  opacity: 0.8;
}

/* ---------- Fit checklists ---------- */
.fit-check-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.checklist li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.65rem;
  font-size: 0.96rem;
}
.checklist-positive li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.checklist-negative li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
  font-weight: 700;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-accent-tint);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner .section-wrap { max-width: var(--container-narrow); }
.cta-banner p { color: var(--color-text-muted); }
.cta-note { font-size: 0.9rem; margin-top: 1.25rem; margin-bottom: 0; }

/* ---------- Contact form ---------- */
.contact-form { margin-top: 2rem; }
.botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.form-field-wide { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.req { color: var(--color-accent); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--color-text);
  background: var(--color-bg);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.form-status {
  margin-top: 1rem;
  font-size: 0.94rem;
  min-height: 1.4em;
}
.form-status.pending { color: var(--color-text-muted); }
.form-status.success { color: #256b3f; }
.form-status.error { color: var(--color-accent); }
.contact-fallback {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ---------- About page ---------- */
.page-header { padding: 4rem 0 1rem; text-align: center; }
.about-copy {
  max-width: var(--container-narrow);
}
.about-copy p { font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  margin-top: 2rem;
}
.footer-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.footer-brand { font-weight: 700; margin-bottom: 1rem; }
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.footer-nav a { color: var(--color-text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--color-accent); }
.footer-contact { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-copyright { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 0; }

/* ---------- Mobile nav state ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }
  .nav-cta { width: 100%; text-align: center; }
}

/* ---------- Tablet grid tier (avoids cramped desktop columns between
   the nav breakpoint at 880px and the full collapse at 760px) ---------- */
@media (max-width: 900px) {
  .own-grid,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .proof-list,
  .principles-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive grid collapse ---------- */
@media (max-width: 760px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  .fit-grid,
  .own-grid,
  .value-grid,
  .case-grid,
  .fit-check-wrap,
  .form-grid,
  .steps,
  .proof-list,
  .principles-list {
    grid-template-columns: 1fr;
  }
  .case-grid > .case-card:last-child:nth-child(odd) {
    max-width: none;
    margin: 0;
  }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
}
