/* Screen-space rules work across handset models, foldable covers and inner
   displays. The original art and scroll chapters use the same source. */
:root{--bts-safe-top:env(safe-area-inset-top,0px);--bts-safe-bottom:env(safe-area-inset-bottom,0px);--bts-safe-left:env(safe-area-inset-left,0px);--bts-safe-right:env(safe-area-inset-right,0px)}
.phone-first .scene-main>*{min-width:0}
.phone-first .chapter,.phone-first .scene,.phone-first .treatment-options,.phone-first .treatment-option{min-width:0}
.phone-first .consultation-dock{max-width:calc(100% - max(16px,var(--bts-safe-left)) - max(16px,var(--bts-safe-right)));bottom:max(8px,var(--bts-safe-bottom))}
.phone-first .experience-footer{padding-bottom:calc(100px + var(--bts-safe-bottom))}
@media(max-width:799px),(orientation:portrait){
 html{scroll-padding-top:calc(88px + var(--bts-safe-top))}
 .phone-first .experience-header{top:calc(10px + var(--bts-safe-top));left:max(12px,var(--bts-safe-left));right:max(12px,var(--bts-safe-right))}
 .phone-first #home.reference-product-hero{margin-top:calc(94px + var(--bts-safe-top))}
 .phone-first #chapter-menu{max-height:calc(var(--bts-visible-height,100svh) - 105px - var(--bts-safe-top) - var(--bts-safe-bottom));overflow:auto}
 .phone-first .landing-film .step-copy{padding-bottom:var(--bts-safe-bottom)}
 .phone-first .landing-film[data-phone-stage=true] #process-canvas{top:calc(116px + var(--bts-safe-top))}
 .phone-first .landing-film[data-phone-stage=true] .film-heading{top:calc(94px + var(--bts-safe-top))}
 .phone-first .landing-film[data-phone-stage=true] .film-counter{top:calc(132px + var(--bts-safe-top))}
 .phone-first #information,.phone-first #tool-sheet{max-height:calc(var(--bts-visible-height,100svh) - 20px - var(--bts-safe-top) - var(--bts-safe-bottom));max-width:calc(100% - 20px - var(--bts-safe-left) - var(--bts-safe-right));overscroll-behavior:contain}
}
@media(max-width:359px){
 .phone-first .experience-header{left:8px;right:8px;padding-inline:15px}
 .phone-first #home.reference-product-hero{margin-inline:8px;padding-inline:14px}
 .phone-first #home.reference-product-hero .hero-heading h1{font-size:clamp(27px,9.2vw,32px)}
 .phone-first #home.reference-product-hero .treatment-result strong{font-size:35px}
 .phone-first #home.reference-product-hero .treatment-option h2{font-size:15px}
 .phone-first .consultation-dock{width:calc(100% - 16px);gap:2px;padding:4px}
 .phone-first .consultation-dock>a{padding-inline:8px;font-size:9px;min-height:42px;display:flex;align-items:center;justify-content:center}
 .phone-first .dock-language{padding-inline:4px}
 .phone-first .dock-language select{max-width:49px}
 .phone-first .chapter .scene{padding-inline:13px!important}
 .phone-first .care-sequence{grid-template-columns:1fr}
 .phone-first .care-sequence li{min-height:265px!important}
 .phone-first .trial-card{padding-inline:10px}
 .phone-first .trial-result{font-size:43px}
 .phone-first .support-promise{min-width:0}
}
/* Inner displays get roomier type without assuming a particular Fold model. */
html[data-screen-mode=inner] .phone-first #home.reference-product-hero .hero-heading h1{font-size:clamp(40px,6.7vw,58px)}
html[data-screen-mode=inner] .phone-first #home.reference-product-hero .intro-description{font-size:clamp(14px,1.9vw,17px)}
html[data-screen-mode=inner] .phone-first .care-sequence{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-screen-mode=phone] .phone-first .landing-film[data-phone-stage=true] .film-copy-layer{position:absolute;inset:0;pointer-events:none}
html[data-screen-mode=phone] .phone-first .landing-film[data-phone-stage=true] .step-copy{pointer-events:auto}
html[data-screen-mode=phone] .phone-first .landing-film[data-phone-stage=true] .film-heading{position:absolute;margin:0;padding:0;max-width:none;pointer-events:none;background:transparent;border-radius:0;color:#865b12}
html[data-screen-mode=phone] .phone-first .landing-film[data-phone-stage=true] .film-heading h2{line-height:1.15;letter-spacing:-.04em;margin:0;color:#865b12}
html[data-screen-mode=phone] .phone-first .landing-film[data-phone-stage=true] .film-heading>p{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:800px) and (max-width:1100px) and (orientation:landscape){
 html[data-screen-mode=inner] .phone-first .chapter .scene{padding-inline:3vw!important}
 html[data-screen-mode=inner] .phone-first .scene-copy h2{font-size:clamp(35px,4.6vw,50px)}
 html[data-screen-mode=inner] .phone-first .scene-copy .lead{font-size:14px}
 html[data-screen-mode=inner] .phone-first .care-sequence li{min-height:280px!important}
 html[data-screen-mode=inner] .phone-first .care-sequence h3{font-size:19px}
 html[data-screen-mode=inner] .phone-first .care-sequence p{font-size:11px}
 html[data-screen-mode=inner] .phone-first .step-copy h2{font-size:clamp(32px,4vw,42px)}
 html[data-screen-mode=inner] .phone-first .step-copy .lead{font-size:12px}
}
/* Rotated handsets: keep the visual and caption side by side, scroll captions
   when needed, and keep every control above the home indicator. */
@media(max-height:539px) and (orientation:landscape){
 html[data-screen-mode=phone] .phone-first .experience-header{top:max(6px,var(--bts-safe-top));height:54px;left:max(10px,var(--bts-safe-left));right:max(10px,var(--bts-safe-right));padding:9px 18px}
 html[data-screen-mode=phone] .phone-first .experience-header .brand-word{font-size:22px}
 html[data-screen-mode=phone] .phone-first .experience-header .brand-line{font-size:15px}
 html[data-screen-mode=phone] .phone-first #home.reference-product-hero{margin-top:74px}
 html[data-screen-mode=phone] .phone-first #home.reference-product-hero .treatment-hero-visual{--hero-pen-height:310px}
 html[data-screen-mode=phone] .phone-first .film-step{height:100svh;min-height:100svh}
 html[data-screen-mode=phone] .phone-first .landing-film .film-viewport{height:100svh;margin-bottom:-100svh}
 html[data-screen-mode=phone] .phone-first .landing-film #process-canvas{top:75px;left:44%;right:0;width:56%;height:calc(100svh - 135px)!important;transform:none}
 html[data-screen-mode=phone] .phone-first .landing-film .step-copy{left:max(20px,var(--bts-safe-left));right:auto;top:112px;bottom:auto;width:calc(44% - max(20px,var(--bts-safe-left)) - 18px);max-height:calc(100svh - 185px);overflow:auto;padding-bottom:12px;overscroll-behavior:contain}
 html[data-screen-mode=phone] .phone-first .landing-film .step-copy h2{font-size:26px;line-height:1.1;margin-block:8px}
 html[data-screen-mode=phone] .phone-first .landing-film .step-copy .lead{font-size:10px;line-height:1.5;margin-block:8px}
 html[data-screen-mode=phone] .phone-first .landing-film .step-note{font-size:8px}
 html[data-screen-mode=phone] .phone-first .landing-film .film-heading{top:74px;left:max(20px,var(--bts-safe-left))}
 html[data-screen-mode=phone] .phone-first .landing-film .film-heading h2{font-size:18px}
 html[data-screen-mode=phone] .phone-first .landing-film .film-counter{top:96px;left:max(20px,var(--bts-safe-left))}
 html[data-screen-mode=phone] .phone-first .consultation-dock{padding:4px;bottom:max(5px,var(--bts-safe-bottom))}
 html[data-screen-mode=phone] .phone-first .consultation-dock>a{padding-block:10px}
}
/* Real dual-screen segments are used only when the browser reports them.
   Keep the reading column and fixed controls together clear of the hinge. */
html[data-screen-segment-axis=horizontal] .phone-first{width:var(--bts-pane-width);margin-left:var(--bts-pane-left)}
html[data-screen-segment-axis=horizontal] .phone-first .experience-header{top:10px;height:70px;padding:16px 20px;left:calc(var(--bts-pane-left) + 12px);right:auto;width:calc(var(--bts-pane-width) - 24px);max-width:none}
html[data-screen-segment-axis=horizontal] .phone-first .consultation-dock{left:calc(var(--bts-pane-left) + var(--bts-pane-width)/2);width:calc(var(--bts-pane-width) - 20px);max-width:430px}
html[data-screen-segment-axis=horizontal] .phone-first #assessment{left:calc(var(--bts-pane-left) + 10px);right:auto;width:calc(var(--bts-pane-width) - 20px);max-width:600px;margin-inline:0;transform:none}
html[data-screen-segment-axis=horizontal] .phone-first #information,html[data-screen-segment-axis=horizontal] .phone-first #tool-sheet{left:calc(var(--bts-pane-left) + 10px);right:auto;width:calc(var(--bts-pane-width) - 20px);max-width:calc(var(--bts-pane-width) - 20px);margin-inline:0}
html[data-screen-segment-axis=horizontal] .phone-first #home.reference-product-hero{margin:94px 12px 0;padding:30px 18px 26px}
html[data-screen-segment-axis=horizontal] .phone-first #home.reference-product-hero .hero-heading h1{font-size:clamp(32px,calc(var(--bts-pane-width)*.085),46px)}
html[data-screen-segment-axis=horizontal] .phone-first .chapter .scene{padding:28px 18px 42px!important}
html[data-screen-segment-axis=horizontal] .phone-first .chapter .scene-main{display:flex;flex-direction:column;align-items:stretch;gap:24px!important}
html[data-screen-segment-axis=horizontal] .phone-first .scene-copy h2{font-size:clamp(32px,calc(var(--bts-pane-width)*.085),52px)}
html[data-screen-segment-axis=horizontal] .phone-first .scene-copy .lead{font-size:14px}
html[data-screen-segment-axis=horizontal] .phone-first .doctor .doctor-photo{display:grid;grid-template-columns:1fr 1fr;width:100%;height:320px;min-height:0;gap:8px}
html[data-screen-segment-axis=horizontal] .phone-first .care-sequence{grid-template-columns:1fr 1fr;gap:10px}
html[data-screen-segment-axis=horizontal] .phone-first .care-sequence li{min-height:260px!important}
html[data-screen-segment-axis=horizontal] .phone-first .care-sequence h3{font-size:18px}
html[data-screen-segment-axis=horizontal] .phone-first .care-sequence p{font-size:11px}
html[data-screen-segment-axis=horizontal] .phone-first .landing-film #process-canvas{top:116px;left:0;right:0;width:100%}
html[data-screen-segment-axis=horizontal] .phone-first .landing-film .film-heading{top:94px;left:24px;right:24px}
html[data-screen-segment-axis=horizontal] .phone-first .landing-film .step-copy{left:24px;right:24px;top:auto;bottom:98px;width:auto;max-width:none}
html[data-screen-segment-axis=horizontal] .phone-first .landing-film .step-copy h2{font-size:34px}
html[data-screen-segment-axis=horizontal] .phone-first .landing-film .step-copy .lead{font-size:12px}
html[data-screen-segment-axis=vertical] .phone-first .experience-header{top:calc(var(--bts-pane-top) + 10px)}
html[data-screen-segment-axis=vertical] .phone-first .consultation-dock{top:calc(var(--bts-pane-top) + var(--bts-pane-height) - 66px - var(--bts-safe-bottom));bottom:auto}
html[data-screen-segment-axis=vertical] .phone-first #assessment{max-height:calc(var(--bts-pane-height) - 20px);top:calc(var(--bts-pane-top) + 10px);bottom:auto;transform:none;margin-block:0}
@media(vertical-viewport-segments:2){
 .phone-first .landing-film #process-canvas{top:calc(env(viewport-segment-top 0 0) + 80px);height:calc(env(viewport-segment-height 0 0) - 155px)!important}
 .phone-first .landing-film .step-copy{top:calc(env(viewport-segment-top 0 1) + 20px);bottom:auto;left:24px;right:24px;width:auto;max-height:calc(env(viewport-segment-height 0 1) - 40px);overflow:auto}
}
html[data-keyboard-open=true] .phone-first .consultation-dock{visibility:hidden;pointer-events:none}
@media(prefers-reduced-motion:reduce){.phone-first .experience-header,.phone-first .consultation-dock{transition:none}}
