/* "Book a call" button and the timed invitations on the live demo */
.top-book {
  padding: 10px 15px;
  border-radius: 6px;
  background: #f97316;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.top-book:hover { background: #c2410c; }

.engage {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  overflow: auto;
  padding: 30px 28px 26px;
  border: 0;
  border-top: 5px solid #f97316;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 42, 68, .45);
  color: #111827;
  animation: engage-in .35s ease-out;
}

/* Frosted glass over the frozen dashboard */
.engage::backdrop {
  background: rgba(15, 42, 68, .45);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

html.engage-lock, html.engage-lock body { overflow: hidden; }

.engage h2 {
  margin: 0 32px 7px 0;
  color: #0f2a44;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.4px;
}

.engage p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 13px;
}

.engage-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: #eef2f7;
  color: #0f2a44;
  font-size: 20px;
  line-height: 1;
}

.engage form { display: flex; flex-wrap: wrap; gap: 8px; }

.engage input[type="email"] {
  flex: 1 1 190px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}

.engage .engage-trap { position: absolute; left: -9999px; opacity: 0; }

.engage-cta {
  display: inline-block;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  background: #f97316;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.engage-cta:hover { background: #c2410c; }
.engage-cta:disabled { opacity: .6; cursor: wait; }

.engage .engage-note { margin: 11px 0 0; color: #64748b; font-size: 11px; }
.engage .engage-status { margin: 8px 0 0; color: #dc2626; font-size: 12px; }
.engage .engage-status:empty { display: none; }

@keyframes engage-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .engage { animation: none; }
}

@media (max-width: 580px) {
  .top-inner { flex-wrap: wrap; row-gap: 10px; }
  .top-info .status-dot { display: none; }
  /* Long option names must not push the page wider than the phone screen. */
  .select-wrap { min-width: 0; }
  .select-wrap select { width: 100%; min-width: 0; }
  .engage { padding: 24px 18px 20px; }
}

/* Hero headline and calls to action */
.hero h1 .overline { display: block; margin-bottom: 12px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions a { padding: 12px 20px; border-radius: 6px; font-size: 13px; font-weight: 800; text-decoration: none; }
.btn-main { background: #f97316; color: #fff; }
.btn-main:hover { background: #c2410c; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* Bottom call to action */
.cta { flex-wrap: wrap; padding: 30px; scroll-margin-top: 80px; }
.cta > div:first-child { flex: 1 1 380px; }
.cta h2 { margin: 0 0 7px; font-size: 25px; line-height: 1.25; letter-spacing: -.6px; }
.cta-actions { flex: 1 1 340px; max-width: 460px; }
.lead-form { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-form input[type="email"] { flex: 1 1 200px; min-width: 0; padding: 12px; border: 0; border-radius: 6px; font-size: 14px; }
.lead-form button { padding: 12px 18px; border: 0; border-radius: 6px; background: #f97316; color: #fff; font-size: 13px; font-weight: 800; }
.lead-form button:hover { background: #c2410c; }
.lead-form button:disabled { opacity: .6; cursor: wait; }
.cta .lead-status { margin-top: 8px; color: #fff; font-size: 13px; font-weight: 700; }
.cta .lead-status:empty { display: none; }
.cta .lead-note { margin-top: 9px; font-size: 11px; }
.cta .lead-alt { margin-top: 12px; font-size: 13px; }
.cta .cta-actions a { display: inline; margin: 0; padding: 0; border-radius: 0; background: none; color: #fff; font-size: inherit; font-weight: 700; white-space: normal; text-decoration: underline; }
.lead-form .engage-trap { position: absolute; left: -9999px; opacity: 0; }

/* Explanation and FAQ */
.about { padding: 38px 0 8px; }
.about h2 { margin: 0 0 8px; color: #0f2a44; font-size: 23px; letter-spacing: -.6px; }
.about > p { max-width: 760px; margin: 0 0 18px; color: #475569; }
.about-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.about-grid article { padding: 17px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; }
.about-grid h3 { margin: 0 0 6px; font-size: 14px; }
.about-grid p { margin: 0; color: #475569; font-size: 13px; }
.about details { margin-bottom: 8px; padding: 14px 17px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.about summary { font-weight: 700; cursor: pointer; }
.about details p { max-width: 820px; margin: 9px 0 0; color: #475569; }
.about > .about-links { margin: 18px 0 0; font-size: 13px; }

@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) {
  .card-head { flex-wrap: wrap; }
  .table-tools { width: 100%; }
  .table-tools .search { flex: 1; min-width: 0; max-width: none; }
  .about-grid { grid-template-columns: 1fr; }
  .cta { padding: 22px 18px; }
  .cta > div:first-child, .cta-actions { flex-basis: 100%; }
}

/* The filter bar is two rows tall here, so jump links need more room above them. */
@media (max-width: 900px) { .cta { scroll-margin-top: 140px; } }
/* The options read "All practices" and "All partners", so the labels can go on narrow phones. */
@media (max-width: 420px) { .select-wrap span { display: none; } }
