/* v2 (04/12): short pages. Loaded last, on every page. */

/* nav: chevrons point down, turn up when open; Product menu in 4 groups */
.dd>a svg{transform:none;transition:transform .2s}
.dd:hover>a svg,.dd:focus-within>a svg{transform:rotate(180deg)}
.ddm.wide{width:max-content;max-width:calc(100vw - 32px)}
.ddc{display:grid;grid-template-columns:repeat(4,auto);gap:8px 14px;background:var(--bg);border:1.5px solid var(--l);border-radius:16px 16px 0 0;box-shadow:var(--card);padding:18px 18px 14px}
.ddc h6{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--g2);font-weight:600;margin:0 0 6px 8px}
.ddc a{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:10px;color:var(--ink);font-weight:600;font-size:14px;line-height:1.25;white-space:nowrap}
.ddc a:hover{background:var(--soft)}
.ddg.one a span b{font-size:14.5px}

/* one FAQ design everywhere */
.faq summary .ic{transition:transform .25s}
.faq details[open] summary .ic{transform:rotate(180deg)}
section.faqs .wrap{max-width:860px}
section.faqs h3.grp{margin:38px 0 12px}
section.faqs h3.grp:first-child{margin-top:0}

/* home */
section{padding:104px 0}
.ticks{display:flex;flex-direction:column;gap:12px}
.ticks>div{display:flex;gap:10px;font-size:15.5px;line-height:1.5;color:var(--g)}
.ticks>div>span:first-child{color:var(--ok);flex:none;margin-top:2px}
.ticks b{color:var(--ink)}
.ch .txt .more{margin-top:20px;padding-top:0}
#what .hosts{margin-top:24px}

/* inner pages: less air, smaller titles */
body.inner section{padding:68px 0}
body.inner .sec-h{margin-bottom:36px;gap:12px}
body.inner .h2{font-size:clamp(28px,3.2vw,38px)}
body.inner .fh{padding:52px 0 44px}
body.inner .fh .h1{font-size:clamp(36px,4.6vw,54px)}
body.inner .fh .crumb{margin-bottom:18px}
body.inner .fh .hc .lead{max-width:680px}

/* compact rows: icon, title, one sentence */
.rows6{display:grid;grid-template-columns:1fr 1fr;gap:10px 22px;max-width:980px;margin:0 auto}
.rows6.c3{grid-template-columns:repeat(3,1fr);max-width:none}
.rows6>*{display:flex;gap:14px;align-items:flex-start;padding:14px;border-radius:14px;border:1.5px solid transparent;color:inherit}
.rows6>a{background:var(--bg);border-color:var(--l)}
.rows6>a:hover{border-color:var(--b);box-shadow:var(--lit)}
.rows6 .tile{flex:none}
.rows6 p{font-size:14.5px;line-height:1.5;color:var(--g)}
.rows6 p b{display:block;color:var(--ink);font-size:15.5px;margin-bottom:2px}

/* how it works: four captions under the scene, no cards */
.stepsline{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-top:34px}
.stepsline .step{padding:4px 20px;border-left:2px solid var(--l);transition:border-color .3s}
.stepsline .step .n{font-family:var(--mono);font-size:12px;color:var(--b);font-weight:700}
.stepsline .step h3{font-size:16.5px;margin:6px 0 4px}
.stepsline .step p{font-size:14.5px;line-height:1.5;color:var(--g)}
.stepsline .step.on,.stepsline .step.lit{border-left-color:var(--b)}
/* generic flow for the pages without their own scene */
.flow{display:flex;align-items:flex-start;justify-content:center;max-width:860px;margin:0 auto 6px}
.flow .fn{display:flex;flex-direction:column;align-items:center;gap:10px;width:150px;text-align:center;font-size:14px;opacity:.4;transition:opacity .4s}
.flow .fn .tile{width:56px;height:56px;border-radius:18px;color:var(--b);transition:box-shadow .4s,border-color .4s}
.flow .fn.on{opacity:1}.flow .fn.on .tile{border-color:var(--b);box-shadow:var(--lit)}
.flow .fl{flex:1;height:2px;background:var(--l);margin-top:28px;position:relative;overflow:hidden;border-radius:2px}
.flow .fl u{position:absolute;inset:0;background:var(--grad);transform:scaleX(0);transform-origin:left;transition:transform .6s}
.flow .fl.on u{transform:scaleX(1)}

/* try it: three messages */
.tryit{margin-top:44px;max-width:980px;margin-left:auto;margin-right:auto}
.tryit>.eyebrow{margin-bottom:12px;text-align:center}
.tryit .days{grid-template-columns:repeat(3,1fr);gap:14px}
.tryit .prompt{margin-top:0;background:var(--bg)}
.tryit .prompt small{color:var(--b)}
body.inner .know{max-width:980px;margin:0 auto;gap:14px 34px}
body.inner .know div{opacity:1;font-size:15px}

/* header visual of the pages without a scene: the tile and what it covers */
.vis .art .orb-c{animation:none}
.vis .art .orb-c .chip{animation:none;font-size:13px;padding:6px 10px}

/* end of every inner page */
section.endband{padding:28px 0 76px!important}
.next{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:22px}
.next .eyebrow{margin-right:6px}
.next a.chip{color:var(--ink);gap:8px}
.next a.chip img{width:15px;height:15px}
.next a.chip svg{color:var(--b)}
.next a.chip:hover{border-color:var(--b)}
.band{display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap;border:1.5px solid var(--l);border-radius:24px;background:var(--soft);padding:30px 34px}
.band h2{font-size:30px;letter-spacing:-.02em;line-height:1.15}
.band p{color:var(--g);margin-top:6px;font-size:15.5px}
.band .go{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.band .cmd{max-width:100%}
.band .tvlink{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-size:14.5px;font-weight:600;color:var(--b)}
.band .tvlink:hover{text-decoration:underline}

/* footer: brand + 4 lists */
.ft .cols.five{grid-template-columns:1.5fr 1fr 1.2fr 1.2fr 1fr}
.ft .cols.five ul li a{font-size:14px}
.ft .bottom a{color:inherit}

/* pricing: two plans */
.plans{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:860px;margin:0 auto}
.plans .card{padding:30px;display:flex;flex-direction:column;gap:10px}
.plans .card.main{border-color:var(--b);box-shadow:var(--lit)}
.plans h3{font-size:19px;margin-top:8px}
.plans .pr{font-size:36px;font-weight:800;letter-spacing:-.03em}
.plans p{color:var(--g);font-size:15px;line-height:1.5}
.plans ul{list-style:none;display:flex;flex-direction:column;gap:9px;margin:8px 0 14px;padding:0}
.plans li{display:flex;gap:9px;font-size:15px;align-items:flex-start}.plans li svg{color:var(--ok);flex:none;margin-top:3px}
.plans .btn{margin-top:auto;justify-content:center}

@media(max-width:1100px){.ft .cols.five{grid-template-columns:1fr 1fr 1fr}.rows6.c3{grid-template-columns:1fr 1fr}}
@media(max-width:900px){
  section{padding:76px 0}
  body.inner section{padding:52px 0}
  .stepsline{grid-template-columns:1fr 1fr;gap:22px 0}
  .tryit .days{grid-template-columns:1fr}
  .band{flex-direction:column;align-items:flex-start;padding:24px}
  .plans{grid-template-columns:1fr}
}
@media(max-width:640px){
  .rows6,.rows6.c3{grid-template-columns:1fr}
  .stepsline{grid-template-columns:1fr}
  .flow .fn{width:auto;flex:1;font-size:12px}.flow .fn .tile{width:44px;height:44px;border-radius:14px}.flow .fl{flex:.4;margin-top:22px}
  .ft .cols.five{grid-template-columns:1fr 1fr}.ft .cols.five .about{grid-column:1/-1}
  .band h2{font-size:25px}.band .go{width:100%}.band .cmd{width:100%}.band .cmd code{min-width:0;overflow-x:auto;white-space:nowrap}
}
body.inner .fh .vis{min-width:0}
@media(max-width:640px){.vis .art .orb-c{transform:scale(.74)}.vis .art .orb-c .chip{font-size:12px;padding:5px 8px}}
/* phone: the chips of a header tile sit under it, in rows */
@media(max-width:640px){
  .vis .art{aspect-ratio:auto;flex-direction:column-reverse;gap:18px;padding:26px 16px}
  .vis .art .ring{display:none}
  .vis .art .orb-c{position:static;transform:none;display:flex;flex-wrap:wrap;justify-content:center;gap:7px}
  .vis .art .orb-c .p{position:static;transform:none}
  .vis .art .big{width:84px;height:84px;border-radius:26px}
}

/* GitHub star button (header, mobile menu, end band) */
.ghs{display:inline-flex;align-items:center;gap:9px;height:42px;padding:0 5px 0 13px;border-radius:12px;border:1.5px solid var(--l);background:var(--bg);color:var(--ink);font-weight:700;font-size:14.5px;white-space:nowrap;flex:none;transition:border-color .2s,box-shadow .2s,transform .2s}
.ghs>img{width:18px;height:18px}
.ghs .ghc{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 9px;border-radius:8px;background:var(--ambg);border:1.5px solid var(--ambl);color:#b45309;font-size:13px;font-variant-numeric:tabular-nums}
.ghs .ghc svg{width:15px;height:15px;fill:var(--ambl);stroke:#f59e0b;stroke-width:1.8;stroke-linejoin:round;transition:transform .7s cubic-bezier(.34,1.56,.64,1),fill .3s}
.ghs:hover{border-color:var(--ambl2);box-shadow:0 8px 24px rgba(245,158,11,.18);transform:translateY(-1px)}
.ghs:hover .ghc svg{transform:rotate(144deg) scale(1.2);fill:#f59e0b}
.nav .ghs{height:40px}
@media(max-width:1100px){.nav .ghs{margin-left:auto}}
@media(max-width:600px){.nav .ghs .ghl{display:none}.nav .ghs{padding-left:10px;gap:7px}}
@media(prefers-reduced-motion:reduce){.ghs,.ghs .ghc svg{transition:none}.ghs:hover,.ghs:hover .ghc svg{transform:none}}
.mnav .ctas .ghs{border-bottom:1.5px solid var(--l);padding:0 5px 0 13px}

/* home v3 */
.hero.h2c{text-align:left;padding:56px 0 64px}
.hgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:center}.htxt{min-width:0}
.h2c .h1{font-size:clamp(38px,4.1vw,58px);line-height:1.03;margin-top:14px}
.h2c .lead{margin:18px 0 0;max-width:520px;font-size:18px}
.h2c .ctas{justify-content:flex-start;margin-top:24px}
.h2c .cmd{font-size:13px;gap:10px;padding:10px 10px 10px 16px}.h2c .cmd code{min-width:0;overflow-x:auto;white-space:nowrap}.hvis .sb .br{white-space:nowrap;font-size:13px;gap:7px}
.hmeta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:22px;font-size:12.5px;color:var(--g2);font-weight:600}
.hmeta>span{margin-right:2px}.hmeta>i{width:1.5px;height:18px;background:var(--l);margin:0 8px}
.hmeta .tile{border-radius:9px;box-shadow:none}.hmeta a{color:var(--b);font-weight:700;margin-left:4px}
.hvis{min-width:0}
.hvis .app{height:440px;grid-template-columns:176px 1fr}
.hvis .empty .orb{width:250px;margin:0}
.hvis .empty .orb .ring{inset:7%}
.hvis .otile .tile{width:40px;height:40px;border-radius:12px}
.hvis .otile .tile svg{width:19px;height:19px}.hvis .otile .tile img{width:22px;height:22px}
.hvis .msg{max-width:92%}
@media(max-width:1100px){.hgrid{grid-template-columns:minmax(0,1fr);gap:36px}.hero.h2c{text-align:center;padding-top:40px}.h2c .lead{margin:18px auto 0;max-width:640px}.h2c .ctas,.hmeta{justify-content:center}.hvis{max-width:720px;width:100%;margin:0 auto}}
@media(max-width:640px){.hvis .app{grid-template-columns:1fr;height:400px}.hvis .empty .orb{width:220px}.hmeta>i{display:none}.hmeta>span{width:100%;text-align:center;margin:4px 0 0}}

.flow3{display:grid;grid-template-columns:1fr 84px 1.1fr 84px 1fr;align-items:center;max-width:1080px;margin:0 auto}
.fl-c{background:var(--bg);border:1.5px solid var(--l);border-radius:22px;padding:22px;box-shadow:var(--card)}
.fl-c.hm{border-color:var(--b);box-shadow:0 0 0 5px var(--bbg2),var(--card);padding:26px 24px}
.fl-c.srv{border-style:dashed;border-color:var(--bl2);background:var(--bbg0);box-shadow:none}
.fl-h{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:16px}
.fl-h img{width:26px;height:26px}.fl-h b{font-size:18px;letter-spacing:-.02em}
.fl-h small{width:100%;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--g2)}
.fl-c.srv .fl-h small{color:var(--b)}
.fl-g{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fl-i{display:flex;align-items:center;gap:9px;padding:6px;border-radius:13px;border:1.5px solid transparent;font-size:13.5px;font-weight:600;transition:border-color .3s,background .3s;min-width:0}
.fl-i .tile{flex:none;border-radius:11px;box-shadow:none}
.fl-i.lit{border-color:var(--b);background:var(--bbg)}
.fl-w{position:relative;height:2px;background:repeating-linear-gradient(90deg,var(--bl) 0 7px,transparent 7px 13px)}
.fl-w i{position:absolute;left:0;top:50%!important;width:11px;height:11px;margin:-5.5px 0 0 -5.5px;border-radius:50%;background:var(--b);opacity:0}
.flowcap{text-align:center;margin-top:28px;font-size:14px;color:var(--b);min-height:20px;transition:opacity .16s}
#what .hosts{justify-content:center;margin-top:22px}
@media(max-width:900px){.flowcap{min-height:40px}.flow3{grid-template-columns:1fr;max-width:440px}.fl-w{width:2px;height:44px;margin:0 auto;background:repeating-linear-gradient(180deg,var(--bl) 0 7px,transparent 7px 13px)}.fl-w i{left:50%!important;top:0!important;animation:none}}

/* Jarvis tile: brand gradient (blue to cyan), no more black */
.tile.dark{background:linear-gradient(135deg,var(--b),var(--c));border-color:transparent;color:#fff}
.tile.dark .ic,.tile.dark svg{color:#fff}

/* agent faces (Agents page): pixel characters of the product */
.faces{display:grid;grid-template-columns:repeat(6,1fr);gap:22px 14px;max-width:820px;margin:0 auto}
.faces>div{display:flex;flex-direction:column;align-items:center;gap:9px;font-size:13px}
.faces svg{width:64px;height:64px;border-radius:14px}
.faces b{font-weight:600;color:var(--ink)}
@media(max-width:700px){.faces{grid-template-columns:repeat(4,1fr)}}
@media(max-width:420px){.faces{grid-template-columns:repeat(3,1fr)}.faces svg{width:56px;height:56px}}

/* home, Jarvis demo: what Jarvis does (action + detail) */
.jrow .jt{display:flex;flex-direction:column;line-height:1.25;min-width:0}.jrow .jt small{font-family:var(--mono);font-size:11px;font-weight:500;color:var(--g2)}


/* header slot of the other pages (docs, community, donation...): language menu, Sign in */
.navx{display:flex;align-items:center;gap:8px}.navx:empty{display:none}
.navx .lng{position:relative;font-size:13.5px;font-weight:600}
.navx .lng summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;height:38px;padding:0 11px;border:1.5px solid var(--l);border-radius:11px;background:var(--bg);color:var(--ink);white-space:nowrap}
.navx .lng summary::-webkit-details-marker{display:none}
.navx .lng>div{position:absolute;right:0;top:calc(100% + 8px);display:grid;gap:2px;min-width:150px;padding:6px;background:var(--bg);border:1.5px solid var(--l);border-radius:12px;box-shadow:0 18px 40px -18px rgba(0,0,0,.25);z-index:60}
.navx .lng :is(a,button){display:block;width:100%;text-align:left;padding:7px 10px;border:0;border-radius:8px;background:none;font:inherit;font-weight:500;color:var(--ink);text-decoration:none;cursor:pointer;margin:0}
.navx .lng :is(a,button):hover{background:var(--l2)}.navx .lng [aria-current=true]{color:var(--b);font-weight:700}
/* a phone has no room for the star button next to a filled slot (it stays in the phone menu), nor for the language code */
@media(max-width:600px){.nav .wrap:has(.navx:not(:empty)) .ghs{display:none}.nav .navx .lng summary{padding:0 10px}.nav .navx .lng summary [data-lang-now]{display:none}}
/* the sun / moon button stays in the header on small screens */
@media(max-width:1100px){.nav .wrap>.btn.thm{display:inline-flex!important;margin-left:auto}.nav .wrap>.thm~.ghs{margin-left:0}}
@media(max-width:600px){.nav .ghs>img{display:none}.nav .ghs{padding-left:5px}}
/* narrow phones (320-400px): nothing may be wider than the screen */
.days{grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr))}
.next a.chip{max-width:100%;white-space:normal}
@media(max-width:900px){.bay .engine{width:min(340px,100%)}.bay .col{max-width:100%}}
@media(max-width:400px){
  .wrap{padding:0 18px}
  .nav .wrap{gap:5px;padding:0 10px}
  .nav .icb{width:36px;height:36px}.nav .ghs{height:36px;padding-right:8px}
  .brand{font-size:14px;gap:6px}
  .flow .fn{min-width:0;font-size:11px;overflow-wrap:anywhere}.flow .fl{flex:.2}
}
.ch>*{min-width:0}
@media(max-width:340px){.brand{font-size:13px}}
/* phone: comparison tables. The row label stays in place, the tools slide under the finger */
@media(max-width:700px){
  table.cmp{min-width:0;font-size:13px}
  table.cmp:has(thead th:nth-child(5)){min-width:690px}
  .cmp th,.cmp td{padding:11px 7px}
  .cmp th:first-child,.cmp td:first-child{position:sticky;left:0;z-index:2;background:var(--bg);width:124px;min-width:124px;max-width:124px;padding-left:2px;font-size:13px}
  .cmp td:first-child small{display:none}
  .cmpw:has(thead th:nth-child(5))::before{content:"Swipe to see the other tools \2192";display:block;position:sticky;left:0;width:max-content;margin:0 0 10px auto;font-family:var(--mono);font-size:11.5px;letter-spacing:.04em;color:var(--g2)}
}
