/* Language controls are compact enough for the smallest header; body copy uses MSA. */
html[lang=ar] :is([data-phone],a[href^="tel:"],input[type=tel],.whatsapp-tooltip small){direction:ltr!important;unicode-bidi:isolate!important;text-align:left!important}
html[lang=ar] [data-phone]{display:inline-block;white-space:nowrap}
html .product-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html[lang=ar] .product-panel .product-copy h3{line-height:1.4!important}
.language-switch{display:inline-flex;align-items:center;gap:2px;flex:none;direction:ltr;padding:3px;border:1px solid rgba(35,80,60,.16);border-radius:999px;background:rgba(248,252,247,.82);white-space:nowrap}
.language-switch button{border:0;background:transparent;color:#466052;padding:6px 8px;font:600 10px/1.35 var(--app-font);border-radius:999px;cursor:pointer;transition:background .2s,color .2s;min-height:27px}
.language-switch button[lang=ar]{font-family:var(--app-font);font-size:10px}
.language-switch button[aria-pressed=true]{background:#234e3c;color:#fff}
.language-switch button:focus-visible{outline:2px solid #528467;outline-offset:3px}
.page-header>.language-switch{margin-inline-start:auto;margin-inline-end:16px}
html[lang=ar]{font-family:var(--app-font)}
html[lang=ar] body,html[lang=ar] button,html[lang=ar] input,html[lang=ar] textarea,html[lang=ar] select{font-family:var(--app-font)}
html[lang=ar] :is(h1,h2,h3,h4,p,.eyebrow,.text-link,.page-eyebrow,.page-link,.page-button,.button,.nav-cta,nav a,.project-tags,.project-info,.product-points,.form-label,footer){font-family:var(--app-font);letter-spacing:0}
html[lang=ar] :is(p,li,.page-copy,.page-hero>p){line-height:1.95}
html[lang=ar] :is(h1,h2,h3){line-height:1.4}
html[lang=ar] .hero-copy h1{font-size:clamp(31px,3.7vw,56px)!important;line-height:1.45;letter-spacing:0}
html[lang=ar] .hero-copy h1 span{white-space:normal}
html[lang=ar] .hero-copy{text-align:right}
html[lang=ar] .brand,html[lang=ar] .page-brand{direction:ltr}
html[lang=ar] .eyebrow,html[lang=ar] .page-eyebrow{text-transform:none;line-height:1.8}
html[lang=ar] .product-copy h3{font-size:clamp(27px,3.1vw,43px);line-height:1.5;letter-spacing:0}
html[lang=ar] .product-copy{min-width:0}
html[lang=ar] .product-copy p{font-size:12px;line-height:1.9}
html[lang=ar] .product-points>span{line-height:1.8}
html[lang=ar] .product-tab{letter-spacing:0}
html[lang=ar] .demo-frame,html[lang=ar] .companion-stage,html[lang=ar] .companion-root,html[lang=ar] .brand-marquee{direction:ltr}
html[lang=ar] .property-console{direction:rtl}
html[lang=ar] .pilot-message,html[lang=ar] .pilot-record-need{line-height:1.75;text-align:right}
html[lang=ar] .pilot-top,html[lang=ar] .pilot-brand{direction:rtl}
html[lang=ar] .pilot-brand strong{direction:ltr;unicode-bidi:isolate;letter-spacing:0}
html[lang=ar] .pilot-flow>span{white-space:normal;font-size:9px;line-height:1.6}
html[lang=ar] .pilot-flow>b,html[lang=ar] .delivery-sequence>i{transform:scaleX(-1)}
html[lang=ar] .pilot-sources>span{font-size:9px}
html[lang=ar] .pilot-contact-context{font-size:8px}
html[lang=ar] .pilot-record-budget b{direction:ltr;unicode-bidi:isolate}
html[lang=ar] .companion-speech{font-family:var(--app-font);direction:rtl;font-weight:400!important;letter-spacing:0!important}
html[lang=ar] .companion-speech>span{font-family:var(--app-font);direction:rtl}
html[lang=ar] .companion-speech{font-size:22px!important;line-height:1.18!important}
html[lang=ar] .companion-speech .greeting-copy{font:inherit!important;line-height:inherit!important}
html[lang=ar] .companion-anchor{text-align:right}
html[lang=ar] .hero .companion-stage :is(.universe-node strong,.hero-scene h3,.hero-scene p,.delivery-sequence b,.delivery-sequence small,.universe-caption),html[lang=ar] .guide-intro-copy :is(p,small){font-family:var(--app-font);letter-spacing:0!important}
html[lang=ar] :is(.companion-hero .hero-copy>p,.hero-actions a,.hero-footnote,.hero-kicker){font-family:var(--app-font);letter-spacing:0!important}
html[lang=ar] .hero .companion-stage .universe-node strong{white-space:normal;font-size:10px!important;line-height:1.5!important}
html[lang=ar] .hero .companion-stage .hero-scene h3{font-size:14px;line-height:1.7}
html[lang=ar] .hero .companion-stage .hero-scene p{font-size:10px;line-height:1.8}
html[lang=ar] .delivery-sequence :is(b,small){font-size:10px;line-height:1.7}
html[lang=ar] .pilot-engine-caption{white-space:normal;text-align:center;max-width:100%;line-height:1.6}
html[lang=ar] :is(.pilot-contact-name,.pilot-record-name){direction:ltr;unicode-bidi:isolate}
html[lang=ar] :is(.metric-value,.business-metrics strong,[data-count]){direction:ltr;unicode-bidi:isolate}
html[lang=ar] :is(input[type=email],input[type=tel],a[href^="mailto:"],a[href^="tel:"]){direction:ltr;unicode-bidi:isolate}
html[lang=ar] .project-info h3{font-size:20px;line-height:1.55}
html[lang=ar] .project-tags{line-height:1.7}
html[lang=ar] .project-info p{line-height:1.85}
html[lang=ar] .dialog-close{right:auto;left:16px}
html[lang=ar] #dialog-content h2{padding-inline-end:28px}
html[lang=ar] :is(.page-crumbs,.page-copy,.page-aside,.page-card,.page-cta,.page-hero){min-width:0}
html[lang=ar] .page-hero h1{font-size:clamp(34px,5vw,67px);line-height:1.45;letter-spacing:0}
html[lang=ar] .page-card h2{font-size:24px;line-height:1.55}
html[lang=ar] .page-copy h2{line-height:1.6}
html[lang=ar] :is(.page-card,.page-copy,.page-aside) a{overflow-wrap:anywhere}
/* Keep Arabic connected and readable where the dashboard defines Latin font shorthands. */
html[lang=ar] :is(.pilot-message,.pilot-scenarios button,.pilot-flow,.pilot-panel-heading,.pilot-person,.pilot-record-need,.pilot-crm-checks,.pilot-action,.pilot-bottom,.pilot-voice,.pilot-sources,.pilot-source-row,.product-tab,.project-tags,.filter){font-family:var(--app-font);letter-spacing:0!important}
html[lang=ar] .pilot-message{line-height:1.9!important;overflow-wrap:anywhere}
html[lang=ar] :is(.pilot-chat-input,.pilot-source-row,.pilot-person,.pilot-record-need,.pilot-action){text-align:start}
html[lang=ar] :is(.pilot-scenarios button,.product-tab){line-height:1.7;white-space:normal}
html[lang=ar] .delivery-sequence{direction:rtl;text-align:right}
html[lang=ar] :is(.pilot-sources,.project-tags){direction:rtl}
html[lang=ar] .pilot-sources>span{unicode-bidi:isolate}
html[lang=ar] .pilot-brand{min-width:0}
html[lang=ar] :is(.pilot-top,.pilot-bottom){flex-wrap:wrap}
html[lang=ar] :is(.pilot-person>div,.pilot-action>div,.pilot-record-state,.pilot-bottom>span){min-width:0;overflow-wrap:anywhere}
html[lang=ar] .contact-form,html[lang=ar] .contact-form :is(input,textarea,select,button,legend,label,p,summary,span){font-family:var(--app-font);letter-spacing:0!important}
html[lang=ar] :is(.review-card,.review-card h3,.review-card p,.review-card .review-sample-label,.review-preview-note,.studio-footer .footer-bottom){font-family:var(--app-font);letter-spacing:0;line-height:1.9}
html[lang=ar] .review-row{direction:ltr}
html[lang=ar] .review-card{direction:rtl;text-align:right}
html[lang=ar] .contact-form .service-options label>span{white-space:normal!important;line-height:1.7;min-height:44px;text-align:center;overflow-wrap:anywhere}
html[lang=ar] :is(.contact-form .field-label,.contact-form .field-hint,.contact-form .form-note){text-align:start}
/* The operations console reads in Arabic while preserving brand marks and record identifiers. */
html[lang=ar] .property-console.ops-console{font-family:var(--app-font);direction:rtl;text-align:right}
html[lang=ar] .ops-console :is(button,.ops-message,.ops-header,.ops-toolbar,.ops-sources,.ops-workspace,.ops-footer){font-family:var(--app-font);letter-spacing:0!important}
html[lang=ar] .ops-console .ops-message{line-height:1.95!important;text-align:start;overflow-wrap:anywhere}
html[lang=ar] .ops-console :is(.ops-context,.ops-record-need,.ops-voice small,.ops-events strong,.ops-events small,.ops-action strong,.ops-action small,.ops-inbox-status){line-height:1.85}
html[lang=ar] .ops-console :is(.ops-reference,.ops-name,.ops-avatar,.ops-budget,.ops-source,.ops-owner,time,[data-no-translate]){direction:ltr;unicode-bidi:isolate}
html[lang=ar] .ops-console .ops-brand strong{letter-spacing:0}
html[lang=ar] .ops-console :is(.ops-header,.ops-footer){flex-wrap:wrap}
html[lang=ar] .ops-console :is(.ops-connection,.ops-record-state,.ops-brand>div,.ops-contact>div,.ops-action>div){min-width:0;white-space:normal;overflow-wrap:anywhere}
html[lang=ar] .ops-console .pilot-scenarios button{line-height:1.7;white-space:normal}
html[lang=ar] .product-panel .product-copy h3{line-height:1.5!important;letter-spacing:0!important}
html[lang=ar] .ops-console .ops-record dl{padding-inline:10px}
html[lang=ar] .ops-console .ops-workspace header{font-size:10px;line-height:1.75}
html[lang=ar] .ops-console .ops-message{font-size:11px!important}
html[lang=ar] .ops-console .ops-events strong{font-size:10px}
html[lang=ar] .ops-console .ops-events small{font-size:8px}
html[lang=ar] .ops-console :is(.ops-brand small,.ops-connection,.ops-record dt,.ops-contact small,.ops-voice small,.ops-action small,.ops-inbox-status,.ops-footer){font-size:9px}
html[lang=ar] .ops-console :is(.ops-voice>div:first-child,.ops-action strong,.ops-record dd,.ops-record-need,.ops-sync){font-size:10px}
html[lang=ar] .ops-console :is(.ops-contact strong,.ops-record-person strong){font-size:12px}
@media(max-width:1150px){.header-actions>.language-switch{margin-inline-start:0}.header-actions{gap:9px}}
@media(max-width:650px){.language-switch{padding:2px;gap:0}.language-switch button{padding:5px 6px;font-size:9px;min-height:27px}.language-switch button[lang=ar]{font-size:9px}.header-actions{gap:6px}.page-header{flex-wrap:wrap;row-gap:12px}.page-header>.language-switch{margin-inline-end:0}.page-header .page-crumbs{width:100%}html[lang=ar] .hero-copy h1{font-size:clamp(25px,6.5vw,36px)!important;line-height:1.48}html[lang=ar] .product-copy h3{font-size:31px}html[lang=ar] .hero-copy p{font-size:13px;line-height:1.95}html[lang=ar] .project-info h3{font-size:19px}html[lang=ar] .page-hero h1{font-size:34px}html[lang=ar] .pilot-flow>span{font-size:8px}html[lang=ar] .pilot-message{font-size:10px}html[lang=ar] .hero .companion-stage .universe-node strong{font-size:9px!important}html[lang=ar] .hero .companion-stage .hero-scene h3{font-size:11px}html[lang=ar] .hero .companion-stage .hero-scene p{font-size:9px}}
@media(max-width:350px){.header-actions>.language-switch{gap:0}.header-actions .nav-cta{font-size:10px;padding:9px 10px}.language-switch button{padding:4px 5px;font-size:8px}.language-switch button[lang=ar]{font-size:8px}html[lang=ar] .header-inner>.brand{font-size:25px;gap:6px}html[lang=ar] .header-inner>.brand>span{font-size:20px}html[lang=ar] .header-inner>.brand .brand-symbol{width:28px;height:28px}html[lang=ar] .hero-copy h1{font-size:25px!important}}
