:root {
  --navy: #15226b;
  --navy-deep: #0d1647;
  --navy-ink: #0b1238;
  --ocean: #07648f;
  --teal: #0e7490;        /* accent text on light backgrounds (AA) */
  --teal-light: #7fd3ea;  /* accent text on navy (AA) */
  --ink: #15226b;
  --ink-2: #3f4a6b;
  --slate: #f1f5f9;
  --mist: #eff9fc;
  --line: #d9e0ea;
  --white: #ffffff;
  --badge-bg: #fff4d6;
  --badge-ink: #6b4300;
  --badge-line: #e8c46a;
  --radius: 16px;
  --gutter: 16px;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; }

h1, h2, h3 { margin: 0; color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 32px; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
h1 em, h2 em { font-style: italic; color: var(--teal); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.eyebrow {
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow-light { color: #a9e4f3; }

.skip-link {
  position: absolute; left: var(--gutter); top: -56px; z-index: 20;
  padding: 8px 16px; border-radius: 8px; background: var(--navy); color: var(--white);
}
.skip-link:focus, .skip-link:hover { top: 8px; color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand-name:hover { color: var(--navy); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 50% 120%, var(--teal-light) 0 38%, transparent 39%), linear-gradient(160deg, var(--ocean), var(--navy));
}
.brand-text { display: flex; flex-direction: column; font-weight: 800; font-size: 1rem; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-text span { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.18em; color: var(--teal); margin-top: 3px; }

.badge {
  display: inline-block; padding: 2px 10px; border: 1px solid var(--badge-line); border-radius: 999px;
  background: var(--badge-bg); color: var(--badge-ink); font-size: 0.8125rem; font-weight: 600; line-height: 1.5;
}

.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--navy); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--mist); color: var(--navy); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn[aria-disabled="true"] { background: #6b7480; border-color: #6b7480; color: var(--white); cursor: not-allowed; }

/* Hero */
.hero {
  color: var(--white);
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(30, 147, 183, 0.45), transparent 70%),
    linear-gradient(150deg, var(--navy-ink) 0%, var(--navy) 55%, var(--ocean) 130%);
}
.hero-inner { padding-top: 96px; padding-bottom: 104px; max-width: 1160px; }
.hero h1 { max-width: 15ch; }
.hero h1 em { color: var(--teal-light); }
.hero-lead { margin-top: 24px; max-width: 58ch; font-size: 1.1875rem; color: rgba(255, 255, 255, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Sections */
.section { padding: 96px 0; }
.section-slate { background: var(--slate); }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 em { color: var(--teal-light); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 32px; }
.tiles li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 600; color: var(--navy); }

.approach { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { padding: 28px; border-radius: var(--radius); }
.cards-dark .card { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); }
.cards-dark .card p { color: rgba(255, 255, 255, 0.85); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line); }
.step-number { display: block; margin-bottom: 16px; font-family: var(--serif); font-size: 2.75rem; line-height: 1; color: var(--teal); }
.steps p { color: var(--ink-2); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 20px 4px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 4px 22px; max-width: 64ch; color: var(--ink-2); }

.cta-band { padding: 80px 0; color: var(--white); background: linear-gradient(120deg, var(--navy) 0%, var(--ocean) 100%); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band h2 em { color: var(--teal-light); }
.cta-band p { color: rgba(255, 255, 255, 0.88); font-size: 1.0625rem; }
.cta-band .hero-actions { margin-top: 0; }

/* Footer */
.site-footer { background: var(--navy-ink); color: rgba(255, 255, 255, 0.82); font-size: 0.9375rem; }
.site-footer a { color: var(--teal-light); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand { margin-bottom: 8px; font-family: var(--serif); font-size: 1.75rem; color: var(--white); }
.footer-contact { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.footer-contact dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.footer-contact dd { margin: 6px 0 0; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.875rem; color: rgba(255, 255, 255, 0.7);
}

/* Remains on the host page when the chat service or script is unavailable. */
[data-riq-emergency] {
  position: fixed; right: 12px; bottom: 12px; z-index: 11;
  max-width: min(280px, calc(100vw - 24px)); padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 6px;
  background: white; color: var(--ink-2); font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 860px) {
  .approach { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .header-inner > .btn { display: none; }
  .hero-inner { padding-top: 56px; padding-bottom: 64px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}
