/* D3ai 2026 look for the studio. A layer over studio.html: same markup, same options, popups and help; only the look changes to match the new homepage. */
:root{
  --bg:#fbfaff;--card:#fff;--soft:#f3effe;--ink:#120b3a;--ink2:#3d3566;--muted:#6e6893;--line:#ece8f8;
  --indigo:#7A3DF0;--violet:#4A18D0;--cyan:#C98BFF;
  --grad:linear-gradient(135deg,#C98BFF,#7A3DF0 55%,#4A18D0);
  --stage:linear-gradient(140deg,#f6f1ff,#efe7ff 55%,#ebe4ff);
  --display:"Readex Pro","IBM Plex Sans Arabic",sans-serif;--body:"Readex Pro","IBM Plex Sans Arabic",Tahoma,sans-serif;
  --shadow:0 1px 2px rgba(18,11,58,.04),0 24px 50px -30px rgba(42,12,134,.35);
}
body{font-weight:400;background-image:radial-gradient(900px 500px at 85% -10%,rgba(122,61,240,.10),transparent 60%),radial-gradient(700px 420px at 0% 10%,rgba(201,139,255,.12),transparent 60%)}
h1,h2,h3,.shead h1{font-weight:600;letter-spacing:0}

/* main action: purple, like the homepage */
.go{background:linear-gradient(135deg,#7A3DF0,#4A18D0);color:#fff;font-weight:600;box-shadow:0 12px 26px -12px rgba(74,24,208,.7);transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s}
.go:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 16px 30px -12px rgba(74,24,208,.8)}
.go:not(:disabled):active{transform:scale(.97)}
.go.soft{background:#fff;color:var(--ink);box-shadow:none;border:1px solid var(--line)}

/* sidebar (right): purple pill instead of black */
.side{background:rgba(255,255,255,.75)}
.side a{border-radius:12px;font-weight:400}
.side a:hover{background:var(--soft)}
.side a[aria-current=page],nav.side a.chatlink[aria-current=page]{background:linear-gradient(135deg,#7A3DF0,#4A18D0);color:#fff;box-shadow:0 10px 22px -12px rgba(74,24,208,.7)}
nav.side a.chatlink{background:linear-gradient(90deg,rgba(201,139,255,.18),rgba(122,61,240,.12))}
nav.side .grp{letter-spacing:0;font-weight:600}

/* chips and small buttons */
.chip{border-color:var(--line);color:var(--ink2)}
.chip:hover{border-color:var(--indigo);color:var(--indigo)}
.chip[aria-pressed=true]{background:var(--soft);border-color:var(--indigo);color:var(--indigo);font-weight:600}
.sm{border-color:var(--line)}
.sm:hover{border-color:var(--indigo);color:var(--indigo)}

/* cards, drop zones, "what we need" box */
.card{border-radius:24px}
.drop{border-color:color-mix(in srgb,#7A3DF0 35%,transparent);background:#faf7ff;transition:border-color .2s,background .2s}
.drop:hover{border-color:var(--indigo);background:var(--soft)}
.need{background:linear-gradient(135deg,#f6f1ff,#efe7ff);border:1px solid #e6dcff}
.need b{color:var(--violet)}

/* header balance + how-it-works popup button */
.bal{border-color:#e6dcff}
.howbtn{background:var(--soft)!important;border-color:#e6dcff!important;color:var(--violet)!important;font-weight:600}
.xp .box{border-radius:28px}
.xsteps li.on{color:var(--violet)}

/* numbers stay Western and isolated */
.bal b,.cost,.hint.cost{font-variant-numeric:tabular-nums}


/* the remaining black parts become brand purple */
nav.side a[aria-current=page],nav.side a.chatlink[aria-current=page]{background:linear-gradient(135deg,#7A3DF0,#4A18D0);color:#fff;box-shadow:0 10px 22px -12px rgba(74,24,208,.7)}
.send,.sm.pri,.steps span.on{background:linear-gradient(135deg,#7A3DF0,#4A18D0);color:#fff;border-color:transparent}
.msg.u .bub{background:linear-gradient(135deg,#7A3DF0,#4A18D0);color:#fff}
.toast{background:#120b3a}
/* home banners: brand purple stage instead of near-black */
.bn{background:linear-gradient(160deg,#5b2ae0,#2a0c86)}

/* ===== phone fixes (phone tour 18/10/2026) ===== */
@media (max-width:960px){
  /* help D sits above the bottom bar, never on top of its buttons or the chat send button */
  .hq{bottom:calc(78px + env(safe-area-inset-bottom,0px));left:12px}
  .hq>button.dd{width:46px;height:52px}
  .hq .pn{bottom:62px}
  /* hide it while the edit screen or a how-it-works popup is open */
  body:has(#board:not([hidden])) .hq,body:has(#xp:not([hidden])) .hq{display:none}
}
@media (max-width:640px){
  /* service header: title and text get the full width, buttons go on their own row */
  .shead,.chead{flex-wrap:wrap;align-items:flex-start}
  .shead>div:not(.ic),.chead>div:not(.d3box){flex:1 1 calc(100% - 76px);min-width:0}
  .shead .howbtn,.chead .howbtn,.chead .sm{order:3}
  .shead h1,.chead h1{font-size:24px;line-height:1.35}
  .shead p,.chead p{font-size:14.5px;line-height:1.75}
  /* home: smaller D so the request box shows on the first screen */
  .hero .d3box{max-width:110px}
  /* option cards (video shape, caption look, font): one swipeable row instead of a tall grid */
  .opt .chips.vgrid,.chips.vgrid{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .chips.vgrid::-webkit-scrollbar{display:none}
  .opt .chips.vgrid .chip.vc,.chips.vgrid .chip.vc{flex:0 0 104px!important;scroll-snap-align:start}
  .panel,.panel>*,.card,.opt,.view{min-width:0;max-width:100%}
  .opt .chips.vgrid,.chips.vgrid{width:100%;max-width:100%}
  /* space at the bottom so the last button is never under the bar */
  main{padding-bottom:140px}
}
