/* ==========================================================================
   Apex Vision Group Inc — site stylesheet
   1. Tokens   2. Base   3. Layout   4. Header & footer
   5. Components   6. Forms   7. Page sections   8. Legal pages
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --navy-950: #061423;
  --navy-900: #0A1D33;
  --navy-800: #0F2A47;
  --navy-700: #163A61;
  --blue-700: #24599A;
  --blue-600: #2D6CB0;
  --blue-500: #3D80C8;
  --blue-400: #6FA3DC;
  --blue-300: #9CC2EB;
  --blue-100: #DCE9F7;
  --blue-50: #EFF5FB;
  --green-500: #1C9A67;
  --green-50: #E6F6EF;
  --red-600: #C8372D;

  --ink: #0B1F33;
  --ink-2: #2E4257;
  --muted: #5B6E82;
  --line: #E1E8EF;
  --line-2: #C9D4DF;
  --surface: #FFFFFF;
  --surface-2: #F5F8FB;
  --surface-3: #EAF0F6;

  --on-dark: #B9CADC;
  --on-dark-muted: #8DA3BB;
  --on-dark-line: rgba(255, 255, 255, .1);

  --font-display: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(11, 31, 51, .06);
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, .05), 0 6px 16px -8px rgba(11, 31, 51, .14);
  --shadow: 0 22px 44px -22px rgba(11, 31, 51, .32);
  --shadow-lg: 0 40px 80px -32px rgba(6, 20, 35, .5);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 124px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
figure { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--blue-100); color: var(--ink); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--navy-800);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section); }
.section--soft { background: var(--surface-2); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--dark { background: var(--navy-900); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 24px 56px;
  align-items: end;
  max-width: none;
}
.section-head--split .lead { margin-top: 0; }

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split--media-left { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split--top { align-items: start; }

@media (max-width: 1023px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .split, .split--media-left, .section-head--split { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Type helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow--plain::before { display: none; }
.eyebrow--light { color: var(--blue-300); }

.display {
  font-size: clamp(2.5rem, 5.6vw, 4.35rem);
  font-stretch: 110%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-stretch: 106%;
  font-weight: 780;
  letter-spacing: -.03em;
}
.lead { font-size: clamp(1.06rem, 1.35vw, 1.2rem); line-height: 1.65; color: var(--muted); }
.eyebrow + .h2 { margin-top: 14px; }
.h2 + .lead, .h2 + .prose-block { margin-top: 18px; }
.muted { color: var(--muted); }
.text-gradient {
  background: linear-gradient(95deg, #A9CCF0 0%, #5B9BE0 55%, #8FBCEB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal on scroll (only when JS is running) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* 4. Header & footer ------------------------------------------------------- */
.topbar { background: var(--navy-950); color: var(--on-dark-muted); font-size: .8125rem; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item .icon { width: 15px; height: 15px; color: var(--blue-400); }
.topbar__right { display: flex; align-items: center; gap: 24px; }
.topbar__live { color: #CFE0F0; }

.live-dot {
  display: inline-block;
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3DDC97;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); }
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px -20px rgba(11, 31, 51, .45);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 6px; }
.brand img { width: auto; height: 42px; }

.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__links a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 550;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--blue-600); background: var(--blue-50); }

.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.nav__phone .icon { width: 18px; height: 18px; color: var(--blue-600); }
.nav__phone:hover { color: var(--blue-600); }

.nav__tools { display: none; align-items: center; gap: 8px; }
.icon-btn, .burger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn .icon { width: 19px; height: 19px; color: var(--blue-600); }
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { transform: translateY(-6px); }
.burger span:nth-child(3) { transform: translateY(6px); }
.site-header.is-open .burger span:nth-child(1) { transform: rotate(45deg); }
.site-header.is-open .burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .burger span:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .topbar { display: none; }
  :root { --header-h: 68px; }
  .brand img { height: 36px; }
  .nav__tools { display: flex; }
  .nav__menu {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 10px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 40px -28px rgba(11, 31, 51, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--ease), visibility 0s linear .25s;
  }
  .site-header.is-open .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s, transform .25s var(--ease);
  }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__links a { padding: 14px 12px; border-radius: 12px; font-size: 1.05rem; }
  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .nav__phone {
    justify-content: center;
    min-height: 50px;
    border: 1.5px solid var(--line-2);
    border-radius: 999px;
  }
  .nav__actions .btn { min-height: 50px; }
}

.footer { background: var(--navy-950); color: var(--on-dark-muted); font-size: .93rem; padding-top: clamp(56px, 7vw, 88px); }
.footer a { color: #CBD8E5; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.15fr);
  gap: 40px;
  padding-bottom: 44px;
}
.footer__brand img { width: auto; height: 44px; }
.footer__brand p { margin-top: 18px; max-width: 30em; line-height: 1.6; }
.footer__verify { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .86rem; }
.footer__verify .icon { width: 14px; height: 14px; }
.footer__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer address { display: grid; gap: 12px; }
.footer address a, .footer address span { display: inline-flex; align-items: flex-start; gap: 10px; }
.footer address .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--blue-400); }

.footer__sms {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .03);
  font-size: .86rem;
  line-height: 1.6;
}
.footer__sms .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--blue-400); }
.footer__sms strong { color: #fff; }
.footer__sms a { text-decoration: underline; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 28px;
  padding-block: 24px 30px;
  border-top: 1px solid var(--on-dark-line);
  font-size: .85rem;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (max-width: 1023px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* 5. Components ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .975rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary { box-shadow: 0 12px 26px -14px rgba(45, 108, 176, .9); }
.btn--primary:hover { --btn-bg: var(--blue-700); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn--light:hover { --btn-bg: var(--blue-50); }
.btn--ghost { --btn-bg: rgba(255, 255, 255, .06); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .24); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .12); --btn-bd: rgba(255, 255, 255, .45); }
.btn--outline { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: var(--line-2); }
.btn--outline:hover { --btn-bd: var(--navy-800); }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blue-600);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-50);
  color: #0F7A4F;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--soon { background: var(--surface-3); color: var(--muted); }

.decal {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.decal span { padding: 8px 12px; }
.decal span + span { border-left: 1.5px solid rgba(255, 255, 255, .3); }
a.decal:hover { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue-100); box-shadow: var(--shadow); }
.card__icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.card__icon .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.card h3 { margin-bottom: 10px; font-size: 1.18rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card__num {
  position: absolute;
  top: 26px; right: 26px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--line-2);
}

.specs { display: grid; margin-top: 28px; border-top: 1px solid var(--line); }
.specs > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.specs dd { color: var(--ink); font-weight: 550; }
.specs--pay dd { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.specs--pay dd b { font-family: var(--font-display); font-weight: 750; }
.specs--pay dd span { color: var(--muted); font-weight: 500; }
@media (max-width: 479px) {
  .specs > div { grid-template-columns: 1fr; gap: 4px; }
}

.ticks { display: grid; gap: 10px; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--green-500); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: .86rem;
  font-weight: 600;
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  color: var(--ink);
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__a { padding: 0 22px 20px; color: var(--muted); }

/* 6. Forms ----------------------------------------------------------------- */
.form-card {
  position: relative;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow);
}
.form-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.form-card__title { font-size: 1.35rem; }
.form-card__meta {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .field > .label { color: var(--ink); font-size: .875rem; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
@media (max-width: 599px) {
  .fields { grid-template-columns: 1fr; }
}

.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.input:not([type="date"]), .textarea { -webkit-appearance: none; appearance: none; }
.textarea { min-height: 124px; resize: vertical; line-height: 1.55; }
.select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6E82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.input:hover, .select:hover, .textarea:hover { border-color: #A9BACB; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(61, 128, 200, .16);
}
.input::placeholder, .textarea::placeholder { color: #8E9FB1; }

.field__error { display: none; color: var(--red-600); font-size: .8rem; font-weight: 550; }
.is-invalid > .field__error, .is-invalid .field__error { display: block; }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea { border-color: var(--red-600); }
.is-invalid .input:focus, .is-invalid .select:focus, .is-invalid .textarea:focus { box-shadow: 0 0 0 4px rgba(200, 55, 45, .14); }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fieldset + .fieldset { margin-top: 30px; padding-top: 28px; border-top: 1px dashed var(--line-2); }
.legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
}
.legend + * { clear: both; }
.legend b {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .78rem;
}

/* Chip checkboxes */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: .9rem;
  font-weight: 600;
  transition: background-color .15s, border-color .15s, color .15s;
  pointer-events: none;
}
.chip:hover span { border-color: #A9BACB; }
.chip input:checked + span { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--blue-400); outline-offset: 2px; }

/* Radio cards */
.radio-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; top: 18px; left: 18px; width: 18px; height: 18px; margin: 0; opacity: 0; }
.radio-card__body {
  display: block;
  height: 100%;
  padding: 16px 18px 16px 48px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.radio-card__body::before {
  content: "";
  position: absolute;
  top: 19px; left: 18px;
  width: 18px; height: 18px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.radio-card__body strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.02rem; }
.radio-card__body small { color: var(--muted); font-size: .85rem; }
.radio-card:hover .radio-card__body { border-color: #A9BACB; }
.radio-card input:checked + .radio-card__body { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(45, 108, 176, .14); }
.radio-card input:checked + .radio-card__body::before { border-color: var(--blue-600); box-shadow: inset 0 0 0 4px #fff; background: var(--blue-600); }
.radio-card input:focus-visible + .radio-card__body { outline: 3px solid var(--blue-400); outline-offset: 2px; }
@media (max-width: 479px) {
  .radio-cards { grid-template-columns: 1fr; }
}

/* Consent blocks */
.consent {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.consent + .consent { margin-top: 12px; }
.fields > .consent { grid-column: 1 / -1; margin-top: 0; }
.legend + .consent { margin-top: 0; }
.consent--sms { border-color: var(--blue-100); background: var(--blue-50); }
.consent.is-invalid { border-color: var(--red-600); }
.consent__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
}
.consent__title .icon { width: 18px; height: 18px; color: var(--blue-600); }
.consent__title span { color: var(--muted); font-weight: 500; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input {
  flex: none;
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--blue-600);
  cursor: pointer;
}
.check__text { color: var(--ink-2); font-size: .865rem; line-height: 1.6; }
.check__text strong { color: var(--ink); }
.consent__links { margin: 10px 0 0 32px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.consent .field__error { margin: 8px 0 0 32px; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-actions p { color: var(--muted); font-size: .9rem; }
.form-note { margin-top: 16px; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.form-status { margin-top: 14px; font-size: .9rem; font-weight: 550; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 12px 14px; border-radius: 10px; background: #FCEDEC; color: var(--red-600); }

.turnstile-box { margin-top: 18px; min-height: 0; }

.form-success { padding: clamp(20px, 4vw, 36px) 8px; text-align: center; outline: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-500);
}
.form-success__icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { max-width: 34em; margin: 10px auto 0; color: var(--muted); }
.ref {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .85rem;
}

/* 7. Page sections --------------------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(52px, 8vw, 100px);
  background: var(--navy-900);
  color: var(--on-dark);
}
.hero__bg, .page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 88% 0%, rgba(61, 128, 200, .34), transparent 62%),
    radial-gradient(720px 520px at 0% 100%, rgba(31, 75, 124, .5), transparent 62%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.hero__bg::before, .page-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 65% 25%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 65% 25%, #000 25%, transparent 75%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 { margin-top: 22px; color: #fff; }
.hero .lead { max-width: 34em; margin-top: 24px; color: #AFC2D6; }
.hero .eyebrow { color: #CFE0F0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 34px; }
.hero__proof p { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-muted); font-size: .9rem; }
.hero__proof .icon { width: 18px; height: 18px; color: #3DDC97; }

.hero__media { position: relative; }
.photo-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-xl);
  background: var(--navy-800);
  box-shadow: var(--shadow-lg);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) saturate(1.05); }
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 20, 35, .78));
  pointer-events: none;
}
.photo-card__tag {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 14px 18px 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.float-card strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: .95rem; line-height: 1.25; }
.float-card small { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.float-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.float-card__icon .icon { width: 20px; height: 20px; }
.float-card--a { left: -30px; bottom: 70px; }
.float-card--b { right: -22px; top: 30px; }
@media (max-width: 1279px) {
  .float-card--a { left: 14px; }
  .float-card--b { right: 14px; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--on-dark-line);
}
.hero-stats > div { padding: 28px 24px 34px; border-left: 1px solid var(--on-dark-line); }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.stat-value {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-stretch: 110%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}
@media (min-width: 600px) {
  .stat-value { white-space: nowrap; }
}
.stat-label {
  margin-top: 10px;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 640px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats > div { padding: 22px 16px 26px; }
  .hero-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--on-dark-line); }
}
@media (max-width: 599px) {
  .float-card { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Careers hero tweaks */
.hero--careers .photo-card { aspect-ratio: 1 / 1.02; }
.hero--careers .photo-card img { object-position: 50% 32%; }

/* Sub-page hero */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 92px) clamp(46px, 6vw, 72px);
  background: var(--navy-900);
  color: var(--on-dark);
}
.page-hero h1 {
  max-width: 18em;
  margin-top: 16px;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-stretch: 108%;
  font-weight: 800;
  letter-spacing: -.03em;
}
.page-hero p.lead { max-width: 44em; margin-top: 18px; color: #AFC2D6; }
.page-hero .eyebrow { color: var(--blue-300); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page-hero__meta .pill { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #DCE6F1; }

/* Check strip */
.checkstrip { border-bottom: 1px solid var(--line); background: #fff; }
.checkstrip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 22px;
  list-style: none;
}
.checkstrip li { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: .94rem; font-weight: 600; }
.checkstrip .icon { width: 18px; height: 18px; color: var(--green-500); }
@media (max-width: 899px) {
  .checkstrip ul { justify-content: flex-start; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; }
.step { padding-top: 24px; border-top: 2px solid var(--line-2); }
.step:first-child { border-top-color: var(--blue-600); }
.step__num { color: var(--blue-600); font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .12em; }
.step h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .96rem; }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .steps { grid-template-columns: 1fr; } }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(84px, 9.5vw, 124px);
  gap: 14px;
}
.gallery figure { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 20, 35, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.g-wide { grid-column: span 6; grid-row: span 3; }
.g-half { grid-column: span 3; grid-row: span 2; }
.g-tall { grid-column: span 2; grid-row: span 4; }
.g-big { grid-column: span 4; grid-row: span 4; }
@media (max-width: 599px) {
  .gallery { grid-auto-rows: 74px; gap: 10px; }
}

/* Facts card (company identity) */
.facts-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--r-xl);
  background: var(--navy-800);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
.facts-card::before {
  content: "";
  position: absolute;
  right: -70px; top: -60px;
  z-index: -1;
  width: 280px; height: 294px;
  background: url("/images/logo-mark.png") center / contain no-repeat;
  opacity: .07;
}
.facts-card__logo img { width: auto; height: 40px; }
.facts { display: grid; margin: 24px 0 28px; }
.facts > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--on-dark-line);
}
.facts dt {
  padding-top: 3px;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.facts dd { color: #fff; font-weight: 550; }
.facts dd a { color: #fff; text-decoration: none; }
.facts dd a:hover { text-decoration: underline; }
@media (max-width: 479px) {
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
}

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.value .icon { width: 22px; height: 22px; color: var(--blue-600); }
.value h3 { margin: 12px 0 6px; font-size: 1.02rem; }
.value p { color: var(--muted); font-size: .92rem; }
@media (max-width: 639px) { .values { grid-template-columns: 1fr; } }

.prose-block p + p { margin-top: 16px; }

/* Driver band */
.band {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--navy-800);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
.band__copy { align-self: center; padding: clamp(30px, 5vw, 64px); }
.band__copy h2 { margin-top: 14px; color: #fff; }
.band__copy > p { max-width: 32em; margin-top: 16px; }
.band__media { position: relative; min-height: 280px; }
.band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.band__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--navy-800) 0%, rgba(15, 42, 71, .35) 30%, transparent 60%);
}
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pay-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 30px; }
.pay-tiles > div { padding: 16px; border: 1px solid var(--on-dark-line); border-radius: var(--r); background: rgba(255, 255, 255, .05); }
.pay-tiles strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.55rem; font-stretch: 110%; font-weight: 800; line-height: 1.1; }
.pay-tiles span { display: block; margin-top: 4px; color: var(--on-dark-muted); font-size: .8rem; }
@media (max-width: 899px) {
  .band { grid-template-columns: 1fr; }
  .band__media { order: -1; }
  .band__media::before { background: linear-gradient(0deg, var(--navy-800) 0%, transparent 55%); }
}
@media (max-width: 479px) {
  .pay-tiles { grid-template-columns: 1fr; }
  .band__actions .btn { flex: 1 1 100%; }
}

/* Quote / contact layouts */
.quote { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.quote__intro { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 999px) {
  .quote { grid-template-columns: 1fr; }
  .quote__intro { position: static; }
}

.contact-list { display: grid; gap: 12px; margin-top: 30px; list-style: none; }
.contact-list a, .contact-list .contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.contact-list a:hover { border-color: var(--blue-300); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.ci-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.contact-list small {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contact-list strong { display: block; font-weight: 650; overflow-wrap: anywhere; }

.sms-note {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--blue-100);
  border-radius: var(--r);
  background: var(--blue-50);
  color: var(--ink-2);
  font-size: .92rem;
}
.sms-note .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--blue-600); }
.sms-note strong { color: var(--ink); }

/* Contact page */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.contact-card .ci-icon { margin-bottom: 12px; }
.contact-card h2 { color: var(--muted); font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.contact-card a.contact-card__value, .contact-card .contact-card__value {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-card a.contact-card__value:hover { color: var(--blue-600); }
.contact-card .contact-card__value--sm { font-size: 1rem; overflow-wrap: normal; }
.contact-card p { color: var(--muted); font-size: .9rem; }
@media (max-width: 1023px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .contact-cards { grid-template-columns: 1fr; } }

.map-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface-3); box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 360px; border: 0; }

.program-box { padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; }
.program-box h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.program-box h3 .icon { color: var(--blue-600); }
.program-box dl { display: grid; margin-top: 16px; }
.program-box dl > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.program-box dt { color: var(--ink); font-weight: 650; }
.program-box dd { color: var(--ink-2); }
.program-box p { margin-top: 14px; color: var(--muted); font-size: .85rem; }

/* Careers */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 899px) { .pay-grid { grid-template-columns: 1fr; } }

.settlement {
  position: relative;
  padding: 28px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: .82rem;
}
.settlement__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 6px;
  padding-bottom: 14px;
  border-bottom: 1.5px dashed var(--line-2);
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.settlement__head strong { color: var(--ink); }
.settlement__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.settlement__row span { color: var(--ink); }
.settlement__row small { grid-column: 1; color: var(--muted); font-size: .74rem; }
.settlement__row b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink); font-weight: 600; }
.settlement__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 16px;
  color: var(--ink);
}
.settlement__total span { letter-spacing: .1em; text-transform: uppercase; }
.settlement__total strong { font-family: var(--font-display); font-size: 1.75rem; font-stretch: 108%; font-weight: 800; }
.settlement__note { margin-top: 14px; color: var(--muted); font-family: var(--font-body); font-size: .85rem; line-height: 1.55; }
.example-flag {
  position: absolute;
  top: -12px; right: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy-800);
  color: #fff;
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rotation { margin-top: 28px; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-lg); background: var(--navy-800); color: var(--on-dark); }
.rotation__bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .8fr); gap: 6px; margin-top: 16px; }
.rotation__seg {
  display: grid;
  place-items: center;
  height: 46px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}
.rotation__seg--home { background: var(--blue-600); color: #fff; }
.rotation__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: var(--on-dark-muted); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.rotation__caption strong { color: #fff; }

.position { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.position--soon { background: var(--surface-2); }
.position .status { align-self: flex-start; }
.position h3 { margin-top: 18px; font-size: 1.3rem; }
.position__pay { margin-top: 14px; color: var(--ink); font-family: var(--font-display); font-size: 2.5rem; font-stretch: 110%; font-weight: 800; line-height: 1; }
.position__unit { margin-top: 6px; color: var(--muted); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.position .ticks { margin: 22px 0 26px; font-size: .95rem; }
.position__desc { margin: 14px 0 22px; color: var(--muted); font-size: .95rem; }
.position .btn { margin-top: auto; }

.req-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; counter-reset: req; }
.req-list li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font-weight: 550;
  line-height: 1.5;
}
.req-list li::before {
  counter-increment: req;
  content: counter(req, decimal-leading-zero);
  padding-top: 2px;
  color: var(--blue-600);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
}
@media (max-width: 699px) { .req-list { grid-template-columns: 1fr; } }

.bring { margin-top: 20px; padding: 22px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); }
.bring h3 { font-size: 1rem; }
.bring .ticks { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: .94rem; }
@media (max-width: 599px) { .bring .ticks { grid-template-columns: 1fr; } }

.apply-wrap { max-width: 900px; margin-inline: auto; }
.hiring-closed { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; text-align: center; }

/* Photo stack used on careers */
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-stack figure { overflow: hidden; border-radius: var(--r-lg); background: var(--surface-3); }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.photo-stack figure:not(:first-child) { aspect-ratio: 1 / 1; }

/* CTA */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--blue-700), var(--navy-800) 70%);
  color: #D5E3F1;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.cta h2 { color: #fff; }
.cta p { max-width: 38em; margin: 16px auto 0; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* 404 */
.notfound { padding-block: clamp(80px, 12vw, 160px); text-align: center; }
.notfound__code { color: var(--blue-100); font-family: var(--font-display); font-size: clamp(6rem, 18vw, 11rem); font-stretch: 120%; font-weight: 900; line-height: .9; }
.notfound h1 { margin-top: 18px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.notfound p { max-width: 32em; margin: 14px auto 0; color: var(--muted); }
.notfound .cta__actions .btn--ghost { --btn-fg: var(--navy-800); --btn-bd: var(--line-2); }

/* 8. Legal pages ----------------------------------------------------------- */
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.toc p { margin-bottom: 8px; color: var(--muted); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.toc ol { display: grid; gap: 2px; list-style: none; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: .88rem; line-height: 1.4; text-decoration: none; }
.toc a:hover { background: #fff; color: var(--blue-600); }
@media (max-width: 899px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}

.prose { max-width: 780px; color: var(--ink-2); font-size: 1.01rem; }
.prose h2 {
  margin: 46px 0 14px;
  padding-top: 6px;
  font-size: 1.45rem;
  font-stretch: 104%;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 10px; font-size: 1.08rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--blue-600); }
.prose strong { color: var(--ink); }

.callout {
  margin: 22px 0;
  padding: 18px 22px;
  border: 1px solid var(--blue-100);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--r);
  background: var(--blue-50);
  color: var(--ink);
}
.callout p:last-child { margin-bottom: 0; }

.kv { display: grid; margin: 18px 0 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); }
.kv > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 13px 18px; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; }
.kv > div:nth-child(even) { background: var(--surface-2); }
.kv dt { color: var(--ink); font-weight: 650; }
@media (max-width: 559px) { .kv > div { grid-template-columns: 1fr; gap: 2px; } }

.sms-sample {
  max-width: 560px;
  margin: 0 0 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  color: var(--ink);
  font-size: .93rem;
}
.sms-sample small { display: block; margin-bottom: 4px; color: var(--muted); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
