/* Touch layouts and small screens; desktop Studio sizing stays in refresh.css. */
.quote-label-short,.studio-mobile-product,.studio-mobile-links{display:none}
.menu-toggle .ui-icon{width:24px;height:24px;display:block}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:90px}
@media(max-width:1024px){
 :root{--mobile-header-height:72px}
 body{font-size:16px;line-height:1.7}
 header{display:grid;grid-template-columns:minmax(100px,1fr) auto 44px;height:var(--mobile-header-height);gap:12px;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left))}
 header .brand{width:clamp(112px,22vw,155px);min-width:0}
 header .brand img{height:54px}
 .header-quote.button{min-height:44px;padding:10px 16px;font-size:13px;line-height:1.4;white-space:nowrap;margin:0;order:2;gap:0}
 .header-quote.button .quote-label-long{display:inline}
 .header-quote.button .quote-label-short{display:none}
 .menu-toggle{display:grid;place-items:center;order:3;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #e4dfd5;border-radius:12px;background:#eeece5;font-size:23px;line-height:1}
 header nav{display:none;position:absolute;inset:100% 0 auto;padding:12px max(16px,env(safe-area-inset-left));max-height:calc(100dvh - var(--mobile-header-height) - 24px);overflow-y:auto;overscroll-behavior:contain;background:#fbfaf7;border:1px solid #e7e4dd;border-radius:0 0 20px 20px;box-shadow:0 18px 28px #30231420;gap:0;z-index:35}
 header nav.open{display:flex;flex-direction:column;align-items:stretch;gap:0}
 header nav>a{display:flex;align-items:center;min-height:50px;padding:10px 14px;border-radius:10px;font-size:16px;line-height:1.5}
 header nav>a:hover{background:#fff0df}
 header nav .studio-link{gap:10px}
 header nav .studio-link span{font-size:10px;margin-left:0}
 .wrap,.studio-layout.wrap{width:calc(100% - 40px);max-width:100%;min-width:0}
 main section,main aside,.hero-copy,.product-detail>div,.contact-grid>div,.footer-grid>div{min-width:0}
 h1,h2,h3{overflow-wrap:anywhere}
 p,li,dd{overflow-wrap:break-word}
 .button{max-width:100%;min-height:46px;white-space:normal;text-align:center}
 input,select,textarea{font-size:16px;min-height:46px}
 textarea{resize:vertical}
 .text-link{min-height:44px;display:inline-flex;align-items:center;font-size:14px;line-height:1.5}
 .product-grid,.kit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .product-card p{font-size:15px}
 .filters{gap:16px;flex-wrap:wrap}.filters label{min-width:0}.filters select{min-width:0}
 .studio-layout .quote form>button{grid-column:1/-1}
 .preview-top{align-items:center}
 .studio-layout input[type=range]{min-height:36px}
 .studio-layout .check{min-height:36px}
 .studio-product-picker{grid-template-columns:repeat(4,minmax(0,1fr))}
 .footer-grid a:not(.brand){min-height:36px;display:flex;align-items:center;line-height:1.5;padding-block:6px;margin:0}
 .footer-bottom{flex-wrap:wrap}
 .footer-bottom>span:last-child a{display:inline-flex;align-items:center;min-height:36px}
}
@media(max-width:760px){
 .wrap,.studio-layout.wrap{width:calc(100% - 32px)}
 .topbar{font-size:10px;line-height:1.6;padding:6px 16px;letter-spacing:.6px}
 .section{padding-block:38px}
 h1,.hero-copy h1,.prose h1,.product-detail h1{font-size:clamp(32px,8.5vw,46px);line-height:1.15;letter-spacing:-.035em;margin-bottom:20px}
 h2,.section-head h2,.prose h2{font-size:clamp(28px,7vw,36px);line-height:1.2}
 .eyebrow,.hero .eyebrow{font-size:10px;letter-spacing:1px;line-height:1.7;margin-bottom:14px}
 .hero{padding-block:28px;gap:26px}.hero-copy>p{font-size:16px;line-height:1.75;margin-bottom:20px}
 .actions{gap:10px 18px;align-items:center}.actions .button{width:100%;font-size:15px}
 .actions .text-link{justify-content:center;width:100%;font-size:14px}
 .hero-bottom{margin-top:16px;font-size:13px}.hero-bottom .brand-mark{width:44px;height:44px}
 .hero-visual{aspect-ratio:1;border-radius:24px 24px 56px 24px}
 .visual-tag{font-size:10px;line-height:1.5;left:12px;top:12px;padding:7px 10px;max-width:calc(100% - 24px)}
 .floating-note{max-width:58%;right:12px;bottom:42px;padding:12px;border-radius:14px;transform:none}
 .floating-note b{font-size:clamp(18px,5vw,23px);margin:7px 0}.floating-note>span{font-size:8px;letter-spacing:.5px}.floating-note a{font-size:10px;line-height:1.5}
 .image-caption{font-size:11px;left:12px;bottom:12px;padding:4px 8px;max-width:calc(100% - 24px)}
 .benefit-strip{width:calc(100% - 32px);grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px;padding:18px 14px}
 .benefit-strip span{min-width:0;gap:9px}.benefit-strip b{font-size:12px;line-height:1.5}.benefit-strip .ui-icon{width:28px;height:28px}
 .section-head{display:block;margin-bottom:24px}.section-head .text-link{max-width:none;margin-top:10px}
 .category-row{margin-block:22px;gap:10px}.category-row a{padding:12px;gap:10px;min-height:76px}.category-row b{font-size:13px}.category-row .ui-icon{width:28px;height:28px}
 .product-grid,.kit-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 .product-card{padding:10px 10px 20px;border-radius:22px}.product-image{aspect-ratio:1.15;border-radius:15px}.product-card h3{font-size:23px;line-height:1.3}.product-card p{font-size:15px;line-height:1.7}
 .studio-promo{padding:26px 22px;border-radius:26px;gap:24px}.studio-promo h2{font-size:clamp(34px,8vw,44px)}.studio-promo p{font-size:16px}.studio-promo .button{width:100%}
 .about-row p,.prose p,.prose li{font-size:16px;line-height:1.8}.prose ul,.prose ol{padding-left:22px}
 .faq details{padding:16px}.faq summary{font-size:15px;line-height:1.6;min-height:38px}.faq details p{font-size:15px;line-height:1.75}
 .step{padding:20px 16px;gap:14px}.step>span{font-size:25px}.step h2{font-size:22px}.step p{font-size:15px}
 .product-detail{gap:24px;margin-top:24px}.product-detail>img{max-height:440px;object-fit:contain;background:#f6f1e8;border-radius:22px}
 .product-detail p{font-size:16px}.product-detail .button{width:100%;margin:8px 0 0}
 .contact-grid{gap:24px;margin-top:24px}.contact-grid h2{font-size:28px}.contact-grid .button,#contact-form .button{width:100%;font-size:14px}
 .contact-grid .panel{padding:22px 18px}.contact-grid .panel>small{font-size:13px;line-height:1.7}
 .location-info,.location-card--compact .location-info{padding:24px 20px}.location-info h2,.location-card--compact .location-info h2{font-size:28px}
 .location-actions .button,.location-card--compact .location-actions .button{font-size:14px;min-height:46px}
 .location-map,.location-map iframe,.location-card--compact .location-map,.contact-grid .location-card--compact iframe{height:260px;min-height:260px}
 .fan-prices{padding-bottom:38px}.fan-prices>h2{font-size:28px}.fan-prices>p{font-size:15px}
 .fan-price-grid{gap:16px}.fan-price-grid .panel{padding:16px 12px}.fan-price-grid h3{font-size:20px}.fan-price-grid table{font-size:13px;font-variant-numeric:tabular-nums}
 .fan-price-grid th,.fan-price-grid td{padding:10px 4px}.fan-price-grid td:not(:first-child){white-space:nowrap}.fan-price-grid th:not(:first-child),.fan-price-grid td:not(:first-child){text-align:right}
 .kit-grid .panel{padding:24px}.kit-grid h3{font-size:23px}
 .contact-banner{width:calc(100% - 32px);padding:26px 22px;margin-bottom:0;border-radius:24px;gap:20px}.contact-banner h2{font-size:30px}.contact-banner .button{width:100%;font-size:14px}
 footer{padding-top:26px}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px;padding-bottom:24px}.footer-grid h3{font-size:14px;line-height:1.5;margin:12px 0}
 .footer-grid>div:first-child{grid-column:1/-1}.footer-grid p,.footer-grid a:not(.brand),.footer-grid span{font-size:13px}.footer-grid .brand{width:145px}.footer-grid .brand img{height:55px}
 .footer-bottom{gap:12px;padding-block:18px;font-size:12px}.footer-bottom>div{gap:14px;flex-wrap:wrap}.footer-bottom>div>a,.intro-replay{display:inline-flex;align-items:center;min-height:40px}
 /* Keep the product preview useful without filling the entire mobile page. */
 body[data-page=studio]{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 body[data-page=studio] .topbar{display:none}
 .studio-heading{padding-block:18px 14px}.studio-heading .eyebrow{display:none}.studio-heading h1{font-size:32px;margin-bottom:5px}.studio-heading p{font-size:14px;line-height:1.65}
 .studio-mobile-product{display:block;margin-bottom:16px}.studio-mobile-product label{font-size:14px;line-height:1.5;margin-bottom:6px}.studio-mobile-product select{font-size:16px;min-height:48px}
 .studio-product-picker{display:none}
 .studio-mobile-links{display:flex;flex-direction:row;align-items:center;gap:10px;position:fixed;inset:auto 0 0;z-index:40;padding:10px max(16px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:#fbfaf7f5;backdrop-filter:blur(12px);border:0;border-top:1px solid #e0dbd2;border-radius:0;box-shadow:0 -8px 24px #30231410}
 .studio-mobile-links a{display:flex;justify-content:center;align-items:center;min-width:0;flex:1;min-height:44px;padding:10px 8px;border:1px solid #ded7cd;border-radius:12px;font-size:14px;font-weight:800;line-height:1.5;background:white}
 .studio-mobile-links a:last-child{background:#ff7900;border-color:#ff7900;color:#211508}
 body:has(input:not([type=checkbox]):not([type=range]):not([type=file]):focus,textarea:focus) .studio-mobile-links{display:none}
 #studio-controls,#studio-quote{scroll-margin-top:12px}
 .studio-layout{gap:16px;padding-bottom:20px}.studio-layout .panel{padding:20px 18px;border-radius:20px}
 .studio-layout .panel h2{font-size:18px;line-height:1.5}.studio-layout label{font-size:14px}
 .preview-panel{border-radius:20px;padding-bottom:16px}.preview-top{padding:12px 14px;gap:6px}.preview-top>span{font-size:10px;letter-spacing:.5px}.preview-top .check{font-size:12px}
 .canvas-wrap canvas{width:auto;height:auto;max-width:100%;max-height:clamp(230px,38svh,350px);touch-action:pan-y pinch-zoom}
 .preview-toolbar{gap:8px;padding-inline:10px}.preview-toolbar button{min-width:44px;min-height:44px;padding:10px 12px}.preview-toolbar output{font-size:14px}
 .preview-panel>p{font-size:13px;line-height:1.6;margin:10px 0 5px}.preview-panel>small{font-size:12px;line-height:1.6;padding-inline:16px}
 .models{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-bottom:20px}.models button{grid-column:span 2;padding:10px 4px;min-height:66px}.models button:nth-child(n+4){grid-column:span 3}.models b{font-size:14px;padding-inline:2px}.models small{font-size:11px;padding-inline:2px}
 .upload{display:grid;grid-template-columns:32px 1fr;gap:4px 10px;padding:16px;text-align:left;align-items:center}.upload .ui-icon{grid-row:1/3;width:32px;height:32px}.upload strong{font-size:16px}.upload small{grid-column:2;font-size:12px}
 .controls h2:not(:first-child){margin-top:20px}.studio-layout .check{min-height:44px}.studio-options summary,.link-button{min-height:44px;font-size:14px}
 .quote dl{font-size:14px;line-height:1.55;gap:10px}.quote .reference{padding:16px}.quote .reference strong{font-size:28px}.quote .button{min-height:48px;font-size:14px}.quote .eyebrow{font-size:11px}
}
@media(min-width:540px) and (max-width:760px){
 .product-grid,.kit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-card h3{font-size:21px}.hero-visual{max-width:560px;width:100%;margin-inline:auto}
 .footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .studio-layout{max-width:600px;margin-inline:auto}.studio-mobile-product,.studio-heading{max-width:600px}
}
@media(max-width:380px){
 header{gap:8px;padding-inline:12px}.header-quote.button{padding-inline:13px}.header-quote.button .quote-label-long{display:none}.header-quote.button .quote-label-short{display:inline}
 .category-row a{gap:8px;padding:10px}.category-row b{font-size:12px}.category-row .ui-icon{width:24px;height:24px}
 .benefit-strip{padding-inline:12px}.benefit-strip b{font-size:11px}.benefit-strip .ui-icon{width:25px;height:25px}
 .studio-layout .panel{padding-inline:15px}.models small{font-size:10px}.models b{font-size:14px}.preview-top{padding-inline:10px}.preview-top>span{font-size:9px}.preview-top .check{font-size:11px}
 .fan-price-grid table{font-size:12px}
}
@media(max-width:1024px) and (max-height:500px){
 :root{--mobile-header-height:60px}.hero{padding-block:24px}.brand-intro{padding:12px 20px;min-height:100dvh}.intro-scene{width:min(42vh,280px);margin-top:0}.intro-caption{padding:8px 0}.intro-caption p{font-size:20px}.intro-caption-line{width:24px}
}
@media(max-width:1024px) and (orientation:landscape){
 .wrap,.studio-layout.wrap{width:calc(100% - max(20px,env(safe-area-inset-left)) - max(20px,env(safe-area-inset-right)))}
}
@media(hover:none){
 .button:hover,.product-card:hover,.category-row a:hover{transform:none}.product-card:hover img{transform:none}
}
