/* Field Force — shared base styles (tokens, reset, header, footer, buttons) */

/* Self-hosted variable fonts (same files Google Fonts serves; saves two render-blocking connections) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(../assets/fonts/manrope-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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(../assets/fonts/manrope-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/fonts/plus-jakarta-sans-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; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #062a59;
  --blue: #1765d8;
  --blue-light: #7fb4ff;
  --sky: #eaf5ff;
  --sky-soft: #f5faff;
  --muted: #4a6483;
  --border: #d6e6f6;
  --white: #fff;
  --teal: #19b6a0;
  --red: #ff2d55;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --container: 1240px;
  --gutter: 24px;
  --shadow-btn: 0 12px 13px rgba(23, 101, 216, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
.section--sky { background: var(--sky-soft); }
.section__head { text-align: center; max-width: 1000px; margin: 0 auto 50px; }
.section__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -1px; }
.section__title em { font-style: normal; color: var(--blue); }
.section__lead { margin-top: 15px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.eyebrow { font-family: var(--font-head); font-weight: 800; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 35px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 24px;
  border: 1px solid var(--blue); transition: transform .2s, box-shadow .2s, background .2s;
}
.btn img { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-btn); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--border); }
.btn--white { background: #fff; color: var(--blue); border-color: #fff; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: 90px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(214,230,246,.8);
}
.site-header__inner { max-width: calc(var(--container) + var(--gutter) * 2); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { display: block; width: 203px; height: 52px; max-width: none; }
.nav { display: flex; align-items: center; gap: 25px; }
.nav__link { display: flex; align-items: center; gap: 4px; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 24px; color: var(--navy); transition: background .2s, color .2s; }
.nav__link:hover { color: var(--blue); }
.nav__link.is-active { background: var(--sky); color: var(--blue); padding: 10px 25px; }
.nav__link img { width: 14px; height: 14px; transition: transform .2s; }
.nav__item { position: relative; }
.nav__sub-toggle { display: none; }
.nav__item:hover .nav__link img, .nav__item.is-open .nav__link img { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 300px; padding: 12px; margin-top: 8px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 40px rgba(6,42,89,.12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.nav__item:hover .dropdown, .nav__item.is-open .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--navy); }
.dropdown a:hover { background: var(--sky); color: var(--blue); }
.header-cta { display: flex; gap: 10px; }
.header-cta .btn--outline-blue { background: transparent; color: var(--blue); }
.header-cta .btn--primary { padding: 0 35px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; }
.site-footer__main { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 80px var(--gutter) 30px; display: flex; justify-content: space-between; gap: 40px; }
.site-footer__tag { margin: 30px 0 40px; font-family: var(--font-head); font-weight: 800; font-size: 17.6px; line-height: 1.4; color: #cfe3ff; }
.site-footer h2 { font-family: var(--font-head); font-weight: 800; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-light); margin-bottom: 18px; }
.site-footer li + li { margin-top: 10px; }
.site-footer li a { font-size: 15px; line-height: 24px; color: rgba(255,255,255,.85); transition: color .2s; }
.site-footer li a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); }
.site-footer__bottom > div { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 26px var(--gutter); display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: rgba(255,255,255,.65); }
.site-footer__bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.site-footer__bottom a:hover { color: #fff; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer__legal a { text-decoration: none; }

/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 6px; }
  .nav__link.is-active { padding: 10px 16px; }
  .header-cta .btn--outline-blue { display: none; }
}
@media (max-width: 900px) {
  .section { padding: 56px 0; }
  .nav-toggle { display: flex; }
  .nav, .header-cta { display: none; }
  /* Open menu overlays the page: the header keeps its 90px slot, the wrapped menu hangs below it */
  .site-header.is-open .site-header__inner { flex-wrap: wrap; align-content: flex-start; padding-top: 19px; padding-bottom: 20px; height: auto; min-height: 90px; max-height: 100vh; overflow-y: auto; background: #fff; box-shadow: 0 18px 30px rgba(6,42,89,.14); }
  .site-header.is-open .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 3; gap: 4px; }
  .site-header.is-open .header-cta { display: flex; width: 100%; order: 4; }
  .site-header.is-open .header-cta .btn { flex: 1; }
  .site-header.is-open .header-cta .btn--outline-blue { display: inline-flex; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; margin: 0; display: none; }
  .nav__item.is-open .dropdown { display: block; }
  /* Features: link navigates, the arrow button beside it opens the sub-menu */
  .nav__item { display: flex; flex-wrap: wrap; align-items: center; }
  .nav__item > .nav__link { flex: 1 1 auto; }
  .nav__item > .nav__link img { display: none; }
  .nav__sub-toggle { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: url("../assets/icons/chevron-down.svg") center / 16px 16px no-repeat; cursor: pointer; transition: background-color .2s; }
  .nav__sub-toggle:hover { background-color: var(--sky); }
  .nav__item.is-open > .nav__sub-toggle { transform: rotate(180deg); }
  .nav__item > .dropdown { flex: 1 0 100%; }
  .site-footer__main { flex-direction: column; padding-top: 56px; }
  .site-footer__bottom > div { flex-direction: column; }
}

/* Tablet / desktop: larger tap area around the small arrow in "Features" (tapping it opens the sub-menu) */
@media (min-width: 901px) {
  .nav__item > .nav__link img { box-sizing: content-box; padding: 10px; margin: -10px -10px -10px -6px; cursor: pointer; }
}

/* Footer: three evenly spaced columns (brand, Features, Field Force) that line up at the top */
@media (min-width: 901px) {
  .site-footer__main { display: grid; grid-template-columns: 1.55fr 1.5fr 1fr; align-items: start; gap: 40px; justify-content: stretch; }
}

/* Responsive: smaller header logo */
@media (max-width: 900px) {
  .site-header .logo img { width: 150px; height: auto; }
}
@media (max-width: 560px) {
  .site-header .logo img { width: 130px; }
}
