/* Shared foundation, navigation and footer from index.html. */
:root {
      --ink: #102b37;
      --muted: #536c77;
      --green-950: #0d3f55;
      --green-900: #1b5e7b;
      --green-700: #247b9f;
      --green-100: #c2e8ff;
      --green-50: #e0f2f7;
      --cream: #f4f9fb;
      --white: #fff;
      --line: #d5e7ee;
      --orange: #58b9df;
      --shadow: 0 24px 70px rgb(27 94 123 / 15%);
      --radius: 24px;
    }

* {
      box-sizing: border-box;
    }

html {
      scroll-behavior: smooth;
    }

body {
      margin: 0;
      color: var(--ink);
      background: var(--white);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

a {
      color: inherit;
    }

.container {
      width: min(1160px, calc(100% - 40px));
      margin-inline: auto;
    }

.site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgb(255 255 255 / 92%);
      border-bottom: 1px solid rgb(213 231 238 / 85%);
      backdrop-filter: blur(18px);
    }

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

.brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--green-950);
      font-size: 1.05rem;
      font-weight: 800;
      letter-spacing: -0.025em;
      text-decoration: none;
      white-space: nowrap;
    }

.brand-logo {
      width: 34px;
      height: 34px;
      object-fit: contain;
    }

.nav-links {
      display: flex;
      align-items: center;
      gap: 30px;
    }

.nav-links a {
      color: #355463;
      font-size: 0.92rem;
      font-weight: 650;
      text-decoration: none;
    }

.nav-links a:hover {
      color: var(--green-700);
    }

.site-footer {
      padding: 34px 0;
      color: #d6ebf4;
      background: #082f42;
      border-top: 1px solid rgb(255 255 255 / 8%);
    }

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

.footer-inner p {
      margin: 0;
      font-size: 0.84rem;
    }

.footer-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px 20px;
    }

.footer-links a {
      color: #d6ebf4;
      font-size: 0.84rem;
      text-underline-offset: 3px;
    }

:focus-visible {
      outline: 3px solid var(--orange);
      outline-offset: 3px;
    }


body { min-width: 0; }
body .container { width: min(1160px, calc(100% - 40px)); }
.site-header .brand { text-decoration: none; }
.site-header .nav { flex-wrap: wrap; padding-block: 16px; }
.site-header .nav-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-header .nav-links a[aria-current="page"] { color: var(--green-700); text-decoration: underline; text-underline-offset: 5px; }
.site-footer .footer-inner p { text-align: left; line-height: 1.6; }
.site-footer .footer-links a:hover { color: white; }
@media (max-width: 760px) {
  .site-header .nav { gap: 12px; }
  .site-header .nav-links { width: 100%; gap: 8px 20px; }
  .site-header .nav-links a { font-size: .85rem; }
  .site-footer .footer-inner { align-items: flex-start; flex-direction: column; }
  .site-footer .footer-links { justify-content: flex-start; }
}
@media (max-width: 650px) { body .container { width: calc(100% - 28px); } }
@media print { .site-header, .site-footer { display: none; } }

/* Keep native anchor targets clear of the sticky navigation. */
html { scroll-padding-top: 150px; }
.site-header .nav-links a, .site-footer .footer-links a {
  transition: color 160ms ease;
}
.service-card, .audience-card, .card, .overview-item {
  transition: transform 180ms ease, box-shadow 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover, .audience-card:hover, .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgb(27 94 123 / 10%);
  }
  .overview-item:hover { transform: translateX(4px); }
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-grid { animation: page-enter 420ms ease-out both; }
}

/* A thin loading cue keeps the current page usable during an HTMX request. */
html::before {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 100;
  pointer-events: none;
  content: "";
  background: var(--green-700);
  transform: scaleX(0);
  transform-origin: left;
}
html.is-navigating::before {
  transform: scaleX(.8);
  transition: transform 8s cubic-bezier(.1, .8, .2, 1);
}
::view-transition-old(root) { animation: page-leave 100ms ease-in both; }
::view-transition-new(root) { animation: page-enter 180ms ease-out both; }
@keyframes page-leave { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .service-card, .audience-card, .card, .overview-item,
  .site-header .nav-links a, .site-footer .footer-links a,
  html.is-navigating::before { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media print { html::before { display: none; } }

/* The two legal documents share one readable document layout. */
body:has(.privacy-document), body:has(.terms-document) { background: var(--cream); }
body :is(.privacy-document, .terms-document) {
  max-width: 980px;
  margin: 48px auto 72px;
  padding: 48px;
  color: #1f2937;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body :is(.privacy-document, .terms-document) font {
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit;
}
body :is(.privacy-document, .terms-document) :is(p, li, td, th) {
  text-align: left;
  line-height: 1.65;
}
body :is(.privacy-document, .terms-document) p { margin: 0 0 .85rem; }
body :is(.privacy-document, .terms-document) :is(h1, h2, h3, h4, h6) {
  color: #1f2937;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.02em;
  text-align: left;
  text-indent: 0 !important;
  margin: 1.65rem 0 .65rem;
  scroll-margin-top: 150px;
}
body .terms-document li > h2 { font-size: 1rem; font-weight: 400; margin-block: .5rem; }
body .terms-document > p:first-child,
body .privacy-document .doc-title {
  margin: 0 0 1.5rem !important;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
}
body :is(.privacy-document, .terms-document) :is(ul, ol) { padding-left: 1.5rem; }
body :is(.privacy-document, .terms-document) table { width: 100%; border-collapse: collapse; }
body :is(.privacy-document, .terms-document) :is(td, th) {
  border: 1px solid var(--line) !important;
  padding: .6rem !important;
  overflow-wrap: anywhere;
}
body :is(.privacy-document, .terms-document) th { background: var(--green-50); }
body :is(.privacy-document, .terms-document) a[href] { color: var(--green-700); }
.hero-visual .visual-card .visual-dot {
  display: grid;
  place-items: center;
  color: var(--green-950);
}
.visual-dot svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 700px) {
  body :is(.privacy-document, .terms-document) { margin: 28px 14px 48px; padding: 24px 18px; }
}
@media print {
  body :is(.privacy-document, .terms-document) {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
