:root {
  --case-ink: #15202f;
  --case-ink-soft: #314056;
  --case-paper: #f6f8fb;
  --case-card: #ffffff;
  --case-line: #d9e2ef;
  --case-blue: #1c63ff;
  --case-blue-dark: #1749ba;
  --case-copper: #b36b2c;
  --case-green: #087a63;
  --case-radius: 8px;
  --case-shadow: 0 18px 60px rgba(21, 32, 47, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.caseflow-home {
  margin: 0;
  background: var(--case-paper);
  color: var(--case-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.caseflow-home button,
body.caseflow-home input,
body.caseflow-home select {
  font: inherit;
}

body.caseflow-home a {
  color: inherit;
  text-decoration: none;
}

.caseflow-topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 72px;
  padding: 0 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(246, 248, 251, 0.86);
  backdrop-filter: blur(18px);
}

.caseflow-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  font-weight: 800;
}

.caseflow-wordmark span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--case-ink);
  color: #fff;
}

.caseflow-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: #536178;
  font-size: 14px;
  font-weight: 650;
}

.caseflow-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.caseflow-text-button,
.caseflow-solid-button,
.caseflow-outline-button,
.caseflow-glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: var(--case-radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
}

.caseflow-text-button {
  background: transparent;
  color: var(--case-ink);
  padding: 0 10px;
}

.caseflow-solid-button {
  background: var(--case-blue);
  color: #fff;
  padding: 0 18px;
  box-shadow: 0 12px 28px rgba(28, 99, 255, 0.24);
}

.caseflow-outline-button {
  border-color: #cbd7e8;
  background: #fff;
  color: var(--case-ink);
  padding: 0 16px;
}

.caseflow-glass-button {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0 18px;
}

.caseflow-stage {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 160px 54px 88px;
  isolation: isolate;
}

.caseflow-stage-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caseflow-stage-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(16, 24, 38, 0.95) 0%, rgba(16, 24, 38, 0.78) 34%, rgba(16, 24, 38, 0.26) 72%, rgba(16, 24, 38, 0.08) 100%),
    linear-gradient(0deg, rgba(16, 24, 38, 0.66) 0%, rgba(16, 24, 38, 0) 42%);
}

.caseflow-stage-copy {
  width: min(690px, 100%);
  color: #fff;
}

.caseflow-kicker,
.caseflow-section-title p {
  margin: 0 0 14px;
  color: var(--case-blue);
  font-size: 13px;
  font-weight: 850;
}

.caseflow-stage-copy .caseflow-kicker {
  color: #94b7ff;
}

.caseflow-stage-copy h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.92;
  font-weight: 900;
}

.caseflow-lead {
  width: min(560px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.caseflow-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.caseflow-stage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
  width: min(640px, 100%);
  margin-top: 30px;
}

.caseflow-stage-metrics span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.caseflow-stage-metrics b {
  color: #fff;
  font-size: 20px;
}

.caseflow-proof-wall {
  position: absolute;
  right: 54px;
  bottom: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  width: min(560px, calc(100vw - 108px));
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(14px);
}

.caseflow-proof-wall span {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
}

.caseflow-proof-wall span:last-child {
  border-right: 0;
}

.caseflow-proof-wall b {
  color: #9dbdff;
  font-size: 12px;
}

.caseflow-proof,
.caseflow-efficiency-board,
.caseflow-outcome-lanes,
.caseflow-route,
.caseflow-plans,
.caseflow-centers {
  padding: 96px 54px;
}

.caseflow-section-title {
  width: min(920px, 100%);
  margin-bottom: 38px;
}

.caseflow-section-title h2 {
  margin: 0;
  color: var(--case-ink);
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.05;
  font-weight: 900;
}

.caseflow-proof-grid,
.caseflow-efficiency-grid,
.caseflow-deployment-grid,
.caseflow-center-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.caseflow-proof-grid article,
.caseflow-efficiency-grid article,
.caseflow-deployment-grid article,
.caseflow-center-list article,
.caseflow-plan-list article {
  display: grid;
  gap: 18px;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--case-line);
  border-radius: var(--case-radius);
  background: var(--case-card);
  box-shadow: 0 1px 0 rgba(21, 32, 47, 0.03);
}

.caseflow-proof-grid span,
.caseflow-efficiency-grid span,
.caseflow-deployment-grid b,
.caseflow-plan-list b {
  color: var(--case-copper);
  font-size: 13px;
  font-weight: 850;
}

.caseflow-proof-grid h3,
.caseflow-efficiency-grid h3,
.caseflow-deployment-grid h3,
.caseflow-center-list h3,
.caseflow-plan-list h3 {
  margin: 0;
  color: var(--case-ink);
  font-size: 23px;
  line-height: 1.25;
}

.caseflow-proof-grid p,
.caseflow-efficiency-grid p,
.caseflow-deployment-grid p,
.caseflow-center-list p,
.caseflow-plan-list p {
  margin: 0;
  color: #657287;
  line-height: 1.75;
}

.caseflow-efficiency-board {
  background: #f7f9fc;
}

.caseflow-efficiency-grid article {
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(24, 92, 255, 0.08), rgba(24, 92, 255, 0)),
    #fff;
}

.caseflow-efficiency-grid strong {
  color: var(--case-blue-dark);
  font-size: 34px;
  line-height: 1;
}

.caseflow-outcome-lanes {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(420px, 1.12fr);
  gap: 34px;
  align-items: start;
  background: #fff;
}

.caseflow-outcome-copy {
  position: sticky;
  top: 96px;
}

.caseflow-outcome-copy p {
  margin: 18px 0 0;
  color: #657287;
  line-height: 1.8;
}

.caseflow-outcome-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.caseflow-outcome-list article {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--case-line);
  border-radius: var(--case-radius);
  background: #f8fafc;
}

.caseflow-outcome-list b {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e9f1ff;
  color: var(--case-blue);
}

.caseflow-outcome-list h3 {
  margin: 0;
  color: var(--case-ink);
  font-size: 22px;
}

.caseflow-outcome-list p {
  margin: 0;
  color: #657287;
  line-height: 1.75;
}

.caseflow-route {
  background: var(--case-ink);
}

.caseflow-route .caseflow-section-title h2 {
  color: #fff;
}

.caseflow-route .caseflow-section-title p {
  color: #94b7ff;
}

.caseflow-route-line {
  display: grid;
  grid-template-columns: repeat(9, minmax(120px, 1fr));
  overflow-x: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.caseflow-route-line li {
  display: grid;
  gap: 16px;
  min-height: 132px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.caseflow-route-line li:last-child {
  border-right: 0;
}

.caseflow-route-line b {
  color: #94b7ff;
  font-size: 13px;
}

.caseflow-route-line span {
  align-self: end;
  font-size: 18px;
  font-weight: 800;
}

.caseflow-plans {
  background: #eaf0f8;
}

.caseflow-deployment-ladder {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: 22px;
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid #cbd7e8;
  border-radius: var(--case-radius);
  background: #fff;
}

.caseflow-deployment-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.caseflow-deployment-copy p {
  margin: 0;
  color: var(--case-blue);
  font-size: 13px;
  font-weight: 850;
}

.caseflow-deployment-copy h3 {
  margin: 0;
  color: var(--case-ink);
  font-size: 28px;
  line-height: 1.18;
}

.caseflow-deployment-note {
  display: block;
  color: #526071;
  line-height: 1.75;
}

.caseflow-deployment-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.caseflow-deployment-grid article {
  min-height: 210px;
  padding: 20px;
  background: #f8fbff;
}

.caseflow-deployment-grid article h3 {
  font-size: 20px;
}

.caseflow-consult-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
  padding: 24px;
  border: 1px solid #b8c8df;
  border-radius: var(--case-radius);
  background: #fff;
}

.caseflow-consult-strip > div:first-child {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.caseflow-consult-strip p {
  margin: 0;
  color: var(--case-blue);
  font-size: 13px;
  font-weight: 850;
}

.caseflow-consult-strip h3 {
  margin: 0;
  color: var(--case-ink);
  font-size: 26px;
  line-height: 1.2;
}

.caseflow-consult-strip span {
  color: #526071;
  line-height: 1.75;
}

.caseflow-consult-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.caseflow-consult-actions a {
  border: 1px solid #b8c8df;
  border-radius: var(--case-radius);
  background: #fff;
  color: var(--case-blue-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.caseflow-consult-actions a:first-child {
  border-color: var(--case-blue);
  background: var(--case-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(28, 99, 255, 0.18);
}

.caseflow-plan-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.caseflow-plan-list article.is-emphasis {
  border-color: #8facff;
  box-shadow: var(--case-shadow);
}

.caseflow-plan-list a,
.caseflow-center-list a {
  justify-self: start;
  align-self: end;
  border: 1px solid #b8c8df;
  border-radius: var(--case-radius);
  background: #fff;
  color: var(--case-blue-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 9px 14px;
  text-decoration: none;
}

.caseflow-centers {
  background: var(--case-paper);
}

.caseflow-user {
  position: relative;
}

.caseflow-user > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #cbd7e8;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  padding: 4px 12px 4px 5px;
}

.caseflow-user > button span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--case-blue);
  color: #fff;
}

.caseflow-user-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 2px);
  right: 0;
  display: none;
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--case-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--case-shadow);
}

.caseflow-user-menu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 100%;
  height: 10px;
  content: "";
}

.caseflow-user.is-open .caseflow-user-menu,
.caseflow-user:hover .caseflow-user-menu,
.caseflow-user:focus-within .caseflow-user-menu {
  display: grid;
}

.caseflow-user-menu a,
.caseflow-user-menu button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--case-ink);
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.caseflow-user-menu button:focus-visible,
.caseflow-user-menu a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
}

.caseflow-user-menu button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.caseflow-user-menu a:hover,
.caseflow-user-menu button:hover {
  background: #eef4ff;
}

.caseflow-dialog {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 13, 24, 0.58);
}

.caseflow-dialog-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  padding: 30px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.caseflow-dialog-panel.small {
  width: min(460px, 100%);
}

.caseflow-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid #d8e2ef;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.caseflow-dialog-heading h2,
.caseflow-dialog-panel h2 {
  margin: 0 0 8px;
  color: var(--case-ink);
  font-size: 28px;
}

.caseflow-dialog-heading p {
  margin: 0 0 18px;
  color: #657287;
  line-height: 1.7;
}

.caseflow-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.caseflow-tabs button {
  border: 1px solid #d8e2ef;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  padding: 9px;
}

.caseflow-tabs button.is-active {
  border-color: var(--case-blue);
  background: #eef4ff;
  color: var(--case-blue-dark);
  font-weight: 800;
}

.caseflow-form {
  display: grid;
  gap: 14px;
}

.caseflow-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 700;
}

.caseflow-registration-role {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.caseflow-registration-role legend {
  grid-column: 1 / -1;
  margin-bottom: 1px;
  color: #344054;
  font-weight: 800;
}

.caseflow-registration-role .caseflow-registration-role-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.caseflow-registration-role-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.caseflow-registration-role-option span {
  display: grid;
  min-height: 96px;
  align-content: start;
  gap: 5px;
  padding: 13px;
  border: 1px solid #cbd7e8;
  border-radius: var(--case-radius);
  background: #fff;
}

.caseflow-registration-role-option strong {
  color: var(--case-ink);
}

.caseflow-registration-role-option small {
  color: #526071;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.caseflow-registration-role-option input:checked + span {
  border-color: var(--case-blue);
  background: #eef4ff;
  box-shadow: 0 0 0 1px var(--case-blue);
}

.caseflow-registration-role-option input:focus-visible + span {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.caseflow-password-field {
  position: relative;
}

.caseflow-password-field input {
  padding-right: 52px;
}

.caseflow-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #667085;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}

.caseflow-password-toggle:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.caseflow-password-toggle:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.caseflow-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.caseflow-form input,
.caseflow-form select {
  width: 100%;
  border: 1px solid #cbd7e8;
  border-radius: var(--case-radius);
  padding: 11px 12px;
}

.caseflow-form-message {
  min-height: 22px;
  margin: 0;
  color: #c2412d;
}

.caseflow-form-message.is-success {
  color: var(--case-green);
}

.caseflow-form-message a {
  color: var(--case-blue-dark);
  font-weight: 800;
}

.caseflow-invite-login-notice {
  display: grid;
  gap: 5px;
  border: 1px solid #b8cdfc;
  border-radius: var(--case-radius);
  background: #f4f7ff;
  padding: 12px 13px;
  color: #344054;
}

.caseflow-invite-login-notice strong {
  color: var(--case-blue-dark);
}

.caseflow-invite-login-notice span {
  color: var(--case-muted);
  font-size: 13px;
  line-height: 1.6;
}

.caseflow-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.caseflow-plan-detail {
  color: #526071;
  line-height: 1.8;
}

.caseflow-toast {
  position: fixed;
  z-index: 110;
  right: 24px;
  bottom: 24px;
  transform: translateY(20px);
  opacity: 0;
  border-radius: 999px;
  background: var(--case-ink);
  color: #fff;
  padding: 12px 18px;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.caseflow-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .caseflow-topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 24px;
  }

  .caseflow-nav {
    display: none;
  }

  .caseflow-stage,
  .caseflow-proof,
  .caseflow-efficiency-board,
  .caseflow-outcome-lanes,
  .caseflow-route,
  .caseflow-plans,
  .caseflow-centers {
    padding-inline: 24px;
  }

  .caseflow-proof-grid,
  .caseflow-efficiency-grid,
  .caseflow-deployment-ladder,
  .caseflow-consult-strip,
  .caseflow-deployment-grid,
  .caseflow-center-list,
  .caseflow-plan-list {
    grid-template-columns: 1fr;
  }

  .caseflow-outcome-lanes {
    grid-template-columns: 1fr;
  }

  .caseflow-outcome-copy {
    position: static;
  }

  .caseflow-consult-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .caseflow-topbar {
    min-height: 64px;
  }

  .caseflow-wordmark strong,
  .caseflow-toolbar .caseflow-text-button {
    display: none;
  }

  .caseflow-toolbar {
    gap: 6px;
  }

  .caseflow-solid-button,
  .caseflow-outline-button,
  .caseflow-glass-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 14px;
  }

  .caseflow-stage {
    min-height: 720px;
    padding-top: 118px;
    padding-bottom: 172px;
  }

  .caseflow-stage-shade {
    background: linear-gradient(90deg, rgba(16, 24, 38, 0.96), rgba(16, 24, 38, 0.78));
  }

  .caseflow-stage-copy h1 {
    font-size: 48px;
  }

  .caseflow-lead {
    font-size: 16px;
  }

  .caseflow-proof-wall {
    right: 24px;
    bottom: 28px;
    width: calc(100vw - 48px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .caseflow-proof-wall span:nth-child(2) {
    border-right: 0;
  }

  .caseflow-proof-wall span:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .caseflow-stage-metrics,
  .caseflow-outcome-list {
    grid-template-columns: 1fr;
  }

  .caseflow-consult-actions {
    display: grid;
  }

  .caseflow-consult-actions a {
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .caseflow-section-title h2 {
    font-size: 34px;
  }

  .caseflow-proof-grid article,
  .caseflow-efficiency-grid article,
  .caseflow-outcome-list article,
  .caseflow-center-list article,
  .caseflow-plan-list article {
    min-height: 0;
    padding: 22px;
  }

  .caseflow-dialog-panel {
    padding: 24px;
  }

  .caseflow-registration-role {
    grid-template-columns: 1fr;
  }

  .caseflow-registration-role-option span {
    min-height: 0;
  }
}
