/* The current SINORA navigation and full homepage footer around the BA app.
 * Footer styles are scoped; the theme and all other pages remain untouched. */
.ba-site-page{--ba-room:calc(100svh - var(--snav-top,80px) - var(--snav-bottom,0px));padding-block-start:var(--snav-top,80px);padding-block-end:var(--snav-bottom,0px)}
html:has(.ba-site-page){scroll-padding-block-start:calc(var(--snav-top,80px) + 12px);scroll-padding-block-end:calc(var(--snav-bottom,0px) + 12px);scroll-snap-type:none}
.ba-site-page .skip{z-index:2000}
.ba-site-page #automation-story,.ba-site-page #intro,.ba-site-page #demos,.ba-site-page #collaboration{min-block-size:var(--ba-room);scroll-margin-block-start:calc(var(--snav-top,80px) + 12px);scroll-snap-align:none}
.ba-site-page #automation-story{padding-block:24px}
.ba-site-page #automation-story .story-head{padding-block-start:0}
.ba-site-page #automation-story[data-layout=split] .story-head,.ba-site-page #automation-story[data-layout=split] .story-presentation,.ba-site-page #intro[data-split=true] .hero-copy,.ba-site-page #intro[data-split=true] .composer{min-block-size:var(--ba-room);scroll-snap-align:none}
.ba-site-page #detail-view{min-height:var(--ba-room);padding-block-start:36px}
.ba-site-page #collaboration{min-block-size:0;padding-block:48px 64px}
.ba-site-page .story-language,.ba-site-page .story-tools{display:none}
/* Reset the preview's generic footer rule, then use the same footer content,
 * columns, flow cards, contact card and signature as the adopted homepage. */
.ba-site-footer{display:block;margin:0;padding:0;border-top:1px solid rgba(210,171,103,.13);color:#dedbd3;background:radial-gradient(ellipse at 50% 100%,rgba(210,171,103,.04),transparent 60%),#090a09;font:14px/1.9 var(--font)}
.ba-site-footer img{width:auto;height:auto;max-height:none}
.ba-site-footer a{transition:color .18s,background .18s}
.ba-site-footer a:hover{color:#f3d18c}
.ba-site-footer svg{width:18px;height:18px;flex-shrink:0;vertical-align:middle}
.ba-site-footer>section,.ba-site-footer>div{width:min(1360px,calc(100% - 80px));margin-inline:auto}
.ba-site-footer .ba-footer-flow{padding-block:64px 48px}
.ba-footer-flow>div:first-child{text-align:center;max-width:820px;margin:0 auto 32px}
.ba-footer-flow>div:first-child>div{font-size:11px;letter-spacing:.16em;color:#d2ab67;margin-bottom:16px}
.ba-footer-flow h2{font-size:clamp(25px,3vw,40px);line-height:1.5;font-weight:500}
html[lang=fa] .ba-footer-flow h2{font-family:Ray,SinoraUI,sans-serif;line-height:1.8}
.ba-footer-flow h2+p{font-size:14px;color:#b9b5ab;margin:16px auto 0;line-height:1.9}
.ba-footer-flow h2 br{display:none}
.ba-footer-flow>div:last-child{display:grid;grid-template-columns:1fr 32px 1fr 32px 1fr;align-items:stretch;gap:16px;max-width:1100px;margin:auto}
.ba-site-footer .flow-node{display:block;position:relative;padding:26px;border:1px solid rgba(210,171,103,.18);border-radius:18px;background:linear-gradient(160deg,rgba(8,18,37,.55),rgba(3,8,19,.35));transition:border-color .2s,transform .2s;overflow:hidden}
.ba-site-footer .flow-node:hover{border-color:rgba(210,171,103,.42);transform:translateY(-2px)}
.ba-site-footer .flow-node-num{font-size:12px;color:#d2ab67;margin-bottom:14px;letter-spacing:.06em}
.ba-site-footer .flow-node-title{font-size:26px;line-height:1.4;color:#f8f6f2;margin-bottom:12px}
html[lang=fa] .ba-site-footer .flow-node-title{font-family:Ray,SinoraUI,sans-serif}
.ba-site-footer .flow-node-text{font-size:13px;color:#b9b5ab;line-height:1.9}
.ba-footer-flow>div:last-child>div{display:flex;align-items:center;justify-content:center}
.ba-site-footer .flow-arrow{width:100%;height:1px;background:linear-gradient(90deg,rgba(210,171,103,.2),#d2ab67)}
.ba-site-footer .flow-arrow:after{content:'→';display:block;font:22px/1 Inter,sans-serif;text-align:end;margin-top:-11px;color:#d2ab67}
html[lang=fa] .ba-site-footer .flow-arrow:after{content:'←';text-align:start}
.ba-site-footer .ba-footer-columns{padding-block:48px;display:grid;grid-template-columns:1.35fr .75fr .9fr 1.25fr;gap:clamp(24px,3vw,48px)}
.ba-footer-columns>div{min-width:0}
.ba-site-footer .sinora-nav-logo{display:block;width:160px;margin-bottom:20px}
.ba-site-footer .sinora-nav-logo img{display:block;width:100%;height:auto}
.ba-footer-columns>div:first-child>p{font-size:14px;color:#b9b5ab;line-height:1.95;margin-bottom:18px;max-width:340px}
.ba-footer-columns>div:first-child>div:nth-of-type(1){font-size:13px;line-height:1.9;color:#d2ab67;border-inline-start:2px solid rgba(210,171,103,.3);padding-inline-start:16px}
.ba-footer-columns>div:first-child>div:last-child{display:flex;gap:10px;margin-top:24px;flex-wrap:wrap}
.ba-site-footer .social-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid rgba(210,171,103,.22);border-radius:12px;color:#d2ab67}
.ba-site-footer .social-icon:hover{background:rgba(210,171,103,.08)}
.ba-site-footer .footer-col-title{font-size:12px;color:#d2ab67;letter-spacing:.08em;margin-bottom:16px;display:flex;gap:12px;align-items:center}
.ba-site-footer .footer-col-title:before{content:'';width:18px;height:1px;background:rgba(210,171,103,.5)}
.ba-site-footer .footer-link{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px;color:#b9b5ab;line-height:1.7;padding-block:9px}
.ba-site-footer [aria-current=page]{color:#f3d18c}
.ba-site-footer .footer-link>span{font-size:11px;line-height:1.5;border-radius:3px;background:#d2ab67;color:#090a09;padding:3px 5px}
.ba-site-footer .footer-contact-card{padding:20px;border-radius:16px;border:1px solid rgba(210,171,103,.22);background:linear-gradient(160deg,rgba(8,18,37,.6),rgba(8,18,37,.2))}
.footer-contact-card>div:first-child{font-size:11px;color:#d2ab67;letter-spacing:.1em;margin-bottom:8px}
.footer-contact-card>a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 12px;border-radius:10px;background:linear-gradient(115deg,#f7d785,#e6b454 66%,#c38d35);color:#171309;font-size:13px;font-weight:600;margin-bottom:16px}
.footer-contact-card>a:hover{color:#171309;filter:brightness(1.05)}
.footer-contact-card>div:last-child>*{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.9;color:#b9b5ab;padding-block:8px;overflow-wrap:anywhere}
.footer-contact-card>div:last-child>a{min-height:44px}
.footer-contact-card>div:last-child svg{margin-top:3px;color:#d2ab67;width:15px;height:15px}
.ba-site-footer .ba-footer-signature{position:relative;text-align:center;padding-block:16px 48px;overflow:hidden}
.ba-footer-signature>div:last-child>div:first-child{font:500 clamp(40px,8vw,100px)/1.2 Georgia,serif;letter-spacing:-.05em}
.ba-footer-signature>div:last-child>div:first-child>span:last-child{color:rgba(255,255,255,.4);font-style:italic}
.ba-footer-signature>div:last-child>div:last-child{font-size:11px;letter-spacing:.2em;color:#cdb988;margin-top:12px}
.ba-site-footer .gold-text-grad{background:linear-gradient(115deg,#f7d785,#d2ab67 66%,#b18843);background-clip:text;-webkit-background-clip:text;color:transparent}
.ba-site-footer>div:last-child{width:100%;border-top:1px solid rgba(210,171,103,.13)}
.ba-site-footer>div:last-child>div{width:min(1360px,calc(100% - 80px));margin:auto;display:flex;justify-content:space-between;gap:20px;padding-block:24px;color:#a49e91;font-size:12px}
.ba-site-footer>div:last-child>div>div{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:14px}
.ba-site-footer>div:last-child a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:1199px){.ba-site-page{--ba-room:calc(100svh - var(--snav-top,64px) - var(--snav-bottom,96px))}.ba-site-footer .ba-footer-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}.ba-site-page dialog{max-height:calc(100svh - 24px)}}
@media(max-width:700px){
 .ba-site-page #automation-story,.ba-site-page #intro,.ba-site-page #demos,.ba-site-page #collaboration,.ba-site-page #automation-story[data-layout=split] .story-head,.ba-site-page #automation-story[data-layout=split] .story-presentation,.ba-site-page #intro[data-split=true] .hero-copy,.ba-site-page #intro[data-split=true] .composer{min-block-size:0}
 .ba-site-page #automation-story,.ba-site-page #automation-story[data-layout=split] .story-head{padding-block:20px 12px}
 .ba-site-page #automation-story[data-layout=split] .story-presentation{padding-block:0 12px}
 .ba-site-page #collaboration{padding-block:28px 36px}
 .ba-site-footer>section,.ba-site-footer>div,.ba-site-footer>div:last-child>div{width:calc(100% - 40px)}
 .ba-site-footer .ba-footer-flow{padding-block:36px 28px}
 .ba-footer-flow>div:first-child{margin-bottom:24px}
 .ba-footer-flow>div:last-child{grid-template-columns:1fr;gap:12px}
 .ba-footer-flow>div:last-child>div{display:none}
 .ba-site-footer .flow-node{padding:20px}
 .ba-site-footer .ba-footer-columns{padding-block:28px;gap:28px 16px}
 .ba-footer-columns>div:first-child,.ba-footer-columns>div:last-child{grid-column:1/-1}
 .ba-site-footer .footer-col-title{letter-spacing:0}
 .ba-site-footer .ba-footer-signature{padding-block:12px 32px}
 .ba-site-footer>div:last-child>div{flex-direction:column;gap:4px;padding-block:16px}
}
@media(prefers-reduced-motion:reduce){.ba-site-page .snav *,.ba-site-footer *{animation:none!important;transition:none!important}.ba-site-footer .flow-node:hover{transform:none}}

/* v20.2 — the original text and logo/process share one compact first section. */
.ba-site-page #automation-story,
.ba-site-page #automation-story[data-layout=split]{display:flex;flex-direction:column;justify-content:center;gap:clamp(8px,1.4svh,14px);min-block-size:var(--ba-room);padding-block:clamp(12px,2svh,24px)}
.ba-site-page #automation-story .story-head,
.ba-site-page #automation-story[data-layout=split] .story-head{
 position:static;display:block;inline-size:min(860px,100%);block-size:auto;min-block-size:0;
 margin:0 auto;padding:0;overflow:visible;clip-path:none;white-space:normal
}
.ba-site-page #automation-story .story-head>.eyebrow{font-size:11px;letter-spacing:.12em;line-height:1.7}
.ba-site-page #automation-story #story-title{font-size:clamp(24px,3.8vw,34px);line-height:1.35;margin-block:8px}
html[lang=fa] .ba-site-page #automation-story #story-title{font-size:clamp(24px,3.8vw,34px);line-height:1.65;margin-block:6px}
.ba-site-page #automation-story .story-lead{max-inline-size:750px;margin:0 auto;font-size:clamp(12px,1.8svh,15px);line-height:1.8}
.ba-site-page #automation-story .story-explore,
.ba-site-page #automation-story .story-caption,
.ba-site-page #automation-story .story-bottom{display:none!important}
.ba-site-page #automation-story .story-presentation,
.ba-site-page #automation-story[data-layout=split] .story-presentation{
 inline-size:100%;min-block-size:0;margin:0;padding-block:0;gap:clamp(8px,1.5svh,16px);scroll-snap-align:none
}
.ba-site-page #automation-story .story-scene{margin-block:clamp(4px,1.5svh,14px) 0}
@media(max-width:700px){
 .ba-site-page #automation-story,.ba-site-page #automation-story[data-layout=split]{min-block-size:0;padding-block:16px 20px}
}
@media(max-height:500px) and (min-width:701px){
 .ba-site-page #automation-story,.ba-site-page #automation-story[data-layout=split]{padding-block:4px;gap:6px}
 .ba-site-page #automation-story #story-title,html[lang=fa] .ba-site-page #automation-story #story-title{font-size:26px;line-height:1.5;margin-block:4px}
 .ba-site-page #automation-story .story-presentation{gap:4px}
 .ba-site-page #automation-story .story-scene{min-block-size:0;margin-block:0;padding-block:0}
 .ba-site-page #automation-story .story-inputs,.ba-site-page #automation-story .story-outputs{gap:8px}
 .ba-site-page #automation-story .flow-input,.ba-site-page #automation-story .flow-output{min-block-size:44px;padding-block:5px}
 .ba-site-page #automation-story .flow-detail{display:none}
 .ba-site-page #automation-story .story-cases button{min-block-size:32px;padding-block:4px}
}

/* v21 — small section-boundary adjustments; controls and internal content stay intact. */
@media(min-width:1200px) and (min-height:720px){
 .ba-site-page #automation-story,
 .ba-site-page #automation-story[data-layout=split],
 .ba-site-page #demos{min-block-size:calc(var(--ba-room) - 24px)}
 .ba-site-page #collaboration{padding-block:40px 56px}
 .ba-site-page:has(#automation-story:not([hidden])) .ba-footer-flow{padding-block-start:56px}
}
@media(max-width:700px){
 .ba-site-page #automation-story,
 .ba-site-page #automation-story[data-layout=split]{padding-block-end:28px}
 .ba-site-page #intro{padding-block:24px}
 .ba-site-page #demos{padding-block:32px 24px}
 .ba-site-page #collaboration{padding-block:32px 40px}
 .ba-site-page:has(#automation-story:not([hidden])) .ba-footer-flow{padding-block-start:40px}
}
