/* A quiet first screen; the next section peeks into view below the demo. */
.home:has(.workflow-showcase) { width:90%; max-width:1760px; height:auto; min-height:0; padding:0; display:block; }
.home-intro { height:calc(100svh - 56px - clamp(160px,12vw,192px)); min-height:440px; padding-block:0 24px; display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,2.2fr); gap:32px; align-items:center; }
.home:has(.workflow-showcase) .hero { display:block; width:100%; margin:0; padding:0; container-type:inline-size; }
.product-intro { width:100%; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:0; --brand-icon-size:clamp(64px,29cqi,112px); }
.product-intro .site-brand { gap:16px; min-width:0; }
.product-intro .site-brand-copy { min-width:0; }
.product-intro .site-brand img { width:var(--brand-icon-size); height:var(--brand-icon-size); flex:none; }
.product-intro .site-brand h1 { margin:0; font-size:calc(var(--brand-icon-size) * 1.03); font-weight:650; line-height:var(--brand-icon-size); transform:translateY(-.05em); letter-spacing:0; white-space:nowrap; }
.product-intro .site-description { width:calc(var(--brand-icon-size) * 3.06 + 16px); margin:18px 0 32px; font-size:clamp(18px,9cqi,34px); line-height:1.4; white-space:nowrap; text-align-last:justify; }
.home:has(.workflow-showcase) .hero-action { display:flex; align-items:center; gap:16px; width:100%; margin:0; }
.product-intro .start-button { display:grid; place-items:center; min-height:88px; padding:24px 36px; font-size:32px; font-weight:600; line-height:1.4; white-space:nowrap; text-decoration:none; }
.product-intro a:focus-visible { outline:3px solid var(--ink); outline-offset:6px; border-radius:6px; }
.workflow-showcase { display:grid; grid-template:minmax(0,1fr) / minmax(0,1fr); align-items:center; justify-items:start; align-self:stretch; justify-self:stretch; min-width:0; min-height:0; max-width:none; width:100%; height:100%; margin:0; container-type:size; background:transparent; border:0; }
.workflow-showcase yue-workflow-demo { display:block; width:min(100cqw,calc(100cqh * 1040 / 700)); height:auto; aspect-ratio:1040/700; border:0; border-radius:14px; box-shadow:0 24px 64px rgb(20 26 30 / 27%),0 6px 20px rgb(20 26 30 / 16%); overflow:hidden; }
.home:has(.workflow-showcase)>.benefits { padding-bottom:120px; container-type:inline-size; }
.home:has(.workflow-showcase) .benefit { display:grid; grid-template-columns:minmax(0,1fr); align-content:start; row-gap:24px; }
.home:has(.workflow-showcase) .benefit h2 { font-size:clamp(44px,5cqi,72px); font-weight:800; line-height:1.12; margin:0; }
.home:has(.workflow-showcase) .benefit p { margin:0; max-width:24em; font-size:clamp(20px,2cqi,28px); line-height:1.7; }
.home:has(.workflow-showcase) .carousel-nav { left:-8px; justify-content:flex-start; margin-top:24px; }
@media(max-width:900px) {
 .home:has(.workflow-showcase) { width:calc(100% - 32px); max-width:760px; }
 .home-intro { height:calc(100svh - 192px); min-height:440px; padding-block:16px 32px; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto; align-content:center; gap:40px; }
 .product-intro { display:grid; grid-template-columns:minmax(0,max-content) max-content; justify-content:space-between; align-items:center; gap:12px 24px; --brand-icon-size:clamp(48px,9cqi,64px); }
 .product-intro .site-brand { grid-column:1; grid-row:1; }
 .product-intro .site-description { grid-column:1; grid-row:2; width:100%; margin:0; font-size:clamp(13px,4.5cqi,22px); }
 .home:has(.workflow-showcase) .hero-action { grid-column:2; grid-row:1 / span 2; }
 .product-intro .site-brand { gap:12px; }
 .product-intro .start-button { min-height:64px; padding:16px 24px; font-size:24px; }
 .workflow-showcase { display:grid; justify-items:center; height:auto; container-type:normal; max-width:none; }
 .workflow-showcase yue-workflow-demo { width:min(100%,max(280px,calc((100svh - 400px) * 1040 / 700))); }
 .home:has(.workflow-showcase)>.benefits { padding-bottom:80px; }
 .home:has(.workflow-showcase) .benefit { grid-template-columns:minmax(0,1fr); align-content:start; gap:24px; }
 .home:has(.workflow-showcase) .benefit h2 { font-size:clamp(36px,7cqi,56px); }
 .home:has(.workflow-showcase) .benefit p { font-size:20px; }
}
@media(max-width:380px) {
 .home:has(.workflow-showcase) { width:calc(100% - 24px); }
 .product-intro { gap:10px 16px; --brand-icon-size:44px; }
 .product-intro .site-brand { gap:8px; }
 .product-intro .start-button { min-height:60px; padding:14px 20px; font-size:22px; }
}

@media(max-width:900px) {
 .home:has(.workflow-showcase) .hero-action { width:auto; flex-direction:column; align-items:flex-start; gap:8px; }
}
