:root {
  --ink: #213f4b;
  --ink-strong: #1b3540;
  --muted: #66747b;
  --line: #d9e3e7;
  --soft: #edf8fb;
  --soft-blue: #dff3f8;
  --blue: #67bdd6;
  --blue-dark: #347fa8;
  --button: #df654d;
  --button-dark: #c8513c;
  --green: #57bd8f;
  --gold: #f4ad55;
  --paper: #ffffff;
  --shadow: 0 14px 38px rgba(28, 49, 58, .14);
  --radius: 8px;
  --heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mobile-chat-viewport-height: 100vh;
  --mobile-chat-viewport-top: 0px;
}

@supports (height: 100dvh) {
  :root {
    --mobile-chat-viewport-height: 100dvh;
  }
}

.checkout-page {
  min-height: 100vh;
  background: #edf7fd;
  color: #3e3e3e;
}

.checkout-header {
  border-bottom: 1px solid #d6e3ea;
  background: #fff;
}

.checkout-header-inner {
  width: min(1150px, calc(100% - 48px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.checkout-brand {
  gap: 8px;
  font-size: clamp(22px, 1.55vw, 28px);
}

.checkout-brand .brand-bubble {
  transform: rotate(-9deg);
}

.checkout-brand-tail {
  color: #6a6a6a;
  font-size: .78em;
  font-style: italic;
  font-weight: 700;
}

.checkout-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #747474;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.lock-icon {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: currentColor;
  color: #8c8c8c;
}

.lock-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -7px;
  width: 6px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.lock-icon-invert {
  width: 11px;
  height: 9px;
  color: #fff;
}

.lock-icon-invert::before {
  left: 2px;
  top: -8px;
  width: 7px;
  height: 8px;
}

.checkout-secure img {
  width: 72px;
  height: 30px;
  object-fit: contain;
}

.checkout-main {
  width: min(1150px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.checkout-hero {
  margin-bottom: 18px;
}

.checkout-hero h1 {
  color: #183a59;
  font-size: clamp(25px, 2.1vw, 34px);
  font-weight: 700;
  line-height: 1.1;
}

.checkout-hero p {
  margin-top: 10px;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.3;
}

.checkout-hero .checkout-price-summary {
  font-size: 14px;
  line-height: 1.5;
}

.checkout-page.is-price-loading :is([data-plan-price], [data-plan-renewal-price]) {
  display: inline-block;
  width: 7.2em;
  height: 0.8em;
  border-radius: 0.25em;
  background: #d7e5ed;
  vertical-align: -0.02em;
  animation: checkout-price-loading 1.2s ease-in-out infinite alternate;
}

@keyframes checkout-price-loading {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-page.is-price-loading :is([data-plan-price], [data-plan-renewal-price]) {
    animation: none;
  }
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.checkout-payment-column {
  display: grid;
}

.checkout-card {
  overflow: hidden;
  border: 1px solid #d7e0e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(31, 48, 58, .14);
}

.payment-card {
  display: grid;
}

.checkout-appointment {
  margin: 0;
  padding: 0 0 9px;
  color: #3f3f3f;
  font-size: 15px;
  font-weight: 500;
  background: #edf7fd;
}

.checkout-expert {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 72px;
  padding: 8px 16px;
  background: #55a8ee;
  color: #fff;
}

.checkout-expert .avatar {
  width: 60px;
  height: 60px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .22);
}

.checkout-expert h2 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.05;
}

.checkout-expert p,
.checkout-expert strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.checkout-expert strong {
  margin-top: 3px;
  font-weight: 700;
}

.checkout-timer {
  justify-self: end;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.checkout-timer b {
  display: block;
  font-size: 17px;
}

.checkout-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12%;
  padding: 13px 24px 8px;
  margin-top: 10px;
}

.checkout-steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 66px;
  right: 66px;
  height: 2px;
  background: #b8b8b8;
}

.checkout-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.checkout-step span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #777;
  background: #d8d8d8;
  font-size: 13px;
  font-weight: 700;
}

.checkout-step strong {
  white-space: nowrap;
}

.checkout-step.is-done span,
.checkout-step.is-current span {
  color: #fff;
  background: #55a8ee;
}

.checkout-step.is-current span {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #55a8ee;
}

.checkout-form {
  margin: 14px 24px;
  padding: 0 0 8px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 9px;
  color: #444;
  font-size: 12px;
  font-weight: 500;
}

.stripe-payment-element {
  min-height: 120px;
  margin-bottom: 10px;
}

.payment-confirmation {
  max-width: 620px;
  margin: 80px auto;
}

.checkout-card-input,
.checkout-ccexp-input,
.checkout-cvv-input {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  min-height: 40px;
  border: 1px solid #a9b0b5;
  border-radius: 4px;
  background: #fff;
}

.checkout-cvv-input {
  grid-template-columns: 1fr auto;
}

.checkout-cvv-input input,
.checkout-ccexp-input input {
  border: none !important;
}

.checkout-card-input input,
.checkout-ccexp-input input,
.checkout-cvv-input input {
  min-width: 0;
  height: 50px;
  border: 0;
  padding: 0 11px;
  color: #373737;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  outline-color: var(--blue);
}

.checkout-card-input span:not(:first-child) {
  display: grid;
  min-width: 32px;
  min-height: 20px;
  margin-right: 7px;
  place-items: center;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  color: #1f3b84;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
}

.checkout-cvv-input span {
  display: grid;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  place-items: center;
  border: 2px solid #58aef2;
  border-radius: 50%;
  color: #58aef2;
  font-size: 14px;
  font-weight: 800;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-form-grid input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #a9b0b5;
  border-radius: 4px;
  padding: 0 11px;
  color: #373737;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  outline-color: var(--blue);
}

.checkout-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  border: 0;
  border-radius: 4px;
  background: #dc664f;
  color: #fff;
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: 700;
}

.checkout-form button[type="submit"] .lock-icon {
  margin-top: 4px;
}

.checkout-form button[type="submit"]:hover {
  background: #c8533d;
}

.checkout-cancel {
  margin: 12px 0 0;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.checkout-plan-disclaimer {
  display: none;
}

.checkout-legal {
  width: min(430px, 100%);
  margin: 7px auto 0;
  color: #6d6d6d;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.checkout-legal a {
  color: #555;
  font-weight: 800;
  text-decoration: underline;
}

.checkout-status {
  min-height: 0;
  margin: 0 !important;
  font-size: 12px;
}

.checkout-status:not(:empty) {
  min-height: 16px;
  margin-top: 8px !important;
}

.checkout-side {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.summary-card,
.review-card,
.plan-card {
  padding: 18px 20px;
}

.checkout-card h2 {
  color: #3b3b3b;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.checkout-rule {
  height: 1px;
  margin: 11px 0 15px;
  background: #d3d3d3;
}

.summary-chat {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
}

.summary-chat .avatar {
  width: 45px;
  height: 45px;
  box-shadow: none;
}

.summary-chat small {
  display: block;
  margin: 0 0 5px 12px;
  color: #999;
  font-size: 11px;
  font-weight: 500;
}

.summary-chat p {
  margin: 0;
  border-radius: 0 24px 24px 24px;
  padding: 13px 16px;
  background: #d9effd;
  color: #3f3f3f;
  font-size: 16px;
  line-height: 1.3;
}

.summary-note {
  width: min(340px, 100%);
  margin: 0 auto;
  color: #3f3f3f;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.summary-card > strong {
  display: block;
  margin-top: 12px;
  color: #61727d;
  font-size: 11px;
  text-align: center;
}

.review-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d3d3d3;
  font-size: 17px;
}

.review-rating span {
  display: inline-flex;
  gap: 2px;
  padding: 2px 5px;
  color: #fff;
  background: #57bd8f;
  font-size: 12px;
  letter-spacing: 1px;
}

.review-carousel {
  display: grid;
  grid-template-columns: 26px 1fr 26px;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.review-viewport {
  position: relative;
  min-height: 146px;
  overflow: hidden;
}

.review-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity .24s ease, transform .24s ease;
}

.review-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.review-person {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 11px;
  align-items: center;
  margin-bottom: 11px;
}

.review-person img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #edf7fd;
}

.review-person cite {
  display: block;
  color: #3f3f3f;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.review-person span {
  display: inline-flex;
  margin-top: 4px;
  gap: 1px;
  padding: 1px 4px;
  color: #fff;
  background: #57bd8f;
  font-size: 9px;
  letter-spacing: .4px;
}

.review-slide p {
  margin: 0;
  color: #3f3f3f;
  font-size: 16px;
  line-height: 1.35;
}

.review-nav {
  display: grid;
  width: 26px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #777;
  background: transparent;
  font-size: 30px;
  line-height: 1;
}

.review-nav:hover,
.review-nav:focus-visible {
  color: #183a59;
  background: #edf7fd;
  outline: 0;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.review-dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #c7d4da;
}

.review-dots button.is-active {
  background: #55a8ee;
}

.plan-card ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #3f3f3f;
  font-size: 13px;
  line-height: 1.35;
}

.plan-card li span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #57bd8f;
  font-weight: 700;
}

.plan-card p {
  margin: 16px 0 0;
  padding: 9px 10px;
  border-radius: 6px;
  background: #edf7fd;
  color: #4e6673;
  font-size: 12px;
  font-weight: 700;
}

.thanks-main {
  min-height: calc(100vh - 87px);
  display: grid;
  place-items: center;
  padding: 42px 24px;
}

.thanks-card {
  width: min(640px, 100%);
  padding: 44px;
  text-align: center;
}

.thanks-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #57bd8f;
  font-size: 38px;
  font-weight: 900;
}

.thanks-card h1 {
  color: #183a59;
  font-size: clamp(32px, 4vw, 46px);
}

.thanks-card p {
  margin: 14px auto 0;
  color: #4f6069;
  font-size: 20px;
}

.thanks-order {
  padding: 12px 14px;
  border-radius: 6px;
  background: #edf7fd;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.thanks-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 5px;
  padding: 0 22px;
  background: var(--button);
  color: #fff;
  font-weight: 800;
}

.thanks-actions a + a {
  border: 1px solid #cbdce4;
  background: #fff;
  color: var(--ink);
}

.expert-chat-page {
  min-height: 100vh;
}

.expert-main {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 87px);
  margin: 0 auto;
  padding: 28px 0 48px;
}

.expert-chat-layout {
  display: grid;
  grid-template-columns: minmax(260px, .52fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  height: min(760px, calc(100vh - 163px));
  min-height: 0;
}

.expert-case-panel {
  overflow-y: auto;
  border: 1px solid #d7e0e6;
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(31, 48, 58, .14);
}

.expert-kicker {
  margin: 0 0 8px;
  color: #457286;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.expert-case-panel h1 {
  color: #183a59;
  font-size: 28px;
  line-height: 1.12;
}

.expert-order-line {
  margin-top: 10px;
  color: #657680;
  font-size: 14px;
  font-weight: 700;
}

.expert-subscription-button {
  margin-top: 14px;
  border: 1px solid #bfd4de;
  border-radius: 6px;
  padding: 9px 12px;
  background: #fff;
  color: #24566b;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.expert-subscription-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.expert-summary-box {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #d8edf3;
  border-radius: 8px;
  background: #f4fbfe;
}

.expert-summary-box .avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.expert-summary-box small {
  display: block;
  margin-bottom: 6px;
  color: #537284;
  font-size: 13px;
  font-weight: 800;
}

.expert-summary-box p,
.expert-case-note {
  color: #40535d;
  font-size: 15px;
  line-height: 1.42;
}

.expert-case-note {
  margin-top: 18px;
}

.expert-chat-card {
  height: 100%;
  min-height: 0;
  box-shadow: 0 10px 28px rgba(31, 48, 58, .18);
}

.expert-chat-card .chat-body {
  flex: 1;
  min-height: 0;
  background: #f8fbfc;
}

.expert-chat-card .message-row p {
  max-width: min(620px, 100%);
}

.expert-chat-card .message-row .lawyer-avatar {
  margin-top: 24px;
}

.expert-chat-input {
  grid-template-columns: 1fr 104px;
  align-items: end;
}

.chat-input textarea {
  min-height: 58px;
  max-height: 150px;
  resize: vertical;
  border: 1px solid #cdd8dc;
  border-radius: 5px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  line-height: 1.35;
  outline-color: var(--blue);
}

.expert-chat-status {
  min-height: 18px;
  padding: 0 16px 14px;
  background: #fff;
  color: #6f7e86;
  font-size: 13px;
  line-height: 1.3;
}

.expert-error-card {
  width: min(640px, 100%);
  margin: 8vh auto 0;
  padding: 44px;
  text-align: center;
}

.expert-error-card h1 {
  color: #183a59;
  font-size: clamp(28px, 3vw, 40px);
}

.expert-error-card p {
  margin: 14px auto 0;
  color: #4f6069;
  font-size: 18px;
  line-height: 1.35;
}

@media (min-width: 981px) {
  .checkout-main {
    transform: scale(.95);
    transform-origin: top center;
  }
}

@media (max-width: 980px) {
  .checkout-header-inner,
  .checkout-main {
    width: min(100% - 28px, 760px);
  }

  .checkout-header-inner {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-brand {
    flex-wrap: wrap;
    row-gap: 3px;
    font-size: 26px;
  }

  .checkout-brand-tail {
    width: 100%;
    font-size: 18px;
  }

  .checkout-secure {
    font-size: 14px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-expert {
    grid-template-columns: 54px 1fr;
  }

  .checkout-expert .avatar {
    width: 50px;
    height: 50px;
  }

  .checkout-timer {
    grid-column: 1 / -1;
    justify-self: start;
    display: flex;
    gap: 6px;
    align-items: baseline;
  }

  .checkout-timer b {
    display: inline;
    font-size: 16px;
  }

  .checkout-steps {
    padding-right: 18px;
    padding-left: 18px;
  }

  .checkout-steps::before {
    left: 58px;
    right: 58px;
  }

  .checkout-step {
    font-size: 15px;
  }
}

@media (max-width: 820px) {
  .checkout-header-inner,
  .checkout-main {
    width: 100%;
    max-width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .checkout-page {
    overflow-x: hidden;
  }

  .checkout-main {
    padding-top: 22px;
  }

  .checkout-hero h1 {
    font-size: 23px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .checkout-hero p {
    font-size: 15px;
  }

  .checkout-appointment {
    font-size: 15px;
  }

  .checkout-expert,
  .checkout-form,
  .summary-card,
  .review-card,
  .plan-card,
  .thanks-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .checkout-form {
    width: auto;
    margin-left: 0;
  }

  .checkout-card,
  .checkout-card-input,
  .checkout-cvv-input,
  .checkout-form-grid input {
    min-width: 0;
  }

  .checkout-card-input span:not(:first-child) {
    min-width: 28px;
    margin-right: 5px;
    font-size: 9px;
  }

  .checkout-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .checkout-steps {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 20px;
  }

  .checkout-steps::before {
    display: none;
  }

  .checkout-step {
    grid-template-columns: 34px 1fr;
    justify-items: start;
    text-align: left;
  }

  .checkout-step strong {
    white-space: normal;
  }

  .checkout-form button[type="submit"] {
    min-height: 50px;
    font-size: 19px;
  }

  .checkout-card-input,
  .checkout-cvv-input,
  .checkout-form-grid input {
    min-height: 46px;
  }

  .checkout-card-input input,
  .checkout-cvv-input input,
  .checkout-form-grid input {
    height: 44px;
    font-size: 16px;
  }

  .summary-chat {
    grid-template-columns: 42px 1fr;
    gap: 10px;
  }

  .summary-chat .avatar {
    width: 36px;
    height: 36px;
  }

  .summary-chat p,
  .review-slide p {
    font-size: 15px;
  }

  .review-carousel {
    grid-template-columns: 24px 1fr 24px;
    gap: 6px;
  }

  .review-viewport {
    min-height: 164px;
  }

  .review-person {
    grid-template-columns: 40px 1fr;
    gap: 9px;
  }

  .review-person img {
    width: 40px;
    height: 40px;
  }

  .review-nav {
    width: 24px;
    height: 32px;
    font-size: 28px;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.48;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.wrap {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-strong);
  font-family: var(--heading);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-bubble {
  display: inline-grid;
  width: 46px;
  height: 38px;
  place-items: center;
  border-radius: 8px 8px 8px 2px;
  color: #fff;
  background: var(--blue);
  font-size: 19px;
  transform: rotate(-8deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.brand-word {
  letter-spacing: -1px;
}

.brand-invert {
  color: #fff;
}

.brand-large {
  font-size: 42px;
}

.brand-large .brand-bubble {
  width: 54px;
  height: 46px;
  font-size: 22px;
}

.brand-tail {
  margin-left: 6px;
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
  font-style: italic;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading);
  letter-spacing: 0;
  line-height: 1.12;
}

p {
  margin: 0;
}

.home-hero {
  position: relative;
  min-height: 870px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(2, 14, 18, .86) 0%, rgba(9, 28, 36, .58) 40%, rgba(2, 14, 18, .08) 74%),
    url("../img/home-hero-legal.png") center / cover no-repeat;
}

.top-promo {
  min-height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #55a7e9, #275f91);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.promo-button,
.nav-login {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 5px;
  color: #fff;
  font-weight: 700;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0 0;
}

.home-hero .hero-nav {
  justify-content: flex-end;
}

.home-hero .hero-nav > .brand {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(255, 255, 255, .94);
  font-size: 18px;
  font-weight: 600;
}

.nav-links a:not(.nav-login):hover {
  color: #fff;
}

.hero-content {
  min-height: 710px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(860px, 100%);
  padding: 70px 0 115px;
}

.hero-copy h1 {
  max-width: 730px;
  margin-top: 34px;
  color: #fff;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 800;
}

.hero-copy p {
  max-width: 780px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .92);
  font-size: 28px;
  font-weight: 700;
}

.hero-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-prompts button,
.category-pills a {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(20, 24, 28, .72);
  color: #fff;
  padding: 0 18px;
  font-weight: 600;
}

.hero-prompts button:hover {
  background: rgba(20, 24, 28, .92);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  width: min(1040px, 100%);
  margin-top: 22px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 46px rgba(0, 0, 0, .25);
}

.hero-search input {
  min-height: 56px;
  border: 0;
  outline: 0;
  padding: 0 8px;
  color: #263f48;
  font-size: 20px;
}

.hero-search button,
.contact-form button,
.price-card a,
.chat-input button,
.paywall-panel button,
.payment-form button[type="submit"] {
  min-height: 56px;
  border: 0;
  border-radius: 5px;
  background: var(--button);
  color: #fff;
  padding: 0 24px;
  font-weight: 800;
}

.hero-search button:hover,
.contact-form button:hover,
.price-card a:hover,
.chat-input button:hover,
.paywall-panel button:hover,
.payment-form button[type="submit"]:hover {
  background: var(--button-dark);
}

.hero-disclaimer {
  margin-top: 14px !important;
  color: rgba(255, 255, 255, .62) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.hero-disclaimer a {
  color: #9bd9ef;
  text-decoration: underline;
}

.category-strip {
  background: linear-gradient(180deg, #eaf8fc, #f7fcfd);
  border-bottom: 1px solid #e5f1f4;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 22px 0 28px;
}

.category-pills a {
  border-color: #aeb8be;
  background: #fff;
  color: #484f53;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.section {
  padding: 72px 0;
}

.popular {
  padding-top: 48px;
  background: linear-gradient(180deg, #f7fcfd 0%, #fff 100%);
}

.section h2 {
  color: var(--ink-strong);
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 800;
}

.popular h2 {
  margin-bottom: 30px;
  color: #858585;
  text-align: center;
  font-size: 31px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.question-card {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 8px;
  padding: 28px 30px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .34) 45%, rgba(255, 255, 255, .05)),
    url("../img/category-collage.png");
  background-size: 100% 100%, 200% 200%;
  box-shadow: 0 2px 14px rgba(36, 54, 62, .1);
}

.question-card span {
  color: var(--ink-strong);
  font-family: var(--heading);
  font-size: 30px;
  font-weight: 800;
}

.question-card strong {
  max-width: 250px;
  margin-top: 10px;
  color: #3e3e3e;
  font-size: 17px;
  line-height: 1.2;
}

.question-card.medical {
  background-position: center, left top;
}

.question-card.vet {
  background-position: center, right top;
}

.question-card.auto {
  background-position: center, left bottom;
}

.question-card.legal {
  background-position: center, right bottom;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr);
  gap: 80px;
  align-items: center;
}

.steps {
  margin-top: 52px;
}

.steps article {
  max-width: 680px;
  padding: 26px 34px;
  border-radius: 8px;
}

.steps article + article {
  margin-top: 22px;
}

.steps h3 {
  color: var(--ink);
  font-size: 30px;
}

.steps p {
  margin-top: 10px;
  color: #69767c;
  font-size: 21px;
}

.highlight-step {
  background: #e6f6fb;
}

.match-visual {
  display: grid;
  place-items: center;
  min-height: 560px;
}

.phone-card {
  position: relative;
  width: 310px;
  min-height: 470px;
  border: 8px solid rgba(34, 62, 74, .08);
  border-radius: 44px;
  padding: 60px 40px;
  background: rgba(255, 255, 255, .74);
  box-shadow: inset 0 0 0 1px rgba(34, 62, 74, .06);
}

.mini-avatar,
.avatar {
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background-image: url("../img/expert-avatars.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
}

.avatar {
  width: 66px;
  height: 66px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .5);
}

.mini-avatar {
  width: 42px;
  height: 42px;
  vertical-align: middle;
}

.assistant-avatar {
  background-position: left top;
}

.lawyer-avatar {
  background-position: 50% top;
}

.doctor-avatar {
  background-position: right top;
}

.vet-avatar {
  background-position: left bottom;
}

.mechanic-avatar {
  background-position: 50% bottom;
}

.tax-avatar {
  background-position: right bottom;
}

.line {
  display: inline-block;
  height: 14px;
  margin: 0 0 16px 16px;
  border-radius: 999px;
  background: #cad0d3;
  vertical-align: middle;
}

.line.long {
  width: 126px;
}

.line.medium {
  width: 92px;
}

.line.short {
  width: 70px;
}

.expert-pop {
  position: absolute;
  right: -52px;
  top: 190px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 2px 14px;
  min-width: 230px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.expert-pop .mini-avatar {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
}

.expert-pop strong {
  align-self: end;
}

.expert-pop span:last-child {
  color: var(--gold);
}

.experts {
  overflow: hidden;
}

.expert-row {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 72px;
  align-items: center;
}

.expert-intro p {
  margin: 34px 0 26px;
  color: #606b70;
  font-size: 22px;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-weight: 800;
  color: #3d3f41;
}

.check-list li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--green);
}

.expert-cards {
  display: grid;
  grid-template-columns: repeat(3, 320px);
  gap: 28px;
}

.expert-card {
  min-height: 340px;
  padding: 28px;
  border: 1px solid #e5e9eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.expert-card h3 {
  display: inline-block;
  margin-left: 18px;
  color: #3e4144;
  font-size: 20px;
  vertical-align: top;
  padding-top: 10px;
}

.stars {
  color: var(--gold);
  font-weight: 800;
}

.expert-card .stars {
  margin: 12px 0 18px;
  font-size: 22px;
}

.expert-card strong {
  display: block;
  color: #3e4144;
  font-size: 18px;
}

.expert-card p:not(.stars) {
  margin: 12px 0 24px;
  color: #657178;
}

.expert-card em {
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.love {
  padding-bottom: 100px;
}

.love-panel {
  padding: 76px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 36px rgba(34, 62, 74, .08);
  text-align: center;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  margin-top: 58px;
}

.benefit-grid article span {
  display: inline-grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 18px;
  color: var(--blue-dark);
  background: var(--soft-blue);
  font-family: var(--heading);
  font-weight: 800;
}

.benefit-grid h3 {
  margin-top: 20px;
  color: var(--ink);
  font-size: 22px;
}

.benefit-grid p {
  margin-top: 10px;
  color: var(--muted);
}

.floating-widget {
  position: fixed;
  right: 36px;
  bottom: 28px;
  z-index: 20;
}

.widget-bubble {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
}

.widget-bubble > span:first-child {
  display: none;
  min-height: 66px;
  align-items: center;
  padding: 0 24px;
  border-radius: 3px;
  background: #506ee4;
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 34, 58, .28);
  font-size: 20px;
}

.show-widget-label .widget-bubble > span:first-child {
  display: inline-flex;
}

.widget-bubble .avatar {
  position: relative;
  width: 78px;
  height: 78px;
}

.widget-bubble i {
  position: absolute;
  right: -4px;
  top: -4px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--button);
  color: #fff;
  font-size: 13px;
  font-style: normal;
}

.widget-panel {
  position: absolute;
  right: 98px;
  bottom: 84px;
  width: 300px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.widget-head {
  margin: -20px -20px 16px;
  padding: 14px 18px;
  border-radius: 8px 8px 0 0;
  background: var(--blue);
  color: #fff;
  font-family: var(--heading);
  font-weight: 800;
}

.widget-panel p {
  color: var(--muted);
}

.widget-panel a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--button);
  font-weight: 800;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid #e4ecef;
  background: #f7fbfc;
}

/* SEO guides */
.guide-page { background: #fff; color: var(--ink-strong); }
.plain-nav { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.guide-nav-cta, .guide-cta > a, .guide-card-link { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--button); color: #fff; font-weight: 800; text-decoration: none; }
.guide-nav-cta { padding: 11px 16px; font-size: 15px; }
.guide-article, .guide-hub { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 84px; }
.guide-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; color: #69777e; font-size: 14px; }
.guide-breadcrumb a { color: var(--blue-dark); text-decoration: none; }
.guide-article h1, .guide-hub h1 { max-width: 800px; color: var(--ink-strong); font-size: clamp(37px, 5vw, 58px); letter-spacing: -.025em; }
.guide-lead { max-width: 760px; margin-top: 22px; color: #53646c; font-size: clamp(19px, 2.5vw, 24px); line-height: 1.48; }
.guide-alert { margin: 34px 0 46px; padding: 20px 22px; border-left: 4px solid var(--gold); border-radius: 4px; background: #fff9ee; color: #5d5442; line-height: 1.55; }
.guide-article h2, .guide-hub h2 { margin-top: 46px; color: var(--ink); font-size: clamp(26px, 3.5vw, 34px); }
.guide-article > p { margin-top: 17px; color: #53646c; font-size: 18px; line-height: 1.65; }
.guide-steps { display: grid; gap: 16px; padding: 0; margin: 26px 0 0; list-style: none; counter-reset: none; }
.guide-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; padding: 20px; border: 1px solid #dce8ec; border-radius: 8px; background: #fbfeff; }
.guide-steps span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; }
.guide-steps p { color: #4f6068; font-size: 18px; line-height: 1.5; }
.guide-checklist { display: grid; gap: 10px; padding: 0; margin: 22px 0 0; list-style: none; }
.guide-checklist li { position: relative; padding: 14px 16px 14px 42px; border-radius: 6px; background: #f4fbfd; color: #4f6068; font-size: 17px; }
.guide-checklist li::before { content: "✓"; position: absolute; left: 17px; color: var(--green); font-weight: 900; }
.guide-cta { margin-top: 54px; padding: 42px; border-radius: 10px; background: var(--ink-strong); color: #fff; }
.guide-cta .section-kicker { color: #8cd9ed; }
.guide-cta h2 { margin-top: 10px; color: #fff; }
.guide-cta p:not(.section-kicker) { margin-top: 14px; color: #dbe8ec; font-size: 18px; line-height: 1.55; }
.guide-cta > a { margin-top: 24px; padding: 14px 20px; }
.guide-cta small { display: block; margin-top: 14px; color: #b8ccd2; }
.guide-faq details { margin-top: 12px; border: 1px solid #dce8ec; border-radius: 7px; }
.guide-faq summary { padding: 18px 20px; cursor: pointer; color: var(--ink); font-weight: 800; }
.guide-faq details p { padding: 0 20px 19px; color: #5d6b72; line-height: 1.55; }
.guide-related > div { display: grid; gap: 12px; margin-top: 22px; }
.guide-related a { padding: 17px 18px; border: 1px solid #dce8ec; border-radius: 7px; color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.guide-hub { max-width: 1120px; }
.guide-hub > .guide-lead { margin-bottom: 40px; }
.guide-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-hub-grid article { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid #dce8ec; border-radius: 8px; }
.guide-hub-grid h2 { margin: 8px 0 0; font-size: 24px; }
.guide-hub-grid h2 a { color: var(--ink); text-decoration: none; }
.guide-hub-grid article > p:not(.section-kicker) { margin-top: 14px; color: #617078; line-height: 1.5; }
.guide-card-link { margin-top: 22px; padding: 10px 14px; font-size: 14px; }
.guide-hub .guide-cta { max-width: 820px; }
@media (max-width: 680px) { .plain-nav { width: min(100% - 28px, 1120px); min-height: 70px; } .plain-nav .brand { font-size: 24px; } .plain-nav .brand-bubble { width: 36px; height: 31px; font-size: 15px; } .guide-nav-cta { padding: 9px 11px; font-size: 13px; } .guide-article, .guide-hub { width: min(100% - 32px, 820px); padding-top: 34px; } .guide-hub-grid { grid-template-columns: 1fr; } .guide-cta { padding: 28px 22px; } }

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: #5c696f;
  font-weight: 700;
}

.legal-page {
  background: #fff;
}

.legal-main {
  min-height: 100vh;
}

.legal-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 6, 3, .42) 0%, rgba(18, 8, 4, .25) 30%, rgba(31, 12, 6, .02) 53%, rgba(31, 12, 6, 0) 100%),
    url("../img/legal-hero.jpg") center top / cover no-repeat;
}

.legal-overlay {
  display: none;
}

.legal-brand {
  position: absolute;
  top: clamp(34px, 6.5svh, 82px);
  left: clamp(38px, 6vw, 126px);
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .38);
}

.legal-copy {
  position: absolute;
  left: clamp(38px, 6vw, 126px);
  bottom: 18%;
  z-index: 1;
  width: 45vw;
  max-width: 45vw;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .42);
}

.legal-brand .brand-large {
  align-items: baseline;
  font-size: clamp(24px, 3.4svh, 34px);
}

.legal-brand .brand-tail {
  font-size: .72em;
  white-space: nowrap;
}

.legal-copy h1 {
  max-width: 100%;
  margin: 0 0 clamp(12px, 1.7svh, 18px);
  color: #fff;
  font-size: clamp(34px, 6.1svh, 64px);
  font-weight: 700;
  line-height: 1.04;
}

.legal-copy h1 span {
  display: block;
}

.legal-copy ul {
  max-width: 100%;
  margin: 0;
  padding-left: 24px;
  color: rgba(255, 255, 255, .95);
  font-size: clamp(17px, 2.15svh, 22px);
  font-weight: 700;
  line-height: 1.34;
}

.legal-copy li + li {
  margin-top: clamp(5px, .8svh, 9px);
}

.legal-copy li span {
  display: inline;
}

.legal-copy li span + span::before {
  content: " ";
}

.press-strip {
  position: absolute;
  left: 20px;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 0;
  background: rgba(0, 0, 0, .38);
}

.press-strip-inner {
  width: min(50vw, 780px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(14px, 2.3vw, 34px);
}

.trust-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: rgba(255, 255, 255, .94);
  font-size: clamp(11px, .92vw, 14px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .32);
  white-space: nowrap;
}

.trust-mark svg {
  flex: 0 0 auto;
  width: clamp(19px, 1.7vw, 24px);
  height: clamp(19px, 1.7vw, 24px);
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.legal-chat-shell {
  position: fixed;
  top: clamp(58px, 8svh, 92px);
  bottom: clamp(52px, 6svh, 70px);
  right: clamp(24px, 6vw, 92px);
  z-index: 10;
  width: min(660px, 39.5vw);
  display: flex;
}

.chat-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .32);
}

.chat-profile {
  display: grid;
  grid-template-columns: 94px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px 26px;
  background: #6abbd5;
  color: #fff;
}

.chat-profile .avatar {
  width: 92px;
  height: 92px;
}

.chat-profile h2 {
  color: #fff;
  font-size: 28px;
}

.chat-profile strong,
.chat-profile p {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

.chat-profile .stars {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 16px;
}

.mobile-chat-trust,
.mobile-chat-intro {
  display: none;
}

.flag {
  align-self: start;
  border-radius: 2px;
  background: rgba(255, 255, 255, .9);
  color: var(--blue-dark);
  padding: 2px 6px;
  font-weight: 800;
  font-size: 12px;
}

.chat-body {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  padding: 28px 26px 22px;
}

.message-row {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.message-row.user {
  justify-content: flex-end;
}

.message-row .avatar {
  width: 42px;
  height: 42px;
  margin-top: 24px;
}

.message-row small {
  display: block;
  margin: 0 0 5px;
  color: #9b9b9b;
  font-size: 18px;
  font-weight: 800;
}

.message-row p {
  position: relative;
  max-width: 470px;
  padding: 12px 16px;
  border: 1px solid #b4e0eb;
  border-radius: 4px;
  background: #d8f0f6;
  color: #334249;
  font-size: 20px;
  line-height: 1.32;
}

.message-row.typing p {
  min-width: 82px;
  padding: 13px 18px;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}

.typing-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8a9ca4;
  opacity: .45;
  animation: typingDotPulse 1.15s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: .18s;
}

.typing-dots span:nth-child(3) {
  animation-delay: .36s;
}

@keyframes typingDotPulse {
  0%,
  70%,
  100% {
    opacity: .35;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.message-row.user p {
  border-color: #d7d7d7;
  background: #f7f7f7;
}

.message-row.user small {
  text-align: right;
}

.payment-message-link {
  display: inline;
  border: 0;
  border-bottom: 2px solid rgba(52, 127, 168, .36);
  padding: 0 1px 1px;
  color: var(--blue-dark);
  background: transparent;
  font-weight: 800;
}

.payment-message-link:hover,
.payment-message-link:focus {
  color: var(--ink-strong);
  border-bottom-color: var(--blue-dark);
}

.chat-notice {
  margin: -8px 0 18px 56px;
  color: #7a858a;
  font-size: 14px;
  line-height: 1.25;
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}

.chat-input input {
  min-height: 52px;
  border: 1px solid #cdd8dc;
  border-radius: 5px;
  padding: 0 14px;
  outline-color: var(--blue);
}

.chat-input button {
  min-height: 52px;
  padding: 0 14px;
}

.mobile-submit-label {
  display: none;
}

.paywall-panel {
  margin: 16px 0 4px 56px;
  padding: 22px;
  border: 1px solid #e4e7e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(34, 62, 74, .1);
}

.paywall-panel h3 {
  color: #303030;
  font-size: 24px;
}

.paywall-panel p {
  margin: 8px 0 16px;
  color: #5f6b70;
}

.paywall-panel label,
.contact-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #515d62;
  font-weight: 700;
}

.paywall-panel input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #bdc9ce;
  border-radius: 5px;
  padding: 13px 14px;
  color: #263f48;
}

.paywall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.paywall-panel button {
  width: 100%;
  margin-top: 6px;
}

.paywall-panel small {
  display: block;
  margin-top: 10px;
  color: #879196;
  text-align: center;
}

.paywall-form button:disabled {
  opacity: .72;
  cursor: wait;
}

.paywall-status {
  min-height: 20px;
  margin-top: 12px !important;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.paywall-form.is-submitted input {
  background: #f5f8f9;
}

.payment-modal-open {
  overflow: hidden;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.payment-modal.is-open {
  display: flex;
}

.payment-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 28, 34, .64);
  backdrop-filter: blur(5px);
}

.payment-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.payment-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: #fff;
  background: rgba(33, 63, 75, .22);
  font-size: 24px;
  line-height: 1;
}

.payment-expert {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 28px 12px;
  background: #62bdd5;
  color: #fff;
}

.payment-expert .avatar {
  width: 76px;
  height: 76px;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .16);
  cursor: pointer;
}

.payment-kicker {
  display: block;
  margin-bottom: 2px;
  font-weight: 800;
  font-size: 14px;
  opacity: .96;
}

.payment-expert h3 {
  color: #fff;
  font-size: 22px;
  line-height: 1.04;
}

.payment-expert p {
  margin: 4px 0 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.18;
}

.payment-stars {
  margin-top: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.payment-topic {
  margin: 12px 28px 0;
  padding: 10px 14px;
  border: 1px solid #cfe8ef;
  border-radius: 8px;
  background: #f2fbfd;
  color: #4d626b;
  font-size: 16px;
}

.payment-topic span {
  color: var(--muted);
  font-weight: 800;
}

.payment-topic strong {
  color: var(--ink-strong);
}

.payment-form {
  padding: 12px 28px 16px;
}

.payment-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
  color: #515d62;
  font-weight: 800;
}

.payment-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bdc9ce;
  border-radius: 5px;
  padding: 10px 14px;
  color: #263f48;
  font-variant-numeric: tabular-nums;
  outline-color: var(--blue);
}

.payment-terms {
  margin: 3px 0 10px;
  padding: 10px 13px;
  border-radius: 6px;
  background: #f5f5f5;
  color: #5d686d;
  font-size: 14px;
  line-height: 1.35;
}

.payment-form button[type="submit"] {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}

.payment-trust-footer {
  border-top: 1px solid #e0e0e0;
  padding: 12px 28px 16px;
  background: #fff;
}

.payment-trust-label {
  display: block;
  margin-bottom: 8px;
  color: #79858a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
}

.payment-trust-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 34px);
  align-items: center;
}

.payment-trust-logos img {
  width: 100%;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

.legal-content {
  padding: 84px clamp(34px, 7vw, 120px);
}

.content-wrap {
  max-width: 50%;
}

.legal-content h2 {
  font-size: clamp(34px, 3vw, 48px);
}

.legal-content p,
.number-list {
  margin-top: 20px;
  color: #617078;
  font-size: 22px;
}

.legal-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.legal-topic-grid article {
  padding: 24px;
  border: 1px solid #e2eaed;
  border-radius: 8px;
  background: #fff;
}

.legal-topic-grid h3 {
  color: var(--ink);
  font-size: 22px;
}

.legal-topic-grid p {
  margin-top: 8px;
  font-size: 18px;
}

.muted-band {
  background: #f4fbfd;
}

.number-list {
  padding-left: 24px;
}

.number-list li + li {
  margin-top: 10px;
}

.legal-trust-strip {
  padding: 24px clamp(34px, 7vw, 120px);
  border-bottom: 1px solid #e4ecef;
  background: #fff;
}

.trust-wrap {
  display: grid;
  gap: 16px;
}

.trust-wrap > span,
.section-kicker {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.trust-badge-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  margin: 0 5%;
  border-top: 1px solid #eee;
}

.trust-badge-row img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  justify-self: start;
}

.legal-intro {
  background: linear-gradient(180deg, #fff 0%, #f7fcfd 100%);
}

.legal-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.legal-stat-row strong {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid #dbe9ee;
  border-radius: 8px;
  background: #fff;
  color: #4d5b61;
  font-size: 16px;
  line-height: 1.2;
}

.legal-stat-row span {
  color: var(--ink-strong);
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 900;
}

.legal-step-grid,
.legal-expert-grid,
.testimonial-grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.legal-step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-step-grid article,
.legal-expert-grid article,
.testimonial-grid blockquote,
.faq-list details,
.benefit-list article {
  border: 1px solid #e2eaed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 62, 74, .07);
}

.legal-step-grid article,
.legal-expert-grid article,
.testimonial-grid blockquote,
.benefit-list article {
  padding: 24px;
}

.legal-step-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--heading);
  font-weight: 900;
}

.legal-step-grid h3,
.benefit-list h3,
.legal-expert-grid h3 {
  margin-top: 16px;
  color: var(--ink);
  font-size: 22px;
}

.legal-step-grid p,
.benefit-list p,
.legal-expert-grid p,
.testimonial-grid p,
.faq-list p {
  margin-top: 10px;
  font-size: 18px;
}

.legal-topic-grid.expanded {
  grid-template-columns: repeat(3, 1fr);
}

.legal-confidence {
  background: #fff;
}

.benefit-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.benefit-list article {
  position: relative;
  padding-left: 58px;
}

.benefit-list article::before {
  content: "OK";
  position: absolute;
  left: 22px;
  top: 26px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.legal-expert-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-expert-grid .avatar {
  width: 74px;
  height: 74px;
}

.legal-expert-grid strong,
.legal-expert-grid em {
  display: block;
  margin-top: 8px;
  color: #536269;
  font-style: normal;
  font-weight: 800;
}

.legal-expert-grid em {
  color: var(--gold);
}

.testimonial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-grid blockquote {
  margin: 0;
}

.testimonial-grid cite {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
}

.plain-header {
  border-bottom: 1px solid #e1eaee;
  background: #fff;
}

.plain-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.plain-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: #4c5b62;
  font-weight: 800;
}

.plain-page {
  min-height: calc(100vh - 170px);
  padding: 70px 0 90px;
}

.plain-page h1 {
  color: var(--ink-strong);
  font-size: clamp(42px, 4vw, 64px);
}

.plain-page > p {
  max-width: 780px;
  margin-top: 18px;
  color: #5f6b70;
  font-size: 22px;
}

.plain-cards,
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 42px;
}

.plain-cards article,
.price-card {
  padding: 28px;
  border: 1px solid #e1e9ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 62, 74, .08);
}

.plain-cards h2,
.price-card h2,
.legal-text h2 {
  color: var(--ink);
  font-size: 24px;
}

.plain-cards p,
.price-card p,
.legal-text p {
  margin-top: 12px;
  color: #617078;
}

.price-card strong {
  display: block;
  margin: 18px 0;
  color: var(--ink-strong);
  font-family: var(--heading);
  font-size: 42px;
}

.price-card a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 22px;
}

.price-card.featured {
  border-color: #bce4ee;
  background: #f1fbfd;
  transform: translateY(-10px);
}

.contact-form {
  max-width: 680px;
  margin-top: 34px;
}

.contact-form button {
  min-width: 190px;
}

.legal-text h2 {
  margin-top: 34px;
}

@media (max-width: 1180px) {
  .expert-chat-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .expert-chat-card {
    height: min(720px, calc(100vh - 40px));
    min-height: 0;
  }

  .question-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expert-row,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .expert-cards {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
  }

  .legal-main {
    padding-right: 0;
  }

  .content-wrap {
    max-width: 100%;
  }

  .legal-copy {
    width: min(620px, calc(100% - 40px));
    max-width: min(620px, calc(100% - 40px));
    left: clamp(20px, 5vw, 64px);
    bottom: 18%;
  }

  .legal-copy h1 {
    max-width: 100%;
  }

  .legal-copy ul {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .legal-chat-shell {
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    width: min(760px, calc(100% - 40px));
    margin: -120px auto 50px;
    display: block;
  }

  .chat-body {
    height: 560px;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .checkout-page:not(.expert-chat-page) .checkout-header {
    display: none;
  }

  .checkout-page:not(.expert-chat-page) .checkout-main {
    width: min(100% - 24px, 720px);
    padding-top: 18px;
  }

  .checkout-page:not(.expert-chat-page) .checkout-hero {
    display: block;
  }

  .checkout-page:not(.expert-chat-page) .checkout-hero h1 {
    font-size: 27px;
    line-height: 1.08;
  }

  .checkout-page:not(.expert-chat-page) .checkout-hero p {
    font-size: 14px;
    line-height: 1.3;
  }

  .checkout-page:not(.expert-chat-page) .checkout-appointment {
    padding-bottom: 8px;
    font-size: 16px;
  }

  .checkout-page:not(.expert-chat-page) .checkout-expert {
    grid-template-columns: 62px 1fr;
    gap: 12px;
    min-height: 0;
    padding: 10px 14px;
  }

  .checkout-page:not(.expert-chat-page) .checkout-expert .avatar {
    width: 58px;
    height: 58px;
  }

  .checkout-page:not(.expert-chat-page) .checkout-expert h2 {
    font-size: 22px;
    line-height: 1.05;
  }

  .checkout-page:not(.expert-chat-page) .checkout-expert p,
  .checkout-page:not(.expert-chat-page) .checkout-expert strong {
    font-size: 15px;
    line-height: 1.15;
  }

  .checkout-page:not(.expert-chat-page) .checkout-timer {
    display: none;
  }

  .checkout-page:not(.expert-chat-page) .checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
    padding: 12px 14px;
  }

  .checkout-page:not(.expert-chat-page) .checkout-steps::before {
    display: none;
  }

  .checkout-page:not(.expert-chat-page) .checkout-step {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 0;
  }

  .checkout-page:not(.expert-chat-page) .checkout-step span {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .checkout-page:not(.expert-chat-page) .checkout-step strong {
    font-size: 12px;
    line-height: 1.12;
    text-align: center;
  }

  .checkout-page:not(.expert-chat-page) .checkout-form {
    padding-top: 18px;
  }

  .checkout-page:not(.expert-chat-page) .checkout-cancel {
    display: none;
  }

  .checkout-page:not(.expert-chat-page) .checkout-plan-disclaimer {
    display: block;
    width: min(430px, 100%);
    margin: 12px auto 0;
    color: #6d6d6d;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
  }

  .checkout-page:not(.expert-chat-page) .checkout-legal {
    margin-top: 5px;
  }

  .expert-chat-page .checkout-header,
  .expert-case-panel {
    display: none;
  }

  .expert-main {
    width: 100%;
    min-height: 0;
    height: 100svh;
    padding: 0;
    overflow: hidden;
  }

  .expert-chat-layout {
    grid-template-columns: 1fr;
    height: 100%;
    min-height: 0;
    gap: 0;
  }

  .expert-case-panel {
    border-width: 0 0 1px;
    border-radius: 0;
    padding: 18px 20px;
    box-shadow: none;
  }

  .expert-case-panel h1 {
    font-size: 20px;
  }

  .expert-summary-box {
    margin-top: 14px;
    padding: 12px;
  }

  .expert-case-note {
    display: none;
  }

  .expert-chat-card {
    height: 100%;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .expert-chat-card .chat-body {
    min-height: 0;
  }

  .expert-chat-input {
    grid-template-columns: 1fr;
  }

  .chat-input textarea {
    min-height: 84px;
    font-size: 17px;
  }

  .expert-error-card {
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 44px 22px;
  }

  .wrap {
    width: min(100% - 28px, 720px);
  }

  .top-promo,
  .footer-grid,
  .plain-nav {
    flex-direction: column;
  }

  .top-promo {
    gap: 10px;
    min-height: 72px;
    padding: 12px 18px;
    font-size: 15px;
    line-height: 1.25;
  }

  .promo-button {
    min-height: 40px;
    padding: 0 18px;
  }

  .hero-nav {
    padding-top: 18px;
  }

  .home-hero .nav-links {
    display: none;
  }

  .nav-links {
    gap: 16px;
    font-size: 16px;
  }

  .plain-nav nav {
    gap: 16px;
    font-size: 16px;
  }

  .home-hero {
    min-height: auto;
    background:
      linear-gradient(90deg, rgba(2, 14, 18, .9) 0%, rgba(9, 28, 36, .64) 52%, rgba(2, 14, 18, .16) 100%),
      url("../img/home-hero-legal.png") 58% top / cover no-repeat;
  }

  .hero-content {
    min-height: auto;
    align-items: flex-start;
  }

  .hero-copy {
    padding: 34px 0 42px;
  }

  .brand-large {
    font-size: 32px;
  }

  .brand-large .brand-bubble {
    width: 48px;
    height: 40px;
    font-size: 19px;
  }

  .brand-tail {
    display: block;
    margin-left: 0;
    font-size: 24px;
  }

  .legal-brand .brand-large {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .legal-brand .brand-tail {
    width: 100%;
    white-space: normal;
    font-size: 22px;
  }

  .hero-copy h1,
  .legal-copy h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .hero-copy p,
  .legal-copy ul {
    font-size: 19px;
    line-height: 1.38;
  }

  .hero-copy p {
    margin-top: 16px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    margin-top: 18px;
    padding: 10px;
  }

  .hero-search input {
    min-height: 50px;
    font-size: 18px;
  }

  .hero-search button {
    min-height: 52px;
    width: 100%;
  }

  .hero-prompts {
    margin-top: 22px;
  }

  .hero-prompts button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 15px;
  }

  .question-grid,
  .benefit-grid,
  .legal-topic-grid,
  .legal-topic-grid.expanded,
  .legal-stat-row,
  .legal-step-grid,
  .legal-expert-grid,
  .testimonial-grid,
  .plain-cards,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .content-wrap {
    max-width: 100%;
  }

  .legal-trust-strip {
    padding: 34px 18px;
  }

  .trust-badge-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-badge-row img {
    max-height: 56px;
  }

  .question-card {
    min-height: 280px;
  }

  .section {
    padding: 54px 0;
  }

  .popular h2 {
    font-size: 28px;
  }

  .steps article {
    padding: 22px 0;
  }

  .highlight-step {
    padding: 22px !important;
  }

  .match-visual {
    min-height: 430px;
  }

  .phone-card {
    width: 270px;
  }

  .expert-pop {
    right: -20px;
    min-width: 210px;
  }

  .expert-cards {
    grid-template-columns: 1fr;
  }

  .love-panel {
    padding: 34px 20px;
  }

  .floating-widget {
    display: none;
  }

  .widget-panel {
    right: 0;
    width: min(300px, calc(100vw - 32px));
  }

  .legal-page {
    background: #fff;
  }

  .legal-main {
    min-height: 100svh;
  }

  .legal-hero,
  .press-strip {
    display: none;
  }

  .legal-chat-shell {
    width: 100%;
    margin: 0;
  }

  .chat-card {
    min-height: 100svh;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .expert-chat-card {
    min-height: 0;
  }

  .chat-profile {
    grid-template-columns: 64px 1fr;
    gap: 14px;
    min-height: 98px;
    padding: 14px 18px;
    background: #2fa8ee;
  }

  .chat-profile .avatar {
    width: 62px;
    height: 62px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .34);
  }

  .chat-profile h2 {
    font-size: 18px;
    line-height: 1.1;
  }

  .chat-profile .stars {
    margin-top: 3px;
    font-size: 13px;
    white-space: normal;
  }

  .chat-profile strong,
  .chat-profile p {
    font-size: 14px;
    line-height: 1.15;
  }

  .chat-profile p,
  .flag {
    display: none;
  }

  .mobile-chat-trust {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 8px 10px;
    border-bottom: 1px solid #d7dde1;
    background: #fff;
    color: #202326;
    font-size: 14px;
    line-height: 1;
    overflow: hidden;
  }

  .mobile-chat-trust strong {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 800;
  }

  .rating-boxes {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border-radius: 2px;
    padding: 5px 6px;
    background: #12b985;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1;
  }

  .google-rating {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 4px;
    min-width: 0;
    color: #555;
    font-size: 12px;
    white-space: nowrap;
  }

  .google-rating::first-letter {
    color: #4285f4;
    font-weight: 900;
  }

  .google-rating b {
    color: #f29921;
    font-size: 10px;
    letter-spacing: 0;
  }

  .mobile-chat-intro {
    display: none;
    padding: 16px 20px 14px;
    border-bottom: 1px solid #eef1f3;
    background: #fff;
  }

  .mobile-chat-intro h1 {
    margin: 0 0 10px;
    color: #1d1d1d;
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .mobile-chat-intro ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #2e3336;
    font-size: 14px;
    line-height: 1.25;
  }

  .mobile-chat-intro li {
    position: relative;
    padding-left: 22px;
  }

  .mobile-chat-intro li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    color: #12b985;
    font-weight: 900;
  }

  .chat-body {
    flex: 1;
    height: auto;
    min-height: 0;
    padding: 18px 20px 22px;
    overflow-y: auto;
  }

  .expert-chat-card .chat-body {
    min-height: 0;
  }

  .message-row p {
    max-width: calc(100vw - 92px);
    border: 0;
    border-radius: 8px;
    padding: 12px 14px;
    background: #d9f0fc;
    font-size: 17px;
    line-height: 1.35;
  }

  .message-row {
    gap: 10px;
    margin-bottom: 18px;
  }

  .message-row .avatar {
    width: 42px;
    height: 42px;
    margin-top: 21px;
  }

  .message-row small {
    margin-bottom: 6px;
    color: #9a9a9a;
    font-size: 14px;
    font-weight: 500;
  }

  .chat-input {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 20px 18px;
    border-top: 1px solid #d8f1fb;
    background: #eef9ff;
  }

  .chat-input input {
    min-height: 72px;
    border: 1px solid #21a6d1;
    border-radius: 4px;
    background: #fff;
    font-size: 17px;
  }

  .chat-input button {
    min-height: 50px;
    border-radius: 4px;
    background: #f05a45;
    font-size: 16px;
    font-weight: 800;
  }

  .desktop-submit-label {
    display: none;
  }

  .mobile-submit-label {
    display: inline;
  }

  .paywall-panel {
    margin-left: 0;
  }

  .payment-modal {
    align-items: stretch;
    padding: 12px;
  }

  .payment-dialog {
    max-height: calc(100vh - 24px);
    align-self: center;
  }

  .payment-expert {
    grid-template-columns: 58px 1fr;
    gap: 10px;
    padding: 12px 18px 10px;
  }

  .payment-expert .avatar {
    width: 58px;
    height: 58px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .16);
  }

  .payment-expert h3 {
    font-size: 19px;
  }

  .payment-kicker,
  .payment-stars {
    font-size: 12px;
  }

  .payment-expert p,
  .payment-topic {
    font-size: 14px;
  }

  .payment-topic {
    margin-right: 18px;
    margin-left: 18px;
  }

  .payment-trust-footer {
    padding: 10px 18px 14px;
  }

  .payment-trust-logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .payment-trust-logos img {
    max-height: 58px;
  }

  .payment-form {
    padding: 16px 18px 18px;
  }

  .legal-content {
    padding: 56px 18px;
  }

  .plain-nav {
    align-items: flex-start;
    padding: 18px 0;
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 480px) {
  .home-hero .top-promo {
    display: none;
  }

  .hero-copy {
    padding-top: 28px;
  }

  .hero-copy h1,
  .legal-copy h1 {
    font-size: 29px;
  }

  .legal-copy h1 {
    max-width: min(240px, calc(100vw - 32px));
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .legal-copy ul {
    max-width: min(300px, calc(100vw - 32px));
    padding-left: 18px;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .legal-copy li span {
    display: block;
  }

  .legal-copy li span + span::before {
    content: "";
  }

  .legal-brand .brand-large {
    font-size: 28px;
  }

  .legal-brand .brand-tail {
    font-size: 20px;
  }

  .chat-profile {
    grid-template-columns: 58px 1fr;
    gap: 12px;
    min-height: 90px;
    padding: 14px 16px;
  }

  .chat-profile .avatar {
    width: 58px;
    height: 58px;
  }

  .chat-profile h2 {
    font-size: 20px;
  }

  .chat-profile strong,
  .chat-profile p {
    font-size: 14px;
  }

  .chat-profile .stars {
    font-size: 13px;
    line-height: 1.2;
  }

  .mobile-chat-trust {
    gap: 7px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .mobile-chat-trust strong {
    font-size: 15px;
  }

  .rating-boxes {
    padding: 5px;
    font-size: 11px;
  }

  .google-rating {
    font-size: 12px;
  }

  .mobile-chat-intro {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .hero-prompts button {
    width: 100%;
    min-height: 36px;
    font-size: 14px;
  }

  .question-card {
    padding: 22px;
  }

  .question-card span {
    font-size: 25px;
  }

  .paywall-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  html:has(.legal-page),
  body.legal-page {
    height: 100%;
    overflow: hidden;
  }

  .legal-page {
    background: #f3f7f9;
  }

  .legal-page .legal-main {
    height: var(--mobile-chat-viewport-height);
    overflow: hidden;
  }

  .expert-chat-page {
    height: 100%;
    overflow: hidden;
  }

  .expert-chat-page .expert-main {
    position: fixed;
    top: var(--mobile-chat-viewport-top);
    right: 0;
    bottom: auto;
    left: 0;
    height: var(--mobile-chat-viewport-height);
  }

  .legal-page .legal-hero,
  .legal-page .legal-trust-strip,
  .legal-page .legal-content {
    display: none;
  }

  .legal-chat-shell {
    position: fixed;
    top: var(--mobile-chat-viewport-top);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: var(--mobile-chat-viewport-height);
    margin: 0;
    background: #f3f7f9;
  }

  .legal-chat-shell .chat-card {
    height: 100%;
    min-height: 0;
    border-radius: 0;
    background: #f6f9fb;
    box-shadow: none;
  }

  .chat-profile {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    min-height: 62px;
    padding: max(8px, env(safe-area-inset-top)) 14px 9px;
    border-bottom: 1px solid rgba(16, 54, 68, .14);
    background: #183f4d;
    color: #fff;
  }

  .chat-profile .avatar {
    width: 42px;
    height: 42px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .28);
  }

  .chat-profile h2 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.05;
  }

  .chat-profile strong {
    margin-top: 2px;
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    line-height: 1.1;
  }

  .chat-profile .stars {
    margin-top: 3px;
    color: rgba(255, 255, 255, .82);
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .chat-profile p,
  .flag,
  .mobile-chat-trust,
  .mobile-chat-intro {
    display: none;
  }

  .chat-body {
    flex: 1;
    min-height: 0;
    padding: 16px 14px 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(246, 249, 251, .92)),
      #f6f9fb;
    overflow-y: auto;
  }

  .expert-chat-card .chat-body {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(246, 249, 251, .92)),
      #f6f9fb;
  }

  .message-row {
    gap: 9px;
    margin-bottom: 14px;
  }

  .message-row .avatar {
    width: 34px;
    height: 34px;
    margin-top: 19px;
  }

  .message-row small {
    margin: 0 0 4px;
    color: #74838b;
    font-size: 12px;
    font-weight: 700;
  }

  .message-row p {
    max-width: min(78vw, 430px);
    border: 1px solid rgba(42, 105, 126, .08);
    border-radius: 18px 18px 18px 6px;
    padding: 10px 13px;
    background: #fff;
    color: #203842;
    box-shadow: 0 4px 16px rgba(24, 63, 77, .08);
    font-size: 15px;
    line-height: 1.42;
  }

  .expert-chat-card .message-row p {
    max-width: min(78vw, 430px);
  }

  .message-row.user p {
    border-color: rgba(24, 63, 77, .08);
    border-radius: 18px 18px 6px 18px;
    background: #dff4fb;
    box-shadow: 0 4px 14px rgba(24, 63, 77, .07);
  }

  .message-row.typing p {
    min-width: 68px;
    padding: 11px 14px;
  }

  .typing-dots {
    gap: 5px;
    min-height: 16px;
  }

  .typing-dots span {
    width: 7px;
    height: 7px;
    background: #7f949d;
  }

  .chat-input {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #dbe8ee;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -10px 26px rgba(24, 63, 77, .08);
  }

  .chat-input input {
    min-height: 46px;
    border: 1px solid #c9dce4;
    border-radius: 999px;
    background: #fff;
    padding: 0 16px;
    color: #1f3640;
    font-size: 16px;
    box-shadow: inset 0 1px 2px rgba(24, 63, 77, .04);
  }

  .chat-input input:focus {
    border-color: #2c9cc6;
    outline: 3px solid rgba(44, 156, 198, .16);
  }

  .expert-chat-input textarea {
    width: 100%;
    min-height: 46px;
    height: 46px;
    max-height: 96px;
    resize: none;
    overflow-y: auto;
    border: 1px solid #c9dce4;
    border-radius: 999px;
    background: #fff;
    padding: 11px 16px;
    color: #1f3640;
    font-size: 16px;
    line-height: 22px;
    box-shadow: inset 0 1px 2px rgba(24, 63, 77, .04);
    outline: none;
  }

  .expert-chat-input textarea:focus {
    border-color: #2c9cc6;
    outline: 3px solid rgba(44, 156, 198, .16);
  }

  .expert-chat-status:empty {
    display: none;
  }

  .chat-input button {
    min-width: 82px;
    min-height: 46px;
    border-radius: 999px;
    background: #183f4d;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(24, 63, 77, .18);
  }

  .chat-input button:hover,
  .chat-input button:focus {
    background: #24586b;
  }

  .desktop-submit-label {
    display: none;
  }

  .mobile-submit-label {
    display: inline;
  }
}

@media (max-width: 480px) {
  .chat-profile {
    grid-template-columns: 38px 1fr;
    gap: 9px;
    min-height: 58px;
    padding: max(7px, env(safe-area-inset-top)) 12px 8px;
  }

  .chat-profile .avatar {
    width: 38px;
    height: 38px;
  }

  .chat-profile h2 {
    font-size: 16px;
  }

  .chat-profile strong {
    font-size: 11px;
  }

  .chat-profile .stars {
    max-width: calc(100vw - 74px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .chat-body {
    padding: 14px 11px 16px;
  }

  .message-row p {
    max-width: calc(100vw - 78px);
    font-size: 15px;
  }

  .chat-input {
    padding-right: 10px;
    padding-left: 10px;
  }

  .chat-input button {
    min-width: 76px;
  }
}
