/* Amwell marketing site — faithful clone of the Wix design.
   Wix serves its own "Madefor" typeface; we approximate with a geometric
   system stack rather than pulling a webfont (CSP-free, no external request). */

:root {
  --ink: #000;
  --muted: #5b5b5b;
  --line: #e4e4e4;
  --bg: #fff;
  --bg-alt: #f7f7f8;
  --pill: rgba(255, 255, 255, 0.82);
  --max: 1180px;
  --radius: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 18px; }
h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
p { margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 16px 0 auto; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  background: var(--pill);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-radius: var(--radius);
  padding: 8px 8px 8px 20px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.10);
  max-width: calc(100vw - 32px);
}
.nav-logo img { height: 34px; width: auto; }
/* Transparent wrapper on desktop — the pill's flex children stay the links and
   the button, exactly as before. It only becomes a real box at mobile. */
.nav-menu { display: contents; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link {
  text-decoration: none; font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap; color: #1a1a1a;
}
.nav-link:hover { opacity: 0.6; }
.nav-link.is-active {
  background: #e8836f; color: #fff; padding: 8px 14px; border-radius: var(--radius);
}
.btn-contact {
  background: #000; color: #fff; text-decoration: none;
  font-size: 13px; letter-spacing: 0.06em; padding: 12px 20px;
  border-radius: var(--radius); white-space: nowrap;
}
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(20, 28, 60, 0.28); }
.hero-text {
  position: absolute; inset: auto 0 22% 0;
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.hero-text h1 { color: #fff; margin: 0; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.page-top { padding-top: 150px; }

.research-grid {
  display: grid; gap: 28px; margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.research-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.research-num { font-size: 13px; color: var(--muted); }
.research-count {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

.values { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.values li {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 26px; font-size: 18px;
}

.jobs { margin-top: 32px; display: grid; gap: 14px; }
.job {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--line); padding: 20px 0;
}
.job h3 { margin: 0; font-size: 20px; }
.btn-apply, .btn-read, .btn-info, .btn-fetch {
  display: inline-block; background: #000; color: #fff; text-decoration: none;
  font-size: 13px; letter-spacing: 0.06em; padding: 11px 22px; border: 0;
  border-radius: 4px; cursor: pointer; font-family: inherit;
}
.btn-apply:hover, .btn-read:hover, .btn-info:hover, .btn-fetch:hover { opacity: 0.85; }

.blog-grid { display: grid; gap: 28px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.blog-card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.blog-card h3 { font-size: 21px; }

/* ---------- products ---------- */
.product-grid {
  display: grid; gap: 56px 32px; margin-top: 56px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.product-tile { text-align: center; }
.product-img {
  height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.product-img img { max-height: 220px; width: auto; object-fit: contain; }
.product-tile h2 { font-size: 27px; margin-bottom: 16px; }

/* ---------- product detail ---------- */
.product-detail-head {
  display: grid; gap: 40px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.product-hero-img img { max-height: 340px; width: auto; margin: 0 auto; }
.cert-box { margin-top: 8px; }
.cert-form { display: grid; gap: 18px; max-width: 340px; }
.cert-form label { display: grid; gap: 8px; font-size: 15px; }
.req { color: #c0392b; }
.cert-form input {
  border: 1px solid #000; border-radius: 2px; padding: 12px 14px;
  font-size: 16px; font-family: inherit; background: #fff;
}
.cert-form input[readonly] { background: #fafafa; color: #333; }
.cert-form .btn-fetch { justify-self: start; }
.cert-msg { margin: 0; font-size: 15px; min-height: 22px; }
.cert-msg.is-error { color: #c0392b; }
.cert-msg.is-ok { color: #1e7a45; }

.prose { margin-top: 56px; max-width: 78ch; }
.prose h3 { margin-top: 34px; }
.prose li { margin-bottom: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-alt); padding: 80px 0 48px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; gap: 28px; margin: 32px 0;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.fine { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

.contact-form { display: grid; gap: 14px; max-width: 380px; margin: 8px 0 28px; }
.contact-form label { display: grid; gap: 7px; font-size: 15px; }
.contact-form label.row { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.contact-form input[type="email"] {
  border: 1px solid #000; border-radius: 2px; padding: 12px 14px;
  font-size: 16px; font-family: inherit; background: #fff;
}
.contact-form button { justify-self: start; }
.contact-msg { margin: 0; font-size: 14px; min-height: 20px; }
.contact-msg.is-error { color: #c0392b; }
.contact-msg.is-ok { color: #1e7a45; }
/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .btn-contact { display: none; }
  .nav-pill { padding: 8px 16px; }
  .site-header { justify-content: space-between; padding: 0 16px; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; pointer-events: auto;
    background: rgba(255,255,255,0.9); border: 0; border-radius: 50%;
    width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: #000; display: block; }

  /* `backdrop-filter` creates a containing block for absolutely-positioned
     descendants — same as `transform` does. With it on, the drawer's
     `right: 16px` anchored to the ~205px pill instead of the header and hung
     off the left edge of the screen with every label clipped. The blur is
     decorative on a pill that only holds the logo at this width, so drop it
     here and let .site-header be the containing block. */
  .nav-pill { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

  /* The whole menu is one box, so the links and the CONTACT US button cannot
     overlap each other — they did when both were positioned independently. */
  .site-header.is-open .nav-menu {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 64px; right: 16px; left: auto;
    min-width: 210px; max-width: calc(100vw - 32px);
    background: #fff; padding: 20px 24px; border-radius: 14px; gap: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.14); pointer-events: auto;
  }
  .site-header.is-open .nav-links {
    display: flex; flex-direction: column; gap: 16px; position: static;
  }
  .site-header.is-open .nav-link { white-space: nowrap; text-align: center; }
  .site-header.is-open .btn-contact { display: block; text-align: center; }
  .section { padding: 64px 0; }
  .page-top { padding-top: 120px; }
  .product-detail-head { grid-template-columns: 1fr; }
  .hero { height: 78vh; }
}
