/* =========================================================
   EMSOps marketing site — emsops.net
   Brand palette carried over from the product app:
     Navy    #0A1B2E   (ink / dark surfaces)
     EMS Blue #1677FF  (single accent, CTAs + focus)
     Slate   #2E3A48   (secondary ink)
   Type: Inter (UI/body), IBM Plex Mono (labels, data).
   Direction: credible EMS operations SaaS — calm, structured,
   command-center. Restrained motion, generous whitespace.
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --navy:        #0A1B2E;
  --navy-700:    #10263D;
  --navy-600:    #16314C;
  --slate:       #2E3A48;
  --blue:        #1677FF;
  --blue-600:    #0F62DB;
  --blue-050:    #EEF5FF;
  --amber:       #B36A00;
  --green:       #1D7A4C;
  --red:         #C2374A;

  --ink:         var(--navy);
  --ink-2:       #45566B;
  --ink-3:       #5E6D80;
  --line:        #DFE5EE;
  --line-2:      #EDF1F7;
  --surface:     #FFFFFF;
  --surface-2:   #F6F8FC;

  --radius:      4px;
  --radius-lg:   8px;

  --shadow-sm:   0 1px 2px rgba(10,27,46,.06), 0 1px 3px -1px rgba(10,27,46,.05);
  --shadow-md:   0 2px 6px -1px rgba(10,27,46,.07), 0 8px 20px -6px rgba(10,27,46,.08);
  --shadow-lg:   0 8px 20px -6px rgba(10,27,46,.10), 0 28px 56px -18px rgba(10,27,46,.22);

  --wrap:        1160px;
  --gutter:      clamp(20px, 5vw, 48px);

  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px;
  border-radius: var(--radius); font-weight: 600; font-size: .875rem;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .9375rem;
  padding: 12px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.btn-primary:hover { background: #0B57C4; border-color: #0B57C4; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: #C9D3E2; }
.btn-sm { padding: 8px 15px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .62; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.10), 0 10px 24px -14px rgba(10,27,46,.7); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; }
.brand-lockup { display: block; height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.site-nav > a:not(.btn) {
  color: #C7D3E3; font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: color .15s ease;
}
.site-nav > a:not(.btn):hover { color: #fff; text-decoration: none; }
@media (max-width: 620px) {
  .site-nav > a:not(.btn) { display: none; }
  .brand-lockup { height: 34px; }
  .header-inner { min-height: 60px; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(22,119,255,.20), transparent 62%),
    linear-gradient(180deg, var(--navy) 0%, #0C2036 100%);
  color: #EAF0F8;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 116px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 78%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.14fr);
  gap: clamp(32px, 4.5vw, 60px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .10em; text-transform: uppercase;
  color: #96B4DF; background: rgba(22,119,255,.12);
  border: 1px solid rgba(22,119,255,.30);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
  max-width: 100%;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #4D9BFF; box-shadow: 0 0 0 3px rgba(77,155,255,.22); }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.032em; color: #fff; margin-bottom: 22px;
  max-width: 17ch;
  text-wrap: balance;
}
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: #B9C8DC; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn-ghost { color: #E6EDF7; border-color: rgba(255,255,255,.24); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.42); }
.hero-points {
  margin-top: 34px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.11);
  display: grid; gap: 11px;
}
.hero-points li {
  position: relative; padding-left: 26px; font-size: .9375rem; color: #A9BBD2;
}
.hero-points li::before {
  content: ""; position: absolute; left: 4px; top: .58em;
  width: 8px; height: 8px; border: 2px solid var(--blue); border-radius: 2px;
}
.hero-visual { position: relative; }

/* ---------- product visual frames ---------- */
.shot {
  margin: 0; position: relative;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.shot img { display: block; width: 100%; }
.shot-lg { box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,.14); }
.shot-note {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); background: var(--surface-2);
  border-top: 1px solid var(--line-2);
  padding: 7px 12px;
}

/* ---------- rail ---------- */
.rail { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.rail-inner {
  display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 5vw, 56px);
  justify-content: center; padding: 18px 0;
}
.rail-inner span {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .10em;
  text-transform: uppercase; color: var(--ink-2);
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-tint { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 64ch; margin-bottom: clamp(40px, 6vw, 72px); }
.kicker {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
.kicker-invert { color: #6FA8FF; }
.section h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.section-sub { font-size: 1.0625rem; color: var(--ink-2); }

/* ---------- features ---------- */
.features { display: grid; gap: clamp(48px, 7vw, 96px); }
.feature {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.08fr);
  gap: clamp(28px, 5vw, 60px); align-items: center;
}
.feature-reverse .feature-copy { order: 2; }
.feature-reverse .shot { order: 1; }
.feature-index {
  display: block; font-family: var(--mono); font-size: .8125rem;
  color: var(--blue-600); letter-spacing: .1em; margin-bottom: 12px;
}
.feature h3 { font-size: clamp(1.3125rem, 2.2vw, 1.625rem); margin-bottom: 14px; }
.feature-copy > p { color: var(--ink-2); max-width: 52ch; }
.feature-list { margin-top: 22px; display: grid; gap: 10px; }
.feature-list li {
  position: relative; padding-left: 26px; font-size: .9375rem; color: var(--slate);
}
.feature-list li::before {
  content: ""; position: absolute; left: 5px; top: .55em;
  width: 7px; height: 7px; background: var(--blue); border-radius: 1px;
}

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  border-top: 3px solid var(--blue);
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.125rem; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: .9375rem; }
.disclaimer {
  margin-top: 36px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--ink-3); border-radius: var(--radius);
  font-size: .875rem; color: var(--ink-2); max-width: 92ch;
}

/* ---------- waitlist ---------- */
.waitlist-section {
  background: linear-gradient(180deg, #0B1D30 0%, var(--navy) 100%);
  color: #EAF0F8;
}
.waitlist-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr);
  gap: clamp(36px, 6vw, 72px); align-items: center;
}
.waitlist-copy h2 { color: #fff; }
.waitlist-copy > p { color: #B9C8DC; font-size: 1.0625rem; max-width: 48ch; }
.waitlist-points { margin-top: 28px; display: grid; gap: 11px; }
.waitlist-points li { position: relative; padding-left: 26px; color: #A9BBD2; font-size: .9375rem; }
.waitlist-points li::before {
  content: ""; position: absolute; left: 4px; top: .58em;
  width: 8px; height: 8px; border: 2px solid var(--blue); border-radius: 2px;
}

.form-panel {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 34px);
  box-shadow: var(--shadow-lg);
}
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.req { color: var(--red); }
.opt { font-weight: 400; color: var(--ink-3); font-size: .8125rem; }
input, select, textarea {
  font: inherit; font-size: .9375rem; color: var(--ink);
  background: var(--surface);
  border: 1px solid #C9D3E2; border-radius: var(--radius);
  padding: 11px 13px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 96px; }
/* Match the native select to the text inputs. */
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235A6B80' stroke-width='2.5' 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 12px center;
}
input::placeholder, textarea::placeholder { color: #9AA8BC; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22,119,255,.16);
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(194,55,74,.16); }
.err { font-size: .8125rem; color: var(--red); font-weight: 500; }

#submitBtn { margin-top: 6px; }
.spinner { display: none; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite; }
.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin-top: 14px; font-size: .875rem; font-weight: 500; }
.form-status.is-error { color: var(--red); }
.form-fine { margin-top: 14px; font-size: .8125rem; color: var(--ink-3); }

.form-success { text-align: center; padding: 18px 4px 8px; }
.success-mark {
  width: 46px; height: 46px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--blue-050); color: var(--green);
  display: grid; place-items: center;
}
.success-mark svg { width: 24px; height: 24px; }
.form-success h3 { font-size: 1.25rem; margin-bottom: 8px; }
.form-success p { color: var(--ink-2); font-size: .9375rem; margin-bottom: 20px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #97A9C0; padding-top: clamp(44px, 6vw, 64px); }
.footer-inner {
  display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: clamp(28px, 5vw, 56px); padding-bottom: 40px;
}
.footer-brand img { height: 42px; width: auto; display: block; margin-bottom: 16px; }
.footer-brand p { font-size: .9375rem; max-width: 44ch; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-col { display: grid; gap: 9px; align-content: start; }
.footer-col h3 {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em;
  text-transform: uppercase; color: #8CA0B8; font-weight: 600; margin-bottom: 3px;
}
.footer-col a { color: #B4C3D6; font-size: .9375rem; }
.footer-col a:hover { color: #fff; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 20px 0 28px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .8125rem; color: #8CA0B8;
}
.footer-note { max-width: 58ch; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .feature, .waitlist-grid, .footer-inner { grid-template-columns: 1fr; }
  .feature-reverse .feature-copy, .feature-reverse .shot { order: initial; }
  .hero-visual { margin-top: 8px; }
  .cards { grid-template-columns: 1fr; }
  .waitlist-grid { gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .rail-inner { justify-content: flex-start; }
}

/* ---------- reveal on scroll (progressive enhancement) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .hero::after { display: none; }
  body { color: #000; }
}

/* ---------- honeypot ---------- */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- header nav spacing (Log in + Find out more) ---------- */
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > .btn { margin-left: 4px; }
@media (max-width: 720px) {
  .site-nav { gap: 10px; }
}

/* ---------- header buttons on the dark navy header ---------- */
.site-header .btn-ghost {
  color: #E6EDF7;
  border-color: rgba(255,255,255,.24);
  background: transparent;
}
.site-header .btn-ghost:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.42);
  color: #fff;
}
