.meda-records,
.meda-care-loop {
  scroll-margin-top: 90px;
  color: #173854;
}
.meda-records { background: #f8fbfd; }
.meda-care-loop { background: radial-gradient(ellipse at 50% 65%, #e0f1fa, #f2f8fc 72%); }
.meda-panel-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(44px, 6vw, 86px) 6%;
}
.meda-panel-inner > h2 {
  margin: 0 0 16px;
  font-size: clamp(42px, 5.75vw, 80px);
  line-height: 1;
  letter-spacing: -.064em;
}
.meda-panel-inner > h2 em { color: #247fac; }
.meda-panel-lead {
  max-width: 58ch;
  margin: 0 0 clamp(24px, 3.5vw, 42px);
  color: #45687f;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}
.meda-records-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.meda-records-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #c9deeb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 40px #17385413;
}
.meda-records-photo {
  display: block;
  width: 100%;
  height: clamp(180px, 19vw, 270px);
  object-fit: cover;
}
.meda-records-photo-home { object-position: center 45%; }
.meda-records-photo-lab { object-position: center 49%; }
.meda-records-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding: clamp(21px, 3vw, 36px);
}
.meda-records-body h3 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.08;
}
.meda-records-body p,
.meda-lab-steps {
  margin: 0;
  color: #45687f;
  line-height: 1.53;
}
.meda-records-logos {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 16px clamp(16px, 3vw, 38px);
  width: 100%;
  margin: 23px 0;
  padding: 19px 0;
  border-block: 1px solid #deebf2;
  list-style: none;
}
.meda-records-logos li:first-child { grid-column: 1 / -1; }
.meda-records-logos img { display: block; width: 108px; height: auto; }
.meda-records-logos li:first-child img { width: min(100%, 274px); }
.meda-records-logos li:last-child img { width: min(100%, 208px); }
#records-connection { scroll-margin-top: 90px; }

.meda-provider-search {
  width: 100%;
  margin: 0;
  padding: 16px;
  border: 1px solid #d5e7f1;
  border-radius: 14px;
  background: #f2f8fc;
}
.meda-provider-search label {
  display: block;
  margin-bottom: 7px;
  color: #173854;
  font-weight: 750;
}
.meda-provider-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #a9c7d9;
  border-radius: 8px;
  background: #fff;
  color: #173854;
  font: inherit;
}
.meda-provider-search p { margin-top: 7px; font-size: .85rem; }
.meda-provider-search p:empty { display: none; }
.meda-provider-search ul { margin: 8px 0 0; padding: 0; list-style: none; }
.meda-provider-search li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  padding: 8px 0;
  border-top: 1px solid #d5e7f1;
  font-size: .92rem;
}
.meda-provider-search button,
.meda-provider-search li a {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #17618a;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.meda-lab-heading img {
  display: block;
  width: min(100%, 190px);
  height: auto;
  margin: 16px 0 22px;
}
.meda-lab-steps {
  position: relative;
  display: grid;
  gap: 13px;
  padding: 0;
  list-style: none;
  counter-reset: meda-lab-step;
}
.meda-lab-steps::before {
  position: absolute;
  inset: 15px auto 15px 15px;
  width: 1px;
  background: #accfe2;
  content: "";
}
.meda-lab-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  column-gap: 12px;
  counter-increment: meda-lab-step;
}
.meda-lab-steps li::before {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #bad7e7;
  border-radius: 50%;
  background: #e9f5fb;
  color: #17618a;
  font-size: .78rem;
  font-weight: 750;
  content: counter(meda-lab-step);
}
.meda-lab-steps strong { color: #173854; }
.meda-lab-steps span { font-size: .94rem; }

.meda-care-loop .meda-panel-inner > h2,
.meda-care-loop .meda-panel-lead {
  margin-inline: auto;
  text-align: center;
}
.meda-loop-diagram {
  display: grid;
  grid-template-columns: minmax(125px, 1fr) minmax(290px, 410px) minmax(125px, 1fr);
  grid-template-areas: ". ask ." "check portrait see" ". act .";
  align-items: center;
  justify-items: center;
  gap: 11px clamp(10px, 2vw, 24px);
  max-width: 960px;
  margin-inline: auto;
}
.meda-loop-center {
  position: relative;
  display: grid;
  grid-area: portrait;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
}
.meda-loop-center img {
  display: block;
  width: 83%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 33px #234d6629;
}
.meda-loop-center figcaption {
  position: absolute;
  bottom: 14%;
  padding: 5px 20px;
  border: 1px solid #d5e7f1;
  border-radius: 99px;
  background: #fff;
  color: #173854;
  font-weight: 750;
}
.meda-loop-ring {
  position: absolute;
  inset: 0;
  border: 2px solid #79b4ce;
  border-radius: 50%;
  box-shadow: 0 0 0 7px #d9edf658;
  pointer-events: none;
}
.meda-loop-ring i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-top: 2px solid #4385a5;
  border-right: 2px solid #4385a5;
}
.meda-loop-ring i:nth-child(1) { top: 14.65%; left: 85.35%; transform: translate(-50%, -50%) rotate(90deg); }
.meda-loop-ring i:nth-child(2) { top: 85.35%; left: 85.35%; transform: translate(-50%, -50%) rotate(180deg); }
.meda-loop-ring i:nth-child(3) { top: 85.35%; left: 14.65%; transform: translate(-50%, -50%) rotate(270deg); }
.meda-loop-ring i:nth-child(4) { top: 14.65%; left: 14.65%; transform: translate(-50%, -50%); }
.meda-loop-steps { display: contents; margin: 0; padding: 0; list-style: none; }
.meda-loop-steps li { display: grid; justify-items: center; text-align: center; }
.meda-loop-steps li:nth-child(1) { grid-area: ask; }
.meda-loop-steps li:nth-child(2) { grid-area: see; }
.meda-loop-steps li:nth-child(3) { grid-area: act; }
.meda-loop-steps li:nth-child(4) { grid-area: check; }
.meda-loop-steps h3 {
  margin: 0 0 4px;
  font-size: clamp(1.02rem, 1.8vw, 1.4rem);
  line-height: 1.12;
}
.meda-loop-steps p {
  max-width: 26ch;
  margin: 0;
  color: #45687f;
  font-size: .94rem;
  line-height: 1.45;
}
.meda-loop-icon {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  margin-bottom: 8px;
  border: 1px solid #afd2e4;
  border-radius: 50%;
  background: #fff;
  color: #24769d;
  font: 700 26px/1 system-ui, sans-serif;
}
.meda-loop-icon-ask i {
  display: grid;
  place-items: center;
  width: 23px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 8px 8px 8px 2px;
  font: 700 16px/.8 system-ui, sans-serif;
}
.meda-loop-icon-see::after {
  content: "";
  width: 21px;
  height: 19px;
  background:
    linear-gradient(currentColor, currentColor) left bottom / 5px 36% no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 5px 66% no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 5px 100% no-repeat;
}

@media (max-width: 700px) {
  .meda-records-grid { grid-template-columns: 1fr; }
  .meda-loop-diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "portrait portrait" "ask see" "act check";
    column-gap: 14px;
    row-gap: 22px;
  }
  .meda-loop-center { width: min(92%, 340px); margin-bottom: 5px; }
  .meda-loop-steps li { align-self: start; }
  .meda-loop-steps p { font-size: .86rem; }
}

.meda-join-nav,
.meda-join-button {
  background: #106696;
  color: #fff;
}
.meda-join-nav { border-color: transparent; }
.meda-join-button { gap: 16px; }
.meda-join-nav:hover,
.meda-join-button:hover { background: #0e5078; }
.meda-join-nav:focus-visible,
.meda-join-button:focus-visible {
  outline: 3px solid #173854;
  outline-offset: 4px;
}
.meda-hero-launch {
  color: #365a72;
  font-size: .95rem;
  font-weight: 700;
}

.meda-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 74px);
  padding: clamp(36px, 5.5vw, 70px) max(6%, calc((100% - 1265px) / 2));
  scroll-margin-top: 90px;
  background: #f4fafe;
  border-block: 1px solid #d8e9f1;
}
.meda-start h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}
.meda-start p { color: #45687f; line-height: 1.55; }
.meda-start-invitation p { max-width: 38ch; }
.meda-start-invitation time { white-space: nowrap; }
.meda-start-invitation .button { margin-top: 20px; }
.meda-start-pricing h3 { margin: 0 0 10px; font-size: 1.125rem; }
.meda-start-pricing > p { margin-top: 12px; font-size: .875rem; }

@media (max-width: 760px) {
  .meda-start { grid-template-columns: 1fr; }
}

.meda-site-footer {
  padding: 25px max(6%, calc((100% - 1265px) / 2)) 15px;
  background: #fff;
}
.meda-site-footer-main,
.meda-site-footer-bottom,
.meda-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}
.meda-site-footer-main,
.meda-site-footer-bottom { justify-content: space-between; }
.meda-site-footer-main img { display: block; width: 118px; }
.meda-site-footer-bottom {
  margin-top: 19px;
  padding-top: 12px;
  border-top: 1px solid #dcecf5;
  color: #45687f;
}
.meda-site-footer nav a,
.meda-footer-contact summary,
.meda-site-footer-bottom a {
  color: #173854;
  font-size: .84rem;
  font-weight: 700;
}
.meda-site-footer-main nav { align-items: flex-start; }
.meda-site-footer-main nav > a,
.meda-footer-contact summary { line-height: 1.5; }
.meda-footer-contact summary {
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
}
.meda-footer-contact summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
}
.meda-footer-contact[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}
.meda-footer-contact summary:hover { text-decoration: underline; }
.meda-footer-contact dl {
  margin: 9px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: #f4fafe;
  font-size: .84rem;
  line-height: 1.5;
}
.meda-footer-contact dt { color: #45687f; }
.meda-footer-contact dt:not(:first-child) { margin-top: 8px; }
.meda-footer-contact dd { margin: 0; }
.meda-footer-contact dd a { text-decoration: underline; }
.meda-site-footer a:hover { text-decoration: underline; }
