:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #1c2430;
  --muted: #4f5d75;
  --line: #dbe2ea;
  --brand: #0b63ce;
  --brand-dark: #094d9f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

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

.site-nav a {
  color: var(--text);
  font-weight: 500;
}

.site-nav a.active {
  color: var(--brand);
}

.portal-btn {
  border: 1px solid var(--brand);
  border-radius: 0.55rem;
  padding: 0.5rem 0.8rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.45rem;
  padding: 0.4rem 0.7rem;
}

.hero {
  padding: 4rem 0 2.5rem;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

h3 {
  font-size: 1.06rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  color: var(--muted);
  max-width: 64ch;
  font-size: 1.06rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-block;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  font-weight: 600;
  padding: 0.67rem 1.05rem;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.features {
  padding: 1.2rem 0 3.5rem;
}

.grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--panel);
  padding: 1rem;
}

.content-page {
  padding: 2.5rem 0 3.5rem;
}

.details-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.stacked {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.stacked article {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.contact-layout {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(280px, 2fr);
  gap: 0.9rem;
}

.portal-cta {
  margin-top: 0.5rem;
}

.field {
  margin-bottom: 0.8rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b8c4d3;
  border-radius: 0.45rem;
  padding: 0.6rem 0.65rem;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status-text {
  margin-top: 0.75rem;
  font-size: 0.94rem;
  color: var(--muted);
}

.status-text.error {
  color: #b42318;
}

.status-text.success {
  color: #067647;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
}

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

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 4.25rem;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem 1rem;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }
}
