:root {
  --navy: #0b1f5b;
  --deep: #06152f;
  --body: #1d3761;
  --muted: #516b91;
  --line: #bfd8f5;
  --soft-line: #dcebfb;
  --blue: #0ea5e9;
  --blue-deep: #0284c7;
  --amber: #f59e0b;
  --paper: #f7fbff;
  --white: #ffffff;
  --ink: #06152f;
  --shadow: 0 24px 80px rgba(11, 31, 91, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  background:
    radial-gradient(circle at 90% 8%, rgba(14, 165, 233, 0.17), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 58%, #eaf5ff 100%);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 28px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 56px);
  overflow: hidden;
  border: 1px solid rgba(191, 216, 245, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 4vw, 56px);
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  width: min(302px, 64vw);
  height: auto;
  display: block;
}

.brand-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  min-height: calc(100svh - 180px);
  padding: clamp(42px, 5vw, 80px) 0 24px;
}

.hero__copy {
  max-width: 850px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--blue);
  font-family: Lexend, Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: var(--blue);
}

h1,
h2 {
  font-family: Lexend, Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 12.5ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.2rem, 6.2vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
}

.lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--body);
  font-size: clamp(1.18rem, 1.7vw, 1.48rem);
  line-height: 1.45;
}

.service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.service-strip span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  color: var(--body);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

.signal-panel {
  width: 100%;
  border: 1px solid rgba(191, 216, 245, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 60px rgba(11, 31, 91, 0.1);
  backdrop-filter: blur(16px);
}

.signal-panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--soft-line);
  color: var(--navy);
  font-family: Lexend, Inter, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.18);
}

.launch-form {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.launch-form label {
  color: var(--body);
  font-size: 0.88rem;
  font-weight: 700;
}

.launch-form input,
.launch-form select,
.launch-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.launch-form textarea {
  min-height: 78px;
  padding: 10px 13px;
  font: inherit;
  resize: vertical;
}

.launch-form input:focus,
.launch-form select:focus,
.launch-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

/* Honeypot: visually and programmatically hidden, but still in the DOM so bots
   that auto-fill every field trip it. Real users never see or fill it. */
.launch-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.launch-form button {
  min-height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue);
  font-family: Lexend, Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.launch-form button:hover,
.launch-form button:focus-visible {
  background: var(--blue-deep);
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.25);
  transform: translateY(-1px);
}

.form-note {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__visual {
  position: absolute;
  inset: auto -120px -170px auto;
  width: min(58vw, 760px);
  opacity: 0.84;
  z-index: 1;
}

.signal-map {
  width: 100%;
  height: auto;
  display: block;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(191, 216, 245, 0.92);
  border-radius: 8px;
  background: var(--line);
}

.proof article {
  min-height: 210px;
  padding: clamp(24px, 3vw, 38px);
  background: rgba(255, 255, 255, 0.9);
}

.proof span {
  color: var(--blue);
  font-family: Lexend, Inter, sans-serif;
  font-weight: 700;
}

.proof h2 {
  margin: 26px 0 10px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.1;
}

.proof p {
  max-width: 28ch;
  margin: 0;
  color: var(--body);
}

/* Services index — proof cards used as links to each service page */
.proof h2 a {
  color: var(--navy);
  text-decoration: none;
  transition: color 180ms ease;
}

.proof h2 a:hover,
.proof h2 a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}

@media (max-width: 980px) {
  .page-shell {
    padding: 14px;
  }

  .hero {
    min-height: auto;
  }

  .brand-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

  h1 {
    max-width: 11ch;
  }

  .signal-panel {
    max-width: 520px;
  }

  .hero__visual {
    inset: 160px -180px auto auto;
    width: 620px;
    opacity: 0.24;
  }

  .proof {
    grid-template-columns: 1fr;
  }

  .proof article {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero__content {
    padding: 18px;
  }

  .brand-logo {
    width: min(246px, 72vw);
  }

  .hero__grid {
    padding-top: 46px;
    gap: 28px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.28rem, 11vw, 3.2rem);
    line-height: 1.02;
  }

  .lead {
    margin-top: 22px;
  }

  .hero__visual {
    inset: 280px -250px auto auto;
    width: 560px;
    opacity: 0.18;
  }

  .brand-link {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   Service page template
   Reuses tokens + classes from the home page (brand-bar, eyebrow, h1/h2,
   lead, service-strip, signal-panel, launch-form). New pieces below.
   ========================================================================== */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--body);
  font-family: Lexend, Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  color: var(--blue);
}

.site-nav__links a[aria-current="page"] {
  color: var(--navy);
  border-bottom: 2px solid var(--blue);
}

.nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue);
  font-family: Lexend, Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--blue-deep);
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.25);
  transform: translateY(-1px);
}

/* Service hero — slimmer than the home hero */
.service-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(191, 216, 245, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.service-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 4vw, 56px);
}

.service-hero__copy {
  max-width: 820px;
  padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 40px);
}

.service-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Reusable button classes (per MASTER component spec) */
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 6px;
  font-family: Lexend, Inter, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-deep);
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

/* Content sections */
.service-section {
  padding: clamp(32px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--soft-line);
}

.service-section:last-of-type {
  border-bottom: 0;
}

.service-prose {
  width: min(100%, 760px);
}

.service-prose h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.service-prose h3 {
  margin: 28px 0 8px;
  color: var(--navy);
  font-family: Lexend, Inter, system-ui, sans-serif;
  font-size: 1.15rem;
}

.service-prose p {
  margin: 0 0 16px;
  color: var(--body);
}

.service-prose ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--body);
}

.service-prose li {
  margin-bottom: 8px;
}

.service-prose strong {
  color: var(--deep);
}

/* Inline build/confirm tokens stay visible during the build phase */
.service-prose .token {
  display: block;
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(191, 216, 245, 0.92);
  border-radius: 8px;
  background: var(--line);
}

.faq details {
  background: rgba(255, 255, 255, 0.94);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 3vw, 28px);
  color: var(--navy);
  font-family: Lexend, Inter, sans-serif;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color 180ms ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq summary:hover {
  color: var(--blue);
}

.faq__answer {
  padding: 0 clamp(20px, 3vw, 28px) 22px;
  color: var(--body);
}

.faq__answer p {
  margin: 0;
}

/* Bottom CTA band */
.cta-band {
  margin-top: 18px;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid rgba(191, 216, 245, 0.92);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep) 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  max-width: 22ch;
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.08;
}

.cta-band p {
  max-width: 60ch;
  margin: 0 0 26px;
  color: #cfe2fb;
}

.cta-band .btn-primary {
  background: var(--blue);
}

/* Footer */
.site-footer {
  margin-top: 18px;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(191, 216, 245, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.site-footer__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  color: var(--body);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--blue);
}

.site-footer__legal {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }
}
