:root {
  --seb-primary: #dc2626;
  --seb-secondary: #a855f7;
  --seb-accent: #2563eb;
  --seb-text: #111827;
  --seb-muted-text: #4b5563;
  --seb-border: #e5e7eb;
  --seb-panel: #f8f5ff;
  --seb-footer: #111827;
  --seb-bg: #ffffff;
  --seb-gradient: linear-gradient(90deg, rgba(220,38,38,0.88) 0%, rgba(192,38,211,0.82) 52%, rgba(59,130,246,0.78) 100%);
  --seb-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--seb-text);
  background: var(--seb-bg);
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--seb-border);
  backdrop-filter: blur(8px);
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--seb-text);
}
.brand-mark { font-size: 1.15rem; }
.brand-muted { color: #6b7280; }
nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
nav > a, .link-button, .nav-button {
  font-size: 0.95rem;
  font-weight: 600;
}
.inline-form { display: inline; }
.nav-button, .button, button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.8rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-button.subtle, .button.secondary {
  background: #fff;
  border-color: var(--seb-border);
  color: var(--seb-text);
}
.nav-button.primary, .button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--seb-primary), #ef4444 38%, var(--seb-secondary));
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.22);
}
.button.light {
  background: rgba(255,255,255,0.96);
  color: var(--seb-primary);
  border-color: rgba(255,255,255,0.75);
}
.wide-button { width: 100%; }
.left-actions { justify-content: flex-start; }
.compact-actions { margin-top: 0; }

.page-shell { padding: 2rem 0 4rem; }
.page-shell--compact { padding-bottom: 0; }
.messages { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.message {
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.hero-banner {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-image, .hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-image {
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-overlay { background: var(--seb-gradient); }
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 7rem 0 6rem;
}
.hero-content h1 {
  font-size: clamp(3rem, 7vw, 4.8rem);
  line-height: 1.04;
  margin: 0 0 1rem;
  font-weight: 800;
}
.hero-content p {
  width: min(820px, 100%);
  margin: 0 auto;
  font-size: clamp(1.15rem, 2vw, 1.85rem);
  color: rgba(255,255,255,0.92);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.info-section,
.feature-section,
.schedule-section,
.about-section,
.policy-section,
.join-section,
.member-section {
  padding: 5rem 0;
}
.intro-block,
.about-shell,
.policy-shell,
.join-shell,
.member-shell {
  max-width: 1100px;
}
.intro-block {
  text-align: center;
  max-width: 760px;
}
.intro-block h2,
.section-heading h2,
.about-shell h2,
.policy-shell h1,
.policy-shell h2,
.slim-hero h1,
.next-steps-section h2,
.section-intro h2 {
  margin-top: 0;
}
.intro-block h2, .section-heading h2, .about-shell h2, .next-steps-section h2, .section-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.intro-block p, .about-copy p, .policy-shell p, .policy-shell li, .schedule-card p, .muted, .centered-hero-copy p, .step-card p {
  color: var(--seb-muted-text);
  line-height: 1.7;
  font-size: 1.05rem;
}
.centered { text-align: center; }
.centered-hero-copy { text-align: center; }
.centered-hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin: 0;
}
.centered-hero-copy p {
  width: min(780px, 100%);
  margin: 1rem auto 0;
  color: rgba(255,255,255,0.92);
}
.feature-section { padding-top: 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--seb-panel);
  border: 1px solid #ece8f8;
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--seb-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(168, 85, 247, 0.16);
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.08);
  color: var(--seb-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  margin: 0 0 0.8rem;
  font-size: 2rem;
}
.schedule-shell { max-width: 760px; }
.schedule-card {
  border: 2px solid var(--seb-border);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: var(--seb-shadow);
}
.schedule-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f3e8ff;
  color: #7c3aed;
  font-weight: 700;
  padding: 0.55rem 1rem;
}
.schedule-distance { color: var(--seb-muted-text); font-weight: 600; }
.schedule-card h3 { font-size: 2rem; margin: 0 0 1rem; }
.schedule-meta {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
}
.schedule-meta dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}
.schedule-meta dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
  color: var(--seb-text);
}
.about-section { background: #fafafa; }
.about-shell { text-align: center; max-width: 860px; }
.about-highlight { color: var(--seb-text) !important; font-weight: 700; }
.centered-actions { margin-top: 2rem; }

.page-hero {
  color: #fff;
  background: var(--seb-gradient);
}
.slim-hero { padding: 4rem 0; }
.join-hero { padding: 4.75rem 0; }
.member-hero { padding: 3.75rem 0; }

.policy-shell { max-width: 860px; }
.policy-shell h2 {
  font-size: 2rem;
  margin: 2.25rem 0 0.75rem;
}
.policy-shell h3 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.5rem;
}
.policy-shell ul, .policy-shell ol {
  padding-left: 1.4rem;
  color: var(--seb-muted-text);
  line-height: 1.7;
}
.policy-note {
  font-size: 0.95rem !important;
  font-style: italic;
}

.panel {
  border: 1px solid var(--seb-border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--seb-shadow);
  background: #fff;
}
.form-panel, .auth-panel { max-width: 980px; margin: 0 auto; }
.stack-form { display: grid; gap: 1rem; }
.stack-form.narrow { max-width: 420px; }
.grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.tight-grid { margin-top: 0; }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--seb-border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
}
textarea { min-height: 8rem; }
.errorlist {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  color: #b91c1c;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.checkbox-row input { width: auto; margin-top: 0.35rem; }
.section-intro { margin-bottom: 1.5rem; }
.form-block {
  display: grid;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}
.form-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.form-block h3 {
  margin: 0;
  font-size: 1.25rem;
}
.compact-copy { margin-top: -0.35rem; }
.join-shell,
.member-shell {
  display: grid;
  gap: 2rem;
}
.join-panel { max-width: 100%; }
.next-steps-section { text-align: center; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.step-card {
  background: #fff;
  border: 1px solid var(--seb-border);
  border-radius: 18px;
  padding: 1.75rem 1.4rem;
  box-shadow: var(--seb-shadow);
}
.step-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--seb-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.step-number {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem !important;
  font-weight: 700;
  color: #6b7280 !important;
}
.step-card h3 { margin: 0.35rem 0 0.75rem; }
.member-grid { margin-top: 0; }
.detail-list { display: grid; gap: 0.9rem; }
.detail-list dt { font-weight: 700; }
.detail-list dd { margin: 0.2rem 0 0; color: var(--seb-muted-text); }
.metric { font-size: 3rem; font-weight: 800; margin: 0; }

.site-footer {
  background: var(--seb-footer);
  color: rgba(255,255,255,0.88);
  padding-top: 3rem;
}
.footer-primary {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.site-footer h3 {
  margin-top: 0;
  color: #fff;
}
.footer-brand {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.footer-copy { color: rgba(255,255,255,0.74); line-height: 1.7; }
.footer-links-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.footer-secondary {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.6rem 0 2rem;
  text-align: center;
}
.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer-policy-links span { color: rgba(255,255,255,0.36); }
.copyright { color: rgba(255,255,255,0.58); margin: 0; }

@media (max-width: 920px) {
  .footer-primary, .feature-grid, .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-shell { padding: 0.9rem 0; }
  .nav-shell, nav { align-items: flex-start; }
  .nav-shell { flex-direction: column; }
  .hero-banner { min-height: 520px; }
  .hero-content { padding: 6rem 0 4.5rem; }
  .hero-content p, .centered-hero-copy p { font-size: 1.05rem; }
  .two-up { grid-template-columns: 1fr; }
  .footer-policy-links { flex-direction: column; }
  .footer-policy-links span { display: none; }
}
