@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f3edff;
  --surface: #ffffff;
  --text: #23163a;
  --muted: #5f4b86;
  --primary: #4b1f86;
  --primary-dark: #35145f;
  --accent: #ffd84d;
  --border: #d8c7ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

.top-bar {
  background: #23163a;
  color: var(--accent);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.35rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, #f3edff 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap, .footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}

.main-nav { display: flex; gap: 1rem; align-items: center; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 12px;
  padding: 0.72rem 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  letter-spacing: 0.03em;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { border-color: var(--border); background: var(--accent); color: var(--text); font-weight: 700; }

main section { padding: 3.5rem 0; }

.hero-grid, .grid-2, .grid-3, .grid-4, .grid-5 {
  display: grid;
  gap: 1rem;
}
.hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card, .panel, details, .cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 25px -22px #23163a;
}
.card, .panel { padding: 1.1rem; }

h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 0.6rem; }
h2 { margin: 0 0 0.6rem; line-height: 1.2; }
.lead, .muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }

.trust-strip, .alt { background: #ece4ff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logo-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.logo-pill, .chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
}
label { font-weight: 600; font-size: 0.93rem; }
small { color: var(--muted); }

.numbered { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.8rem; }
.numbered li { padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.numbered li::before { counter-increment: step; content: counter(step) ". "; font-weight: 700; color: var(--accent); }

.cta-band {
  padding: 2rem 1.25rem;
  text-align: center;
  background: linear-gradient(135deg, #ece4ff, #ddd0ff);
}

.site-footer { background: #ece4ff; border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-grid { align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.footer-links a { color: var(--muted); text-decoration: none; }

form { display: grid; gap: 0.8rem; }
input, select, textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #c9b8f0;
  border-radius: 10px;
  font: inherit;
}
label { font-weight: 600; font-size: 0.93rem; }
small { color: var(--muted); }

.resource-search { margin: 1rem 0; }
.resource-card[hidden] { display: none; }

@media (max-width: 900px) {
  .mobile-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 4%;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav.open { display: flex; }
  .desktop-only { display: none; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}
