/* The homepage welcome and visit chooser share the clinic's warm palette. */
.has-video-intro .intro-info {
  display: block;
  margin-top: 20px;
}
.intro-visit-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #ffffff70;
}
.intro-visit-trigger .icon {
  width: 16px;
  height: 16px;
}
.intro-cdcp-badge {
  position: absolute;
  z-index: 1;
  right: clamp(22px, 4vw, 64px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 21px 17px 17px;
  border: 1px solid #ffffff57;
  border-radius: 16px;
  background: #17382dce;
  color: #fffdf7;
  box-shadow: 0 8px 36px #00000012;
  backdrop-filter: blur(12px);
  transition: background 180ms ease, border-color 180ms ease;
}
.intro-cdcp-badge:hover {
  background: #17382df2;
  border-color: #fffdf7;
}
.intro-cdcp-mark {
  display: grid;
  place-items: center;
  flex: 0 0 45px;
  width: 45px;
  height: 51px;
  color: #d9e6bd;
}
.intro-cdcp-mark svg {
  width: 45px;
  height: 45px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro-cdcp-mark .intro-cdcp-check {
  stroke-width: 2.2;
}
.intro-cdcp-copy {
  display: grid;
  gap: 2px;
}
.intro-cdcp-label {
  color: #d9e6bd;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.intro-cdcp-copy strong {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}
.intro-cdcp-name {
  color: #f2f0e4;
  font-size: 0.75rem;
}
.intro-cdcp-name > span {
  margin-inline: 3px;
}
.intro-cdcp-arrow {
  width: 17px;
  height: 17px;
  margin-left: 6px;
}
/* Keep the notice and CDCP badge in separate corners on larger screens. */
@media (min-width: 701px) and (min-height: 501px) {
  .has-video-intro .analytics-consent {
    right: auto;
    left: 20px;
    width: min(410px, calc(100% - 40px));
  }
}
html.welcome-open {
  overflow: hidden;
}
.welcome-dialog {
  position: fixed;
  inset: 0;
  width: min(600px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #e1d9c8;
  border-radius: 24px;
  background: #fffdf7;
  color: var(--text-primary);
  box-shadow: 0 32px 120px #0d251e4d;
}
.welcome-dialog::backdrop {
  background: #122b237d;
  backdrop-filter: blur(6px);
}
.welcome-dialog-inner {
  position: relative;
  padding: 34px 38px 0;
}
.welcome-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dfdfd1;
  border-radius: 50%;
  background: transparent;
  color: #526159;
}
.welcome-close:hover {
  background: #edf0e5;
}
.welcome-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.welcome-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 34px;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}
.welcome-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e9eddd;
}
.welcome-brand-mark .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.3;
}
.welcome-brand small {
  display: block;
  color: #687264;
  font-size: 0.6875rem;
  font-weight: 400;
}
.welcome-heading {
  margin-top: 32px;
}
.welcome-eyebrow {
  margin-bottom: 10px;
  color: #72794e;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}
.welcome-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.welcome-heading h2:focus {
  outline: none;
}
#welcome-description {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}
.welcome-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 30px;
}
.welcome-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 133px;
  padding: 18px;
  gap: 12px;
  border: 1px solid #dedfd1;
  border-radius: 13px;
  background: #f8f9f2;
  color: var(--primary);
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease;
}
.welcome-choice:hover,
.welcome-choice:focus-visible {
  border-color: #5e7954;
  background: #edf1e3;
}
.welcome-choice-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e9eddd;
}
.welcome-choice-icon .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}
.welcome-choice strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}
.welcome-choice small {
  display: block;
  margin-top: 3px;
  color: #626c5e;
  font-size: 0.6875rem;
  line-height: 1.5;
}
.welcome-choice-arrow {
  position: absolute;
  top: 25px;
  right: 18px;
  width: 17px;
  height: 17px;
  color: #71815f;
}
.welcome-result {
  margin: 24px 0 22px;
}
.welcome-gift {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-bottom: 22px;
  border: 1px solid #e6dcc4;
  border-radius: 14px;
  background: #f4eedf;
}
.welcome-gift-icon {
  flex: 0 0 48px;
  color: #866c3f;
}
.welcome-gift-icon svg {
  display: block;
  width: 48px;
  height: 64px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.welcome-gift-label {
  display: block;
  margin-bottom: 5px;
  color: #806d45;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.welcome-gift strong {
  display: block;
  margin-bottom: 5px;
  color: #4e4c32;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
}
.welcome-gift strong + span {
  display: block;
  color: #62614c;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.welcome-gift b {
  color: #4e4c32;
  font-weight: 600;
}
.welcome-book {
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 16px 22px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: #fffdf7;
  font-size: 0.875rem;
}
.welcome-book:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.welcome-learn {
  display: block;
  width: fit-content;
  min-height: 44px;
  margin: 6px auto 12px;
  padding: 12px 4px;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.welcome-learn span {
  margin-left: 5px;
}
.welcome-back {
  display: block;
  min-height: 44px;
  margin: 4px auto 0;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.welcome-back span {
  margin-right: 6px;
}
.welcome-footer {
  margin-inline: -38px;
  padding: 15px 20px;
  border-top: 1px solid #e8e5d8;
  background: #f7f7ef;
  text-align: center;
}
.welcome-footer button {
  min-height: 34px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #5e6b5c;
  font-size: 0.75rem;
}
.welcome-footer button:hover,
.welcome-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.welcome-footer span {
  margin-left: 5px;
}
@media (prefers-reduced-motion: no-preference) {
  .welcome-dialog[open] {
    animation: welcome-arrive 220ms ease-out both;
  }
  @keyframes welcome-arrive {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 900px) {
  .intro-scroll {
    left: 28px;
    transform: none;
  }
  .intro-cdcp-badge {
    right: 22px;
    padding: 14px;
    gap: 10px;
  }
  .intro-cdcp-copy strong {
    font-size: 0.8125rem;
  }
  .intro-cdcp-arrow {
    display: none;
  }
}
@media (max-width: 700px) {
  .has-video-intro .intro-content,
  html.dock-intro .has-video-intro .intro-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding-top: 90px;
    padding-bottom: calc(192px + var(--intro-notice-space, 0px));
  }
  .has-video-intro .intro-content h1 {
    font-size: clamp(1rem, 4.6vw, 1.4rem);
  }
  .intro-cdcp-badge {
    right: 18px;
    bottom: calc(22px + var(--intro-notice-space, 0px));
    max-width: calc(100% - 88px);
    padding: 13px 16px;
    border-radius: 12px;
  }
  .intro-cdcp-mark {
    flex-basis: 35px;
    width: 35px;
    height: 40px;
  }
  .intro-cdcp-mark svg {
    width: 35px;
    height: 39px;
  }
  .intro-cdcp-name {
    font-size: 0.6875rem;
  }
  .has-video-intro .intro-info {
    position: absolute;
    left: 0;
    bottom: calc(40px + var(--intro-notice-space, 0px));
    margin: 0;
  }
  .intro-visit-trigger {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #ffffff70;
    border-radius: 50%;
    background: #17382dce;
    backdrop-filter: blur(12px);
  }
  .intro-visit-trigger > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .intro-visit-trigger .icon {
    width: 23px;
    height: 23px;
    stroke-width: 1.4;
  }
  .intro-scroll {
    display: none;
  }
  .welcome-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }
  .welcome-dialog-inner {
    padding: 26px 24px 0;
  }
  .welcome-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
  .welcome-brand {
    gap: 9px;
    font-size: 0.75rem;
  }
  .welcome-brand-mark {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
  }
  .welcome-brand small {
    font-size: 0.625rem;
  }
  .welcome-heading {
    margin-top: 26px;
  }
  .welcome-heading h2 {
    font-size: 2.1rem;
  }
  #welcome-description {
    margin-top: 12px;
    font-size: 0.8125rem;
  }
  .welcome-choices {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 22px 0;
  }
  .welcome-choice {
    min-height: 73px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 13px 32px 13px 13px;
  }
  .welcome-choice-icon {
    flex-shrink: 0;
  }
  .welcome-choice-arrow {
    top: calc(50% - 8px);
    right: 12px;
    width: 15px;
  }
  .welcome-gift {
    gap: 12px;
    padding: 18px 14px;
  }
  .welcome-gift strong {
    font-size: 1.1rem;
  }
  .welcome-footer {
    margin-inline: -24px;
    padding-inline: 14px;
  }
}
@media (max-width: 360px) {
  .has-video-intro .intro-content,
  html.dock-intro .has-video-intro .intro-content {
    padding-top: 68px;
    padding-bottom: calc(164px + var(--intro-notice-space, 0px));
  }
  .has-video-intro .intro-actions {
    margin-top: 20px;
  }
  .has-video-intro .intro-book-btn,
  .has-video-intro .intro-call-btn {
    min-height: 48px;
  }
}
@media (max-width: 360px), (max-height: 640px) {
  .welcome-dialog-inner {
    padding: 22px 20px 0;
  }
  .welcome-brand small {
    display: none;
  }
  .welcome-heading {
    margin-top: 20px;
  }
  .welcome-heading h2 {
    font-size: 1.85rem;
  }
  .welcome-choices {
    gap: 8px;
    margin-block: 18px;
  }
  .welcome-choice {
    min-height: 66px;
    padding-block: 10px;
  }
  .welcome-footer {
    margin-inline: -20px;
    padding-block: 10px;
  }
}
