/* Homepage only. The Academy and authenticated pages retain their own styles. */
.wellsense-home {
  --home-ink: #20271e;
  --home-green: #233d23;
  --home-muted: #5f665b;
  --home-cream: #fbf9f5;
  --home-sage: #edf2e6;
  --home-brown: #905632;
  --home-line: #dce0d4;
  margin: 0;
  background: var(--home-cream);
  color: var(--home-ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.wellsense-home .public-header,
.wellsense-home .public-footer,
.wellsense-home .public-ready {
  font-family: "DM Sans", Arial, sans-serif;
}
.wellsense-home .public-ready h2,
.wellsense-home .public-ready p,
.wellsense-home .public-ready-button,
.wellsense-home .public-ready-note {
  font-family: "DM Sans", Arial, sans-serif;
}
.wellsense-home .public-ready h2 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 600; }
.wellsense-home .public-ready-note { font-size: 24px; font-weight: 500; }
/* The homepage body text rule is intentionally muted for light sections.  It
   must not leak into the dark CTA/footer, where it creates low-contrast text. */
.wellsense-home .public-ready p {
  color: #fff1df;
}
.wellsense-home .public-ready h2,
.wellsense-home .public-ready-kicker {
  color: #fffaf2;
}
.wellsense-home .public-footer-brand p,
.wellsense-home .public-footer-contact p {
  color: rgba(255, 255, 255, .82);
}
.wellsense-home .public-footer nav a,
.wellsense-home .public-footer-contact a {
  color: rgba(255, 255, 255, .9);
}
/* Store badges are light cards inside the dark footer. Keep their own brand
   lockup dark even though the surrounding contact links are light. */
.wellsense-home .public-footer-contact a.public-store-button,
.wellsense-home .public-footer-contact a.public-store-button span,
.wellsense-home .public-footer-contact a.public-store-button small,
.wellsense-home .public-footer-contact a.public-store-button i {
  color: #234626;
}
.wellsense-home .public-footer-contact a.public-store-button:hover,
.wellsense-home .public-footer-contact a.public-store-button:hover span,
.wellsense-home .public-footer-contact a.public-store-button:hover small,
.wellsense-home .public-footer-contact a.public-store-button:hover i {
  color: #234626;
}
.wellsense-home .public-footer h3 {
  color: #fffaf2;
}
.wellsense-home .public-footer-bottom p {
  color: rgba(255, 255, 255, .78);
}
.wellsense-home .public-logo {
  width: 220px;
  height: 64px;
  overflow: visible;
}
.wellsense-home .public-logo img {
  width: 220px;
  height: 64px;
  object-fit: contain;
}
.wellsense-home *, .wellsense-home *::before, .wellsense-home *::after { box-sizing: border-box; }
.wellsense-home img { display: block; max-width: 100%; object-fit: cover; }
.homepage a { color: inherit; text-decoration: none; }
.wellsense-home a:focus-visible, .wellsense-home button:focus-visible { outline: 3px solid #a76a41; outline-offset: 5px; }
.wellsense-home h1, .wellsense-home h2, .wellsense-home h3, .wellsense-home p { margin: 0; }
.wellsense-home h1, .wellsense-home h2, .wellsense-home h3 { font-family: "DM Sans", Arial, sans-serif; letter-spacing: -.025em; }
.wellsense-home h1, .wellsense-home h2 { font-weight: 500; line-height: 1.08; }
.wellsense-home h1 { font-size: clamp(38px, 3.8vw, 56px); }
.wellsense-home h2 { font-size: clamp(26px, 2.4vw, 34px); }
.wellsense-home h3 { font-size: 17px; line-height: 1.35; font-weight: 500; }
.wellsense-home p { color: var(--home-muted); }
.wellsense-home em { color: var(--home-green); font-weight: 600; }
.home-shell { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.homepage { overflow: clip; }
.homepage section { scroll-margin-top: 100px; }
.home-section { padding: 58px 0; }
.home-kicker { display: block; margin-bottom: 12px; color: #657455; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.home-four-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.home-three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 34px; }
.home-heading-aside { flex: 0 1 450px; max-width: 450px; }
.home-heading-aside p { margin-bottom: 18px; }
.home-heading-aside .home-button { float: right; }
.home-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.wellsense-home .home-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 11px 22px; min-height: 42px; border: 1px solid var(--home-green); border-radius: 100px; background: var(--home-green); color: white; font: 500 14px/1.35 "DM Sans", Arial, sans-serif; text-align: center; transition: background .25s, transform .25s, box-shadow .25s; }
.wellsense-home .home-button:hover { background: #365433; transform: translateY(-2px); box-shadow: 0 6px 16px #233d231f; }
.wellsense-home .home-button-outline { background: transparent; color: var(--home-green); border-color: #83917b; }
.wellsense-home .home-button-outline:hover { background: #e9eedf; }
.home-button span, .home-text-link span { transition: transform .25s; }
.home-button:hover span, .home-text-link:hover span { transform: translateX(4px); }
.home-text-link { display: inline-flex; gap: 12px; font-size: 14px; font-weight: 500; }
.home-skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px; background: white; transform: translateY(-200%); }
.home-skip:focus { transform: none; }
/* Reuse the existing logo, header markup and mobile toggle. */
.home-nav-login { font-size: 14px; }
.wellsense-home .home-nav-cta { padding: 11px 20px; white-space: nowrap; }
.home-hero { position: relative; background: #fcf7ee; }
.home-hero-grid { display: grid; grid-template-columns: 48% 52%; min-height: 570px; }
.home-hero-copy { padding: 48px 34px 48px 0; position: relative; z-index: 2; }
.home-hero-copy .home-kicker { font-size: 11px; color: #78724f; }
.home-hero-copy > p { max-width: 470px; margin: 20px 0; font-size: 16px; line-height: 1.55; color: #41493c; }
.home-hero-trust { display: flex; gap: 14px; align-items: center; margin-top: 28px; }
.home-trust-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #e7ecd9; color: var(--home-green); font-size: 28px; }
.home-hero-trust strong, .home-hero-trust div > span { display: block; }
.home-hero-trust strong { font-size: 16px; font-weight: 600; }
.home-hero-trust div > span { font-size: 13px; color: var(--home-muted); }
.home-hero-visual { position: relative; margin-right: min(-40px, calc((1240px - 100vw) / 2)); }
.home-hero-visual > img { width: 100%; height: 100%; position: absolute; inset: 0; object-position: 50% 60%; }
.home-hero-visual::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #fcf7ee 0, transparent 18%); pointer-events: none; }
.home-handwritten { position: absolute; z-index: 2; top: 34px; left: 26px; font-family: "DM Sans", Arial, sans-serif; font-size: 28px; font-style: italic; font-weight: 500; line-height: 1.05; color: #3f5036; transform: rotate(-12deg); text-align: center; }
.home-hero-card { position: absolute; z-index: 2; right: 10%; bottom: 60px; display: grid; gap: 22px; padding: 28px; border-radius: 16px; background: #fffdf6f5; box-shadow: 0 14px 35px #30241220; animation: home-float 6s ease-in-out infinite; }
.home-hero-card > span { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; }
.home-hero-card i { background: #f0eadd; color: #6b6348; border-radius: 50%; padding: 6px; font-size: 18px; }
.home-trust { background: linear-gradient(110deg, #213b22, #2d4528); padding: 32px 0; color: #eaf0dd; }
.home-trust .home-four-grid { gap: 0; }
.home-trust .home-four-grid > div { display: flex; align-items: center; gap: 18px; padding: 0 22px; border-right: 1px solid #a9ba8b66; }
.home-trust .home-four-grid > div:first-child { padding-left: 0; }
.home-trust .home-four-grid > div:last-child { border: 0; }
.home-trust i { font-size: 36px; }
.home-trust strong, .home-trust span { display: block; }
.home-trust strong { color: #f1f4e8; font-size: 20px; line-height: 1.3; }
.home-trust span { color: #d2dcc5; font-size: 13px; margin-top: 4px; }
.home-programs { position: relative; isolation: isolate; }
.home-programs::before, .home-programs::after { content: ""; position: absolute; z-index: -1; width: 240px; height: 360px; opacity: .2; background: url("../img/footer-leaf.png") center/contain no-repeat; pointer-events: none; }
.home-programs::before { left: -110px; bottom: 0; transform: rotate(-25deg); }
.home-programs::after { right: -100px; bottom: 30px; transform: rotate(150deg); }
.home-program-card, .home-resource-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 5px 15px #24332112; border: 1px solid #e9e9e2; display: flex; flex-direction: column; }
.home-program-card > img { width: 100%; height: 180px; transition: transform .6s; }
.home-program-card > div { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.home-program-card p { font-size: 15px; margin: 10px 0 22px; }
.home-program-card a, .home-resource-card a { font-size: 14px; font-weight: 600; color: #4d633f; margin-top: auto; display: inline-flex; gap: 10px; }
.home-program-card:hover > img, .home-resource-card:hover > img { transform: scale(1.035); }
.home-how { padding-top: 20px; }
.home-how-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: center; }
.home-lifestyle { height: 420px; position: relative; margin-right: 26px; }
.home-lifestyle > img { width: 100%; height: 100%; border-radius: 44px 44px 20px 44px; object-position: 50% 42%; }
.home-image-note { position: absolute; bottom: -16px; right: -46px; padding: 28px 24px; background: #fffaf1; box-shadow: 0 8px 30px #2631210d; border-radius: 5px; font-family: "DM Sans", Arial, sans-serif; font-size: 22px; font-weight: 500; line-height: 1.12; }
.home-image-note span { display: block; margin-top: 20px; color: #879971; font-size: 32px; }
.home-step-grid { list-style: none; margin: 36px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: center; }
.home-step-grid li { position: relative; }
.home-step-grid li:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 26px; color: #a4b092; }
.home-step-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; background: #e8d6c1; border-radius: 50%; color: #2d4c2c; font-size: 31px; }
.home-step-grid li:nth-child(even) .home-step-icon { background: #637451; color: #f0f4dd; }
.home-step-number { display: block; color: #6a7759; font-size: 13px; margin-bottom: 8px; }
.home-step-grid h3 { font-size: 16px; }
.home-step-grid p { font-size: 14px; line-height: 1.45; margin-top: 10px; }
.home-why { padding-top: 36px; }
.home-benefits { margin-top: 42px; gap: 48px; }
.home-benefits article > i { display: grid; place-items: center; width: 58px; height: 58px; background: var(--home-green); color: #e5edcc; border-radius: 50%; margin-bottom: 14px; font-size: 30px; }
.home-benefits p { font-size: 15px; margin-top: 8px; }
.home-community { background: linear-gradient(115deg, #edf2e3, #f2f5eb 50%, #e9efde); padding: 42px 0; }
.home-community-card { display: grid; grid-template-columns: 94px 1fr; gap: 18px; background: white; border-radius: 14px; padding: 16px; }
.home-community-card img { width: 94px; height: 146px; border-radius: 10px; }
.home-community-card h3 { font-size: 17px; }
.home-community-card p { font-size: 14px; margin: 8px 0; }
.home-community-card div > span { font-size: 12px; color: #657455; }
.home-events { padding-bottom: 36px; }
.home-event-card { display: grid; grid-template-columns: 82px 1fr; gap: 18px; padding: 16px; background: white; border: 1px solid #ebece5; border-radius: 22px; box-shadow: 0 4px 8px #26312112; min-width: 0; }
.home-event-date { border-radius: 12px; overflow: hidden; background: #fbf5eb; text-align: center; color: var(--home-brown); }
.home-event-date time { display: block; padding: 8px 4px; }
.home-event-date strong { display: block; font-size: 26px; line-height: 1; }
.home-event-date span { font-size: 12px; text-transform: uppercase; }
.home-event-date img { width: 100%; height: 74px; }
.home-event-content { min-width: 0; display: flex; flex-direction: column; align-items: start; }
.home-event-content h3 { font-size: 17px; overflow-wrap: anywhere; }
.home-event-content p { font-size: 13px; margin: 9px 0 14px; overflow-wrap: anywhere; }
.home-event-content .home-button { font-size: 13px; padding: 8px 16px; margin-top: auto; }
.home-event-state { grid-column: 1/-1; display: flex; gap: 22px; align-items: center; padding: 28px 34px; background: #fff; border: 1px solid #e0e5d5; border-radius: 20px; }
.home-event-state > i { display: grid; place-items: center; width: 66px; height: 66px; flex: 0 0 auto; border-radius: 50%; background: #edf2e3; color: #506b3d; font-size: 28px; }
.home-event-state p { margin-top: 6px; font-size: 15px; }
.home-event-state a { display: inline-block; margin-top: 10px; text-decoration: underline; text-underline-offset: 3px; }
.home-resources { padding-top: 28px; }
.home-resources-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 42px; }
.home-resources .home-section-heading { gap: 16px; margin-bottom: 26px; }
.home-resources h2 { font-size: clamp(28px, 2.6vw, 36px); }
.home-resources .home-button { padding: 10px 18px; font-size: 13px; }
.home-resource-card > img { height: 135px; width: 100%; transition: transform .6s; }
.home-resource-card > div { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.home-resource-card h3 { font-size: 16px; margin-bottom: 18px; }
.home-resource-card a { font-size: 13px; }
.home-connect-card { display: flex; flex-direction: column; align-items: start; gap: 20px; padding: 28px; border-radius: 16px; background: #e8efdf; }
.home-connect-card > i { font-size: 36px; color: #4c6540; }
.home-connect-card h3 { font-family: "DM Sans", Arial, sans-serif; font-size: 21px; font-weight: 500; line-height: 1.2; }
.home-connect-card p { font-size: 14px; }
.home-connect-card .home-button { width: 100%; margin-top: auto; }
.wellsense-home .home-button-light { background: #fff9ef; color: var(--home-ink); border-color: #fff9ef; }
.wellsense-home .home-button-light:hover { background: white; }
/* Visible by default; animations never hide content if JavaScript fails. */
.home-reveal-running { animation: home-reveal .75s both cubic-bezier(.2,.65,.25,1); }
@keyframes home-reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes home-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1150px) {
  .home-nav-login { display: none; }
  .home-how-grid { gap: 54px; }
  .home-resources-grid { gap: 24px; }
  .home-community-card { grid-template-columns: 70px 1fr; gap: 12px; }
  .home-community-card img { width: 70px; }
}
@media (max-width: 900px) {
  .home-shell { width: calc(100% - 48px); }
  .home-hero-grid { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .home-hero-copy { padding-right: 20px; }
  .home-hero-copy > p { font-size: 16px; }
  .home-hero-visual { margin-right: -24px; }
  .home-handwritten { font-size: 30px; left: 18px; }
  .home-hero-card { right: 7%; padding: 20px; bottom: 40px; gap: 16px; }
  .home-hero-card > span { font-size: 13px; }
  .home-four-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }
  .home-trust .home-four-grid { gap: 24px 0; }
  .home-trust .home-four-grid > div:nth-child(3) { padding-left: 0; }
  .home-trust .home-four-grid > div:nth-child(even) { border: 0; }
  .home-program-card > img { height: 210px; }
  .home-how-grid { grid-template-columns: 1fr; gap: 60px; }
  .home-lifestyle { width: min(520px, calc(100% - 40px)); height: 440px; }
  .home-lifestyle > img { object-position: 50% 38%; }
  .home-community .home-three-grid { grid-template-columns: 1fr; }
  .home-community-card { grid-template-columns: 90px 1fr; align-items: center; }
  .home-community-card img { width: 90px; height: 110px; }
  .home-events .home-three-grid { grid-template-columns: 1fr; }
  .home-resources-grid { grid-template-columns: 1fr; }
  .home-connect-card { max-width: none; }
  .home-connect-card .home-button { width: auto; }
}
@media (max-width: 640px) {
  .home-shell { width: calc(100% - 36px); }
  .wellsense-home .public-logo { width: 58px; height: 58px; overflow: hidden; }
  .wellsense-home .public-logo img { width: 58px; height: 58px; }
  .wellsense-home .home-nav-cta { font-size: 12px; padding: 9px 12px; max-width: 145px; white-space: normal; }
  .home-section { padding: 40px 0; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-copy { padding: 34px 0; }
  .wellsense-home h1 { font-size: clamp(36px, 10vw, 50px); }
  .home-hero-copy > p { max-width: 100%; }
  .home-actions { gap: 10px; }
  .wellsense-home .home-actions .home-button { padding: 12px 17px; font-size: 13px; flex: 1 1 auto; }
  .home-hero-visual { height: 375px; margin-inline: -18px; }
  .home-hero-visual::before { background: linear-gradient(#fcf7ee, transparent 18%); }
  .home-hero-card { bottom: 28px; right: 20px; gap: 13px; padding: 20px; }
  .home-handwritten { left: 24px; top: 20px; font-size: 32px; }
  .home-trust { padding: 24px 0; }
  .home-trust .home-four-grid > div { padding: 0 10px; gap: 10px; align-items: start; }
  .home-trust i { font-size: 24px; }
  .home-trust strong { font-size: 16px; }
  .home-trust span { font-size: 12px; }
  .home-section-heading { flex-direction: column; align-items: start; gap: 20px; margin-bottom: 26px; }
  .home-heading-aside { flex: auto; }
  .home-heading-aside .home-button { float: none; }
  .home-program-grid { grid-template-columns: 1fr; gap: 20px; }
  .home-program-card > img { height: 230px; }
  .home-lifestyle { height: 380px; }
  .home-image-note { right: -36px; font-size: 25px; padding: 22px; }
  .home-step-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .home-step-grid li::after { display: none; }
  .home-benefits { gap: 30px 20px; }
  .home-benefits h3 { font-size: 17px; }
  .home-benefits p { font-size: 14px; }
  .home-community h2 { font-size: 36px; }
  .home-resources .home-three-grid { grid-template-columns: 1fr; }
  .home-resource-card > img { height: 200px; }
  .home-event-state { padding: 22px; align-items: start; gap: 14px; }
  .home-event-state > i { width: 42px; height: 42px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .wellsense-home *, .wellsense-home *::before, .wellsense-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
