/* VidaMed rework: premium, airy components layered on styles.css + design.css */
:root{--vm-navy:#153659;--vm-blue:#2d6aa8;--vm-soft:#eef3f8;--vm-line:#dbe3ec}
.v-head{max-width:760px}
.v-head h2{max-width:20ch}
.v-chips{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.v-chips li{border:1px solid var(--vm-line);background:#fff;border-radius:999px;padding:8px 16px;font-size:14px;font-weight:500;color:var(--vm-navy)}
.v-chips.big li{font-size:16px;padding:12px 22px;background:var(--vm-soft);border-color:transparent}
.v-pills{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px 10px}
.v-pills li{padding:10px 18px;border-radius:999px;background:#fff;border:1px solid var(--vm-line);font-size:15px;color:var(--ink)}
.v-grid{display:grid;gap:22px}
.v-grid.c2{grid-template-columns:repeat(2,1fr)}.v-grid.c3{grid-template-columns:repeat(3,1fr)}.v-grid.c4{grid-template-columns:repeat(4,1fr)}
@media(max-width:980px){.v-grid.c3,.v-grid.c4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.v-grid.c2,.v-grid.c3,.v-grid.c4{grid-template-columns:1fr}}
.v-card{display:block;background:#fff;border:1px solid var(--vm-line);border-radius:24px;padding:30px;text-decoration:none;color:var(--ink);transition:transform .25s,box-shadow .25s}
a.v-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px -22px #15365955}
.v-card h3{font-size:22px;margin:16px 0 8px;line-height:1.15}
.v-card p{margin:0;font-size:15px;color:var(--muted);line-height:1.55}
.v-card strong{color:var(--ink);font-weight:600}
.v-more{display:inline-block;margin-top:16px;font-size:14px;font-weight:600;color:var(--vm-blue)}
.v-ic{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--vm-soft);color:var(--vm-navy);flex:none}
.v-ic svg{width:25px;height:25px}
.v-ic.nobg{background:transparent;width:30px;height:30px}.v-ic.nobg svg{width:22px;height:22px}
.band .v-ic{background:#ffffff1c;color:#fff}
.v-slim{background:var(--vm-navy);color:#fff;text-align:center;padding:18px 0}
.v-slim p{margin:0;font-size:17px;letter-spacing:.01em;font-weight:500;color:#fff}
.v-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px}
.v-stats div{background:#fff;border:1px solid var(--vm-line);border-radius:22px;padding:28px}
.v-stats b{display:block;font-size:30px;font-weight:500;letter-spacing:-.04em;color:var(--vm-navy);margin-bottom:6px}
.v-stats span{font-size:14px;color:var(--muted);line-height:1.5}
.v-split{display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center}
.v-split.rev{grid-template-columns:.95fr 1.05fr}.v-split.rev .v-copy{order:2}
.v-split .v-photo{margin:0;border-radius:30px;overflow:hidden;aspect-ratio:5/4;background:var(--vm-soft)}
.v-split .v-photo img{width:100%;height:100%;object-fit:cover;display:block}
.v-copy h2{margin-bottom:16px}.v-copy p{font-size:18px;color:var(--muted)}
@media(max-width:880px){.v-split,.v-split.rev{grid-template-columns:1fr;gap:28px}.v-split.rev .v-copy{order:0}}
.v-ticks{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:12px}
.v-ticks li{position:relative;padding-left:34px;font-size:16px;line-height:1.5}
.v-ticks li::before{content:"";position:absolute;left:0;top:2px;width:22px;height:22px;border-radius:50%;background:var(--vm-navy) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.500l4 4 8-9'/></svg>") center/14px no-repeat}
.band .v-ticks li::before{background-color:#ffffff30}
.v-strip{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px;counter-reset:s}
.v-strip li{position:relative;background:#fff;border:1px solid var(--vm-line);border-radius:22px;padding:26px 22px}
.v-strip .n{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--vm-navy);color:#fff;font-size:14px;font-weight:600;margin-bottom:14px}
.v-strip h3{font-size:19px;margin-bottom:6px}.v-strip p{margin:0;font-size:14px;color:var(--muted);line-height:1.5}
.v-vtl{list-style:none;margin:0;padding:0;max-width:820px;position:relative}
.v-vtl::before{content:"";position:absolute;left:23px;top:20px;bottom:20px;width:2px;background:var(--vm-line)}
.v-vtl li{display:flex;gap:22px;padding:14px 0;position:relative}
.v-vtl .dot{background:var(--vm-navy);color:#fff;position:relative;z-index:1}
.v-vtl .when{display:block;font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--vm-blue);margin-bottom:4px}
.v-vtl h3{font-size:22px;margin-bottom:4px}.v-vtl p{margin:0;color:var(--muted);font-size:16px}
.v-bandsec{background:linear-gradient(135deg,#153659,#1f4f80)}
.v-bandsec h2,.v-bandsec h3{color:#fff}.v-bandsec p,.v-bandsec .lead{color:#dbe7f3}.v-bandsec .eyebrow{color:#a8c6e6}
.v-note{display:flex;gap:20px;align-items:flex-start;background:var(--vm-soft);border-radius:24px;padding:30px;max-width:860px}
.v-note h3{margin-bottom:6px;font-size:21px}.v-note p{margin:0;color:var(--muted)}
.v-faq{max-width:820px}
.v-route{display:inline-flex;align-items:center;gap:0;margin:2px 0 14px}
.v-route .c{width:46px;height:46px;border-radius:50%;border:2px solid var(--vm-navy);display:grid;place-items:center;font-size:13px;font-weight:700;color:var(--vm-navy);background:#fff}
.v-route .c.mid{background:var(--vm-blue);border-color:var(--vm-blue);color:#fff;width:52px;height:52px}
.v-route i{display:block;width:34px;border-top:2px dotted var(--vm-navy)}
/* hero (home) */
.v-hero{padding:70px 0 40px;background:radial-gradient(1200px 500px at 85% -10%,#e3edf8,transparent 60%)}
.v-hero .wrap{display:grid;grid-template-columns:1.02fr .98fr;gap:56px;align-items:center}
.v-hero h1{font-size:clamp(40px,5.4vw,72px);line-height:1.02;margin:10px 0 20px}
.v-hero h1 span{color:var(--vm-blue)}
.v-hero .lead{font-size:19px;max-width:34em}
.v-trust{list-style:none;margin:26px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}
.v-trust li{display:flex;gap:10px;align-items:center;font-size:14.5px;font-weight:500;color:var(--vm-navy)}
.v-trust .v-ic{width:34px;height:34px;border-radius:10px}.v-trust .v-ic svg{width:19px;height:19px}
.v-hero figure{margin:0;border-radius:34px;overflow:hidden;aspect-ratio:4/4.4;box-shadow:0 40px 70px -40px #15365980;position:relative}
.v-hero figure img{width:100%;height:100%;object-fit:cover;display:block}
.v-hero .float{position:absolute;left:18px;bottom:18px;background:#ffffffee;backdrop-filter:blur(10px);border-radius:18px;padding:14px 18px;font-size:14px;font-weight:600;color:var(--vm-navy);box-shadow:0 10px 30px #15365930}
@media(max-width:900px){.v-hero .wrap{grid-template-columns:1fr}.v-hero figure{aspect-ratio:4/3}}
/* interactive timeline */
.v-tl{max-width:1000px}
.v-tl .tabs{display:grid;grid-template-columns:repeat(6,1fr);gap:0;position:relative;margin-bottom:26px}
.v-tl .tabs::before{content:"";position:absolute;left:8%;right:8%;top:25px;height:2px;background:var(--vm-line)}
.v-tl .tabs .prog{position:absolute;left:8%;top:25px;height:2px;background:var(--vm-navy);width:0;transition:width .4s}
.v-tl [role=tab]{position:relative;background:none;border:0;cursor:pointer;display:grid;justify-items:center;gap:10px;padding:0 4px;font:inherit;color:var(--muted);text-align:center}
.v-tl [role=tab] b{width:50px;height:50px;border-radius:50%;background:#fff;border:2px solid var(--vm-line);display:grid;place-items:center;font-size:16px;font-weight:600;color:var(--vm-navy);transition:.25s;position:relative;z-index:1}
.v-tl [role=tab] span{font-size:13.5px;line-height:1.3;font-weight:500}
.v-tl [role=tab][aria-selected=true]{color:var(--vm-navy)}
.v-tl [role=tab][aria-selected=true] b{background:var(--vm-navy);border-color:var(--vm-navy);color:#fff;transform:scale(1.1)}
.v-tl [role=tab].done b{border-color:var(--vm-navy)}
.v-tl .panel{background:#fff;border:1px solid var(--vm-line);border-radius:28px;padding:36px 40px;display:grid;grid-template-columns:auto 1fr;gap:26px;align-items:center;min-height:150px}
.v-tl .panel .v-ic{width:64px;height:64px;border-radius:20px}.v-tl .panel .v-ic svg{width:32px;height:32px}
.v-tl .panel h3{font-size:28px;margin-bottom:6px}.v-tl .panel p{margin:0;font-size:19px;color:var(--muted);line-height:1.5}
.v-tl .panel p strong{color:var(--ink)}
.v-tl .nav{display:flex;gap:12px;margin-top:16px}
.v-tl .nav button{border:1px solid var(--vm-line);background:#fff;border-radius:999px;padding:10px 20px;font:inherit;font-size:14px;font-weight:500;cursor:pointer;color:var(--vm-navy)}
.v-tl .nav button:hover{background:var(--vm-soft)}
@media(max-width:760px){
 .v-tl .tabs{grid-template-columns:1fr;gap:6px}.v-tl .tabs::before,.v-tl .tabs .prog{display:none}
 .v-tl [role=tab]{grid-template-columns:50px 1fr;justify-items:start;align-items:center;text-align:left;gap:14px;padding:4px 0}
 .v-tl .panel{grid-template-columns:1fr;padding:26px}
}
.v-ask{max-width:760px}
.v-reportmock{background:#fff;border:1px solid var(--vm-line);border-radius:26px;padding:26px 28px;box-shadow:0 30px 60px -40px #15365970}
.v-reportmock h4{margin:0 0 14px;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--vm-blue)}
.v-reportmock dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:10px 18px;font-size:15px}
.v-reportmock dt{color:var(--muted)}.v-reportmock dd{margin:0;font-weight:600;color:var(--vm-navy)}
.v-reportmock .ex{margin-top:16px;font-size:12px;color:var(--muted)}
.v-center{text-align:center}.v-center .v-head{margin-inline:auto}.v-center .v-head h2{margin-inline:auto}
.v-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}
.v-tiles a{display:grid;justify-items:center;gap:12px;text-align:center;background:#fff;border:1px solid var(--vm-line);border-radius:22px;padding:26px 14px;text-decoration:none;color:var(--ink);font-weight:600;font-size:15px;transition:.25s}
.v-tiles a:hover{transform:translateY(-3px);box-shadow:0 14px 30px -20px #15365960}
.v-banner{background:var(--vm-navy);color:#fff;border-radius:26px;padding:30px 34px;margin-top:24px}
.v-banner p{margin:0;color:#e4eef8;font-size:18px}.v-banner strong{color:#fff}
.v-clinicband{background:var(--vm-soft)}
.v-clinicband .wrap{display:flex;gap:30px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.v-clinicband h2{font-size:clamp(28px,3vw,40px)}.v-clinicband p{margin:8px 0 0;color:var(--muted)}
.v-small{font-size:14px;color:var(--muted);margin-top:18px}
.v-two{display:grid;grid-template-columns:1fr 1fr;gap:22px}@media(max-width:760px){.v-two{grid-template-columns:1fr}}
.v-two h3{font-size:20px;margin-bottom:10px}
.v-panelbox{background:#fff;border:1px solid var(--vm-line);border-radius:24px;padding:28px}
@media(max-width:620px){.sec{padding-block:64px}}
.v-mosaic{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.v-mosaic figure{margin:0;border-radius:24px;overflow:hidden;position:relative;aspect-ratio:4/3;background:var(--vm-soft)}
.v-mosaic img{width:100%;height:100%;object-fit:cover;display:block}
.v-mosaic figcaption{position:absolute;left:0;right:0;bottom:0;padding:44px 18px 16px;background:linear-gradient(transparent,#0e2a4acc);color:#fff;font-weight:600;font-size:15px}
@media(max-width:760px){.v-mosaic{grid-template-columns:1fr}}
.v-card p:empty{display:none}
.v-fh{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--vm-blue);margin:38px 0 6px;font-family:var(--body);font-weight:600}
.v-fh:first-child{margin-top:0}
.v-slim span{font-size:14px;font-weight:400;color:#c9dcef;display:inline-block;margin-top:4px}
/* v6: stacked section intros (no right-hand floating leads) */
.section-intro{display:block}
.section-intro>.lead{max-width:640px;margin-top:16px;font-size:17px}
/* v6: phone hero, floating cards stack under the photo instead of covering the caption */
@media(max-width:620px){
 .journey-stage{display:flex;flex-direction:column}
 .journey-float,.journey-float.before,.journey-float.after{position:static;animation:none;margin-top:12px;box-shadow:0 8px 24px #1c32490f;border-color:var(--line)}
 .photo-caption{bottom:24px}
 .photo-caption p{font-size:24px}
}
/* bottom bar text centred across the page */
.v-slim .wrap > p{max-width:none;margin:0 auto;text-align:center}
/* v10: phone layout - mixed formats and motion (desktop unchanged) */
@media(max-width:620px){
 /* 1. swipe rows, only for a few sections */
 .m-swipe{display:flex!important;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding:6px 4px 20px;margin-inline:-4px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 .m-swipe::-webkit-scrollbar{display:none}
 .m-swipe>*{flex:0 0 78%;scroll-snap-align:start;min-width:0}
 /* 2. compact two-column tiles for long checklists */
 .m-compact{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
 .m-compact>*{padding:16px 14px!important;border-radius:18px!important}
 .m-compact h3{font-size:15.5px!important;line-height:1.25;margin:10px 0 4px!important}
 .m-compact p{font-size:12.5px!important;line-height:1.45}
 .m-compact .v-ic{width:36px;height:36px;border-radius:11px}.m-compact .v-ic svg{width:19px;height:19px}
 /* 3. journey steps as a vertical timeline */
 .hp-steps{display:block!important;position:relative;padding-left:26px!important}
 .hp-steps::before{content:"";position:absolute;left:8px;top:10px;bottom:10px;width:2px;background:linear-gradient(#2d6aa8,#cfe0f3)}
 .hp-steps>.hp-step{position:relative;margin:0 0 14px;padding:18px 18px!important}
 .hp-steps>.hp-step::before{content:"";position:absolute;left:-24px;top:24px;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid #2d6aa8}
 .hp-steps .hp-step-top{margin-bottom:8px}
 /* 4. everything else stacks, with softer cards */
 .card,.v-card,.hp-step,.hp-ptile{border-color:transparent!important;box-shadow:0 14px 30px -22px rgba(21,54,89,.5)}
 .pt-pt{background:transparent!important;border:none!important;border-bottom:1px solid #ffffff22!important;border-radius:0!important;padding:14px 0!important}
 .pt-pts{gap:0!important}
 /* hero chips side by side */
 .journey-stage{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}
 .journey-stage .stage-photo{grid-column:1/-1}
 .journey-float,.journey-float.before,.journey-float.after{margin-top:0!important;padding:12px 14px!important;flex-direction:column;align-items:flex-start;gap:6px;border-radius:16px!important}
 .journey-float div>span:last-child{display:none}
 .journey-float .stage-icon{width:26px;height:26px;font-size:12px}
 .hp-worries li{padding:20px 0}
 /* 5. scroll-in motion, added by rework.js */
 main{overflow-x:clip}
 .m-rv{opacity:0;transform:translateY(26px);transition:opacity .6s ease,transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0ms)}
 .m-rv.m-l{transform:translateX(-28px)}.m-rv.m-r{transform:translateX(28px)}.m-rv.m-pop{transform:scale(.92)}
 .m-rv.m-in{opacity:1;transform:none}
 .m-swipe>*{transition:transform .35s ease}
}
@media(max-width:620px) and (prefers-reduced-motion:reduce){.m-rv{opacity:1!important;transform:none!important;transition:none!important}}

/* v11: readable buttons on dark bands (all screens) */
.sec.band .btn.ghost,.v-bandsec .btn.ghost{color:#fff!important;border-color:#ffffffa6!important;background:transparent!important}
.sec.band .btn.ghost:hover,.v-bandsec .btn.ghost:hover{background:#ffffff1a!important}
.sec.band .btn:not(.ghost),.v-bandsec .btn:not(.ghost){background:#fff!important;color:#153659!important;border-color:#fff!important}
/* v11: phone motion - quicker, one direction, starts before cards reach the screen */
@media(max-width:620px){
 .m-rv,.m-rv.m-l,.m-rv.m-r{transform:translateY(14px);transition:opacity .35s ease,transform .4s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0ms)}
 .m-rv.m-pop{transform:scale(.96)}
 .m-rv.m-in{opacity:1;transform:none}
 .m-dots{display:flex;justify-content:center;gap:6px;margin:-6px 0 4px}
 .m-dots i{width:6px;height:6px;border-radius:99px;background:#c3d4e7;transition:width .25s,background .25s}
 .m-dots i.on{width:18px;background:#2d6aa8}
 .band .m-dots i,.v-bandsec .m-dots i{background:#ffffff40}.band .m-dots i.on,.v-bandsec .m-dots i.on{background:#fff}
 .m-swipe>*{transition:transform .3s ease,opacity .3s ease}
 .m-swipe>.m-off{transform:scale(.95);opacity:.75}
}

/* v12: tighter vertical rhythm so pages have space but no blank stretches */
.sec{padding-block:84px}
@media(max-width:620px){.sec{padding-block:56px}}

/* v13: avoid single words alone on the last line */
p,li,.lead{text-wrap:pretty}h1,h2,h3{text-wrap:balance}

/* v16 phone: hero chips sit over the photo, clear of the caption; fewer swipe rows, more variety */
@media(max-width:620px){
 .journey-stage{display:block!important;position:relative}
 .stage-photo{height:500px!important}
 .journey-float,.journey-float.before,.journey-float.after{position:absolute!important;animation:none!important;margin:0!important;flex-direction:row!important;align-items:center!important;gap:10px!important;padding:11px 14px!important;border-radius:16px!important;box-shadow:0 10px 30px #0b1a2d40!important;border:1px solid #fff!important;width:auto;max-width:78%}
 .journey-float.before{top:16px!important;left:40px!important;right:auto!important;bottom:auto!important}
 .journey-float.after{bottom:16px!important;right:40px!important;left:auto!important;top:auto!important}
 .journey-float strong{font-size:14px!important}
 .journey-float .tiny-label{font-size:8.5px!important}
 .journey-float div>span:last-child{display:none!important}
 .journey-float .stage-icon{width:28px;height:28px;font-size:13px;flex:none}
 .photo-caption{left:44px!important;bottom:108px!important;right:44px}
 .photo-caption p{font-size:27px!important}
 /* list rows: icon left, text right */
 .m-list{display:flex!important;flex-direction:column;gap:10px!important}
 .m-list>*{display:grid!important;grid-template-columns:42px 1fr;column-gap:14px;align-items:start;padding:16px!important}
 .m-list>* .v-ic{grid-row:1/span 2;width:42px;height:42px;border-radius:13px;margin:0!important}
 .m-list>* h3{margin:2px 0 3px!important;font-size:16.5px!important}
 .m-list>* p{margin:0!important;font-size:14px!important;line-height:1.5}
 .m-list>*:not(:has(.v-ic)){display:block!important;border-left:3px solid #2d6aa8!important;border-radius:6px 16px 16px 6px!important}
}

/* v17: Complete Journey card, more room above the route mark */
.hp-cj{padding-top:42px!important}
@media(max-width:880px){.hp-cj{padding:42px 26px 28px!important}}

/* v18 phone: both chips above the caption, top of the photo */
@media(max-width:620px){
 .stage-photo{height:460px!important}
 .journey-float.after{top:92px!important;bottom:auto!important;right:auto!important;left:64px!important}
 .photo-caption{bottom:32px!important}
}

/* v19 phone: "When you're home" chip sits on the right, over the surgeons, above the caption */
@media(max-width:620px){
 .journey-float.after{top:205px!important;left:auto!important;right:16px!important;bottom:auto!important}
}

/* v20 phone: lift the second chip above the faces */
@media(max-width:620px){.journey-float.after{top:96px!important}}
