body.ot-gateway-page { color-scheme: light; }

.ot-gateway {
  --ot-green: #0d9648;
  --ot-green-deep: #08753a;
  --ot-ink: #14293d;
  --ot-navy: #102942;
  --ot-muted: #5e6d78;
  --ot-line: rgba(16, 41, 66, 0.13);
  --ot-white: #ffffff;
}

.ot-gateway,
.ot-gateway *,
.ot-gateway *::before,
.ot-gateway *::after { box-sizing: border-box; }

body.ot-gateway-page {
  margin: 0;
  background: #eef2ef;
  color: var(--ot-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ot-gateway {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 8%, rgba(104, 190, 132, 0.12), transparent 30rem),
    #eef2ef;
}

.ot-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 48px, 1180px);
  min-height: 100svh;
  margin: 0 auto;
}

.ot-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--ot-line);
  animation: ot-reveal 620ms cubic-bezier(.22,.8,.24,1) both;
}

.ot-brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.ot-brand img {
  display: block;
  width: 190px;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.ot-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid var(--ot-line);
  border-radius: 999px;
  color: var(--ot-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  list-style: none;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ot-contact::-webkit-details-marker { display: none; }
.ot-contact-menu { position: relative; }

.ot-contact-icon {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  transition: transform 180ms ease;
}

.ot-contact-menu[open] .ot-contact-icon { transform: rotate(45deg); }

.ot-contact:hover,
.ot-contact:focus-visible,
.ot-contact-menu[open] .ot-contact {
  border-color: var(--ot-ink);
  background: var(--ot-ink);
  color: var(--ot-white);
  outline: none;
}

.ot-contact-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  width: min(340px, calc(100vw - 24px));
  padding: 24px;
  border: 1px solid var(--ot-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 70px rgba(20, 41, 61, .17);
  backdrop-filter: blur(18px);
  animation: ot-contact-in 180ms cubic-bezier(.22,.8,.24,1) both;
}

.ot-contact-label {
  margin: 0 0 5px;
  color: var(--ot-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ot-contact-email {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--ot-ink);
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -.02em;
  text-decoration: none;
}

.ot-contact-email:hover { color: var(--ot-green-deep); }

.ot-contact-email:focus-visible {
  border-radius: 2px;
  color: var(--ot-green-deep);
  outline: 2px solid var(--ot-green);
  outline-offset: 4px;
}

.ot-contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.ot-contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--ot-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ot-ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.ot-contact-action:hover,
.ot-contact-action:focus-visible {
  border-color: var(--ot-ink);
  outline: none;
}

.ot-contact-action-primary {
  border-color: var(--ot-green);
  background: var(--ot-green);
  color: var(--ot-white);
}

.ot-contact-action-primary:hover,
.ot-contact-action-primary:focus-visible {
  border-color: var(--ot-green-deep);
  background: var(--ot-green-deep);
}

.ot-copy-email { grid-column: 1 / -1; }

.ot-copy-status {
  display: block;
  min-height: 17px;
  margin-top: 10px;
  color: var(--ot-green-deep);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.ot-chooser {
  align-self: center;
  padding: clamp(44px, 6vh, 72px) 0 clamp(54px, 7vh, 84px);
}

.ot-chooser-heading {
  margin: 0 auto 38px;
  text-align: center;
}

.ot-eyebrow,
.ot-portal-eyebrow {
  color: var(--ot-green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ot-eyebrow {
  margin: 0;
  animation: ot-reveal 660ms 80ms cubic-bezier(.22,.8,.24,1) both;
}

.ot-title {
  max-width: 780px;
  margin: 11px auto 0;
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 760;
  letter-spacing: -.052em;
  line-height: 1;
  text-wrap: balance;
  animation: ot-reveal 720ms 140ms cubic-bezier(.22,.8,.24,1) both;
}

.ot-portals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(960px, 100%);
  margin: 0 auto;
}

.ot-portal {
  display: grid;
  min-height: 650px;
  overflow: hidden;
  grid-template-rows: minmax(285px, 46%) minmax(310px, 54%);
  border: 1px solid var(--ot-line);
  border-radius: 18px;
  background: var(--ot-white);
  color: var(--ot-ink);
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(20, 41, 61, .07);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  animation: ot-reveal 760ms 210ms cubic-bezier(.22,.8,.24,1) both;
}

.ot-portal + .ot-portal { animation-delay: 290ms; }

.ot-portal:hover,
.ot-portal:focus-visible {
  border-color: rgba(13, 150, 72, .65);
  outline: none;
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(20, 41, 61, .14);
}

.ot-portal-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e7f3eb;
}

.ot-portal-media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 29, 43, .05), transparent 58%, rgba(8, 29, 43, .16));
  content: "";
  pointer-events: none;
}

.ot-portal-media > img,
.ot-portal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ot-portal-media > img { transition: transform 700ms cubic-bezier(.2,.7,.2,1); }

.ot-portal:hover .ot-portal-media > img,
.ot-portal:focus-visible .ot-portal-media > img { transform: scale(1.035); }

.ot-portal-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 260ms ease;
}

.ot-portal-video[hidden] { display: none; }

.ot-portal.is-previewing .ot-portal-video { opacity: 1; }

.ot-portal-home .ot-portal-media > img,
.ot-portal-home .ot-portal-video { object-position: 50% 45%; }

.ot-portal-clinic .ot-portal-media > img,
.ot-portal-clinic .ot-portal-video { object-position: center top; }

.ot-portal-label,
.ot-portal-arrow,
.ot-preview-hint {
  position: absolute;
  z-index: 3;
}

.ot-portal-label {
  top: 18px;
  left: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ot-navy);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ot-portal-arrow {
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ot-navy);
  font-size: 19px;
  place-items: center;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ot-portal:hover .ot-portal-arrow,
.ot-portal:focus-visible .ot-portal-arrow {
  background: var(--ot-green);
  color: var(--ot-white);
  transform: translateX(2px);
}

.ot-preview-hint {
  right: 18px;
  bottom: 16px;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ot-navy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ot-preview-hint > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ot-green);
}

.ot-portal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 32px 38px;
}

.ot-portal-eyebrow { display: block; }

.ot-portal-title {
  display: block;
  margin-top: 10px;
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 760;
  letter-spacing: -.05em;
  line-height: 1;
  text-wrap: balance;
}

.ot-portal-description {
  display: block;
  margin-top: 16px;
  color: var(--ot-muted);
  font-size: 14px;
  line-height: 1.58;
}

.ot-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  border-top: 1px solid var(--ot-line);
  color: #728079;
  font-size: 12px;
}

.ot-footer-links { display: flex; gap: 22px; }

.ot-footer a {
  color: inherit;
  text-decoration: none;
}

.ot-footer a:hover,
.ot-footer a:focus-visible {
  color: var(--ot-ink);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .ot-preview-hint { display: inline-flex; }
}

@keyframes ot-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ot-contact-in {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .ot-shell { width: min(100% - 32px, 760px); }
  .ot-portal-copy { padding: 28px 24px 30px; }
  .ot-portal-title { font-size: 30px; }
  .ot-portal-description { font-size: 13px; }
}

@media (max-width: 760px) {
  .ot-shell { width: min(100% - 24px, 580px); }
  .ot-nav { min-height: 74px; }
  .ot-brand img { width: 164px; }
  .ot-contact { min-height: 40px; padding: 0 14px; font-size: 12px; }
  .ot-chooser { padding: 44px 0 54px; }
  .ot-chooser-heading { margin-bottom: 30px; }
  .ot-title { font-size: clamp(37px, 11vw, 50px); }
  .ot-portals { grid-template-columns: 1fr; }
  .ot-portal {
    min-height: 620px;
    grid-template-rows: minmax(275px, 46%) minmax(310px, 54%);
  }
  .ot-portal-copy { padding: 30px 27px 34px; }
  .ot-portal-title { font-size: 33px; }
  .ot-portal-description { font-size: 14px; }
  .ot-preview-hint { display: none; }
  .ot-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; }
}

@media (max-width: 440px) {
  .ot-contact { padding-inline: 12px; }
  .ot-contact-popover { right: -2px; padding: 20px; }
  .ot-contact-actions { grid-template-columns: 1fr; }
  .ot-copy-email { grid-column: auto; }
  .ot-portal { min-height: 610px; }
  .ot-portal-copy { padding: 27px 22px 30px; }
  .ot-portal-title { font-size: 30px; }
  .ot-portal-description { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .ot-gateway,
  .ot-gateway *,
  .ot-gateway *::before,
  .ot-gateway *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .ot-preview-hint,
  .ot-portal-video { display: none; }
}
