/* Beyond Appearance partner microsite — adapted from the approved private working file. */
:root {
  --paper: #f7f6f3;
  --white: #fffefb;
  --ink: #2e2924;
  --muted: #5e5954;
  --blue: #5f8fa5;
  --blue-deep: #416f84;
  --blue-soft: #e4eef1;
  --blue-soft-pressed: #d4e4e9;
  --line: #d2d9d9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Avenir, "Avenir Next", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--blue-deep) var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body:has(dialog[open]) { overflow: hidden; }
::selection { background: var(--blue-deep); color: var(--white); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; }
button, a { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgb(46 41 36 / 12%);
  background: rgb(255 254 251 / 94%);
  backdrop-filter: blur(14px);
}

.brand-lockup { display: flex; min-width: 0; align-items: center; }
.brand-lockup__beyond { width: clamp(230px, 24vw, 320px); }
.header-actions { display: flex; align-items: center; gap: 0.7rem; }

.language-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border: 1px solid rgb(46 41 36 / 42%);
  border-radius: 999px;
  appearance: none;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: 700 0.74rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 220ms var(--ease-out), background-color 220ms var(--ease-out), color 220ms var(--ease-out);
}

.language-link:hover { border-color: var(--blue-deep); background: var(--blue-soft); color: var(--ink); }

.header-link,
.primary-link,
.modal-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.78rem 1.25rem;
  border: 1px solid var(--blue-deep);
  border-radius: 999px;
  background: var(--blue-deep);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: transform 260ms var(--ease-out), background-color 260ms var(--ease-out), color 260ms var(--ease-out);
}

.header-link:hover,
.primary-link:hover,
.modal-cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(780px, calc(100vh - 108px));
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 6rem);
  background: var(--ink);
  color: var(--white);
}

.hero::before,
.hero::after { position: absolute; inset: 0; content: ""; }

.hero::before {
  z-index: -2;
  background-image: var(--partner-hero-image);
  background-position: center 18%;
  background-size: cover;
  transition: transform 1600ms var(--ease-out);
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(28 25 22 / 4%) 12%, rgb(28 25 22 / 18%) 52%, rgb(28 25 22 / 92%) 100%),
    linear-gradient(90deg, rgb(28 25 22 / 24%) 0%, transparent 66%);
}

.hero:hover::before { transform: scale(1.018); }
.hero__copy { position: relative; z-index: 2; max-width: 66rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(3.6rem, 6.4vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-shadow: 0 3px 28px rgb(0 0 0 / 35%);
}

h1 span { display: block; }

.site-section { padding: clamp(5rem, 9vw, 8.5rem) clamp(1.25rem, 6vw, 6rem); }
.treatments {
  scroll-margin-top: 78px;
  background: var(--white);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  align-items: end;
  gap: 2rem clamp(2rem, 8vw, 8rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-intro h2,
.partnership h2,
.closing h2,
.process h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.section-intro h2 { max-width: 11ch; }

.section-intro p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.care-map {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 720px;
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  background: #5f6c6c;
  color: var(--white);
}

.care-map__image,
.care-map::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.care-map__image {
  z-index: -2;
  object-fit: cover;
  object-position: center 24%;
  transition: transform 900ms var(--ease-out), filter 900ms var(--ease-out);
}

.care-map::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(27 31 30 / 68%) 0%, rgb(27 31 30 / 34%) 46%, rgb(27 31 30 / 58%) 100%),
    linear-gradient(180deg, rgb(27 31 30 / 18%) 0%, rgb(27 31 30 / 58%) 100%);
  content: "";
  pointer-events: none;
}

.care-map:has(.product-pill:hover) .care-map__image {
  filter: saturate(0.92) contrast(1.03);
  transform: scale(1.025);
}

.care-map__panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(1.3rem, 3vw, 2.25rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  transition: background-color 320ms var(--ease-out);
}

.care-map__panel:nth-of-type(odd) { border-right: 1px solid rgb(255 254 251 / 52%); }
.care-map__panel:nth-of-type(-n + 2) { border-bottom: 1px solid rgb(255 254 251 / 52%); }
.care-map__panel:hover, .care-map__panel:focus-within { background: rgb(26 30 29 / 20%); }

.care-map__panel h3 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-shadow: 0 2px 22px rgb(0 0 0 / 38%);
}

.product-pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.product-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  appearance: none;
  padding: 0.68rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: 650 0.82rem/1 var(--sans);
  box-shadow: 0 9px 24px rgb(0 0 0 / 16%);
  transition: transform 260ms var(--ease-out), background-color 260ms var(--ease-out), color 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.product-pill::after {
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.55rem;
  background: currentColor;
  clip-path: polygon(12% 45%, 68% 45%, 47% 24%, 58% 13%, 92% 50%, 58% 87%, 47% 76%, 68% 55%, 12% 55%);
  content: "";
}

.product-pill:hover {
  background: var(--blue-soft);
  color: var(--ink);
  box-shadow: 0 14px 32px rgb(0 0 0 / 24%);
  transform: translateY(-3px);
}

.clinical-note {
  max-width: 70rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.process {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
  background: var(--blue-soft);
}

.process h2 { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgb(46 41 36 / 22%);
  list-style: none;
}

.process-list li {
  min-height: 190px;
  padding: 1.35rem clamp(1rem, 2.2vw, 2rem);
  border-right: 1px solid rgb(46 41 36 / 18%);
}

.process-list li:first-child { padding-left: 0; }
.process-list li:last-child { border-right: 0; }

.process-list span {
  display: block;
  margin-bottom: clamp(1.75rem, 3vw, 3rem);
  color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 700;
}

.process-list h3 { margin: 0 0 0.55rem; font-size: 1.55rem; line-height: 1.05; }
.process-list p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.partnership {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  align-items: start;
  gap: clamp(3rem, 9vw, 9rem);
}

.partnership h2 { max-width: 9ch; }

.partnership__logo-frame {
  display: block;
  width: clamp(220px, 25vw, 360px);
  margin-top: 1.1rem;
  overflow: hidden;
  aspect-ratio: 4.625;
}

.partnership__logo { width: 172.973%; max-width: none; transform: translate(-20.3125%, -26.25%); }

.partnership__copy {
  max-width: 48rem;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.partnership__copy p { max-width: 44rem; margin: 0 0 1.2rem; color: var(--muted); }
.partnership__copy p:first-child { color: var(--ink); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; }
.partnership__copy p:last-child { margin-bottom: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }

.closing {
  padding: clamp(6rem, 11vw, 10rem) 1.25rem;
  background: var(--white);
  text-align: center;
}

.closing h2 { max-width: 12ch; margin: 0 auto 2.2rem; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(250px, 0.85fr);
  gap: 3rem clamp(2rem, 8vw, 8rem);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.site-footer__contact p, .site-footer__legal { margin: 0; }
.site-footer__legal { grid-column: 1 / -1; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 0.875rem; }

.treatment-dialog {
  width: min(1220px, calc(100vw - 1rem));
  max-height: min(820px, calc(100dvh - 2rem));
  margin: auto;
  padding: 0 68px;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.treatment-dialog::backdrop { background: rgb(25 29 29 / 72%); backdrop-filter: blur(6px); }
.treatment-dialog[open] { animation: dialog-in 520ms var(--ease-out) both; }

@keyframes dialog-in {
  from { opacity: 0.7; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-shell {
  display: grid;
  height: min(820px, calc(100dvh - 2rem));
  max-height: 820px;
  overflow: hidden;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 28px 80px rgb(22 27 28 / 36%);
}

.dialog-rail {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #536f73;
  color: var(--white);
}

.dialog-rail::before, .dialog-rail::after { position: absolute; inset: 0; content: ""; }
.dialog-rail::before {
  z-index: -2;
  background-image: var(--dialog-image, url("/assets/partners/beyond-appearance/card-weight-loss.jpg"));
  background-position: var(--dialog-position, center);
  background-size: cover;
  filter: saturate(0.78);
}
.dialog-rail::after { z-index: -1; background: linear-gradient(180deg, rgb(30 36 36 / 20%), rgb(30 36 36 / 82%)); }

.dialog-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 28px rgb(16 21 22 / 28%);
  transform: translateY(-50%);
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.dialog-arrow--prev { left: 6px; }
.dialog-arrow--next { right: 6px; }

.dialog-arrow:hover {
  background: var(--blue-deep);
  color: var(--white);
  transform: translateY(-50%) scale(1.06);
}

.dialog-arrow svg { width: 22px; height: 22px; }

.dialog-count { margin: 0; font-size: 0.8rem; font-variant-numeric: tabular-nums; font-weight: 650; }
.dialog-category { max-width: 14ch; margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; }

.dialog-main {
  position: relative;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(4.5rem, 7vw, 6.5rem) clamp(1.5rem, 5vw, 5rem) clamp(1.75rem, 4vw, 3.5rem);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.dialog-close:hover { background: var(--ink); color: var(--white); transform: rotate(5deg); }
.dialog-close svg { width: 18px; height: 18px; }
.dialog-descriptor { margin: 0 0 0.65rem; color: var(--blue-deep); font-size: 0.88rem; font-weight: 650; }

.dialog-main h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(3.2rem, 7vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.dialog-summary {
  max-width: 59ch;
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}

.dialog-offer {
  max-width: 59ch;
  margin: 0 0 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--blue-soft);
  box-shadow: 0 10px 26px rgb(48 91 108 / 12%);
  color: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 650;
  line-height: 1.35;
}

.dialog-offer strong {
  color: var(--blue-deep);
  font-weight: 800;
  letter-spacing: 0.035em;
}

.dialog-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dialog-details h3 { margin: 0 0 0.5rem; font-family: var(--sans); font-size: 0.88rem; font-weight: 700; }
.dialog-details p, .dialog-note { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.dialog-note { max-width: 70ch; margin-top: 1.35rem; }

.dialog-actions {
  display: flex;
  max-width: 59ch;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.modal-cta svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .hero { min-height: 680px; }
  .section-intro, .partnership { grid-template-columns: 1fr; }
  .section-intro h2 { max-width: 13ch; }
  .care-map { min-height: 660px; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list li:nth-child(2) { border-right: 0; }
  .process-list li:nth-child(-n + 2) { border-bottom: 1px solid rgb(46 41 36 / 18%); }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer__legal { grid-column: 1; }
  .dialog-shell { grid-template-columns: 210px minmax(0, 1fr); }
}

@media (max-width: 650px) {
  .site-header { min-height: 70px; gap: 0.5rem; padding-inline: 0.8rem; }
  .brand-lockup__beyond { width: min(62vw, 220px); }
  .header-link { display: none; }
  .header-actions { gap: 0.45rem; }
  .language-link { min-height: 40px; padding-inline: 0.8rem; font-size: 0.68rem; }
  .treatments { scroll-margin-top: 70px; }
  .hero { min-height: 600px; padding-bottom: 3rem; }
  .hero::before { background-position: 50% 18%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgb(28 25 22 / 8%) 5%, rgb(28 25 22 / 24%) 42%, rgb(28 25 22 / 94%) 100%),
      linear-gradient(90deg, rgb(28 25 22 / 26%) 0%, transparent 85%);
  }

  h1 { font-size: clamp(2.1rem, 9vw, 2.75rem); }
  .site-section { padding-right: 1.1rem; padding-left: 1.1rem; }

  .section-intro h2,
  .partnership h2,
  .closing h2,
  .process h2 { font-size: clamp(3rem, 14vw, 4.35rem); }

  .care-map {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .care-map__image { object-position: 42% 24%; }
  .care-map::after {
    background:
      linear-gradient(90deg, rgb(27 31 30 / 78%), rgb(27 31 30 / 56%)),
      linear-gradient(180deg, rgb(27 31 30 / 16%), rgb(27 31 30 / 68%));
  }
  .care-map__panel {
    min-height: 0;
    justify-content: flex-start;
    gap: 0.9rem;
    padding: 1.4rem 1.2rem;
    background: rgb(25 30 29 / 24%);
  }
  .care-map__panel:nth-of-type(odd) { border-right: 0; }
  .care-map__panel:not(:last-of-type) { border-bottom: 1px solid rgb(255 254 251 / 42%); }
  .care-map__panel:last-of-type { border-bottom: 0; }
  .care-map__panel h3 {
    max-width: none;
    font-size: clamp(1.8rem, 8vw, 2.25rem);
    line-height: 1;
  }
  .product-pills {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.6rem;
  }
  .product-pill {
    width: min(100%, 17rem);
    min-height: 50px;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: var(--blue-soft);
    font-size: 0.86rem;
    line-height: 1.2;
    text-align: left;
  }
  .product-pill::after {
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 auto;
    margin-left: 0.8rem;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    background: none;
    clip-path: none;
    transform: rotate(45deg);
  }
  .product-pill:active {
    background: var(--blue-soft-pressed);
    transform: scale(0.985);
  }

  .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li:first-child {
    display: grid;
    min-height: 0;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid rgb(46 41 36 / 18%);
  }

  .process-list li:last-child { border-bottom: 0; }
  .process-list span { margin: 0; }

  .treatment-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    padding: 10px 34px;
  }

  .dialog-shell {
    display: block;
    height: calc(100dvh - 20px);
    max-height: none;
    overflow-y: auto;
    border-radius: 14px;
  }
  .dialog-rail { min-height: 132px; padding: 1rem 1.15rem; }
  .dialog-category { max-width: 15ch; font-size: 1.65rem; }
  .dialog-main { overflow: visible; padding: 3.75rem 1.1rem 2rem; }
  .dialog-main h2 { font-size: clamp(2.35rem, 10.5vw, 3.5rem); line-height: 0.94; }
  .dialog-offer { padding: 0.9rem 1rem; font-size: 1rem; }
  .dialog-details { grid-template-columns: 1fr; }
  .dialog-actions { align-items: stretch; }
  .modal-cta {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    border-radius: 14px;
    font-size: 0.9rem;
  }
  .dialog-arrow { width: 38px; height: 38px; }
  .dialog-arrow--prev { left: 1px; }
  .dialog-arrow--next { right: 1px; }
  .dialog-arrow svg { width: 19px; height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
