@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

/* ------------------------------------------------------------------ */
/*  Lepinion "How It Works" — self-contained, scoped to .lep-hiw       */
/*  Nothing here leaks out; nothing outside leaks in.                  */
/* ------------------------------------------------------------------ */

.lep-hiw {
  --lep-navy: #081c4b;
  --lep-gold: #d0a240;
  --lep-gray: #777777;
  --lep-slate: #3c526b;
  --lep-beige: #ecdebe;
  --lep-dark: #454444;
  --lep-tint: #fefdfc;
  --embed-rem: 16px;
  --lep-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lep-display: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  position: relative;
  z-index: 1;
  width: 100%;
  padding: calc(6 * var(--embed-rem)) 0;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid rgba(236, 222, 190, .5);
  font-family: var(--lep-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--lep-dark);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

@media (min-width: 640px) {
  .lep-hiw {
    padding: calc(8 * var(--embed-rem)) 0;
  }
}

/* --- scoped mini-reset: neutralises the Magento theme inside our box --- */
.lep-hero,
.lep-hero *,
.lep-hero *::before,
.lep-hero *::after,
.lep-hiw,
.lep-hiw *,
.lep-hiw *::before,
.lep-hiw *::after {
  box-sizing: border-box;
}
.lep-hero *::before,
.lep-hero *::after,
.lep-hiw *::before,
.lep-hiw *::after {
    display: none;
}

.lep-hiw :where(h2, h3, h4, p, span, div) {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: none;
}

.lep-hiw :where(button) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-align: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  border-radius: 0;
}

.lep-hiw :where(button:hover, button:focus, button:active) {
  background: none;
  border: 0;
  box-shadow: none;
}

.lep-hiw svg {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lep-hiw [hidden] {
  display: none !important;
}

/* --- icon sizes --- */
.lep-i3 { width: 12px; height: 12px; }
.lep-i4 { width: 16px; height: 16px; }
.lep-i5 { width: 20px; height: 20px; }
.lep-i6 { width: 24px; height: 24px; }
.lep-i8 { width: 32px; height: 32px; }

@media (min-width: 640px) {
  .lep-i5-sm6 { width: 24px; height: 24px; }
  .lep-i8-sm10 { width: 40px; height: 40px; }
}

/* --- scroll areas (the original had a no-op `no-scrollbar` class) --- */
.lep-noscroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lep-noscroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* ------------------------------- layout ------------------------------- */

.lep-hero {
  --lep-navy: #081c4b;
  --lep-gold: #d0a240;
  --lep-gray: #777;
  --lep-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --lep-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --embed-rem: 16px;
  max-width: calc(56 * var(--embed-rem));
  margin: 0 auto;
  padding: calc(6 * var(--embed-rem)) calc(1 * var(--embed-rem));
  text-align: center;
  box-sizing: border-box;
  font-family: var(--lep-sans);
}

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

.lep-hero h1 {
  margin: 0 0 calc(1.5 * var(--embed-rem));
  font-family: var(--lep-display);
  font-size: calc(2.25 * var(--embed-rem));
  font-weight: 700;
  line-height: 1.15;
  color: var(--lep-navy);
}

.lep-hero h1 span {
  color: var(--lep-gold);
}

.lep-hero p {
  max-width: calc(42 * var(--embed-rem));
  margin: 0 auto calc(2 * var(--embed-rem));
  font-size: calc(1.125 * var(--embed-rem));
  font-weight: 500;
  line-height: 1.5;
  color: var(--lep-gray);
}

.lep-hero__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(.875 * var(--embed-rem)) calc(2 * var(--embed-rem));
  border: 0 !important;
  border-radius: 9999px;
  background: var(--lep-navy) !important;
  color: #fff !important;
  font-family: var(--lep-sans);
  font-size: calc(1 * var(--embed-rem));
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 10px 15px -3px rgba(8, 28, 75, .2);
  cursor: pointer;
}

.lep-hero__primary:hover,
.lep-hero__primary:focus {
    background-color: rgba(8, 28, 75, 0.9) !important;
    color: #fff !important;
}

.lep-hero__arrow {
  display: block;
  width: calc(1.5 * var(--embed-rem));
  height: calc(1.5 * var(--embed-rem));
  margin: calc(4 * var(--embed-rem)) auto 0;
  color: rgba(208, 162, 64, .6);
  animation: lep-bounce 1s infinite;
}

@media (min-width: 640px) {
  .lep-hero {
    padding-top: calc(6 * var(--embed-rem));
    padding-bottom: calc(6 * var(--embed-rem));
  }

  .lep-hero h1 { font-size: calc(3 * var(--embed-rem)); }
  .lep-hero p { font-size: calc(1.25 * var(--embed-rem)); }
}

@media (min-width: 1024px) {
  .lep-hero h1 { font-size: calc(3.75 * var(--embed-rem)); }
}

.lep-wrap {
  max-width: calc(85 * var(--embed-rem));
  margin: 0 auto;
  padding: 0 calc(1 * var(--embed-rem));
}

@media (min-width: 640px) {
  .lep-wrap {
    padding: 0 calc(1.5 * var(--embed-rem));
  }
}

@media (min-width: 1024px) {
  .lep-wrap {
    padding: 0 calc(2 * var(--embed-rem));
  }
}

.lep-head {
  max-width: calc(48 * var(--embed-rem));
  margin: 0 auto calc(4 * var(--embed-rem));
  text-align: center;
}

@media (min-width: 640px) {
  .lep-head {
    margin-bottom: calc(5 * var(--embed-rem));
  }
}

.lep-head h2 {
  margin-bottom: calc(1.25 * var(--embed-rem));
  font-family: var(--lep-display);
  font-size: calc(1.875 * var(--embed-rem));
  font-weight: 700;
  line-height: 1.15;
  color: var(--lep-navy);
}

.lep-head p {
  max-width: calc(42 * var(--embed-rem));
  margin: 0 auto calc(3 * var(--embed-rem));
  font-size: calc(1.125 * var(--embed-rem));
  font-weight: 500;
  line-height: 1.65;
  color: var(--lep-gray);
}

@media (min-width: 640px) {
  .lep-head h2 { font-size: calc(2.25 * var(--embed-rem)); margin-bottom: calc(1.5 * var(--embed-rem)); }
  .lep-head p { font-size: calc(1.25 * var(--embed-rem)); }
}

@media (min-width: 1024px) {
  .lep-head h2 { font-size: calc(3 * var(--embed-rem)); }
}

/* ------------------------- segmented control -------------------------- */

.lep-seg {
  position: relative;
  display: inline-flex;
  margin-bottom: calc(.5 * var(--embed-rem));
  padding: calc(.375 * var(--embed-rem));
  border-radius: 9999px;
  background: rgba(236, 222, 190, .3);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, .05);
}

.lep-seg__thumb {
  position: absolute;
  top: calc(.375 * var(--embed-rem));
  bottom: calc(.375 * var(--embed-rem));
  left: calc(.375 * var(--embed-rem));
  width: calc(50% - 6px);
  border-radius: 9999px;
  background: var(--lep-navy);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  transition: transform .3s ease-out;
}

.lep-seg__btn {
  position: relative;
  z-index: 1;
  flex: 0 0 calc(11 * var(--embed-rem));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(.625 * var(--embed-rem));
  width: calc(11 * var(--embed-rem));
  padding: calc(.75 * var(--embed-rem)) calc(1.5 * var(--embed-rem));
  border-radius: 9999px;
  font-size: calc(.875 * var(--embed-rem));
  font-weight: 700;
  color: var(--lep-slate) !important;
  transition: color .3s;
}

.lep-seg__btn,
.lep-seg__btn:hover,
.lep-seg__btn:focus,
.lep-seg__btn:before,
.lep-seg__btn:hover:before {
  background: none !important;
  border: none;
}

.lep-seg__btn:hover {
  color: var(--lep-navy) !important;
}

.lep-seg__btn.is-active,
.lep-seg__btn.is-active:hover {
  color: #fff !important;
}

.lep-seg__btn:focus-visible {
  outline: 2px solid var(--lep-gold);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .lep-seg { padding: calc(.5 * var(--embed-rem)); }

  .lep-seg__thumb {
    top: calc(.5 * var(--embed-rem));
    bottom: calc(.5 * var(--embed-rem));
    left: calc(.5 * var(--embed-rem));
    width: calc(50% - 8px);
  }

  .lep-seg__btn {
    width: calc(13 * var(--embed-rem));
    flex-basis: calc(13 * var(--embed-rem));
    padding: calc(.875 * var(--embed-rem)) calc(2 * var(--embed-rem));
    font-size: calc(1 * var(--embed-rem));
  }
}

/* ------------------------------ the flows ----------------------------- */

.lep-stage {
  position: relative;
  min-height: 400px;
}

.lep-flow {
  position: relative;
  z-index: 1;
  width: 100%;
}

.lep-flow--lawyers {
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--embed-rem));
}

@media (min-width: 1024px) {
  .lep-flow--lawyers {
    gap: calc(4 * var(--embed-rem));
  }
}

.lep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(4 * var(--embed-rem));
}

@media (min-width: 1024px) {
  .lep-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(2.5 * var(--embed-rem));
  }
}

.lep-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.lep-step__text {
  position: relative;
  z-index: 1;
  flex: none;
  margin-bottom: calc(1.5 * var(--embed-rem));
}

@media (min-width: 1024px) {
  .lep-step__text {
    margin-bottom: calc(2 * var(--embed-rem));
    min-height: 160px;
  }
}

@media (min-width: 1280px) {
  .lep-step__text {
    min-height: 140px;
  }
}

.lep-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(3 * var(--embed-rem));
  height: calc(3 * var(--embed-rem));
  margin-bottom: calc(1 * var(--embed-rem));
  border-radius: 9999px;
  background: var(--lep-navy);
  font-size: calc(1.25 * var(--embed-rem));
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}

.lep-step__text h3 {
  margin-bottom: calc(.5 * var(--embed-rem));
  font-family: var(--lep-display);
  font-size: calc(1.25 * var(--embed-rem));
  font-weight: 700;
  line-height: 1.3;
  color: var(--lep-navy);
}

.lep-step__text p {
  font-size: calc(.875 * var(--embed-rem));
  font-weight: 500;
  line-height: 1.65;
  color: var(--lep-gray);
}

@media (min-width: 640px) {
  .lep-badge { margin-bottom: calc(1.25 * var(--embed-rem)); }
  .lep-step__text h3 { font-size: calc(1.5 * var(--embed-rem)); margin-bottom: calc(.75 * var(--embed-rem)); }
  .lep-step__text p { font-size: calc(1 * var(--embed-rem)); }
}

.lep-step__body {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  min-height: calc(20 * var(--embed-rem));
}

@media (min-width: 640px) {
  .lep-step__body {
    min-height: calc(22 * var(--embed-rem));
  }
}

/* ---------------------------- connectors ------------------------------ */

.lep-conn-h {
  display: none;
}

.lep-conn-v {
  position: absolute;
  bottom: calc(-4 * var(--embed-rem));
  left: 50%;
  z-index: 0;
  width: 2px;
  height: calc(4 * var(--embed-rem));
  overflow: hidden;
  background: var(--lep-beige);
  transform: translateX(-50%);
}

.lep-conn-v__fill {
  width: 100%;
  background: var(--lep-gold);
}

@media (min-width: 1024px) {
  .lep-conn-v {
    display: none;
  }

  .lep-conn-h {
    position: absolute;
    top: 50%;
    right: calc(-2.5 * var(--embed-rem));
    z-index: 0;
    display: flex;
    align-items: center;
    width: calc(2.5 * var(--embed-rem));
    height: 2px;
    transform: translateY(-50%);
  }
}

.lep-conn-h__track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--lep-beige);
}

.lep-conn-h__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--lep-gold);
  box-shadow: 0 0 8px var(--lep-gold);
}

.lep-conn-h__dot {
  position: absolute;
  right: calc(-.375 * var(--embed-rem));
  width: calc(.75 * var(--embed-rem));
  height: calc(.75 * var(--embed-rem));
  border-radius: 9999px;
  background: var(--lep-gold);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

/* ------------------------------- cards -------------------------------- */

.lep-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(236, 222, 190, .8);
  border-radius: calc(1 * var(--embed-rem));
  background: var(--lep-tint);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

.lep-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(.5 * var(--embed-rem));
  z-index: 2;
  padding: calc(.875 * var(--embed-rem)) calc(1 * var(--embed-rem));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

.lep-card__bar--navy {
  background: var(--lep-navy);
  border-bottom: 1px solid var(--lep-slate);
}

.lep-card__bar--light {
  background: #fff;
  border-bottom: 1px solid rgba(236, 222, 190, .8);
}

.lep-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: calc(.75 * var(--embed-rem));
  padding: calc(1 * var(--embed-rem));
  overflow-y: auto;
}

@media (min-width: 640px) {
  .lep-card__body {
    padding: calc(1.25 * var(--embed-rem));
  }
}

.lep-eyebrow {
  display: flex;
  align-items: center;
  gap: calc(.625 * var(--embed-rem));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lep-eyebrow--gold { color: var(--lep-gold); }
.lep-eyebrow--slate { color: var(--lep-slate); }
.lep-eyebrow--slate.lep-eyebrow--large { font-size: 12px; }
.lep-eyebrow--white { color: #fff; font-size: 12px; }
.lep-eyebrow--navy { color: var(--lep-navy); font-size: 12px; }

/* ----------------------- lawyers step 1: two tiles -------------------- */

.lep-card--split {
  gap: calc(1 * var(--embed-rem));
  padding: calc(1.25 * var(--embed-rem));
}

.lep-tile {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(1 * var(--embed-rem));
  overflow: hidden;
  border: 1px solid rgba(236, 222, 190, .8);
  border-radius: calc(.75 * var(--embed-rem));
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
  transition: border-color .3s, box-shadow .3s;
}

.lep-tile:hover {
  border-color: rgba(208, 162, 64, .4);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
}

.lep-tile__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(3 * var(--embed-rem));
  height: calc(3 * var(--embed-rem));
  margin-bottom: calc(.75 * var(--embed-rem));
  border-radius: 9999px;
  transition: background-color .3s, color .3s;
}

.lep-tile__ic--navy { background: rgba(8, 28, 75, .05); color: var(--lep-navy); }
.lep-tile__ic--gold { background: rgba(208, 162, 64, .1); color: var(--lep-gold); }
.lep-tile:hover .lep-tile__ic--navy { background: var(--lep-navy); color: var(--lep-gold); }
.lep-tile:hover .lep-tile__ic--gold { background: var(--lep-gold); color: var(--lep-navy); }

.lep-tile h4 {
  margin-bottom: calc(.25 * var(--embed-rem));
  font-size: calc(.875 * var(--embed-rem));
  font-weight: 700;
  color: var(--lep-navy);
}

.lep-tile p {
  font-size: calc(.75 * var(--embed-rem));
  line-height: 1.4;
  color: var(--lep-gray);
}

@media (min-width: 640px) {
  .lep-tile { padding: calc(1.25 * var(--embed-rem)); }
  .lep-tile__ic { margin-bottom: calc(1 * var(--embed-rem)); }
  .lep-tile h4 { margin-bottom: calc(.375 * var(--embed-rem)); }
}

.lep-or {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(.75 * var(--embed-rem));
  width: 100%;
  opacity: .6;
}

.lep-or::before,
.lep-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--lep-beige);
}

.lep-or span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lep-slate);
}

/* ----------------------------- chat bubbles --------------------------- */

.lep-chat {
  gap: calc(1 * var(--embed-rem));
  padding-bottom: calc(2 * var(--embed-rem));
}

.lep-msg {
  display: flex;
  gap: calc(.625 * var(--embed-rem));
}

.lep-msg--me {
  flex-direction: row-reverse;
}

.lep-av {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(2 * var(--embed-rem));
  height: calc(2 * var(--embed-rem));
  border-radius: 9999px;
  font-size: calc(.75 * var(--embed-rem));
  font-weight: 700;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

.lep-av--bot { background: var(--lep-gold); color: var(--lep-navy); }
.lep-av--me { background: var(--lep-navy); color: #fff; }
.lep-av--ghost { background: #e2e8f0; color: #64748b; }

.lep-bub {
  max-width: 85%;
  padding: calc(.75 * var(--embed-rem));
  border-radius: calc(1 * var(--embed-rem));
  font-size: calc(.75 * var(--embed-rem));
  line-height: 1.6;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

.lep-bub--bot {
  border: 1px solid var(--lep-beige);
  border-top-left-radius: calc(.125 * var(--embed-rem));
  background: #fff;
  color: var(--lep-navy);
}

.lep-bub--me {
  border-top-right-radius: calc(.125 * var(--embed-rem));
  background: var(--lep-navy);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
}

.lep-bub--typing {
  display: flex;
  align-items: center;
  gap: calc(.375 * var(--embed-rem));
  border-top-right-radius: calc(.125 * var(--embed-rem));
  background: #f1f5f9;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, .05);
}

.lep-bub--typing i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #94a3b8;
  animation: lep-bounce 1s infinite;
}

.lep-bub--typing i:nth-child(2) { animation-delay: .2s; }
.lep-bub--typing i:nth-child(3) { animation-delay: .4s; }

/* ------------------------- summary / analysis rows -------------------- */

.lep-row {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(236, 222, 190, .8);
  border-radius: calc(.75 * var(--embed-rem));
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
  transition: box-shadow .3s;
}

.lep-row:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
}

.lep-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(.5 * var(--embed-rem)) calc(.875 * var(--embed-rem));
  border-bottom: 1px solid rgba(236, 222, 190, .5);
  background: rgba(236, 222, 190, .2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lep-slate);
}

.lep-row__val {
  margin: calc(.375 * var(--embed-rem));
  padding: calc(.625 * var(--embed-rem)) calc(1 * var(--embed-rem));
  border-left: 3px solid var(--lep-slate);
  border-radius: 0 calc(.375 * var(--embed-rem)) calc(.375 * var(--embed-rem)) 0;
  background: rgba(60, 82, 107, .05);
  font-size: calc(.75 * var(--embed-rem));
  font-weight: 700;
  line-height: 1.6;
  color: var(--lep-navy);
}

.lep-row__val--gold {
  border-left-color: var(--lep-gold);
  background: rgba(236, 222, 190, .1);
}

.lep-row--danger { border-color: #fee2e2; }
.lep-row--danger .lep-row__head { border-bottom-color: #fee2e2; background: rgba(254, 242, 242, .8); color: #dc2626; }
.lep-row--danger .lep-row__val { border-left-color: #ef4444; background: rgba(254, 242, 242, .5); color: #b91c1c; }

.lep-pulse {
  width: calc(.5 * var(--embed-rem));
  height: calc(.5 * var(--embed-rem));
  border-radius: 9999px;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

/* flat variant used by the clients "analysis" panel */
.lep-flat {
  display: flex;
  flex-direction: column;
  padding: calc(.625 * var(--embed-rem)) calc(.875 * var(--embed-rem));
  border: 1px solid rgba(236, 222, 190, .8);
  border-left: 3px solid var(--lep-slate);
  border-radius: calc(.75 * var(--embed-rem));
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
  transition: box-shadow .3s;
}

.lep-flat:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
}

.lep-flat__k {
  display: block;
  margin-bottom: calc(.25 * var(--embed-rem));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lep-slate);
}

.lep-flat__v {
  font-size: calc(.75 * var(--embed-rem));
  font-weight: 700;
  line-height: 1.6;
  color: var(--lep-navy);
}

.lep-flat--danger { border-color: #fee2e2; border-left-color: #ef4444; }
.lep-flat--danger .lep-flat__k { color: #dc2626; }
.lep-flat--danger .lep-flat__v { color: #b91c1c; }

.lep-flat--gold { border-color: rgba(208, 162, 64, .4); border-left-color: var(--lep-gold); background: #fff; }
.lep-flat--gold .lep-flat__k { color: var(--lep-gold); }
.lep-flat--gold .lep-flat__v { font-weight: 600; color: rgba(69, 68, 68, .8); }

.lep-flat--facts .lep-flat__v { font-weight: 600; }

/* --------------------------- routing / actions ------------------------ */

.lep-lead {
  padding: calc(.875 * var(--embed-rem));
  border: 1px solid rgba(236, 222, 190, .8);
  border-radius: calc(.75 * var(--embed-rem));
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

.lep-lead__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: calc(.625 * var(--embed-rem));
}

.lep-lead__id {
  padding: calc(.125 * var(--embed-rem)) calc(.5 * var(--embed-rem));
  border-radius: calc(.375 * var(--embed-rem));
  background: rgba(236, 222, 190, .5);
  font-size: 10px;
  font-weight: 700;
  color: var(--lep-navy);
}

.lep-lead h4 {
  margin-bottom: calc(.375 * var(--embed-rem));
  font-size: calc(.875 * var(--embed-rem));
  font-weight: 700;
  color: var(--lep-navy);
}

.lep-lead p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: calc(.75 * var(--embed-rem));
  line-height: 1.6;
  color: var(--lep-gray);
}

.lep-next {
  padding-bottom: calc(.375 * var(--embed-rem));
  margin-bottom: calc(.75 * var(--embed-rem));
  border-bottom: 1px solid rgba(236, 222, 190, .6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lep-slate);
}

.lep-actions {
  display: flex;
  flex-direction: column;
  gap: calc(.5 * var(--embed-rem));
}

.lep-act {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: calc(.625 * var(--embed-rem));
  border: 1px solid transparent;
  border-radius: calc(.5 * var(--embed-rem));
  transition: background-color .2s, border-color .2s, transform .2s;
}

.lep-act__l {
  display: flex;
  align-items: center;
  gap: calc(.625 * var(--embed-rem));
  font-size: calc(.75 * var(--embed-rem));
  font-weight: 700;
}

.lep-hiw .lep-act--ghost { color: var(--lep-navy) !important; }
.lep-hiw .lep-act--ghost:hover, .lep-hiw .lep-act--ghost:focus { background: rgba(236, 222, 190, .3) !important; border-color: rgba(236, 222, 190, .6); }
.lep-hiw .lep-act--ghost .lep-act__ch { color: var(--lep-gray); transition: color .2s; }
.lep-hiw .lep-act--ghost:hover .lep-act__ch, .lep-hiw .lep-act--ghost:focus .lep-act__ch { color: var(--lep-navy); }
.lep-hiw .lep-act--ghost .lep-act__l svg { transition: color .2s; }
.lep-hiw .lep-act--ghost:hover .lep-act__l svg, .lep-hiw .lep-act--ghost:focus .lep-act__l svg { color: var(--lep-gold); }

.lep-hiw .lep-act--solid {
  background: var(--lep-navy) !important;
  color: #fff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
}

.lep-hiw .lep-act--solid:hover,
.lep-hiw .lep-act--solid:focus {
  background: rgba(8, 28, 75, .9) !important;
  transform: translateY(-2px);
}

.lep-act--solid svg { color: var(--lep-gold); }

.lep-act:focus-visible {
  outline: 2px solid var(--lep-gold);
  outline-offset: 2px;
}

/* --------------------------- lawyer picker ---------------------------- */

.lep-pick {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: calc(1 * var(--embed-rem));
  padding: calc(.875 * var(--embed-rem));
  overflow: hidden;
}

@media (min-width: 640px) {
  .lep-pick {
    padding: calc(1 * var(--embed-rem));
  }
}

.lep-chips {
  display: flex;
  flex: none;
  gap: calc(.5 * var(--embed-rem));
  padding: 0 calc(.25 * var(--embed-rem)) calc(.5 * var(--embed-rem));
  margin: 0 calc(-.25 * var(--embed-rem));
  overflow-x: auto;
}

.lep-chip {
  display: flex;
  align-items: center;
  gap: calc(.625 * var(--embed-rem));
  padding: calc(.5 * var(--embed-rem)) calc(1 * var(--embed-rem)) calc(.5 * var(--embed-rem)) calc(.75 * var(--embed-rem));
  border: 1px solid rgba(8, 28, 75, .1);
  border-radius: calc(.75 * var(--embed-rem));
  background: rgba(8, 28, 75, .05);
  white-space: nowrap;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

.lep-chip svg { color: rgba(8, 28, 75, .6); }

.lep-chip__k {
  display: block;
  margin-bottom: calc(.125 * var(--embed-rem));
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(8, 28, 75, .6);
}

.lep-chip__v {
  display: block;
  font-size: calc(.75 * var(--embed-rem));
  font-weight: 700;
  line-height: 1.1;
  color: var(--lep-navy);
}

.lep-lawyers {
  display: flex;
  flex-direction: column;
  gap: calc(.75 * var(--embed-rem));
  padding-right: calc(.25 * var(--embed-rem));
  padding-bottom: calc(.5 * var(--embed-rem));
  overflow-y: auto;
}

.lep-lawyer {
  display: flex;
  align-items: center;
  gap: calc(.875 * var(--embed-rem));
  padding: calc(.75 * var(--embed-rem));
  border: 1px solid rgba(236, 222, 190, .8);
  border-radius: calc(.75 * var(--embed-rem));
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
  transition: border-color .3s, box-shadow .3s;
}

.lep-lawyer:hover {
  border-color: rgba(208, 162, 64, .6);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
}

.lep-lawyer__pic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(3 * var(--embed-rem));
  height: calc(3 * var(--embed-rem));
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #94a3b8;
}

.lep-lawyer__main { flex: 1; }

.lep-lawyer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: calc(.25 * var(--embed-rem));
}

.lep-lawyer__top h4 {
  font-size: calc(.75 * var(--embed-rem));
  font-weight: 700;
  color: var(--lep-navy);
}

.lep-stars {
  display: flex;
  align-items: center;
  gap: calc(.25 * var(--embed-rem));
  padding: calc(.125 * var(--embed-rem)) calc(.375 * var(--embed-rem));
  border: 1px solid #fef3c7;
  border-radius: calc(.25 * var(--embed-rem));
  background: #fffbeb;
  font-size: 10px;
  font-weight: 700;
  color: #f59e0b;
}

.lep-stars svg { fill: currentColor; }

.lep-lawyer__spec {
  margin-bottom: calc(.25 * var(--embed-rem));
  font-size: 10px;
  font-weight: 500;
  color: var(--lep-slate);
}

.lep-lawyer__meta {
  display: flex;
  align-items: center;
  gap: calc(.5 * var(--embed-rem));
  margin-top: calc(.375 * var(--embed-rem));
}

.lep-rate {
  display: flex;
  align-items: center;
  gap: calc(.125 * var(--embed-rem));
  font-size: 10px;
  color: var(--lep-gray);
}

.lep-free {
  padding: calc(.125 * var(--embed-rem)) calc(.5 * var(--embed-rem));
  border-radius: calc(.25 * var(--embed-rem));
  background: rgba(208, 162, 64, .1);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--lep-gold);
}

/* ------------------------- referrals banner --------------------------- */

.lep-ref {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(2 * var(--embed-rem));
  width: 100%;
  margin-top: calc(2 * var(--embed-rem));
  padding: calc(2 * var(--embed-rem));
  overflow: hidden;
  border: 1px solid rgba(208, 162, 64, .3);
  border-radius: calc(1.5 * var(--embed-rem));
  background: linear-gradient(to bottom right, rgba(208, 162, 64, .1), rgba(236, 222, 190, .2));
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
}

.lep-ref::before {
  content: "";
  position: absolute;
  top: calc(-5 * var(--embed-rem));
  right: calc(-5 * var(--embed-rem));
  width: calc(16 * var(--embed-rem));
  height: calc(16 * var(--embed-rem));
  border-radius: 9999px;
  background: rgba(208, 162, 64, .15);
  filter: blur(80px);
  pointer-events: none;
}

.lep-ref__ic {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(4 * var(--embed-rem));
  height: calc(4 * var(--embed-rem));
  border: 1px solid rgba(236, 222, 190, .5);
  border-radius: calc(1 * var(--embed-rem));
  background: #fff;
  color: var(--lep-gold);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
  transform: rotate(-3deg);
  transition: transform .5s;
}

.lep-ref:hover .lep-ref__ic {
  transform: rotate(0);
}

.lep-ref__main {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
}

.lep-ref__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(.75 * var(--embed-rem));
  margin-bottom: calc(1 * var(--embed-rem));
}

.lep-ref__title h3 {
  font-family: var(--lep-display);
  font-size: calc(1.25 * var(--embed-rem));
  font-weight: 700;
  color: var(--lep-navy);
}

.lep-soon {
  padding: calc(.375 * var(--embed-rem)) calc(.75 * var(--embed-rem));
  border-radius: 9999px;
  background: var(--lep-navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

.lep-ref__copy {
  max-width: calc(56 * var(--embed-rem));
  margin-bottom: calc(1.25 * var(--embed-rem));
  font-size: calc(.875 * var(--embed-rem));
  font-weight: 500;
  line-height: 1.65;
  color: var(--lep-gray);
}

.lep-ref__fine {
  max-width: calc(56 * var(--embed-rem));
  font-size: 11px;
  font-style: italic;
  color: var(--lep-slate);
  opacity: .8;
}

@media (min-width: 640px) {
  .lep-ref { padding: calc(2.5 * var(--embed-rem)); }
  .lep-ref__ic { width: calc(5 * var(--embed-rem)); height: calc(5 * var(--embed-rem)); }
  .lep-ref__title h3 { font-size: calc(1.5 * var(--embed-rem)); }
  .lep-ref__copy { font-size: calc(1 * var(--embed-rem)); }
  .lep-ref__fine { font-size: calc(.75 * var(--embed-rem)); }
}

@media (min-width: 768px) {
  .lep-ref { flex-direction: row; align-items: flex-start; }
  .lep-ref__main { text-align: left; }
  .lep-ref__title { flex-direction: row; align-items: center; justify-content: flex-start; gap: calc(1 * var(--embed-rem)); }
}

@media (min-width: 1024px) {
  .lep-ref { margin-top: calc(3 * var(--embed-rem)); }
  .lep-ref__title h3 { font-size: calc(1.875 * var(--embed-rem)); }
}

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

.lep-cta {
  position: relative;
  z-index: 2;
  max-width: calc(64 * var(--embed-rem));
  margin: calc(6 * var(--embed-rem)) auto 0;
  text-align: center;
}

@media (min-width: 640px) {
  .lep-cta {
    margin-top: calc(8 * var(--embed-rem));
  }
}

.lep-cta__box {
  position: relative;
  padding: calc(2 * var(--embed-rem));
  overflow: hidden;
  border-radius: calc(2.5 * var(--embed-rem));
  background: var(--lep-navy);
  box-shadow: 0 25px 50px -12px rgba(8, 28, 75, .3);
}

.lep-cta__sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  z-index: 0;
  width: 33.333%;
  background: rgba(255, 255, 255, .05);
  transform: skewX(12deg);
  pointer-events: none;
  transition: left 3s ease-in-out;
}

.lep-cta__box:hover .lep-cta__sheen {
  left: 200%;
}

.lep-cta__glow-a,
.lep-cta__glow-b {
  position: absolute;
  width: calc(20 * var(--embed-rem));
  height: calc(20 * var(--embed-rem));
  border-radius: 9999px;
  filter: blur(48px);
  pointer-events: none;
}

.lep-cta__glow-a { top: calc(-8 * var(--embed-rem)); right: calc(-8 * var(--embed-rem)); background: rgba(208, 162, 64, .1); }
.lep-cta__glow-b { bottom: calc(-8 * var(--embed-rem)); left: calc(-8 * var(--embed-rem)); background: rgba(60, 82, 107, .2); }

.lep-cta__in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lep-cta__in h2 {
  max-width: calc(48 * var(--embed-rem));
  margin-bottom: calc(1.5 * var(--embed-rem));
  font-family: var(--lep-display);
  font-size: calc(1.875 * var(--embed-rem));
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.lep-cta__in p {
  max-width: calc(42 * var(--embed-rem));
  margin-bottom: calc(2.5 * var(--embed-rem));
  text-align: center;
  font-size: calc(1.125 * var(--embed-rem));
  font-weight: 500;
  line-height: 1.625;
  color: rgba(236, 222, 190, .9);
}

.lep-cta__btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(1 * var(--embed-rem));
  width: 100%;
  margin-bottom: calc(2 * var(--embed-rem));
}

.lep-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(.75 * var(--embed-rem));
  width: 100%;
  padding: calc(1 * var(--embed-rem)) calc(2 * var(--embed-rem));
  border-radius: calc(.75 * var(--embed-rem));
  font-size: calc(1.125 * var(--embed-rem));
  font-weight: 700;
  transition: box-shadow .3s, transform .3s, background-color .3s, border-color .3s;
}

.lep-btn--gold {
  background: var(--lep-gold) !important;
  color: var(--lep-navy) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
}

.lep-btn--gold:hover,
.lep-btn--gold:focus {
  background: var(--lep-gold) !important;
  color: var(--lep-navy) !important;
  box-shadow: 0 0 25px rgba(208, 162, 64, .4);
  transform: translateY(-4px);
}

.lep-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lep-cta__note {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: calc(.5 * var(--embed-rem));
  font-size: calc(.75 * var(--embed-rem));
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(236, 222, 190, .6);
  backdrop-filter: blur(8px);
}

.lep-cta__sep {
  display: none;
  opacity: .5;
}

@media (min-width: 640px) {
  .lep-cta__box { padding: calc(3.5 * var(--embed-rem)); }
  .lep-cta__in h2 { font-size: calc(2.25 * var(--embed-rem)); }
  .lep-cta__in p { font-size: calc(1.25 * var(--embed-rem)); }
  .lep-cta__btns { flex-direction: row; gap: calc(1.5 * var(--embed-rem)); width: auto; }
  .lep-btn { width: auto; padding: calc(1 * var(--embed-rem)) calc(2.5 * var(--embed-rem)); }
  .lep-cta__note { flex-direction: row; gap: calc(.75 * var(--embed-rem)); font-size: calc(.875 * var(--embed-rem)); }
  .lep-cta__sep { display: inline; }
}

@media (min-width: 1024px) {
  .lep-cta__box { padding: calc(5 * var(--embed-rem)); }
  .lep-cta__in h2 { font-size: calc(3 * var(--embed-rem)); }
}

/* ---------------------------- animation ------------------------------- */
/*  Mirrors the Framer Motion timeline from HowItWorksEmbed.tsx.          */
/*  Per-element offsets live in inline `--d` custom properties, exactly   */
/*  like the original `transition={{ delay: n }}` props.                  */

.lep-hiw .lep-a {
  animation-duration: .5s;
  animation-delay: var(--d, 0s);
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.22, .61, .36, 1);
}

/* Inactive panels are reset so the whole sequence replays on tab switch. */
.lep-hiw .lep-flow:not(.is-on) .lep-a {
  animation-name: none;
}

.lep-a-fade { animation-name: lep-fade; }
.lep-a-up { animation-name: lep-up; }
.lep-a-pop { animation-name: lep-pop; }
.lep-a-left { animation-name: lep-left; }
.lep-a-chat-l { animation-name: lep-chat-l; }
.lep-a-chat-r { animation-name: lep-chat-r; }
.lep-a-rowin { animation-name: lep-rowin; }
.lep-a-upxs { animation-name: lep-upxs; }
.lep-a-scale { animation-name: lep-scale; }

.lep-a-spring {
  animation-name: lep-spring;
  animation-timing-function: cubic-bezier(.34, 1.56, .64, 1);
}

.lep-a-fillx {
  animation-name: lep-fillx;
  animation-duration: .6s;
  animation-timing-function: ease-in-out;
}

.lep-a-filly {
  animation-name: lep-filly;
  animation-duration: .6s;
  animation-timing-function: ease-in-out;
}

.lep-a-dot {
  animation-name: lep-dot;
  animation-duration: .2s;
  animation-timing-function: cubic-bezier(.34, 1.56, .64, 1);
}

.lep-a-spin {
  display: block;
  animation-name: lep-spin;
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(.68, -.55, .27, 1.55);
}

/* Typing indicator: hidden, flashes on, fades out. `forwards` (not `both`)
   so it stays invisible during the delay instead of showing the from-state. */
.lep-a-typing {
  opacity: 0;
  animation-name: lep-typing;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
}

@keyframes lep-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lep-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes lep-pop {
  from { opacity: 0; transform: scale(.8); }
  to { opacity: 1; transform: none; }
}

@keyframes lep-left {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

@keyframes lep-chat-l {
  from { opacity: 0; transform: translateX(-10px) scale(.95); }
  to { opacity: 1; transform: none; }
}

@keyframes lep-chat-r {
  from { opacity: 0; transform: translateX(10px) scale(.95); }
  to { opacity: 1; transform: none; }
}

@keyframes lep-rowin {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes lep-upxs {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@keyframes lep-scale {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: none; }
}

@keyframes lep-spring {
  from { opacity: 0; transform: translateY(10px) scale(.95); }
  to { opacity: 1; transform: none; }
}

@keyframes lep-fillx {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes lep-filly {
  from { height: 0; }
  to { height: 100%; }
}

@keyframes lep-dot {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes lep-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes lep-typing {
  0% { opacity: 1; }
  20% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes lep-bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1); }
}

@media (prefers-reduced-motion: reduce) {
  .lep-hiw *,
  .lep-hiw *::before,
  .lep-hiw *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
