/* Valley Medical Logistics — landing styles */

:root {
  /* 5-color structure. Blue is primary; orange is its natural complement,
     used as the accent so highlights pop against the blue chrome.
       1. Blue    #1d4ed8  primary: buttons, links
       2. Navy    #1e3a8a  structure: headings accents, hovers, skip link
       3. Orange  #ea580c  accent: kickers, step numbers, checklist, tagline
       4. Ink     #1a2233  text
       5. Neutral #f8f9fb / #ffffff  background / surfaces */
  --blue: #1d4ed8;
  --navy: #1e3a8a;
  --blue-soft: #dbeafe;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --orange-soft: #ffedd5;
  --ink: #1a2233;
  --muted: #55606e;
  --bg: #f8f9fb;
  --surface: #ffffff;
  --line: #dfe3ea;
  --ok: #067647;
  --ok-soft: #e5f4e9;
  --radius: 0.5rem;
  --radius-lg: 0.9rem;
  --shadow-sm: 0 1px 2px rgba(26, 34, 51, 0.06);
  --shadow-md: 0 6px 24px -8px rgba(26, 34, 51, 0.14);
  --shadow-lg: 0 24px 60px -20px rgba(30, 58, 138, 0.25);
  --container: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  /* Fluid scale: the whole site is rem-based, so scaling the root
     font with viewport width zooms the entire layout proportionally.
     16px up to 1280px-wide viewports (1.25vw = 16px at 1280), then
     proportional growth, capped at 24px (~1920px) so ultrawide
     monitors don't overblow it. Media-query rems always use the
     initial 16px, so breakpoints are unaffected. */
  font-size: clamp(16px, 1.25vw, 24px);
  scroll-behavior: smooth;
  /* Sticky header must not cover anchor-jump targets */
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  max-width: 100%;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Links, buttons, focus ---------- */

a {
  color: var(--blue);
}

a:hover {
  color: var(--navy);
}

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

.button {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button.secondary {
  background: transparent;
  color: var(--blue);
}

.button.secondary:hover {
  background: var(--blue-soft);
  color: var(--navy);
  box-shadow: none;
}

.button.large {
  padding: 0.85rem 1.9rem;
  font-size: 1.08rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

/* The logo is the bolded VML wordmark itself: always bold, always navy. */
.brand-mark {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--navy);
}

.brand-mark-sm {
  font-size: 1rem;
}

.brand-name {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.4rem;
  margin-left: auto;
}

.site-nav a:not(.button) {
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
}

.site-nav a:not(.button):hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.nav-signin {
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  cursor: pointer;
  line-height: 0;
  color: var(--navy);
}

/* ---------- Hero ---------- */

/* No overflow:hidden here — it would break position:sticky for the
   pinned ring inside .hero-loop. */
.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding: 3.25rem 0 3rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.3rem;
}

.eyebrow:hover {
  border-color: var(--blue);
  color: var(--navy);
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero .tagline {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--orange-dark);
  font-weight: 600;
}

.hero .lede {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.13rem;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* The hero's right-hand visual is the how-it-works ring (see the
   scroll-driven loop block further down). */

/* ---------- Sections ---------- */

.section {
  padding: 3.4rem 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h1,
.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section > .container > p {
  max-width: 46rem;
}

.section .kicker {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  /* orange-dark: --orange fails WCAG AA contrast at this text size */
  color: var(--orange-dark);
}

.section-head {
  max-width: 46rem;
}

.section-head.center {
  margin: 0 auto 1rem;
  text-align: center;
}

.section-head.center + p.center-sub {
  text-align: center;
  margin: 0 auto;
  max-width: 42rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: 1fr;
  margin-top: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.section.alt .card {
  background: var(--bg);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 700;
}

.checklist {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 46rem;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--orange);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M6.6 11.7 3.4 8.5l1.2-1.2 2 2 4.8-4.8 1.2 1.2z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M6.6 11.7 3.4 8.5l1.2-1.2 2 2 4.8-4.8 1.2 1.2z"/></svg>') center / contain no-repeat;
}

.notice {
  margin-top: 1.1rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 46rem;
}

.notice p {
  margin: 0;
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Pain points ("Sound Familiar?") ---------- */
/* Editorial rows: problem copy on one side, an illustrative vignette
   card on the other, alternating sides down the section. */

.pain-rows {
  margin-top: 1rem;
}

.pain-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 0;
}

.pain-copy h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pain-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
}

/* Vignette cards */

.vignette {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  box-shadow: var(--shadow-md);
  padding: 1.4rem 1.5rem;
}

.vg-title {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.vg-chip {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--orange-soft);
  color: var(--orange-dark);
  white-space: nowrap;
}

.vg-chip.solid {
  background: var(--orange);
  color: #ffffff;
}

.vg-chip.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

/* 1. Text thread */
.vg-chat {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chat-b {
  max-width: 85%;
  padding: 0.55rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.92rem;
}

.chat-b.left {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom-left-radius: 0.3rem;
}

.chat-b.right {
  align-self: flex-end;
  background: var(--blue);
  color: #ffffff;
  border-bottom-right-radius: 0.3rem;
}

/* 2. Out-of-office email */
.vg-email .vg-body {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Image vignette: bare illustration, no card chrome — the artwork's
   white background sits directly on the section. */
.vignette.vg-img {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

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

/* 3. Bin meters */
.vg-bin {
  display: grid;
  grid-template-columns: 8.5rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  padding: 0.55rem 0;
}

.vg-bin + .vg-bin {
  border-top: 1px solid var(--line);
}

.vg-bar {
  height: 0.7rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.vg-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.vg-bar.low i {
  background: var(--orange);
}

/* 4. Tedious software form */
.vg-field {
  margin-bottom: 0.7rem;
}

.vg-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.vg-skel {
  height: 1.7rem;
  border-radius: 0.45rem;
  background: var(--bg);
  border: 1px solid var(--line);
}

.vg-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.vg-btn {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* 5 & 6. Row lists (expired stock, inbox) */
.vg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.vg-row + .vg-row {
  border-top: 1px solid var(--line);
}

.vg-row .muted {
  color: var(--muted);
}

.vg-row.unread {
  font-weight: 600;
}

.vg-dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--orange);
}

.vg-foot {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

/* 7. Shelf SVG sits directly in the card */
.vg-shelf svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 58rem) {
  .pain-row {
    grid-template-columns: 1fr 1fr;
    column-gap: 4.5rem;
    padding: 1.9rem 0;
  }

  /* Alternate sides down the page. */
  .pain-row:nth-child(even) .pain-copy {
    order: 2;
  }
}

/* ---------- Solution ("The VML way") ---------- */
/* The blue answer to the orange pain section, styled like a modern
   product page: big split-tone head, a floating pill strip, three
   image-led feature cards, and a divided list for the rest. */

#solution .section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

#solution .section-head .accent {
  color: var(--blue);
}

/* The solution promise line leads the section — prominent, not muted. */
#solution .center-sub {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--ink);
}

/* Bare editorial flow: ghost numeral + copy on one side, the
   illustration floating cardless on the other, alternating sides. */
.sol-flow {
  margin-top: 1.6rem;
}

.sol-point {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 0;
}

.sol-num {
  /* Numbering hidden per review — markup retained so restoring the
     numerals is a one-line change. */
  display: none;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  /* rgba ghosts of the palette colors — solid tokens read as UI,
     soft tokens vanish on the gray section */
  color: rgba(29, 78, 216, 0.3);
  margin-bottom: 0.5rem;
}

.sol-point:nth-child(even) .sol-num {
  color: rgba(234, 88, 12, 0.42);
}

.sol-point h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.sol-point p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 32rem;
}

.sol-fig img {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  margin: 0 auto;
  /* Soft edge fade: melts the illustrations' white paper wash into
     the gray section so no rectangle edge shows. Two crossed linear
     fades intersected — every edge dissolves over a 7% band. */
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}

@media (min-width: 58rem) {
  .sol-point {
    grid-template-columns: 1.15fr 1fr;
    column-gap: 4rem;
    padding: 1.3rem 0;
  }

  .sol-point:nth-child(even) .sol-copy {
    order: 2;
  }
}

/* ---------- Browser frame + mock portal UI ---------- */

.frame {
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.frame-bar .dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--line);
}

.frame-bar .frame-url {
  margin-left: 0.5rem;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.frame-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.7rem 0 0;
}

.mock {
  padding: 1rem;
  background: var(--bg);
  font-size: 0.85rem;
}

.m-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.m-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
}

.m-tile .m-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.m-tile .m-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.m-tile.warn .m-num {
  color: var(--orange-dark);
}

.m-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.m-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  overflow-x: auto;
}

.m-card h4 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--navy);
}

.m-table {
  width: 100%;
  border-collapse: collapse;
}

.m-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  padding: 0.25rem 0.5rem 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.m-table td {
  padding: 0.42rem 0.5rem 0.42rem 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.m-table tr:last-child td {
  border-bottom: 0;
}

.m-meter {
  display: inline-block;
  width: 4.2rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  vertical-align: middle;
}

.m-meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.m-meter.low i {
  background: var(--orange);
}

.m-chip {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.m-chip.flag {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.m-chip.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.m-chip.blue {
  background: var(--blue-soft);
  color: var(--navy);
}

.m-cols {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 5.5rem;
  padding-top: 0.4rem;
}

.m-cols i {
  flex: 1;
  border-radius: 0.2rem 0.2rem 0 0;
  background: var(--blue);
  opacity: 0.9;
  min-height: 8%;
}

.m-cols-labels {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.3rem;
}

.m-cols-labels span {
  flex: 1;
  text-align: center;
  font-size: 0.66rem;
  color: var(--muted);
}

.m-bars .m-bar-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr 2rem;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
}

.m-bars .m-bar-row .m-bar {
  height: 0.6rem;
  border-radius: 999px;
  background: var(--blue-soft);
  overflow: hidden;
}

.m-bars .m-bar-row .m-bar i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 999px;
}

.m-bars .m-bar-row .m-val {
  color: var(--muted);
  text-align: right;
}

.m-donut-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.m-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
}

.m-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.m-legend .swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.2rem;
  flex: none;
}

/* ---------- Feature rows (portal tour) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: center;
  padding: 2.2rem 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--line);
}

.feature-row h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.feature-row p {
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.feature-row .mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-row .mini-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-row .mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--blue);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M6.6 11.7 3.4 8.5l1.2-1.2 2 2 4.8-4.8 1.2 1.2z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M6.6 11.7 3.4 8.5l1.2-1.2 2 2 4.8-4.8 1.2 1.2z"/></svg>') center / contain no-repeat;
}

.feature-row .frame {
  margin-top: 0;
  box-shadow: var(--shadow-md);
}

/* ---------- Phone mock (QR scan page) ---------- */

.scan-demo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.6rem;
}

.phone {
  width: min(19rem, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 0.8rem;
}

.phone-screen {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  overflow: hidden;
  background: var(--bg);
}

.phone-notch {
  width: 7rem;
  height: 1.1rem;
  margin: 0.45rem auto;
  border-radius: 999px;
  background: var(--line);
}

.scan-body {
  padding: 1.4rem 1.1rem 1.5rem;
  text-align: center;
}

.scan-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  margin-bottom: 0.9rem;
}

.scan-body h4 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
}

.scan-body .scan-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.1rem;
}

.scan-actions {
  display: grid;
  gap: 0.55rem;
}

.scan-actions .button {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

.scan-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.8rem 0 0;
}

/* ---------- Plain terms (prose) ---------- */

.plain-terms {
  max-width: 46rem;
  margin: 2.2rem auto 0;
}

.plain-terms p {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

.plain-terms p:first-child {
  font-size: 1.14rem;
}

.plain-terms p:last-child {
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 46rem;
  margin-top: 1.4rem;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--blue);
  line-height: 1;
  transition: transform 0.18s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 1.15rem 1rem;
  color: var(--muted);
}

/* ---------- Big CTA ---------- */

.cta-panel {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2.6rem 1.5rem;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
  color: #ffffff;
  margin: 0 0 0.6rem;
}

.cta-panel p {
  color: var(--blue-soft);
  max-width: 38rem;
  margin: 0 auto 1.4rem;
}

.cta-panel .cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.cta-panel .button {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--navy);
}

.cta-panel .button:hover {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
  color: var(--navy);
}

.cta-panel .button.secondary {
  background: transparent;
  color: #ffffff;
}

.cta-panel .button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Blue outline is invisible on the navy panel */
.cta-panel :focus-visible {
  outline-color: #ffffff;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- How it works: scroll-driven loop (hero visual) ----------
   The ring IS the hero's right-hand visual. The hero copy and the six
   step blocks flow naturally in the left column; the ring pins while
   they scroll past — nothing ever intercepts or fakes scrolling.
   Mobile: compact ring pins to the top between the hero copy and the
   steps. Without JS the blocks read top-to-bottom and the ring is a
   static diagram. */

.hero-loop {
  /* Finish the surface->bg fade within the first screen so the pinned
     ring's backdrop matches the section further down. */
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 30rem);
  padding-bottom: 1.5rem;
  /* clip (not hidden — hidden would kill the sticky ring) on BOTH
     axes: horizontally it contains stray label pixels; vertically it
     stops parallax-shifted cards (which paint above later sections'
     backgrounds) from floating over the next section — they get
     clipped at the section edge instead. */
  overflow: clip;
}

.hero-loop .container {
  display: block;
}

.hiw-ring-col {
  position: sticky;
  top: 3.4rem;
  z-index: 5;
  margin-top: 2.2rem;
  background: var(--bg);
}

.hiw-ring-wrap {
  display: flex;
  justify-content: center;
  padding: 0.8rem 0 1rem;
}

.hiw-ring {
  position: relative;
  /* 42vh cap keeps the pinned ring from monopolizing short (landscape)
     viewports — reading space must remain below it. */
  width: min(15rem, 78vw, 42vh);
  aspect-ratio: 1;
}

.hiw-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#hiw-arc {
  transition: stroke-dashoffset 0.6s ease;
}

/* Direction chevrons: visible while nothing is selected (idle), gone
   once the visitor reaches the first step. */
.hiw-arrows {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hiw-ring.idle .hiw-arrows {
  opacity: 1;
}

.hiw-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Steps the arc has already swept past: a quiet blue trail. */
.hiw-node.done {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
  color: var(--navy);
}

.hiw-node.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.16);
  /* Halo in the existing soft blue — reads as a glow without leaving
     the palette. */
  box-shadow: 0 0 0 6px var(--blue-soft), var(--shadow-md);
}

/* Node centers: step 1 at 12 o'clock, clockwise. Ring radius is
   170/460 = 36.96% of the box. */
.hiw-node.n1 { left: 50%;     top: 13.04%; }
.hiw-node.n2 { left: 82.01%;  top: 31.52%; }
.hiw-node.n3 { left: 82.01%;  top: 68.48%; }
.hiw-node.n4 { left: 50%;     top: 86.96%; }
.hiw-node.n5 { left: 17.99%;  top: 68.48%; }
.hiw-node.n6 { left: 17.99%;  top: 31.52%; }

.hiw-label {
  display: none;
  position: absolute;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.hiw-label.active {
  color: var(--ink);
  font-weight: 500;
}

.hiw-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 3.6rem;
  pointer-events: none;
}

.hiw-center-tagline {
  display: none;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  max-width: 11rem;
}

.hiw-center-step {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transition: opacity 0.15s ease;
}

.hiw-center-step.swap {
  opacity: 0;
}

/* The removed eyebrow pill used to occupy ~3.4rem above the headline;
   keep the headline where it was. */
.hero-loop .hero-copy {
  margin-top: 3.4rem;
}

/* One-phrase headline: slightly smaller so it wraps to three lines
   instead of a skinny five-line stack. */
.hero-loop h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
}


.button.accent {
  background: var(--orange);
  border-color: var(--orange);
}

.button.accent:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

/* Scroll prompt + CTA share one row in the hero, joined by "or" */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  margin-top: 0.4rem;
}

.hero-or {
  color: var(--muted);
  font-weight: 500;
}

/* Hero scroll prompt */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.scroll-cue:hover {
  color: var(--blue);
}

.scroll-cue .sc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--navy);
  animation: sc-bob 2s ease-in-out infinite;
}

@keyframes sc-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(0.4rem);
  }
}

.hiw-steps {
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
  /* Anchor target for the hero scroll prompt; positioned so the
     cards' offsetTop (used by the parallax engine for untransformed
     positions) is measured against this box. */
  position: relative;
  scroll-margin-top: 20rem;
}

/* Keep-scrolling cue below the focused card: JS sets its top; the
   top transition makes it glide softly between cards. */
.hiw-more {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, top 0.35s ease;
}

.hiw-more.show {
  opacity: 1;
}

.hiw-more .sc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--blue-soft);
  color: var(--navy);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.15s ease, color 0.15s ease;
  animation: sc-bob 2s ease-in-out infinite;
}

.hiw-more .sc-icon:hover {
  background: var(--blue);
  color: #ffffff;
}

/* Each step is a card that carries the story — no section heading,
   no step numbers. */
.hiw-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.4rem;
  /* Anchor jumps (incl. no-JS) must clear the pinned mobile ring. */
  scroll-margin-top: 21rem;
  /* transform and opacity are driven per-frame by the parallax engine
     (lerped in JS) — deliberately NOT in the transition list. */
  transition: box-shadow 0.3s ease;
  transform-origin: center;
  will-change: transform, opacity;
}

.hiw-step.active {
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* With JS, the inactive cards recede so the moving text and the ring
   read as one linked mechanism. Opacity only — the text stays real,
   selectable, and visible to assistive tech. */
html.js .hiw-step {
  opacity: 0.45;
}

html.js .hiw-step.active {
  opacity: 1;
}

.hiw-step h3 {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
}

.hiw-step > p {
  margin: 0;
  color: var(--muted);
}

.hiw-step .checklist {
  margin-top: 1.1rem;
}

.hiw-step .checklist li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}


@media (min-width: 58rem) {
  /* The loop hero runs a little wider than the site container so the
     enlarged ring has room without squeezing the story cards. */
  .hero-loop > .container {
    max-width: 78rem;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas:
      "copy ring"
      "steps ring";
    column-gap: 4.25rem;
    align-items: start;
  }

  .hero-loop .hero-copy {
    grid-area: copy;
  }

  .hiw-ring-col {
    grid-area: ring;
    position: static;
    margin-top: 0;
    background: transparent;
    align-self: stretch;
  }

  /* Pins toward the top on laptop heights and vertically centers on
     tall viewports, pushed toward the right edge; the copy and the
     six step cards scroll past in the left column. */
  .hiw-ring-wrap {
    position: sticky;
    top: max(4.6rem, calc(50vh - 19.5rem));
    justify-content: flex-end;
    /* Right padding keeps the side labels inside the page; a touch
       more of it at narrow desktop widths where the ring shrinks. */
    padding: 1.5rem 3.75rem 1.5rem 0;
  }

  /* Fill the first screen with the hero copy so no card is visible
     until the visitor starts scrolling; center the copy in that band
     so tall viewports split the slack instead of stacking it all
     below the content. */
  .hero-loop .hero-copy {
    min-height: calc(100vh - 11rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centering supersedes the fixed eyebrow-era top offset */
    margin-top: 0;
  }

  .hiw-steps {
    grid-area: steps;
    margin-top: 2.5rem;
    scroll-margin-top: 6rem;
    /* The fade engine maps opacity to distance-from-focus in viewport
       halves, so a resting neighbor is fully faded only when card
       pitch (height + gap) reaches ~44vh minus half the neighbor's
       height. On tall viewports the cards alone fall short, so the
       row gap tops up the difference (sized against the shortest
       card, ~16rem, with cushion) — the gap is invisible in fade
       mode and keeps per-gesture travel near the glide tuning. */
    row-gap: max(1.1rem, calc(44vh - 22rem));
    /* Runway below the last card: while any card is in focus the next
       section stays below the fold; the exit gesture then pulls it
       fully up (the scroll lock's final snap target). */
    padding-bottom: 40vh;
  }

  .hiw-ring {
    width: min(33rem, calc(100% - 4rem));
  }

  .hiw-node {
    width: 5rem;
    height: 5rem;
  }

  .hiw-node svg {
    width: 1.8rem;
    height: 1.8rem;
  }

  .hiw-label {
    display: block;
    font-size: 0.9rem;
    line-height: 1.3;
  }

  /* Labels sit clear of the nodes (5rem wide, scaling to ~5.8rem when
     active). Side labels wrap inside a narrow box so the longer titles
     never push past the page edge. */
  .hiw-label.l1 { left: 50%;    top: 13.04%; transform: translate(-50%, calc(-50% - 4.5rem)); }
  .hiw-label.l4 { left: 50%;    top: 86.96%; transform: translate(-50%, calc(-50% + 4.5rem)); }
  .hiw-label.l2 { left: calc(82.01% + 3.4rem); top: 31.52%; transform: translate(0, -50%); white-space: normal; width: 6rem; }
  .hiw-label.l3 { left: calc(82.01% + 3.4rem); top: 68.48%; transform: translate(0, -50%); white-space: normal; width: 6rem; }
  .hiw-label.l5 { right: calc(82.01% + 3.4rem); top: 68.48%; transform: translate(0, -50%); text-align: right; white-space: normal; width: 7.5rem; }
  .hiw-label.l6 { right: calc(82.01% + 3.4rem); top: 31.52%; transform: translate(0, -50%); text-align: right; white-space: normal; width: 7.5rem; }

  .hiw-ring-wrap {
    padding-right: 4.75rem;
  }

  @media (min-width: 66rem) {
    .hiw-ring-wrap {
      padding-right: 4rem;
    }

    .hiw-label.l2,
    .hiw-label.l3 {
      width: 7.5rem;
    }
  }

  .hiw-center-tagline {
    display: block;
  }

  .hiw-center-step {
    display: none;
  }

  .hiw-step {
    scroll-margin-top: 6rem;
  }

}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 1.1rem;
}

.contact-details p {
  margin: 0 0 0.75rem;
}

.contact-details strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 0.7rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

/* Honeypot: hidden from humans, present for bots. Not display:none so
   naive bots still fill it; removed from AT and tab order. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Stays in the DOM (and the accessibility tree) at all times so the
   role=status live region reliably announces; collapses when empty. */
.form-status {
  margin: 0;
  border-radius: 0.5rem;
  font-weight: 500;
}

.form-status.ok,
.form-status.err {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
}

.form-status.ok {
  background: #e5f4e9;
  color: #14532d;
}

.form-status.err {
  background: #fbeaea;
  color: #7f1d1d;
}

.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2.2rem 0 1.6rem;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}

.footer-brand p {
  margin: 0.6rem 0 0;
  max-width: 24rem;
  font-size: 0.92rem;
}

.footer-col h3 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.footer-col nav {
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer-base {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
}

/* ---------- 404 ---------- */

.error-page {
  text-align: center;
  padding: 3rem 0;
}

.error-page h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 0.75rem;
}

.error-page p {
  color: var(--muted);
  margin: 0 0 2rem;
}

/* ---------- Scroll reveal ----------
   Hidden state applies only when JS has tagged <html> with .js, so
   no-JS visitors always see the content. */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Utilities & responsive ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #ffffff;
  padding: 0.6rem 1rem;
  z-index: 30;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
  left: 0;
  color: #ffffff;
}

@media (min-width: 40rem) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }


  .assure-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .m-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .m-cards {
    grid-template-columns: 1.25fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .assure-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .scan-demo {
    grid-template-columns: 1fr 1.2fr;
  }

  .feature-row {
    grid-template-columns: 1fr 1.35fr;
  }

  .feature-row.flip {
    grid-template-columns: 1.35fr 1fr;
  }

  .feature-row.flip .feature-copy {
    order: 2;
  }
}

/* The full nav row (brand + five items) doesn't fit until ~58rem, so
   the hamburger persists through tablet widths to avoid a wrapped
   header. */
@media (max-width: 57.99rem) {
  .m-table td {
    white-space: normal;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.4rem 0 0.8rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a:not(.button) {
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .button {
    margin-top: 0.6rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .button {
    transition: none;
  }

  #hiw-arc,
  .hiw-node,
  .hiw-label,
  .hiw-center-step,
  .hiw-step {
    transition: none;
  }

  .hiw-arrows {
    transition: none;
  }

  .scroll-cue .sc-icon,
  .hiw-more .sc-icon {
    animation: none;
  }
}
