/* Neurepas marketing site
   Tokens come from the Waypoint (3A) brand kit, extended with one restrained
   accent, a warm sand, and an elevation scale. Do not add colors outside this set. */

:root {
  /* Brand */
  --slate: #2F3F63;
  --slate-deep: #253352;
  --slate-muted: #5A6B8C;
  --ink: #22201D;
  --paper: #F0ECE4;
  --stone: #6F6A61;
  --ink-soft: #3D3934;            /* running text: leads and card copy */
  --stone-deep: #57524A;          /* small secondary text: labels, notes, captions */

  /* Extended surfaces */
  --surface: #FAF8F5;              /* cards sit slightly above the paper */
  --card: #FFFFFF;                 /* cards and panels on the home page */
  --sand: #E4DED3;                 /* warm gray for dividers and fills */
  --rule: rgba(34, 32, 29, 0.2);
  --rule-soft: rgba(34, 32, 29, 0.12);
  --slate-tint: rgba(47, 63, 99, 0.06);
  --slate-tint-2: rgba(47, 63, 99, 0.10);

  /* The one accent, reserved for status and interactive affordances. */
  --accent: #2E6F5E;
  --accent-soft: rgba(46, 111, 94, 0.12);

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(34, 32, 29, 0.04), 0 2px 8px rgba(34, 32, 29, 0.04);
  --shadow-2: 0 2px 4px rgba(34, 32, 29, 0.04), 0 12px 28px rgba(34, 32, 29, 0.08);
  --shadow-3: 0 8px 20px rgba(34, 32, 29, 0.07), 0 30px 60px rgba(34, 32, 29, 0.12);

  --font-head: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --site-max: 90rem;
  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Spacing. Every gap between sections, and between the blocks inside one,
     comes from these. Each runs from its phone value (390px wide) to its
     desktop value (1440px wide).
       --space-band   inside a section, top and bottom               40 to 56
       --space-join   top of a section that follows another on the
                      same background; with the band above it the
                      two sit 48 to 72 apart                         8 to 16
       --space-hero   under the page's opening block                 28 to 32
       --space-block  between two blocks inside a section            24 to 32
       --space-head   from a section's heading to its first block    24 to 28 */
  --space-band: clamp(2.5rem, 2.129rem + 1.524vw, 3.5rem);    /* 40 to 56 */
  --space-join: clamp(0.5rem, 0.314rem + 0.762vw, 1rem);       /* 8 to 16 */
  --space-hero: clamp(1.75rem, 1.657rem + 0.381vw, 2rem);      /* 28 to 32 */
  --space-block: clamp(1.5rem, 1.314rem + 0.762vw, 2rem);      /* 24 to 32 */
  --space-head: clamp(1.5rem, 1.407rem + 0.381vw, 1.75rem);    /* 24 to 28 */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;   /* no heading ends on one short word */
}

h1 { font-size: clamp(2.35rem, 4.6vw, 3.5rem); max-width: 15ch; }
/* In em, not ch: a ch is measured from whichever font is showing, so before
   the web font arrives the limit came out narrower and a heading could wrap
   differently on a first visit. 13.55em is 20ch in Instrument Sans. */
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); max-width: 13.55em; }
h3 { font-size: 1.1875rem; letter-spacing: -0.02em; line-height: 1.25; }

p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
p + p { margin-top: 1em; }
sup { line-height: 0; }   /* a source number never pushes its line down */
a[href^="tel:"] { white-space: nowrap; }   /* a phone number never breaks across lines */

.muted { color: var(--stone-deep); }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft); }

/* Eyebrow */

.eyebrow {
  font-family: var(--font-body);
  color: var(--stone-deep);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--stone);
  opacity: 0.5;
  flex: none;
}

/* Layout */

.wrap {
  max-width: var(--site-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--space-band); padding-bottom: var(--space-band); }
/* Two sections in a row on the paper background would stack both paddings.
   The second one takes the short top instead. */
.section:not(.band-tint, .band-dark, .cta-band, .band-light, .band-sand) + .section:not(.band-tint, .band-dark, .cta-band, .band-light, .band-sand) { padding-top: var(--space-join); }
.section-head { max-width: 46rem; }
.section-head h2 + p { margin-top: 1.25rem; }

/* Blocks inside a section. Each block sits one block gap under the one
   before it, and the first block sits closer to the section head. A small
   label (.block-label, .section-label) belongs to the block right under it. */
.card-grid, .path-grid, .rail, .badges, .ui-fragments, .stage, .shot, .sources, .band-cta, .block-label { margin-top: var(--space-block); }
.section-head + :is(.card-grid, .path-grid, .rail, .badges, .shot, .block-label) { margin-top: var(--space-head); }
:is(.block-label, .section-label) + :is(.card-grid, .rail, .ui-fragments) { margin-top: 0; }

/* Header: sticky and frosted once the page scrolls. */

.site-header-outer {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header-outer.is-stuck {
  background: rgba(240, 236, 228, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--rule-soft);
  box-shadow: 0 1px 20px rgba(34, 32, 29, 0.05);
}

.site-header {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3125rem;
  letter-spacing: -0.035em;
  flex: none;
}
.brand img { width: 28px; height: 28px; }

.site-nav { display: flex; gap: 2rem; margin-left: auto; align-items: center; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  position: relative;
  padding: 0.25rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--slate);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a.button::after { display: none; }
/* .site-nav a sets Ink and outranks .button on specificity, which left the
   nav CTA as dark text on a navy fill. Restate the button colours here. */
.site-nav a.button { color: #fff; }
.site-nav a.button:hover { color: #fff; }
.nav-cta { margin-left: 0.5rem; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--slate);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--slate);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  box-shadow: var(--shadow-1);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.button:hover {
  background: var(--slate-deep);
  border-color: var(--slate-deep);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.button.small { font-size: 0.875rem; padding: 0.5rem 0.9rem; }

.button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--slate);
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.8rem 0.25rem;
}
.button-ghost .arrow { transition: transform 0.25s var(--ease); }
.button-ghost:hover { text-decoration: none; }
.button-ghost:hover .arrow { transform: translateX(4px); }

/* Chip: the status pill on the access page */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--stone-deep);
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 100px;
  padding: 0.35rem 0.8rem;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ============ HERO ============ */

.hero {
  position: relative;
  overflow-x: clip;   /* the glow and grid bleed, but never past the viewport */
  padding-top: clamp(1rem, 2.5vw, 2.25rem);
  padding-bottom: var(--space-hero);
}
/* The hero carries the whole gap to the section under it. */
.hero + .section:not(.band-tint, .band-dark, .cta-band) { padding-top: 0; }
.hero-grid {
  display: grid;
  /* The copy column is the wider one: the home headline needs about 9.9em
     of width to run four lines, and this ratio gives it that from 961px up. */
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem 3rem;
  align-items: center;
}
.hero-copy { min-width: 0; }
/* Four lines or fewer on a desktop, five or fewer on a phone. The limit is
   in em, not ch: a ch is measured from whichever font is showing, so on a
   first visit, before the web font arrives, 15ch came out about 100px
   narrower and stayed that way, and the headline ran five lines. 10.16em is
   the same width as 15ch in Instrument Sans. */
.hero h1 { max-width: 10.16em; }
/* A painted underline rather than a pseudo element, so the phrase can wrap
   across lines and still be underlined on each one. */
.hero h1 .accent-word {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% 0.05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: underline-in 0.9s var(--ease) 0.6s forwards;
}
@keyframes underline-in { to { background-size: 100% 0.05em; } }
/* The second sentence of the headline starts on its own line where the
   column is wide enough to hold it in two lines. On a phone it would end
   on a single short word, so there the headline wraps as one piece. */
@media (min-width: 761px) {
  .hero h1 .accent-word::before { content: "\A"; white-space: pre; }
}

.hero h1 + .lead { margin-top: 1.5rem; }
.hero .actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

/* The product composition: a framed screenshot with a glow and a grid behind
   it and four status cards around it. It opened the home page until Nov 2026
   and now closes the two-paths section, which is why its classes say hero. */
.stage { margin-left: 0; margin-right: 0; margin-bottom: 0; }
.has-stage { overflow-x: clip; }   /* the glow bleeds, but never past the viewport */
.hero-stage { position: relative; min-width: 0; width: min(47.5rem, 76%); margin: 0 auto; }
.stage figcaption { margin-top: 1.75rem; text-align: center; font-size: 0.9375rem; }
.hero-glow {
  position: absolute;
  inset: -18% -22% -22% -12%;
  background:
    radial-gradient(46% 46% at 62% 38%, rgba(47, 63, 99, 0.16), transparent 70%),
    radial-gradient(40% 40% at 28% 74%, rgba(46, 111, 94, 0.10), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  animation: glow-drift 16s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-1.5%, 2%, 0) scale(1.05); }
}
.hero-grid-lines {
  position: absolute;
  inset: -10% -14%;
  background-image:
    linear-gradient(to right, rgba(34, 32, 29, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 32, 29, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(58% 58% at 50% 45%, #000 40%, transparent 78%);
  mask-image: radial-gradient(58% 58% at 50% 45%, #000 40%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

/* Browser frame */

.frame {
  position: relative;
  z-index: 2;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-3);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: linear-gradient(to bottom, #FBFAF8, #F3F0EA);
  border-bottom: 1px solid var(--rule-soft);
}
.frame-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(34, 32, 29, 0.16); flex: none; }
.frame-bar .frame-url {
  width: auto;
  height: 16px;
  flex: 1;
  margin-left: 10px;
  border-radius: 4px;
  background: rgba(34, 32, 29, 0.05);
}
.frame img { border: 0; border-radius: 0; }

.hero-shot { position: relative; z-index: 2; animation: float-slow 9s ease-in-out infinite; }
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.hero-shot .frame img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: left top;
}

/* Floating product notifications */

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  box-shadow: var(--shadow-2);
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
  animation: float-card 7s ease-in-out infinite;
}
.float-card .fc-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--slate-tint);
  display: grid;
  place-items: center;
  flex: none;
}
.float-card .fc-icon svg { width: 15px; height: 15px; display: block; }
.float-card strong { font-weight: 500; display: block; color: var(--ink); font-size: 0.8125rem; }
.float-card em { font-style: normal; color: var(--stone-deep); font-size: 0.75rem; }
.float-card.is-done .fc-icon { background: var(--accent-soft); }

.fc-1 { top: 4%;  left: -13%; animation-delay: 0s; }
.fc-2 { top: 33%; right: -11%; animation-delay: 1.4s; }
.fc-3 { bottom: 20%; left: -16%; animation-delay: 2.6s; }
.fc-4 { bottom: 2%; right: -7%; animation-delay: 3.6s; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* The path that links the floating cards back to the product. */
.hero-links {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.hero-links path {
  fill: none;
  stroke: var(--slate);
  stroke-width: 1;
  stroke-opacity: 0.28;
  stroke-dasharray: 5 7;
  animation: dash-flow 5s linear infinite;
}
@keyframes dash-flow { to { stroke-dashoffset: -48; } }

/* ============ NODE WORKFLOW (Neurepas Connect, on the How It Works page) ============ */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem 4.5rem;
  align-items: start;
}
/* Sized for a short paragraph rather than a single line. */
.pull {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.1875rem, 1.7vw, 1.4375rem);
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 1.5rem 0 0;
  max-width: 20.31em;   /* 30ch in Instrument Sans, in em so it holds before the web font loads */
  border-left: 2px solid var(--accent);
  padding-left: 1.15rem;
}
/* Scoped past .why-copy p, which sets 1rem and would otherwise win. */
.why-copy p.source { font-size: 0.8125rem; line-height: 1.5; margin-top: 1.5rem; }
.why-copy { margin-top: 1.75rem; }
.why-copy p { color: var(--stone-deep); font-size: 1rem; }

.flow { display: grid; gap: 0; position: relative; }
.flow-node {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  align-items: start;
  position: relative;
  padding-bottom: 1.5rem;
}
.flow-node:last-child { padding-bottom: 0; }
.flow-node::before {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 2.25rem;
  bottom: -0.25rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--rule), var(--rule-soft));
}
.flow-node:last-child::before { display: none; }
.flow-dot {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-1);
}
.flow-dot svg { width: 17px; height: 17px; display: block; }
.flow-body { padding-top: 0.35rem; }
.flow-body h3 { font-size: 1rem; }
.flow-body p { font-size: 0.9375rem; color: var(--stone-deep); margin-top: 0.15rem; max-width: 30rem; }
.flow-node.is-problem .flow-dot { border-color: rgba(34, 32, 29, 0.2); background: var(--sand); }
.flow-node.is-win .flow-dot { border-color: var(--accent); background: var(--accent-soft); }

/* ============ CARDS ============ */

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--rule);
}
.card .icon { width: 30px; height: 30px; display: block; margin-bottom: 0.35rem; }
.card p { max-width: none; font-size: 0.9375rem; color: var(--ink-soft); }

/* The extra line that appears on hover. */
.card .reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s var(--ease), opacity 0.3s var(--ease);
}
.card .reveal > span { overflow: hidden; font-size: 0.875rem; color: var(--slate); }
.card:hover .reveal, .card:focus-within .reveal { grid-template-rows: 1fr; opacity: 1; }

/* Small print: the help line and other notes. After .card p so it wins there. */
p.source { font-size: 0.8125rem; line-height: 1.5; color: var(--stone-deep); }

/* ============ SOLUTION CARDS ============ */

.solution {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.solution:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--rule); }
.solution-art {
  height: 118px;
  background: var(--slate-tint);
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  overflow: hidden;
}
.solution-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.solution-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.solution-body p { max-width: none; font-size: 0.9375rem; color: var(--ink-soft); }
.solution-body .button-ghost { margin-top: auto; padding: 0.4rem 0; font-size: 0.9375rem; }

/* ============ TILES AND THE STEP RAIL ============ */

.ui-fragments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.fragment {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.fragment:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.fragment .fr-icon { width: 26px; height: 26px; border-radius: 7px; background: var(--slate-tint); display: grid; place-items: center; flex: none; }
.fragment .fr-icon svg { width: 15px; height: 15px; }
.fragment .fr-label { font-size: 0.875rem; font-weight: 500; }
.fragment .fr-meta { font-size: 0.75rem; color: var(--stone-deep); }

/* Horizontal step rail */

.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}
.rail::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 1.1rem;
  height: 1px;
  background: var(--rule);
}
.rail-step { position: relative; padding-top: 3rem; }
.rail-step .rail-dot {
  position: absolute;
  top: 0; left: 0;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-head);
  color: var(--slate);
  box-shadow: 0 0 0 5px var(--paper);
}
.rail-step:last-child .rail-dot { border-color: var(--accent); color: var(--accent); }
.rail-step h3 { font-size: 1rem; }
.rail-step p { font-size: 0.875rem; color: var(--stone-deep); margin-top: 0.25rem; max-width: 18rem; }

/* ============ TRUST BAND (dark) ============ */

.band-dark {
  background: var(--slate);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.band-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 60% at 82% 12%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(30% 50% at 8% 96%, rgba(46, 111, 94, 0.18), transparent 72%);
  pointer-events: none;
}
.band-dark > * { position: relative; z-index: 1; }
.band-dark h2 { color: #fff; }
.band-dark .eyebrow { color: rgba(240, 236, 228, 0.7); }
.band-dark .eyebrow::before { background: rgba(240, 236, 228, 0.5); }
.band-dark .lead { color: rgba(240, 236, 228, 0.92); }

.badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.badge {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.045);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.badge:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.badge svg { width: 22px; height: 22px; flex: none; }
/* The last badge spans the row so the grid never leaves an orphan. */
.badge-wide { grid-column: 1 / -1; }
.badge span { font-size: 0.9375rem; color: #fff; line-height: 1.35; }

/* ============ CLOSING CTA ============ */

/* A band of its own on the inner pages. On the home page the same call to
   action closes the trust band (.band-cta), under a hairline. */
.cta-band { background: var(--slate); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p, .band-cta p { color: rgba(240, 236, 228, 0.85); margin-top: 1rem; }
.cta-band .button, .band-cta .button { background: #fff; color: var(--slate); border-color: #fff; }
.cta-band .button { margin-top: 2rem; }
.cta-band .button:hover, .band-cta .button:hover { background: var(--paper); border-color: var(--paper); }
.band-cta {
  padding-top: var(--space-block);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 3rem;
}
.band-cta .button { flex: none; }

/* ============ HOW IT WORKS PAGE ============ */

.shot figure { margin: 0; }
.shot img { width: 100%; background: #fff; }
.shot figcaption {
  margin-top: 1.25rem;
  max-width: none;
  text-align: center;
  color: var(--stone-deep);
  font-size: 0.9375rem;
}

/* Two column intro pattern kept for the platform and contact pages */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem 4rem;
  align-items: start;
}

.about { max-width: var(--measure); }
.about p + p { margin-top: 1em; }

/* ============ CONTACT ============ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem 5rem;
  align-items: start;
  margin-top: var(--space-head);
}
.contact-grid p + p { margin-top: 1.25rem; }

form { display: grid; gap: 1.25rem; max-width: 34rem; }
label { display: block; font-weight: 500; margin-bottom: 0.4rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--stone);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(47, 63, 99, 0.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
form .button { justify-self: start; }
.form-note { color: var(--stone-deep); font-size: 0.9375rem; }

/* ============ FOOTER ============ */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--stone-deep);
  font-size: 0.9375rem;
}
.site-footer .brand { font-size: 1.125rem; }
.site-footer .brand img { width: 22px; height: 22px; }
.site-footer a { color: var(--stone-deep); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ============ SCROLL REVEAL ============ */

/* Gated on .js so the page is fully readable without JavaScript.
   Uses the standalone translate property, not transform, so component
   hover lifts are never cancelled by the reveal finishing. */
.js .reveal-up {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}
.js .reveal-up.is-in { opacity: 1; translate: 0 0; }
.js .reveal-up[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal-up[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal-up[data-delay="3"] { transition-delay: 0.24s; }
.js .reveal-up[data-delay="4"] { transition-delay: 0.32s; }

/* ============ RESPONSIVE ============ */

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui-fragments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .rail::before { display: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-stage { width: 100%; }
  .float-card { display: none; }      /* the frame goes full width on small screens */
  .hero-links { display: none; }
  .hero-shot { animation: none; }
  .hero-shot .frame img { aspect-ratio: 16 / 10; }
  .site-nav { gap: 1.4rem; }
  .site-nav a { font-size: 0.875rem; }
}

@media (max-width: 760px) {
  .card-grid, .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
  .ui-fragments { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .rail-step { padding-top: 0; padding-left: 3.1rem; }
  .rail-step .rail-dot { top: -0.15rem; }
  .split, .contact-grid, .field-row { grid-template-columns: 1fr; }
  h1, .hero h1 { max-width: 100%; }
  .site-header { gap: 1rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
  .site-nav { gap: 1rem; }
  /* Less dead space between the header and the eyebrow on a phone. */
  .hero { padding-top: 1rem; }
}

@media (max-width: 420px) {
  .site-nav a { font-size: 0.8125rem; }
}

/* Respect the user's motion preference. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .js .reveal-up { opacity: 1; translate: 0 0; }
  .hero h1 .accent-word { background-size: 100% 0.05em; }
}

/* ============ HEALTHY GAMBLING (Nov 2026) ============ */

/* What the first Neurepas Connect update added and the site still uses. */

/* Tinted band behind the Neurepas Connect section. */
.band-tint { background: var(--slate-tint); }

/* Stone text on the tint lands just under AA contrast (about 4.1:1), so
   secondary text in the band is Stone mixed toward Ink. The Ink line is
   the fallback for browsers without color-mix. */
.band-tint .eyebrow,
.band-tint .why-copy p,
.band-tint .flow-body p {
  color: var(--ink);
  color: color-mix(in srgb, var(--stone) 70%, var(--ink));
}

/* .actions is only laid out inside the hero; same row here. */
.band-tint .actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

/* Tiles in a row of four (access page) or two (How It Works page). A tile
   can be a link. */
.ui-fragments.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ui-fragments.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; }
.hero .ui-fragments { margin-top: var(--space-head); }
a.fragment { color: var(--ink); text-decoration: none; line-height: 1.35; }   /* labels wrap here */
a.fragment:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.fragment.is-featured { border-color: var(--accent-soft); }
.fragment.is-featured .fr-icon { background: var(--accent-soft); }
.ui-fragments.four .fragment { line-height: 1.35; }

/* A card that has not been revealed yet sits 18px low, so a jump to it
   would land it tight under the header. */
.solution[id] { scroll-margin-top: 1.125rem; }

/* Featured solution card: one accent rule along the top of the art panel. */
.solution.is-featured .solution-art { box-shadow: inset 0 3px 0 var(--accent); }

/* ============ PROBLEM AND SOLUTION (Nov 2026) ============ */

/* A small label with a dot in front: Slate for the assessment platform and
   its three settings, the accent for Neurepas Connect and healthy gambling. */
.dot-label { margin: 0; align-items: baseline; }   /* the dot sits on the first line when the label wraps */
.dot-label::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate);
  opacity: 1;
}
.dot-label.is-accent::before { background: var(--accent); }
.card .dot-label { font-size: 0.75rem; }   /* .card p would otherwise set it at body size */
/* In the four-column solution cards the tag is set a little smaller so
   "Assessment platform" stays on one line and the four titles sit level. */
.solution-body .dot-label { font-size: 0.6875rem; letter-spacing: 0.1em; }

/* A featured card carries one accent rule along its top edge. */
.card.is-featured { box-shadow: inset 0 3px 0 var(--accent); }
.card.is-featured:hover { box-shadow: inset 0 3px 0 var(--accent), var(--shadow-2); }

/* The four callouts under "What's broken": one row, lined up label by
   label, title by title. */
.callout { padding: 1.35rem 1.4rem; }
@supports (grid-template-rows: subgrid) {
  .callouts .card { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
}

/* Cards whose second line is always shown, under a hairline, with a check
   in front (the audience cards on the How It Works page). The hover lift is
   untouched. */
.answers .card .reveal {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--accent);
}
.answers .card .reveal > span {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--accent);
}
.answers .card .reveal svg { width: 14px; height: 14px; flex: none; margin-top: 0.25em; }
/* Line the four cards up row by row (icon, title, text, second line) so the
   hairlines sit level. Without subgrid the lines rest at the card foot. */
@supports (grid-template-rows: subgrid) {
  .answers .card { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
  .answers .card .reveal { margin-top: 0; }
}

/* Numbered sources. The numbers are drawn by the page so they start exactly
   at the section's left edge, with the text hanging beside them. */
.sources {
  list-style: none;
  counter-reset: source;
  margin-bottom: 0;
  padding: 0;
  max-width: 46rem;
  color: var(--stone-deep);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.sources li {
  counter-increment: source;
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  /* A superscript can jump here before the list has revealed, when it still
     sits 18px low. Same allowance as the solution cards. */
  scroll-margin-top: 1.125rem;
}
.sources li::before { content: counter(source) "."; }
.sources li + li { margin-top: 0.3rem; }

/* ============ PLATFORM ACCESS (Nov 2026) ============ */

/* Sign in: a nav link with a small lock in front. */
.site-nav a.nav-signin { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-signin svg { width: 14px; height: 14px; flex: none; }

/* An eyebrow that is the only heading of its block (an h2 in the markup). */
.section-label { line-height: 1.6; }

/* Setting cards on the access page. */
.access-grid .card { scroll-margin-top: 1.125rem; }   /* same allowance as the solution cards */
.access-grid .card p { margin-top: 0; }   /* spaced by the card, not by the site-wide paragraph gap */
.access-grid .card .card-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.6rem;
}
/* Status pill on the left, Request access on the right. In the four-column
   layout the card is too narrow for both, so the link drops under the pill. */
.access-row {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}
.access-row .chip { font-size: 0.8125rem; }
.access-row .button-ghost { padding: 0.4rem 0; font-size: 0.9375rem; }
/* Line the cards up row by row so the labels and the action rows sit level. */
@supports (grid-template-rows: subgrid) {
  .access-grid .card { display: grid; grid-template-rows: subgrid; grid-row: span 6; }
  .access-row { margin-top: 0; }
}

/* A three-step rail. */
.rail.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* The line under the role tiles. */
.access-note { margin-top: 1.5rem; font-size: 0.9375rem; }

@media (max-width: 1100px) {
  .ui-fragments.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ui-fragments.four, .ui-fragments.two { grid-template-columns: 1fr; }
  .rail.three { grid-template-columns: 1fr; }
}

/* ============ SIMPLIFICATION (Nov 2026) ============ */

/* The two paths: Neurepas Connect gets people to the assessment, and the
   assessment platform delivers it. Two cards, never one. */
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.path { padding: 2rem; }
.path h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); letter-spacing: -0.03em; }
.path .source { margin-top: 0.6rem; padding-top: 0.85rem; border-top: 1px solid var(--rule-soft); }
.path .button-ghost { margin-top: auto; align-self: flex-start; padding: 0.4rem 0; font-size: 0.9375rem; }

/* The steps of a path: a numbered list of step names. Each step's one-line
   description lives on the How It Works page. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: center;
}
.steps li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--slate);
}
.steps li:last-child::before { border-color: var(--accent); color: var(--accent); }
/* A hairline joins each number to the next. */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(0.875rem - 0.5px);
  top: 1.75rem;
  bottom: -0.75rem;
  width: 1px;
  background: var(--rule);
}
.steps strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

/* Line the two cards up row by row (label, title, who it is for, steps,
   help line, link), so the steps start level and the two links end level.
   Without subgrid the links still rest at the card foot. */
@supports (grid-template-rows: subgrid) {
  .path { display: grid; grid-template-rows: subgrid; grid-row: span 6; }
  .path .button-ghost { grid-row: 6; margin-top: 0; align-self: end; justify-self: start; }
}

@media (max-width: 960px) {
  .path-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .path { padding: 1.6rem; }
}

/* Header fit. Five items share the row: Gambling, Solutions, Contact, Sign in
   and the Request a demo button. As the screen narrows they step aside in
   this order, least important first. Cut-offs are measured, with room to
   spare:
     700  Request a demo  (the hero button does the same job)
     480  Solutions       (reachable from the footer)
     380  tighter gaps
     376  the lock icon; the words Sign in stay
     356  Contact         (reachable from the footer)
   Sign in and Gambling are always shown. */
@media (max-width: 700px) { .nav-cta { display: none; } }
@media (max-width: 480px) { .nav-solutions { display: none; } }
@media (max-width: 380px) { .site-nav { gap: 0.75rem; } }
@media (max-width: 376px) { .nav-signin svg { display: none; } }
@media (max-width: 356px) { .nav-contact { display: none; } }

/* Sources: one quiet strip at the foot of the home page. */
.sources-strip { padding-top: var(--space-block); padding-bottom: var(--space-block); }
.sources-strip .sources { margin-top: 0.75rem; max-width: none; }
@media (min-width: 761px) {
  .sources-strip .sources { columns: 2; column-gap: 3rem; }
  .sources-strip .sources li { break-inside: avoid; }
}

/* ============ HOME REDESIGN (Nov 2026) ============ */

/* The home page runs wider (--site-max), reads darker (--ink-soft and
   --stone-deep), and changes layout from one section to the next:
     hero        copy beside Neurepas Connect, which runs off the right edge
     expertise   dark band, a statement beside a ruled list
     the problem white band, a heading that stays put beside the evidence
     two paths   two wide panels, one with its steps in a row, one with the
                 product beside its steps
     settings    sand band, four cards
     closing     dark band, one call to action */

/* Bands. A full-width background sets a section apart from its neighbours. */
.band-light { background: var(--card); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.band-sand { background: var(--sand); }

/* Cards and panels sit on white with a firmer edge. */
.card, .solution { background: var(--card); border-color: var(--rule); }

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

.hero-home { overflow-x: clip; padding-top: clamp(1.25rem, 3vw, 2.75rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.hero-home .hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
  align-items: center;
}
/* Two lines on a desktop: each half of the headline is its own line. The
   size follows the screen so the longer line always fits its column. */
.hero-home h1 { font-size: clamp(2.25rem, 3.8vw, 3.5rem); max-width: none; }
@media (min-width: 961px) {
  .hero-home h1 .h1-line { display: block; }
}
.hero-home .lead { max-width: 33rem; }
.hero-settings {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  max-width: 33rem;
  font-size: 1rem;
  color: var(--stone-deep);
}

/* Neurepas Connect in the hero: the navigator's queue in a browser frame,
   the phone front door in front of it, and two status cards. On a desktop
   the frame is wider than its column and runs off the right edge. */
.connect-view { margin: 0; min-width: 0; }
.connect-stage { position: relative; width: 132%; }
.connect-stage .hero-glow { inset: -14% -6% -24% -18%; }   /* the glow the product shot already uses */
.connect-console img { width: 100%; }
.connect-phone {
  position: absolute;
  z-index: 3;
  left: -6%;
  bottom: -15%;
  width: 29%;
  filter: drop-shadow(0 18px 30px rgba(34, 32, 29, 0.28));
}
.connect-phone img { width: 100%; }
.connect-view figcaption { margin-top: 14%; padding-left: 24%; max-width: none; font-size: 0.875rem; line-height: 1.45; text-wrap: balance; }
.connect-stage .float-card { background: var(--card); border-color: var(--rule); }
.cv-1 { left: 21%; bottom: 9%; animation-delay: 0.6s; }
/* The frame is 132% of its column, so 24.2% in from its right edge is the
   column's right edge: the card lines up with the header button above it. */
.cv-2 { right: 24.2%; top: -4.5%; animation-delay: 2.2s; }

/* ---- Clinical expertise ---- */

.expertise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.expertise-grid .section-head { max-width: none; }
.assurances {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}
.assurances li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 1.0625rem;
  line-height: 1.4;
  color: #fff;
}
.assurances svg { width: 22px; height: 22px; margin-top: 0.08em; }

/* ---- The problem: evidence, setting by setting ---- */

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 2.5rem clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.evidence-head { max-width: none; }
@media (min-width: 961px) {
  .evidence-head { position: sticky; top: 6.5rem; }   /* stays in view while the rows scroll past */
}
.evidence .block-label { margin: 0; padding-bottom: 0.9rem; border-bottom: 2px solid var(--ink); color: var(--ink); }
.evidence-row {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 0.75rem 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.evidence-row:last-child { border-bottom: 0; padding-bottom: 0; }
.evidence-figure { margin: 0; max-width: none; }
.evidence-figure strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.5rem, 3.6vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--slate);
  white-space: nowrap;
}
.evidence-row.is-featured .evidence-figure strong { color: var(--accent); }
.evidence-figure span { display: block; margin-top: 0.55rem; font-size: 0.8125rem; line-height: 1.4; color: var(--stone-deep); }
.evidence-body { display: grid; gap: 0.5rem; align-content: start; }
.evidence-body p { margin: 0; max-width: 36rem; font-size: 1rem; color: var(--ink-soft); }
.evidence-body .dot-label { font-size: 0.75rem; color: var(--stone-deep); }
.evidence-body h3 { font-size: 1.3125rem; }
.evidence-body .evidence-source { font-size: 0.8125rem; color: var(--stone-deep); }

/* ---- The two paths: one panel each ---- */

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  padding: clamp(1.6rem, 3.2vw, 3rem);
}
.section-head + .panel { margin-top: var(--space-head); }
.path-note + .panel { margin-top: var(--space-block); }
.panel-copy { display: grid; gap: 0.65rem; justify-items: start; align-content: start; min-width: 0; }
.panel-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); letter-spacing: -0.03em; line-height: 1.12; }
.panel-copy p { max-width: none; }
.panel-copy .dot-label { font-size: 0.75rem; }
.panel-copy .button { margin-top: 1rem; }
.panel-copy .steps { margin-top: 0.85rem; }

/* The help line sits under the Connect panel, on the page. */
.path-note { margin-top: 1rem; max-width: none; }
#connect { scroll-margin-top: 1.25rem; }

/* Neurepas Connect: the steps run left to right, joined by one line. */
.path-connect {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  box-shadow: inset 0 3px 0 var(--accent), var(--shadow-1);
}
@media (min-width: 761px) {
  .steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; }
  .steps-row li { display: block; padding-right: 1.25rem; }
  .steps-row li::before { width: 2.75rem; height: 2.75rem; font-size: 1.0625rem; margin-bottom: 1rem; background: var(--card); }
  .steps-row li:not(:last-child)::after { left: 2.75rem; right: 0; top: 1.375rem; bottom: auto; width: auto; height: 1px; }
  .steps-row strong { font-size: 1.0625rem; }
}

/* The assessment platform: the product on the left, the steps on the right. */
.path-platform {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;   /* the glow stays inside the panel */
}
.path-platform .panel-copy { grid-column: 2; grid-row: 1; }
.path-platform .stage { grid-column: 1; grid-row: 1; margin: 0; min-width: 0; }
.path-platform .hero-stage { width: 76%; }
.path-platform .fc-2 { top: 9%; right: -15%; }
.path-platform .fc-4 { bottom: 7%; left: -15%; right: auto; }
.path-platform .steps li::before { background: var(--card); }

/* ---- Built for your setting ---- */

.head-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem clamp(3rem, 7vw, 7rem);
  align-items: end;
}

/* ---- Closing call to action: the band holds nothing else ---- */

.band-cta.is-solo { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---- Footer: the rule lines up with the content, not the gutters ---- */

.site-footer { position: relative; border-top: 0; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--rule);
}

/* ---- Smaller screens ---- */

@media (max-width: 960px) {
  .hero-home .hero-grid, .expertise-grid, .evidence-grid, .path-connect, .path-platform, .head-split { grid-template-columns: 1fr; }
  .connect-stage { width: 100%; }
  .connect-phone { left: 0; }
  .connect-view figcaption { padding-left: 34%; max-width: none; }
  .path-platform .panel-copy, .path-platform .stage { grid-column: auto; grid-row: auto; }
  .path-platform .hero-stage { width: 100%; }
}
@media (max-width: 760px) {
  .lead { font-size: 1.125rem; }
  .evidence-row { grid-template-columns: 1fr; }
}
/* On a phone the queue runs off the right edge again, so the phone screen
   in front of it stays large enough to read. */
@media (max-width: 560px) {
  .connect-stage { width: 136%; }
  .connect-phone { width: 37%; bottom: -12%; }
  .connect-view figcaption { margin-top: 13%; padding-left: 0; }
}

/* ============ CONNECT PANEL: WHY IT IS NEEDED (Nov 2026) ============ */

/* The Neurepas Connect panel now has three parts: the pitch, the need (a
   small bar chart beside one figure), and the four steps across the foot. */
.path-connect.has-need { align-items: start; row-gap: 0; }
@media (min-width: 961px) {
  .path-connect.has-need { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
}
.panel-copy .panel-pitch { margin-top: 0.4rem; max-width: 30rem; font-size: 1.0625rem; color: var(--ink-soft); }

.need {
  margin: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0 2.25rem;
  align-items: end;
  background: var(--slate-tint);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
}
.need-growth { min-width: 0; }
.need figcaption { font-size: 0.875rem; line-height: 1.4; color: var(--ink-soft); }
.need figcaption strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--slate);
}

/* Bar chart. Each bar's height comes from its value (--v, in billions) over
   the largest value, 17. The bars share one color, Slate; --o steps its
   strength up year by year. The step is drawn on a layer behind the label,
   so the growth figures inside the bars stay full-strength white. */
.need-chart { margin-top: 1.1rem; width: fit-content; max-width: 100%; }
.need-bars { display: flex; align-items: flex-end; gap: 0.9rem; border-bottom: 1px solid var(--rule); }
.need-bar { flex: 0 1 auto; width: 4.5rem; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.need-bar i {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  height: calc(var(--v) / 17 * 8.5rem);
  padding-top: 0.4rem;
}
.need-bar i::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px 4px 0 0;
  background: var(--slate);
  opacity: var(--o);
}
.need-bar i b { position: relative; font-style: normal; font-weight: 500; font-size: 0.75rem; line-height: 1; color: #fff; }
.need-value { font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.02em; color: var(--slate); white-space: nowrap; }
.need-years { display: flex; gap: 0.9rem; margin-top: 0.35rem; }
.need-years span { flex: 0 1 auto; width: 4.5rem; min-width: 0; text-align: center; font-size: 0.8125rem; color: var(--stone-deep); }

.need-stat {
  margin: 0;
  max-width: none;
  padding-left: 2.25rem;
  border-left: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.need-stat strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.25rem, 3.2vw, 2.875rem);
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--accent);
}

/* The steps run across the foot of the panel, under one line of their own. */
.path-steps {
  grid-column: 1 / -1;
  margin-top: clamp(1.6rem, 3vw, 2.5rem);
  padding-top: clamp(1.4rem, 2.6vw, 2rem);
  border-top: 1px solid var(--rule);
}
.steps-lead {
  max-width: none;
  margin-bottom: 1.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

/* Where the block is too narrow for the chart and the figure side by side,
   the figure goes under the chart. */
@media (max-width: 700px), (min-width: 961px) and (max-width: 1100px) {
  .need { grid-template-columns: minmax(0, 1fr); gap: 1.5rem 0; }
  .need-stat { padding-left: 0; border-left: 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
}
/* Just above that, side by side with tighter gaps. */
@media (min-width: 1101px) and (max-width: 1180px) {
  .need { gap: 0 1.5rem; padding: 1.35rem 1.4rem; }
  .need-stat { padding-left: 1.5rem; }
  .need-bars, .need-years { gap: 0.6rem; }
}
@media (max-width: 960px) {
  .need { margin-top: 1.75rem; }
}
@media (max-width: 560px) {
  .need { padding: 1.35rem 1.25rem; }
  .need-bars, .need-years { gap: 0.6rem; }
}
