/* Before/after slider + parent quote (Guy 23.11, Nova). Shared by both home pages (Fable /b/ and the previous home).
   Only Guy's own daughters, Aria and Asia (his consent). Assets: /assets/before-after/*-v1.webp. Script: /js/before-after.js */
.ba { --ba-ink: #221E4A; --ba-muted: #5B577A; --ba-purple: #534AB7; --ba-gold: #FAC775; --ba-night: #1B1740;
  background: linear-gradient(180deg, #FFF8EE 0%, #FFFDF9 100%); padding: 40px 0 48px; color: var(--ba-ink); }
.ba-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; display: grid; gap: 18px; grid-template-areas: "head" "media" "foot"; }
.ba-head { grid-area: head; } .ba-media { grid-area: media; } .ba-foot { grid-area: foot; }
.ba-head p:last-of-type { margin-bottom: 6px; }
.ba-foot .ba-note { margin-bottom: 16px; }
.ba-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ba-purple); margin-bottom: 10px; }
.ba-kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: #EF9F27; }
.ba h2 { font-family: "Fredoka", "Trebuchet MS", sans-serif; font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.12; margin: 0 0 .4em; color: var(--ba-ink); }
.ba-copy p { color: var(--ba-muted); font-size: 1.05rem; margin: 0 0 14px; max-width: 46ch; }
.ba-tabs { display: inline-flex; gap: 6px; padding: 5px; background: #fff; border: 1px solid #E8E3F5; border-radius: 999px; margin: 4px 0 0; }
.ba-tab { font: 700 .95rem "Nunito", "Segoe UI", sans-serif; color: var(--ba-muted); background: transparent; border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; min-height: 40px; }
.ba-tab[aria-pressed="true"] { background: var(--ba-purple); color: #fff; }
.ba-tab:focus-visible { outline: 3px solid var(--ba-gold); outline-offset: 2px; }
.ba-note { font-size: .88rem !important; color: var(--ba-muted); }
.ba-cta { display: inline-flex; align-items: center; justify-content: center; font: 600 1.05rem "Fredoka", "Trebuchet MS", sans-serif; text-decoration: none; color: var(--ba-night);
  padding: 15px 26px; border-radius: 999px; border: 2px solid #E9A440; background: linear-gradient(180deg, #FFD58C 0%, #FAC775 55%, #F3B556 100%); box-shadow: 0 8px 24px rgba(239,159,39,.3); }

/* The slider */
.ba-frame { position: relative; margin: 0 auto; width: 100%; max-width: 440px; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(38,33,92,.22); border: 5px solid #fff; background: #EEEDFE; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.ba-before { position: absolute; inset: 0; background: #EEEDFE; clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--ba-pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.25); pointer-events: none; }
.ba-handle { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(27,23,64,.3);
  display: grid; place-items: center; color: var(--ba-purple); }
.ba-handle svg { width: 26px; height: 26px; }
.ba-label { position: absolute; bottom: 12px; padding: 6px 11px; border-radius: 999px; font: 800 .8rem "Nunito", "Segoe UI", sans-serif; color: #fff; background: rgba(27,23,64,.72); backdrop-filter: blur(6px); pointer-events: none; transition: opacity .2s; }
.ba-label--before { left: 12px; }
.ba-label--after { right: 12px; background: rgba(83,74,183,.85); }
.ba-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ba-frame:focus-within { outline: 3px solid var(--ba-gold); outline-offset: 3px; }
.ba-frame.is-hint .ba-before, .ba-frame.is-hint .ba-line { transition: clip-path .7s ease-in-out, left .7s ease-in-out; }
.ba-caption { text-align: center; font-size: .85rem; color: var(--ba-muted); margin: 10px 0 0; }

@media (min-width: 900px) {
  .ba { padding: 72px 0; }
  .ba-wrap { grid-template-columns: 1fr 440px; grid-template-areas: "head media" "foot media"; column-gap: 64px; row-gap: 20px; }
  .ba-head { align-self: end; } .ba-foot { align-self: start; }
}
@media (max-width: 899px) { .ba-copy { text-align: center; } .ba-copy p { margin-left: auto; margin-right: auto; } }
@media (prefers-reduced-motion: reduce) { .ba-frame.is-hint .ba-before, .ba-frame.is-hint .ba-line { transition: none; } }

/* A real parent's words next to the main button */
.ba-quote { margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; max-width: 520px; font-size: .95rem; line-height: 1.45; }
.ba-quote blockquote { margin: 0 0 6px; font-style: italic; }
.ba-quote figcaption { font-size: .85rem; font-weight: 700; }
.ba-quote figcaption span { font-weight: 600; opacity: .85; }
.ba-quote a { font-weight: 800; white-space: nowrap; }
.ba-quote--dark { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #F3F1FF; }
.ba-quote--dark a { color: #FAC775; }
.ba-quote--light { background: #fff; border: 1px solid #E6E1F5; color: #2A2540; box-shadow: 0 6px 18px rgba(38,33,92,.06); }
.ba-quote--light a { color: #534AB7; }
