/* Shared utility and patient handoff design. All existing copy is retained. */
.rebu-legal-page,
.rebu-contact-page,
.rebu-not-found,
.rebu-booking {
  --utility-ink: #312f57;
  --utility-muted: #686374;
  --utility-paper: #fbfaf7;
  --utility-lavender: #eeebf4;
  --utility-rule: #ded9e4;
  font-family: "Rebu Home Geist", Arial, sans-serif;
  color: var(--utility-ink);
  -webkit-font-smoothing: antialiased;
}
.rebu-legal-page *,
.rebu-contact-page *,
.rebu-not-found *,
.rebu-booking * { box-sizing: border-box; }
:is(.rebu-legal-page,.rebu-contact-page,.rebu-not-found,.rebu-booking) :is(h1,h2,h3,h4,button) {
  font-family: "Rebu Home Geist", Arial, sans-serif;
}
:is(.rebu-legal-page,.rebu-contact-page,.rebu-not-found,.rebu-booking) :is(a,button):focus-visible {
  outline: 3px solid #8264b9;
  outline-offset: 5px;
}
:is(.rebu-legal-page,.rebu-contact-page,.rebu-not-found,.rebu-booking) :is(a,button) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Long-form policy pages share the same quiet, spacious reading surface. */
.rebu-legal-page {
  width: min(100% - 112px, 1000px);
  max-width: none;
  margin-inline: auto;
  padding: 64px 0 100px;
  background: var(--utility-paper);
}
.rebu-legal-page > h1 {
  max-width: 880px;
  margin: 0 0 42px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--utility-rule);
  color: var(--utility-ink);
  font-size: clamp(42px, 5.4vw, 70px);
  font-weight: 430;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.rebu-legal-page > .prose {
  max-width: 780px;
  color: #575368;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.rebu-legal-page .prose :is(p,ul,ol) { margin: 0 0 24px; }
.rebu-legal-page .prose > p:first-child {
  color: var(--utility-muted);
  font-size: 14px;
}
.rebu-legal-page .prose h2 {
  margin: 52px 0 20px;
  padding-top: 30px;
  border-top: 1px solid var(--utility-rule);
  color: var(--utility-ink);
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 470;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.rebu-legal-page .prose h3 {
  margin: 32px 0 16px;
  color: var(--utility-ink);
  font-size: 19px;
  font-weight: 550;
  line-height: 1.55;
  letter-spacing: -.015em;
}
.rebu-legal-page .prose strong { color: var(--utility-ink); font-weight: 600; }
.rebu-legal-page .prose :is(ul,ol) { padding-left: 24px; }
.rebu-legal-page .prose li { padding-left: 4px; margin-block: 9px; }
.rebu-legal-page .prose li::marker { color: #9386a8; }
.rebu-legal-page .prose :is(a,button) {
  color: var(--utility-ink);
  text-decoration: underline;
  text-decoration-color: #b8b0c5;
  text-underline-offset: 4px;
}
.rebu-legal-page .prose :is(a,button):hover { text-decoration-color: var(--utility-ink); }
.rebu-legal-page .rebu-legal-contact {
  display: grid;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 28px;
  font: inherit;
  overflow-wrap: anywhere;
}
.rebu-legal-page .prose .rebu-legal-contact p { margin: 0; }

/* Contact handoff and 404 are full-page destinations, not floating cards. */
.rebu-contact-page,
.rebu-not-found {
  min-height: 100svh;
  width: 100%;
  background: var(--utility-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 40px;
}
.rebu-contact-content { max-width: 840px; }
.rebu-contact-logo { margin-bottom: 52px; }
.rebu-contact-logo img { width: 130px; height: auto; }
.rebu-contact-eyebrow {
  margin: 0 0 24px;
  color: #70647c;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: .12em;
}
.rebu-contact-page h1 {
  max-width: 760px;
  color: var(--utility-ink);
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 430;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.rebu-contact-intro {
  max-width: 590px;
  margin-top: 28px;
  color: var(--utility-muted);
  font-size: 17px;
  line-height: 1.8;
}
.rebu-contact-actions { margin-top: 34px; gap: 14px; }
.rebu-contact-actions > a,
.rebu-not-found-content > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 26px;
  gap: 20px;
  border: 1px solid var(--utility-ink);
  border-radius: 999px;
  color: #fff;
  background: var(--utility-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: background .18s, border-color .18s;
}
.rebu-contact-actions > a:hover,
.rebu-not-found-content > a:hover { background: #49436c; border-color: #49436c; }
.rebu-contact-actions > p { font-size: 13px; color: var(--utility-muted); }
.rebu-contact-links {
  max-width: 590px;
  margin: 38px auto 0;
  padding-top: 22px;
  border-color: var(--utility-rule);
}
.rebu-not-found-content { max-width: 660px; }
.rebu-not-found-content > img { width: 130px; height: auto; margin: 0 auto 50px; }
.rebu-not-found-code {
  margin-bottom: 14px;
  color: #9386a8;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: .16em;
}
.rebu-not-found h1 {
  color: var(--utility-ink);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 430;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.rebu-not-found-content > p:not(.rebu-not-found-code) {
  max-width: 440px;
  margin: 24px auto 32px;
  color: var(--utility-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* Existing keyboard, focus, route and compact landscape behaviors are retained. */
.rebu-booking .booking-modal-backdrop {
  background: rgba(35, 32, 57, .48);
  backdrop-filter: blur(5px);
}
.rebu-booking .booking-modal-panel {
  max-width: 760px;
  border: 1px solid #ded9e4;
  border-radius: 24px;
  color: var(--utility-ink);
  background: var(--utility-paper);
  box-shadow: 0 20px 80px #211d3938;
}
.rebu-booking .booking-modal-close {
  width: 44px;
  height: 44px;
  color: var(--utility-ink);
  background: var(--utility-lavender);
}
.rebu-booking .booking-modal-close:hover { background: #e1dbea; }
.rebu-booking .booking-modal-title {
  color: var(--utility-ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 430;
  line-height: 1.14;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.rebu-booking .booking-modal-intro,
.rebu-booking .booking-insurance-copy { color: var(--utility-muted); line-height: 1.7; }
.rebu-booking .booking-payment-card {
  border: 1px solid var(--utility-rule);
  border-radius: 18px;
  background: #fff;
  padding: 26px;
  box-shadow: none;
}
.rebu-booking .booking-payment-card:first-child { background: var(--utility-lavender); }
.rebu-booking :is(.booking-payment-card,.booking-payment-option):hover { border-color: #9b8caf; }
.rebu-booking :is(.booking-payment-card h3,.booking-payment-option-heading strong) {
  font-family: "Rebu Home Geist", Arial, sans-serif;
  color: var(--utility-ink);
  font-size: 24px;
  font-weight: 470;
  letter-spacing: -.025em;
}
.rebu-booking .booking-payment-card-copy { color: var(--utility-muted); font-size: 14px; line-height: 1.7; }
.rebu-booking .booking-payment-action,
.rebu-booking .booking-modal-actions > button {
  min-height: 50px;
  border-radius: 999px;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
.rebu-booking .booking-payment-action { border-width: 1px; padding-inline: 16px; }
.rebu-booking .booking-modal-actions > button { transform: none; background: var(--utility-ink); }
.rebu-booking .booking-modal-actions > button:hover { background: #49436c; box-shadow: none; }
.rebu-booking .booking-modal-back { min-height: 44px; color: var(--utility-muted); font-size: 13px; }
.rebu-booking .booking-price-card {
  padding: 24px;
  border: 1px solid var(--utility-rule);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.rebu-booking .booking-price-card:last-child { background: var(--utility-lavender); }
.rebu-booking .booking-price-card h4 { font-weight: 500; line-height: 1.3; }
.rebu-booking .booking-price-card p { color: var(--utility-muted); font-size: 13px; line-height: 1.65; }
.rebu-booking .booking-price-card .text-brand-purple { color: var(--utility-ink); font-size: 32px; font-weight: 450; letter-spacing: -.035em; }
.rebu-booking .booking-established-badge {
  background: var(--utility-ink);
  box-shadow: none;
  font-weight: 500;
  letter-spacing: .055em;
}
.rebu-booking .booking-insurance-confirmation { background: var(--utility-lavender); border: 1px solid var(--utility-rule); }
.rebu-booking .booking-insurance-confirmation strong { font-weight: 500; }
.rebu-booking .booking-insurance-disclaimer { color: var(--utility-muted); }

@media (min-width: 640px) and (min-height: 521px) {
  .rebu-booking .booking-modal-scroll { padding: 56px 40px 38px; }
  .rebu-booking .booking-modal-title { margin-right: 28px; margin-bottom: 16px; }
  .rebu-booking .booking-modal-intro { font-size: 15px; margin-bottom: 28px; }
  .rebu-booking .booking-modal-step--insurance .booking-modal-title { font-size: 36px; }
}
@media (max-width: 760px) {
  .rebu-legal-page { width: calc(100% - 40px); padding: 42px 0 72px; }
  .rebu-legal-page > h1 { padding-bottom: 28px; margin-bottom: 30px; }
  .rebu-legal-page > .prose { font-size: 15px; line-height: 1.8; }
  .rebu-legal-page .prose h2 { margin-top: 40px; padding-top: 25px; }
  .rebu-legal-page .prose h3 { font-size: 18px; line-height: 1.5; }
  .rebu-contact-page,.rebu-not-found { padding: 44px 24px; }
  .rebu-contact-logo { margin-bottom: 38px; }
  .rebu-contact-intro { font-size: 16px; line-height: 1.75; }
  .rebu-contact-actions > a { max-width: 360px; padding-inline: 20px; font-size: 13px; }
}
@media (max-width: 639px) and (min-height: 521px) {
  .rebu-booking .booking-modal-panel { max-width: 460px; border-radius: 20px; }
  .rebu-booking .booking-modal-scroll { padding: 64px 22px 24px; }
  .rebu-booking .booking-payment-step { margin-top: 0; }
  .rebu-booking .booking-modal-title { margin-right: 0; margin-bottom: 14px; font-size: 28px; }
  .rebu-booking .booking-modal-intro { margin-bottom: 24px; font-size: 14px; line-height: 1.65; }
  .rebu-booking .booking-payment-options-mobile { gap: 14px; }
  .rebu-booking .booking-payment-option { gap: 12px; margin: 0; padding: 20px; border-color: var(--utility-rule); border-radius: 16px; background: #fff; }
  .rebu-booking .booking-payment-option--cash { background: var(--utility-lavender); }
  .rebu-booking .booking-payment-option-heading strong { font-size: 23px; }
  .rebu-booking .booking-payment-option-copy { color: var(--utility-muted); font-size: 14px; line-height: 1.6; }
  .rebu-booking .booking-payment-option-action { justify-content: space-between; min-height: 32px; color: var(--utility-ink); font-size: 13px; font-weight: 500; }
  .rebu-booking .booking-modal-back { top: -50px; font-size: 12px; }
  .rebu-booking .booking-price-card { padding: 18px; }
  .rebu-booking .booking-pricing-grid { gap: 14px; }
  .rebu-booking .booking-price-card p { font-size: 13px !important; line-height: 1.6 !important; }
  .rebu-booking .booking-established-badge { margin-bottom: 12px; padding: 5px 8px; font-size: 8px; }
  .rebu-booking .booking-modal-actions { margin-top: 22px; }
  .rebu-booking .booking-modal-actions > p { font-size: 12px; line-height: 1.6; }
  .rebu-booking .booking-modal-step--insurance { padding: 0; }
  .rebu-booking .booking-modal-step--insurance .booking-modal-title { margin-right: 0; font-size: 28px; }
  .rebu-booking .booking-modal-step--insurance .booking-insurance-copy { font-size: 14px; gap: 20px; line-height: 1.7; }
  .rebu-booking .booking-modal-step--insurance .booking-insurance-confirmation { font-size: 13px; line-height: 1.6; padding: 18px; }
  .rebu-booking .booking-modal-step--insurance .booking-insurance-disclaimer { max-width: none; font-size: 12px; line-height: 1.6; }
}
@media (max-width: 360px) {
  .rebu-contact-page,.rebu-not-found { padding-inline: 20px; }
  .rebu-contact-page h1,.rebu-not-found h1 { font-size: 38px; }
  .rebu-contact-actions > a { gap: 10px; padding-inline: 14px; }
}
@media (max-width: 639px) and (min-height: 521px) and (max-width: 360px) {
  .rebu-booking .booking-modal-scroll { padding-inline: 18px; }
  .rebu-booking .booking-modal-title,
  .rebu-booking .booking-modal-step--insurance .booking-modal-title { font-size: 25px; }
  .rebu-booking .booking-payment-option { padding: 17px; }
  .rebu-booking .booking-price-card { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.rebu-contact-page,.rebu-not-found,.rebu-booking) :is(a,button) { transition: none; }
}

.home-secondary-shell .home-route-content > div.rebu-legal-page { padding-top: 64px; }
@media (max-width: 760px) {
  .home-secondary-shell .home-route-content > div.rebu-legal-page { padding-top: 42px; }
}
