:root {
  --bg: #f5f0ff;
  --bg-soft: #ebe6f8;
  --card: #ffffff;
  --accent: #2e57fa;
  --accent2: #c7f629;
  --text: #17122f;
  --muted: #5c5478;
  --pad: 20px;
  --max: 920px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.layout {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 100vh;
}

.rail-tabs {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 12px;
  background: var(--text);
}

.rail-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.75;
}

.rail-tabs a:hover,
.rail-tabs a:focus {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

main {
  min-width: 0;
}

#hero.full_bleed_overlay {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  margin-bottom: 48px;
}

#hero .hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #5c1a8a 45%, var(--accent2) 100%);
}

#hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

#hero .hero-copy {
  position: relative;
  z-index: 1;
  padding: 48px var(--pad) 40px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

#hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

#hero .tagline {
  margin: 0;
  max-width: 36em;
  font-size: 1.125rem;
  color: #fff;
}

#features {
  padding: 24px 0 56px;
}

#features h2 {
  font-size: 1.75rem;
  margin: 0 0 28px;
}

.zigzag {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.zigzag article {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(23, 18, 47, 0.06);
}

.zigzag article:nth-child(even) {
  margin-left: clamp(0px, 8vw, 64px);
}

.zigzag h3 {
  margin: 0;
  color: var(--accent);
}

#legal {
  padding: 40px 0 64px;
  background: var(--bg-soft);
}

.legal-panels {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .legal-panels {
    grid-template-columns: 1fr 1fr;
  }
}

.legal-panels section {
  background: var(--card);
  padding: 24px;
  border-radius: 16px;
}

.legal-panels h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

footer {
  padding: 32px 0 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .rail-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px 8px;
    z-index: 10;
  }

  body {
    padding-bottom: 72px;
  }
}
