/* ==========================================================================
   Virtual Mediation Center — style.css
   --------------------------------------------------------------------------
   Design direction
     The logo is two figures meeting to form an M. The whole site borrows that
     one idea: paired elements start apart and converge. The hero headline is
     split in two halves joined by a thread that closes on load; the mediator
     cards sit either side of a seam; the comparison grid is a gutter with two
     positions on it. Everything else stays quiet so that reads.

   Palette
     Sampled directly from the supplied logo wordmark gradient
     (#8C52FF violet -> #5CDFE6 cyan). Everything else is derived from it.

   Colour discipline (project QA gate)
     EVERY colour lives in :root as a custom property. Component rules may
     only reference var(--token). No hex / rgb / hsl literals below :root, and
     no token defined in terms of itself.
   ========================================================================== */

:root {
  /* ---- brand (sampled from the logo) ---- */
  --violet:        #8C52FF;
  --cyan:          #5CDFE6;
  --periwinkle:    #7498F3;   /* gradient midpoint */

  /* lifted variants — AA-legible as text/interactive on the dark surfaces */
  --violet-lift:   #A47CFF;
  --violet-soft:   #BCA0FF;
  --cyan-lift:     #7BE9EE;

  /* ---- surfaces ---- */
  --ink:           #0A0816;
  --ink-2:         #100D22;
  --ink-3:         #15122B;
  --ink-4:         #1C1838;
  --ink-5:         #241F45;

  /* ---- type ---- */
  --paper:         #F3F1FF;
  --text:          #C6C2DE;
  --text-mid:      #A29DBF;
  --text-faint:    #8B85AA;

  /* ---- semantic ---- */
  --ok:            #6FE3A8;
  --warn:          #FFC46B;
  --danger:        #FF8A9B;

  /* ---- translucency tokens ----
     Named for what they do, not where they came from. Defined once here so
     component rules never carry rgba() literals. */
  --glass:          rgba(255, 255, 255, 0.038);
  --glass-hi:       rgba(255, 255, 255, 0.062);
  --glass-hover:    rgba(255, 255, 255, 0.085);
  --hairline:       rgba(255, 255, 255, 0.085);
  --hairline-hi:    rgba(255, 255, 255, 0.16);
  --hairline-faint: rgba(255, 255, 255, 0.045);

  --violet-a06:    rgba(140, 82, 255, 0.06);
  --violet-a12:    rgba(140, 82, 255, 0.12);
  --violet-a18:    rgba(140, 82, 255, 0.18);
  --violet-a28:    rgba(140, 82, 255, 0.28);
  --violet-a45:    rgba(140, 82, 255, 0.45);

  --cyan-a08:      rgba(92, 223, 230, 0.08);
  --cyan-a14:      rgba(92, 223, 230, 0.14);
  --cyan-a22:      rgba(92, 223, 230, 0.22);
  --cyan-a40:      rgba(92, 223, 230, 0.40);

  --peri-a10:      rgba(116, 152, 243, 0.10);
  --peri-a20:      rgba(116, 152, 243, 0.20);

  --ok-a12:        rgba(111, 227, 168, 0.12);
  --ok-a30:        rgba(111, 227, 168, 0.30);
  --warn-a12:      rgba(255, 196, 107, 0.12);
  --warn-a30:      rgba(255, 196, 107, 0.30);
  --danger-a12:    rgba(255, 138, 155, 0.12);
  --danger-a30:    rgba(255, 138, 155, 0.30);

  --shade-a30:     rgba(10, 8, 22, 0.30);
  --shade-a55:     rgba(10, 8, 22, 0.55);
  --shade-a72:     rgba(10, 8, 22, 0.72);
  --shade-a88:     rgba(10, 8, 22, 0.88);
  --shadow-a40:    rgba(4, 2, 12, 0.40);
  --shadow-a60:    rgba(4, 2, 12, 0.60);
  --transparent:   rgba(255, 255, 255, 0);

  /* ---- composites ---- */
  --grad-brand:    linear-gradient(100deg, var(--violet) 0%, var(--periwinkle) 52%, var(--cyan) 100%);
  --grad-brand-v:  linear-gradient(180deg, var(--violet) 0%, var(--cyan) 100%);
  --grad-rule:     linear-gradient(90deg, var(--transparent), var(--violet-a45) 22%, var(--cyan-a40) 78%, var(--transparent));
  --grad-seam:     linear-gradient(180deg, var(--transparent), var(--violet-a28) 18%, var(--cyan-a22) 82%, var(--transparent));

  /* ---- type stacks ---- */
  --font-display: 'Bricolage Grotesque', 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* ---- scale ---- */
  --step-display: clamp(2.55rem, 6.2vw, 5.1rem);
  --step-h1:      clamp(2.1rem, 4.4vw, 3.35rem);
  --step-h2:      clamp(1.7rem, 3.1vw, 2.5rem);
  --step-h3:      clamp(1.15rem, 1.7vw, 1.42rem);
  --step-body:    1.0625rem;
  --step-lead:    clamp(1.1rem, 1.5vw, 1.28rem);
  --step-small:   0.9375rem;
  --step-tiny:    0.8125rem;

  /* ---- rhythm ---- */
  --gutter:       clamp(1.25rem, 4vw, 2rem);
  --section-y:    clamp(4.5rem, 9vw, 8rem);
  --wrap:         74rem;
  --wrap-narrow:  46rem;
  --radius:       18px;
  --radius-lg:    26px;
  --radius-pill:  999px;

  /* ---- motion ---- */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:    cubic-bezier(0.4, 0, 0.2, 1);
  --dur:          0.55s;

  --header-h:     72px;
  color-scheme: dark;
}

/* ==========================================================================
   1. Reset & base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'cv05' 1, 'ss03' 1;
}

/* the ambient field — one fixed layer, no blur filters (cheap to composite) */
body::before {
  content: '';
  position: fixed;
  inset: -20vh -10vw;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(46% 38% at 14% 4%,  var(--violet-a18), var(--transparent) 68%),
    radial-gradient(40% 34% at 88% 16%, var(--cyan-a14),   var(--transparent) 66%),
    radial-gradient(52% 40% at 52% 96%, var(--peri-a10),   var(--transparent) 70%);
  animation: drift 34s var(--ease-soft) infinite alternate;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, var(--transparent), var(--shade-a55) 88%);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2.5%, 0) scale(1.08); }
}

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

a {
  color: var(--cyan-lift);
  text-decoration-color: var(--cyan-a40);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-soft), text-decoration-color 0.2s var(--ease-soft);
}
a:hover { color: var(--paper); text-decoration-color: var(--hairline-hi); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--paper);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 700;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); line-height: 1.24; letter-spacing: -0.012em; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.008em; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

strong { color: var(--paper); font-weight: 600; }
hr {
  border: 0;
  height: 1px;
  background: var(--grad-rule);
  margin: clamp(2.5rem, 5vw, 4rem) 0;
}

::selection { background: var(--violet-a45); color: var(--paper); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-4);
  color: var(--paper);
  padding: 0.85rem 1.35rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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

/* ==========================================================================
   2. Layout primitives
   ========================================================================== */

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

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-plate { background: var(--ink-2); border-block: 1px solid var(--hairline-faint); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step-tiny);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  flex: none;
}
.eyebrow-center { justify-content: center; }

.lead {
  font-size: var(--step-lead);
  line-height: 1.62;
  color: var(--text);
  max-width: 44rem;
}
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .lead { margin-inline: auto; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* grid-4 collapses earlier than grid-3: four columns inside .wrap fall to
   ~175px around 1024px, which is too narrow for a heading plus a paragraph. */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   3. Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--transparent);
  border-bottom: 1px solid var(--transparent);
  transition: background 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft),
              backdrop-filter 0.3s var(--ease-soft);
}
.site-header.is-stuck {
  background: var(--shade-a88);
  border-bottom-color: var(--hairline);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
  margin-right: auto;
}
.brand img { width: 30px; height: 34px; flex: none; }
.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.005em;
}
.brand-a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--transparent);
}
.brand-b {
  font-size: 1.02rem;
  color: var(--paper);
  letter-spacing: -0.01em;
  margin-top: 3px;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-pill);
  color: var(--text-mid);
  text-decoration: none;
  font-size: var(--step-small);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}
.primary-nav a:hover { color: var(--paper); background: var(--glass); }
.primary-nav a[aria-current='page'] { color: var(--paper); background: var(--glass-hi); }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  color: var(--paper);
  cursor: pointer;
  flex: none;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .ico-x { display: none; }
.nav-toggle[aria-expanded='true'] .ico-x { display: block; }
.nav-toggle[aria-expanded='true'] .ico-bars { display: none; }

@media (max-width: 1024px) {
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--shade-a88);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid var(--hairline);
    padding: 0.75rem var(--gutter) 1.25rem;
    display: none;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .primary-nav a { padding: 0.85rem 1rem; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .header-cta .btn { padding: 0.6rem 1.05rem; font-size: var(--step-small); }
}
@media (max-width: 460px) {
  .header-cta { display: none; }
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--step-small);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid var(--transparent);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease-soft),
              background 0.2s var(--ease-soft), color 0.2s var(--ease-soft),
              border-color 0.2s var(--ease-soft);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* primary: the brand gradient with ink text — passes AA across every stop */
.btn-grad {
  background: var(--grad-brand);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px var(--violet-a45);
}
.btn-grad:hover { color: var(--ink); box-shadow: 0 16px 40px -12px var(--violet-a45); }

.btn-ghost {
  background: var(--glass);
  border-color: var(--hairline-hi);
  color: var(--paper);
}
.btn-ghost:hover { background: var(--glass-hover); color: var(--paper); border-color: var(--cyan-a40); }

.btn-quiet { background: var(--transparent); color: var(--text-mid); padding-inline: 0.9rem; }
.btn-quiet:hover { color: var(--paper); background: var(--glass); }

.btn-lg { padding: 1rem 1.9rem; font-size: 1.03rem; }
.btn-sm { padding: 0.55rem 1.05rem; font-size: var(--step-tiny); }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.btn-row-center { justify-content: center; }

.btn svg { width: 17px; height: 17px; flex: none; }

/* ==========================================================================
   5. Hero — the signature moment
   The headline is two halves joined by a thread. On load the halves travel
   in from opposite edges and the thread closes to a point. That is the whole
   product in one gesture, so nothing else on the page competes with it.
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem 0.42rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--hairline);
  font-size: var(--step-tiny);
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.hero-eyebrow .pip {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: grid; place-items: center;
  flex: none;
}
.hero-eyebrow .pip svg { width: 12px; height: 12px; color: var(--ink); }

.hero-title {
  font-family: var(--font-display);
  font-size: var(--step-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--paper);
  margin: 0 0 1.5rem;
  max-width: 18ch;
}

/* the converging halves */
.converge {
  display: flex;
  align-items: center;
  gap: 0.28em;
  flex-wrap: wrap;
}
.converge .side {
  display: inline-block;
  opacity: 0;
  transform: translateX(var(--from, 0));
}
.converge .side-a { --from: -0.55em; }
.converge .side-b { --from: 0.55em; }
.converge .thread {
  flex: none;
  height: 3px;
  width: 0;
  border-radius: 2px;
  background: var(--grad-brand);
  opacity: 0;
  align-self: center;
  margin-inline: 0.1em;
}
.hero.is-ready .converge .side {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.7s var(--ease) 0.12s, transform 1.05s var(--ease) 0.12s;
}
.hero.is-ready .converge .thread {
  animation: thread-close 1.5s var(--ease) 0.1s both;
}
@keyframes thread-close {
  0%   { width: 2.4em; opacity: 0; }
  22%  { opacity: 1; }
  100% { width: 0.16em; opacity: 1; }
}

.hero-lead {
  font-size: var(--step-lead);
  color: var(--text);
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.4rem);
}

.hero-actions { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.hero-note {
  font-size: var(--step-tiny);
  color: var(--text-faint);
  margin-top: 0.9rem;
}

.hero-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.9rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline-faint);
  list-style: none;
  margin: 0;
}
.hero-marks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-small);
  color: var(--text-mid);
}
.hero-marks svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }

/* decorative mark, sits behind the hero on wide screens */
.hero-mark {
  position: absolute;
  right: clamp(-6rem, -2vw, 0rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(30vw, 340px);
  opacity: 0.11;
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 900px) { .hero-mark { display: none; } }

/* ==========================================================================
   6. Cards & panels
   ========================================================================== */

.card {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  position: relative;
  transition: border-color 0.25s var(--ease-soft), background 0.25s var(--ease-soft),
              transform 0.25s var(--ease);
}
.card-hover:hover {
  border-color: var(--hairline-hi);
  background: var(--glass-hi);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--text-mid); font-size: var(--step-small); }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--violet-a12);
  border: 1px solid var(--violet-a28);
  color: var(--violet-soft);
  margin-bottom: 1rem;
}
.card-icon svg { width: 20px; height: 20px; }
.card-icon-cyan { background: var(--cyan-a08); border-color: var(--cyan-a22); color: var(--cyan); }

.plate {
  background: var(--ink-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.callout {
  border-left: 2px solid var(--violet);
  background: var(--violet-a06);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.35rem;
  font-size: var(--step-small);
  color: var(--text);
  margin-block: 1.5rem;
}
.callout strong { display: block; margin-bottom: 0.3rem; }
.callout-cyan { border-left-color: var(--cyan); background: var(--cyan-a08); }
.callout-warn { border-left-color: var(--warn); background: var(--warn-a12); }

/* ==========================================================================
   7. Stat strip
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline-faint);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { background: var(--ink-2); padding: clamp(1.35rem, 3vw, 2rem); }
.stat-n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--transparent);
  margin-bottom: 0.4rem;
}
.stat-l { font-size: var(--step-small); color: var(--text-mid); margin: 0; }
@media (max-width: 620px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   8. Process steps — numbering is used here because the order genuinely
   carries information (this is what happens, in sequence).
   ========================================================================== */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--hairline-faint);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--hairline-faint); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--transparent);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1;
  padding-top: 0.15rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--text-mid); margin: 0; }
.step-meta {
  font-size: var(--step-tiny);
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.6rem;
}
@media (max-width: 620px) {
  .step { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; }
  .step::before { font-size: 1.1rem; }
}

/* ==========================================================================
   9. Mediator cards — the seam
   ========================================================================== */

.mediators {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}
.seam { background: var(--grad-seam); border-radius: 1px; }
@media (max-width: 880px) {
  .mediators { grid-template-columns: minmax(0, 1fr); }
  .seam { display: none; }
}

.med {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  position: relative;
  overflow: hidden;
}
.med-featured {
  border-color: var(--violet-a45);
  background: var(--glass-hi);
  box-shadow: 0 24px 60px -32px var(--violet-a45);
}
.med-featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
}
.med-flag {
  align-self: flex-start;
  font-size: var(--step-tiny);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: var(--ink);
  margin-bottom: 1rem;
}
.med-flag-quiet {
  background: var(--glass-hi);
  color: var(--text-mid);
  border: 1px solid var(--hairline);
}
.med-name { font-size: 1.55rem; margin-bottom: 0.2rem; letter-spacing: -0.025em; }
.med-role {
  font-size: var(--step-small);
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 1rem;
}
.med-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-block: 1rem;
  margin-block: 0.25rem 1rem;
  border-block: 1px solid var(--hairline-faint);
}
.med-price b {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--paper);
  line-height: 1;
}
.med-price span { font-size: var(--step-small); color: var(--text-faint); }
.med ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: var(--step-small);
}
.med ul li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-mid); }
.med ul svg { width: 16px; height: 16px; color: var(--cyan); flex: none; margin-top: 3px; }
.med ul .x { color: var(--text-faint); }
.med-actions { margin-top: auto; display: grid; gap: 0.6rem; }

/* ==========================================================================
   10. Comparison table (mediation vs court) — a gutter with two positions
   ========================================================================== */

.compare { border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; }
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--hairline-faint);
}
.compare-row:first-child { border-top: 0; }
.compare-row > * { padding: 1rem 1.15rem; font-size: var(--step-small); }
.compare-head { background: var(--ink-3); }
.compare-head > * {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--paper);
  font-size: var(--step-small);
  letter-spacing: -0.005em;
}
.compare-k { color: var(--text-faint); font-weight: 500; }
.compare-a { background: var(--violet-a06); color: var(--text); }
.compare-b { color: var(--text-mid); }
@media (max-width: 700px) {
  .compare-row { grid-template-columns: minmax(0, 1fr); }
  .compare-head { display: none; }
  .compare-k {
    background: var(--ink-3);
    font-weight: 600;
    color: var(--text);
    padding-block: 0.6rem;
  }
  .compare-a::before { content: 'Mediation — '; color: var(--violet-soft); font-weight: 600; }
  .compare-b::before { content: 'Court — '; color: var(--text-faint); font-weight: 600; }
}

/* ==========================================================================
   11. Cost configurator (signature interactive)
   ========================================================================== */

.config { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 860px) { .config { grid-template-columns: minmax(0, 1fr); } }

.config-field { margin-bottom: 1.5rem; }
.config-field:last-child { margin-bottom: 0; }
.config-label {
  display: block;
  font-size: var(--step-tiny);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.65rem;
}

.segmented {
  display: grid;
  gap: 4px;
  padding: 4px;
  background: var(--ink-4);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.segmented-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.segmented-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segmented button {
  appearance: none;
  border: 0;
  background: var(--transparent);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: var(--step-small);
  font-weight: 600;
  padding: 0.7rem 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
  line-height: 1.25;
}
.segmented button small {
  display: block;
  font-size: var(--step-tiny);
  font-weight: 500;
  color: var(--text-faint);
  margin-top: 2px;
}
.segmented button:hover { color: var(--paper); background: var(--glass); }
.segmented button[aria-pressed='true'] { background: var(--grad-brand); color: var(--ink); }
.segmented button[aria-pressed='true'] small { color: var(--ink); }

.config-out {
  background: var(--ink-3);
  border: 1px solid var(--hairline-hi);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 1.9rem);
  display: flex;
  flex-direction: column;
}
.config-out-label {
  font-size: var(--step-tiny);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.config-total {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--transparent);
  font-variant-numeric: tabular-nums;
}
.config-sub { font-size: var(--step-small); color: var(--text-mid); margin: 0.5rem 0 1.25rem; }
.config-bars { display: grid; gap: 0.75rem; margin-bottom: 1.35rem; }
.config-bar-row { font-size: var(--step-tiny); }
.config-bar-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  color: var(--text-mid);
}
.config-bar-top b { color: var(--paper); font-variant-numeric: tabular-nums; }
.config-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--ink-5);
  overflow: hidden;
}
.config-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--grad-brand);
  width: 0;
  transition: width 0.65s var(--ease);
}
.config-bar-muted i { background: var(--ink-5); border: 1px solid var(--hairline-hi); }
.config-note { font-size: var(--step-tiny); color: var(--text-faint); margin: 0 0 1.1rem; }
.config-out .btn { margin-top: auto; }

/* ==========================================================================
   12. Chooser (which mediator?)
   ========================================================================== */

.chooser-q { margin-bottom: 1.6rem; }
.chooser-q:last-of-type { margin-bottom: 0; }
.chooser-q > p {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--paper);
  font-size: 1.05rem;
  margin: 0 0 0.7rem;
  letter-spacing: -0.01em;
}
.chooser-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chooser-opts button {
  appearance: none;
  background: var(--glass);
  border: 1px solid var(--hairline);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.05rem;
  font-family: var(--font-body);
  font-size: var(--step-small);
  cursor: pointer;
  transition: background 0.18s var(--ease-soft), border-color 0.18s var(--ease-soft),
              color 0.18s var(--ease-soft);
}
.chooser-opts button:hover { background: var(--glass-hover); color: var(--paper); }
.chooser-opts button[aria-pressed='true'] {
  background: var(--violet-a28);
  border-color: var(--violet-lift);
  color: var(--paper);
}

.chooser-result {
  margin-top: 1.75rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  display: none;
}
.chooser-result.show { display: block; animation: rise 0.5s var(--ease) both; }
.chooser-result h3 { margin-bottom: 0.4rem; }
.chooser-result p { color: var(--text-mid); font-size: var(--step-small); }

/* ==========================================================================
   13. Booking tabs
   ========================================================================== */

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--ink-4);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  margin-bottom: 1.35rem;
  overflow-x: auto;
}
.tabs button {
  appearance: none;
  border: 0;
  background: var(--transparent);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: var(--step-small);
  font-weight: 600;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  flex: 1 1 auto;
  transition: background 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
}
.tabs button:hover { color: var(--paper); background: var(--glass); }
.tabs button[aria-selected='true'] { background: var(--grad-brand); color: var(--ink); }

.tabpanel { display: none; }
.tabpanel.show { display: block; animation: rise 0.4s var(--ease) both; }

.booking-frame {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  min-height: 700px;
}
.booking-frame iframe { width: 100%; height: 700px; border: 0; display: block; }
.booking-placeholder {
  min-height: 700px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-faint);
  font-size: var(--step-small);
}
/* Escape hatch. The embed is cross-origin: if app.4lsg.com refuses to be framed
   the panel goes blank with no error we can trap, so this line is always shown
   and script.js promotes it to .is-loud when the frame never signals load. */
.booking-fallback {
  margin-top: 0.9rem;
  font-size: var(--step-small);
  color: var(--text-faint);
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft),
              border-color 0.3s var(--ease-soft);
  border: 1px solid transparent;
}
.booking-fallback.is-loud {
  color: var(--text);
  background: var(--warn-a12);
  border-color: var(--warn-a30);
}

/* ==========================================================================
   14. Accordion (FAQ)
   ========================================================================== */

.acc { border-top: 1px solid var(--hairline-faint); }
.acc details { border-bottom: 1px solid var(--hairline-faint); }
.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: -0.012em;
  color: var(--paper);
  transition: color 0.2s var(--ease-soft);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--cyan-lift); }
.acc summary::after {
  content: '';
  position: absolute;
  right: 0.4rem;
  top: 1.45rem;
  width: 11px; height: 11px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform 0.28s var(--ease), border-color 0.2s var(--ease-soft);
}
.acc details[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--cyan);
}
.acc-body { padding: 0 2.5rem 1.4rem 0; color: var(--text-mid); font-size: var(--step-small); }
.acc-body p { margin-bottom: 0.8rem; }
.acc details[open] .acc-body { animation: rise 0.35s var(--ease) both; }

/* ==========================================================================
   15. Forms
   ========================================================================== */

.form-card {
  background: var(--ink-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.form-grid { display: grid; gap: 1rem; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 0.4rem; }
.field > label {
  font-size: var(--step-tiny);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field .req { color: var(--violet-soft); }

input[type='text'], input[type='email'], input[type='tel'],
input[type='number'], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--step-body);
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  transition: border-color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, var(--transparent) 50%, var(--text-faint) 50%),
                    linear-gradient(135deg, var(--text-faint) 50%, var(--transparent) 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--ink-4);
  box-shadow: 0 0 0 3px var(--cyan-a14);
}
::placeholder { color: var(--text-faint); opacity: 1; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
@media (max-width: 560px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--ink-2);
  font-size: var(--step-small);
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color 0.18s var(--ease-soft), color 0.18s var(--ease-soft);
}
.check:hover { border-color: var(--hairline-hi); color: var(--paper); }
.check input { accent-color: var(--violet); margin-top: 3px; flex: none; }
.check:has(input:checked) { border-color: var(--violet-lift); color: var(--paper); background: var(--violet-a06); }

.captcha-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.captcha-row .field { flex: 1 1 9rem; }
.captcha-q {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--paper);
  background: var(--ink-4);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0.72rem 1rem;
  white-space: nowrap;
}

/* honeypot — visually hidden, still submitted (passes through to extra) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-status {
  margin-top: 1rem;
  font-size: var(--step-small);
  border-radius: 12px;
  padding: 0;
}
.form-status.ok {
  color: var(--ok);
  background: var(--ok-a12);
  border: 1px solid var(--ok-a30);
  padding: 0.8rem 1rem;
}
.form-status.error {
  color: var(--danger);
  background: var(--danger-a12);
  border: 1px solid var(--danger-a30);
  padding: 0.8rem 1rem;
}
.form-fine { font-size: var(--step-tiny); color: var(--text-faint); margin-top: 1rem; }

/* ==========================================================================
   16. CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline-hi);
  background: var(--ink-3);
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -50% -10%;
  background: radial-gradient(45% 55% at 22% 30%, var(--violet-a28), var(--transparent) 70%),
              radial-gradient(45% 55% at 78% 70%, var(--cyan-a14), var(--transparent) 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { color: var(--text); max-width: 44ch; margin-inline: auto; }

/* ==========================================================================
   17. Prose (legal / long-form pages)
   ========================================================================== */

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.9rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.15rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--violet-lift); }
.prose small { color: var(--text-faint); }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.5rem; }
.tag {
  font-size: var(--step-tiny);
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--hairline);
  color: var(--text-mid);
}

/* ==========================================================================
   18. Page header (interior pages)
   ========================================================================== */

.page-head {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(1.75rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--hairline-faint);
}
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: 0.6rem; }

.crumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: var(--step-tiny);
  color: var(--text-faint);
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.crumbs a { color: var(--text-faint); text-decoration: none; }
.crumbs a:hover { color: var(--cyan-lift); }
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--hairline-hi); }

/* ==========================================================================
   19. Footer
   ========================================================================== */

.site-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--hairline);
  background: var(--ink-2);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  font-size: var(--step-small);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.footer-h {
  font-family: var(--font-display);
  font-size: var(--step-tiny);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--text-mid); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.site-footer p { color: var(--text-mid); }

.footer-brand img.footer-mark { width: 34px; height: 38px; margin-bottom: 0.9rem; }
.division-of { font-size: var(--step-tiny); color: var(--text-faint); margin: 0 0 0.55rem; }
.division-logo { display: inline-block; }
.division-logo img { width: 150px; height: auto; opacity: 0.75; transition: opacity 0.2s var(--ease-soft); }
.division-logo:hover img { opacity: 1; }

.footer-legal {
  border-top: 1px solid var(--hairline-faint);
  padding-block: clamp(1.5rem, 3vw, 2rem);
  font-size: var(--step-tiny);
  color: var(--text-faint);
  line-height: 1.65;
}
.footer-legal p { color: var(--text-faint); margin-bottom: 0.75rem; }
.footer-legal a { color: var(--text-mid); text-decoration: underline; text-decoration-color: var(--hairline-hi); }
.footer-copy { margin-bottom: 0; }

/* ==========================================================================
   20. Sticky mobile action bar
   ========================================================================== */

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: none;
  gap: 0.6rem;
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
  background: var(--shade-a88);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid var(--hairline);
}
.mobile-bar .btn { flex: 1 1 0; padding-inline: 0.6rem; }
@media (max-width: 700px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 4.75rem; }
}

/* ==========================================================================
   21. Reveal on scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-reveal='left']  { transform: translateX(-22px); }
[data-reveal][data-reveal='right'] { transform: translateX(22px); }
[data-reveal].in[data-reveal='left'],
[data-reveal].in[data-reveal='right'] { transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   22. Reduced motion — everything above degrades to plain, instant layout
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .converge .side { opacity: 1; transform: none; }
  .converge .thread { opacity: 1; width: 0.16em; }
  .btn:hover, .card-hover:hover { transform: none; }
}

/* ==========================================================================
   23. Print
   ========================================================================== */

@media print {
  body { background: var(--paper); color: var(--ink); }
  body::before, body::after,
  .site-header, .mobile-bar, .booking-frame, form { display: none !important; }
  a { color: var(--ink); }
}
