/* Homepage restructure: product tour, report proof, role scenarios and desktop QR CTA. */
.product-tour > .product-tour-wrap,
.doctor-report-section > .doctor-report-wrap,
.home-roles-section > .home-roles-wrap {
  width: min(1240px, calc(100% - 64px));
}

.product-tour .tour-heading {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.product-tour .tour-heading h2,
.home-roles-wrap > h2 {
  color: #0E4F4B;
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0;
  text-wrap: balance;
}

.product-tour .tour-heading p {
  color: #5B6966;
  font-size: 18px;
  line-height: 1.8;
  margin: 12px 0 0;
}

.product-tour .tour-heading .tour-kicker {
  color: #C2611F;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}

.tour-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border-radius: 22px;
  background: #F1ECE4;
}

.tour-tab {
  min-width: 0;
  min-height: 86px;
  padding: 16px 20px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #3C4A47;
  text-align: start;
  cursor: pointer;
  font: inherit;
  transition: background-color 160ms ease, color 160ms ease;
}

.tour-tab[aria-selected="true"] {
  background: #0E4F4B;
  color: #F7F4EE;
}

.tour-tab-name,
.tour-tab-subtitle {
  display: block;
}

.tour-tab-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.tour-tab-subtitle {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.6;
  opacity: .82;
}

.tour-panels {
  margin-top: 14px;
  border-radius: 32px;
  background: #E9F1EE;
  overflow: hidden;
}

.tour-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  min-height: 450px;
  padding: 44px clamp(28px, 6vw, 72px);
}

.tour-panel[hidden] {
  display: none;
}

.tour-panel-copy {
  min-width: 0;
  text-align: start;
}

.tour-kicker {
  margin: 0 0 12px;
  color: #C2611F;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.tour-panel h3 {
  max-width: 650px;
  margin: 0;
  color: #0E4F4B;
  font-size: clamp(27px, 3.1vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}

.tour-points {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.tour-points li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: #3C4A47;
  font-size: 16px;
  line-height: 1.8;
}

.tour-point-number {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #B8D1CA;
  border-radius: 50%;
  color: #0E4F4B;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.tour-related-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: #0E4F4B;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.tour-phone {
  width: min(280px, 100%);
  justify-self: center;
}

.tour-phone > .phone-bezel {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0;
  transform: none;
}

.tour-phone > .phone-bezel.phone-illustration {
  margin-bottom: 44px;
}

.tour-phone .illustration-caption {
  color: #5B6966;
}

.tour-noscript {
  margin-top: 18px;
  color: #5B6966;
  font-size: 14px;
  line-height: 1.8;
}

.tour-noscript ul {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding-inline-start: 20px;
}

.tour-noscript a {
  color: #0E4F4B;
}

.doctor-report-section {
  padding-block: 40px;
}

.doctor-report-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
  min-height: 520px;
  padding: 64px 56px 56px;
  overflow: hidden;
  border-radius: 36px;
  background: #0E4F4B;
  color: #F7F4EE;
}

.doctor-report-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: start;
}

.doctor-report-label {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: #E07A2E;
  margin: 0 0 14px;
  color: #1F1308;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.doctor-report-copy h2 {
  margin: 0;
  color: #F7F4EE;
  font-size: clamp(30px, 3.3vw, 42px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-wrap: balance;
}

.doctor-report-intro {
  max-width: 650px;
  margin: 16px 0 22px;
  color: #E1EEEB;
  font-size: 17px;
  line-height: 1.85;
}

.doctor-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.doctor-report-grid > div {
  min-width: 0;
  padding: 16px 18px 15px 0;
  border-top: 1px solid rgb(225 238 235 / 30%);
}

.doctor-report-grid > div:nth-child(even) {
  padding-inline-start: 18px;
  padding-inline-end: 0;
  border-inline-start: 1px solid rgb(225 238 235 / 30%);
}

.doctor-report-grid dt {
  margin: 0 0 4px;
  color: #F7F4EE;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.doctor-report-grid dd {
  margin: 0;
  color: #D5E4DF;
  font-size: 14px;
  line-height: 1.75;
}

.doctor-report-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 13px 22px;
  border-radius: 999px;
  background: #E07A2E;
  color: #1F1308;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  text-decoration: none;
}

.doctor-report-action:focus-visible,
.tour-tab:focus-visible,
.tour-related-link:focus-visible {
  outline: 3px solid #C2611F;
  outline-offset: 4px;
}

.doctor-report-note {
  margin: 8px 0 0;
  color: #D5E4DF;
  font-size: 13px;
  line-height: 1.75;
}

.doctor-report-art {
  position: relative;
  width: min(100%, 320px);
  justify-self: center;
  align-self: stretch;
  min-height: 420px;
  margin: 18px 12px -62px 0;
}

.report-sheet {
  position: absolute;
  inset: 0 8px 0 0;
  width: 100%;
  max-height: 500px;
  aspect-ratio: 1000 / 1415;
  border-radius: 14px;
}

.report-sheet-back {
  inset: 14px -8px -8px 10px;
  background: #F1ECE4;
  transform: rotate(3deg);
}

.report-sheet-front {
  z-index: 1;
  margin: 0;
  overflow: hidden;
  background: #F7F4EE;
  box-shadow: 0 18px 40px rgb(5 30 28 / 24%);
  transform: rotate(-1.5deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 79%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 79%, transparent 100%);
}

.report-sheet-front img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.doctor-report-caption {
  margin: 14px 0 0;
  color: #5B6966;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.home-roles-wrap > h2 {
  max-width: 850px;
  margin: 0 auto 36px;
  text-align: center;
}

.home-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-role-card {
  position: relative;
  min-width: 0;
  padding: 34px 34px 32px;
  border: 1px solid #EADFD2;
  border-radius: 28px;
  background: #F7F3EC;
}

.home-role-card.home-role-caregiver {
  border-color: #D2E2DD;
  background: #E9F1EE;
}

.home-role-index {
  margin: 0 0 12px;
  color: #C2611F;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.home-role-card h3 {
  margin: 0;
  color: #0E4F4B;
  font-size: clamp(22px, 2.5vw, 29px);
  font-weight: 700;
  line-height: 1.55;
  text-wrap: balance;
}

.home-role-card ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.home-role-card li {
  position: relative;
  padding-inline-start: 22px;
  color: #3C4A47;
  font-size: 15px;
  line-height: 1.85;
}

.home-role-card li::before {
  position: absolute;
  inset-inline-start: 0;
  top: .76em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C2611F;
  content: "";
}

.home-roles-wrap .use-chips {
  justify-content: center;
  margin-top: 28px;
}

.home-roles-wrap .use-chips a {
  color: #0E4F4B;
  text-underline-offset: 4px;
}

.final-section .final-panel.has-qr {
  grid-template-columns: minmax(0, 1fr) 190px;
}

.final-panel.has-qr .cta-visual {
  display: none;
}

.cta-qr {
  display: none;
  width: 160px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 18px;
  background: #F7F4EE;
  color: #3C4A47;
  text-align: center;
}

.cta-qr img {
  display: block;
  width: 136px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.cta-qr figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
}

@media (min-width: 1024px) {
  .final-section .final-panel.has-qr .cta-qr {
    display: block;
  }
}

@media (max-width: 1023px) {
  .doctor-report-panel {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
    padding: 48px 40px;
  }

  .doctor-report-art {
    min-height: 360px;
    margin-bottom: -48px;
  }

  .final-section .final-panel.has-qr {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .tour-tabs {
    gap: 5px;
    padding: 6px;
  }

  .tour-tab {
    min-height: 78px;
    padding: 12px 10px;
  }

  .tour-tab-name {
    font-size: 15px;
  }

  .tour-tab-subtitle {
    font-size: 11px;
  }

  .tour-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 32px 26px 26px;
  }

  .tour-phone {
    width: min(260px, 82%);
  }

  .doctor-report-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 38px 30px 32px;
  }

  .doctor-report-art {
    width: min(280px, 76%);
    min-height: 360px;
    margin: 10px auto -40px;
  }

  .home-role-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 639px) {
  .product-tour > .product-tour-wrap,
  .doctor-report-section > .doctor-report-wrap,
  .home-roles-section > .home-roles-wrap {
    width: calc(100% - 32px);
  }

  .product-tour .tour-heading {
    margin-bottom: 24px;
  }

  .product-tour .tour-heading h2,
  .home-roles-wrap > h2 {
    font-size: 30px;
    line-height: 1.45;
  }

  .tour-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tour-tab {
    min-height: 74px;
    padding: 9px 7px;
    text-align: center;
  }

  .tour-tab-name {
    font-size: 13px;
  }

  .tour-tab-subtitle {
    font-size: 10px;
    line-height: 1.45;
  }

  .tour-panels {
    border-radius: 24px;
  }

  .tour-panel {
    padding: 28px 22px 24px;
  }

  .tour-panel h3 {
    font-size: 25px;
  }

  .tour-points {
    gap: 13px;
    margin-top: 20px;
  }

  .tour-points li {
    font-size: 15px;
  }

  .doctor-report-section {
    padding-block: 24px;
  }

  .doctor-report-panel {
    padding: 32px 24px 26px;
    border-radius: 28px;
  }

  .doctor-report-copy h2 {
    font-size: 29px;
  }

  .doctor-report-grid > div {
    padding: 13px 10px 12px 0;
  }

  .doctor-report-grid > div:nth-child(even) {
    padding-inline-start: 10px;
  }

  .doctor-report-grid dd {
    font-size: 13px;
  }

  .doctor-report-art {
    min-height: 330px;
  }

  .home-role-card {
    padding: 28px 24px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-tab {
    transition: none;
  }
}
