/* ── Weight-loss page (page-weight.php) ──────────────────────────
   Loaded after solene.css on that template only. */
.wl-ic { flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--sl-ivory); color: var(--sl-gold-deep); border: 1px solid var(--sl-sand); }
.wl-ic svg { display: block; }
.wl-gold { background: var(--sl-gold-ink-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.wl-head h2, .wl-head p { margin: 0; }
.wl-head p { color: var(--sl-ink-soft); font-size: 17px; line-height: 1.6; }

/* Hero: text + scale-dial line art whose needle sinks (no photo) */
.wl-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: calc(var(--banner-h, 0px) + var(--sl-header-h) + 48px) 72px;
  background: radial-gradient(ellipse 55% 70% at 82% 45%, rgba(220, 183, 77, .16), transparent 70%), linear-gradient(180deg, #FBF8F2 0%, var(--sl-ivory) 100%); }
.wl-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--sl-ink-soft); margin-bottom: 26px; }
.wl-crumbs a { color: var(--sl-ink-soft); text-decoration: none; }
.wl-crumbs a:hover { color: var(--sl-brown); }
.wl-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.wl-hero__text { display: grid; gap: 20px; justify-items: start; }
.wl-hero h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -.025em; font-weight: 600; color: var(--sl-ink); margin: 0; }
.wl-hero h1 em { font-style: normal; }
.wl-hero__lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--sl-ink); max-width: 58ch; margin: 0; }
.wl-hero__sub { font-size: 16px; line-height: 1.6; color: var(--sl-ink-soft); max-width: 58ch; margin: 0; }
.wl-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.wl-hero__text > * { animation: sl-fromRight .9s cubic-bezier(.2,.7,.2,1) backwards; }
.wl-hero__text > :nth-child(2) { animation-delay: .08s; } .wl-hero__text > :nth-child(3) { animation-delay: .16s; }
.wl-hero__text > :nth-child(4) { animation-delay: .24s; } .wl-hero__text > :nth-child(5) { animation-delay: .32s; }

.wl-art { position: relative; aspect-ratio: 1; max-width: 500px; width: 100%; justify-self: center; }
.wl-art__disc { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff 0%, #FBF6EC 60%, #F4EAD8 100%); box-shadow: 0 40px 80px rgba(43, 31, 23, .12), inset 0 0 0 1px rgba(203, 156, 18, .18); }
.wl-art__ring { position: absolute; inset: 2%; border-radius: 50%; border: 1px dashed rgba(203, 156, 18, .45); animation: wl-spin 60s linear infinite; }
.wl-art__dial { position: absolute; left: 50%; top: 50%; width: 62%; transform: translate(-50%, -50%); overflow: visible; }
.wl-needle { transform-origin: 100px 110px; transform: rotate(71deg); animation: wl-needle 9s cubic-bezier(.45, 0, .2, 1) infinite; }
.wl-progress { stroke-dasharray: 251; animation: wl-progress 9s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes wl-needle { 0%, 8% { transform: rotate(71deg); } 70%, 88% { transform: rotate(-30deg); } 100% { transform: rotate(71deg); } }
@keyframes wl-progress { 0%, 8% { stroke-dashoffset: 26; } 70%, 88% { stroke-dashoffset: 168; } 100% { stroke-dashoffset: 26; } }
@keyframes wl-spin { to { transform: rotate(360deg); } }
.wl-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); box-shadow: 0 16px 34px rgba(43, 31, 23, .12); font-size: 14px; font-weight: 600; color: var(--sl-ink); white-space: nowrap; animation: wl-float 7s ease-in-out infinite; }
.wl-chip .wl-ic { width: 36px; height: 36px; }
.wl-chip--1 { left: -4%; top: 14%; } .wl-chip--2 { right: -6%; top: 46%; animation-delay: -2.3s; } .wl-chip--3 { left: 2%; bottom: 8%; animation-delay: -4.6s; }
@keyframes wl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Photo trio after the hero: arched frames, the middle one raised */
.wl-gallery { padding-block: clamp(48px, 6vw, 88px) 0; }
.wl-gallery__grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 28px); align-items: end; max-width: 1080px; margin-inline: auto; }
.wl-gallery__item { margin: 0; display: grid; gap: 14px; }
.wl-gallery__item:nth-child(2) { margin-bottom: clamp(24px, 4vw, 56px); }
.wl-gallery__ph { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; overflow: hidden; background: var(--sl-sand); box-shadow: 0 30px 60px rgba(43, 31, 23, .12); }
.wl-gallery__ph::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); pointer-events: none; }
.wl-gallery__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.wl-gallery__item:hover .wl-gallery__ph img { transform: scale(1.04); }
.wl-gallery__item figcaption { display: flex; align-items: baseline; justify-content: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--sl-ink); text-align: center; }
.wl-gallery__item figcaption span { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--sl-gold-text); }
.wl-gallery .wl-reveal:nth-child(2) { animation-delay: .12s; } .wl-gallery .wl-reveal:nth-child(3) { animation-delay: .24s; }

/* Under a doctor's control */
.wl-why { padding-block: clamp(56px, 7vw, 96px); }
.wl-why__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.wl-why__grid--single { grid-template-columns: minmax(0, 760px); }
.wl-why__text { display: grid; gap: 16px; }
.wl-why__text h2 { margin: 0; }
.wl-why__text p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--sl-ink-soft); }
.wl-why__quote { margin: 8px 0 0; padding: 18px 22px; border-left: 3px solid var(--sl-gold); border-radius: 0 14px 14px 0; background: var(--sl-ivory); font-size: 18px !important; font-weight: 600; line-height: 1.5 !important; color: var(--sl-ink) !important; }
.wl-factors { display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--sl-bg); border: 1px solid var(--sl-sand); box-shadow: 0 24px 60px rgba(43, 31, 23, .06); }
.wl-factors > small { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sl-gold-text); }
.wl-factor { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--sl-sand); }
.wl-factor:first-of-type { border-top: 0; }
.wl-factor .wl-ic { width: 52px; height: 52px; }
.wl-factor b { display: block; font-size: 16.5px; font-weight: 600; color: var(--sl-ink); }
.wl-factor span { font-size: 14px; color: var(--sl-ink-soft); }

/* What's included */
.wl-inc { background: var(--sl-ivory); }
.wl-inc__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wl-inc__grid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wl-inc__card { position: relative; display: grid; gap: 14px; align-content: start; padding: 28px 24px; border-radius: 22px; background: var(--sl-bg); border: 1px solid var(--sl-sand);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease, border-color .6s ease; }
.wl-inc__grid--5 .wl-inc__card { grid-column: span 2; }
.wl-inc__grid--5 .wl-inc__card:nth-child(4), .wl-inc__grid--5 .wl-inc__card:nth-child(5) { grid-column: span 3; }
.wl-inc__card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(43, 31, 23, .1); border-color: transparent; }
@property --wl-sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.wl-inc__card::after { content: ""; position: absolute; inset: -1px; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from 0deg, #AC7A05, #DCB74D calc(var(--wl-sweep) * .25), #F1E364 calc(var(--wl-sweep) * .5), #DCB74D calc(var(--wl-sweep) * .75), #AC7A05 var(--wl-sweep), transparent var(--wl-sweep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: --wl-sweep .9s cubic-bezier(.45, 0, .2, 1); }
.wl-inc__card:hover::after { --wl-sweep: 360deg; }
.wl-inc__card .wl-ic { width: 60px; height: 60px; transition: background-color .4s, color .4s, border-color .4s; }
.wl-inc__card:hover .wl-ic { background: var(--sl-brown); color: var(--sl-gold-light); border-color: var(--sl-brown); }
.wl-inc__card h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--sl-ink); }
.wl-inc__card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--sl-ink-soft); }

/* Steps: five blocks with arrows; vertical on phones */
/* Steps: a gold timeline — nodes on a line that draws itself, chevrons between; vertical on phones */
.wl-steps .wl-head { margin-inline: auto; text-align: center; justify-items: center; }
.wl-flow { --gap: 28px; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: var(--gap); }
.wl-flow::before, .wl-flow::after { content: ""; position: absolute; top: 39px; left: calc((100% - (var(--n, 5) - 1) * var(--gap)) / (2 * var(--n, 5))); right: calc((100% - (var(--n, 5) - 1) * var(--gap)) / (2 * var(--n, 5))); height: 2px; border-radius: 2px; background: var(--sl-sand); }
.wl-flow::after { background: var(--sl-gold-grad); transform: scaleX(0); transform-origin: left; transition: transform 2s cubic-bezier(.45, 0, .2, 1); }
.wl-flow.is-in::after { transform: scaleX(1); }
.wl-flow__step { position: relative; display: grid; justify-items: center; align-content: start; gap: 12px; text-align: center; }
.wl-flow__step:not(:last-child)::after { content: ""; position: absolute; top: 35px; left: calc(100% + var(--gap) / 2 - 6px); width: 9px; height: 9px; border-top: 2px solid var(--sl-gold); border-right: 2px solid var(--sl-gold); transform: rotate(45deg); }
.wl-flow__node { position: relative; z-index: 1; width: 80px; height: 80px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--sl-gold-deep); border: 1px solid var(--sl-sand); box-shadow: 0 14px 30px rgba(43, 31, 23, .08), 0 0 0 8px var(--sl-bg); transition: background-color .4s, color .4s, border-color .4s, transform .4s cubic-bezier(.2,.7,.2,1); }
.wl-flow__num { position: absolute; top: -4px; right: -10px; min-width: 32px; height: 24px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--sl-gold-grad); color: var(--sl-ink); font-size: 12px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 4px 10px rgba(172, 122, 5, .25); }
.wl-flow__step:hover .wl-flow__node { background: var(--sl-brown); color: var(--sl-gold-light); border-color: var(--sl-brown); transform: translateY(-4px); }
.wl-flow h3 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--sl-ink); }
.wl-flow p { margin: 0; max-width: 26ch; font-size: 14.5px; line-height: 1.6; color: var(--sl-ink-soft); }
/* Steps appear one after another while the line is drawn */
.wl-flow .wl-flow__step { opacity: 0; }
.wl-flow.is-in .wl-flow__step { opacity: 1; animation: wl-rise .7s cubic-bezier(.2,.7,.2,1) backwards; }
.wl-flow.is-in .wl-flow__step:nth-child(2) { animation-delay: .4s; } .wl-flow.is-in .wl-flow__step:nth-child(3) { animation-delay: .8s; }
.wl-flow.is-in .wl-flow__step:nth-child(4) { animation-delay: 1.2s; } .wl-flow.is-in .wl-flow__step:nth-child(5) { animation-delay: 1.6s; }
.wl-flow.is-in .wl-flow__step:nth-child(6) { animation-delay: 2s; }
.wl-steps__cta { margin-top: clamp(36px, 5vw, 56px); display: flex; justify-content: center; }

/* Results: before/after carousel */
.wl-results { background: var(--sl-ivory); }
.wl-results__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.wl-results__head h2 { margin: 12px 0 0; }
.wl-results__text { display: grid; gap: 12px; }
.wl-results__head p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--sl-ink-soft); }
.wl-ba__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 20px; margin: -6px -2px 0; }
.wl-ba__track::-webkit-scrollbar { display: none; }
.wl-ba { scroll-snap-align: start; margin: 0; display: grid; gap: 14px; padding: 14px; border-radius: 22px; background: var(--sl-bg); border: 1px solid var(--sl-sand); }
.wl-ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wl-ba__ph { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #F3EBDD 0 12px, #EFE5D4 12px 24px); color: var(--sl-ink-soft); font-size: 12.5px; text-align: center; }
.wl-ba__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wl-ba--single .wl-ba__pair { grid-template-columns: 1fr; }
.wl-ba--single .wl-ba__ph { aspect-ratio: 4 / 3; }
/* A combined before/after shot is shown whole: fitted by its proportions, labels on its halves */
.wl-ba__ph--combo { aspect-ratio: 6 / 5; display: flex; align-items: center; justify-content: center; background: var(--sl-ivory); }
.wl-ba--single .wl-ba__ph--combo { aspect-ratio: 6 / 5; }
.wl-ba__img { position: relative; display: block; max-width: 100%; max-height: 100%; border-radius: 10px; overflow: hidden; }
.wl-ba__img--wide { width: 100%; }
.wl-ba__img--tall { height: 100%; }
.wl-ba__ph--combo .wl-ba__img img { position: static; display: block; object-fit: initial; }
.wl-ba__img--wide img { width: 100%; height: auto; }
.wl-ba__img--tall img { height: 100%; width: auto; }
.wl-ba__tag.wl-ba__tag--after { left: calc(50% + 10px); background: var(--sl-gold-grad); color: var(--sl-ink); }
.wl-ba__tag { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(43, 31, 23, .7); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.wl-ba__ph--after .wl-ba__tag { background: var(--sl-gold-grad); color: var(--sl-ink); }
.wl-ba figcaption { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 2px; font-size: 14px; color: var(--sl-ink-soft); }
.wl-ba figcaption b { color: var(--sl-ink); font-weight: 600; }
.wl-ba__nav { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.wl-ba__btn { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid rgba(58, 42, 31, .25); background: #fff; color: var(--sl-brown); display: grid; place-items: center; cursor: pointer; transition: border-color .25s, box-shadow .25s, opacity .25s; }
.wl-ba__btn:hover:not(:disabled) { border-color: var(--sl-gold-deep); box-shadow: 0 0 0 3px rgba(220, 183, 77, .25); }
.wl-ba__btn:disabled { opacity: .35; cursor: default; }
.wl-ba__nav.is-static { display: none; }
.wl-ba__bar { flex: 1; height: 2px; background: var(--sl-sand); border-radius: 2px; overflow: hidden; }
.wl-ba__bar i { display: block; height: 100%; width: 30%; background: var(--sl-gold-grad); transition: transform .3s ease, width .3s ease; }
.wl-disclaimer { margin: 18px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--sl-ink-soft); }

/* Final CTA */
.wl-cta { background: var(--sl-brown); color: var(--sl-on-dark); position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.wl-cta::before { content: ""; position: absolute; z-index: -1; right: -140px; top: -120px; width: 520px; height: 520px; background: url(../images/solene-mark.svg) center / contain no-repeat; opacity: .07; filter: brightness(2); }
.wl-cta__in { display: grid; justify-items: center; gap: 24px; }
.wl-cta h2 { margin: 0; color: #fff; max-width: 24ch; }

/* Reveal on scroll */
.wl-reveal { opacity: 0; }
.wl-reveal.is-in { opacity: 1; animation: wl-rise .8s cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes wl-rise { from { opacity: 0; transform: translateY(24px); } }
.wl-inc__grid .wl-reveal:nth-child(2) { animation-delay: .08s; }
.wl-inc__grid .wl-reveal:nth-child(3) { animation-delay: .16s; }
.wl-inc__grid .wl-reveal:nth-child(4) { animation-delay: .24s; }
.wl-inc__grid .wl-reveal:nth-child(5) { animation-delay: .32s; }

@media (max-width: 1100px) {
  .wl-flow { --gap: 34px; grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .wl-flow::before, .wl-flow::after { top: 40px; bottom: 40px; left: 39px; right: auto; width: 2px; height: auto; }
  .wl-flow::after { transform: scaleY(0); transform-origin: top; }
  .wl-flow.is-in::after { transform: scaleY(1); }
  .wl-flow__step { grid-template-columns: 80px minmax(0, 1fr); column-gap: 20px; row-gap: 6px; justify-items: start; text-align: left; }
  .wl-flow__node { grid-row: span 2; margin-bottom: 0; }
  .wl-flow h3 { align-self: end; padding-top: 14px; }
  .wl-flow p { max-width: none; }
  .wl-flow__step:not(:last-child)::after { top: auto; bottom: calc(-1 * var(--gap) / 2 - 6px); left: 35px; transform: rotate(135deg); }
  .wl-ba__track { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 960px) {
  .wl-inc__grid, .wl-inc__grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-inc__grid--5 .wl-inc__card, .wl-inc__grid--5 .wl-inc__card:nth-child(4), .wl-inc__grid--5 .wl-inc__card:nth-child(5) { grid-column: auto; }
  .wl-inc__grid--5 .wl-inc__card:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .wl-hero__grid, .wl-why__grid, .wl-results__head { grid-template-columns: minmax(0, 1fr); }
  .wl-art { max-width: 420px; margin-top: 8px; }
}
@media (max-width: 640px) {
  .wl-gallery__item figcaption { font-size: 12.5px; gap: 6px; flex-direction: column; align-items: center; }
  .wl-inc__grid, .wl-inc__grid--5 { grid-template-columns: minmax(0, 1fr); }
  .wl-inc__grid--5 .wl-inc__card:nth-child(5) { grid-column: auto; }
  .wl-ba__track { grid-auto-columns: 86%; gap: 14px; }
  .wl-hero__actions .sl-btn, .wl-steps__cta .sl-btn { flex: 1 1 100%; }
  .wl-steps__cta .sl-btn, .wl-cta .sl-btn { white-space: normal; height: auto; min-height: 52px; padding-block: 12px; text-align: center; line-height: 1.35; }
  .wl-chip { font-size: 12.5px; padding: 8px 12px 8px 8px; }
  .wl-chip .wl-ic { width: 30px; height: 30px; }
  .wl-chip--2 { right: -2%; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-hero__text > *, .wl-chip, .wl-art__ring, .wl-needle, .wl-progress { animation: none; }
  .wl-gallery__ph img { transition: none; }
  .wl-flow .wl-flow__step, .wl-flow.is-in .wl-flow__step { opacity: 1; animation: none; }
  .wl-flow::after { transform: none; transition: none; }
  .wl-reveal { opacity: 1; animation: none; }
  .wl-inc__card::after { transition: none; }
}
