/* HEARTs landing â€” reference UI (white nav, photo hero, program cards) */

:root {
  --role-accent: #7ac943;
  --role-accent-dark: #0b5c3a;
  --role-accent-mid: #1a8f5a;
  --role-accent-light: #a8e063;
  --role-accent-soft: #eef8e6;
  --role-text-muted: #5a6b63;
  --navy: #0a3d2e;
  --navy-deep: #062820;
  --topbar-bg: #0c3d2e;
  --footer-bg: #0b3d2e;
  --footer-bottom: #083226;
  --lime: #b8e86a;
  --white: #ffffff;
  --text-main: #12352b;
  --text-muted: var(--role-text-muted);
  --border: rgba(12, 61, 46, 0.12);
  --input-bg: #f4faf6;
  --page-bg: #f7faf8;
  --shadow: 0 14px 40px rgba(8, 50, 38, 0.1);
  --shadow-soft: 0 8px 24px rgba(8, 50, 38, 0.07);
  --font-ui: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --nav-h: 4.85rem;
  --header-offset: var(--nav-h);
  --radius: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: min(1120px, calc(100% - 2.5rem));
}

html {
  font-size: 106.25%;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.mho-landing {
  font-family: var(--font-ui);
  background: #ffffff;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

body.mho-landing.login-modal-open {
  overflow: hidden;
}

body.mho-landing.login-modal-open .landing-nav {
  border-bottom-color: transparent;
  box-shadow: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

.landing-glass {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pills */
.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-pill--lime {
  background: var(--lime);
  color: var(--navy);
}

.landing-pill--mint {
  background: #e8f8e4;
  color: #2f9e4a;
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-pill--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(10, 61, 46, 0.22);
}

.btn-pill--primary:hover,
.btn-pill--primary:focus-visible {
  background: var(--role-accent-dark);
  transform: translateY(-1px);
}

.btn-pill--outline {
  background: var(--white);
  color: var(--navy);
  border-color: rgba(10, 61, 46, 0.28);
}

.btn-pill--outline:hover,
.btn-pill--outline:focus-visible {
  border-color: var(--role-accent-mid);
  color: var(--role-accent-dark);
}

.btn-pill--ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(10, 61, 46, 0.22);
}

.btn-pill--soft {
  background: var(--role-accent-soft);
  color: var(--role-accent-dark);
}

/* Nav */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  height: var(--nav-h);
  min-height: var(--nav-h);
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(12, 61, 46, 0.08);
  box-shadow: 0 4px 18px rgba(8, 50, 38, 0.05);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.landing-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(12, 61, 46, 0.1);
  box-shadow: 0 8px 28px rgba(8, 50, 38, 0.1);
}

.landing-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
  justify-self: start;
}

.landing-nav__logo {
  width: 5.75rem;
  height: 3.85rem;
  border-radius: 0;
  overflow: visible;
  flex-shrink: 0;
  border: none;
  background: transparent;
}

.landing-nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.landing-nav__name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.landing-nav__tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.25;
  max-width: 16rem;
}

.landing-nav__center {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  justify-self: center;
}

.landing-nav__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  justify-self: end;
}

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.landing-nav__links a {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.landing-nav__links a:hover,
.landing-nav__links a:focus-visible {
  color: var(--role-accent-dark);
  background: rgba(122, 201, 67, 0.16);
}

.landing-nav__links a:active {
  background: rgba(122, 201, 67, 0.28);
}

.landing-nav__links a.is-active {
  color: var(--role-accent-dark);
  font-weight: 700;
  background: rgba(122, 201, 67, 0.22);
}

.landing-nav__links a.is-active::after {
  display: none;
}

.landing-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--role-accent-soft);
}

.landing-lang__link {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  color: var(--role-accent-dark);
}

.landing-lang__link:hover,
.landing-lang__link:focus-visible {
  background: rgba(255, 255, 255, 0.7);
}

.landing-lang__link.is-active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(8, 50, 38, 0.08);
}

.landing-lang--drawer {
  margin: 0.5rem 0 0.75rem;
  width: fit-content;
}

.landing-nav__cta,
.landing-nav__drawer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 1.05rem;
  border: none;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(10, 61, 46, 0.28);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.landing-nav__cta {
  display: none;
}

.landing-nav__cta:hover,
.landing-nav__cta:focus-visible,
.landing-nav__drawer-cta:hover,
.landing-nav__drawer-cta:focus-visible {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.landing-nav__menu-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.landing-nav__drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 40, 32, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.landing-nav__drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.landing-nav__drawer[hidden] {
  display: none !important;
}

.landing-nav__drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(20rem, 88vw);
  height: 100%;
  padding: calc(var(--header-offset) + 0.5rem) 1.25rem 1.5rem;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: auto;
}

.landing-nav__drawer.is-open .landing-nav__drawer-panel {
  transform: none;
}

.nav-drawer-link {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 650;
  color: var(--text-main);
}

.nav-drawer-link:hover,
.nav-drawer-link:focus-visible,
.nav-drawer-link.is-active {
  background: var(--role-accent-soft);
  color: var(--role-accent-dark);
}

.landing-nav__drawer-cta {
  margin-top: 0.5rem;
  justify-content: center;
}

@media (min-width: 960px) {
  .landing-nav {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .landing-nav__center {
    display: flex;
  }

  .landing-nav__cta {
    display: inline-flex;
  }

  .landing-nav__menu-btn {
    display: none;
  }
}

@media (max-width: 720px) {
  .landing-nav__tag {
    display: none;
  }
}

/* Main */
main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-offset);
}

.landing-section {
  scroll-margin-top: calc(var(--header-offset) + 0.75rem);
}

.landing-information {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.25rem 0 3.5rem;
}

.landing-information__intro {
  text-align: center;
  margin-bottom: 2rem;
}

.landing-information__intro .landing-pill {
  margin-bottom: 0.15rem;
}

.landing-information__intro h2 {
  margin: 0.75rem 0 0.65rem;
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: #1a2e28;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.landing-information__intro p {
  color: #6b7c74;
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 36rem;
  margin: 0 auto;
}

.landing-information__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.landing-information__layout > .landing-fb-panel__embed,
.landing-information__layout > .landing-fb-promo,
.landing-information__layout > .landing-split__why,
.landing-information__layout > .landing-split__devices,
.landing-information__layout > .landing-card-panel {
  min-width: 0;
}

.landing-information__layout > .landing-fb-panel__embed {
  width: 100%;
  max-width: 500px;
  min-width: 0;
  height: auto;
  overflow: hidden;
  justify-self: start;
}

.landing-information__layout > .landing-split__why > h3 {
  margin: 0.55rem 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a2e28;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.landing-information__layout > .landing-split__why .landing-split__lead {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.landing-information__layout > .landing-split__devices {
  margin-top: 0;
  min-height: 18rem;
}

.landing-information__layout > .landing-fb-promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.landing-information__layout > .landing-fb-promo .landing-fb-promo__title,
.landing-information__layout > .landing-fb-promo .landing-fb-promo__text,
.landing-information__layout > .landing-fb-promo .landing-fb-promo__list {
  width: 100%;
}

.landing-information__layout > .landing-fb-promo .landing-fb-promo__cta {
  margin-top: 1rem;
  align-self: flex-start;
  width: fit-content;
}

.landing-information__layout > .landing-card-panel {
  width: 100%;
}

.landing-information__layout > .landing-card-panel .btn-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}

@media (min-width: 900px) {
  .landing-information {
    width: min(1360px, calc(100% - 2.5rem));
  }

  .landing-information__layout {
    grid-template-columns: minmax(280px, 500px) minmax(0, 1fr);
    grid-template-areas:
      "embed promo"
      "embed card"
      "why devices";
    gap: 1.5rem 2rem;
    align-items: start;
  }

  .landing-information__layout > .landing-fb-panel__embed {
    grid-area: embed;
    align-self: start;
    justify-self: start;
    width: 100%;
    max-width: 500px;
    height: 700px;
    overflow: hidden;
  }

  .landing-information__layout > .landing-fb-panel__embed iframe {
    display: block;
    width: 100% !important;
    max-width: 500px;
    height: 700px !important;
    min-height: 700px;
  }

  .landing-information__layout > .landing-fb-promo {
    grid-area: promo;
  }

  .landing-information__layout > .landing-card-panel {
    grid-area: card;
  }

  .landing-information__layout > .landing-split__why {
    grid-area: why;
  }

  .landing-information__layout > .landing-split__devices {
    grid-area: devices;
  }
}

.landing-fb-promo {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.landing-fb-promo__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-fb-promo__badge i {
  font-size: 0.9rem;
}

.landing-fb-promo__title {
  margin: 0.9rem 0 0.55rem;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #15233a;
}

.landing-fb-promo__text {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #5b6778;
}

.landing-fb-promo__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
}

.landing-fb-promo__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #243447;
}

.landing-fb-promo__icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(24, 119, 242, 0.1);
  color: #1877f2;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.landing-fb-promo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  background: #1877f2;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.landing-fb-promo__cta:hover,
.landing-fb-promo__cta:focus-visible {
  background: #1464d4;
  transform: translateY(-1px);
}

.landing-fb-panel {
  background: var(--white);
  border: 1px solid rgba(12, 61, 46, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.landing-fb-panel__embed {
  width: 100%;
  max-width: 500px;
  padding: 0;
  margin: 0;
  height: 700px;
  min-height: 700px;
  overflow: hidden;
  line-height: 0;
  background: var(--white);
  border: 1px solid rgba(12, 61, 46, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.landing-fb-panel__embed iframe {
  display: block;
  width: 100% !important;
  max-width: 500px;
  height: 700px !important;
  border: 0;
  border-radius: inherit;
  background: #fff;
}

.landing-information__contact-stack {
  display: grid;
  gap: 0.85rem;
}

.landing-card-panel--compact {
  padding: 1rem 1.05rem;
}

.landing-card-panel--compact .landing-split__fb-head {
  margin-bottom: 0.75rem;
}

.landing-card-panel--compact .landing-split__fb-head img {
  width: 2.4rem;
  height: 2.4rem;
}

.landing-card-panel--compact > p {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin: 0.45rem 0 0.75rem;
  line-height: 1.45;
}

.landing-card-panel--compact .btn-pill {
  display: inline-flex;
  width: fit-content !important;
  max-width: 100%;
  justify-content: center;
  padding: 0.62rem 1.05rem;
  font-size: 0.86rem;
}

.landing-card-panel--ask {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.landing-card-panel--ask .landing-card-panel__ask-head,
.landing-card-panel--ask > p {
  width: 100%;
}

.landing-card-panel--compact .landing-contact-list {
  gap: 0.55rem;
}

.landing-card-panel--compact .landing-contact-list li {
  font-size: 0.84rem;
}

.landing-card-panel--compact h3 {
  margin-bottom: 0.55rem;
  font-size: 0.98rem;
}

@media (min-width: 960px) {
  .landing-information__layout > .landing-split__devices {
    max-width: none;
  }
}

/* Hero — photo on right, soft white fade like MEDTRACK */
.landing-hero {
  position: relative;
  min-height: calc(100svh - var(--header-offset));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}

.landing-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 40%;
  z-index: 0;
  overflow: hidden;
}

.landing-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 10%,
    #000 28%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 10%,
    #000 28%,
    #000 100%
  );
}

.landing-hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.75) 12%,
    rgba(255, 255, 255, 0.25) 28%,
    rgba(255, 255, 255, 0) 48%
  );
}

.landing-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 48%);
  max-width: 42rem;
  margin: 0;
  padding: 3.5rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  padding-left: clamp(3.5rem, 11vw, 7.5rem);
  align-self: flex-start;
  flex: 1;
  display: flex;
  align-items: center;
}

.landing-hero__copy {
  max-width: 40rem;
}

.landing-hero__title {
  margin: 0 0 1rem;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.1rem, 4.2vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--navy);
}

.landing-hero__title-accent {
  color: var(--role-accent);
}

.landing-hero__subtitle {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #5a6b63;
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.landing-hero .btn-pill--outline {
  background: #ffffff;
  border-color: rgba(12, 61, 46, 0.22);
  box-shadow: none;
}

.landing-hero__features {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  transform: translateY(50%);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(8, 50, 38, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.landing-hero__feature-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.75rem;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(12, 61, 46, 0.08);
  box-shadow: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.landing-hero__feature-card:last-child {
  border-bottom: none;
}

.landing-hero__feature-icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f8e6;
  color: #2f9e4a;
  flex-shrink: 0;
  font-size: 1.1rem;
}

@media (min-width: 640px) {
  .landing-hero__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.65rem 0.5rem;
  }

  .landing-hero__feature-card {
    border-bottom: none;
    border-right: 1px solid rgba(12, 61, 46, 0.08);
    padding: 0.95rem 1rem;
  }

  .landing-hero__feature-card:nth-child(2n) {
    border-right: none;
  }
}

@media (min-width: 960px) {
  .landing-hero__media {
    left: 38%;
  }

  .landing-hero__inner {
    width: min(100%, 46%);
    max-width: 44rem;
    padding: 4rem clamp(1.25rem, 4vw, 2.75rem) 2.75rem;
    padding-left: clamp(5rem, 12vw, 8.5rem);
  }

  .landing-hero__features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0.55rem 0.35rem;
  }

  .landing-hero__feature-card {
    border-right: 1px solid rgba(12, 61, 46, 0.08);
  }

  .landing-hero__feature-card:nth-child(2n) {
    border-right: 1px solid rgba(12, 61, 46, 0.08);
  }

  .landing-hero__feature-card:last-child {
    border-right: none;
  }
}

@media (max-width: 959px) {
  .landing-hero__media {
    left: 0;
    opacity: 0.28;
  }

  .landing-hero__media img {
    -webkit-mask-image: none;
    mask-image: none;
    object-position: center 35%;
  }

  .landing-hero__shade {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.9) 45%,
      rgba(255, 255, 255, 0.55) 72%,
      rgba(255, 255, 255, 0.2) 100%
    );
  }

  .landing-hero__inner {
    width: 100%;
    max-width: none;
    padding: 3.25rem clamp(1rem, 4vw, 2.5rem) 2.25rem;
  }
}

@media (max-width: 639px) {
  .landing-hero__media {
    opacity: 0.22;
  }
}

/* PhilPEN teaser */
.landing-philpen-teaser {
  width: var(--container);
  margin: 2.75rem auto 0;
}

.landing-philpen-teaser__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.5rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.landing-philpen-teaser__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--role-accent-soft);
  color: var(--role-accent-dark);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.landing-philpen-teaser__copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.landing-philpen-teaser__copy h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.landing-philpen-teaser__copy p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.landing-philpen-teaser__privacy {
  margin-top: 0.35rem;
  font-size: 0.82rem !important;
  color: var(--role-accent-dark) !important;
}

/* Programs — matches MEDTRACK reference card row */
.landing-programs {
  width: 100%;
  margin: 0;
  padding: 4.5rem 0 3.5rem;
  background: #ffffff;
}

.landing-programs__intro,
.landing-about__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  width: min(40rem, calc(100% - 2.5rem));
}

.landing-programs__intro .landing-pill {
  margin-bottom: 0.15rem;
}

.landing-programs__intro h2,
.landing-about__intro h2,
.landing-split__why > h2,
.landing-split__announce-title {
  margin: 0.75rem 0 0.65rem;
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: #1a2e28;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.landing-programs__intro p,
.landing-about__intro p,
.landing-split__lead {
  color: #6b7c74;
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.landing-programs__grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.landing-program-card {
  background: #ffffff;
  border: 1px solid #e8ece9;
  border-radius: 16px;
  padding: 2.1rem 1.4rem 1.55rem;
  box-shadow: 0 6px 20px rgba(16, 40, 32, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  min-height: 100%;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.landing-program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(16, 40, 32, 0.09);
  border-color: #d7e5db;
}

.landing-program-card__icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f8e6;
  color: #2f9e4a;
  font-size: 1.65rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.landing-program-card__icon i {
  display: block;
  line-height: 1;
}

.landing-program-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a2e28;
  line-height: 1.3;
  margin: 0;
}

.landing-program-card p {
  color: #6b7c74;
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

.landing-program-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  color: #3dbe5c;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.landing-program-card__link:hover,
.landing-program-card__link:focus-visible {
  color: var(--role-accent-dark);
}

.landing-program-card__link .bi-arrow-right {
  transition: transform 0.2s var(--ease);
  font-size: 0.95rem;
}

.landing-program-card__link:hover .bi-arrow-right,
.landing-program-card__link:focus-visible .bi-arrow-right {
  transform: translateX(3px);
}

@media (min-width: 640px) {
  .landing-programs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .landing-programs__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
  }
}

/* Split: why + doctor lottie + announcements */
.landing-split {
  width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 0 2.5rem;
  display: grid;
  gap: 2rem;
  align-items: start;
}

.landing-split__why > .landing-pill,
.landing-split__announce > .landing-pill {
  margin-bottom: 0.15rem;
}

.landing-split__checks {
  margin: 1.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.landing-split__checks li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-main);
  font-size: 0.94rem;
  line-height: 1.5;
}

.landing-split__check {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #3dbe5c;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  margin-top: 0.05rem;
}

.landing-split__devices {
  position: relative;
  margin-top: 0.35rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(8, 50, 38, 0.1);
  background: linear-gradient(165deg, #f4faf6 0%, #e8f0ec 100%);
  min-height: 14rem;
  display: grid;
  place-items: center;
  padding: 0.85rem;
}

.landing-split__lottie {
  width: min(100%, 22rem);
  aspect-ratio: 1 / 1;
}

.landing-split__lottie svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.landing-announce-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.1rem 0 0.85rem;
}

.landing-announce-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: #f3f6f4;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.landing-announce-item:hover,
.landing-announce-item:focus-visible {
  background: #e9f8e6;
  transform: translateX(2px);
}

.landing-announce-item__icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 10px;
  background: #e9f8e6;
  color: #2f9e4a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.landing-announce-item__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.landing-announce-item__copy strong {
  font-size: 0.92rem;
  color: var(--navy);
}

.landing-announce-item__copy span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.landing-announce-item__chevron {
  color: var(--role-accent-mid);
  flex-shrink: 0;
}

.landing-announce-viewall {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #3dbe5c;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.landing-announce-viewall:hover,
.landing-announce-viewall:focus-visible {
  color: var(--role-accent-dark);
}

.landing-announce-viewall .bi-arrow-right {
  transition: transform 0.2s var(--ease);
}

.landing-announce-viewall:hover .bi-arrow-right {
  transform: translateX(3px);
}

.landing-card-panel {
  background: var(--white);
  border: 1px solid rgba(12, 61, 46, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.landing-split__fb-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.landing-split__fb-head img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.landing-split__fb-head strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
}

.landing-split__fb-head span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .landing-split {
    grid-template-columns: 1.05fr 0.9fr 1fr;
    gap: 1.75rem 2rem;
    align-items: center;
  }

  .landing-split__devices {
    margin-top: 1.25rem;
  }
}

/* Connect: FB + contact + messenger */
.landing-connect {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 3rem;
}

.landing-connect__grid {
  display: grid;
  gap: 1.1rem;
}

.landing-connect .landing-card-panel > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 1rem;
}

.landing-connect .btn-pill {
  width: 100%;
}

@media (min-width: 800px) {
  .landing-connect__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.landing-card-panel h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.landing-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.landing-contact-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.landing-contact-list i {
  color: var(--role-accent-mid);
  margin-top: 0.2rem;
}

.landing-contact-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.82rem;
}

.landing-contact-list a {
  color: var(--role-accent-dark);
  text-decoration: none;
  font-weight: 600;
}

.landing-card-panel__ask-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.landing-card-panel__ask-head span {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--role-accent-soft);
  color: #0084ff;
  display: grid;
  place-items: center;
}

.landing-card-panel--ask p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

/* About */
.landing-about {
  width: var(--container);
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.landing-about__grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 0;
}

.landing-about__aside {
  display: grid;
  gap: 1rem;
}

.landing-about__card {
  background: var(--white);
  border: 1px solid rgba(12, 61, 46, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.landing-about__card--goals {
  height: 100%;
}

.landing-about__card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.landing-about__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--role-accent-soft);
  color: var(--role-accent-dark);
  display: grid;
  place-items: center;
}

.landing-about__card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.landing-about__card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.landing-about__goals {
  list-style: decimal;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.landing-about__goals li {
  padding-left: 0.2rem;
}

@media (min-width: 800px) {
  .landing-about__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    align-items: stretch;
  }

  .landing-about__card--goals {
    display: flex;
    flex-direction: column;
  }

  .landing-about__card--goals .landing-about__goals {
    flex: 1;
  }
}

/* Footer */
.landing-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2.5rem;
  position: relative;
}

.landing-footer__wave {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  transform: translateY(-99%);
  line-height: 0;
  pointer-events: none;
}

.landing-footer__wave svg {
  display: block;
  width: 100%;
  height: clamp(2.5rem, 6vw, 4.5rem);
}

.landing-footer__wave path {
  fill: var(--footer-bg);
}

.landing-footer__body {
  width: var(--container);
  margin: 0 auto;
  padding: 2.25rem 0 0;
}

.landing-footer__grid {
  display: grid;
  gap: 1.75rem 1.25rem;
  padding-bottom: 2rem;
}

.landing-footer__brand-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.85rem;
}

.landing-footer__logos {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.landing-footer__logo {
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
}

.landing-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-footer__logo--hearts {
  width: 6rem;
  height: 4rem;
  border-radius: 0.45rem;
  background: transparent;
  overflow: visible;
}

.landing-footer__logo--hearts img {
  object-fit: contain;
}

.landing-footer__brand-text {
  min-width: 0;
}

.landing-footer__brand-text strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--white);
}

.landing-footer__brand-text span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.68);
}

.landing-footer__tagline {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
  max-width: 22rem;
}

.landing-footer__social {
  display: flex;
  gap: 0.45rem;
}

.landing-footer__social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}

.landing-footer__social-btn:hover,
.landing-footer__social-btn:focus-visible {
  background: rgba(184, 232, 106, 0.22);
}

.landing-footer__heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.85rem;
}

.landing-footer__list,
.landing-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.landing-footer__list a,
.landing-footer__list-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.landing-footer__list a:hover,
.landing-footer__list a:focus-visible,
.landing-footer__list-btn:hover,
.landing-footer__list-btn:focus-visible {
  color: var(--lime);
}

.landing-footer__contact li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

.landing-footer__contact i {
  color: var(--lime);
  margin-top: 0.2rem;
}

.landing-footer__contact strong {
  display: block;
  color: var(--white);
  font-size: 0.78rem;
}

.landing-footer__contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.landing-footer__contact a:hover,
.landing-footer__contact a:focus-visible {
  color: var(--lime);
}

.landing-footer__newsletter-text {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.85rem;
}

.landing-footer__newsletter-form {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.25rem 0.25rem 0.25rem 0.9rem;
}

.landing-footer__newsletter-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}

.landing-footer__newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.landing-footer__newsletter-btn {
  width: 2.45rem;
  height: 2.45rem;
  border: none;
  border-radius: 50%;
  background: var(--role-accent);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.landing-footer__newsletter-btn:hover,
.landing-footer__newsletter-btn:focus-visible {
  background: var(--lime);
}

.landing-footer__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.1rem 0 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  text-align: center;
}

.landing-footer__copy {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 720px) {
  .landing-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .landing-footer__grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
  }
}

/* Reveals */
.landing-animations-ready .landing-reveal:not(.is-visible),
.landing-animations-ready .landing-reveal-heading:not(.is-visible) > * {
  opacity: 0;
  transform: translateY(14px);
}

.landing-animations-ready .landing-reveal.is-visible,
.landing-animations-ready .landing-reveal-heading.is-visible > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.landing-animations-ready .landing-reveal-heading.is-visible > *:nth-child(2) {
  transition-delay: 0.06s;
}

.landing-animations-ready .landing-reveal-heading.is-visible > *:nth-child(3) {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .landing-nav,
  .landing-nav__drawer,
  .landing-nav__drawer-panel,
  .landing-login-modal,
  .landing-login-modal__backdrop,
  .landing-login-modal__dialog,
  .btn-pill,
  .landing-program-card,
  .landing-program-card__link .bi-arrow-right {
    transition: none !important;
  }

  .landing-animations-ready .landing-reveal:not(.is-visible),
  .landing-animations-ready .landing-reveal-heading:not(.is-visible) > *,
  .landing-animations-ready .landing-footer.landing-reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}
/* Login modal */
/* Login modal — AETIS-style full-viewport blur overlay */
.landing-login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  visibility: hidden;
  pointer-events: none;
  background: transparent;
  transition: none;
}

.landing-login-modal.is-open {
  visibility: visible;
  pointer-events: auto;
  background: rgba(8, 40, 32, 0.55);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.landing-login-modal[hidden] {
  display: none !important;
}

body.staff-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 15%, rgba(168, 224, 99, 0.35), transparent 55%),
    linear-gradient(160deg, var(--role-accent-mid) 0%, var(--navy) 60%, var(--navy-deep) 100%);
}

body.staff-login-page .landing-login-modal.is-open {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.landing-login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 1;
  transition: none;
}

.landing-login-modal.is-open .landing-login-modal__backdrop {
  opacity: 1;
}

.landing-login-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  max-height: min(96vh, 48rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2.15rem 1.85rem 1.65rem;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 28px 64px rgba(8, 50, 38, 0.28);
  opacity: 1;
  transform: none;
  transition: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.landing-login-modal__dialog::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.landing-login-modal.is-open .landing-login-modal__dialog {
  opacity: 1;
  transform: none;
}

.landing-login-modal__close {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #9aa8a1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.landing-login-modal__close:hover,
.landing-login-modal__close:focus-visible {
  color: var(--navy);
  background: rgba(12, 61, 46, 0.06);
}

.landing-login__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
  padding: 0 0.5rem;
}

.landing-login__seal {
  width: 5.5rem;
  height: 3.65rem;
  margin: 0 auto 0.55rem;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
}

.landing-login__seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.landing-login__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.landing-login__title {
  margin: 0.15rem 0 0;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.landing-login__sub {
  margin: 0.15rem 0 0;
  max-width: 18rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.landing-login__divider {
  height: 1px;
  margin: 0 0 1.15rem;
  background: rgba(12, 61, 46, 0.12);
}

.login-auth-alert-slot {
  margin-bottom: 0.85rem;
}

.login-auth-alert-slot:empty {
  display: none;
  margin: 0;
}

.landing-login__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.landing-login__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.landing-login__input-wrap {
  position: relative;
}

.landing-login__input-wrap input {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(12, 61, 46, 0.16);
  border-radius: 12px;
  background: var(--white);
  color: var(--text-main);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.landing-login__input-wrap input:focus {
  border-color: var(--role-accent-mid);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.16);
}

.landing-login__input-wrap input[type='password'],
.landing-login__input-wrap input[name='password'] {
  padding-right: 2.75rem;
}

.landing-login__toggle-pw {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.landing-login__toggle-pw svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.landing-login__submit {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 8px 18px rgba(10, 61, 46, 0.28);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.landing-login__submit:hover,
.landing-login__submit:focus-visible {
  background: var(--navy-deep);
}

.landing-login__submit.loading {
  pointer-events: none;
  opacity: 0.88;
}

.landing-login__submit svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
}

.landing-login__extras {
  margin-top: 1.2rem;
}

.landing-login__or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.landing-login__or::before,
.landing-login__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.landing-login__google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.landing-login__google-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.landing-login__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.05rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.landing-login__hint i {
  font-size: 0.75rem;
  opacity: 0.85;
}

.landing-login__submit.loading ~ .landing-login__field .landing-login__input-wrap input,
.landing-login__fields:has(.landing-login__submit.loading) .landing-login__input-wrap input {
  animation: inputPulse 1.2s var(--ease) infinite alternate;
}

@keyframes inputPulse {
  from { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0); }
  to { box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12); }
}

@keyframes landing-spin {
  to { transform: rotate(360deg); }
}


/* PhilPEN public self-risk assessment */
body.landing-philpen-page {
  --pp-pine-0: #0b2e21;
  --pp-pine-1: #12503a;
  --pp-pine-2: #1a6b48;
  --pp-pine-3: #237a53;
  --pp-pine-4: #3f9c6c;
  --pp-bg: #f3f7f5;
  --pp-bg-soft: #f2f8f5;
  --pp-chip: #dcece3;
  --pp-text: #182420;
  --pp-muted: #63716a;
  --pp-faint: #93a099;
  --pp-border: #dee6e1;
  --pp-divider: #ecf1ee;
  --pp-font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --pp-font-ui: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --pp-font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  background: var(--pp-bg);
  color: var(--pp-text);
  font-family: var(--pp-font-ui);
}

body.landing-philpen-page .landing-nav {
  z-index: 100;
}

/* Hide stray fixed back-to-top widgets so they never cover sticky nav */
body.landing-philpen-page .back-to-top,
body.landing-philpen-page #backToTop,
body.landing-philpen-page [data-back-to-top],
body.landing-philpen-page a[href="#top"].is-fixed,
body.landing-philpen-page .scroll-top {
  display: none !important;
}

.landing-philpen-page__main {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-offset) + 1.35rem) 0 3.25rem;
  min-height: calc(100vh - 4rem);
}

body.landing-philpen-page--standalone .landing-philpen-page__main {
  padding: 2.25rem 0 3rem;
  min-height: 0;
}

.landing-philpen__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
  color: var(--pp-pine-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

body.landing-philpen-page--standalone .landing-philpen__back {
  flex-shrink: 0;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--pp-border);
}

.landing-philpen__back:hover,
.landing-philpen__back:focus-visible {
  color: var(--pp-pine-1);
}

body.landing-philpen-page--standalone .landing-philpen__back:hover,
body.landing-philpen-page--standalone .landing-philpen__back:focus-visible {
  background: #fff;
  border-color: var(--pp-pine-4);
}

body.landing-philpen-page--standalone .landing-philpen {
  width: min(1080px, calc(100% - 2rem));
  padding-top: 0;
}

.landing-philpen {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  padding-top: 0.25rem;
}

.landing-philpen--page {
  margin-bottom: 1.25rem;
}

.landing-philpen__intro {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 1.35rem;
}

.landing-philpen__intro h1 {
  margin: 0 0 0.65rem;
  font-family: var(--pp-font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pp-pine-0);
  line-height: 1.2;
}

.landing-philpen__intro p {
  margin: 0;
  color: var(--pp-muted);
  line-height: 1.6;
  font-size: 0.98rem;
  font-weight: 400;
}

.landing-philpen__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
}

.landing-philpen__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: var(--pp-chip);
  border: 1px solid transparent;
  color: var(--pp-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.landing-philpen__trust .landing-philpen__icon {
  color: var(--pp-pine-3);
  width: 0.95rem;
  height: 0.95rem;
}

.landing-philpen__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  display: block;
  color: var(--pp-pine-3);
}

/* One consolidated card */
.landing-philpen__card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--pp-border);
  box-shadow:
    0 1px 2px rgba(11, 46, 33, 0.05),
    0 8px 24px -16px rgba(11, 46, 33, 0.15);
  overflow: hidden;
}

.landing-philpen__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 1.05rem 1.35rem;
  background: var(--pp-pine-0);
  color: #fff;
}

.landing-philpen__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.landing-philpen__brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: #fff;
}

.landing-philpen__brand strong,
.landing-philpen__brand span {
  display: block;
}

.landing-philpen__brand strong {
  font-family: var(--pp-font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.landing-philpen__brand span {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.88);
}

.landing-philpen__form,
.landing-philpen__consent-gate,
.landing-philpen__result {
  padding: 1.35rem 1.4rem 1.5rem;
  background: #fff;
}

/* Sections = titles only, no nested boxes */
.landing-philpen__section {
  margin: 0 0 1.55rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-inline-size: 0;
}

.landing-philpen__section + .landing-philpen__section {
  padding-top: 1.35rem;
  border-top: 1px solid var(--pp-divider);
}

.landing-philpen__section legend {
  margin: 0 0 1rem;
  padding: 0;
  float: none;
  width: 100%;
  font-family: var(--pp-font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--pp-pine-0);
}

.landing-philpen__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
}

.landing-philpen__stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.landing-philpen__section--health .landing-philpen__field {
  padding: 16px 0;
  border-bottom: 1px solid var(--pp-divider);
}

.landing-philpen__section--health .landing-philpen__field:first-child {
  padding-top: 0;
}

.landing-philpen__section--health .landing-philpen__field:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.landing-philpen__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-philpen__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-philpen__field--full {
  grid-column: 1 / -1;
}

.landing-philpen__field label,
.landing-philpen__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pp-text);
  font-family: var(--pp-font-ui);
}

.landing-philpen__field > label,
.landing-philpen__field > .landing-philpen__label,
.landing-philpen__field-head {
  min-height: 2rem;
  display: flex;
  align-items: center;
}

.landing-philpen__field-head {
  justify-content: space-between;
  gap: 0.5rem 0.65rem;
  flex-wrap: wrap;
}

.landing-philpen__units {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.2rem;
  border: 1.5px solid var(--pp-border);
  border-radius: 9px;
  background: #fff;
  flex-shrink: 0;
}

.landing-philpen__unit-choice {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.landing-philpen__unit-choice input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.landing-philpen__unit-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  padding: 0.3rem 0.65rem;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--pp-muted);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.landing-philpen__unit-choice input:checked + span,
.landing-philpen__unit-choice.is-selected span {
  background: var(--pp-pine-2);
  color: #fff;
}

.landing-philpen__label-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.landing-philpen__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pp-pine-3);
  line-height: 1;
  cursor: help;
}

.landing-philpen__info .landing-philpen__icon {
  width: 1rem;
  height: 1rem;
}

.landing-philpen__info:hover,
.landing-philpen__info:focus-visible,
.landing-philpen__info[aria-expanded="true"] {
  color: var(--pp-pine-1);
  background: var(--pp-bg-soft);
  outline: none;
}

.landing-philpen__tooltip {
  position: absolute;
  z-index: 8;
  left: 0;
  top: calc(100% + 0.45rem);
  width: min(18.5rem, calc(100vw - 2.5rem));
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: var(--pp-pine-0);
  color: #f4faf7;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(8, 40, 32, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.landing-philpen__tooltip::before {
  content: '';
  position: absolute;
  left: 1.15rem;
  top: -5px;
  width: 10px;
  height: 10px;
  background: var(--pp-pine-0);
  transform: rotate(45deg);
}

.landing-philpen__info:hover + .landing-philpen__tooltip,
.landing-philpen__info:focus-visible + .landing-philpen__tooltip,
.landing-philpen__info[aria-expanded="true"] + .landing-philpen__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.landing-philpen__hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--pp-muted);
  font-weight: 400;
}

.landing-philpen__control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  border: 1.5px solid var(--pp-border);
  border-radius: 9px;
  padding: 0 0.9rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.landing-philpen__control:focus-within {
  border-color: var(--pp-pine-3);
  box-shadow: 0 0 0 3px var(--pp-bg-soft);
}

.landing-philpen__control[hidden],
.landing-philpen__ft-grid[hidden],
[data-height-panel][hidden],
[data-bp-panel][hidden] {
  display: none !important;
}

.landing-philpen__ft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.landing-philpen__ft-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.landing-philpen__convert {
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--pp-pine-2);
  font-weight: 600;
  font-family: var(--pp-font-mono);
}

.landing-philpen__section > .landing-philpen__hint {
  margin-top: 0.7rem;
}

.landing-philpen__control .landing-philpen__icon {
  color: var(--pp-pine-3);
  width: 1.15rem;
  height: 1.15rem;
}

.landing-philpen__control input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.75rem 0;
  font-family: var(--pp-font-mono);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--pp-text);
}

.landing-philpen__control input:focus {
  outline: none;
}

.landing-philpen__control input::placeholder {
  font-family: var(--pp-font-ui);
  font-weight: 400;
  color: var(--pp-faint);
}

.landing-philpen__control input::-webkit-outer-spin-button,
.landing-philpen__control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.landing-philpen__control input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.landing-philpen__unit {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pp-muted);
  font-family: var(--pp-font-ui);
}

.landing-philpen__choices {
  display: flex;
  gap: 9px;
}

.landing-philpen__choice {
  position: relative;
  margin: 0;
  cursor: pointer;
  flex: 1 1 0;
  min-width: 0;
}

.landing-philpen__choice input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.landing-philpen__choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--pp-border);
  border-radius: 9px;
  background: #fff;
  color: var(--pp-text);
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.landing-philpen__choice:hover span {
  border-color: var(--pp-pine-4);
}

.landing-philpen__choice input:focus-visible + span {
  border-color: var(--pp-pine-3);
  box-shadow: 0 0 0 3px var(--pp-bg-soft);
}

.landing-philpen__choice input:checked + span,
.landing-philpen__choice.is-selected span {
  border-color: var(--pp-pine-2);
  background: var(--pp-pine-2);
  color: #fff;
  box-shadow: none;
}

.landing-philpen__choice input:checked + span .landing-philpen__icon,
.landing-philpen__choice.is-selected span .landing-philpen__icon {
  color: #fff;
}

.landing-philpen__bmi {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 9px;
  background: var(--pp-bg-soft);
  border: 1px solid var(--pp-divider);
  color: var(--pp-text);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  font-family: var(--pp-font-mono);
}

.landing-philpen__bmi:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  --bmi-bg: var(--pp-bg-soft);
  --bmi-border: var(--pp-divider);
  --bmi-accent: var(--pp-pine-2);
  background: var(--bmi-bg);
  border-color: var(--bmi-border);
  border-left: 4px solid var(--bmi-accent);
}

.landing-philpen__bmi-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
}

.landing-philpen__bmi-badge {
  display: inline-flex;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--bmi-accent);
  color: #fff;
  font-family: var(--pp-font-ui);
  font-size: 0.74rem;
  font-weight: 700;
}

.landing-philpen__bmi-hint {
  font-family: var(--pp-font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--pp-text);
}

.landing-philpen__bmi.is-underweight {
  --bmi-bg: #eff6ff;
  --bmi-border: #bfdbfe;
  --bmi-accent: #1d4ed8;
}

.landing-philpen__bmi.is-normal {
  --bmi-bg: #e7f8ef;
  --bmi-border: #bbe5cd;
  --bmi-accent: #0f7a4d;
}

.landing-philpen__bmi.is-overweight {
  --bmi-bg: #fff8e6;
  --bmi-border: #fde2a3;
  --bmi-accent: #b7791f;
}

.landing-philpen__bmi.is-obese {
  --bmi-bg: #fff1e8;
  --bmi-border: #fdc9a8;
  --bmi-accent: #c2410c;
}

.landing-philpen__bmi.is-severe {
  --bmi-bg: #fdecea;
  --bmi-border: #f5b8b1;
  --bmi-accent: #b42318;
}

.landing-philpen__form-error {
  margin: 0.25rem 0 0.65rem;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
}

.landing-philpen__privacy-box {
  margin: 0 0 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  background: var(--pp-bg-soft);
  border: 1px solid var(--pp-border);
}

.landing-philpen__privacy-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: var(--pp-pine-1);
}

.landing-philpen__privacy-head h2,
.landing-philpen__privacy-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: inherit;
  font-family: var(--pp-font-ui);
  letter-spacing: -0.01em;
}

.landing-philpen__privacy-head .landing-philpen__icon {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--pp-pine-1);
  flex-shrink: 0;
}

.landing-philpen__privacy-body {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--pp-muted);
}

.landing-philpen__consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--pp-border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pp-text);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.landing-philpen__consent-label:hover {
  border-color: var(--pp-pine-4);
  background: #fdfefe;
}

.landing-philpen__consent-label input[type='checkbox'] {
  margin-top: 0.18rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--pp-pine-1);
  cursor: pointer;
  flex-shrink: 0;
}

.landing-philpen__consent-label span {
  line-height: 1.45;
}

.landing-philpen__actions {
  margin-top: 0.15rem;
  padding: 1.2rem 0 0.1rem;
  border-top: 1px solid var(--pp-divider);
}

.landing-philpen__form-privacy {
  margin: 0 0 0.95rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--pp-muted);
  text-align: center;
}

.landing-philpen__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 14px 1.15rem;
  background: var(--pp-pine-1);
  color: #fff;
  font-family: var(--pp-font-ui);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease;
}

.landing-philpen__submit .landing-philpen__icon {
  color: #fff;
  width: 1.15rem;
  height: 1.15rem;
}

.landing-philpen__submit:hover,
.landing-philpen__submit:focus-visible {
  background: var(--pp-pine-2);
  transform: none;
}

.landing-philpen__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.landing-philpen__result {
  text-align: center;
}

.landing-philpen__result-mark {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pp-bg-soft);
  color: var(--pp-pine-2);
}

.landing-philpen__result-mark .landing-philpen__icon {
  width: 1.45rem;
  height: 1.45rem;
  color: inherit;
}

.landing-philpen__result[data-risk="low"] .landing-philpen__result-mark {
  background: #e7f8ef;
  color: #0f7a4d;
}

.landing-philpen__result[data-risk="moderate"] .landing-philpen__result-mark {
  background: #fff6e5;
  color: #b7791f;
}

.landing-philpen__result[data-risk="high"] .landing-philpen__result-mark,
.landing-philpen__result[data-risk="very_high"] .landing-philpen__result-mark {
  background: #fdecea;
  color: #b42318;
}

.landing-philpen__result-patient {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pp-pine-1);
}

.landing-philpen__result-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pp-muted);
}

.landing-philpen__result-level {
  margin: 0;
  font-family: var(--pp-font-display);
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pp-pine-0);
}

.landing-philpen__result-level--low { color: #0f7a4d; }
.landing-philpen__result-level--moderate { color: #b7791f; }
.landing-philpen__result-level--high { color: #c2410c; }
.landing-philpen__result-level--very_high { color: #b42318; }

.landing-philpen__result-meta {
  display: inline-flex;
  margin: 0.55rem 0 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--pp-chip);
  color: var(--pp-text);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--pp-font-mono);
}

.landing-philpen__result-advice {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--pp-text);
  line-height: 1.55;
}

.landing-philpen__disclaimer {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: 0.82rem;
  color: var(--pp-muted);
  line-height: 1.45;
}

.landing-philpen__result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.landing-philpen__visit,
.landing-philpen__again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.landing-philpen__visit {
  background: var(--pp-pine-1);
  color: #fff;
  border: 1px solid var(--pp-pine-1);
}

.landing-philpen__again {
  border: 1.5px solid var(--pp-border);
  background: #fff;
  color: var(--pp-text);
}

.landing-philpen__again:hover,
.landing-philpen__again:focus-visible {
  background: var(--pp-bg-soft);
  color: var(--pp-pine-0);
  border-color: var(--pp-pine-4);
}

.landing-philpen__visit:hover,
.landing-philpen__visit:focus-visible {
  background: var(--pp-pine-2);
  border-color: var(--pp-pine-2);
  color: #fff;
}

/* PhilPEN standalone page: top bar, green strip, split cards */
.landing-philpen-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--pp-border);
}

.landing-philpen-top__inner,
.landing-philpen-strip__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
}

.landing-philpen-top__inner {
  padding: 0.85rem 0;
  justify-content: space-between;
}

.landing-philpen-top__brand {
  flex-shrink: 0;
  color: var(--pp-pine-0);
  text-decoration: none;
  white-space: nowrap;
}

.landing-philpen-top__brand span {
  color: var(--pp-muted);
  opacity: 1;
}

.landing-philpen-top__brand img {
  border-color: var(--pp-chip);
}

.landing-philpen-strip {
  background: var(--pp-pine-1);
  color: #fff;
}

.landing-philpen-strip__inner {
  padding: 0.7rem 0;
  justify-content: space-between;
  flex-wrap: wrap;
}

.landing-philpen-strip__current {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--pp-font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.landing-philpen-strip__current .landing-philpen__icon {
  color: #fff;
  width: 1rem;
  height: 1rem;
}

.landing-philpen-strip__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-philpen-strip__pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 600;
}

.landing-philpen-strip__pills li.is-highlight {
  background: var(--pp-chip);
  border-color: var(--pp-chip);
  color: var(--pp-pine-0);
}

.landing-philpen-strip__pills .landing-philpen__icon {
  width: 0.95rem;
  height: 0.95rem;
  color: currentColor;
}

.landing-philpen__card--split {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.landing-philpen__card--split .landing-philpen__form {
  padding: 0;
  background: transparent;
}

.landing-philpen__card--split .landing-philpen__consent-gate,
.landing-philpen__card--split .landing-philpen__result {
  max-width: 680px;
  margin: 0 auto;
}

.landing-philpen__card--split .landing-philpen__consent-gate,
.landing-philpen__card--split .landing-philpen__result,
.landing-philpen__panel {
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(11, 46, 33, 0.05),
    0 10px 28px -18px rgba(11, 46, 33, 0.2);
}

.landing-philpen__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.landing-philpen__col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.landing-philpen__panel {
  padding: 1.25rem 1.35rem 1.4rem;
}

.landing-philpen__panel .landing-philpen__section {
  margin: 0;
}

.landing-philpen__panel .landing-philpen__section + .landing-philpen__section {
  padding-top: 0;
  border-top: 0;
}

.landing-philpen__card--split .landing-philpen__form > .landing-philpen__actions {
  max-width: 560px;
  margin: 0 auto;
  padding-top: 0;
  border-top: 0;
}

.landing-philpen__card--split .landing-philpen__form > .landing-philpen__form-privacy {
  max-width: 560px;
  margin: 1.5rem auto 0.95rem;
}

@media (max-width: 760px) {
  .landing-philpen__cols {
    grid-template-columns: 1fr;
  }

  .landing-philpen__back span {
    display: none;
  }

  .landing-philpen-strip__pills li:not(.is-highlight) {
    display: none;
  }

  .landing-philpen__panel {
    padding: 1.1rem 1rem 1.2rem;
  }
}

.landing-nav__links a.is-active,
.nav-drawer-link.is-active {
  color: var(--role-accent-dark);
  font-weight: 700;
  background: rgba(122, 201, 67, 0.22);
}

@media (max-width: 700px) {
  .landing-philpen__grid {
    grid-template-columns: 1fr;
  }

  .landing-philpen__form,
  .landing-philpen__result {
    padding: 1.1rem 1rem 1.25rem;
  }

  .landing-philpen__field > label,
  .landing-philpen__field > .landing-philpen__label,
  .landing-philpen__field-head {
    min-height: 0;
  }

  .landing-philpen-teaser__card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* PhilPEN standalone page: mobile app-style layout */
@media (max-width: 760px) {
  body.landing-philpen-page--standalone {
    --pp-mint: #eaf4ee;
    background: #f1f7f3;
  }

  /* Header + step tabs */
  .landing-philpen-top {
    border-bottom: 0;
    box-shadow: 0 8px 20px -16px rgba(11, 46, 33, 0.35);
  }

  .landing-philpen-top__inner {
    width: calc(100% - 1.5rem);
    padding: 0.8rem 0 0.7rem;
  }

  .landing-philpen-top__brand strong {
    font-size: 1.1rem;
  }

  .landing-philpen-top__brand span {
    font-size: 0.84rem;
  }

  body.landing-philpen-page--standalone .landing-philpen__back {
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 2px 6px -3px rgba(11, 46, 33, 0.2);
  }

  body.landing-philpen-page--standalone .landing-philpen__back .landing-philpen__icon {
    width: 1.3rem;
    height: 1.3rem;
    color: var(--pp-pine-1);
  }

  .landing-philpen-strip {
    display: none;
  }

  /* Page + intro */
  body.landing-philpen-page--standalone .landing-philpen-page__main {
    padding: 1.4rem 0 0;
  }

  body.landing-philpen-page--standalone .landing-philpen {
    width: calc(100% - 1.5rem);
  }

  .landing-philpen__intro {
    text-align: left;
    margin: 0 0.4rem 0.9rem;
  }

  .landing-philpen__intro h1 {
    font-size: 1.55rem;
    margin-bottom: 0.35rem;
  }

  .landing-philpen__intro p {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--pp-text);
  }

  /* Cards */
  .landing-philpen__cols,
  .landing-philpen__col {
    gap: 0.75rem;
  }

  .landing-philpen__card--split .landing-philpen__consent-gate,
  .landing-philpen__card--split .landing-philpen__result,
  .landing-philpen__panel {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 4px 18px -12px rgba(11, 46, 33, 0.3);
  }

  .landing-philpen__panel {
    padding: 0.95rem 0.9rem 1rem;
  }

  .landing-philpen__section legend {
    font-family: var(--pp-font-ui);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--pp-text);
  }

  .landing-philpen__stack,
  .landing-philpen__grid {
    gap: 0.7rem;
  }

  /* Fields: small label above, then [input box][pill toggle] on one row */
  .landing-philpen__panel .landing-philpen__field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem 0.5rem;
  }

  .landing-philpen__panel .landing-philpen__field > * {
    grid-column: 1 / -1;
  }

  .landing-philpen__panel .landing-philpen__field-head {
    display: contents;
  }

  .landing-philpen__panel .landing-philpen__field > label,
  .landing-philpen__panel .landing-philpen__field > .landing-philpen__label,
  .landing-philpen__panel .landing-philpen__field-head > label,
  .landing-philpen__panel .landing-philpen__label-wrap {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pp-text);
  }

  .landing-philpen__panel .landing-philpen__field-head > .landing-philpen__units {
    grid-column: 2;
    grid-row: 2;
  }

  .landing-philpen__panel .landing-philpen__field-head ~ [data-height-panel],
  .landing-philpen__panel .landing-philpen__field-head ~ [data-bp-panel] {
    grid-column: 1;
    grid-row: 2;
  }

  .landing-philpen__panel .landing-philpen__field .landing-philpen__hint,
  .landing-philpen__panel .landing-philpen__field .landing-philpen__convert {
    grid-column: 1 / -1;
    margin: 0;
  }

  .landing-philpen__control {
    min-height: 2.85rem;
    padding: 0 0.8rem;
    border: 1px solid var(--pp-border);
    border-radius: 12px;
    background: #fff;
  }

  .landing-philpen__control input {
    padding: 0.55rem 0;
    font-size: 0.95rem;
  }

  .landing-philpen__ft-grid {
    gap: 0.4rem;
  }

  .landing-philpen__ft-grid .landing-philpen__control {
    gap: 0.3rem;
    padding: 0 0.6rem;
  }

  .landing-philpen__ft-grid .landing-philpen__control .landing-philpen__icon {
    display: none;
  }

  .landing-philpen__hint {
    font-size: 0.74rem;
  }

  .landing-philpen__section > .landing-philpen__hint,
  .landing-philpen__convert,
  .landing-philpen__bmi {
    margin-top: 0.45rem;
  }

  /* Pill segmented toggles (units, Sex, Yes/No) */
  .landing-philpen__units,
  .landing-philpen__choices {
    display: inline-flex;
    gap: 0;
    padding: 0.2rem;
    border: 1px solid var(--pp-border);
    border-radius: 12px;
    background: #fff;
  }

  .landing-philpen__unit-choice span,
  .landing-philpen__choice span {
    min-height: 2.3rem;
    min-width: 3rem;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--pp-text);
    font-size: 0.82rem;
    font-weight: 600;
  }

  .landing-philpen__unit-choice input:checked + span,
  .landing-philpen__unit-choice.is-selected span,
  .landing-philpen__choice input:checked + span,
  .landing-philpen__choice.is-selected span {
    background: var(--pp-pine-2);
    color: #fff;
    box-shadow: none;
  }

  .landing-philpen__choice {
    flex: 0 0 auto;
  }

  /* About you: Age and Sex side by side */
  .landing-philpen__section[data-step="personal"] .landing-philpen__grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .landing-philpen__section[data-step="personal"] .landing-philpen__choice .landing-philpen__icon {
    display: none;
  }

  .landing-philpen__section[data-step="personal"] .landing-philpen__choices {
    min-height: 2.85rem;
    align-items: center;
  }

  /* Health questions: heading on page background, one card per question */
  .landing-philpen__panel--health {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .landing-philpen__panel--health .landing-philpen__section legend {
    margin: 0.35rem 0.4rem 0.7rem;
    font-family: var(--pp-font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pp-pine-0);
  }

  .landing-philpen__section--health .landing-philpen__stack {
    gap: 0.75rem;
  }

  .landing-philpen__section--health .landing-philpen__field,
  .landing-philpen__section--health .landing-philpen__field:first-child,
  .landing-philpen__section--health .landing-philpen__field:last-child {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem 0.75rem;
    padding: 0.95rem 0.9rem;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 18px -12px rgba(11, 46, 33, 0.3);
    transition: background 0.15s ease;
  }

  .landing-philpen__section--health .landing-philpen__field:focus-within,
  .landing-philpen__section--health .landing-philpen__field:has(input:checked) {
    background: var(--pp-mint);
  }

  .landing-philpen__section--health .landing-philpen__field > .landing-philpen__label {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .landing-philpen__section--health .landing-philpen__choices {
    grid-column: 2;
    grid-row: 1;
  }

  .landing-philpen__section--health .landing-philpen__field .landing-philpen__hint {
    grid-row: 2;
  }

  /* Privacy note + sticky CTA */
  .landing-philpen__card--split .landing-philpen__form > .landing-philpen__form-privacy {
    margin: 0.9rem 0.4rem 0;
    font-size: 0.74rem;
    text-align: left;
    color: var(--pp-text);
  }

  .landing-philpen__card--split .landing-philpen__form > .landing-philpen__actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 -0.75rem;
    padding: 0.9rem 0.75rem calc(0.8rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(241, 247, 243, 0) 0%, #f1f7f3 45%);
  }

  .landing-philpen__submit {
    min-height: 3.3rem;
    border-radius: 999px;
    font-size: 1.05rem;
    background: var(--pp-pine-1);
    box-shadow: 0 10px 22px -12px rgba(18, 80, 58, 0.6);
  }

  .landing-philpen__submit .landing-philpen__icon {
    display: none;
  }

  .landing-philpen__visit,
  .landing-philpen__again {
    border-radius: 999px;
  }

  .landing-philpen__privacy-box,
  .landing-philpen__consent-label {
    border-radius: 14px;
  }
}

