/* ==========================================================================
   Home page only. Shared pieces (buttons, cards, carouselâ€¦) are in common.css.
   ========================================================================== */

.page-home { background: #fff; }

/* Soft blue swirl used behind several sections */
.page-home .section { isolation: isolate; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 36px;
    background: linear-gradient(180deg, #f6f9fe 0%, #fbfdff 70%, #fff 100%);
}
.hero__visual {
    position: absolute;
    top: 0;
    /* Sized and placed as in the design at 1440px: 0.77 of the photo, left edge at 291px. */
    left: calc(50% - 429px);
    width: 1143px;
    z-index: 0;
    pointer-events: none;
    /* Fades: in from the left under the copy, out at the bottom, and out at the top so the header
       links stay readable over the photo. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(180deg, #000 70%, transparent 100%), linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .15) 60px, #000 150px);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(180deg, #000 70%, transparent 100%), linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .15) 60px, #000 150px);
    mask-composite: intersect;
}
/* Wider than the design: keep the photo's left edge where it is and let it run to the screen's right edge. */
@media (min-width: 1441px) {
    .hero__visual { right: 0; width: auto; }
}
/* Narrower: pin the photo's right edge to the screen so the doctor is never cut off; its empty
   left side slides under the (faded) copy instead. */
@media (min-width: 992px) and (max-width: 1440px) {
    .hero__visual { left: auto; right: 0; }
}
/* Small laptops: a slightly smaller photo keeps the woman clear of the feature labels. */
@media (min-width: 992px) and (max-width: 1200px) {
    .hero__visual { width: 960px; }
}
.hero__visual img { width: 100%; height: auto; animation: hero-drift 18s ease-in-out infinite alternate; transform-origin: 70% 40%; }
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.035) translateX(-8px); } }

.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 600px; }
.hero__title { margin-top: 2px; }
.hero__text { margin-top: 24px; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.hero__features { display: flex; align-items: center; margin-top: 30px; }
.hero__features li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 24px;
    margin-right: 24px;
    border-right: 1px solid #b9cdea;
    font-size: 14.5px;
    line-height: 1.3;
    color: var(--ink);
}
.hero__features li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__features .icon-circle { width: 50px; height: 50px; }

.hero__search { max-width: 1036px; margin: 46px auto 0; }
.hero__search-box { position: relative; }
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 74px;
    padding: 7px 8px 7px 32px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #dde7f5;
    border-radius: var(--radius-pill);
    box-shadow: 0 14px 40px rgba(26, 72, 140, .1);
    backdrop-filter: blur(8px);
    transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.search-bar:focus-within { border-color: #b8d1f7; box-shadow: 0 16px 44px rgba(10, 102, 255, .16); }
.search-bar__field { flex: 1; display: flex; align-items: center; min-width: 0; height: 100%; }
.search-bar__icon { width: 24px; height: 24px; color: var(--ink); }
.search-bar__field input {
    flex: 1;
    min-width: 0;
    height: 30px;
    margin-left: 18px;
    padding-left: 18px;
    border: 0;
    border-left: 1px solid #c7d6ec;
    outline: none;
    background: transparent;
    font-size: 16.5px;
    color: var(--ink);
}
.search-bar__field input::placeholder { color: #5b6880; }
.patient-toggle { display: flex; padding: 3px; border: 1px solid #e3eaf5; border-radius: 12px; background: #fff; }
.patient-toggle__opt { cursor: pointer; }
.patient-toggle__opt input { position: absolute; opacity: 0; pointer-events: none; }
.patient-toggle__opt span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 56px;
    padding: 5px 0 4px;
    border-radius: 9px;
    font-size: 11px;
    color: var(--ink);
    transition: background .25s var(--ease), color .25s var(--ease);
}
.patient-toggle__opt .lucide { width: 22px; height: 22px; color: var(--ink); }
.patient-toggle__opt--child .lucide { width: 18px; height: 18px; margin-top: 4px; color: var(--primary); }
.patient-toggle__opt input:checked + span { background: #e8f1ff; }
.patient-toggle__opt input:focus-visible + span { outline: 2px solid var(--primary); }
.search-bar__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    height: 58px;
    width: 178px;
    margin-left: 10px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid #dde7f5;
    box-shadow: 0 6px 16px rgba(26, 72, 140, .08);
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.search-bar__submit .lucide { width: 22px; height: 22px; }
.search-bar__submit:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-blue); }
.advanced-search {
    position: absolute;
    right: 8px;
    top: calc(100% - 2px);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 6px 28px 7px;
    background: #fff;
    border: 1px solid #e3eaf5;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    font-size: 11.5px;
    color: var(--text);
    transition: color .25s var(--ease);
}
.advanced-search .lucide { width: 13px; height: 13px; }
.advanced-search:hover { color: var(--primary); }
.advanced-search .lucide { transition: transform .3s var(--ease); }
.is-advanced .advanced-search { right: 24px; top: calc(100% - 1px); }
.is-advanced .advanced-search .lucide { transform: rotate(180deg); }

/* Advanced search: opens in place of the search bar. */
.adv-search {
    background: rgba(255, 255, 255, .96);
    border: 1px solid #dde7f5;
    border-radius: 28px;
    box-shadow: 0 14px 40px rgba(26, 72, 140, .1);
    backdrop-filter: blur(8px);
    animation: adv-open .45s var(--ease) both;
}
.adv-search[hidden], .search-bar[hidden] { display: none; }
@keyframes adv-open { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.search-bar.is-back { animation: adv-open .4s var(--ease) both; }

.adv-search__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 32px; border-bottom: 1px solid var(--line); }
.adv-search__tab { cursor: pointer; }
.adv-search__tab input { position: absolute; opacity: 0; pointer-events: none; }
.adv-search__tab span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 70px;
    font-size: 15.5px;
    font-weight: 600;
    color: #6a768c;
    transition: color .25s var(--ease);
}
.adv-search__tab span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform .3s var(--ease);
}
.adv-search__tab .lucide { width: 21px; height: 21px; }
.adv-search__tab:hover span { color: var(--ink); }
.adv-search__tab input:checked + span { color: var(--primary); }
.adv-search__tab input:checked + span::after { transform: scaleX(1); }
.adv-search__tab input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: -4px; border-radius: 8px; }

.adv-search__body { padding: 30px 32px 30px; }
.adv-search__label { display: block; font-size: 13.5px; color: var(--text); }
.adv-search__who { display: flex; gap: 28px; margin: 14px 0 30px; }
.adv-radio { display: inline-flex; align-items: center; cursor: pointer; font-size: 15.5px; color: var(--ink); }
.adv-radio input { appearance: none; width: 17px; height: 17px; margin: 0 10px 0 0; border: 1.5px solid #c5d0e0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: border-color .2s var(--ease); }
.adv-radio input::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); transform: scale(0); transition: transform .2s var(--ease); }
.adv-radio input:checked { border-color: var(--primary); }
.adv-radio input:checked::after { transform: scale(1); }
.adv-radio input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.adv-search__selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.adv-search__selects .adv-search__label { margin-bottom: 10px; }
.adv-select {
    width: 100%;
    height: 50px;
    padding: 0 40px 0 20px;
    border: 1px solid #d6e0ee;
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%231c2b47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none;
    font: inherit;
    font-size: 15.5px;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.adv-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10, 102, 255, .12); }
.adv-select:disabled { color: #8c97aa; background-color: #fafcff; cursor: not-allowed; }

.adv-search__query {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 7px 8px 7px 22px;
    border: 1px solid #d6e0ee;
    border-radius: 12px;
    background: #f8fbff;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.adv-search__query:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10, 102, 255, .12); }
.adv-search__field { flex: 1; display: flex; align-items: center; gap: 16px; min-width: 0; }
.adv-search__field .lucide { flex: none; width: 21px; height: 21px; color: #6a768c; }
.adv-search__field input { flex: 1; min-width: 0; height: 52px; border: 0; outline: none; background: transparent; font-size: 15.5px; color: var(--ink); }
.adv-search__field input::placeholder { color: #5b6880; }
.adv-search__describe {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 20px;
    border-radius: 10px;
    background: #eaf2fe;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary-600);
    white-space: nowrap;
    transition: background .25s var(--ease);
}
.adv-search__describe .lucide { width: 21px; height: 21px; }
.adv-search__describe:hover { background: #dbe9fd; }
.adv-search__submit { width: 100%; height: 52px; margin-top: 26px; border-radius: 12px; font-size: 16.5px; gap: 24px; }
.adv-search__secure { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; font-size: 13.5px; color: var(--text); }
.adv-search__secure .lucide { width: 20px; height: 20px; color: var(--ink); margin-right: 4px; }
.adv-search__secure span + span::before { content: '\00b7'; margin-right: 12px; color: #a7b2c4; }
.is-advanced ~ .hero__secure { display: none; }

.hero__proof { display: flex; align-items: center; gap: 18px; margin: 30px 0 0 0; font-size: 13.5px; color: var(--text); }
.hero__proof strong { color: var(--navy); font-weight: 600; }
.avatar-stack { display: flex; }
.avatar-stack span {
    width: 34px; height: 34px;
    display: grid;
    place-items: center;
    margin-left: -6px;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid #fff;
    animation: float-soft 4s ease-in-out infinite;
}
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack span:nth-child(2) { animation-delay: .3s; }
.avatar-stack span:nth-child(3) { animation-delay: .6s; }
.avatar-stack span:nth-child(4) { animation-delay: .9s; }
.hero__secure { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; font-size: 13px; color: var(--text); }
.hero__secure .lucide { width: 20px; height: 20px; color: var(--ink); }

/* Mia floating bar */
.mia-bar {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 28px;
    padding: 18px 26px 18px 22px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid #dfe8f5;
    border-radius: 24px;
    box-shadow: 0 10px 34px rgba(26, 72, 140, .07);
    backdrop-filter: blur(10px);
}
.mia-bar__avatar {
    width: 84px; height: 64px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #eef5fc);
    box-shadow: inset 0 0 0 1px #e8eef7;
    overflow: hidden;
}
.mia-bar__avatar img { width: 100%; height: 135%; object-fit: cover; object-position: 50% 0; animation: float-soft 3.5s ease-in-out infinite; }
.mia-bar__text h2 { font-family: var(--font-body); font-size: 24.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); line-height: 1.3; }
.mia-bar__text p { font-size: 16.5px; color: var(--text); margin-top: 4px; }
.mia-bar__btn { margin-left: auto; height: 52px; width: 196px; font-size: 17px; }
.mia-bar__btn .lucide { color: var(--navy); }

/* ---------- Journey ---------- */
.journey { padding-top: 70px; padding-bottom: 30px; }
.journey .h-section { font-size: clamp(28px, 2.63vw, 37.8px); letter-spacing: -0.005em; }
.journey .lead { font-size: 17.5px; margin-top: 6px; }
.journey__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 34px 0 0;
    padding: 0 10px;
    perspective: 1400px;
}
.journey__line {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 70px;
    z-index: 2;
    pointer-events: none;
    /* Holes for the number circles are set by home.js; every hole must apply, so intersect. */
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
.journey__route {
    fill: none;
    stroke: #3cc8e2;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2s var(--ease) .4s;
}
.journey__track.is-in .journey__route { stroke-dashoffset: 0; transition-delay: calc(5 * var(--deal) + .2s); }
.journey-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 354px;
    margin-top: 32px;
    padding: 50px 20px 18px 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid #e7eef8;
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(26, 72, 140, .09);
    transform-origin: center;
}
.journey-card:nth-child(odd) { --fold: 5deg; }
.journey-card:nth-child(even) { --fold: -5deg; }
/* Cards are dealt in one by one, left to right, the first time the section scrolls into view. */
.journey__track { --deal: .28s; }
.journey-card {
    opacity: 0;
    transform: translateX(-90px) rotateY(var(--fold)) scale(.9);
    transition: opacity .6s var(--ease), transform .8s cubic-bezier(.2, 1.25, .4, 1), box-shadow .3s var(--ease);
    transition-delay: calc(var(--i) * var(--deal));
}
.journey__track.is-in .journey-card { opacity: 1; transform: rotateY(var(--fold)); }
.journey-card__num { transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * var(--deal) + .45s); }
.journey__track.is-in .journey-card__num { transform: scale(1); }
.journey__track.is-done .journey-card, .journey__track.is-done .journey-card__num { transition-delay: 0s; }
.journey-card + .journey-card { margin-left: -12px; }
.journey__track.is-in .journey-card:hover { transform: rotateY(0) translateY(-8px); box-shadow: 0 26px 50px rgba(26, 72, 140, .16); z-index: 3; }
.journey-card__num {
    position: absolute;
    top: -26px;
    left: 50%;
    width: 54px; height: 54px;
    margin-left: -27px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(26, 72, 140, .12);
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    z-index: 3;
}
.journey-card:hover .journey-card__num { animation: pulse-ring 1.2s ease-out; }
.journey-card__title { font-size: 23.2px; font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; color: var(--navy); }
.journey-card__text { margin-top: 8px; font-size: 14.5px; line-height: 1.4; color: #5a6a86; max-width: 230px; }
.journey-card__art {
    width: 100%;
    max-width: 250px;
    margin: auto auto 0;
    padding-top: 16px;
    mix-blend-mode: multiply;
    transition: transform .5s var(--ease);
}
.journey-card:hover .journey-card__art { transform: translateY(-6px) scale(1.03); }
.journey-card__go {
    position: absolute;
    right: 20px; bottom: 18px;
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 6px 14px rgba(26, 72, 140, .12);
    transition: background .3s var(--ease), color .3s var(--ease);
}
.journey-card:hover .journey-card__go { background: var(--primary); color: #fff; }

/* ---------- Doctors / hospitals ---------- */
.doctors { padding-top: 46px; }
.doctors .h-section { font-size: clamp(24px, 2.17vw, 31.3px); }
.hospitals .h-section { font-size: clamp(24px, 2.17vw, 31.3px); letter-spacing: -0.02em; }
.hospitals { padding-top: 30px; }

/* ---------- Treatments ---------- */
.treatments { padding-top: 60px; overflow: hidden; }
/* Soft wave artwork from the design on the right edge, behind the stats. */
.treatments { position: relative; isolation: isolate; }
.treatments__wave {
    position: absolute;
    top: 0; right: 0;
    height: 100%;
    width: auto;
    max-width: 30%;
    object-fit: cover;
    object-position: right center;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%);
    mask-image: linear-gradient(90deg, transparent 0, #000 40%);
}
.treatments__grid { display: grid; grid-template-columns: 750px 1fr; gap: 72px; align-items: start; }
.treatments .h-section { font-size: clamp(28px, 2.67vw, 38.5px); letter-spacing: -0.006em; }
.treatment-panel {
    position: relative;
    margin: 42px 0 0 30px;
    padding: 14px 20px 22px;
    background: #fff;
    border: 1px solid #e3ebf6;
    border-radius: 22px;
    box-shadow: 0 22px 50px rgba(26, 72, 140, .1);
    max-width: 642px;
}
/* Two cards stacked behind the panel: a blue one tipped up to the right, and a pale one
   between them tipped the other way. */
.treatment-panel { --blue-tilt: -2.3deg; --pale-tilt: 1.6deg; }
.treatment-panel::before,
.treatment-panel::after {
    content: '';
    position: absolute;
    bottom: 60px;
    border-radius: 22px;
    transform-origin: top center;
    z-index: -1;
}
.treatment-panel::before {
    left: -33px; right: 33px; top: -28px;
    background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .6) 50%, transparent 60%) no-repeat -120% 0 / 60% 100%,
                linear-gradient(90deg, #0a5ff0 0%, #1272ff 40%, #1ca0ff 75%, #5ccbff 100%);
    transform: rotate(var(--blue-tilt));
}
.treatment-panel::after {
    left: 45px; right: 16px; top: -14px;
    background: linear-gradient(180deg, #f3f8ff, #ffffff 40%);
    border: 1px solid #dbe7f7;
    transform: rotate(var(--pale-tilt));
}
.treatment-panel__tabs { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.treatment-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 4px 16px;
    border-radius: 12px 12px 0 0;
    font-size: 13.5px;
    color: #5a6a86;
    transition: color .3s var(--ease);
    z-index: 1;
}
.treatment-tab .lucide { width: 30px; height: 30px; color: var(--primary); stroke-width: 1.5; transition: transform .3s var(--ease); }
.treatment-tab:hover .lucide { transform: translateY(-3px); }
.treatment-tab::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform .35s var(--ease);
}
.treatment-tab::after { display: none; }
.treatment-tab.is-active { color: var(--navy); }
/* Light-blue box + blue line that slides to the active tab (placed by home.js). */
.tab-ink {
    position: absolute;
    top: 0; bottom: -1px; left: 0;
    width: var(--w, 20%);
    transform: translateX(var(--x, 0));
    border-radius: 12px 12px 0 0;
    background: #e9f3ff;
    box-shadow: inset 0 -3px 0 var(--primary);
    transition: transform .5s cubic-bezier(.5, 1.4, .4, 1), width .5s var(--ease);
}
.treatment-panel.is-switched .treatment-tab.is-active .lucide { animation: tab-bounce .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tab-bounce { 0% { transform: scale(.7) translateY(4px); } 60% { transform: scale(1.15) translateY(-4px); } 100% { transform: none; } }
/* After a tab click the new rows come in one by one. */
.treatment-panel.is-switched .treatment-panel__body.is-active li,
.treatment-panel.is-switched .treatment-panel__body.is-active .treatment-panel__more { animation: row-in .5s var(--ease) both; animation-delay: calc(var(--r, 0) * .07s); }
@keyframes row-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.treatment-list li + li { border-top: 1px solid var(--line); }
.treatment-list__item {
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    isolation: isolate;
    padding: 13px 14px 13px 2px;
    border-radius: 12px;
    font-size: 16.5px;
    color: var(--navy);
    transition: color .25s var(--ease), padding .35s var(--ease);
}
/* Hover: light blue fills the row from the left. */
.treatment-list__item::before {
    content: '';
    position: absolute;
    inset: 3px 0;
    z-index: -1;
    border-radius: 12px;
    background: linear-gradient(90deg, #e6f0ff, #f3f8ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}
.treatment-list__item:hover::before { transform: scaleX(1); }
.treatment-list__item .icon-circle { transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.treatment-list__item .icon-circle .lucide { transition: color .3s var(--ease); }
.treatment-list__item:hover .icon-circle { background: var(--primary); box-shadow: var(--shadow-blue); transform: scale(1.06); }
.treatment-list__item:hover .icon-circle .lucide { color: #fff; }
.treatment-list__item .icon-circle { width: 48px; height: 48px; }
.treatment-list__item .icon-circle .lucide { width: 22px; height: 22px; }
.treatment-list__chev { margin-left: auto; width: 18px; height: 18px; color: #5a6a86; transition: transform .3s var(--ease), color .3s var(--ease); }
.treatment-list__item:hover { color: var(--primary); padding-left: 12px; }
.treatment-list__item:hover .treatment-list__chev { transform: translateX(8px); color: var(--primary); }
.treatment-panel__more { display: flex; justify-content: flex-end; margin: 22px 4px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15.5px; }

/* The right column runs as tall as the panel so its button can sit level with the panel's bottom. */
.treatments__right { display: flex; flex-direction: column; align-self: stretch; padding-top: 108px; }
.treatments__title { font-size: clamp(26px, 2.41vw, 34.7px); line-height: 1.09; letter-spacing: 0; }
.treatments__text { margin-top: 18px; font-size: 18px; line-height: 1.45; color: #5a6a86; max-width: 470px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; max-width: 470px; }
.stat { position: relative; display: flex; align-items: center; gap: 20px; padding: 20px 0 22px; }
.stat:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 24px; }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat > div::before { content: ''; display: block; width: 22px; height: 2px; background: var(--cyan); margin-bottom: 10px; }

/*
 * Card unfold: the first time the section scrolls into view (home.js adds .is-in) the card rises,
 * the blue plate slides out, the gradient bar opens with a light sweep and the rows follow.
 * The stats grow their cyan dash and pulse their icons.
 */
.treatments .treatment-panel { opacity: 0; transform: translateY(36px); }
.treatments .treatment-panel::before { opacity: 0; transform: translateX(60px) scaleX(.6) rotate(var(--blue-tilt)); transform-origin: right; }
.treatments .treatment-panel::after { clip-path: inset(0 100% 0 0); }
.treatments .treatment-panel__body.is-active li,
.treatments .treatment-panel__body.is-active .treatment-panel__more { opacity: 0; transform: translateY(14px); }
.treatments .stat > div::before { width: 0; }
.treatments.is-in .treatment-panel { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.treatments.is-in .treatment-panel::before { opacity: 1; transform: rotate(var(--blue-tilt)); transition: opacity .5s var(--ease) .35s, transform .8s cubic-bezier(.2, 1.2, .4, 1) .35s; animation: bar-shine 1.4s var(--ease) 1.4s both; }
.treatments.is-in .treatment-panel::after { clip-path: inset(0 0 0 0); transition: clip-path .9s cubic-bezier(.7, 0, .2, 1) .55s; }
@keyframes bar-shine { to { background-position: 220% 0, 0 0; } }
.treatments.is-in .treatment-panel__body.is-active li,
.treatments.is-in .treatment-panel__body.is-active .treatment-panel__more { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(.8s + var(--r, 0) * .1s); }
.treatments.is-in .stat > div::before { width: 22px; transition: width .8s var(--ease) calc(var(--s, 0) * .2s + .5s); }
.treatments.is-in .stat .icon-circle { animation: pulse-ring 2.4s ease-out infinite; animation-delay: calc(var(--s, 0) * .6s + 1s); }
.stat .icon-circle { width: 56px; height: 56px; }
.stat__value { display: block; font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: -0.01em; }
.stat__label { display: block; margin-top: 6px; font-size: 13px; color: #5a6a86; }
.treatments__cta { margin-top: 38px; height: 48px; width: 276px; font-size: 15px; gap: 30px; }
/* Side by side: drop the button so its bottom edge lines up with the panel's. */
@media (min-width: 992px) {
    .treatments__cta { margin: auto 0 0; }
}
.treatments__cta .lucide { color: var(--navy); }

/* ---------- Trust bar ---------- */
.trust { padding-top: 46px; }
.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 26px 24px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid #e3ebf6;
    border-radius: 26px;
    box-shadow: 0 16px 40px rgba(26, 72, 140, .08);
}
.trust-item { display: flex; align-items: center; gap: 22px; padding: 0 20px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .icon-circle { width: 52px; height: 52px; transition: transform .4s var(--ease); }
.trust-item:hover .icon-circle { transform: rotate(-8deg) scale(1.08); }
.trust-item__title { font-family: var(--font-heading); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.trust-item__text { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* ---------- Mia ---------- */
.mia { padding-top: 66px; overflow: hidden; }
.mia__head { opacity: 0; transform: translateY(24px); }
.mia.is-in .mia__head { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); }
.mia::before {
    content: '';
    position: absolute;
    right: -6%; top: -4%;
    width: 50%; height: 50%;
    z-index: -1;
    background: radial-gradient(50% 50% at 70% 50%, rgba(122, 196, 255, .14), transparent 70%);
}
.mia .h-section { font-size: clamp(28px, 2.7vw, 38.8px); letter-spacing: -0.015em; }
.mia .lead { font-size: 18.5px; margin-top: 6px; }
.mia__grid { display: grid; grid-template-columns: 500px 1fr; gap: 56px; margin-top: 36px; align-items: start; }
.mia__stage { position: relative; width: 480px; height: 430px; }
.mia__orbit {
    position: absolute;
    left: -14px; top: 0;
    width: 446px; height: 446px;
    border: 1.5px solid #8fdcea;
    border-radius: 50%;
    border-right-color: rgba(143, 220, 234, .5);
    animation: spin-slow 40s linear infinite;
}
.mia__orbit::before, .mia__orbit::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #d7f3f8;
    border: 1.5px solid #8fdcea;
}
.mia__orbit::before { top: 2px; left: 60%; }
.mia__orbit::after { top: 52%; right: -9px; width: 20px; height: 20px; }
.mia__robot { position: absolute; left: -6px; top: 22px; width: 470px; filter: drop-shadow(0 24px 30px rgba(19, 80, 120, .16)); animation: float 5s ease-in-out infinite; }
.mia__bubble {
    position: absolute;
    left: 370px; top: 30px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 22px 22px 22px 6px;
    box-shadow: 0 10px 26px rgba(26, 72, 140, .1);
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--ink);
    white-space: nowrap;
    animation: float-soft 4s ease-in-out infinite .6s;
}
.mia__steps { position: relative; margin: 6px 0 0 34px; display: grid; gap: 15px; }
.mia__steps::before { content: ''; position: absolute; left: 21px; top: 30px; bottom: 30px; border-left: 1.5px dashed #c9d9ee; }
.mia__steps li { position: relative; display: flex; align-items: center; gap: 22px; font-size: 16px; color: var(--ink); }

/*
 * Mia motion. home.js adds .is-in the first time the section scrolls into view:
 * the robot rises in front of a breathing halo, the orbit opens, the bubble "types" its message,
 * the steps come in and then take turns being highlighted (with a blue line showing progress).
 */
.mia__stage::before {
    content: '';
    position: absolute;
    left: 12%; top: 14%;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28, 198, 214, .26), rgba(10, 102, 255, .07) 55%, transparent 70%);
    animation: halo 4.5s ease-in-out infinite;
}
@keyframes halo { 50% { transform: scale(1.12); opacity: .65; } }
.mia__stage { opacity: 0; transform: translate(100vw, 260px) rotate(18deg) scale(.7); }
/* ...and the form from the bottom-left corner, so the two cross on the way to their places. */
.mia-form { position: relative; z-index: 1; opacity: 0; transform: translate(-100vw, 260px) rotate(-12deg) scale(.85); }
.mia.is-in .mia-form { opacity: 1; transform: none; transition: opacity .35s var(--ease) .1s, transform 1.5s cubic-bezier(.16, 1, .3, 1) .1s; }
.mia__orbit { opacity: 0; scale: .7; }
.mia__bubble { opacity: 0; scale: .6; transform-origin: left bottom; }
.mia.is-in .mia__stage { opacity: 1; transform: none; transition: opacity .35s var(--ease), transform 1.5s cubic-bezier(.16, 1, .3, 1); }
.mia.is-in .mia__orbit { opacity: 1; scale: 1; transition: opacity 1s var(--ease) .3s, scale 1.3s var(--ease) .3s; }
.mia.is-in .mia__bubble { opacity: 1; scale: 1; transition: opacity .4s var(--ease) .9s, scale .55s cubic-bezier(.3, 1.6, .5, 1) .9s; }

.mia__typing { display: none; align-items: center; gap: 5px; height: 19px; padding: 0 4px; }
.mia__typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fb3cf; animation: typing 1s ease-in-out infinite; }
.mia__typing i:nth-child(2) { animation-delay: .15s; }
.mia__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.mia__bubble.is-typing .mia__typing { display: inline-flex; }
.mia__bubble.is-typing .mia__bubble-text { display: none; }
.mia__bubble.is-writing .mia__bubble-text::after {
    content: '';
    display: inline-block;
    width: 1.5px; height: 1em;
    margin-left: 2px;
    vertical-align: -2px;
    background: var(--primary);
    animation: caret .9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.mia__steps li { opacity: 0; transform: translateX(-16px); }
.mia.is-in .mia__steps li { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(1.1s + var(--k, 0) * .18s); }
.mia__steps::before { transform: scaleY(0); transform-origin: top; }
.mia.is-in .mia__steps::before { transform: none; transition: transform 1s var(--ease) 1s; }
.mia__steps::after {
    content: '';
    position: absolute;
    left: 21px; top: 30px;
    height: calc((100% - 60px) * var(--p, 0));
    border-left: 2px solid var(--primary);
    transition: height .7s var(--ease);
}
.mia__steps .icon-circle { transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); }
.mia__steps .icon-circle .lucide { transition: color .4s var(--ease); }
.mia__steps li.is-active { color: var(--navy); font-weight: 600; }
.mia__steps li.is-active .icon-circle { background: var(--primary); box-shadow: var(--shadow-blue); transform: scale(1.08); }
.mia__steps li.is-active .icon-circle .lucide { color: #fff; }

.mia-form { padding: 30px 30px 28px; border-radius: 24px; box-shadow: 0 18px 46px rgba(26, 72, 140, .08); }
.mia-form__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mia-choice { padding: 22px 20px 20px 24px; align-items: center; gap: 22px; border-radius: 12px; }
.mia-choice strong { display: block; font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -0.015em; }
.mia-choice small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.mia-choice .radio-dot { align-self: flex-start; margin-top: 4px; }
.mia-choice__icon { width: 40px; height: 40px; color: var(--primary); stroke-width: 1.5; }
.mia-choice__circle { width: 54px; height: 54px; margin-left: -6px; color: var(--navy); }
.mia-form__label { display: block; margin: 28px 0 12px; font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--navy); }
.mia-form__label--inline { margin: 0; }
.mia-form__textarea { position: relative; }
.mia-form__textarea textarea {
    width: 100%;
    min-height: 148px;
    padding: 16px 18px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 14.5px;
    color: var(--ink);
    outline: none;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.mia-form__textarea textarea::placeholder { color: #8692a6; }
.mia-form__textarea textarea:focus { border-color: #a9c8f5; box-shadow: 0 0 0 4px rgba(10, 102, 255, .08); }
.mia-form__mic { position: absolute; right: 14px; bottom: 18px; width: 40px; height: 40px; }
.mia-form__mic .lucide { width: 18px; height: 18px; }
.mia-form__who { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.mia-form__who .mia-form__label--inline { margin-right: 10px; }
.seg { gap: 14px; padding: 0 24px 0 20px; height: 44px; font-size: 15px; color: var(--ink); }
.seg .lucide { width: 22px; height: 22px; color: var(--primary); }
.seg--child .lucide { width: 18px; height: 18px; }
.mia-form__hint { margin-left: auto; font-size: 13px; color: var(--muted); }
.mia-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.mia-form__summary { display: inline-flex; align-items: center; gap: 16px; font-size: 14.5px; color: var(--ink); }
.mia-form__summary .lucide { width: 22px; height: 22px; color: var(--muted); }
.mia-form .btn--lg { height: 46px; padding: 0 28px; gap: 30px; font-size: 15px; }

.mia__note { display: flex; align-items: center; gap: 22px; margin-top: 36px; padding: 18px 10px 0; border-top: 1px solid #c8d9f1; }
.mia__note > .lucide { width: 26px; height: 26px; color: var(--muted); }
.mia__note strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.mia__note span { font-size: 12.5px; color: var(--muted); }
.mia__urgent { margin-left: auto; padding-left: 26px; border-left: 1px solid #c8d9f1; font-size: 12.5px; color: var(--muted); }

/*
 * Soft waves cut from the design, pinned to a section's right edge (trust bar, Mia, Destinations/Stories).
 * Mia/Stories pieces are 44.5% wide = 1204 of the design's 2704px. The bottom Mia piece and the top Destinations piece meet
 * at the section boundary so the wave reads as one.
 */
.trust, .mia, .destinations { position: relative; isolation: isolate; }
.section-wave {
    position: absolute;
    right: 0;
    width: 44.5%;
    height: auto;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: multiply;
}
.section-wave--top {
    top: 24px;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
    mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.section-wave--bottom {
    bottom: 0;
    /* the crest was cut flat under the text in the design: fade it in from the top */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 85%);
    mask-image: linear-gradient(180deg, transparent 0, #000 85%);
}
/* Trust bar: 404 of 2704px wide, kept inside its section (so its white never covers the hospitals above). */
.section-wave--trust {
    bottom: 0;
    width: 14.9%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0, #000 30%);
}
.section-wave--top-edge {
    top: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
    mask-image: linear-gradient(180deg, #000 40%, transparent);
}
/* ---------- Destinations & stories ---------- */
.destinations { padding-top: 60px; }
.destinations__grid { display: grid; grid-template-columns: 770px 1fr; gap: 52px; }
.destinations .h-section { font-size: clamp(24px, 2.03vw, 29.2px); letter-spacing: -0.015em; }
.library .h-section { font-size: clamp(22px, 1.84vw, 26.5px); letter-spacing: -0.017em; }
.faq .h-section { font-size: clamp(21px, 1.63vw, 23.5px); }
.dest-map { position: relative; margin-top: 26px; }
.dest-map__img { width: 100%; height: auto; opacity: .95; }
.dest-card {
    position: absolute;
    left: var(--x); top: var(--y);
    width: 24.4%;
    min-height: 26%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 14px;
    background: #fff;
    border: 1px solid #e3ebf6;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(26, 72, 140, .07);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.dest-card__flag { width: 32px; height: 22px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.dest-card strong { display: block; font-size: 14px; white-space: nowrap; font-weight: 600; color: var(--navy); line-height: 1.3; }
.dest-card small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.stories { min-width: 0; }
.stories__head { margin-bottom: 22px; padding-top: 6px; }
.stories__carousel { --per-view: 2; --gap: 16px; }
.stories__nav { position: absolute; right: 0; top: -70px; display: flex; gap: 14px; }
.stories__nav .icon-btn { width: 42px; height: 42px; }
.story-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 316px;
    padding: 16px 16px 18px;
    background: #fff;
    border: 1px solid #e3ebf6;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(26, 72, 140, .06);
    position: relative;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.story-card__person { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.story-card__person img { width: 66px; height: 74px; object-fit: cover; border-radius: 10px; }
.story-card__person h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.story-card__person .flag-label { font-size: 12px; gap: 8px; white-space: nowrap; }
.story-card__person .flag { width: 18px; height: 12px; }
.story-card .chip--soft-blue { font-size: 12px; border-radius: 10px; }
.story-card blockquote { margin: 18px 0 0; font-size: 15px; line-height: 1.55; color: #5a6a86; }
.story-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; width: 100%; margin-top: auto; padding-top: 14px; font-size: 12px; }
.story-card__foot span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.story-card__foot .lucide { width: 18px; height: 18px; color: #2bb5a7; }
.story-card__foot a { color: var(--primary-600); font-weight: 500; }

/*
 * Destinations motion (home.js adds .is-in once): the map surfaces, the country cards pop in one by one
 * with a flag wave, pins drop onto each country and a line runs from each pin to its card with a glowing dot travelling along it.
 */
.dest-map__img { opacity: 0; transform: scale(.96); }
.dest-map.is-in .dest-map__img { opacity: .95; transform: none; transition: opacity 1s var(--ease), transform 1.4s var(--ease); }
.dest-card { z-index: 1; opacity: 0; transform: translateY(18px) scale(.9); filter: blur(6px); }
.dest-map.is-in .dest-card {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity .6s var(--ease), transform .7s cubic-bezier(.2, 1.3, .4, 1), filter .6s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    transition-delay: calc(.3s + var(--k, 0) * .15s);
}
.dest-map.is-in .dest-card__flag { animation: flag-wave .8s ease-in-out calc(.8s + var(--k, 0) * .15s); }
.dest-map.is-done .dest-card { transition-delay: 0s; }
.dest-map.is-done .dest-card:hover { transform: translateY(-5px); border-color: #b9d3fb; box-shadow: 0 16px 30px rgba(10, 102, 255, .14); }
.dest-map.is-done .dest-card:hover .dest-card__flag { animation: flag-wave .8s ease-in-out; }
@keyframes flag-wave { 25% { transform: rotate(-8deg) scale(1.12); } 60% { transform: rotate(6deg) scale(1.12); } 100% { transform: none; } }

.dest-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dest-route { fill: none; stroke: #3d9cf0; stroke-width: 2; stroke-dasharray: 5 7; opacity: 0; animation: route-flow 1.2s linear infinite; }
.dest-map.is-in .dest-route { opacity: .8; transition: opacity 1s var(--ease) 1.3s; }@keyframes route-flow { to { stroke-dashoffset: -24; } }
.dest-plane { fill: var(--primary); opacity: 0; filter: drop-shadow(0 0 4px rgba(10, 102, 255, .8)); }
.dest-plane--halo { fill: rgba(10, 102, 255, .18); filter: none; }
.dest-map.is-in .dest-plane { opacity: 1; transition: opacity .6s var(--ease) 1.6s; }

/*
 * Stories motion: cards flip up one after another, the quote fades in word by word, the avatar pops
 * and the verified tick draws itself. Hover lifts the card and slides in a large quote mark.
 */
.stories__carousel .story-card { opacity: 0; transform: perspective(900px) rotateX(-22deg) translateY(30px); transform-origin: top center; }
.stories__carousel.is-in .story-card { opacity: 1; transform: none; transition: opacity .7s var(--ease) calc(var(--i, 0) * .25s), transform 1s cubic-bezier(.2, 1.1, .4, 1) calc(var(--i, 0) * .25s), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.story-card__person img { transform: scale(.7); opacity: 0; }
.stories__carousel.is-in .story-card__person img { transform: none; opacity: 1; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i, 0) * .25s + .35s), opacity .4s var(--ease) calc(var(--i, 0) * .25s + .35s); }
.story-card blockquote .w { display: inline-block; opacity: 0; filter: blur(5px); transform: translateY(6px); }
.stories__carousel.is-in .story-card blockquote .w { opacity: 1; filter: none; transform: none; transition: opacity .5s var(--ease), filter .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * .25s + .6s + var(--w, 0) * .035s); }
.story-card__foot .lucide * { stroke-dasharray: 70; stroke-dashoffset: 70; }
.stories__carousel.is-in .story-card__foot .lucide * { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) calc(var(--i, 0) * .25s + 1.4s); }
.stories__carousel.is-done .story-card, .stories__carousel.is-done .story-card * { transition-delay: 0s; }
.story-card::after {
    content: '\201D';
    position: absolute;
    right: 16px; top: -6px;
    font-family: Georgia, serif;
    font-size: 96px;
    line-height: 1;
    color: var(--primary);
    opacity: 0;
    transform: translate(10px, -6px);
    transition: opacity .4s var(--ease), transform .5s var(--ease);
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .stories__carousel.is-done .story-card:hover { transform: translateY(-6px); border-color: #cfe0fb; box-shadow: 0 18px 36px rgba(26, 72, 140, .13); }
    .story-card:hover::after { opacity: .1; transform: none; }
    .story-card__person img { transition: transform .4s var(--ease); }
    .stories__carousel.is-done .story-card:hover .story-card__person img { transform: scale(1.06); }
}

/* ---------- Library & FAQ ---------- */
.library { position: relative; isolation: isolate; padding-top: 34px; padding-bottom: 20px; overflow-x: clip; }
.library__swoosh {
    position: absolute;
    /* Starts 40px down and runs that far past the section, under the footer's top margin, so it
       meets the footer. An explicit height: an svg would otherwise keep its viewBox ratio. */
    top: 40px; right: 0;
    width: 30%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: .6;
    /* A faint arc behind the FAQ heading only: fades in from the left and out well before the bottom. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, #000 0%, transparent 45%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, #000 0%, transparent 45%);
    mask-composite: intersect;
}
.library__grid { display: grid; grid-template-columns: 785px 1fr; gap: 46px; }
.library .section-head { margin-bottom: 22px; }
.library .link-arrow { font-size: 14.5px; margin-right: 0; }
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3ebf6;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.article-card__media { position: relative; aspect-ratio: 250 / 126; overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.article-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 12px 16px; min-height: 102px; }
.article-card h3 { font-size: 14.5px; font-weight: 700; line-height: 1.32; letter-spacing: -0.01em; color: var(--navy); transition: color .25s var(--ease); }
.article-card time { margin-top: auto; padding-top: 14px; font-size: 11.5px; color: var(--muted); }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.article-card:hover img { transform: scale(1.06); }
.article-card:hover h3 { color: var(--primary); }
.faq__title { margin: 0 0 30px; }

/* Article hover: a dark fade rises over the photo with a "Read article" pill. */
.article-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(13, 35, 70, .55));
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.article-card__read {
    position: absolute;
    left: 12px; bottom: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-600);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.article-card__read .lucide { width: 14px; height: 14px; }
.article-card:hover .article-card__media::after { opacity: 1; }
.article-card:hover .article-card__read { opacity: 1; transform: none; }

/*
 * Library comes in from the left, FAQ from the right (home.js adds .is-in once).
 * Article photos wipe open left to right; FAQ items slide in one after another.
 */
.articles .article-card { opacity: 0; transform: translate(-50vw, 140px) rotate(-10deg) scale(.85); filter: blur(6px); }
.articles .article-card__media { clip-path: inset(0 100% 0 0); }
.articles.is-in .article-card {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity .8s var(--ease), transform 1.2s cubic-bezier(.16, 1, .3, 1), filter .8s var(--ease), box-shadow .35s var(--ease);
    transition-delay: calc(var(--k, 0) * .15s);
}
.articles.is-in .article-card__media { clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1) calc(var(--k, 0) * .15s + .5s); }
.articles.is-done .article-card { transition-delay: 0s; }
.articles.is-done .article-card:hover { transform: translateY(-4px); }

/* FAQ list scrolls inside a fixed height (common .scroll-list), so more questions never make the section taller. */
.faq { --list-h: 272px; }

/* The whole list flies in from the bottom-right corner, then the questions slide in one by one. */
.faq .accordion { opacity: 0; transform: translate(50vw, 140px) rotate(6deg) scale(.92); }
.faq .accordion.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.faq .accordion__item { opacity: 0; transform: translateX(40px); }
.faq .accordion.is-in .accordion__item {
    opacity: 1;
    transform: none;
    transition: opacity .6s var(--ease), transform .8s cubic-bezier(.16, 1, .3, 1), box-shadow .3s var(--ease), border-color .3s var(--ease), background .4s var(--ease);
    transition-delay: calc(.35s + var(--k, 0) * .1s);
}
.faq .accordion.is-done .accordion__item { transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) {
    .faq .accordion.is-done .accordion__item:hover { transform: translateX(-4px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
    .treatments__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
    .destinations__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; }
    .library__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; }
    .mia__grid { grid-template-columns: 460px 1fr; gap: 40px; }
}
@media (max-width: 1200px) {
    .journey-card { padding: 50px 14px 18px 20px; }
    .journey-card__title { font-size: 21px; }
    .trust-bar { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
    .trust-item:nth-child(3) { border-left: 0; }
    .mia__grid { grid-template-columns: minmax(0, 1fr); }
    .mia__side { display: grid; grid-template-columns: 470px 1fr; align-items: center; gap: 20px; }
    .dest-card { padding: 10px 12px; gap: 10px; }
    .dest-card strong { font-size: 13px; }
    .dest-card small { font-size: 11.5px; }
}
@media (max-width: 1100px) {
    /* The map needs the full width here or its country cards run into each other. */
    .destinations__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 991px) {
    .hero { padding-top: 110px; }
    .hero__visual { position: relative; left: auto; right: auto; width: calc(100% + 120px); margin: -110px -60px 0; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
    .hero__visual img { height: 420px; object-fit: cover; object-position: 75% 20%; }
    .hero__inner { margin-top: -120px; }
    .hero__content { max-width: none; }
    .hero__search { margin-top: 32px; }

    .journey__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px 4px 24px; margin-top: 10px; perspective: none; scrollbar-width: none; }
    .journey__track::-webkit-scrollbar { display: none; }
    .journey__line { display: none; }
    .journey-card { flex: 0 0 260px; scroll-snap-align: start; margin-top: 0; }
    .journey-card + .journey-card { margin-left: 0; }
    .journey-card { transform: translateX(-60px) scale(.94); }
    .journey__track.is-in .journey-card { transform: none; }

    .treatments__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .treatment-panel { max-width: none; }
    .treatments__right { padding-top: 30px; }
    .stats-grid, .treatments__text { max-width: none; }

    .destinations__grid, .library__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .stories__nav { top: -66px; }
    .mia__side { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
    .mia__steps { justify-self: center; grid-template-columns: repeat(3, auto); gap: 28px; margin: 10px 0 0; }
    .mia__steps::before, .mia__steps::after { display: none; }
    .mia__steps li { gap: 12px; font-size: 15px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    /* Tablets: like desktop, the copy starts right under the header with the photo on the right. */
    .hero { padding-top: calc(var(--header-h) + 28px); }
    .hero__visual {
        position: absolute;
        top: 0; right: 0; left: auto;
        width: 60%;
        margin: 0;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(180deg, #000 65%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(180deg, #000 65%, transparent 100%);
        mask-composite: intersect;
    }
    /* Crop from the photo's right edge so the doctor isn't cut off; the woman stays in view too. */
    .hero__visual img { height: 460px; object-fit: cover; object-position: 100% 30%; }
    .hero__inner { margin-top: 0; }
    .hero .eyebrow, .hero__title, .hero__text { max-width: 54%; }
    .hero__text br { display: none; }
}
@media (max-width: 767px) {
    .adv-search__tabs { padding: 0 4px; }
    .adv-search__tab span { flex-direction: column; gap: 6px; height: 68px; font-size: 12.5px; }
    .adv-search__tab .lucide { width: 19px; height: 19px; }
    .adv-search__body { padding: 20px 16px; }
    .adv-search__who { margin: 10px 0 20px; }
    .adv-search__selects { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .adv-search__query { flex-wrap: wrap; padding: 6px 6px 6px 16px; }
    .adv-search__field input { height: 46px; font-size: 15px; }
    .adv-search__describe { flex: 1 1 100%; justify-content: center; height: 46px; white-space: normal; text-align: center; }
    .adv-search__submit { margin-top: 20px; }
    .adv-search__secure { margin-top: 16px; font-size: 13px; gap: 8px; }
    .adv-search__secure span + span::before { margin-right: 8px; }
    .hide-sm { display: none; }
    /* Phones: no hero photo, the copy starts right under the header. */
    .hero { padding-top: calc(var(--header-h) + 16px); }
    .hero__visual { display: none; }
    .hero__inner { margin-top: 0; }
    .hero__title { font-size: 34px; }
    .hero__text { margin-top: 16px; font-size: 15px; }
    .hero__features { flex-wrap: wrap; gap: 14px 0; margin-top: 24px; }
    .hero__features li { gap: 10px; padding-right: 14px; margin-right: 14px; font-size: 13px; }
    .hero__features .icon-circle { width: 42px; height: 42px; }
    .hero__features li:nth-child(2) { border-right: 0; margin-right: 0; }

    .search-bar { flex-wrap: wrap; height: auto; border-radius: 22px; padding: 14px; gap: 12px; }
    .search-bar__field { flex: 1 1 100%; height: 44px; padding-left: 4px; }
    .search-bar__field input { font-size: 15px; margin-left: 12px; padding-left: 12px; }
    .search-bar__submit { flex: 1; height: 52px; width: auto; margin-left: 0; background: var(--primary); color: #fff; border-color: var(--primary); }
    .advanced-search { position: static; display: flex; justify-content: center; margin: 10px auto 0; border: 0; background: none; }
    .adv-search { border-radius: 22px; }
    .adv-search__tabs { padding: 0 12px; }
    .adv-search__body { padding: 24px 20px; }
    .hero__proof { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 18px; }
    .mia-bar { flex-wrap: wrap; gap: 14px 16px; padding: 16px; }
    .mia-bar__avatar { width: 64px; height: 56px; }
    .mia-bar__text { flex: 1; min-width: 0; }
    .mia-bar__text h2 { font-size: 18px; }
    .mia-bar__text p { font-size: 14px; }
    .mia-bar__btn { width: 100%; margin-left: 0; }

    .journey { padding-top: 48px; }
    .journey-card { flex-basis: 78%; min-height: 330px; }

    .treatment-panel { margin: 30px 0 0 10px; padding: 8px 12px 16px; }
    .treatment-panel { --blue-tilt: -1.4deg; --pale-tilt: 1.2deg; }
    .treatment-panel::before { left: -10px; right: 14px; top: -16px; }
    .treatment-panel::after { left: 16px; right: 6px; top: -10px; }
    .treatment-panel__tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
    .treatment-tab { flex: 0 0 auto; min-width: 92px; font-size: 12.5px; }
    .treatment-tab .lucide { width: 26px; height: 26px; }
    .treatment-list__item { gap: 14px; font-size: 15px; }
    .treatment-list__item .icon-circle { width: 40px; height: 40px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat { flex-direction: column; align-items: flex-start; gap: 10px; }
    .stat .icon-circle { width: 46px; height: 46px; }
    .stat:nth-child(odd) { padding-right: 12px; }
    .stat:nth-child(even) { padding-left: 16px; }
    .treatments__cta { width: 100%; }

    .trust-bar { grid-template-columns: 1fr; padding: 8px 18px; }
    .trust-item { padding: 16px 0; }
    .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }

    .mia__side { grid-template-columns: 1fr; justify-items: center; }
    .mia__stage { width: 300px; height: 280px; }
    .mia__orbit { width: 290px; height: 290px; left: 0; }
    .mia__robot { width: 280px; left: 6px; top: 34px; }
    .mia__bubble { left: auto; right: -6px; top: -6px; font-size: 12px; padding: 10px 14px; }
    .mia__steps { margin: 10px 0 0; justify-self: start; grid-template-columns: 1fr; gap: 15px; }
    .mia__steps::before, .mia__steps::after { display: block; }
    .mia-form { padding: 18px; }
    .mia-form__choices { grid-template-columns: 1fr; gap: 12px; }
    .mia-choice { padding: 16px; gap: 14px; }
    .mia-form__hint { display: none; }
    .mia-form__foot { flex-direction: column; align-items: stretch; }
    .mia-form .btn--lg { width: 100%; }
    .mia__note { flex-wrap: wrap; gap: 12px; }
    .mia__note > div { flex: 1; }
    .mia__urgent { margin-left: 0; padding-left: 0; border-left: 0; flex-basis: 100%; }

    .dest-map__img, .dest-routes { display: none; }
    .dest-map { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
    .dest-card { position: static; width: auto; min-height: 0; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
    .dest-card strong { white-space: normal; }
    .stories__carousel { --per-view: 1; }
    .stories__nav { top: -62px; }
    .story-card { height: auto; min-height: 280px; }
    .articles { grid-template-columns: 1fr; }
    .article-card { flex-direction: row; }
    .article-card__media { flex: 0 0 120px; aspect-ratio: auto; }
    .faq__title { margin-bottom: 20px; }
    /* Hero search on phones: input on its own soft row, then Adult/Child and Search side by side. */
    .search-bar { padding: 8px; gap: 8px; border-radius: 20px; }
    .search-bar__field { height: 48px; padding: 0 14px; background: #f5f8fd; border-radius: 14px; }
    .search-bar__icon { width: 20px; height: 20px; }
    .search-bar__field input { margin-left: 10px; padding-left: 0; border-left: 0; font-size: 14px; text-overflow: ellipsis; }
    .patient-toggle { flex: none; align-self: center; height: 36px; padding: 2px; border-radius: 11px; }
    .patient-toggle__opt { display: flex; }
    .patient-toggle__opt span { flex-direction: row; gap: 4px; width: auto; padding: 0 8px; border-radius: 10px; font-size: 12px; }
    .patient-toggle__opt .lucide, .patient-toggle__opt--child .lucide { width: 14px; height: 14px; margin: 0; }
    .search-bar__submit { align-self: center; height: 40px; gap: 12px; border-radius: 12px; font-size: 14.5px; }
    .search-bar__submit .lucide { width: 17px; height: 17px; }
    .advanced-search { margin-top: 12px; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--primary-600); }

    /* Mia: "Who is this for?", Adult and Child on one line, the hint underneath. */
    .mia-form__who { gap: 6px; flex-wrap: wrap; }
    .mia-form__who .mia-form__label--inline { margin-right: 2px; font-size: 14px; white-space: nowrap; }
    .seg { gap: 5px; padding: 0 10px; height: 40px; font-size: 14px; }
    .seg .lucide { width: 18px; height: 18px; }
    .seg--child .lucide { width: 16px; height: 16px; }

    /* Library on phones: the "Read article" pill fits the small photo on one line. */
    .article-card__read { left: 6px; bottom: 6px; gap: 4px; padding: 4px 8px; font-size: 10px; white-space: nowrap; }
    .article-card__read .lucide { width: 11px; height: 11px; }
}
@media (max-width: 420px) {
    .hero__title { font-size: 30px; }
}

@media (min-width: 1201px) and (max-width: 1400px) {
    /* The robot column is 460px here: shrink the 480px stage to fit so the bubble stays clear of the form. */
    .mia__stage { scale: .9; transform-origin: 0 0; margin: 0 -48px -43px 0; }
}
