:root {
  --primary: #1a5276;
  --primary-dark: #0e3654;
  --text: #243447;
  --text-light: #3d4d5c;
  --white: #fff;
  --off-white: #f7fafc;
  --left-pane-bg: #eceff2;
  --right-pane-bg: #fff;
  --border: #d5dde5;
  --radius: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --max-width: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}

body.subpage-body {
  padding-top: 4.8rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.55rem 1rem;
  z-index: 2000;
}

.skip-link:focus {
  top: 0;
}

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

.subpage-body main {
  position: relative;
  overflow-x: clip;
  background: var(--white);
}

body.subpage-body .split-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1500;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.split-header-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 4.8rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  padding-top: 0.2rem;
  contain: layout style;
}

.split-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-brand-right {
  display: none;
}

.brand-word {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  text-decoration: none;
}

.menu-toggle {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
  z-index: 1800;
}

.menu-toggle span {
  width: 1.15rem;
  height: 2px;
  background: var(--primary-dark);
}

.menu-panel {
  position: absolute;
  top: 100%;
  right: 1.25rem;
  width: min(320px, calc(100vw - 2.5rem));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  z-index: 1400;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(8, 20, 30, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 1100;
}

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a5276 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
  contain: layout style;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--white);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
  max-width: 700px;
  min-height: calc(1.45em * 4);
  margin: 0 auto 1.5rem;
  color: #eef4f9;
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--primary-dark);
}

.section-subtitle {
  color: var(--text-light);
  margin: 0 0 1.5rem;
}

.thank-you {
  padding: 3rem 0;
  text-align: center;
}

.thank-you .container {
  max-width: 650px;
}

.thank-you h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
  color: #1a5276;
}

.thank-you p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.thank-you-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.features {
  padding: 3rem 0;
}

.features.features-alt {
  background: var(--off-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: #1a5276;
}

.feature-card p {
  color: var(--text-light);
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-tertiary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

@media (min-width: 769px) {
  body.subpage-body {
    padding-top: 5.25rem;
  }

  body.subpage-body .split-header {
    background: linear-gradient(
      to right,
      var(--left-pane-bg) 0%,
      var(--left-pane-bg) 50%,
      var(--right-pane-bg) 50%,
      var(--right-pane-bg) 100%
    );
  }

  .split-header-grid {
    grid-template-columns: 1fr 1fr;
    min-height: 5.25rem;
    padding-top: 0;
  }

  .split-brand-right {
    display: flex;
  }

  .brand-word {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .menu-toggle {
    top: 1.05rem;
    right: 1.2rem;
    width: 2.9rem;
    height: 2.9rem;
  }

  .section,
  .features,
  .thank-you {
    padding: 5rem 0;
  }
}

@media (max-width: 991px) and (min-width: 769px) {
  .split-header-grid {
    min-height: 4.6rem;
  }

  .brand-word {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
}
