/* Homepage only. The brand font and established heading scale stay in style.css. */
.cu-site .cu-homepage {
  font-size: 18px;
  line-height: 1.7;
  --cu-home-gap: 24px;
}
.cu-homepage [hidden] { display: none !important; }
.cu-homepage :is(section, nav)[id] { scroll-margin-top: 112px; }
.cu-homepage :is(a, button):focus-visible { outline-offset: 5px; }
.cu-homepage .cu-home-section { padding-block: 60px; }
.cu-site .cu-homepage .cu-section-heading { gap: 28px; margin-bottom: 28px; }
.cu-site .cu-homepage .cu-section-heading > p {
  max-width: 42ch; font-size: 18px; line-height: 1.65; color: #526d70;
}
.cu-site .cu-homepage .cu-eyebrow { font-size: 14px; }
.cu-site .cu-homepage .cu-hero-lead { max-width: 47ch; font-size: 18px; }
.cu-homepage .cu-hero-doctor { margin-top: 25px; padding-top: 20px; }
.cu-site .cu-homepage .cu-hero-doctor > a { width: 40px; height: 40px; flex: none; }
.cu-site .cu-homepage .cu-hero-doctor > img { object-fit: contain; }
.cu-homepage .cu-benefits { padding-block: 25px; }
.cu-site .cu-homepage .cu-benefits strong { font-size: 18px; }
.cu-site .cu-homepage .cu-benefits p span { font-size: 16px; }

/* Small, complete images accompany needs; no giant edge-to-edge cropped banners. */
.cu-home-needs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cu-home-need {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px;
  align-items: center; padding: 17px; min-width: 0;
  border: 1px solid #d8e5df; border-radius: 12px;
  background: #fff; color: var(--cu-deep);
  transition: border-color .18s ease, background-color .18s ease;
}
.cu-home-need-image {
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: 112px; height: 100px; overflow: hidden; border-radius: 7px; background: #f1f5f2;
}
.cu-home-need-image img { width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: contain; }
.cu-home-need-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 10px; }
.cu-home-need-copy > strong { font-size: 23px; line-height: 1.25; font-weight: 400; letter-spacing: -.015em; }
.cu-home-need-copy > span { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; line-height: 1.5; }
.cu-home-need:hover { background: #f4f9f6; border-color: #a6c8ba; color: var(--cu-deep); }
.cu-home-need:hover .cu-home-need-copy > span { color: var(--cu-coral); }
.cu-home-section-link { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 22px 0 0; color: #526d70; }
.cu-homepage .cu-home-section-link .cu-text-link { font-size: 18px; }

/* One compact expert panel, rather than an empty full-screen portrait section. */
.cu-home-expert { padding-block: 0 16px; }
.cu-site .cu-homepage .cu-expert-card,
.cu-site .cu-homepage .cu-expert-card--compact {
  grid-template-columns: 190px minmax(0, 1fr); align-items: center;
  gap: 34px; padding: 30px 36px; margin: 0; background: #edf5f0;
}
.cu-site .cu-homepage .cu-expert-portrait { width: 190px; align-self: center; }
.cu-site .cu-homepage .cu-expert-portrait img { width: 100%; aspect-ratio: 1; height: auto; object-fit: contain; }
.cu-site .cu-homepage .cu-expert-content h2 { max-width: 28ch; margin-bottom: 9px; }
.cu-site .cu-homepage .cu-expert-content p { max-width: 66ch; font-size: 18px; line-height: 1.65; margin-bottom: 12px; }
.cu-site .cu-homepage .cu-expert-content .cu-eyebrow { margin-bottom: 9px; font-size: 14px; }
.cu-site .cu-homepage .cu-expert-content .cu-expert-role { font-size: 16px; margin-bottom: 10px; }
.cu-site .cu-homepage .cu-expert-card-actions { gap: 16px 24px; margin-top: 18px; }
.cu-homepage .cu-expert-card-actions .cu-button { min-height: 50px; padding-block: 12px; }

/* Prices are read from the canonical price helper, including the unit qualifier. */
.cu-home-services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cu-home-gap); }
.cu-home-service {
  position: relative; isolation: isolate; display: flex; min-width: 0; min-height: 350px;
  background: #edf5f1; border: 1px solid #d8e5df; border-radius: 16px; overflow: hidden;
  color: var(--cu-ink); transition: border-color .18s ease, box-shadow .18s ease;
}
.cu-home-service::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg,#f7fbf9 0%,rgba(247,251,249,.98) 48%,rgba(247,251,249,.96) 62%,rgba(247,251,249,.45) 78%,rgba(247,251,249,0) 96%); }
.cu-home-service::after { mask-image: linear-gradient(90deg,#000 62%,transparent 72%),linear-gradient(180deg,#000 72%,transparent 86%); mask-composite: add; }
.cu-home-service-image {
  position: absolute; inset: 0; z-index: 0; display: block;
  min-width: 0; min-height: 0; padding: 0; pointer-events: none;
}
.cu-home-service-image img {
  display: block; width: 100%; height: 100%; min-width: 0; min-height: 0;
  object-fit: contain; object-position: right bottom; border-radius: 0;
}
.cu-home-service-copy { position: relative; z-index: 2; display: flex; flex-direction: column; min-width: 0; width: 67%; padding: 28px 24px; }
.cu-home-service h3 { font-size: 23px; font-weight: 400; line-height: 1.25; margin: 0 0 12px; }
.cu-home-service p { margin: 0 0 20px; font-size: 18px; line-height: 1.6; color: #526d70; }
.cu-home-service-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  margin-top: auto; padding-top: 15px; border-top: 1px solid #e0e9e4;
}
.cu-home-service-bottom > span:first-child { min-width: 0; }
.cu-home-service-bottom small { display: block; font-size: 14px; line-height: 1.5; color: #526d70; margin-bottom: 3px; }
.cu-home-service-bottom strong { display: block; font-size: 22px; line-height: 1.35; font-weight: 700; color: var(--cu-teal); }
.cu-home-service-bottom .cu-circle-arrow { flex: none; width: 36px; height: 36px; }
.cu-home-service:hover { color: var(--cu-ink); border-color: #a6c8ba; box-shadow: 0 7px 22px #164e560c; }
.cu-home-service:hover h3 { color: var(--cu-coral); }
.cu-home-service:hover .cu-circle-arrow { color: #fff; background: var(--cu-teal); border-color: var(--cu-teal); }
.cu-site .cu-homepage .cu-guide-footer { display: flex; margin-top: 22px; gap: 16px 24px; }
.cu-site .cu-homepage .cu-guide-footer > span { font-size: 16px; max-width: 64ch; }
.cu-home-more { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 27px; padding-top: 22px; border-top: 1px solid #e0e9e4; }
.cu-home-more a { display: inline-flex; align-items: baseline; gap: 12px; font-size: 18px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #b6ceca; }
.cu-home-more a:hover { text-decoration-color: currentColor; }
.cu-home-more a > span { flex: none; }

/* Keep the existing accessible two-step interaction and all of its hooks. */
.cu-homepage .cu-planner-section { padding-block: 54px; }
.cu-homepage .cu-planner-layout { gap: 54px; align-items: center; }
.cu-homepage .cu-planner-intro > p:not(.cu-eyebrow) { max-width: 40ch; }
.cu-site .cu-homepage .cu-planner-explainer p { font-size: 16px; }
.cu-homepage .cu-planner-explainer { margin-top: 22px; padding-top: 20px; }
.cu-homepage .cu-planner-pricelink { font-size: 16px; margin-top: 22px; }
.cu-homepage .cu-planner { padding: 28px; box-shadow: none; }
.cu-site .cu-homepage .cu-planner-options > label { padding: 12px 14px; }
.cu-site .cu-homepage .cu-planner-result-note { font-size: 18px; }
.cu-site .cu-homepage .cu-planner-price-note { font-size: 14px; }

/* Useful articles stay reachable without repeating them on the homepage. */
.cu-home-reading-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cu-home-article {
  display: grid; grid-template-rows: 130px minmax(0, 1fr); min-width: 0;
  border: 1px solid #d8e5df; border-radius: 10px; overflow: hidden; background: #fff;
}
.cu-home-article-image { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: 130px; padding: 8px; background: #f2f6f3; }
.cu-home-article-image img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.cu-home-article-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; gap: 18px; }
.cu-home-article-copy > strong { font-size: 22px; font-weight: 400; line-height: 1.3; color: var(--cu-deep); }
.cu-home-article-copy > span { display: inline-flex; align-items: center; gap: 14px; margin-top: auto; font-size: 14px; line-height: 1.5; }
.cu-home-article:hover { border-color: #a6c8ba; background: #f8fbf9; }
.cu-home-article:hover .cu-home-article-copy > strong { color: var(--cu-coral); }
.cu-home-visit { background: #edf5f0; padding-block: 40px; }
.cu-home-visit-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.cu-home-visit .cu-eyebrow { margin-bottom: 13px; }
.cu-home-visit h2 { margin-bottom: 14px; }
.cu-home-visit p { max-width: 48ch; font-size: 18px; line-height: 1.65; margin-bottom: 17px; }
.cu-home-visit-reviews { border-left: 1px solid #cadfd2; padding-left: 44px; }
.cu-home-visit-reviews > div { display: flex; flex-wrap: wrap; gap: 13px; }
.cu-home-review-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px solid #b9d2c5; border-radius: 7px; padding: 11px 16px;
  font-size: 16px; line-height: 1.5; background: #fff; min-height: 46px;
}
.cu-home-review-link:hover { border-color: var(--cu-teal); color: var(--cu-teal); }

@media (max-width: 1120px) {
  .cu-home-needs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cu-home-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cu-home-reading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cu-home-article { grid-template-columns: 126px minmax(0, 1fr); grid-template-rows: auto; }
  .cu-home-article-image { height: 100%; min-height: 150px; }
  .cu-home-article-copy { padding: 20px 17px; }
  .cu-homepage .cu-planner-layout { gap: 30px; }
  .cu-home-visit-layout { gap: 30px; }
  .cu-home-visit-reviews { padding-left: 28px; }
  .cu-home-service-copy { width: 67%; padding: 25px 22px; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .cu-home-services-grid { grid-template-columns: 1fr; }
  .cu-home-service-copy { width: 60%; }
}
@media (max-width: 760px) {
  .cu-homepage .cu-home-section { padding-block: 40px; }
  .cu-site .cu-homepage .cu-section-heading { margin-bottom: 23px; }
  .cu-site .cu-homepage .cu-section-heading > p { margin-top: 14px; max-width: 42ch; font-size: 18px; }
  .cu-homepage .cu-section-heading > p br { display: initial; }
  .cu-homepage .cu-benefits { padding-block: 22px; }
  .cu-homepage .cu-benefits p { display: block; }
  .cu-homepage .cu-benefits p span { margin-top: 2px; }
  .cu-homepage .cu-benefit-number { font-size: 14px; line-height: 1.9; }
  .cu-homepage .cu-hero-lead { margin-bottom: 25px; }
  .cu-homepage .cu-hero-doctor { margin-top: 22px; padding-top: 18px; gap: 12px; }
  .cu-homepage .cu-hero-doctor strong { line-height: 1.4; }
  .cu-homepage .cu-hero-doctor div > span { margin-top: 3px; }
  .cu-home-needs-grid { gap: 14px; }
  .cu-home-need { grid-template-columns: 80px minmax(0, 1fr); padding: 14px; gap: 13px; }
  .cu-home-need-image { width: 80px; height: 85px; }
  .cu-home-need-copy > strong { font-size: 21px; }
  .cu-home-section-link { display: block; font-size: 18px; margin-top: 20px; }
  .cu-home-section-link .cu-text-link { margin-top: 7px; }
  .cu-home-expert { padding-bottom: 0; }
  .cu-site .cu-homepage .cu-expert-card,
  .cu-site .cu-homepage .cu-expert-card--compact {
    grid-template-columns: 94px minmax(0, 1fr); gap: 5px 18px; padding: 24px;
  }
  .cu-site .cu-homepage .cu-expert-portrait { width: 94px; grid-column: 1; grid-row: 1 / 4; align-self: start; }
  .cu-site .cu-homepage .cu-expert-content { display: contents; }
  .cu-site .cu-homepage .cu-expert-content .cu-eyebrow { grid-column: 2; grid-row: 1; margin-bottom: 2px; font-size: 14px; }
  .cu-site .cu-homepage .cu-expert-content h2 { grid-column: 2; grid-row: 2; margin-bottom: 2px; }
  .cu-site .cu-homepage .cu-expert-content .cu-expert-role { grid-column: 2; grid-row: 3; font-size: 16px; margin-bottom: 0; }
  .cu-site .cu-homepage .cu-expert-content > p:not(.cu-eyebrow):not(.cu-expert-role) { grid-column: 1 / -1; font-size: 18px; margin: 13px 0 0; }
  .cu-site .cu-homepage .cu-expert-card-actions { grid-column: 1 / -1; gap: 16px 22px; margin-top: 15px; }
  .cu-site .cu-homepage .cu-expert-card-actions > .cu-button { width: 100%; }
  .cu-home-services-grid { grid-template-columns: 1fr; gap: 18px; }
  .cu-home-service-copy { width: 66%; padding: 26px 24px; }
  .cu-home-service::after { background: linear-gradient(90deg,#f7fbf9 0%,rgba(247,251,249,.98) 52%,rgba(247,251,249,.94) 64%,rgba(247,251,249,0) 90%); }
  .cu-home-service h3 { font-size: 21px; }
  .cu-home-service p { font-size: 18px; }
  .cu-site .cu-homepage .cu-guide-footer { flex-wrap: wrap; align-items: flex-start; }
  .cu-site .cu-homepage .cu-guide-footer > span { max-width: none; font-size: 14px; }
  .cu-site .cu-homepage .cu-guide-footer > .cu-text-link { font-size: 16px; margin: 0; padding: 0; }
  .cu-home-more { gap: 15px 24px; margin-top: 23px; padding-top: 20px; }
  .cu-homepage .cu-planner-section { padding-block: 40px; }
  .cu-homepage .cu-planner-layout { gap: 26px; }
  .cu-site .cu-homepage .cu-planner-intro > p:not(.cu-eyebrow) { font-size: 18px; max-width: none; }
  .cu-homepage .cu-planner { padding: 24px 20px; }
  .cu-homepage .cu-planner-explainer { display: none; }
  .cu-homepage .cu-planner-pricelink { margin-top: 17px; }
  .cu-site .cu-homepage .cu-planner-options > label { padding: 12px; }
  .cu-home-reading-grid { gap: 16px; }
  .cu-home-article { grid-template-columns: 100px minmax(0, 1fr); }
  .cu-home-article-image { min-height: 132px; }
  .cu-home-article-copy > strong { font-size: 21px; }
  .cu-home-visit { padding-block: 34px; }
  .cu-home-visit-layout { grid-template-columns: 1fr; gap: 26px; }
  .cu-home-visit-reviews { border-left: 0; border-top: 1px solid #cadfd2; padding: 24px 0 0; }
  .cu-home-service { flex-direction: column; min-height: 0; padding: 0; }
  .cu-home-service::after { display: none; }
  .cu-home-service-image { position: relative; inset: auto; width: 100%; aspect-ratio: 3/2; flex: none; }
  .cu-home-service-copy { width: 100%; padding: 23px 22px; background: #f7fbf9; }
}
@media (max-width: 580px) {
  .cu-home-needs-grid, .cu-home-services-grid, .cu-home-reading-grid { grid-template-columns: 1fr; }
  .cu-home-need { grid-template-columns: 94px minmax(0, 1fr); gap: 17px; padding: 14px; }
  .cu-home-need-image { width: 94px; height: 84px; }
  .cu-home-need-copy { gap: 9px; }
  .cu-home-service { flex-direction: column; min-height: 0; padding: 0; }
  .cu-home-service::after { display: none; }
  .cu-home-service-image { position: relative; inset: auto; width: 100%; aspect-ratio: 3/2; flex: none; }
  .cu-home-service-copy { display: flex; width: 100%; padding: 23px 22px; background: #f7fbf9; }
  .cu-home-service h3 { margin-bottom: 10px; }
  .cu-home-service p { margin-bottom: 0; line-height: 1.55; }
  .cu-home-service-bottom { margin-top: 18px; padding-top: 15px; }
  .cu-home-service-bottom > span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .cu-home-service-bottom small { margin-bottom: 0; }
  .cu-home-service-bottom strong { font-size: 21px; }
  .cu-home-service-bottom .cu-circle-arrow { width: 32px; height: 32px; }
  .cu-home-article { grid-template-columns: 105px minmax(0, 1fr); }
  .cu-home-article-copy { padding: 18px; gap: 12px; }
}
@media (max-width: 380px) {
  .cu-site .cu-homepage .cu-expert-card,
  .cu-site .cu-homepage .cu-expert-card--compact { grid-template-columns: 72px minmax(0, 1fr); padding: 20px; gap: 5px 14px; }
  .cu-site .cu-homepage .cu-expert-portrait { width: 72px; }
  .cu-home-service-copy { padding: 22px 19px; }
  .cu-home-service-bottom { gap: 10px; }
  .cu-home-article { grid-template-columns: 88px minmax(0, 1fr); }
  .cu-home-article-copy { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cu-homepage :is(.cu-home-need, .cu-home-service) { transition: none; }
}
@media print {
  .cu-home-needs-grid, .cu-home-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cu-homepage :is(.cu-home-need, .cu-home-service, .cu-expert-card, .cu-home-article) { break-inside: avoid; }
  .cu-home-service { min-height: 0; }
  .cu-home-service::after, .cu-home-service-image { display: none; }
  .cu-home-service-copy { width: 100%; }
}
