/* =========================================================
   Homepage hero layout (#lawyerai-home lives in the homepage Divi code module)
   ========================================================= */

/* Divi phone setting forces .et_pb_code_0 to 90% — that is the white right strip. */
@media only screen and (max-width: 767px) {
  .et_pb_code_0,
  .et_pb_code_0 .et_pb_code_inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

html:has(body.home),
body.home,
body.page-id-2,
#page-container,
#et-boc,
#lawyerai-home {
  overflow-x: clip;
  max-width: 100%;
}

#lawyerai-home .lai-section.lai-hero {
  --lai-hero-bg-desktop: url("https://lawyerai.co/wp-content/uploads/2026/11/1-lawyer-ai-law-tech-hero-background.jpg");
  --lai-hero-bg-mobile: url("https://lawyerai.co/wp-content/uploads/2026/11/1-lawyer-ai-law-tech-hero-background-mob.jpg");
  position: relative;
  padding: 64px 0 84px;
  background-color: #f7f4ff;
  background-image: var(--lai-hero-bg-desktop);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* Desktop: clear fixed nav — hero image/content sit below header */
@media (min-width: 981px) {
  #lawyerai-home .lai-section.lai-hero,
  #lawyerai-home .lai-section.lai-hero.lai-soft {
    margin-top: 88px;
    padding-top: calc(4px + 8px + 76px);
  }
  /* Parent Divi section is white; match hero so no hairline flashes */
  body.home #main-content > .et_builder_inner_content > .et_pb_section_0,
  body.page-id-2 #main-content > .et_builder_inner_content > .et_pb_section_0 {
    background-color: #f7f4ff !important;
  }
}
/* White overlay in front of the hero background (desktop) */
#lawyerai-home .lai-section.lai-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* No wash at the nav seam — keep mid wash for copy only */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0) 120px,
    rgba(255, 255, 255, 0.35) 200px,
    rgba(255, 255, 255, 0.45) 55%,
    rgba(255, 255, 255, 0.2) 100%
  );
}
/* Long white fade at the bottom of the hero image (above demo art) */
#lawyerai-home .lai-section.lai-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(320px, 48%);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 22%,
    rgba(255, 255, 255, 0.48) 48%,
    rgba(255, 255, 255, 0.82) 72%,
    rgba(255, 255, 255, 0.97) 88%,
    #ffffff 100%
  );
}
#lawyerai-home .lai-section.lai-hero > .lai-container {
  position: relative;
  z-index: 0;
}

/* No white overlay on mobile */
@media (max-width: 760px) {
  #lawyerai-home .lai-section.lai-hero::before {
    content: none;
    display: none;
  }
}
#lawyerai-home .lai-section.lai-hero.lai-soft {
  background-color: #f7f4ff;
  background-image: var(--lai-hero-bg-desktop);
  background-repeat: no-repeat;
  background-size: cover;
}

@media (min-width: 981px) {
  #lawyerai-home .lai-section.lai-hero,
  #lawyerai-home .lai-section.lai-hero.lai-soft {
    /* Pull art upward so detail sits at the nav edge (not pale JPG top) */
    background-position: center top;
  }
}

#lawyerai-home .lai-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.28fr);
  gap: clamp(18px, 2vw, 32px);
  align-items: center;
}

#lawyerai-home .lai-hero-copy {
  position: relative;
  z-index: 4;
  min-width: 0;
}

/* Soft white text shadow on hero copy only — not buttons / not H1 lines (H1 has its own). */
#lawyerai-home .lai-hero-copy .lai-body,
#lawyerai-home .lai-hero-copy .lai-hero-benefits,
#lawyerai-home .lai-hero-copy .lai-hero-benefits span {
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(255, 255, 255, 0.9),
    0 0 28px rgba(255, 255, 255, 0.65);
}

/* Desktop: no white glow/wash on H1. Mobile keeps its own text-shadow rules. */
@media (min-width: 761px) {
  #lawyerai-home .lai-hero-copy .lai-display .lai-line1,
  #lawyerai-home .lai-hero-copy .lai-display .lai-accent {
    text-shadow: none;
  }
  #lawyerai-home .lai-hero-copy .lai-display .lai-line1::before,
  #lawyerai-home .lai-hero-copy .lai-display .lai-accent::before {
    content: none;
    display: none;
  }
}

#lawyerai-home .lai-hero h1,
#lawyerai-home .lai-hero h1.lai-display,
#lawyerai-home .lai-hero h1.lai-display .lai-line1,
#lawyerai-home .lai-hero h1.lai-display .lai-accent {
  max-width: none;
  font-weight: 800;
}

#lawyerai-home .lai-hero .lai-body {
  max-width: 34em;
  margin-top: 20px;
}

#lawyerai-home .lai-hero .lai-buttons { margin-top: 26px; }

#lawyerai-home .lai-hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  color: #706583;
  font-size: 13px;
}
#lawyerai-home .lai-hero-benefits span::before {
  content: '✓';
  color: var(--lai-purple);
  font-weight: 700;
  margin-right: 7px;
}

#lawyerai-home .lai-hero-demo {
  min-width: 0;
  position: relative;
  z-index: 1;
  width: 100%;
}

#lawyerai-home .lai-neural-frame {
  display: block;
  width: 100%;
  max-width: 900px;
  margin-inline: auto 0;
  aspect-ratio: 1;
  height: auto;
  border: 0;
  background: transparent;
  color-scheme: light;
  overflow: hidden;
  contain: layout paint;
  pointer-events: none;
  transform: translateZ(0);
}

/* Hero buttons: stay put on hover; shadow intensifies instead. */
#lawyerai-home .lai-hero .lai-btn,
#lawyerai-home .lai-hero .lai-btn:hover,
#lawyerai-home .lai-hero .lai-btn:focus,
#lawyerai-home .lai-hero .lai-btn:active {
  transform: none !important;
}
#lawyerai-home .lai-hero .lai-btn {
  transition: box-shadow .22s ease, background .18s ease, border-color .18s ease, filter .18s ease;
}
#lawyerai-home .lai-hero .lai-btn-primary {
  box-shadow:
    0 8px 18px rgba(118, 85, 233, 0.22),
    0 2px 4px rgba(118, 85, 233, 0.12);
}
#lawyerai-home .lai-hero .lai-btn-primary:hover,
#lawyerai-home .lai-hero .lai-btn-primary:focus {
  box-shadow:
    0 14px 30px rgba(118, 85, 233, 0.36),
    0 4px 10px rgba(118, 85, 233, 0.18);
}
#lawyerai-home .lai-hero .lai-btn-light {
  box-shadow:
    0 6px 16px rgba(65, 45, 129, 0.08),
    0 1px 3px rgba(65, 45, 129, 0.05);
}
#lawyerai-home .lai-hero .lai-btn-light:hover,
#lawyerai-home .lai-hero .lai-btn-light:focus {
  box-shadow:
    0 12px 26px rgba(65, 45, 129, 0.16),
    0 3px 8px rgba(65, 45, 129, 0.08);
  border-color: #d4caf0;
}

/* Desktop H1 — keep each phrase on one line. */
@media (min-width: 961px) {
  #lawyerai-home .lai-section.lai-hero h1.lai-display {
    font-size: 4rem;
    line-height: 1.06;
    letter-spacing: -.045em;
    font-weight: 800;
  }
  #lawyerai-home .lai-section.lai-hero h1.lai-display .lai-line1,
  #lawyerai-home .lai-section.lai-hero h1.lai-display .lai-accent {
    white-space: nowrap;
    font-weight: 800;
  }
  /* ~1.21 scale; translateX pushes the visible brain to the Get started right edge */
  #lawyerai-home .lai-hero-demo {
    transform: scale(1.208) translate(101px, 36px);
    transform-origin: right center;
  }
}

@media (max-width: 960px) {
  #lawyerai-home .lai-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  #lawyerai-home .lai-hero-demo {
    order: -1;
    width: min(100%, 480px);
    margin-inline: auto;
    margin-bottom: -12px;
  }
  #lawyerai-home .lai-neural-frame {
    max-width: 480px;
    margin-inline: auto;
  }
  #lawyerai-home .lai-hero-copy {
    max-width: 570px;
    width: 100%;
    margin-inline: auto;
  }
  #lawyerai-home .lai-hero-copy::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -52px;
    height: 64px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.72) 42%, #ffffff 86%);
    pointer-events: none;
    z-index: 2;
  }
  #lawyerai-home .lai-hero-copy > * {
    position: relative;
    z-index: 3;
  }
}

@media (max-width: 760px) {
  #lawyerai-home .lai-section.lai-hero {
    padding: 20px 0 44px;
    background-image: var(--lai-hero-bg-mobile);
    background-position: 40% top;
    background-size: cover;
    overflow: hidden;
  }
  #lawyerai-home .lai-section.lai-hero.lai-soft {
    background-image: var(--lai-hero-bg-mobile);
    background-position: 40% top;
  }

  #lawyerai-home .lai-section.lai-hero > .lai-container.lai-hero-grid {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  /* ~10% larger than prior 585px mobile art */
  #lawyerai-home .lai-hero-demo {
    order: -1;
    position: relative;
    width: 644px;
    max-width: 644px;
    margin: 4px 0 -110px;
    margin-left: calc((100% - 644px) / 2);
    transform: translateY(-29px);
    height: auto;
    overflow: visible;
  }
  #lawyerai-home .lai-neural-frame {
    width: 644px;
    max-width: 644px;
    margin: 0 auto;
    aspect-ratio: 1;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 46%, rgba(0,0,0,0.55) 62%, rgba(0,0,0,0.15) 78%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 46%, rgba(0,0,0,0.55) 62%, rgba(0,0,0,0.15) 78%, transparent 92%);
    clip-path: inset(0 0 22% 0);
  }
  #lawyerai-home .lai-hero-copy {
    max-width: none;
    width: 100%;
    margin: -56px 0 0;
    padding-inline: 18px;
    box-sizing: border-box;
  }
  /* Soft fade above H1 — further toned down */
  #lawyerai-home .lai-hero-copy::before {
    top: -44px;
    height: 40px;
    left: 0;
    right: 0;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.14) 55%,
      rgba(255, 255, 255, 0.32) 100%
    );
  }
  #lawyerai-home .lai-section.lai-hero h1.lai-display {
    font-size: 3.3rem;
    line-height: 1.08;
    letter-spacing: -.055em;
    font-weight: 800;
    text-align: center;
    width: max-content;
    max-width: none;
    position: relative;
    left: 50%;
    /* Keep computed 3.3rem; scale to fit the longer second line, centered */
    transform: translateX(-50%) scale(0.84);
    transform-origin: top center;
    margin-bottom: -0.55em;
  }
  #lawyerai-home .lai-hero-copy .lai-body {
    text-align: center;
  }
  #lawyerai-home .lai-hero .lai-buttons {
    align-items: stretch;
  }
  #lawyerai-home .lai-hero-copy,
  #lawyerai-home .lai-section.lai-hero {
    overflow-x: clip;
  }
  #lawyerai-home .lai-section.lai-hero h1.lai-display .lai-line1,
  #lawyerai-home .lai-section.lai-hero h1.lai-display .lai-accent {
    white-space: nowrap;
    font-weight: 800;
  }
  #lawyerai-home .lai-hero-copy h1.lai-display {
    position: relative;
    z-index: 6;
    isolation: isolate;
  }
  /* Line 1 above the accent wash so glyphs stay crisp */
  #lawyerai-home .lai-hero-copy .lai-display .lai-line1 {
    position: relative;
    z-index: 3;
    text-shadow:
      0 -1px 0 rgba(255, 255, 255, 0.4),
      0 -2px 2px rgba(255, 255, 255, 0.35),
      0 -3px 6px rgba(255, 255, 255, 0.3),
      0 -6px 10px rgba(255, 255, 255, 0.25),
      0 -10px 16px rgba(255, 255, 255, 0.18);
  }
  #lawyerai-home .lai-hero-copy .lai-display .lai-line1::before {
    content: "";
    position: absolute;
    left: -6%;
    width: 112%;
    top: -24px;
    height: 24px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0.35) 100%);
  }
  #lawyerai-home .lai-hero-copy .lai-display .lai-accent {
    position: relative;
    z-index: 2;
    text-shadow:
      0 -1px 0 rgba(255, 255, 255, 0.4),
      0 -2px 0 rgba(255, 255, 255, 0.35),
      0 -2px 2px rgba(255, 255, 255, 0.35),
      0 -4px 6px rgba(255, 255, 255, 0.32),
      0 -8px 10px rgba(255, 255, 255, 0.28),
      0 -14px 16px rgba(255, 255, 255, 0.24),
      0 -20px 24px rgba(255, 255, 255, 0.2),
      0 -28px 34px rgba(255, 255, 255, 0.16);
  }
  /* Further toned-down white wash behind accent */
  #lawyerai-home .lai-hero-copy .lai-display .lai-accent::before {
    content: "";
    position: absolute;
    left: -18%;
    width: 150%;
    top: -72px;
    height: 72px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.2) 22%,
      rgba(255, 255, 255, 0.32) 42%,
      rgba(255, 255, 255, 0.36) 58%,
      rgba(255, 255, 255, 0.36) 100%);
  }

  /* Stack CTAs; 9px radius */
  #lawyerai-home .lai-hero .lai-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #lawyerai-home .lai-hero .lai-btn {
    width: 100%;
    border-radius: 9px;
  }

  /* Keep benefits on one centered horizontal row */
  #lawyerai-home .lai-hero-benefits {
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px 12px;
    text-align: center;
    font-size: 12px;
  }
}


/* =========================================================
   Hero product demo: employment contract review
   ========================================================= */

#laiHeroContractDemo {
  --bg: #f6f2ff;
  --bg-2: #ffffff;
  --panel: rgba(255,255,255,0.84);
  --line: #e6def5;
  --ink: #251d42;
  --muted: #756b91;
  --purple: #7655e9;
  --purple-2: #aa76ee;
  --green: #2a8a63;
  --green-bg: #e8f6f0;
  --amber: #9b6421;
  --amber-bg: #fff3df;
  --rose: #9f413d;
  --rose-bg: #fdebea;
  width: 100%;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
#laiHeroContractDemo, #laiHeroContractDemo * { box-sizing: border-box; }
#laiHeroContractDemo p,
#laiHeroContractDemo h4 { padding: 0; }
#laiHeroContractDemo .lhcd-shell {
  background:
    radial-gradient(circle at 88% 10%, rgba(181,160,242,.22), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(118,85,233,.08), transparent 22%),
    linear-gradient(155deg, #faf8ff 0%, #f2edff 100%);
  border: 1px solid #e7e0f6;
  border-radius: 26px;
  padding: 12px;
}
#laiHeroContractDemo .lhcd-window {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.93));
  border: 1px solid #dfd7ef;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(72, 46, 136, 0.10), inset 0 1px 0 rgba(255,255,255,0.9);
}
#laiHeroContractDemo .lhcd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
#laiHeroContractDemo .lhcd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#laiHeroContractDemo .lhcd-logo {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(118,85,233,.12), rgba(170,118,238,.18));
  box-shadow: 0 10px 22px rgba(118,85,233,.16);
  border: 1px solid rgba(118,85,233,.12);
  overflow: hidden;
  flex: 0 0 32px;
}
#laiHeroContractDemo .lhcd-logo img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}
#laiHeroContractDemo .lhcd-title {
  font-size: 16px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
#laiHeroContractDemo .lhcd-subtitle {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
#laiHeroContractDemo .lhcd-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e7ddfb;
  background: #f6f1ff;
  color: #644bc6;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
#laiHeroContractDemo .lhcd-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7655e9;
  box-shadow: 0 0 0 5px rgba(118,85,233,.12);
}
#laiHeroContractDemo .lhcd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(240px, .76fr);
  height: 620px;
  min-height: 0;
}
#laiHeroContractDemo .lhcd-main {
  padding: 14px 16px 12px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
#laiHeroContractDemo .lhcd-main-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
}
#laiHeroContractDemo .lhcd-context {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 7px 11px;
  border-radius: 11px;
  background: #f2edff;
  color: #6a4ccd;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  margin-bottom: 0;
}
#laiHeroContractDemo .lhcd-stream {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  justify-content: flex-start;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
#laiHeroContractDemo .lhcd-stream::-webkit-scrollbar { display: none; }
#laiHeroContractDemo .lhcd-user {
  display: flex;
  justify-content: flex-end;
}
#laiHeroContractDemo .lhcd-user-bubble {
  max-width: 74%;
  padding: 11px 14px;
  border-radius: 15px 15px 5px 15px;
  background: linear-gradient(135deg, #f3effd, #f8f5ff);
  border: 1px solid #e7e1f6;
  color: #2f244d;
  font-size: 15px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: 0 12px 22px rgba(71,48,126,.05);
}
#laiHeroContractDemo .lhcd-upload {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-end;
  max-width: 92%;
  border: 1px solid #e7def3;
  border-radius: 13px;
  background: #fff;
  padding: 8px 11px;
  box-shadow: 0 12px 22px rgba(62,45,108,.04);
}
#laiHeroContractDemo .lhcd-docicon {
  width: 30px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  background: #f1ecff;
  color: #7557df;
}
#laiHeroContractDemo .lhcd-upload > div { min-width: 0; }
#laiHeroContractDemo .lhcd-upload strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 800;
  color: #2c2149;
}
#laiHeroContractDemo .lhcd-upload span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
#laiHeroContractDemo .lhcd-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--green);
  margin-left: auto;
  flex: 0 0 20px;
}
#laiHeroContractDemo .lhcd-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f6490;
  font-size: 12.5px;
  font-weight: 600;
  padding-left: 2px;
  min-height: 26px;
}
#laiHeroContractDemo .lhcd-spark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7655e9, #aa76ee);
  color: #fff;
  flex: 0 0 24px;
  box-shadow: 0 8px 18px rgba(118,85,233,.2);
}
#laiHeroContractDemo .lhcd-dots { display: inline-flex; gap: 4px; }
#laiHeroContractDemo .lhcd-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8c73e3;
  display: block;
  animation: lhcdPulse .9s ease-in-out infinite alternate;
}
#laiHeroContractDemo .lhcd-dots i:nth-child(2) { animation-delay: .14s; }
#laiHeroContractDemo .lhcd-dots i:nth-child(3) { animation-delay: .28s; }
#laiHeroContractDemo .lhcd-answer {
  margin-top: 2px;
  padding: 13px 14px 12px;
  border-radius: 16px;
  border: 1px solid #e7def7;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(247,243,255,.95));
  box-shadow: 0 18px 30px rgba(71,48,126,.06);
}
#laiHeroContractDemo .lhcd-answer-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #dbefe2;
  background: #edf8f1;
  color: #2c7f61;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 9px;
}
#laiHeroContractDemo .lhcd-answer-head svg { flex: 0 0 14px; }
#laiHeroContractDemo .lhcd-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #43395d;
  letter-spacing: -0.02em;
}
#laiHeroContractDemo .lhcd-answer strong { color: #281f45; }
#laiHeroContractDemo .lhcd-answer ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
#laiHeroContractDemo .lhcd-answer li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.45;
  color: #5c526f;
}
#laiHeroContractDemo .lhcd-index {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #efeaff;
  color: #6d4fd0;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}
#laiHeroContractDemo .lhcd-answer-note {
  margin-top: 9px;
  font-size: 11.5px;
  color: #847998;
  line-height: 1.5;
}
/* Composer stays visible from the very first frame. This is a display-only demo. */
#laiHeroContractDemo .lhcd-composer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ece5f7;
  flex: 0 0 auto;
}
#laiHeroContractDemo .lhcd-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
#laiHeroContractDemo .lhcd-suggestion {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #e4daf8;
  background: #f7f3ff;
  color: #5c4a97;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: left;
}
#laiHeroContractDemo .lhcd-composebox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 7px 7px 7px 12px;
  border-radius: 13px;
  border: 1px solid #e4dcf2;
  background: linear-gradient(180deg, #fff, #fcfbff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
#laiHeroContractDemo .lhcd-compose-text {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: #403259;
  overflow-wrap: anywhere;
  white-space: normal;
}
#laiHeroContractDemo .lhcd-compose-text.is-placeholder {
  color: #8a80a2;
  font-weight: 400;
}
#laiHeroContractDemo .lhcd-send {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  background: #7655e9;
  color: #fff;
  box-shadow: 0 8px 16px rgba(118,85,233,.18);
  transform: scale(1);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
#laiHeroContractDemo .lhcd-send.is-pressing {
  transform: scale(.78);
  background: #4f32bd;
  box-shadow: 0 2px 4px rgba(118,85,233,.12);
}
#laiHeroContractDemo .lhcd-send.is-pressing svg { transform: translate(1px,-1px); }
#laiHeroContractDemo .lhcd-side {
  background: linear-gradient(180deg, rgba(252,251,255,.98), rgba(248,245,255,.98));
  padding: 13px 12px 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
#laiHeroContractDemo .lhcd-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
#laiHeroContractDemo .lhcd-side-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #6f648d;
}
#laiHeroContractDemo .lhcd-side-sub {
  font-size: 10px;
  color: #9389a8;
  font-weight: 700;
}
#laiHeroContractDemo .lhcd-stack {
  display: grid;
  gap: 8px;
}
#laiHeroContractDemo .lhcd-card {
  border-radius: 13px;
  background: rgba(255,255,255,.98);
  border: 1px solid #e4dcf4;
  padding: 10px 12px;
  box-shadow: 0 12px 22px rgba(73,53,128,.05);
}
#laiHeroContractDemo .lhcd-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
#laiHeroContractDemo .lhcd-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
#laiHeroContractDemo .lhcd-badge-danger { background: var(--rose-bg); color: var(--rose); }
#laiHeroContractDemo .lhcd-badge-warning { background: var(--amber-bg); color: var(--amber); }
#laiHeroContractDemo .lhcd-badge-source { background: #efeaff; color: #6b4ed0; }
#laiHeroContractDemo .lhcd-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #2a2146;
}
#laiHeroContractDemo .lhcd-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6d6386;
}
#laiHeroContractDemo .lhcd-source-line {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid #eee7f8;
  font-size: 10.5px;
  color: #887da0;
  font-weight: 700;
}
/* Visual-only action affordances: this hero demo is not interactive. */
#laiHeroContractDemo .lhcd-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  letter-spacing: -.01em;
  user-select: none;
}
#laiHeroContractDemo .lhcd-card-action svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
}
#laiHeroContractDemo .lhcd-card-action--draft {
  color: #fff;
  background: #7655e9;
  box-shadow: 0 5px 12px rgba(118,85,233,.15);
}
#laiHeroContractDemo .lhcd-card-action--explain {
  color: #674bc9;
  background: #f0ebff;
  border: 1px solid #e5dafa;
}
#laiHeroContractDemo .lhcd-card-action--source {
  color: #674bc9;
  background: #fff;
  border: 1px solid #d8cdf1;
}
#laiHeroContractDemo .lhcd-micro {
  padding-top: 12px;
  margin-top: auto;
  font-size: 11px;
  line-height: 1.4;
  color: #958aa9;
}
#laiHeroContractDemo .lhcd-animated {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.985);
  transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1), visibility .45s;
}
#laiHeroContractDemo [data-demo-reveal]:not(.is-visible) { display: none; }
#laiHeroContractDemo .lhcd-animated.is-visible {
  animation: lhcdReveal .45s cubic-bezier(.22,1,.36,1) both;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
#laiHeroContractDemo .lhcd-thinking { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
#laiHeroContractDemo .lhcd-thinking.is-visible { opacity: 1; visibility: visible; }
#laiHeroContractDemo .lhcd-status.is-complete {
  color: #2f7f63;
  background: var(--green-bg);
  border-color: #d8eee2;
}
#laiHeroContractDemo .lhcd-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid #e1dcf1;
  border-radius: 999px;
  background: #f4f0fb;
  color: #6d6191;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
#laiHeroContractDemo .lhcd-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8f7ae0;
  box-shadow: 0 0 0 4px rgba(143,122,224,.14);
}
#laiHeroContractDemo .lhcd-status.is-complete::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(42,138,99,.14);
}
@keyframes lhcdReveal {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes lhcdPulse {
  from { opacity: .35; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-2px); }
}
@media (max-width: 620px) {
  #laiHeroContractDemo .lhcd-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  #laiHeroContractDemo .lhcd-stream { overflow: visible; }
  #laiHeroContractDemo .lhcd-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  #laiHeroContractDemo .lhcd-side {
    padding-top: 16px;
  }
  #laiHeroContractDemo .lhcd-shell { padding: 8px; border-radius: 20px; }
  #laiHeroContractDemo .lhcd-topbar {
    padding: 11px 12px;
    align-items: flex-start;
    flex-direction: column;
  }
  #laiHeroContractDemo .lhcd-main,
  #laiHeroContractDemo .lhcd-side { padding: 12px; }
  #laiHeroContractDemo .lhcd-user-bubble {
    max-width: 88%;
    font-size: 14px;
    padding: 10px 12px;
  }
  #laiHeroContractDemo .lhcd-upload {
    max-width: 92%;
  }
  #laiHeroContractDemo .lhcd-answer p { font-size: 13.5px; }
  #laiHeroContractDemo .lhcd-answer li,
  #laiHeroContractDemo .lhcd-card p { font-size: 12px; }
  #laiHeroContractDemo .lhcd-card h4 { font-size: 14px; }
}
@media (max-width: 460px) {
  #laiHeroContractDemo .lhcd-title { font-size: 15px; }
  #laiHeroContractDemo .lhcd-pill { font-size: 10px; padding: 5px 9px; }
  #laiHeroContractDemo .lhcd-user-bubble { font-size: 13.5px; }
  #laiHeroContractDemo .lhcd-context { font-size: 11px; }
  #laiHeroContractDemo .lhcd-answer {
    padding: 12px 12px 11px;
    border-radius: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #laiHeroContractDemo .lhcd-animated,
  #laiHeroContractDemo .lhcd-thinking,
  #laiHeroContractDemo .lhcd-dots i,
  #laiHeroContractDemo .lhcd-send { transition: none !important; animation: none !important; }
}

/* Dark sections: beat theme h1–h6 color so headings stay light on purple. */
#lawyerai-home .lai-dark .lai-heading,
#lawyerai-home .lai-dark h2,
#lawyerai-home .lai-dark h3,
#lawyerai-home .lai-audience h3 {
  color: #f7f4ff;
}

/* Feature card product images — nearly full card width, thin white inset. */
#lawyerai-home .lai-feature .lai-feature-visual {
  margin-top: auto;
  /* Card pad is 23px; pull out so ~8px white remains on sides + bottom. */
  margin-left: -15px;
  margin-right: -15px;
  margin-bottom: -15px;
  width: calc(100% + 30px);
  max-width: none;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 0;
  padding: 0;
}
#lawyerai-home .lai-feature .lai-feature-visual img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}


/* FAQ accordion — Emil Kowalski-style plus/x + height ease */
#lawyerai-home .lai-faq-wrap {
  max-width: 720px;
  margin: 0 auto;
}
#lawyerai-home .lai-pricing-band {
  margin-top: 64px;
}
#lawyerai-home .lai-faq-wrap > h2 {
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -0.045em;
}
#lawyerai-home .lai-faq {
  border-bottom: 1px solid #e8e4f2;
}
#lawyerai-home .lai-faq:first-of-type {
  border-top: 1px solid #e8e4f2;
}
#lawyerai-home .lai-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 2px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--lai-ink, #251d42);
  cursor: pointer;
  user-select: none;
  transition: color 0.25s ease;
}
#lawyerai-home .lai-faq summary::-webkit-details-marker { display: none; }
#lawyerai-home .lai-faq summary::marker { content: ""; }
#lawyerai-home .lai-faq summary:hover {
  color: var(--lai-purple, #7655e9);
}
#lawyerai-home .lai-faq-icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  color: #8b849c;
  transition: color 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
#lawyerai-home .lai-faq summary:hover .lai-faq-icon {
  color: var(--lai-purple, #7655e9);
}
#lawyerai-home .lai-faq-icon::before,
#lawyerai-home .lai-faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
#lawyerai-home .lai-faq-icon::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
#lawyerai-home .lai-faq-icon::after {
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
}
/* Plus rotates 45° into an X */
#lawyerai-home .lai-faq.is-open .lai-faq-icon,
#lawyerai-home .lai-faq[open] .lai-faq-icon {
  color: var(--lai-purple, #7655e9);
  transform: rotate(45deg);
}
#lawyerai-home .lai-faq-panel {
  height: 0;
  overflow: hidden;
  will-change: height;
}
#lawyerai-home .lai-faq-panel-inner {
  padding: 0 36px 20px 2px;
}
#lawyerai-home .lai-faq-panel-inner > p {
  margin: 0;
  padding: 0;
  color: var(--lai-muted, #736a8e);
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.72;
  transform: translateY(-6px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
#lawyerai-home .lai-faq.is-open .lai-faq-panel-inner > p,
#lawyerai-home .lai-faq[open] .lai-faq-panel-inner > p {
  opacity: 1;
  transform: none;
}
@media (max-width: 760px) {
  #lawyerai-home .lai-pricing-band { margin-top: 48px; }
  #lawyerai-home .lai-faq summary { font-size: 16px; padding: 18px 0; gap: 18px; }
  #lawyerai-home .lai-faq-panel-inner { padding-right: 8px; padding-bottom: 16px; }
}
