/* Public home refinement, following the second reviewed sketch.
   Existing tabs, preview content, anchors and workspace actions stay intact. */
#home-root .studio-container{width:min(1500px,calc(100% - 96px))}
#home-root .home-header{height:80px;padding-inline:max(48px,calc((100vw - 1500px)/2));gap:24px;background:#baf1e3;border-bottom:1.5px solid #99d6c3;color:#152d25}
#home-root .home-header nav,#home-root .home-header-actions{gap:24px}
#home-root .home-header nav a,#home-root .home-login{font-size:18px;font-weight:700;color:#153c30}
#home-root .home-header nav a:hover,#home-root .home-login:hover{color:#174fa9}
#home-root .home-header .studio-button{font-size:17px;min-height:46px}
#home-root .home-intro-stage{position:relative;isolation:isolate;padding-bottom:28px;background:#faf9f4}
#home-root .home-intro-stage::before{content:"";position:absolute;inset:0 0 0 48%;z-index:-1;background:#fff0a4;clip-path:polygon(26% 0,100% 0,100% 100%,0 100%);pointer-events:none}
#home-root .home-hero{min-height:0;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);padding-block:32px;gap:32px}
#home-root .home-hero-copy{min-width:0;padding:0}
#home-root .home-intro-label{font-size:17px;line-height:1.5;font-weight:650;color:#1b6251;margin-bottom:12px}
#home-root .home-intro-label::before{background:#24795c}
#home-root .home-hero h1{font-size:clamp(43px,4.3vw,68px);font-weight:850;line-height:1.18;letter-spacing:-1.8px;margin:0 0 18px}
#home-root .home-lead{font-size:20px;line-height:1.65;color:#204d40;font-weight:500;margin:0 0 22px}
#home-root .home-hero-actions{gap:20px}
#home-root .home-hero-actions .studio-button{min-height:54px;padding:13px 24px}
#home-root .home-preview-link{font-size:17px;color:#174d40}
#home-root .home-hero-note{font-size:17px;line-height:1.6;color:#87520e;font-weight:550;margin-top:14px}
#home-root .home-illustration{width:100%;max-width:690px;margin:0;justify-self:end;min-width:0}
#home-root .home-illustration img{width:100%;height:auto;max-height:440px;object-fit:contain}
#home-root .home-feature-strip{position:relative;gap:14px;padding-bottom:0}
#home-root .home-feature{min-height:112px;padding:20px 22px;gap:14px;align-items:center;border-radius:16px;box-shadow:none}
#home-root .home-feature .feature-icon{margin:0;flex:none}
#home-root .home-feature .feature-icon svg{width:30px;height:30px}
#home-root .home-feature>span:nth-child(2){min-width:0;padding-right:10px}
#home-root .home-feature strong{font-size:23px;line-height:1.35;margin-bottom:5px}
#home-root .home-feature small{font-size:16px;line-height:1.6;font-weight:550;color:#234a3c;max-width:none}
#home-root .home-feature>svg{right:12px;top:50%;transform:translateY(-50%);width:19px;height:19px}
#home-root .home-product-band{background:#e0f0fc;border-block:1px solid #ccdfed}
#home-root .home-product{padding-block:42px 52px;scroll-margin-top:22px}
#home-root .home-section-heading{margin-bottom:28px;gap:28px}
#home-root .home-section-heading p{color:#21574a;font-size:19px;line-height:1.65;font-weight:550}
#home-root .home-product-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:36px}
#home-root .home-product-tabs{min-width:0}
#home-root .home-product-tab{padding:18px 14px;gap:14px;border-top-color:#acc6d5}
#home-root .home-product-tab:last-child{border-bottom-color:#acc6d5}
#home-root .home-product-tab>span:nth-child(2){min-width:0}
#home-root .home-product-tab>span:nth-child(2)>strong{font-size:22px;line-height:1.45}
#home-root .home-product-tab>span:nth-child(2)>span{font-size:17px;line-height:1.65;margin-top:7px;color:#244c40}
#home-root .home-product-tab.is-selected{background:#ffffffd9;border-color:transparent;border-radius:14px}
#home-root .home-product-tab.is-selected+button{border-top-color:transparent}
#home-root .home-preview-wrap{top:24px}
#home-root .home-preview{min-height:0;padding:28px;border:1.5px solid #acc7da;border-radius:22px;background:#f7fbff;box-shadow:0 7px 0 #7dabc616}
#home-root .home-preview[data-color=yellow]{background:#fff8dc;border-color:#dcc687}
#home-root .home-preview[data-color=mint]{background:#e9f6ee;border-color:#a1c8b3}
#home-root .home-preview[data-color=lilac]{background:#f2edfb;border-color:#c6b6dc}
#home-root .home-preview:has(.demo-task-playground){min-height:0}
#home-root .demo-top{margin-bottom:22px}
#home-root .demo-label{font-size:16px;font-weight:650;color:#245b50;background:#e1f3ed;border-color:#93bdb1}
#home-root .home-demo-caption{font-size:17px;line-height:1.65;font-weight:500;color:#805015;background:#fff1db;padding:12px 16px;border-radius:11px;margin:18px 0 0}
#home-root .demo-try,#home-root .demo-progress-note{font-size:17px;line-height:1.65;font-weight:550;color:#215747}
#home-root .demo-source,#home-root .demo-doc small,#home-root .demo-task-toggle small{color:#31554b}
#home-root .home-how{background:#faf9f4;padding:44px 0 48px;scroll-margin-top:22px}
#home-root .home-steps{gap:18px}
#home-root .home-steps>li{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px 18px;align-content:start;padding:24px;background:#d7edfc;border-radius:18px;min-width:0}
#home-root .home-steps>li:nth-child(2){background:#fff0b5}
#home-root .home-steps>li:nth-child(3){background:#d0eee1}
#home-root .home-step-number{grid-column:1;grid-row:1 / span 2;width:52px;height:52px;border:0;border-radius:13px;margin:0;background:#265fbd;color:#fff;font-size:28px;font-weight:800;line-height:1}
#home-root .home-steps>li:nth-child(2) .home-step-number{background:#875800}
#home-root .home-steps>li:nth-child(3) .home-step-number{background:#176a50}
#home-root .home-steps h3{grid-column:2;font-size:24px;line-height:1.4;margin:2px 0 0}
#home-root .home-steps p{grid-column:2;font-size:17px;line-height:1.75;color:#24493b;margin:0;max-width:none}
#home-root .home-details{padding-block:52px 56px;gap:50px}
#home-root .home-details>div>p{font-size:18px;color:#215747;font-weight:550;margin-top:18px}
#home-root .home-questions summary{font-size:21px;padding:22px 0}
#home-root .home-questions p{font-size:18px;line-height:1.75;padding-bottom:22px;color:#284c40}
#home-root .home-finale{padding:48px 0 52px;background:#f8df77}
#home-root .finale-icon{width:52px;height:52px;margin-bottom:17px}
#home-root .finale-icon svg{width:30px;height:30px}
#home-root .home-finale h2{font-size:clamp(38px,3.8vw,56px);margin-bottom:24px}
#home-root .home-footer{padding-block:26px;gap:22px}
#home-root .home-footer p{font-size:17px;color:#285446;font-weight:500}
@media(max-width:1150px){
 #home-root .studio-container{width:calc(100% - 64px)}
 #home-root .home-header{padding-inline:32px;gap:18px}
 #home-root .home-header nav,#home-root .home-header-actions{gap:18px}
 #home-root .home-hero{gap:20px}
 #home-root .home-hero h1{font-size:clamp(42px,4.6vw,52px)}
 #home-root .home-illustration{width:100%;margin:0}
 #home-root .home-feature-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 #home-root .home-feature{min-height:100px;padding:18px 24px}
 #home-root .home-product-layout{gap:26px}
 #home-root .home-product-tab{gap:12px;padding:18px 12px}
 #home-root .home-product-tab>span:nth-child(2)>strong{font-size:21px}
 #home-root .home-preview{padding:23px}
 #home-root .home-steps>li{display:block;padding:22px}
 #home-root .home-step-number{width:46px;height:46px;font-size:25px;margin-bottom:16px}
 #home-root .home-steps h3{font-size:22px;margin-bottom:10px}
}
@media(max-width:850px){
 #home-root .home-header nav{display:none}
 #home-root .home-hero{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);padding-block:28px;gap:14px}
 #home-root .home-hero h1{font-size:clamp(34px,5.2vw,43px);letter-spacing:-1.2px}
 #home-root .home-lead{font-size:18px;line-height:1.65}
 #home-root .home-hero-actions{gap:10px}
 #home-root .home-hero-actions .studio-button{padding-inline:17px;font-size:17px}
 #home-root .home-preview-link{font-size:16px}
 #home-root .home-product-layout{grid-template-columns:minmax(0,1fr);gap:24px}
 #home-root .home-product-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
 #home-root .home-product-tab{padding:15px 12px;border-color:#aac5d7!important}
 #home-root .home-product-tab.is-selected{border-color:#315ecc!important;background:#fff}
 #home-root .home-product-tab>span:nth-child(2)>strong{font-size:17px;line-height:1.5}
 #home-root .home-preview-wrap{position:static}
 #home-root .home-preview{padding:26px;min-height:0}
 #home-root .home-details{grid-template-columns:minmax(0,1fr);gap:22px}
 #home-root .home-steps{gap:14px}
 #home-root .home-steps>li{padding:20px 18px}
 #home-root .home-steps h3{font-size:21px}
}
@media(max-width:600px){
 #home-root .studio-container{width:calc(100% - 40px)}
 #home-root .home-header{height:76px;padding-inline:20px;gap:10px}
 #home-root .home-header .studio-brand{font-size:24px;gap:8px}
 #home-root .home-header-actions{gap:10px}
 #home-root .home-header .home-login{padding:9px 18px;font-size:17px;border-color:#5d9c88}
 #home-root .home-header .studio-button{font-size:16px;gap:8px}
 #home-root .home-intro-stage{padding-bottom:24px}
 #home-root .home-intro-stage::before{inset:42% 0 0 23%;clip-path:polygon(40% 0,100% 0,100% 100%,0 100%)}
 #home-root .home-hero{display:flex;flex-direction:column;align-items:stretch;padding:24px 0 12px;gap:4px}
 #home-root .home-intro-label{font-size:16px;margin-bottom:12px}
 #home-root .home-hero h1{font-size:clamp(36px,9.8vw,48px);line-height:1.2;letter-spacing:-1.3px;margin-bottom:16px}
 #home-root .home-lead{font-size:18px;line-height:1.65;margin-bottom:20px}
 #home-root .home-hero-actions{gap:14px}
 #home-root .home-hero-actions .studio-button{min-height:52px;padding:12px 17px;gap:14px}
 #home-root .home-hero-note{font-size:16px;margin-top:12px}
 #home-root .home-illustration{width:100%;max-width:430px;margin:0 auto}
 #home-root .home-illustration img{max-height:270px}
 #home-root .home-feature-strip{gap:12px}
 #home-root .home-feature{min-height:136px;flex-direction:column;align-items:flex-start;gap:10px;padding:18px 16px;border-radius:15px}
 #home-root .home-feature>span:nth-child(2){padding-right:0}
 #home-root .home-feature strong{font-size:22px}
 #home-root .home-feature small{font-size:16px;line-height:1.55}
 #home-root .home-feature>svg{top:20px;right:13px;transform:none}
 #home-root .home-product{padding-block:32px 36px;scroll-margin-top:16px}
 #home-root .home-section-heading{display:block;margin-bottom:22px}
 #home-root .home-section-heading p{font-size:18px!important;line-height:1.65;margin-top:14px!important}
 #home-root .home-product-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #home-root .home-product-tab{padding:14px 11px;gap:9px}
 #home-root .home-product-tab>span:nth-child(2)>strong{font-size:16px;line-height:1.5}
 #home-root .home-preview{padding:20px;border-radius:18px;min-height:0}
 #home-root .home-preview .demo-job{min-height:0}
 #home-root .home-demo-caption{font-size:16px;padding:12px 14px;margin-top:16px}
 #home-root .demo-try,#home-root .demo-progress-note{font-size:16px}
 #home-root .home-how{padding:32px 0 34px}
 #home-root .home-steps{grid-template-columns:minmax(0,1fr);gap:14px}
 #home-root .home-steps>li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:9px 14px;padding:22px 20px}
 #home-root .home-step-number{width:44px;height:44px;font-size:24px;margin:0;border-radius:11px}
 #home-root .home-steps h3{font-size:22px;line-height:1.4;margin:1px 0 0}
 #home-root .home-steps p{font-size:17px;line-height:1.75}
 #home-root .home-details{padding-block:34px 38px;gap:16px}
 #home-root .home-details>div>p{margin-top:14px}
 #home-root .home-questions summary{font-size:19px;line-height:1.6;padding:20px 0}
 #home-root .home-questions p{font-size:17px;line-height:1.75;padding-bottom:20px}
 #home-root .home-finale{padding:36px 0 40px}
 #home-root .home-finale h2{font-size:38px;margin-bottom:22px}
 #home-root .home-footer{padding-block:24px;gap:14px}
 #home-root .home-footer .studio-brand{width:auto}
}
@media(max-width:375px){
 #home-root .studio-container{width:calc(100% - 32px)}
 #home-root .home-header{padding-inline:16px}
 #home-root .home-header .studio-brand{font-size:22px;gap:6px}
 #home-root .home-header .studio-brand img{width:30px;height:30px}
 #home-root .home-header:has([data-page]) .home-header-actions .studio-button{font-size:15px;padding-inline:10px;gap:6px}
 #home-root .home-hero-actions{gap:12px}
 #home-root .home-hero-actions .studio-button{padding-inline:14px}
 #home-root .home-feature{padding:17px 14px}
 #home-root .home-product-tab .product-tab-icon{width:25px}
 #home-root .home-product-tab .product-tab-icon svg{width:23px}
 #home-root .home-preview{padding:17px}
 #home-root .demo-top{gap:8px}
 #home-root .demo-top>span:first-child{font-size:18px;gap:7px}
 #home-root .demo-label{font-size:15px;padding:3px 7px}
}
