/* Sifra live demo prototype: the opening, and the way the conversation docks (third build, 12 November 2026).

   The visitor who arrives already wants to see it on their own business. So the first screen is the
   conversation itself, full screen: above, what do you run (six tiles); below, a single line to write in,
   the way a language model opens, in Sifra's own dress (dark stage, dotted field, one orange).
   The first answers stay in the middle. When the questions begin, the conversation narrows to the left
   and the page it is writing slides in from the right. One element throughout; nothing is swapped. */

/* ---------- the stage ---------- */
.screen.stage{overflow:hidden}
.screen.stage.hero-on{overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
.screen.stage.hero-on::-webkit-scrollbar{display:none}
.stage .first{height:100%;min-height:0}
.stage.hero-on .first{min-height:720px}
.stage:not(.hero-on) .more,.stage:not(.hero-on) .more-hint,.stage:not(.hero-on) .wb{display:none}
.stagebg{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 1s ease}
.hero-on .stagebg,.solo-on .stagebg{opacity:1}
.stagebg::before{content:'';position:absolute;inset:0;background:var(--dots);background-size:14px 14px;-webkit-mask-image:radial-gradient(ellipse 60% 62% at 50% 60%,#000 18%,transparent 76%);mask-image:radial-gradient(ellipse 60% 62% at 50% 60%,#000 18%,transparent 76%)}
.stagebg i{position:absolute;left:50%;top:63%;width:1240px;height:660px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(closest-side,rgba(255,255,255,.15),rgba(255,255,255,.055) 46%,transparent 100%);animation:stageglow 9s ease-in-out infinite}
@keyframes stageglow{0%,100%{opacity:.72;transform:translate(-50%,-50%) scale(1)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.07)}}
.solo-on .stagebg i{top:74%}
.nav-steps{transition:opacity .7s ease}
.nav.quiet .nav-steps{opacity:0;pointer-events:none}

/* ---------- three stances of one screen ---------- */
.split{display:block}
.split>.talk{position:absolute;left:0;top:0;bottom:0;width:420px;background:none;transition:width 1s var(--ease),border-color .7s ease}
.split>.talk::before{content:'';position:absolute;inset:0;z-index:0;background:#1a1a1a var(--dots);background-size:auto,14px 14px;transition:opacity .7s ease}
.split>.canvas{position:absolute;left:444px;right:0;top:0;bottom:0;transition:left .8s var(--ease),opacity .7s ease .32s,transform 1s var(--ease) .06s}
.split.onreport>.talk{width:372px}
.split.onreport>.canvas{left:396px}
.split.mode-hero>.talk,.split.mode-solo>.talk{width:100%;border-color:transparent}
.split.mode-hero>.talk::before,.split.mode-solo>.talk::before{opacity:0}
.split.mode-hero>.canvas,.split.mode-solo>.canvas{opacity:0;transform:translateX(150px);pointer-events:none;transition:opacity .3s ease,transform .8s var(--ease)}

/* the conversation keeps to one column, so it travels with the panel as the panel narrows */
.talk>.msgs,.talk>.ask{align-self:center;width:100%;max-width:760px}
.talk>.talk-top{transition:height .7s var(--ease),opacity .5s ease .2s,border-color .5s}
.mode-hero .talk-top,.mode-solo .talk-top{height:0;opacity:0;border-color:transparent;overflow:hidden;transition:height .5s var(--ease),opacity .2s}
.talk>.ask{transition:padding .8s var(--ease),background-color .7s ease,border-color .7s ease}
.mode-hero .ask,.mode-solo .ask{background-color:transparent;border-color:transparent}
.mode-hero .ask{padding:0 22px clamp(108px,19vh,214px)}
.mode-solo .ask{padding:14px 22px clamp(36px,8vh,84px)}
.talk>.msgs{transition:flex-grow .8s var(--ease),opacity .5s ease .2s}
.mode-hero .msgs{flex:.0001 1 0;opacity:0;padding-top:0;padding-bottom:0;pointer-events:none;transition:flex-grow .8s var(--ease),opacity .2s}
.ask.swap>*{animation:rise .5s var(--ease) both}
.ask.swap>*:nth-child(2){animation-delay:.05s}
.ask.swap>*:nth-child(3){animation-delay:.1s}

/* ---------- the opening: what do you run ---------- */
.hero{position:relative;z-index:1;align-self:center;width:100%;max-width:1320px;flex:.0001 1 0;min-height:0;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-align:center;opacity:0;transform:translateY(-36px);pointer-events:none;transition:flex-grow .8s var(--ease),opacity .35s ease,transform .8s var(--ease)}
.mode-hero .hero{flex-grow:1;opacity:1;transform:none;pointer-events:auto;transition:flex-grow .8s var(--ease),opacity .6s ease .2s,transform .8s var(--ease)}
.hero .eyebrow{justify-content:center}
.hero h1{font:660 clamp(62px,4.6vw,82px)/1.04 var(--display);letter-spacing:-.048em;margin-top:22px}
.hero h1 em{display:block;font-style:normal;color:#a7a7a7}
.tiles{display:grid;grid-template-columns:repeat(6,clamp(152px,11.25vw,194px));gap:clamp(10px,.8vw,16px);margin-top:clamp(56px,4.5vw,80px)}
.tile{height:clamp(108px,7.5vw,138px);border-radius:18px;border:1px solid rgba(255,255,255,.13);background:rgba(28,28,28,.8);padding:15px 14px 13px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;text-align:left;color:#fff;transition:border-color .25s,background-color .3s,color .3s,transform .3s var(--ease)}
.tile svg{width:40px;height:24px;display:block;color:#fff;transition:color .3s}
.tile b{display:block;font:600 16.5px/1.15 var(--display);letter-spacing:-.025em}
.tile em{display:block;font:400 12px/1.3 var(--body);font-style:normal;color:var(--subtle);margin-top:3px;transition:color .3s}
/* four industries have an architecture model: it stands on the tile's top edge, mostly over the dark stage */
.tile.has-model{position:relative;justify-content:flex-end}
.tile-model{position:absolute;right:-8px;top:clamp(-65px,-3.7vw,-50px);width:clamp(118px,8.4vw,150px);height:auto;display:block;pointer-events:none;user-select:none;filter:drop-shadow(0 10px 14px rgba(0,0,0,.45));transition:transform .45s var(--ease)}
.tile.has-model:hover .tile-model{transform:translateY(-2px) scale(1.03)}
.tile.has-model.on .tile-model{transform:scale(1.05)}
.tile:hover{border-color:rgba(255,255,255,.5);transform:translateY(-2px)}
.tile.on{background:#fff;color:#151515;border-color:#fff;transform:none}
.tile.on svg{color:#151515}
.tile.on em{color:#5e5e5e}
.tiles.need .tile:not(.on){animation:tileneed 1s ease}
@keyframes tileneed{0%,100%{border-color:rgba(255,255,255,.13)}35%{border-color:#fff}}
.hero-line{min-height:24px;margin:22px 0 28px;font:400 16px/1.5 var(--body);letter-spacing:-.005em;color:var(--lead)}
.hero-line span{display:inline-block;animation:rise .55s var(--ease) both}
.hero-line .ask-it{color:#fff}
.fresh .hero .eyebrow,.fresh .hero h1,.fresh .hero .tile,.fresh .hero .hero-line,.fresh .mode-hero .ask>*{animation:rise .85s var(--ease) both}
.fresh .hero h1{animation-delay:.08s}
.fresh .hero .tile{animation-delay:calc(.24s + var(--i)*60ms)}
.fresh .hero .hero-line{animation-delay:.66s}
.fresh .mode-hero .ask>*{animation-delay:.74s}
.fresh .mode-hero .ask>*:nth-child(2){animation-delay:.86s}

/* the line to write in: the one place the screen asks for words */
.namebox.big{position:relative;height:80px;gap:14px;padding:0 14px 0 24px;border-radius:27px;background:rgba(24,24,24,.92);border:1px solid rgba(255,255,255,.28);box-shadow:0 30px 80px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.07);transition:border-color .25s}
.namebox.big .nb-mark{flex:none;display:grid;place-items:center}
.namebox.big .nb-mark .mark{width:22px;height:22px}
.namebox.big input{font:500 23px/1 var(--display);letter-spacing:-.03em}
.name-prompt{position:absolute;left:60px;top:10px;color:var(--lead);font:500 12px/1.2 var(--body);opacity:0;pointer-events:none}
.namebox.big:has(input:not(:placeholder-shown)) .name-prompt{opacity:1}
.namebox.big input:not(:placeholder-shown){padding-top:12px}
.namebox.big input::placeholder{color:#7d7d7d}
.namebox.big .send{width:52px;height:52px;font-size:20px;transition:background-color .25s,color .25s,transform .2s}
.namebox.big .send:hover{transform:scale(1.05)}
.namebox.big:focus-within{border-color:#fff}
.namebox.big.idle{border-color:rgba(255,255,255,.16)}
.namebox.big.idle .send{background:rgba(255,255,255,.1);color:#fff}
.namebox.big.invite{animation:invite 1.1s var(--ease)}
@keyframes invite{0%{box-shadow:0 0 0 0 rgba(255,255,255,.4),0 30px 80px rgba(0,0,0,.45)}100%{box-shadow:0 0 0 20px rgba(255,255,255,0),0 30px 80px rgba(0,0,0,.45)}}
.hero-foot{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:4px;font:400 13.5px/1 var(--body);color:var(--subtle)}
.hero-foot span{margin-right:6px}
.hero-foot :is(a,button){min-height:44px;display:inline-flex;align-items:center;color:var(--lead);text-decoration:underline;text-decoration-color:rgba(255,255,255,.35);text-underline-offset:4px;transition:color .2s,text-decoration-color .2s}
.hero-foot :is(a,button):hover{color:#fff;text-decoration-color:currentColor}
.stage.hero-on :is(button,a,summary):focus-visible,.nav-cta:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
#wnav .nav-cta,.mode-hero .namebox input{min-height:44px}
/* part D (go-live list, item 17): on a small laptop (a window under 700px high: 1366 x 650, 1280 x 600) the opening
   screen is laid out to the window, with a smaller space under the name box, so the headline, the box and the line
   under it are in view at once; a window from 700px up is as before. Both rules come after the ones they narrow: in
   front of them, the dock's own padding won and the headline went under the top bar */
@media (max-height:700px){.stage.hero-on .first{min-height:590px}.mode-hero .ask{padding-bottom:48px}}
/* a window about 600px high (1280 x 600): a little less air between the headline, the tiles and the box, and a
   smaller headline, so the line under the box clears "How it works" at the bottom */
@media (max-height:620px){.stage.hero-on .first{min-height:530px}.mode-hero .ask{padding-bottom:44px}.hero h1{font-size:54px;margin-top:18px}.hero .tiles{margin-top:30px}.hero .hero-line{margin:16px 0 20px}}
/* Leave space between the two 44px actions in a short laptop window. */
@media (max-height:700px){.stage.hero-on .more-hint{bottom:0}.stage.hero-on .hero-foot{margin-bottom:8px}}
.stage .wb{top:18px}
