/* Patient stories: this sheet is scoped to the testimonial features. */
.testimonial-hero{position:relative;overflow:hidden;background:#f2faf7;color:var(--ink);isolation:isolate}
.testimonial-hero::before{position:absolute;inset:0;z-index:-1;content:"";background:radial-gradient(ellipse at 85% 35%,#c9eee266,transparent 62%),linear-gradient(110deg,#f8fcfa,#e4f4ee)}
.story-hero-inner{display:grid;grid-template-columns:minmax(280px,.76fr) minmax(0,1.45fr);align-items:center;gap:42px;min-height:730px}
.story-intro{position:relative;z-index:2;padding:60px 0 69px}
.story-intro .eyebrow{color:var(--accent-hover);font-size:10px;letter-spacing:.2em;line-height:1.85;margin-bottom:23px}
.story-intro h1{color:var(--brand-ink);font-size:47px;line-height:1.38;letter-spacing:-.035em;font-weight:600;margin:0 0 25px}
.story-intro h1 span{color:var(--accent-hover)}
.story-description{color:#516e66;font-size:15px;line-height:2.05;max-width:345px;margin-bottom:30px}
.story-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:28px}
.story-hero-actions .button{min-height:49px;padding:13px 20px;font-size:13px;gap:16px}
.story-hero-actions .outline-light{border-color:#7bada5;color:var(--brand-ink)}
.story-hero-actions .outline-light:hover{background:var(--brand-ink);border-color:var(--brand-ink);color:#fff}
.story-proof-line{display:flex;flex-wrap:wrap;align-items:center;gap:9px;color:#46665c;font-size:11px;letter-spacing:.04em;line-height:1.9;margin:0 0 15px}
.story-proof-line::before{content:"";display:inline-block;flex-shrink:0;width:6px;height:6px;background:var(--accent);border-radius:50%}
.story-fineprint{color:#536c62;font-size:10px;line-height:1.9;max-width:330px;margin:0}
.story-wall{position:relative;min-width:0;padding-top:0}
.story-columns{position:relative;display:flex;align-items:flex-start;gap:12px;height:655px;overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 7%,#000 91%,transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 7%,#000 91%,transparent 100%)}
.story-column{--story-travel:140px;--story-duration:32s;display:flex;flex:1 1 0;flex-direction:column;min-width:0;gap:12px;will-change:transform;animation:story-column-drift var(--story-duration) linear infinite alternate;animation-play-state:paused}
.story-column:nth-child(even){animation-direction:alternate-reverse;animation-duration:calc(var(--story-duration) + 7s)}
.story-column:nth-child(3){animation-delay:-11s}
.story-column:nth-child(4){animation-delay:-18s}
.story-wall.is-running .story-column{animation-play-state:running}
.story-wall.is-paused .story-column{animation-play-state:paused}
.story-tile{position:relative;flex:none;display:block;width:100%;aspect-ratio:9/16;min-height:0;padding:0;overflow:hidden;border:1px solid #c8ded5;border-radius:7px;background:#173c36;isolation:isolate;text-align:left;color:#fff;box-shadow:0 6px 17px #103c2c1c}
.story-tile:focus-visible{outline:3px solid #c4efe0;outline-offset:-5px}
.story-tile .story-poster,.story-tile .story-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;pointer-events:none}
.story-poster{z-index:-3}
.story-preview{z-index:-2;opacity:0;transition:opacity .45s}
.story-tile.is-previewing .story-preview{opacity:1}
.story-tile-shade{position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,#091f1810 0,transparent 38%,#071f1812 55%,#071f18c4 100%);pointer-events:none}
.story-tile-info{position:absolute;bottom:15px;left:13px;right:13px;display:flex;flex-direction:column;gap:6px;pointer-events:none}
.story-person{font-size:12px;font-weight:600;line-height:1.55;color:#fff;text-shadow:0 1px 6px #112e2590;overflow-wrap:anywhere}
.story-result{display:inline-block;align-self:flex-start;max-width:100%;padding:3px 6px;border:1px solid #d4f1e15c;border-radius:2px;background:#183d36d4;color:#e4f7ed;font-size:8px;line-height:1.6;font-weight:500;letter-spacing:.01em}
.story-watch{display:flex;align-items:center;gap:6px;font-size:9px;line-height:1.5;color:#edf5f2;letter-spacing:.015em}
.story-watch::before{display:grid;place-items:center;content:"▶";width:19px;height:19px;border:1px solid #fff7;border-radius:50%;font-size:7px;line-height:1;padding-left:1px;background:#ffffff15}
.story-tile:hover{border-color:#afd8c99e}
.story-tile:hover .story-watch::before{background:var(--accent);border-color:var(--accent)}
.story-wall-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0 20px;min-height:55px}
#story-motion-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:6px 12px;border:1px solid #9dc4b7;border-radius:3px;color:#315f50;background:#ffffffa6;font-size:10px;line-height:1.7;white-space:nowrap}
#story-motion-toggle:hover{border-color:var(--accent);background:#d7eee3}
#story-motion-toggle:focus-visible{outline-color:var(--accent)}
#story-motion-toggle::before{content:"Ⅱ";font-size:12px;letter-spacing:0;line-height:1;font-weight:700}
#story-motion-toggle[aria-pressed=true]::before{content:"▶";font-size:8px;font-weight:400}
.story-motion-note{font-size:9px;line-height:1.7;letter-spacing:.025em;color:#536c62;margin:0;text-align:right}
@keyframes story-column-drift{from{transform:translateY(0)}to{transform:translateY(calc(-1 * var(--story-travel)))}}

.story-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:36px}
.story-section-head h2{margin-bottom:13px}
.story-section-head p:last-child{margin-bottom:0;max-width:700px}
.story-count-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:36px;padding:7px 14px;border:1px solid #c9dcd5;background:#f3f8f5;color:#426c5e;border-radius:2px;font-size:11px;line-height:1.6;letter-spacing:.03em}
.patient-stories-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 24px;align-items:stretch}
.patient-story-card{min-width:0;display:flex;flex-direction:column;border:1px solid var(--line);background:#fff}
.patient-story-cover{position:relative;display:block;flex:none;width:100%;aspect-ratio:9/16;padding:0;border:0;overflow:hidden;background:var(--brand-ink);isolation:isolate}
.patient-story-cover::after{position:absolute;z-index:-1;inset:0;content:"";background:linear-gradient(0deg,#123b3270,transparent 50%)}
.patient-story-cover img{position:relative;z-index:-2;width:100%;height:100%;object-fit:contain;object-position:center;transition:transform .4s}
.patient-story-cover:hover img{transform:scale(1.025)}
.patient-story-cover .play{width:51px;height:51px;font-size:16px;border-color:#fff9;background:#123b328c}
.patient-story-cover:hover .play{background:var(--accent);border-color:var(--accent)}
.patient-story-cover:focus-visible{outline:3px solid #62a899;outline-offset:-5px}
.patient-story-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:22px 22px 25px}
.patient-story-copy h2{font-size:20px;line-height:1.6;letter-spacing:-.015em;margin-bottom:12px}
.patient-story-copy p{font-size:12px;line-height:1.95;margin-bottom:19px}
.patient-story-copy .more{margin-top:auto;font-size:11px;gap:10px}
.patient-story-copy .more span{font-size:16px}
.patient-result{display:inline-block;align-self:flex-start;padding:5px 9px;margin:0 0 15px;border:1px solid #c6dfd2;border-radius:2px;background:#f0f8f2;color:#356a51;font-size:10px;line-height:1.8;font-weight:500}
.media-source{display:block;width:fit-content;margin:10px auto 0;border-bottom:1px solid #adbdb7;padding-bottom:2px;color:#365f52;font-size:11px;line-height:1.8}
.media-source:hover{color:var(--accent);border-color:var(--accent)}

@media(min-width:1440px){.story-hero-inner{min-height:775px}.story-columns{height:700px}.story-intro h1{font-size:51px}.story-description{font-size:16px}}
@media(max-width:1050px){.story-hero-inner{grid-template-columns:minmax(235px,.75fr) minmax(0,1.3fr);gap:27px;min-height:680px}.story-intro h1{font-size:38px}.story-intro .eyebrow{font-size:8px;letter-spacing:.15em}.story-description{font-size:13px;line-height:2}.story-hero-actions{gap:10px}.story-hero-actions .button{font-size:11px;padding:12px 15px;gap:10px;min-height:44px}.story-proof-line{font-size:10px}.story-fineprint{font-size:9px}.story-columns{height:610px;gap:9px}.story-column{gap:9px}.story-tile{min-height:235px;border-radius:5px}.story-tile-info{left:9px;right:9px;bottom:12px}.story-person{font-size:10px}.story-watch{font-size:8px;gap:5px}.story-watch::before{width:17px;height:17px;font-size:6px}.story-motion-note{font-size:8px;max-width:180px}.patient-stories-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:27px 21px}.patient-story-copy{padding:20px}.patient-story-copy h2{font-size:19px}}
@media(max-width:850px) and (min-width:761px){.story-hero-inner{grid-template-columns:235px minmax(0,1fr);gap:23px}.story-intro h1{font-size:35px}.story-columns{gap:7px}.story-column{gap:8px}.story-tile{min-height:225px}.story-person{font-size:9px}.story-watch{font-size:7px}.story-watch::before{display:none}.story-wall-controls{gap:8px}.story-motion-note{max-width:125px}}
@media(max-width:760px){
  .story-hero-inner{display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:0}
  .story-intro{padding:45px 0 22px}
  .story-intro .eyebrow{font-size:9px;letter-spacing:.15em;margin-bottom:16px}
  .story-intro h1{font-size:37px;line-height:1.4;letter-spacing:-.025em;margin-bottom:19px;max-width:500px}
  .story-description{font-size:13px;line-height:1.95;max-width:520px;margin-bottom:24px}
  .story-hero-actions{margin-bottom:20px;gap:11px}
  .story-hero-actions .button{min-height:46px;padding:12px 19px;font-size:12px;gap:17px}
  .story-proof-line{font-size:10px;margin-bottom:10px}
  .story-fineprint{font-size:9px;max-width:500px;color:#536c62}
  .story-wall{margin-inline:0}
  .story-columns{height:460px;gap:12px;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 5%,#000 90%,transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 5%,#000 90%,transparent 100%)}
  .story-column{gap:12px;--story-duration:75s}
  .story-tile{min-height:0;aspect-ratio:9/16;border-radius:6px}
  .story-tile-info{bottom:15px;left:14px;right:14px}
  .story-person{font-size:12px;line-height:1.55}
  .story-result{font-size:9px;padding:3px 7px}
  .story-watch{font-size:9px;gap:7px}
  .story-watch::before{width:19px;height:19px;font-size:7px}
  .story-wall-controls{padding:9px 0 20px;min-height:53px;gap:15px}
  #story-motion-toggle{font-size:10px;padding:6px 11px;min-height:33px}
  .story-motion-note{font-size:9px;max-width:none}
  .story-section-head{align-items:flex-start;gap:20px;margin-bottom:28px}
  .story-section-head h2{font-size:28px;line-height:1.5}
  .story-section-head p:last-child{font-size:13px}
  .story-count-badge{font-size:10px;padding:6px 10px;min-height:32px;white-space:nowrap}
  .patient-stories-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 17px}
  .patient-story-copy{padding:19px 17px 22px}
  .patient-story-copy h2{font-size:18px;margin-bottom:10px}
  .patient-story-copy p{font-size:11px;line-height:1.9}
  .patient-story-copy .more{font-size:10px;gap:8px}
  .patient-story-cover .play{width:44px;height:44px;font-size:14px}
}
@media(max-width:480px){.patient-stories-grid{grid-template-columns:1fr;gap:28px}.patient-story-cover{aspect-ratio:9/16;max-height:560px}.patient-story-copy{padding:23px 24px 27px}.patient-story-copy h2{font-size:23px;margin-bottom:13px}.patient-story-copy p{font-size:13px}.patient-story-copy .more{font-size:12px}.patient-story-cover .play{width:54px;height:54px;font-size:17px}.patient-result{font-size:11px}.story-section-head{display:block}.story-count-badge{margin-top:17px}}
@media(max-width:390px){.story-intro{padding-top:39px}.story-intro h1{font-size:34px}.story-description{font-size:12px}.story-hero-actions .button{padding-inline:15px;font-size:11px;gap:11px}.story-columns{gap:10px;height:445px}.story-column{gap:10px}.story-tile-info{left:11px;right:11px;bottom:13px}.story-person{font-size:11px}.story-watch{font-size:8px}.story-motion-note{font-size:8px;max-width:150px}}
@media(prefers-reduced-motion:reduce){.story-preview,.patient-story-cover img{transition:none}.story-wall:not(.is-running) .story-column{animation:none}.story-wall.is-running .story-column{animation-duration:var(--story-duration)!important;animation-iteration-count:infinite!important}.story-wall.is-running .story-column:nth-child(even){animation-duration:calc(var(--story-duration) + 7s)!important}}

/* Keep the QR visible at every viewport width, with direct contact below it. */
.hero-wechat{display:grid;grid-template-columns:144px minmax(0,1fr);align-items:center;gap:12px 15px;margin:0 0 24px;padding:12px;background:#ffffffb8;border:1px solid #c6dfd5;border-radius:7px;min-width:0}
.hero-wechat>a{display:block;justify-self:center;border:1px solid var(--line);border-radius:3px;overflow:hidden}
.hero-wechat .wechat-qr-window{width:144px}
.hero-wechat-copy{min-width:0}
.hero-wechat strong{display:block;color:var(--brand-ink);font-size:14px;line-height:1.75;margin-bottom:7px}
.hero-wechat-copy p{color:#516e66;font-size:12px;line-height:1.9;margin:0}
.hero-wechat-actions{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
.hero-wechat-actions .button{width:100%;justify-content:center;min-height:46px;padding:11px 12px;gap:8px;font-size:13px;line-height:1.7}
.hero-wechat-save{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;color:var(--accent-hover);font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.hero-wechat .hero-wechat-help{grid-column:1/-1;margin:0;color:#516e66;font-size:11px;line-height:1.8;text-align:left}
@media(min-width:761px){.story-intro{padding-block:38px}.story-hero-actions{margin-bottom:22px}}
@media(min-width:761px) and (max-width:1050px){.hero-wechat{grid-template-columns:minmax(0,1fr);text-align:center;gap:12px;padding:14px}.hero-wechat .wechat-qr-window{width:160px}.hero-wechat-actions{grid-template-columns:minmax(0,1fr);gap:3px}.hero-wechat strong{font-size:14px}}
@media(max-width:760px){.hero-wechat{grid-template-columns:144px minmax(0,1fr);gap:12px;padding:12px;max-width:480px}.hero-wechat .wechat-qr-window{width:144px}.hero-wechat-actions .button{min-height:48px}.hero-wechat-save{min-height:48px}}
@media(max-width:390px){.hero-wechat{grid-template-columns:140px minmax(0,1fr);gap:10px}.hero-wechat .wechat-qr-window{width:140px}.hero-wechat-actions{grid-template-columns:minmax(0,1fr);gap:2px}.hero-wechat strong{font-size:13px}}
