/* Layout-only additions. Components, type, colors and borders come from AI and product styles. */
.ai-chat-page { --product-accent:var(--ai-accent); }
/* Dark surfaces use the theme's lighter accent, the same remap theme.css applies to eyebrows and icons. */
html[data-theme=dark] .ai-chat-page { --ai-accent:var(--link); }

/* Hero */
.ai-chat-page .ai-hero h1 { margin-bottom:14px; }
.ai-page .ai-chat-subtitle { font-size:13px; font-weight:800; letter-spacing:.035em; text-transform:uppercase; line-height:1.6; color:var(--ai-accent); margin-bottom:18px; }
[dir=rtl] .ai-chat-subtitle { font-size:15px; letter-spacing:0; text-transform:none; }
.ac-hero-panel { min-width:0; padding:26px; border:1px solid var(--border); border-radius:8px; background:var(--surface); box-shadow:0 20px 55px #13305f0c; }
.ac-panel-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:22px; border-bottom:1px solid var(--border); }
.ac-panel-head .brand-logo { width:132px; }
.ac-panel-head .ai-brand-treatment { min-width:0; }
.ac-panel-head .product-availability { flex-shrink:0; }
.ac-panel-path { padding:24px 0 22px; }
.ac-panel-foot { display:flex; align-items:center; gap:12px; padding:15px 17px; border-radius:6px; background:var(--surface-muted); font-size:13px; line-height:1.65; }
.ac-panel-foot .icon { width:18px; height:18px; flex-shrink:0; color:var(--ai-accent); }
.ac-shot { min-width:0; }

/* Shared node: icon chip plus label, used by the hero path and the handover strip. */
.ac-node { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:3px 14px; }
.ac-node-icon { display:grid; place-items:center; width:40px; height:40px; border:1px solid var(--border); border-radius:8px; background:var(--surface-muted); color:var(--ai-accent); }
.ac-node-icon .icon { width:20px; height:20px; }
.ac-panel-path .ac-node-icon { grid-row:span 2; }
.ac-node strong { font-size:15px; line-height:1.5; }
.ac-node small { font-size:12px; line-height:1.6; color:var(--muted-foreground); }
.ac-drop { display:block; width:1px; height:26px; margin-inline-start:20px; background:var(--border); position:relative; }
.ac-drop:after { content:''; position:absolute; inset-inline-start:-2px; width:5px; height:5px; border-radius:50%; background:var(--brand-cyan); animation:ai-travel 2.8s ease-in-out infinite; }

/* How it works */
.ac-flow { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.ac-step { position:relative; display:grid; justify-items:start; gap:12px; padding:24px 22px; border:1px solid var(--border); border-radius:8px; background:var(--surface); transition:transform .2s, border-color .2s, box-shadow .2s; }
.ac-step:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--ai-accent) 30%,var(--border)); box-shadow:0 14px 30px #13305f12; }
.ac-step-index { font-size:12px; font-weight:800; letter-spacing:.08em; color:var(--ai-accent); }
.ac-step strong { font-size:16px; line-height:1.5; }
.ac-step small { font-size:13px; line-height:1.7; color:var(--muted-foreground); }
.ac-step:not(:last-child):after { content:''; position:absolute; top:50%; inset-inline-end:-21px; width:22px; height:1px; background:color-mix(in srgb,var(--ai-accent) 28%,var(--border)); }
.ac-step:not(:last-child):before { content:''; position:absolute; top:calc(50% - 2px); inset-inline-end:-15px; width:5px; height:5px; border-radius:50%; background:var(--brand-cyan); animation:ac-travel 3s ease-in-out infinite; }
[dir=rtl] .ac-step:not(:last-child):before { animation-name:ac-travel-rtl; }
@keyframes ac-travel { 0% { transform:translateX(-9px);opacity:0; } 22%,72% { opacity:1; } 100% { transform:translateX(9px);opacity:0; } }
@keyframes ac-travel-rtl { 0% { transform:translateX(9px);opacity:0; } 22%,72% { opacity:1; } 100% { transform:translateX(-9px);opacity:0; } }
.ac-note { display:flex; align-items:center; gap:12px; margin-top:32px; font-size:14px; line-height:1.7; }
.ac-note .icon { width:19px; height:19px; flex-shrink:0; color:var(--ai-accent); }

/* Compact icon cards: Available Today and the roadmap */
.ac-cards { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.ac-card { display:grid; align-content:start; gap:12px; padding:20px 18px; border:1px solid var(--border); border-radius:8px; background:var(--surface); transition:transform .2s, border-color .2s, box-shadow .2s; }
.ac-card:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--ai-accent) 30%,var(--border)); box-shadow:0 12px 26px #13305f12; }
.ac-card-icon { width:22px; height:22px; color:var(--ai-accent); transition:transform .25s; }
.ac-card:hover .ac-card-icon { transform:translateY(-1px) scale(1.07); }
.ac-card strong { font-size:14px; line-height:1.55; font-weight:650; }
.ac-cards-roadmap .ac-card { grid-template-columns:auto minmax(0,1fr); gap:14px 12px; }
.ac-cards-roadmap .ac-card strong { grid-column:1/-1; color:var(--muted-foreground); }
.ac-flag { justify-self:end; display:inline-flex; align-items:center; gap:6px; padding:3px 9px; border:1px solid var(--border); border-radius:999px; background:var(--surface-muted); color:var(--muted-foreground); font-size:10px; font-weight:800; line-height:1.7; letter-spacing:.05em; text-transform:uppercase; white-space:nowrap; }
.ac-flag:before { content:''; width:5px; height:5px; border-radius:50%; background:var(--brand-cyan); }
[dir=rtl] .ac-flag { letter-spacing:0; text-transform:none; font-size:11px; }

/* Lead capture and handover */
.ac-lead { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:36px; align-items:center; }
.ac-fields { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:10px; }
.ac-fields li { display:inline-flex; align-items:center; gap:8px; padding:10px 15px; border:1px solid var(--border); border-radius:999px; background:var(--surface); font-size:14px; font-weight:600; line-height:1.5; }
.ac-fields .icon { width:16px; height:16px; flex-shrink:0; color:var(--ai-accent); }
.ac-handover { display:flex; align-items:center; justify-content:center; padding:28px 26px; border:1px solid var(--border); border-radius:8px; background:var(--surface); }
.ac-node-sm { flex:0 0 auto; display:grid; grid-template-columns:none; justify-items:center; text-align:center; gap:10px; }
.ac-node-sm strong { font-size:14px; }
.ac-link { position:relative; flex:1 1 auto; min-width:26px; max-width:130px; height:1px; background:var(--border); }
.ac-link:after { content:''; position:absolute; top:-2px; left:0; width:5px; height:5px; border-radius:50%; background:var(--brand-cyan); animation:ac-run 3.2s ease-in-out infinite; }
[dir=rtl] .ac-link:after { left:auto; right:0; animation-name:ac-run-rtl; }
@keyframes ac-run { 0% { left:0;opacity:0; } 18%,78% { opacity:1; } 100% { left:calc(100% - 5px);opacity:0; } }
@keyframes ac-run-rtl { 0% { right:0;opacity:0; } 18%,78% { opacity:1; } 100% { right:calc(100% - 5px);opacity:0; } }

/* Security and configuration */
.ac-duo { display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; }
.ac-block { padding:28px; border:1px solid var(--border); border-radius:8px; background:var(--surface); }
.ac-block header { display:flex; align-items:center; gap:12px; padding-bottom:20px; margin-bottom:20px; border-bottom:1px solid var(--border); }
.ac-block header .icon { width:22px; height:22px; flex-shrink:0; color:var(--ai-accent); }
.ai-chat-page .ac-block h3 { margin:0; font-size:19px; line-height:1.5; }

/* Featured implementation */
.ac-case-media,.ac-case-visual { margin-top:28px; }
.ac-case-media { display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); gap:20px; }
.ac-case-media[data-shots="1"] { max-width:940px; }
/* The container stays LTR so the English pane keeps the left column and the Arabic pane the
   right one in both page directions: each pane then reads outward instead of colliding in the
   middle. The 1px gap over the container background draws the divider, in either axis. */
.ac-case-visual { display:grid; grid-template-columns:1fr 1fr; direction:ltr; gap:1px; border:1px solid var(--border); border-radius:8px; background:var(--border); overflow:hidden; }
.ac-pane { padding:28px 30px; background:var(--surface); }
.ac-pane-tag { display:inline-block; padding:3px 10px; border-radius:999px; background:var(--surface-muted); color:var(--ai-accent); font-size:11px; font-weight:800; letter-spacing:.06em; }
.ac-pane ul { list-style:none; margin:20px 0 0; padding:0; display:grid; gap:14px; }
.ac-pane li { display:flex; align-items:center; gap:14px; }
.ac-pane strong { font-size:15px; line-height:1.5; }

/* Launch offer */
.ai-chat-page .ps-features { margin-top:18px; }
.ai-chat-plan { width:100%; max-width:calc((100% - 44px)/3); margin-inline:auto; }
.ai-chat-page #pricing .container { display:grid; grid-template-columns:minmax(0,1fr) calc((100% - 44px)/3); gap:72px; align-items:center; }
.ai-chat-page #pricing .ai-heading { max-width:620px; margin:0; }
.ai-chat-page #pricing .ai-heading h2 { font-size:40px; }
.ai-chat-page #pricing .ai-heading p { max-width:560px; }
.ai-chat-page #pricing .ai-chat-plan { max-width:none; margin:0; }

/* Staggered reveal. The base animation and the reduced-motion reset live in styles.css. */
.ac-cards>.visible:nth-child(4n+2),.ac-duo>.visible:nth-child(2) { animation-delay:.07s; }
.ac-cards>.visible:nth-child(4n+3) { animation-delay:.14s; }
.ac-cards>.visible:nth-child(4n+4) { animation-delay:.21s; }
.ac-flow>.visible:nth-child(2) { animation-delay:.09s; }
.ac-flow>.visible:nth-child(3) { animation-delay:.18s; }
.ac-flow>.visible:nth-child(4) { animation-delay:.27s; }

@media(max-width:1100px) {
 .ac-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .ai-chat-plan { max-width:calc((100% - 28px)/3); }
 .ai-chat-page #pricing .container { grid-template-columns:minmax(0,1fr) calc((100% - 28px)/3); gap:42px; }
 .ai-chat-page #pricing .ai-heading h2 { font-size:34px; }
}
@media(max-width:1000px) {
 .ac-flow { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .ac-step:not(:last-child):after,.ac-step:not(:last-child):before { content:none; }
 .ac-panel-head .ai-brand-treatment>span:last-child { display:none; }
}
@media(max-width:900px) { .ac-lead { grid-template-columns:1fr; gap:26px; } }
@media(max-width:800px) {
 .ac-duo { grid-template-columns:1fr; }
 .ai-chat-plan,.ai-chat-page #pricing .ai-chat-plan { max-width:100%; }
 .ai-chat-page #pricing .container { grid-template-columns:1fr; gap:32px; align-items:start; }
 .ai-chat-page #pricing .ai-heading { max-width:680px; }
 .ai-chat-page #pricing .ai-heading h2 { font-size:29px; }
}
@media(max-width:760px) {
 .ac-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .ac-case-visual { grid-template-columns:1fr; }
 .ac-pane { padding:24px; }
 .ac-block { padding:24px; }
 .ac-hero-panel { padding:20px; }
 .ac-note { align-items:flex-start; }
}
@media(max-width:560px) {
 .ac-handover { flex-direction:column; align-items:center; padding:24px 20px; }
 .ac-link { width:1px; height:24px; min-width:0; flex:0 0 auto; }
 .ac-link:after,[dir=rtl] .ac-link:after { left:-2px; right:auto; animation-name:ai-travel; }
 .ac-fields li { font-size:13px; padding:9px 13px; }
}
@media(max-width:430px) {
 .ac-flow { grid-template-columns:1fr; gap:22px; }
 .ac-step { padding:20px 18px; }
 .ac-card { padding:16px 14px; gap:10px; }
 .ac-cards-roadmap .ac-card { gap:11px 10px; }
 .ac-node-icon { width:36px; height:36px; }
 .ac-drop { margin-inline-start:18px; }
}
@media(prefers-reduced-motion:reduce) {
 .ac-drop:after,.ac-link:after,.ac-step:not(:last-child):before { animation:none; display:none; }
 .ac-card,.ac-step,.ac-card-icon { transition:none; }
}
