:root {
  --bg: #ffffff;
  --text: #17212b;
  --muted: #657282;
  --line: #d9e0e7;
  --soft: #f5f8fb;
  --primary: #0f6f7c;
  --primary-dark: #0b525c;
  --accent: #b35c21;
  --card: #ffffff;
  --shadow: 0 14px 38px rgba(22, 38, 52, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

main {
  max-width: 100vw;
  overflow-x: hidden;
}

a {
  color: inherit;
  overflow-wrap: anywhere;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.site-logo {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 14px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  color: var(--primary-dark) !important;
  font-weight: 700;
}

.hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
}

.hero-grid,
.split,
.cta-inner,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 40px;
  align-items: center;
}

.eyebrow,
.panel-label,
.card-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  margin: 22px 0 0;
  color: #334150;
  font-size: 18px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.button.secondary {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #ffffff;
}

.button.text {
  border-color: transparent;
  color: var(--primary-dark);
}

.hero-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-panel ul,
.check-list {
  margin: 0;
  padding-left: 20px;
}

.hero-panel li,
.check-list li {
  margin: 8px 0;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(22, 38, 52, 0.04);
}

.service-card:hover {
  border-color: var(--primary);
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card.is-muted {
  background: #f9fafb;
}

.muted-note {
  margin-top: 14px !important;
  font-size: 13px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow-list li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.flow-list strong,
.flow-list span {
  display: block;
}

.flow-list span {
  margin-top: 8px;
  color: var(--muted);
}

.cta-band {
  background: #edf6f7;
}

.compact-section {
  padding: 36px 0;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.support-links-spaced {
  margin-top: 22px;
}

.support-links a {
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: #f9fbfc;
  color: var(--muted);
}

.footer-title {
  margin-top: 0;
  color: var(--text);
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .cta-inner,
  .footer-grid,
  .card-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .section {
    padding: 54px 0;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 23px;
    line-height: 1.28;
    max-width: 12em;
    word-break: break-all;
  }

  h2 {
    font-size: 22px;
  }

  .lead {
    font-size: 15px;
    max-width: 24em;
  }

  li,
  .service-card,
  .hero-panel {
    max-width: 100%;
    word-break: break-all;
  }

  .hero-panel,
  .service-card,
  .flow-list li {
    padding-right: 30px;
  }

  .header-inner,
  .site-nav,
  .hero-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    gap: 10px;
    padding-bottom: 14px;
  }

  .button {
    width: 100%;
  }
}
