/* Prime Reach Scaling
   Colors come from the logo: deep navy, steel and signal blue.
   Archivo's width axis echoes the extended letterforms of the wordmark. */

/* Archivo, self-hosted (latin subset, variable weight and width). License: assets/fonts/OFL.txt */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #0B1628;
  --night-2: #13233D;
  --night-3: #070F1D;
  --steel: #B8C3D1;
  --steel-dim: #8C9AAD;
  --signal: #3B95FF;
  --blue: #1A62C9;
  --blue-dark: #154FA3;
  --ink: #142033;
  --muted: #4E5B6E;
  --line: #D5DCE5;
  --paper: #F4F6F9;
  --white: #FFFFFF;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 9vw, 7rem);
  --radius: 10px;
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-stretch: 118%;
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 1.4rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.625rem); }
h3 { font-size: 1.1875rem; font-stretch: 110%; line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }

/* Darker ring on light backgrounds, brighter ring on navy ones; both keep 3:1 contrast */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-header :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible { outline-color: var(--signal); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  background: var(--signal);
  color: var(--night);
  font-weight: 650;
  font-stretch: 108%;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.button:hover { background: #6AAFFF; color: var(--night); }
.button-large { min-height: 52px; padding: 0.85rem 1.6rem; font-size: 1.0625rem; }

.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.text-link-light { color: var(--white); }
.text-link-light:hover { color: var(--steel); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--night);
  border-bottom: 1px solid rgba(184, 195, 209, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 40px; width: auto; }
@media (min-width: 900px) {
  .brand img { height: 48px; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  padding: 0.5rem var(--gutter) 1.25rem;
  background: var(--night);
  border-bottom: 1px solid rgba(184, 195, 209, 0.14);
}
.site-nav.is-open { display: block; }
.site-nav ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.site-nav li a {
  display: block;
  padding: 0.75rem 0;
  color: var(--white);
  font-weight: 550;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 195, 209, 0.12);
}
.site-nav li a:hover { color: var(--steel); }
.site-nav li a[aria-current="page"] { color: var(--signal); }
.site-nav .button { width: 100%; }

/* Six links plus the button need more room than the logo-only header did */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav,
  .site-nav.is-open {
    display: flex;
    position: static;
    align-items: center;
    gap: 2rem;
    padding: 0;
    border: 0;
    background: none;
  }
  .site-nav ul { display: flex; gap: 1.75rem; margin: 0; }
  .site-nav li a { display: flex; align-items: center; min-height: 44px; padding: 0; border: 0; font-size: 0.975rem; }
  .site-nav li a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--signal); }
  .site-nav .button { width: auto; }
}

/* Hero */

.hero {
  background: var(--night);
  color: var(--white);
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

/* Sized so the headline sits on 2 lines at 1280px and 3 lines at 375px */
.hero h1 { max-width: 20ch; font-size: clamp(2.125rem, 1.6rem + 1.6vw, 2.875rem); line-height: 1.18; }
.hero .lede { max-width: 30em; margin-top: 1.75rem; }
.hero .hero-actions { margin-top: 2.5rem; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--signal);
  font-weight: 600;
  font-stretch: 108%;
}

/* Proof strip under the hero buttons */
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--steel);
  font-size: 0.95rem;
  font-weight: 600;
}
.proof li { display: flex; align-items: center; gap: 0.6rem; }
.proof svg {
  flex: none;
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Inner pages: a shorter navy header band */
.page-hero {
  background: var(--night);
  color: var(--white);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.page-hero h1 { max-width: 22ch; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }

.lede {
  max-width: 34em;
  margin-top: 1.5rem;
  color: var(--steel);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.lead-path { margin: 0; }
.lead-path svg { display: block; width: 100%; height: auto; max-width: 560px; margin-inline: auto; overflow: visible; }

.lp-bars rect { fill: var(--night-2); }
.lp-line {
  fill: none;
  stroke: var(--signal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp-node circle { fill: var(--signal); stroke: var(--night); stroke-width: 4; }
.lp-node-end circle { fill: var(--white); stroke: var(--signal); stroke-width: 5; }
.lp-node text {
  fill: var(--white);
  font-family: var(--font);
  font-size: 19px;
  font-weight: 600;
}
@media (max-width: 600px) {
  .lp-node text { font-size: 23px; }
}

@media (prefers-reduced-motion: no-preference) {
  .lp-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: lp-draw 1.6s cubic-bezier(0.55, 0, 0.3, 1) 0.3s forwards;
  }
  .lp-node {
    opacity: 0;
    animation: lp-in 0.4s ease-out forwards;
    animation-delay: calc(0.3s + var(--i) * 0.42s);
  }
  @keyframes lp-draw { to { stroke-dashoffset: 0; } }
  @keyframes lp-in { to { opacity: 1; } }
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; }
}

/* Sections */

.section { padding-block: var(--section); }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.section-tint { background: var(--paper); }

.section-head { max-width: 40rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.125rem; }

/* Services */

.services {
  display: grid;
  gap: 2.75rem 3.5rem;
}

.service {
  padding-top: 1.5rem;
  border-top: 2px solid var(--line);
}
.service h3 { display: flex; align-items: center; gap: 0.75rem; }
.service h3::before {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(59, 149, 255, 0.18);
}
.service p { margin-top: 0.75rem; color: var(--muted); max-width: 34em; }
.service ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.service li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
  font-size: 0.975rem;
}
.service li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.95em;
  width: 7px; height: 2px;
  background: var(--blue);
}

@media (min-width: 760px) {
  .services { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .services-3 { grid-template-columns: repeat(3, 1fr); }
}

.section-actions { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* Home: "What we do for you" tiles, with line icons like the hero proof strip */
.service-tiles { margin: 0; padding: 0; list-style: none; }
.service-tile h3::before { content: none; }
.service-tile svg {
  display: block;
  width: 28px; height: 28px;
  margin-bottom: 0.875rem;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Problem list */
.dot-list { margin: 0; padding: 0; list-style: none; max-width: 40rem; }
.dot-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--signal);
}
.problem-close { margin-top: 1.75rem; font-weight: 650; font-size: 1.125rem; }

/* Hub cards on the homepage */
.hub {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hub-card {
  display: block;
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.hub-card:hover { border-color: var(--blue); color: var(--ink); }
.hub-card h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); }
.hub-card p { margin-top: 0.75rem; color: var(--muted); }
.hub-card:hover h3 { color: var(--blue); }
@media (min-width: 760px) {
  .hub { grid-template-columns: 1fr 1fr; }
}

/* The Math: example table */
.table-wrap { max-width: 46rem; overflow-x: auto; }
.math-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.math-table th,
.math-table td { padding: 0.75rem 0.75rem; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.math-table th[scope="row"] { padding-left: 0; text-align: left; font-weight: 600; }
.math-table thead th { color: var(--muted); font-size: 0.9rem; font-weight: 650; line-height: 1.3; }
.math-total th,
.math-total td { border-bottom: 2px solid var(--ink); font-weight: 750; }
.math-assumptions { max-width: 46rem; margin-top: 1.5rem; color: var(--muted); }
.math-disclaimer { max-width: 46rem; padding: 1rem 1.25rem; border-left: 3px solid var(--signal); background: var(--paper); }

/* The Math: calculator */
.calc { display: grid; gap: 2.5rem; }
.calc[hidden] { display: none; }
.calc-inputs { display: grid; gap: 1.25rem; align-content: start; }
.field label { display: block; margin-bottom: 0.4rem; font-weight: 600; line-height: 1.35; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--steel-dim);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.field input:focus-visible { border-color: var(--blue); }
.calc-note { margin: 0; color: var(--muted); font-size: 0.95rem; }
.field-help { margin-top: 0.4rem; }
.calc-reset { justify-self: start; }

.result-cards { display: grid; gap: 1.25rem; }
.result-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  border-radius: var(--radius);
  background: var(--white);
}
.result-card h3 { margin-bottom: 0.75rem; }
.result-card dl { margin: 0; }
.result-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.result-card dl div:last-child { border-bottom: 0; }
.result-card dt { color: var(--muted); }
.result-card dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.calc-summary { margin-top: 1.5rem; }
.calc-difference { font-size: 1.25rem; }
.calc-difference strong { font-stretch: 110%; }

@media (min-width: 900px) {
  .calc { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3.5rem; }
}

.source { margin-top: 1rem; font-size: 0.95rem; }
.math-shows { max-width: 46rem; }

/* The Math: where the example numbers come from */
.list-title { margin: 2rem 0 1rem; }
.section-head + .list-title { margin-top: 0; }
.source-list { max-width: 46rem; margin: 0; padding-left: 1.5rem; }
.source-list li { padding-left: 0.25rem; margin-bottom: 1.5rem; }
.source-list li::marker { font-weight: 750; }
.source-list .source { margin-top: 0.35rem; }

/* Navy band with one message and a button */
.band-inner > * { max-width: 46rem; }
.band-inner h2 { margin-bottom: 1.25rem; }
.band-inner p { color: var(--steel); font-size: 1.125rem; }
.band-inner .button { margin-top: 1rem; }
.footnote { margin-top: 2rem; color: var(--steel); font-size: 0.875rem; }

/* How it works */

.steps {
  display: grid;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.25rem;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.1rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--night);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}
.step::after {
  content: "";
  position: absolute;
  left: calc(1rem - 1px);
  top: 2rem;
  bottom: -2.25rem;
  width: 2px;
  background: var(--signal);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .step { padding-left: 0; padding-top: 3.25rem; }
  .step::before { top: 0; }
  .step::after {
    left: 2rem; right: -2rem;
    top: calc(1rem - 1px);
    bottom: auto;
    width: auto; height: 2px;
  }
}

/* FAQ */

.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 650;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem; top: 50%;
  width: 14px; height: 2px;
  background: var(--blue);
  transition: transform 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--blue); }
.faq-body { padding: 0 0 1.5rem; color: var(--muted); max-width: 42rem; }

/* Final call to action */

.cta { background: var(--night); color: var(--white); }
.contact-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.contact-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.cta-inner { display: grid; gap: 2.5rem; align-items: start; }
.cta-copy { max-width: 30rem; }
.cta-copy h2 { margin-bottom: 1.25rem; }
.cta-copy p { color: var(--steel); }
.cta-copy a { color: var(--white); }
.cta-contact { margin-top: 1.75rem; overflow-wrap: anywhere; }

.cta-subhead { margin: 1.75rem 0 0.75rem; color: var(--white); font-size: 1.0625rem; }
.cta-list { margin: 0; padding: 0; list-style: none; color: var(--steel); }
.cta-list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.5rem;
}
.cta-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--signal);
}

.booking {
  min-height: 700px;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.booking-frame {
  display: block;
  width: 100%;
  min-height: 668px;
  border: 0;
}
.booking-load { display: flex; margin: 3rem auto 0; }
.booking-load[hidden] { display: none; }
.booking-noscript { margin: 0; padding: 2rem 1rem; color: var(--ink); text-align: center; }
.consent {
  margin-top: 0.875rem;
  color: var(--steel);
  font-size: 0.875rem;
  line-height: 1.5;
}
.consent a { color: var(--white); }
.consent a:hover { color: var(--steel); }

@media (min-width: 960px) {
  .cta-inner { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
}

/* Footer */

.site-footer {
  background: var(--night-3);
  color: var(--steel);
  padding-block: 3.5rem 2rem;
  font-size: 0.975rem;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--steel);
  text-decoration: none;
}
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }

.footer-inner { display: grid; gap: 2.5rem; }
.footer-brand img { height: 40px; width: auto; }
.footer-cols { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 560px) {
  .footer-cols { grid-template-columns: auto auto; justify-content: start; }
}
.footer-inner > *,
.footer-cols > * { min-width: 0; }
.footer-cols li { overflow-wrap: anywhere; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 195, 209, 0.14);
  color: var(--steel-dim);
  font-size: 0.9rem;
}
.footer-legal p { margin: 0; }

@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr auto; }
}

/* Industry examples (landing template) */

.examples { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.examples li {
  padding: 1.5rem;
  border-left: 3px solid var(--signal);
  background: var(--white);
}
.examples h3 { margin-bottom: 0.5rem; }
.examples p { color: var(--muted); }
@media (min-width: 760px) { .examples { grid-template-columns: repeat(3, 1fr); } }

/* Legal pages */

.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 0.75rem; }
.legal h2 { font-size: 1.375rem; margin: 2.5rem 0 0.75rem; }
.legal h3 { margin: 1.5rem 0 0.5rem; }
.legal .note h2 { margin-top: 0; }
.legal .updated { color: var(--muted); }
.legal .note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--signal);
  background: var(--paper);
}
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
