/* ==========================================================
   Sections below the hero — same palette, type and glass
   language as the hero.
   ========================================================== */

:root {
  --navy: #0b1f52;
  --text: #16305f;
  --muted: #5a6f97;
  --line: rgba(46, 82, 242, 0.12);
  --line-strong: rgba(46, 82, 242, 0.22);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --bg-top: #d3e3f8;
  --bg: #eef4fd;
  --accent-soft: #e6edff;
  --radius: 22px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 20px 50px -28px rgba(22, 56, 140, 0.35);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
main:focus { outline: none; }

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

/* Prices line up digit-for-digit wherever they're compared. */
.plan__price, .tier strong, .service strong, .summary__total strong,
.sum-role__price, .role__meta, .builder-bar__total { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

main {
  position: relative;
  color: var(--text);
  background:
    radial-gradient(60% 30% at 90% 22%, rgba(120, 165, 255, 0.22), transparent 70%),
    radial-gradient(50% 30% at 0% 45%, rgba(150, 190, 255, 0.25), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 12%, #f6f9ff 55%, var(--bg) 100%);
}

.container {
  width: 100%;
  padding: 0 var(--edge);
}

.section { padding: clamp(64px, 7.5vw, 104px) 0; position: relative; }

/* ---------- Shared type ---------- */
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker--sm { font-size: 11px; letter-spacing: 0.2em; }
.kicker--light { color: #9fc0ff; }

.h2 {
  margin-top: 18px;
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-wrap: balance;
}
.h2 .hl {
  background: linear-gradient(95deg, #2e52f2 0%, #5b8cff 60%, #7aa6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h2--light { color: #fff; }
.h2 .hl--light {
  background: linear-gradient(95deg, #a9c6ff 0%, #cfe2ff 55%, #b8d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lede {
  margin-top: 20px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.lede--light { color: rgba(225, 235, 255, 0.85); }

.section-head { max-width: 720px; }

/* ---------- Shared buttons (extend hero .btn) ---------- */
.btn--primary { color: #fff; }
.btn--outline {
  padding: 14px 26px;
  font-size: 15px;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.6);
}
.btn--outline:hover { border-color: var(--accent); background: #fff; }
.btn--light {
  padding: 14px 26px;
  font-size: 15px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #fff;
}
.btn--light:hover { background: var(--accent-soft); }
.btn--block { width: 100%; justify-content: center; }
.btn:focus-visible, .link-arrow:focus-visible, summary:focus-visible, .role__add:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(4px); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}
.avatar--solid { color: #fff; background: linear-gradient(135deg, #3d61ff, #2440c9); }

.ai-tag {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 22px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #5b8cff, #2e52f2);
}

/* ---------- Scroll reveal ---------- */
.sr {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--sr-d, 0ms);
}
.sr.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sr { opacity: 1; transform: none; transition: none; }
}

/* ---------- Sticky nav ---------- */
/* z-index keeps the fixed nav (inside the hero's stacking context) above <main>. */
.hero { padding-top: 84px; z-index: 10; }
/* Soft hand-off from the hero artwork into the page background. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(211, 227, 248, 0) 0%, var(--bg-top) 100%);
}
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color .35s, box-shadow .35s;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(244, 248, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(22, 56, 140, 0.35);
}
.nav.is-scrolled .logo, .nav.is-open .logo,
.nav.is-scrolled .nav__links a, .nav.is-open .nav__toggle,
.nav.is-scrolled .nav__toggle { color: var(--navy); }
.nav.is-scrolled .nav__toggle, .nav.is-open .nav__toggle { border-color: var(--line-strong); background: #fff; }
.nav.is-scrolled .nav__links a.active::after { background: var(--accent); }
.nav.is-scrolled .btn--nav, .nav.is-open .btn--nav { color: #fff; background: var(--accent); border-color: var(--accent); }
.nav__toggle:focus-visible, .btn--nav:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.scroll-cue { text-decoration: none; }

/* ==========================================================
   Organisation
   ========================================================== */
.org__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.org__visual { position: relative; }
.org__visual img { position: relative; width: 100%; height: auto; display: block; }
.org__halo {
  position: absolute;
  inset: 6% 4% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(80, 130, 255, 0.35), rgba(80, 130, 255, 0.08) 55%, transparent 70%);
  filter: blur(10px);
}
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.float-chip--a { left: 4%; bottom: 4%; }
.float-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.orgchart {
  margin-top: 36px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.orgchart__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.orgchart__root {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin: 22px auto 0;
  padding: 14px 22px 14px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.orgchart strong { display: block; font-size: 15px; font-weight: 600; color: var(--navy); }
.orgchart small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.orgchart__branches {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}
/* connector lines (real elements so they can be drawn in) */
.orgchart__bar {
  position: absolute;
  left: 25%; right: 25%;
  top: -18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  transform-origin: center top;
}
.orgchart__stem {
  position: absolute;
  left: 50%;
  top: -36px;
  height: 18px;
  border-left: 1.5px solid var(--line-strong);
  transform-origin: center top;
}
.orgchart__dept {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}
.orgchart__dept-head { display: flex; align-items: center; gap: 12px; }
.orgchart__dept ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.orgchart__dept li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
}

/* ==========================================================
   Paths
   ========================================================== */
.paths__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.6fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.paths__visual { position: relative; align-self: stretch; display: flex; align-items: flex-end; }
.paths__visual img {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.paths__halo {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 110%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #2c56d8 0%, #1b3da8 45%, #0d2468 72%, transparent 73%);
  opacity: 0.9;
}
.path-list { list-style: none; margin-top: 36px; display: grid; gap: 14px; }
.path {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.path:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.path.is-active {
  background: linear-gradient(120deg, rgba(46, 82, 242, 0.08), rgba(255, 255, 255, 0.8) 60%);
  border-color: var(--line-strong);
}
.path__num {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(46, 82, 242, 0.45);
}
.path h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.path p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
}

/* ==========================================================
   How it works
   ========================================================== */
.steps-wrap { position: relative; margin-top: 64px; }
.steps {
  position: relative;
  z-index: 2;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* Faint track under the whole row; the scroll-drawn fill sits above it,
   and the list (icons) above both. */
.steps-wrap::before {
  content: "";
  position: absolute;
  top: 34px;
  /* from the first icon's centre to the last icon's centre */
  left: 34px;
  right: calc((100% - 60px) / 4 - 34px);
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
}
.step { position: relative; padding-right: 16px; }
.step__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #5b8cff 0%, #2e52f2 60%, #2440c9 100%);
  box-shadow: 0 16px 30px -14px rgba(46, 82, 242, 0.7);
}
.step__icon svg { width: 28px; height: 28px; }
.step__num {
  display: block;
  margin-top: 22px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.step h3 { margin-top: 8px; font-size: 19px; font-weight: 600; color: var(--navy); }
.step p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ==========================================================
   Builder
   ========================================================== */
.builder__grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field input, .field select {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232e52f2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.field input:focus-visible, .field select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46, 82, 242, 0.12); }

.roles-head { margin-top: 36px; }
.roles-head h3 { font-size: 20px; font-weight: 600; color: var(--navy); }
.roles-head p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

.depts { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dept {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px -24px rgba(22, 56, 140, 0.4);
}
.dept__head { display: flex; justify-content: space-between; align-items: baseline; }
.dept__head h4 { font-size: 15px; font-weight: 600; color: var(--navy); }
.dept__head span { font-size: 12px; color: var(--muted); }
.dept__roles { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}
.role.is-added { border-color: rgba(46, 82, 242, 0.45); background: #f3f6ff; }
.role__name { font-size: 14px; font-weight: 600; color: var(--navy); }
.role__meta { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.role__meta b { font-weight: 600; color: var(--accent); }
.role__add {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.role__add:hover { background: #d8e2ff; }
.role.is-added .role__add { color: #fff; background: var(--accent); }

.summary { position: sticky; top: 96px; padding-top: 150px; }
.summary__figure {
  position: absolute;
  top: 0;
  right: 10px;
  width: 190px;
  height: auto;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 96%);
}
.summary__card {
  position: relative;
  z-index: 1;
  padding: 26px;
  border-radius: 24px;
  /* Opaque so the figure standing behind it doesn't ghost through */
  background: #fff;
  border: 1px solid rgba(46, 82, 242, 0.08);
  box-shadow: 0 30px 60px -30px rgba(22, 56, 140, 0.45);
}
.summary__name { margin-top: 10px; font-size: 22px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.summary__meta { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.summary__list {
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-height: 280px;
  overflow: auto;
}
.summary__empty { font-size: 14px; color: var(--muted); text-align: center; padding: 18px 0; }
.sum-dept + .sum-dept { margin-top: 12px; }
.sum-dept h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sum-role {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--navy);
}
.sum-role__name { flex: 1; font-weight: 500; }
.sum-role__price { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.stepper button {
  width: 26px; height: 26px;
  font: inherit; font-size: 15px; line-height: 1;
  color: var(--accent);
  background: none; border: 0; cursor: pointer;
  border-radius: 50%;
}
.stepper button:hover { background: var(--accent-soft); }
.stepper span { min-width: 18px; text-align: center; font-size: 13px; font-weight: 600; }
.summary__total { margin: 18px 0 20px; }
.summary__total span { font-size: 13px; color: var(--muted); }
.summary__total strong {
  display: block;
  margin-top: 4px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.summary__total strong small { font-size: 15px; font-weight: 500; color: var(--muted); }
.summary__total p { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.summary__card .btn + .btn { margin-top: 10px; }

/* Compact running total; only shown when the summary sits below the roles. */
.builder-bar {
  display: none;
  position: sticky;
  bottom: 16px;
  z-index: 5;
  margin-top: 20px;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 12px 20px;
  border-radius: 999px;
  color: #fff;
  background: rgba(11, 31, 82, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -18px rgba(11, 31, 82, 0.6);
}
.builder-bar__meta { flex: 1; min-width: 0; font-size: 13.5px; color: rgba(220, 232, 255, 0.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.builder-bar__total { font-size: 17px; font-weight: 600; }
.builder-bar__cta {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
}

/* ==========================================================
   Pricing
   ========================================================== */
.plans {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.plan:hover { transform: translateY(-3px); }
.plan h3 { font-size: 17px; font-weight: 600; color: var(--navy); }
.plan__price { margin-top: 18px; font-size: 38px; font-weight: 600; letter-spacing: -0.03em; color: var(--navy); }
.plan__price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan__note { margin-top: 2px; font-size: 13px; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 12px; flex: 1; }
.plan li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232e52f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px -8px rgba(46, 82, 242, 0.7);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}
.plan.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan.is-current .plan__badge { opacity: 1; transform: none; }

.plan--dark {
  color: #fff;
  background: linear-gradient(160deg, #1f47c9 0%, #10296f 60%, #0a1b4d 100%);
  border-color: rgba(255, 255, 255, 0.1);
}
.plan--dark h3, .plan--dark .plan__price, .plan--dark li { color: #fff; }
.plan--dark .plan__note { color: rgba(220, 232, 255, 0.75); }
.plan--dark li::before { background-color: rgba(255, 255, 255, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8'/%3E%3C/svg%3E"); }
.plan--dark.is-current { box-shadow: 0 0 0 2px #7aa6ff, var(--shadow); }

.tiers {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 28px;
  align-items: center;
  padding: 22px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed var(--line-strong);
}
.tiers__label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tiers__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.tier {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.tier span { font-size: 13.5px; color: var(--muted); }
.tier strong { font-size: 17px; font-weight: 600; color: var(--navy); }
.tier strong small { font-size: 12px; font-weight: 500; color: var(--muted); }
.tiers__foot { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }

/* ==========================================================
   Experts
   ========================================================== */
.experts__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(36px, 5vw, 72px) 0 0 clamp(28px, 5vw, 72px);
  background: linear-gradient(135deg, #2a58d8 0%, #173a9f 38%, #0c2266 72%, #081744 100%);
  box-shadow: 0 40px 80px -40px rgba(12, 34, 102, 0.7);
  isolation: isolate;
}
.experts__sphere {
  position: absolute;
  right: -12%;
  top: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a6cf0 0%, #1a3fae 45%, #0b1f5c 75%);
  box-shadow: inset -30px -40px 80px rgba(0, 0, 0, 0.25);
  z-index: -1;
  opacity: 0.85;
}
.experts__copy { padding-bottom: clamp(36px, 5vw, 72px); }
.services {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 600px;
}
.service {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.service span { display: block; font-size: 13.5px; color: rgba(220, 232, 255, 0.8); }
.service strong { display: block; margin-top: 6px; font-size: 20px; font-weight: 600; color: #fff; }
.service small { font-size: 12.5px; color: rgba(220, 232, 255, 0.65); }
.experts__cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.experts__cta small { font-size: 12.5px; color: rgba(220, 232, 255, 0.65); max-width: 260px; }
.experts__figure {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: clamp(0px, 3vw, 40px);
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq__intro .link-arrow { margin-top: 24px; }
.faq__list { display: grid; gap: 12px; }
.qa {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px -24px rgba(22, 56, 140, 0.4);
  transition: border-color .25s;
}
.qa[open] { border-color: var(--line-strong); }
.qa summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 60px 22px 24px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 18px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232e52f2' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 3.5v9M3.5 8h9'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 24px 22px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ==========================================================
   Closing + footer
   ========================================================== */
.closing__panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(48px, 7vw, 88px) 24px;
  border-radius: 32px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(180deg, #dce8fb 0%, #c3d8f7 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}
.closing__panel .lede { margin-left: auto; margin-right: auto; }
.closing__ctas { margin-top: 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.footer {
  background: var(--bg);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.logo--dark { color: var(--navy); font-size: 26px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { font-size: 13px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  /* Organisation: stack before the org chart gets cramped. */
  .org__grid { grid-template-columns: 1fr; }
  .org__visual { max-width: 560px; width: 100%; margin: 0 auto; }

  /* Paths: single column; the guide peeks in beside the heading. */
  .paths__grid { position: relative; grid-template-columns: 1fr; }
  .paths__visual {
    position: absolute;
    top: -40px;
    right: var(--edge);
    width: 200px;
    height: 290px;          /* ends above the first option card */
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .paths__visual img { -webkit-mask-image: none; mask-image: none; }
  .paths__halo { bottom: auto; top: 70px; width: 100%; }
  .paths__body { position: relative; }
  .paths__body > .kicker, .paths__body > .h2, .paths__body > .lede { max-width: calc(100% - 230px); }
  .path { grid-template-columns: auto 1fr; row-gap: 12px; }
  .path .link-arrow { grid-column: 2; }

  /* Builder: summary moves below the roles; a sticky bar keeps the total in view. */
  .builder__grid { grid-template-columns: 1fr; }
  .summary { position: relative; top: 0; max-width: 560px; }
  .builder-bar { display: flex; }

  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps-wrap::before, .steps__fill { display: none; }
  .experts__panel { grid-template-columns: 1fr; padding-right: clamp(28px, 5vw, 72px); }
  /* FDE figure tucks into the top-right corner instead of adding a tall row. */
  .experts__figure {
    position: absolute;
    top: 28px;
    right: 20px;
    width: 170px;
    margin: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .experts__copy > .kicker, .experts__copy > .h2, .experts__copy > .lede { max-width: calc(100% - 180px); }
  .tiers { grid-template-columns: 1fr; }
  .tiers__row { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .orgchart { padding: 16px; }
  .orgchart__branches { grid-template-columns: 1fr; }
  .orgchart__bar { display: none; }
  .orgchart__stem { top: -36px; height: 36px; }
  .float-chip { position: relative; left: auto; bottom: auto; margin-top: 12px; font-size: 12.5px; }
  .paths__visual { display: none; }
  .paths__body > .kicker, .paths__body > .h2, .paths__body > .lede { max-width: none; }
  .path { grid-template-columns: 1fr; padding: 22px; }
  .path .link-arrow { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .depts { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .summary { padding-top: 120px; }
  .summary__figure { width: 150px; }
  .builder-bar__cta { display: none; }
  .experts__figure { position: static; width: 200px; margin: 24px auto 0; }
  .experts__copy > .kicker, .experts__copy > .h2, .experts__copy > .lede { max-width: none; }
  .experts__copy { padding-bottom: 0; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}
