/* AEVYX app preview: additions on top of the approved skin (skin.css is copied unchanged).
   Same tokens, glass, type and rows. New here: the front door, pre-login pages, motion. */
:root{
  --sp:cubic-bezier(.32,.72,0,1);           /* replaced by real spring curves from app.js when linear() is supported */
  --sp-b:cubic-bezier(.34,1.32,.5,1);
  --sp-soft:cubic-bezier(.22,.8,.2,1);
  --ink:#0b0b0c;
}
.status{z-index:130}
.island{z-index:140}
.home-ind{z-index:150}

/* ---------- layers ---------- */
.layer{position:absolute;inset:0}
#water{position:absolute;inset:0;z-index:0;background:#141518}
.water-cv{position:absolute;inset:0;width:100%;height:100%;display:block}
.water-fb{position:absolute;inset:0;background:radial-gradient(120% 70% at 30% 20%,#2c2d31,#16171a 70%);overflow:hidden}
.water-fb .pgrid{position:absolute;inset:-30%;display:grid;grid-template-columns:repeat(6,150px);gap:22px;transform:rotate(-7deg);filter:blur(14px) saturate(.45);opacity:.22;animation:fbdrift 90s linear infinite alternate}
.water-fb img,.water-fb i{width:150px;height:260px;border-radius:16px;object-fit:cover;background:#333}
@keyframes fbdrift{to{transform:rotate(-7deg) translate(-120px,-260px)}}
#out{z-index:10}
#ws{z-index:20;background:radial-gradient(130% 45% at 50% -8%,#16161b 0%,#08080a 55%,#050506 100%);display:none}
.in-ws #ws{display:block}
.in-ws #out{display:none}
#splash{z-index:120;background:var(--ink);display:grid;place-items:center}
#splash .lo{position:relative;width:281px;height:281px;overflow:hidden}
#splash .lo>div{position:absolute;left:0;top:0}
#splash video{width:281px;height:281px;display:block}
#splash .wm{position:absolute;left:50%;top:calc(50% + 92px);width:92px;margin-left:-46px;opacity:0;transform:translateY(6px);filter:blur(4px)}
#splash.wm-on .wm{opacity:.9;transform:none;filter:none;transition:opacity .9s var(--sp-soft),transform .9s var(--sp-soft),filter .9s var(--sp-soft)}

/* ---------- front door ---------- */
.topbar{position:absolute;top:54px;left:0;right:0;height:44px;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 22px}
.brand{display:flex;align-items:center;gap:9px;color:var(--pearl);opacity:.94}
.brand .sym{width:19px;height:19px;display:block}
.brand .wm{height:11px;display:block}
.menubtn{--r:22px}
.door{position:absolute;inset:0;display:flex;flex-direction:column;padding:110px 20px 40px;pointer-events:none}
.door>*{pointer-events:auto}
.hero{margin-top:auto;padding:0 6px 4px}
.hl{font-size:32px;line-height:38px;font-weight:600;letter-spacing:-.8px;color:#f4f2ee;text-wrap:balance}
.hl2{font-size:21px;line-height:27px;font-weight:500;letter-spacing:-.45px;color:rgba(235,235,245,.48);margin-top:10px}
/* the words rest VISIBLE; the keyframes supply the hidden start (fill both), so if the animation is ever dropped (animation:none, a reduced-motion stylesheet, a cancelled animation) the headline stays readable */
.fw .w{display:inline-block;animation:wordIn 1.5s var(--sp-soft) both;animation-delay:calc(var(--d,0s) + var(--i) * 95ms)}
@keyframes wordIn{from{opacity:0;filter:blur(10px);transform:translateY(7px)}}
.still .fw .w{opacity:1;filter:none;transform:none}
.chat{--r:28px;position:relative;margin-top:30px;padding:8px;display:flex;flex-direction:column;gap:6px;
  background:rgba(255,255,255,.075);-webkit-backdrop-filter:blur(26px) saturate(160%);backdrop-filter:blur(26px) saturate(160%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 0 0 .5px rgba(255,255,255,.1),0 24px 60px -24px rgba(0,0,0,.75);
  transition:opacity .5s var(--sp-soft),transform .6s var(--sp),filter .5s var(--sp-soft)}
.chat .crow{display:flex;align-items:flex-end;gap:6px}
.chat textarea{flex:1;min-width:0;resize:none;border:0;outline:none;background:none;color:#fff;font:inherit;font-size:17px;line-height:22px;letter-spacing:-.43px;padding:9px 4px;height:40px;max-height:112px;overflow-y:auto;scrollbar-width:none}
.chat textarea::placeholder{color:rgba(235,235,245,.42)}
.cbtn{position:relative;width:40px;height:40px;flex:none;border-radius:20px;display:grid;place-items:center;color:rgba(235,235,245,.8);background:rgba(255,255,255,.08);transition:transform .35s var(--sp-b),background-color .25s,color .25s}
.cbtn:active{transform:scale(.9)}
.cbtn.send{background:rgba(255,255,255,.1);color:rgba(235,235,245,.35)}
.cbtn.send.ready{background:var(--pearl);color:var(--ink)}
.att{display:flex;align-items:center;gap:8px;align-self:flex-start;margin:2px 2px 0;padding:6px 8px 6px 10px;border-radius:14px;background:rgba(255,255,255,.08);font-size:13px;line-height:18px;letter-spacing:-.08px;color:#ececf0;animation:pop .5s var(--sp-b)}
.att small{color:rgba(235,235,245,.45);font-size:12px}
.att button{width:20px;height:20px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.12);color:rgba(235,235,245,.7)}
@keyframes pop{from{opacity:0;transform:scale(.85)}}
.signin-link{margin:16px auto 0;font-size:15px;line-height:20px;letter-spacing:-.24px;color:rgba(235,235,245,.5);padding:6px 10px}
.signin-link b{color:var(--pearl);font-weight:600}
.door.sent .hero,.door.sent .chat{opacity:0;transform:translateY(-14px) scale(.98);filter:blur(8px);pointer-events:none}
.door.sent .chat{position:absolute;left:20px;right:20px;bottom:40px}
.thread{display:none;flex-direction:column;gap:18px;margin-top:auto;padding:0 2px}
.door.sent .thread{display:flex}
.bubble{align-self:flex-end;max-width:84%;padding:10px 15px;border-radius:21px 21px 7px 21px;background:var(--pearl);color:var(--ink);font-size:16px;line-height:21px;letter-spacing:-.31px;animation:rise .7s var(--sp) both}
.bubble .att{background:rgba(0,0,0,.08);color:var(--ink);margin:6px 0 2px -4px;animation:none}
.bubble .att small{color:rgba(0,0,0,.45)}
@keyframes rise{from{opacity:0;transform:translateY(22px) scale(.96)}}
.reply{font-size:21px;line-height:27px;font-weight:500;letter-spacing:-.45px;color:#f4f2ee;padding:0 4px}
.reply .q{color:rgba(235,235,245,.48)}
.ask{--r:24px;padding:6px 0;background:rgba(255,255,255,.07);-webkit-backdrop-filter:blur(26px) saturate(160%);backdrop-filter:blur(26px) saturate(160%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),inset 0 0 0 .5px rgba(255,255,255,.08);animation:rise .8s var(--sp) both;animation-delay:var(--d,0s)}
.field{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 16px;position:relative}
.field+.field::before{content:"";position:absolute;left:16px;right:16px;top:0;height:1px;background:rgba(255,255,255,.07)}
.field label{width:66px;flex:none;font-size:15px;line-height:20px;letter-spacing:-.24px;color:rgba(235,235,245,.5)}
.field input{flex:1;min-width:0;border:0;outline:none;background:none;color:#fff;font:inherit;font-size:16px;line-height:21px;letter-spacing:-.31px;padding:12px 0}
.field input::placeholder{color:rgba(235,235,245,.3)}
.ask-go{display:flex;justify-content:flex-end;padding:6px 8px 4px}
.done-line{display:flex;align-items:center;gap:10px;font-size:15px;line-height:20px;letter-spacing:-.24px;color:rgba(235,235,245,.6);padding:0 4px;animation:rise .7s var(--sp) both}
.done-line i{width:22px;height:22px;border-radius:11px;display:grid;place-items:center;background:rgba(61,220,132,.14);color:var(--c-green);flex:none}
.anim-in{animation:rise .8s var(--sp) both;animation-delay:var(--d,0s)}
.still .bubble,.still .ask,.still .done-line,.still .anim-in,.still .att{animation:none}

/* menu popover */
.mscrim{position:absolute;inset:0;z-index:35;display:none}
.menu-open .mscrim{display:block}
.menu{--r:24px;position:absolute;top:104px;right:16px;width:226px;z-index:40;padding:6px;transform-origin:calc(100% - 22px) -8px;
  background:rgba(40,40,46,.62);-webkit-backdrop-filter:blur(30px) saturate(180%);backdrop-filter:blur(30px) saturate(180%);
  opacity:0;transform:scale(.4);filter:blur(6px);pointer-events:none;transition:opacity .25s var(--sp-soft),transform .5s var(--sp-b),filter .3s var(--sp-soft)}
.menu-open .menu{opacity:1;transform:none;filter:none;pointer-events:auto}
.mi{display:flex;align-items:center;justify-content:space-between;width:100%;height:46px;padding:0 12px 0 14px;border-radius:18px;font-size:17px;line-height:22px;letter-spacing:-.43px;color:#fff;text-align:left;transition:background-color .15s}
.mi:active,.mi:hover{background:rgba(255,255,255,.08)}
.mi svg{color:rgba(235,235,245,.4)}
.menubtn .bars{display:flex;flex-direction:column;gap:5px}
.menubtn .bars i{display:block;width:16px;height:1.6px;border-radius:1px;background:#fff;transition:transform .45s var(--sp-b)}
.menu-open .menubtn .bars i:first-child{transform:translateY(3.3px) rotate(45deg)}
.menu-open .menubtn .bars i:last-child{transform:translateY(-3.3px) rotate(-45deg)}

/* ---------- pre-login pages ---------- */
.page{position:absolute;inset:0;z-index:50;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;padding:98px 16px 60px;display:none;
  background:rgba(7,7,9,.8);-webkit-backdrop-filter:blur(34px) saturate(140%);backdrop-filter:blur(34px) saturate(140%);will-change:transform}
.page::-webkit-scrollbar{display:none}
.page.on{display:block}
.page.clear{background:rgba(7,7,9,.28);-webkit-backdrop-filter:none;backdrop-filter:none;display:none;flex-direction:column;padding:98px 20px 40px;overflow:hidden}
.page.clear.on{display:flex}
.pnav{position:absolute;top:54px;left:0;right:0;height:44px;z-index:60;display:flex;align-items:center;padding:0 16px;pointer-events:none}
.pnav>*{pointer-events:auto}
.pnav .compact{position:absolute;left:0;right:0;text-align:center;font-size:17px;line-height:22px;font-weight:600;letter-spacing:-.43px;opacity:0;transform:translateY(4px);transition:opacity .2s,transform .2s;pointer-events:none}
.page.scrolled .pnav .compact{opacity:1;transform:none}
.page .pnav{position:sticky;top:-44px;margin:-44px -16px 0;height:44px}
.page-in{margin-top:4px}
.ptitle{font-size:34px;line-height:41px;font-weight:700;letter-spacing:-.4px;padding:3px 4px 0}
.plead{font-size:17px;line-height:23px;letter-spacing:-.43px;color:rgba(235,235,245,.55);padding:6px 4px 0}

/* what we build */
.seg.tabs{margin:20px 0 4px}
.wb-panel{display:none}
.wb-panel.on{display:block;animation:fadeup .5s var(--sp) both}
@keyframes fadeup{from{opacity:0;transform:translateY(10px);filter:blur(3px)}}
.still .wb-panel.on{animation:none}
.fix{margin-top:16px;gap:14px}
.fix-h{display:flex;align-items:center;gap:12px}
.fix-h h3{font-size:19px;line-height:24px;font-weight:600;letter-spacing:-.45px}
.fix-h .k{font-size:13px;line-height:18px;color:var(--quiet)}
.fix p{font-size:15px;line-height:21px;letter-spacing:-.24px;color:rgba(235,235,245,.62)}
.fix .imp{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding-top:14px;border-top:1px solid rgba(255,255,255,.06)}
.fix .imp .sub{margin-top:6px}
.ppp{font-size:12px;line-height:16px;font-weight:500;color:rgba(235,235,245,.6);padding:6px 10px;border-radius:12px;background:rgba(255,255,255,.06);white-space:nowrap;flex:none}
.film-vis{--r:16px;height:150px;position:relative;overflow:hidden;background:radial-gradient(80% 90% at 50% 100%,#2a2a31,#121215);perspective:600px}
.film-vis .obj{position:absolute;left:50%;top:50%;width:66px;height:66px;margin:-40px 0 0 -33px;transform-style:preserve-3d;animation:spin 9s linear infinite}
.film-vis .obj i{position:absolute;inset:0;border-radius:10px;background:linear-gradient(160deg,#f1eee8,#9c988f);box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
.film-vis .obj i:nth-child(1){transform:translateZ(33px)} .film-vis .obj i:nth-child(2){transform:rotateY(90deg) translateZ(33px);filter:brightness(.7)}
.film-vis .obj i:nth-child(3){transform:rotateY(180deg) translateZ(33px);filter:brightness(.55)} .film-vis .obj i:nth-child(4){transform:rotateY(-90deg) translateZ(33px);filter:brightness(.85)}
.film-vis .obj i:nth-child(5){transform:rotateX(90deg) translateZ(33px)}
.film-vis .floor{position:absolute;left:50%;bottom:22px;width:120px;height:16px;margin-left:-60px;border-radius:50%;background:radial-gradient(rgba(0,0,0,.6),transparent 70%)}
@keyframes spin{from{transform:rotateX(-18deg) rotateY(0)}to{transform:rotateX(-18deg) rotateY(360deg)}}
.still .film-vis .obj{animation:none;transform:rotateX(-18deg) rotateY(-32deg)}

/* journey */
.jlist{position:relative;margin:28px 0 0;padding-left:30px}
.jlist::before{content:"";position:absolute;left:9px;top:8px;bottom:12px;width:1.5px;background:rgba(255,255,255,.08)}
.jlist .fillbar{position:absolute;left:9px;top:8px;width:1.5px;height:var(--jp,0%);background:linear-gradient(var(--pearl),rgba(241,238,232,.4));transition:height .3s linear}
.js{position:relative;padding:0 0 30px}
.js::before{content:"";position:absolute;left:-26px;top:6px;width:11px;height:11px;border-radius:50%;background:#0b0b0c;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.3)}
.js.lit::before{background:var(--pearl);box-shadow:0 0 0 4px rgba(241,238,232,.12)}
.js .d{font-size:13px;line-height:18px;font-weight:600;color:rgba(235,235,245,.45);font-variant-numeric:tabular-nums}
.js h3{font-size:20px;line-height:25px;font-weight:600;letter-spacing:-.45px;margin-top:2px}
.js p{font-size:15px;line-height:21px;letter-spacing:-.24px;color:rgba(235,235,245,.6);margin-top:6px}
.story{font-size:19px;line-height:27px;letter-spacing:-.45px;color:rgba(235,235,245,.78);padding:18px 4px 0}
.story b{color:#fff;font-weight:600}

/* sign in + code */
.authcard{margin-top:auto;margin-bottom:auto;display:flex;flex-direction:column}
.auth-h{font-size:32px;line-height:38px;font-weight:600;letter-spacing:-.8px;color:#f4f2ee;padding:0 4px}
.auth-s{font-size:16px;line-height:22px;letter-spacing:-.31px;color:rgba(235,235,245,.5);padding:8px 4px 0}
.auth-s b{color:#fff;font-weight:500}
.ask.static{animation:none;margin-top:26px}
.eye{color:rgba(235,235,245,.45);width:30px;height:30px;display:grid;place-items:center}
.auth-row{display:flex;justify-content:space-between;align-items:center;margin:14px 4px 0}
.btn.filled .spin{width:18px;height:18px;border-radius:50%;border:2px solid rgba(0,0,0,.2);border-top-color:var(--ink);animation:rot .7s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}
.me-av{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#2a2a2f;color:rgba(235,235,245,.9);font-size:22px;font-weight:600;letter-spacing:-.4px;margin:0 4px 20px;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.otp{display:flex;gap:8px;justify-content:space-between;margin-top:28px}
.otp input{--r:14px;width:46px;height:58px;flex:none;text-align:center;border:0;outline:none;color:#fff;caret-color:var(--pearl);
  font:inherit;font-size:26px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:0;
  background:rgba(255,255,255,.07);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
  transition:box-shadow .2s,transform .35s var(--sp-b),color .2s}
.otp input:focus{box-shadow:inset 0 0 0 1.5px var(--pearl)}
.otp input.f{transform:scale(1.04)}
.otp .gap{width:6px}
.otp.ok input{box-shadow:inset 0 0 0 1.5px var(--c-green);color:var(--c-green)}
.otp.shake{animation:shake .45s var(--sp)}
@keyframes shake{20%{transform:translateX(-8px)}45%{transform:translateX(6px)}70%{transform:translateX(-3px)}}
.otp-hint{display:flex;justify-content:space-between;align-items:center;margin:18px 4px 0;font-size:15px;line-height:20px;letter-spacing:-.24px;color:rgba(235,235,245,.5);font-variant-numeric:tabular-nums}
.otp-hint .tbtn:disabled{color:rgba(235,235,245,.35)}
.otp-sample{margin:24px 4px 0;font-size:13px;line-height:18px;color:rgba(235,235,245,.38);display:flex;gap:8px;align-items:center}
.flyer{position:absolute;z-index:200;border-radius:50%;display:grid;place-items:center;background:#2a2a2f;color:rgba(235,235,245,.9);font-weight:600;pointer-events:none}

/* ---------- workspace additions ---------- */
.screen.on{animation:wsIn .5s var(--sp) both}
@keyframes wsIn{from{opacity:0;transform:translateY(8px);filter:blur(3px)}}
.screen.push{animation:none}
.still .screen.on{animation:none}
.tabbar .lozenge{transition:transform .55s var(--sp-b)}
.navbar .avatar-btn{transition:opacity .3s}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:13px;line-height:18px;font-weight:500;letter-spacing:-.08px;color:var(--c);white-space:nowrap}
.chip::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.chip.live::before{box-shadow:0 0 0 0 currentColor;animation:livepulse 2.4s ease-out infinite}
@keyframes livepulse{0%{box-shadow:0 0 0 0 rgba(61,220,132,.5)}70%,100%{box-shadow:0 0 0 7px rgba(61,220,132,0)}}
.still .chip.live::before{animation:none}
.pill{--r:26px;display:flex;align-items:center;gap:6px;margin-top:16px;padding:6px;
  background:rgba(255,255,255,.06);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 .5px rgba(255,255,255,.07),var(--depth)}
.pill input{flex:1;min-width:0;border:0;outline:none;background:none;color:#fff;font:inherit;font-size:16px;line-height:21px;letter-spacing:-.31px;padding:9px 6px}
.pill input::placeholder{color:rgba(235,235,245,.42)}
.pill .cbtn{width:38px;height:38px;border-radius:19px}
.bar{position:relative;height:8px;border-radius:4px;background:rgba(255,255,255,.07);overflow:visible}
.bar .fill{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:var(--c,var(--c-green));width:var(--w);transition:width 1.2s var(--sp)}
.bar .mk{position:absolute;top:-5px;bottom:-5px;width:2px;border-radius:1px;background:var(--pearl);left:var(--m)}
.barlab{display:flex;justify-content:space-between;font-size:12px;line-height:16px;color:rgba(235,235,245,.45);font-variant-numeric:tabular-nums;margin-top:8px}
.feed .row{animation:none}
.feed .row.new{animation:feedIn .7s var(--sp) both}
@keyframes feedIn{from{opacity:0;transform:translateY(-14px);max-height:0;min-height:0;padding-top:0;padding-bottom:0}to{max-height:80px}}
.tm{font-size:13px;line-height:18px;color:rgba(235,235,245,.42);font-variant-numeric:tabular-nums;width:38px;flex:none}
.num{width:26px;height:26px;border-radius:13px;flex:none;display:grid;place-items:center;background:rgba(255,255,255,.07);font-size:13px;font-weight:600;color:rgba(235,235,245,.8);font-variant-numeric:tabular-nums}
.tl{display:flex;justify-content:space-between;position:relative;padding:4px 16px 14px}
.tl::before{content:"";position:absolute;left:28px;right:28px;top:15px;height:1.5px;background:rgba(255,255,255,.09)}
.tl div{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;width:62px;text-align:center}
.tl i{width:12px;height:12px;border-radius:6px;background:#1b1b1f;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.3);margin-top:5px}
.tl .on i{background:var(--pearl);box-shadow:0 0 0 4px rgba(241,238,232,.12)}
.tl b{font-size:13px;line-height:16px;font-weight:600}
.tl span{font-size:12px;line-height:15px;color:rgba(235,235,245,.45)}
.btnrow{display:flex;flex-direction:column;gap:10px;margin-top:24px}
.toast{--r:22px;position:absolute;top:58px;left:50%;z-index:125;max-width:340px;display:flex;align-items:center;gap:10px;padding:11px 16px 11px 12px;
  background:rgba(40,40,46,.7);-webkit-backdrop-filter:blur(30px) saturate(180%);backdrop-filter:blur(30px) saturate(180%);
  font-size:15px;line-height:20px;letter-spacing:-.24px;transform:translate(-50%,-90px) scale(.9);opacity:0;transition:transform .6s var(--sp-b),opacity .3s}
.toast.on{transform:translate(-50%,0);opacity:1}
.toast i{width:24px;height:24px;border-radius:12px;display:grid;place-items:center;background:rgba(61,220,132,.16);color:var(--c-green);flex:none}

/* sheets: spring + drag */
.sheet{transition:transform .62s var(--sp)}
.sheet.drag{transition:none}
.sheet .grab{cursor:grab;position:relative}
.sheet .grab::after{content:"";position:absolute;inset:-12px -120px}
.scrim{transition:opacity .4s var(--sp-soft)}
.sheet textarea.ta{width:100%;min-height:110px;resize:none;border:0;outline:none;border-radius:16px;padding:14px 16px;background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:16px;line-height:22px;letter-spacing:-.31px}
.sheet textarea.ta::placeholder{color:rgba(235,235,245,.35)}
.paid{display:flex;flex-direction:column;align-items:center;text-align:center;padding:18px 0 6px}
.paid .ok{width:76px;height:76px;border-radius:38px;display:grid;place-items:center;background:rgba(61,220,132,.13);color:var(--c-green);animation:okpop .8s var(--sp-b) both}
.paid .ok path{stroke-dasharray:24;stroke-dashoffset:24;animation:draw .6s .25s var(--sp) forwards}
@keyframes okpop{from{transform:scale(.4);opacity:0}}
@keyframes draw{to{stroke-dashoffset:0}}
.still .paid .ok,.still .paid .ok path{animation:none;stroke-dashoffset:0}
.paid h3{font-size:24px;line-height:30px;font-weight:700;letter-spacing:-.5px;margin-top:18px}
.paid p{font-size:15px;line-height:21px;letter-spacing:-.24px;color:var(--quiet);margin-top:6px;max-width:300px}
.testmode{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:16px;font-weight:600;color:var(--c-amber);padding:4px 9px;border-radius:10px;background:rgba(255,176,32,.12)}
.sharecard{--r:24px;position:relative;margin:4px 6px 0;aspect-ratio:4/4.3;overflow:hidden;padding:22px;display:flex;flex-direction:column;
  background:radial-gradient(120% 80% at 85% 0%,#2a2a30 0%,#111114 60%,#0b0b0c 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),inset 0 0 0 1px rgba(255,255,255,.05),0 30px 60px -30px rgba(0,0,0,.9)}
.sharecard .top{display:flex;align-items:center;gap:8px;color:var(--pearl)}
.sharecard .top img{display:block}
.sharecard .who{margin-top:auto;font-size:15px;line-height:20px;color:rgba(235,235,245,.6)}
.sharecard .big{font-size:52px;line-height:1;font-weight:600;letter-spacing:-.04em;font-variant-numeric:tabular-nums;margin-top:8px}
.sharecard .big .cur{font-weight:400;font-size:.55em;color:rgba(235,235,245,.5);vertical-align:.4em;margin-right:.06em}
.sharecard .when{font-size:15px;line-height:20px;color:rgba(235,235,245,.6);margin-top:8px}
.sharecard .foot2{display:flex;justify-content:space-between;align-items:flex-end;margin-top:18px;font-size:12px;line-height:16px;color:rgba(235,235,245,.4)}
.terms{padding:4px 16px 14px}
.terms li{list-style:none;position:relative;padding-left:16px;font-size:14px;line-height:20px;letter-spacing:-.15px;color:rgba(235,235,245,.62);margin-top:9px}
.terms li::before{content:"";position:absolute;left:2px;top:8px;width:5px;height:5px;border-radius:50%;background:rgba(235,235,245,.35)}
.terms li b{color:#fff;font-weight:600}
.empty-note{padding:14px 16px;font-size:14px;color:var(--quiet)}
.row.collapse{animation:collapse .45s var(--sp) forwards;overflow:hidden}
@keyframes collapse{to{opacity:0;max-height:0;min-height:0;padding-top:0;padding-bottom:0;transform:translateX(30px)}}

/* ================= front door v2: warm water horizon, centred hero, two buttons ================= */
.door{padding:104px 20px 30px;align-items:stretch}
.dtop{flex:1;display:flex;flex-direction:column;justify-content:center;min-height:0;padding-bottom:40px}
.dhero{display:flex;flex-direction:column;align-items:center;text-align:center;margin-top:-30px}
.tagpill{--r:15px;display:inline-flex;align-items:center;height:30px;padding:0 14px;border-radius:15px;font-size:13px;line-height:18px;font-weight:500;letter-spacing:-.08px;color:rgba(241,238,232,.86);background:rgba(255,255,255,.07);margin-bottom:18px}
.dhero .hl{font-size:34px;line-height:40px;letter-spacing:-.9px;max-width:330px}
.dhero .hl2{font-size:17px;line-height:23px;letter-spacing:-.43px;max-width:300px;margin-top:12px}
.door .chat{margin-top:0}
.dcta{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.btn.glassbtn{background:rgba(255,255,255,.08);-webkit-backdrop-filter:blur(24px) saturate(160%);backdrop-filter:blur(24px) saturate(160%);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 0 0 .5px rgba(255,255,255,.1)}
.dlink{margin:6px auto 0;padding:6px 10px;font-size:14px;line-height:19px;letter-spacing:-.15px;color:rgba(235,235,245,.5)}
.dlink b{color:rgba(241,238,232,.92);font-weight:600}
.door .thread{margin-top:0;justify-content:flex-end;flex:1;padding-bottom:6px}
.door.sent .dhero{display:none}
.door.sent .chat{display:none}
.door.sent .dtop{padding-bottom:4px}
.door .reply{margin-top:2px}
.door .ask{margin-top:2px}
.venom-cv{border-radius:inherit}

/* pages: fixed nav over a scrolling body */
.page{padding:0;overflow:hidden}
.pscroll{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;padding:98px 16px 60px;scrollbar-width:none}
.pscroll::-webkit-scrollbar{display:none}
.page .pnav{position:absolute;top:54px;margin:0;height:44px}
.pedge{position:absolute;inset:0 0 auto 0;height:110px;z-index:55;pointer-events:none;opacity:0;transition:opacity .2s;
  background:linear-gradient(rgba(7,7,9,.95),rgba(7,7,9,.6) 60%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  -webkit-mask:linear-gradient(#000 0,#000 50%,transparent);mask:linear-gradient(#000 0,#000 50%,transparent)}
.page.scrolled .pedge{opacity:1}
.page.clear .authcard{padding:0}

/* ================= first-run cards ================= */
.onb{position:absolute;inset:0;z-index:48;display:none;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;
  background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.15) 55%,transparent 75%)}
.onb.on{display:block}
.skip{position:absolute;top:60px;right:18px;z-index:5;height:32px;padding:0 14px;border-radius:16px;font-size:15px;line-height:20px;letter-spacing:-.24px;color:rgba(235,235,245,.6);background:rgba(255,255,255,.06)}
.heroes{position:absolute;left:0;right:0;top:104px;height:390px;pointer-events:none}
.heroes-cv{display:block}
.onb-track{position:absolute;left:0;right:0;top:500px;display:flex;will-change:transform}
.onb-card{flex:0 0 100%;padding:0 34px;text-align:center}
.onb-card h2{font-size:30px;line-height:36px;font-weight:700;letter-spacing:-.7px;color:#f4f2ee;text-wrap:balance}
.onb-card p{font-size:16px;line-height:22px;letter-spacing:-.31px;color:rgba(235,235,245,.55);margin-top:10px;text-wrap:balance}
.dots{position:absolute;left:0;right:0;top:680px;display:flex;justify-content:center;gap:7px}
.dots i{width:7px;height:7px;border-radius:4px;background:rgba(255,255,255,.22);transition:width .5s var(--sp-b),background-color .3s}
.dots i.on{width:22px;background:var(--pearl)}

/* ================= Home hero: warm tick-pill gauge ================= */
.cluster{gap:6px;padding-top:14px;background:radial-gradient(90% 70% at 50% 55%,#1d1a19 0%,#121214 70%),#121214}
.cl-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;line-height:16px;color:rgba(235,235,245,.42);font-variant-numeric:tabular-nums;min-height:30px}
.cl-top .get{height:26px;padding:0 11px;font-size:12px}
.gauge{position:relative;width:329px;height:150px;margin:0 auto}
.gauge svg{position:absolute;inset:0;overflow:visible}
.glit{filter:drop-shadow(0 0 3px rgba(255,106,69,.85)) drop-shadow(0 0 9px rgba(255,90,50,.35))}
.gmask{animation:gfill 1.6s var(--sp-soft) both}
@keyframes gfill{from{stroke-dashoffset:1000}to{stroke-dashoffset:var(--off)}}
.still .gmask{animation:none}
.g-c{position:absolute;left:0;right:0;top:50%;transform:translateY(-52%);text-align:center}
.g-num{font-size:35px;line-height:40px;font-weight:250;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:#f6f3ee}
.g-num .cur{font-size:18px;font-weight:300;color:rgba(235,235,245,.55);vertical-align:.55em;margin-right:2px}
.g-unit{font-size:11px;line-height:14px;font-weight:500;letter-spacing:.02em;color:rgba(235,235,245,.45);margin-top:3px}
.g-side{position:absolute;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:1px;width:58px}
.g-side.l{left:15px} .g-side.r{right:15px}
.g-side b{font-size:13px;line-height:16px;font-weight:600;font-variant-numeric:tabular-nums;color:#f1eee8;letter-spacing:-.1px}
.g-side span{font-size:10px;line-height:12px;color:rgba(235,235,245,.42)}
.cl-line{margin-top:4px}
.bar.thin{height:2px;border-radius:1px}
.bar.thin .fill{border-radius:1px;box-shadow:0 0 6px rgba(241,238,232,.5)}

/* ================= v3: calmer, faster ================= */
/* one backdrop-filter on the door (the chat box); everything else is plain translucency */
.topbar .nbtn.glass,.tagpill,.btn.glassbtn{-webkit-backdrop-filter:none;backdrop-filter:none}
.topbar .nbtn.glass{background:rgba(255,255,255,.08)}
.btn.glassbtn{background:rgba(255,255,255,.075)}
.tagpill{background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 .5px rgba(255,255,255,.14)}
.tagpill::before,.tagpill::after{display:none}
/* motion: transform and opacity only */
@keyframes wordIn{from{opacity:0;transform:translateY(8px)}}
.water-fb{background:radial-gradient(70% 40% at 25% 40%,rgba(255,106,69,.10),transparent 70%),radial-gradient(60% 35% at 80% 34%,rgba(255,176,74,.08),transparent 70%),linear-gradient(#030304,#0f0f11 58%,#1b1b1e 60%,#101012)}
#splash{background:#050506}
#splash .lo{width:220px;height:220px;overflow:visible}
#splash .lo img{width:112px;height:112px;margin:54px}

/* door thread: laid out at send, revealed after the goo lands */
.thread .pending{visibility:hidden;animation:none}
.thread .pending .w{animation:none}

/* ================= v4: dark glass with neon light, sticky-note board, journey road, detail polish ================= */
@font-face{font-family:"Shantell Sans";src:url(fonts/ShantellSans-latin.woff2) format("woff2");font-weight:500 800;font-style:normal;font-display:swap}
:root{--hand:"Shantell Sans",var(--f-sans);--hair:inset 0 0 0 1px rgba(255,255,255,.10)}
.water-fb{background:radial-gradient(50% 30% at 22% 26%,rgba(255,46,148,.14),transparent 70%),radial-gradient(50% 30% at 80% 58%,rgba(34,211,238,.12),transparent 70%),radial-gradient(40% 24% at 40% 92%,rgba(140,242,77,.08),transparent 70%),#08080a}
#splash{background:#070708}

/* door: one glass layer, hairlines, tighter type */
.door{padding:104px 20px 34px}
.brand .sym{width:22px;height:22px}
.dhero .tagpill{margin-bottom:16px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);background:rgba(255,255,255,.05);color:rgba(241,238,232,.82)}
.dhero .hl{font-size:34px;line-height:39px;letter-spacing:-1px}
.dhero .hl2{font-size:16px;line-height:22px;letter-spacing:-.31px;margin-top:10px;color:rgba(235,235,245,.52)}
.door .chat{--r:28px;background:rgba(255,255,255,.055);box-shadow:var(--hair),inset 0 1px 0 rgba(255,255,255,.16),0 24px 60px -24px rgba(0,0,0,.85)}
.door .chat.glass::before,.door .chat.glass::after{display:none}
.chat .cbtn{background:rgba(255,255,255,.06);box-shadow:var(--hair);color:rgba(235,235,245,.78)}
.topbar .nbtn.glass{background:rgba(255,255,255,.06);box-shadow:var(--hair)}
.topbar .nbtn.glass::before,.topbar .nbtn.glass::after{display:none}
.btn.glassbtn{background:rgba(255,255,255,.06);box-shadow:var(--hair)}
.btn.filled{box-shadow:inset 0 -1px 0 rgba(0,0,0,.12)}
.dlink{margin-top:4px}
.nav-sym{width:44px;height:44px;display:grid;place-items:center;opacity:.92}
.nav-sym .sym{width:22px;height:22px}

/* sticky-note board */
.board{position:relative;margin:16px -16px 0;padding:0 16px;transition:height .5s var(--sp)}
.board .note{position:absolute;left:16px;top:0}
.note{width:164px;height:176px;padding:24px 15px 13px;border-radius:5px 5px 16px 5px;color:#0b0b0c;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;
  display:flex;flex-direction:column;will-change:transform;transform:rotate(var(--tilt));
  background:linear-gradient(172deg,color-mix(in srgb,var(--c) 82%,#fff) 0%,var(--c) 38%,color-mix(in srgb,var(--c) 88%,#000) 100%);
  box-shadow:0 1px 1px rgba(0,0,0,.3),0 16px 26px -14px rgba(0,0,0,.85)}
.note::after{content:"";position:absolute;right:0;bottom:0;width:26px;height:26px;border-radius:0 0 16px 0;background:linear-gradient(135deg,transparent 50%,rgba(0,0,0,.14) 50%,rgba(255,255,255,.25) 100%)}
.note.lift{z-index:5;cursor:grabbing;box-shadow:0 2px 3px rgba(0,0,0,.25),0 34px 46px -18px rgba(0,0,0,.9)}
.note h3{font-family:var(--hand);font-weight:700;font-size:18px;line-height:21px;letter-spacing:-.2px}
.nfoot{margin-top:auto;display:flex;justify-content:space-between;font-size:11px;line-height:14px;font-weight:600;letter-spacing:0;opacity:.58}
.tape{position:absolute;top:-9px;left:50%;width:60px;height:20px;margin-left:-30px;transform:rotate(-4deg);background:rgba(255,255,255,.42);box-shadow:0 1px 1px rgba(0,0,0,.12);z-index:2;
  -webkit-mask:linear-gradient(90deg,transparent 0,#000 3px,#000 calc(100% - 3px),transparent 100%);mask:linear-gradient(90deg,transparent 0,#000 3px,#000 calc(100% - 3px),transparent 100%)}
.board-hint{margin:2px 4px 18px;text-align:center;font-family:var(--hand);font-size:14px;line-height:19px;color:rgba(235,235,245,.42)}
.flipwrap{position:absolute;inset:0;z-index:70;display:none}
.flipwrap.on{display:block}
.fscrim{position:absolute;inset:0;background:rgba(3,3,4,.72)}
.fcard{position:absolute;left:14px;right:14px;top:112px;padding:26px 18px 18px;border-radius:22px;background:linear-gradient(180deg,#19191d,#121215);
  box-shadow:var(--hair),inset 0 1px 0 rgba(255,255,255,.08),0 40px 80px -24px rgba(0,0,0,.95);will-change:transform}
.fcard::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;border-radius:22px 22px 0 0;background:var(--c)}
.fcard .tape{top:-8px;background:color-mix(in srgb,var(--c) 55%,rgba(255,255,255,.4))}
.fhead{display:flex;align-items:center;justify-content:space-between;margin:-6px 0 6px}
.ftag{font-size:12px;line-height:16px;font-weight:600;color:var(--c)}
.fcard .xbtn{width:30px;height:30px;background:rgba(255,255,255,.07)}
.fcard h3{font-family:var(--hand);font-weight:700;font-size:22px;line-height:27px;letter-spacing:-.3px;color:#f6f3ee;text-wrap:balance}
.ftabs{margin:14px 0 10px}
.ftabs button.on{background:var(--c);color:#0b0b0c}
.fvis{min-height:172px;display:flex;align-items:center}
.fvis>*{width:100%}
.mini text{font-family:var(--f-sans)}
.mini .draw{stroke-dasharray:1 1;stroke-dashoffset:1;animation:drawln .9s var(--sp-soft) .1s forwards}
@keyframes drawln{to{stroke-dashoffset:0}}
.still .mini .draw{animation:none;stroke-dashoffset:0}
.mock{border-radius:14px;background:rgba(255,255,255,.04);box-shadow:var(--hair);padding:4px 12px}
.mock .mr{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0}
.mock .mr+.mr{border-top:1px solid rgba(255,255,255,.06)}
.mock b{display:block;font-size:14px;line-height:19px;font-weight:600;color:#f1eee8}
.mock span{display:block;font-size:12px;line-height:16px;color:rgba(235,235,245,.48)}
.mock em{font-style:normal;font-size:12px;font-weight:600;flex:none}
.mock.msg{padding:12px 14px}
.mock .mh{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:rgba(235,235,245,.55)}
.mock .mh i{width:8px;height:8px;border-radius:4px}
.mock.msg p{font-size:14px;line-height:20px;color:#f1eee8;margin-top:6px}
.fline{font-family:var(--hand);font-weight:600;font-size:18px;line-height:24px;color:var(--c);margin:14px 2px 16px}

/* journey road */
.note.static{position:relative;width:auto;height:auto;margin:24px 6px 0;padding:24px 18px 18px;cursor:default;touch-action:auto}
.note.static h3{font-size:19px;line-height:23px}
.note.static p{font-size:14px;line-height:20px;margin-top:8px;color:rgba(11,11,12,.78)}
.jroad{position:relative;margin-top:30px}
.jpath{position:absolute;left:0;top:0;pointer-events:none;overflow:visible}
.jpath path{fill:none;stroke-linecap:round}
.jpath .base{stroke:rgba(255,255,255,.10);stroke-width:2;stroke-dasharray:2 7}
.jpath .ink{stroke:#f1eee8;stroke-width:2.2;stroke-dasharray:1 1;stroke-dashoffset:1;opacity:.85}
.jstop{position:relative;display:flex;align-items:flex-start;gap:12px;margin-bottom:30px;padding-right:14px}
.jstop.r{flex-direction:row-reverse;padding:0 0 0 14px}
.jdot{position:relative;z-index:1;flex:none;width:34px;height:34px;margin-top:12px;border-radius:17px;display:grid;place-items:center;background:#0b0b0c;box-shadow:0 0 0 2px var(--c);
  font-family:var(--hand);font-weight:800;font-size:15px;color:var(--c);transform:scale(.6);opacity:.4;transition:transform .6s var(--sp-b),opacity .4s}
.jstop.in .jdot{transform:none;opacity:1}
.jcard{flex:1;min-width:0;position:relative;padding:20px 16px 12px;border-radius:16px;background:linear-gradient(180deg,#17171a,#121214);box-shadow:var(--hair);cursor:pointer;
  opacity:0;transform:translateY(26px);transition:opacity .6s var(--sp-soft),transform .8s var(--sp)}
.jstop.in .jcard{opacity:1;transform:none}
.jcard .tape{width:46px;margin-left:-23px;background:color-mix(in srgb,var(--c) 60%,rgba(255,255,255,.3))}
.jcard h3{font-family:var(--hand);font-weight:700;font-size:18px;line-height:22px;color:#f6f3ee}
.jcard>p{font-size:14px;line-height:20px;color:rgba(235,235,245,.58);margin-top:6px}
.jvis{margin-top:12px}
.jmore{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s var(--sp)}
.jmore>div{overflow:hidden}
.jmore p{font-size:14px;line-height:20px;color:rgba(235,235,245,.72);padding-top:10px}
.jcard.open .jmore{grid-template-rows:1fr}
.jtap{display:block;margin-top:10px;font-size:11px;line-height:14px;font-weight:600;color:var(--c);opacity:.8}
.m-chat{display:flex;align-items:center;gap:8px;height:40px;padding:0 6px 0 14px;border-radius:20px;background:rgba(255,255,255,.05);box-shadow:var(--hair);font-size:14px;color:#f1eee8}
.m-chat .typed{flex:1;white-space:nowrap;overflow:hidden;clip-path:inset(0 100% 0 0)}
.jstop.in .m-chat .typed{animation:typeit 1.6s steps(26) .35s forwards}
@keyframes typeit{to{clip-path:inset(0 0 0 0)}}
.m-chat i{width:28px;height:28px;border-radius:14px;flex:none}
.sketch text{font-family:var(--f-sans)}
.sketch path{stroke-dasharray:1 1;stroke-dashoffset:1;transition:stroke-dashoffset 1.6s var(--sp-soft) .2s}
.jstop.in .sketch path{stroke-dashoffset:0}
.m-plan{border-radius:12px;background:rgba(255,255,255,.04);box-shadow:var(--hair);padding:6px 12px}
.m-plan div{display:flex;align-items:center;gap:9px;font-size:13px;line-height:18px;padding:6px 0;color:#ececf0}
.m-plan i{width:20px;height:20px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.07);font-style:normal;font-size:11px;font-weight:700}
.m-plan footer{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.07);margin-top:4px;padding:8px 0 4px;font-size:12px;font-weight:600;color:var(--c)}
.m-build .trk{height:6px;border-radius:3px;background:rgba(255,255,255,.07);overflow:hidden}
.m-build .fill{display:block;height:100%;border-radius:3px;transform:scaleX(.06);transform-origin:left;transition:transform 1.8s var(--sp-soft) .3s}
.jstop.in .m-build .fill{transform:scaleX(.62)}
.m-build .lbl{display:flex;justify-content:space-between;margin-top:8px;font-size:11px;font-weight:600;color:rgba(235,235,245,.48)}
.m-feed{border-radius:12px;background:rgba(255,255,255,.04);box-shadow:var(--hair);padding:2px 12px;overflow:hidden}
.m-feed .r{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:13px;line-height:18px;color:#ececf0}
.m-feed .r+.r{border-top:1px solid rgba(255,255,255,.06)}
.m-feed b{width:30px;font-weight:500;color:rgba(235,235,245,.42);font-variant-numeric:tabular-nums}
.m-feed em{margin-left:auto;font-style:normal;font-size:12px;font-weight:600;color:rgba(235,235,245,.55)}
.m-feed .r.new{animation:feedIn .6s var(--sp) both}
.m-loop{display:flex;align-items:center;gap:14px}
.m-loop svg{animation:loopspin 6s linear infinite;flex:none}
@keyframes loopspin{to{transform:rotate(-360deg)}}
.still .m-loop svg{animation:none}
.still .jcard,.still .jdot{transition:none}
.still .m-chat .typed{clip-path:none}
.pedge{background:linear-gradient(#070709 0,#070709 55%,rgba(7,7,9,0))}
.pedge{height:120px;background:linear-gradient(#070709 0,#070709 62%,rgba(7,7,9,0))}

/* ================= v5: brand tokens (sampled from the owner's refs) and small touches ================= */
:root{--brand-1:#E4267F;--brand-2:#E67B2F;--brand-3:#41CE3B;--brand-4:#0BB5D8;
  --brand-grad:linear-gradient(90deg,var(--brand-1),var(--brand-2) 36%,var(--brand-3) 68%,var(--brand-4))}
.water-fb{background:linear-gradient(115deg,transparent 30%,rgba(228,38,127,.08) 31%,transparent 33%),linear-gradient(240deg,transparent 40%,rgba(11,181,216,.07) 41%,transparent 43%),#070708}
/* gradient hairline, used sparingly */
.gline{position:relative}
.gline::before{content:"";display:block;position:absolute;inset:0;border-radius:inherit;padding:1px;background:var(--brand-grad);pointer-events:none;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.dhero .tagpill{position:relative;box-shadow:none}
.dhero .tagpill::before{content:"";display:block;position:absolute;inset:0;border-radius:inherit;padding:1px;background:var(--brand-grad);opacity:.55;pointer-events:none;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.door .chat.glass::before{display:block;content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:var(--brand-grad);opacity:0;pointer-events:none;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;transition:opacity .35s var(--sp-soft)}
.door .chat.glass:focus-within::before{opacity:.95}

/* ================= desk collage ================= */
.desk{position:relative;height:760px;margin:18px -16px 6px;padding:0 16px}
.desk .doodles{position:absolute;left:16px;top:0;width:361px;height:760px;pointer-events:none}
.hand{font-family:var(--hand);font-weight:600}
.dd{position:absolute;font-size:15px;line-height:18px;color:rgba(241,238,232,.62);pointer-events:none;transform:rotate(-4deg)}
.dd1{left:112px;top:4px} .dd2{left:250px;top:712px;transform:rotate(3deg)}
.item{position:absolute;left:16px;top:0;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;will-change:transform;
  box-shadow:0 1px 1px rgba(0,0,0,.35),0 16px 28px -14px rgba(0,0,0,.9);z-index:1}
.item.lift{cursor:grabbing;box-shadow:0 2px 3px rgba(0,0,0,.3),0 34px 46px -18px rgba(0,0,0,.95)}
.item h3{font-family:var(--hand);font-weight:700;letter-spacing:-.2px}
.item .tape{z-index:3}
/* sticky */
.item.sticky{padding:24px 15px 13px;border-radius:5px 5px 16px 5px;color:#0b0b0c;display:flex;flex-direction:column;
  background:linear-gradient(172deg,color-mix(in srgb,var(--c) 80%,#fff) 0%,var(--c) 40%,color-mix(in srgb,var(--c) 88%,#000) 100%)}
.item.sticky::after{content:"";position:absolute;right:0;bottom:0;width:26px;height:26px;border-radius:0 0 16px 0;background:linear-gradient(135deg,transparent 50%,rgba(0,0,0,.16) 50%,rgba(255,255,255,.25) 100%)}
.item.sticky h3{font-size:18px;line-height:21px}
/* torn receipt */
.item.receipt{padding:22px 14px 22px;color:#1b1b1d;background:#f3f0e8;border-radius:2px;
  -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat,conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/12px 8px repeat-x;
  mask:linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat,conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/12px 8px repeat-x;box-shadow:none;filter:drop-shadow(0 12px 14px rgba(0,0,0,.55))}
.rc-h{font-size:11px;line-height:14px;font-weight:700;letter-spacing:.02em;text-align:center;padding-bottom:8px;border-bottom:1px dashed rgba(0,0,0,.25);margin-bottom:6px}
.rc-h small{font-weight:500;letter-spacing:0;color:rgba(0,0,0,.5)}
.rc-l{display:flex;justify-content:space-between;font-size:11.5px;line-height:20px;font-variant-numeric:tabular-nums}
.rc-l.dim{color:rgba(0,0,0,.45);border-bottom:1px dashed rgba(0,0,0,.25);padding-bottom:6px;margin-bottom:8px}
.ring{position:relative;font-weight:700}
.ring svg{position:absolute;left:-12px;top:-4px;width:58px;height:26px;overflow:visible}
.item.receipt h3{font-size:16px;line-height:19px;color:#0b0b0c}
.rc-note{position:absolute;right:8px;top:8px;font-size:13px;color:var(--c);transform:rotate(-8deg)}
/* index card */
.item.index{padding:22px 14px 10px;border-radius:4px;color:#141416;
  background:linear-gradient(transparent 31px,color-mix(in srgb,var(--c) 80%,#000) 31px,color-mix(in srgb,var(--c) 80%,#000) 32.5px,transparent 32.5px),repeating-linear-gradient(transparent 0 20px,rgba(44,195,226,.28) 20px 21px) 0 12px/100% calc(100% - 12px) no-repeat,#f4f2ec}
.item.index h3{font-size:16px;line-height:20px;margin-top:4px}
.ix-chart{display:block;width:100%;height:30px;margin-top:6px}
.ix-key{display:flex;gap:12px;font-size:10px;font-weight:600;color:rgba(0,0,0,.55);margin-top:2px}
.ix-key i{display:inline-block;width:8px;height:8px;border-radius:4px;margin-right:4px;vertical-align:-1px}
/* polaroid */
.item.polaroid{padding:10px 10px 0;background:#f6f4ef;border-radius:3px;color:#141416}
.pl-shot{height:118px;border-radius:2px;background:linear-gradient(180deg,#141418,#0b0b0d);padding:10px 8px;display:flex;flex-direction:column;gap:6px;justify-content:flex-end}
.pl-msg{max-width:88%;font-size:9.5px;line-height:13px;color:#ececf0;background:#24242a;border-radius:9px 9px 9px 3px;padding:6px 8px}
.pl-msg b{display:block;font-size:8.5px;color:var(--c);font-weight:700;margin-bottom:2px}
.pl-msg.me{align-self:flex-end;background:#f1eee8;color:#0b0b0c;border-radius:9px 9px 3px 9px;max-width:40%}
.pl-cap{font-family:var(--hand);font-weight:700;font-size:13.5px;line-height:16px;padding:9px 2px 0}
/* flowchart card and little map */
.item.flowcard,.item.erd{padding:20px 13px 12px;border-radius:14px;background:linear-gradient(180deg,#1a1a1e,#131316);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 45%,transparent),0 16px 28px -14px rgba(0,0,0,.9);color:#f1eee8}
.item.flowcard h3,.item.erd h3{font-size:16px;line-height:19px}
.fc-svg{display:block;width:100%;margin-top:10px}
.fc-svg text{font-family:var(--f-sans)}
.item.flowcard .tape,.item.erd .tape{background:color-mix(in srgb,var(--c) 55%,rgba(255,255,255,.3));width:46px;margin-left:-23px}

/* ================= journey: boarding pass and stamps ================= */
.bpass{position:relative;margin:22px 2px 0;border-radius:20px;background:linear-gradient(180deg,#1a1a1e,#121215);box-shadow:var(--hair),0 26px 50px -24px rgba(0,0,0,.9);overflow:hidden}
.bpass::before,.bpass::after{content:"";position:absolute;top:calc(100% - 96px);width:22px;height:22px;border-radius:11px;background:#08080a;z-index:2}
.bpass::before{left:-11px} .bpass::after{right:-11px}
.bp-top{display:flex;align-items:center;gap:8px;padding:14px 18px;font-size:12px;font-weight:600;color:rgba(235,235,245,.6);border-bottom:1px solid rgba(255,255,255,.06)}
.bp-top img{display:block}
.bp-no{margin-left:auto;font-variant-numeric:tabular-nums;color:#f1eee8}
.bp-route{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;padding:16px 18px 6px}
.bp-route svg{width:70px;height:30px;flex:none;margin-bottom:6px}
.bp-route small,.bp-fields small{display:block;font-size:11px;line-height:14px;color:rgba(235,235,245,.45)}
.bp-route b{display:block;font-family:var(--hand);font-weight:700;font-size:19px;line-height:23px;color:#f6f3ee}
.bp-route .to{text-align:right}
.bp-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px 18px 18px}
.bp-fields b{display:block;font-size:13px;line-height:18px;font-weight:600;color:#f1eee8}
.bp-perf{height:0;border-top:2px dashed rgba(255,255,255,.12);margin:0 16px}
.bp-stub{display:flex;gap:14px;align-items:center;padding:16px 18px 18px;height:94px}
.bp-stub p{font-size:12.5px;line-height:17px;color:rgba(235,235,245,.62)}
.bp-stub p b{color:#f1eee8;font-weight:600}
.bp-code{width:56px;height:40px;flex:none}
.cp-h{font-family:var(--hand);font-weight:700;font-size:22px;line-height:26px;color:#f6f3ee;margin:30px 4px 6px}
.route{position:relative;padding:8px 0 4px}
.rl{position:absolute;left:31px;top:30px;bottom:40px;width:2px;background:repeating-linear-gradient(rgba(255,255,255,.14) 0 5px,transparent 5px 11px)}
.rink{position:absolute;inset:0;background:linear-gradient(var(--brand-1),var(--brand-2),var(--brand-3),var(--brand-4),var(--brand-1));transform-origin:top;transform:scaleY(0);border-radius:1px}
.cp{position:relative;display:flex;gap:16px;align-items:flex-start;padding:12px 4px 18px 0;cursor:pointer}
.stamp{position:relative;z-index:1;flex:none;width:64px;height:64px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  color:var(--c);background:#0b0b0d;box-shadow:inset 0 0 0 2px var(--c),inset 0 0 0 5px #0b0b0d,inset 0 0 0 6px color-mix(in srgb,var(--c) 70%,transparent);
  transform:rotate(var(--rot)) scale(.5);opacity:0}
.stamp .sn{font-family:var(--hand);font-weight:800;font-size:22px;line-height:22px}
.stamp .sw{font-size:9.5px;font-weight:700;letter-spacing:.06em;line-height:12px;margin-top:1px}
/* a stamped checkpoint RESTS visible; the keyframes supply the slam (fill both), so dropping the animation never hides it */
.cp.in .stamp{opacity:1;transform:rotate(var(--rot)) scale(1);animation:stampin .55s var(--sp-b) both}
@keyframes stampin{0%{transform:rotate(calc(var(--rot) - 14deg)) scale(1.7);opacity:0}55%{opacity:1}100%{transform:rotate(var(--rot)) scale(1);opacity:1}}
.still .cp.in .stamp{transform:rotate(var(--rot));opacity:1}
.cp-b{flex:1;min-width:0;padding-top:4px;opacity:0;transform:translateX(14px);transition:opacity .5s var(--sp-soft) .1s,transform .7s var(--sp) .1s}
.cp.in .cp-b{opacity:1;transform:none}
.cp-b small{font-size:11px;line-height:14px;font-weight:600;color:var(--c)}
.cp-b h3{font-family:var(--hand);font-weight:700;font-size:18px;line-height:22px;color:#f6f3ee;margin-top:2px}
.cp-b>p{font-size:14px;line-height:20px;color:rgba(235,235,245,.58);margin-top:5px}
.ill{display:block;width:150px;height:64px;margin-top:10px;overflow:visible}
.ill .dr{stroke-dasharray:1 1;stroke-dashoffset:1;transition:stroke-dashoffset 1.4s var(--sp-soft) .25s}
.cp.in .ill .dr{stroke-dashoffset:0}
.ill .dot{opacity:.25}
.cp.in .ill .dot{animation:typing 1.2s ease-in-out infinite}
.ill .d2{animation-delay:.2s!important} .ill .d3{animation-delay:.4s!important}
@keyframes typing{0%,100%{opacity:.25}50%{opacity:1}}
.ill .bar{stroke-dasharray:92 92;stroke-dashoffset:92;transition:stroke-dashoffset 2s var(--sp-soft) .4s}
.cp.in .ill .bar{stroke-dashoffset:34}
.ill .tick{opacity:0;transform:translateX(-6px);transition:opacity .4s,transform .5s var(--sp)}
.cp.in .ill .tick{opacity:1;transform:none}
.cp.in .ill .t2{transition-delay:.5s} .cp.in .ill .t3{transition-delay:1s} .cp.in .ill .t4{transition-delay:1.5s}
.cp .jmore p.more{font-size:14px;line-height:20px;color:rgba(235,235,245,.74);padding-top:8px}
.cp.open .jmore{grid-template-rows:1fr}
.still .ill .dr{transition:none} .still .ill .bar,.still .ill .tick{transition:none}

/* ================= no rainbow lines: neutral hairlines; colour lives in the stamps, notes and the logo blade ================= */
.rink{background:rgba(241,238,232,.32)}
.rl{background:repeating-linear-gradient(rgba(255,255,255,.12) 0 5px,transparent 5px 11px)}
.dhero .tagpill::before{display:none}
.dhero .tagpill{box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.door .chat.glass::before{background:rgba(255,255,255,.30)}
.gline::before{background:rgba(255,255,255,.12)}

/* ================= front door loop (pre-rendered 3D objects on a huge circle) ================= */
#water.loop{background:#000;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
#water.loop.grabbing{cursor:grabbing}
.lp-ring{position:absolute;inset:0;perspective:900px}
.lp{position:absolute;left:0;top:0;width:92px;height:92px;padding:0;border:0;background:none;will-change:transform,opacity;cursor:inherit}
.lp img{display:block;width:100%;height:100%;pointer-events:none;-webkit-user-drag:none;user-select:none}
.lp-scrim{position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(70% 17% at 50% 34.5%,rgba(0,0,0,.72),rgba(0,0,0,.4) 60%,transparent 100%),linear-gradient(transparent 58%,rgba(0,0,0,.55) 70%,#000 86%)}
.lp-tip{position:absolute;z-index:400;width:220px;padding:10px 14px;border-radius:14px;background:rgba(22,22,26,.95);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),0 18px 34px -12px rgba(0,0,0,.85);font-family:var(--hand);font-weight:600;font-size:15px;line-height:20px;color:#f4f2ee;
  opacity:0;transform:translateY(-6px) scale(.88);transform-origin:var(--ax,50%) 0;transition:opacity .2s,transform .5s var(--sp-b);pointer-events:none}
.lp-tip::before{content:"";position:absolute;top:-5px;left:calc(var(--ax,110px) - 5px);width:10px;height:10px;background:rgba(22,22,26,.95);transform:rotate(45deg);box-shadow:-1px -1px 0 rgba(255,255,255,.1)}
.lp-tip.on{opacity:1;transform:none}
.door>.dtop,.dtop .dhero{pointer-events:none}
.thread>*{pointer-events:auto}
.lp-hint{font-family:var(--hand);font-weight:600;font-size:13px;line-height:17px;color:rgba(241,238,232,.42);margin-top:14px}
.dhero{margin-top:26px}
.lp-scrim{background:radial-gradient(64% 15% at 50% 41%,rgba(0,0,0,.74),rgba(0,0,0,.42) 60%,transparent 100%),linear-gradient(transparent 58%,rgba(0,0,0,.5) 70%,#000 86%)}

/* loop tooltip: opaque, topmost, placed beside the object; never over the headline or controls */
.lp-tip{position:absolute;z-index:128;width:max-content;max-width:220px;padding:10px 14px;border-radius:14px;background:#1c1c20;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 18px 34px -12px rgba(0,0,0,.9);font-family:var(--hand);font-weight:600;font-size:15px;line-height:20px;color:#f4f2ee;
  opacity:0;transform:scale(.88);transition:opacity .2s,transform .5s var(--sp-b);pointer-events:none;transform-origin:var(--ax,50%) 100%}
.lp-tip::before{content:"";position:absolute;top:auto;left:auto;right:auto;bottom:auto;width:10px;height:10px;background:#1c1c20;transform:rotate(45deg)}
.lp-tip[data-side=above]::before{bottom:-5px;left:calc(var(--ax) - 5px);box-shadow:1px 1px 0 rgba(255,255,255,.12)}
.lp-tip[data-side=below]{transform-origin:var(--ax,50%) 0}
.lp-tip[data-side=below]::before{top:-5px;left:calc(var(--ax) - 5px);box-shadow:-1px -1px 0 rgba(255,255,255,.12)}
.lp-tip[data-side=right]{transform-origin:0 var(--ay,50%)}
.lp-tip[data-side=right]::before{left:-5px;top:calc(var(--ay) - 5px);box-shadow:-1px 1px 0 rgba(255,255,255,.12)}
.lp-tip[data-side=left]{transform-origin:100% var(--ay,50%)}
.lp-tip[data-side=left]::before{right:-5px;top:calc(var(--ay) - 5px);box-shadow:1px -1px 0 rgba(255,255,255,.12)}
.lp-tip.on{opacity:1;transform:none}
.dhero{transition:opacity .3s var(--sp-soft)}
.door.tip-open .dhero{opacity:.55}
/* front door: one optically centred group (arc, tag, headline, subline, hint) between the top bar and the chat */
.door .dtop{padding-bottom:0;justify-content:center}
.dhero{margin-top:102px}
.dhero .tagpill{margin-bottom:16px}
.dhero .hl2{margin-top:12px}
.lp-hint{margin-top:20px}
.lp{width:72px;height:72px}
/* objects at full brightness; a soft readability scrim only directly behind the headline */
.lp{width:82px;height:82px}
.lp-scrim{background:radial-gradient(44% 7.5% at 50% 47%,rgba(0,0,0,.55),transparent 100%),linear-gradient(transparent 62%,rgba(0,0,0,.45) 72%,#000 88%)}

/* ================= QA pass: smoothness ================= */
html{touch-action:manipulation}
button,.lp,.item,.note,input,textarea{touch-action:manipulation}
@keyframes wsIn{from{opacity:0;transform:translateY(8px)}}
.menu{filter:none!important}
.otp input{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(255,255,255,.08)}
.sheet{-webkit-backdrop-filter:blur(24px) saturate(160%);backdrop-filter:blur(24px) saturate(160%)}
.loop .lp-ring{opacity:0;transition:opacity .6s var(--sp-soft)}
.loop.ready .lp-ring{opacity:1}
.still .loop .lp-ring{opacity:1;transition:none}
.dhero{margin-top:138px}
/* desk: the lift shadow is pre-drawn and only fades in (no repaint of a big shadow on grab) */
.item.lift{box-shadow:0 1px 1px rgba(0,0,0,.35),0 16px 28px -14px rgba(0,0,0,.9)}
.item.flowcard.lift,.item.erd.lift{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 45%,transparent),0 16px 28px -14px rgba(0,0,0,.9)}
.item:not(.receipt)::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;box-shadow:0 34px 46px -18px rgba(0,0,0,.95);opacity:0;transition:opacity .25s}
.item.lift::before{opacity:1}
.item{contain:layout paint style}
.item.receipt{contain:layout style}

/* ================= phone mode: full screen on a real phone, real safe areas, app-like touch ================= */
:root{--sat:54px;--sab:34px}
html.phone{--sat:max(env(safe-area-inset-top),20px);--sab:env(safe-area-inset-bottom)}
html.phone,html.phone body{height:100%;overflow:hidden;overscroll-behavior:none;background:#000}
html.phone body{position:fixed;inset:0;display:block}
html.phone .stage{width:100%;height:100%}
html.phone .frame{--r:0px;padding:0;border-radius:0;box-shadow:none;background:#000;width:100%;height:100%}
html.phone .btn-side,html.phone .island,html.phone .status,html.phone .home-ind,html.phone .caption{display:none}
html.phone .device{--r:0px;width:100vw;height:100vh;height:100dvh;border-radius:0}
html.phone .topbar,html.phone .navbar,html.phone .pnav,html.phone .page .pnav{top:var(--sat)}
html.phone .door{padding-top:calc(var(--sat) + 50px);padding-bottom:calc(var(--sab) + 12px)}
html.phone .screen,html.phone .pscroll{padding-top:calc(var(--sat) + 44px)}
html.phone .screen{padding-bottom:calc(var(--sab) + 110px)}
html.phone .page.clear{padding-top:calc(var(--sat) + 44px);padding-bottom:calc(var(--sab) + 12px)}
html.phone .edge-top,html.phone .pedge{height:calc(var(--sat) + 58px)}
html.phone .tabbar{bottom:max(calc(var(--sab) - 8px),12px)}
html.phone .toast{top:calc(var(--sat) + 4px)}
html.phone .sheet{bottom:max(calc(var(--sab) - 18px),8px)}
html.phone .sheet.tall{top:calc(var(--sat) + 4px)}
/* no iOS callout, magnifier or text selection on long-press; text fields stay selectable */
#out,.tabbar,.lp,.item,.note,.cp,.stamp,img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
input,textarea{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
/* gestures: the front door never pans or zooms; pages and lists scroll vertically only */
#out{touch-action:none}
.pscroll,.sheet-scroll,.screen,.desk{touch-action:pan-y}
.pscroll,.sheet-scroll,.screen{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#out input,#out textarea,#out button{touch-action:manipulation}
/* iOS: the app fills the fixed body exactly (no dvh gap while the toolbar moves), nothing peeks below */
html.phone .stage,html.phone .frame,html.phone .device{height:100%;max-height:none;min-height:0}
html.phone body{width:100%;height:100%;margin:0;overflow:hidden}
html.phone .device{position:relative;overflow:hidden;contain:paint}
.venom-cv{background:transparent}

/* ================= A: load and iOS ================= */
#splash .lo{width:220px;height:220px;display:grid;place-items:center}
#splash .lo-img{width:150px;height:150px;margin:0}
#splash.spin .lo-img{animation:splashFade .25s ease-out both}
@keyframes splashFade{from{opacity:0}}
@keyframes splashIn{from{opacity:0;transform:perspective(600px) rotateY(-38deg) scale(.86)}to{opacity:1;transform:none}}
.still #splash .lo-img{animation:none}
.loop .lp{will-change:auto}
.lp-ring{perspective:none}
/* full height without a fixed 100vh: fills the visual viewport in Safari with or without toolbars, and standalone */
html.phone,html.phone body{height:100%;min-height:100%;min-height:-webkit-fill-available;min-height:100dvh}
html.phone body{position:fixed;inset:0;overflow:hidden}
html.phone .stage,html.phone .frame,html.phone .device{width:100%;height:100%}
/* the door adapts to short screens: the group compresses before anything is cut */
html.phone .dhero{margin-top:clamp(40px,calc(100dvh * .16 - 2px),138px)}
html.phone .door{padding-top:calc(var(--sat) + 44px);padding-bottom:calc(var(--sab) + 14px)}
@media (max-height:720px){html.phone .lp-hint{display:none} html.phone .dhero .hl{font-size:30px;line-height:35px} html.phone .dcta{gap:8px} html.phone .dcta .btn{height:46px}}
@media (max-height:640px){html.phone .dhero .tagpill{display:none}}
/* a closed sheet is parked fully off-screen (an empty sheet is short, so 110% of its own height left an edge peeking) */
.sheet{transform:translateY(calc(100% + 120px))}
.open .sheet{transform:none}
.sheet:not(.drag){visibility:visible}

/* ================= iPhone 15: no top/bottom darkening, splash bigger and centred ================= */
/* the only readability scrim left is a soft radial directly behind the headline */
.lp-scrim{background:radial-gradient(44% 7.5% at 50% 47%,rgba(0,0,0,.5),transparent 100%)}
/* no dark fades at the top or bottom edges anywhere */
.edge-bot,.edge-top,.pedge{display:none}
html,body{background:#000}
/* splash: 1.4x, centred in the full viewport (safe areas included) */
#splash{position:absolute;inset:0;display:grid;place-items:center;padding:0}
#splash .lo{width:auto;height:auto;margin:0}
#splash .lo-img{width:210px;height:210px;display:block}

/* one-time code: a single real input over six drawn boxes */
.otp{position:relative}
.otp .c{--r:14px;width:46px;height:58px;flex:none;display:grid;place-items:center;border-radius:14px;font-size:26px;font-weight:600;font-variant-numeric:tabular-nums;color:#fff;
  background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);transition:box-shadow .2s,transform .35s var(--sp-b),color .2s}
.otp .c.f{transform:scale(1.04)}
.otp .c.cur{box-shadow:inset 0 0 0 1.5px var(--pearl)}
.otp .c.cur::after{content:"";width:2px;height:26px;border-radius:1px;background:var(--pearl);animation:blink 1s steps(1) infinite}
.otp.ok .c{box-shadow:inset 0 0 0 1.5px var(--c-green);color:var(--c-green)}
.otp-in{position:absolute;inset:0;width:100%;height:100%;opacity:.01;border:0;outline:none;background:transparent;color:transparent;caret-color:transparent;font-size:16px;letter-spacing:0;padding:0;z-index:2;-webkit-user-select:text;user-select:text}
/* chat box without the attach button: balanced padding */
.door .chat .crow{padding-left:10px}
.pill{padding-left:14px}
/* the floating tab bar sits fully above the home indicator */
html.phone .tabbar{bottom:calc(var(--sab) + 6px)}
html.phone .screen{padding-bottom:calc(var(--sab) + 96px)}

/* ================= detail pass ================= */
/* headlines never leave a widow; long single-line labels truncate */
h1,h2,h3,.lt,.hl,.auth-h,.ptitle,.fcard h3,.cp-b h3,.onb-card h2{text-wrap:balance}
p,.sub,.story,.plead{text-wrap:pretty}
/* tap targets of at least 44 pt */
.cbtn{position:relative}.cbtn::after{content:"";position:absolute;inset:-3px}
.xbtn::after{inset:-5px}
.mi,.ap-i{min-height:46px}
/* pressed, focus and disabled states on every button */
button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.btn:disabled{opacity:.55}
.get:active,.tbtn:active,.mi:active,.ap-i:active{transform:scale(.97)}
/* the keyboard lifts the chat (door) and the fields (sign-in, code) instead of covering them */
html.phone .door .chat,html.phone .door .dcta,html.phone .door .thread,html.phone .page.clear .authcard{transition:transform .32s var(--sp)}
html.phone.kb-open .door .chat,html.phone.kb-open .door .thread{transform:translateY(calc(var(--kb) * -1 + var(--sab) + 120px))}
html.phone.kb-open .door .dcta{opacity:0;pointer-events:none}
html.phone.kb-open .page.clear .authcard{transform:translateY(calc(var(--kb) * -.5))}
/* offline banner */
.offline-banner{position:absolute;left:16px;right:16px;top:calc(var(--sat,54px) + 52px);z-index:126;display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;
  background:rgba(40,40,46,.94);color:#f4f2ee;font-size:14px;line-height:19px;transform:translateY(-14px);opacity:0;pointer-events:none;transition:opacity .3s,transform .5s var(--sp-b)}
.offline-banner i{width:8px;height:8px;border-radius:4px;background:#E67B2F;flex:none}
.is-offline .offline-banner{opacity:1;transform:none}
html[data-theme=light] .offline-banner{background:#FFFFFF;color:#111114;box-shadow:0 10px 30px -12px rgba(60,40,20,.3),inset 0 0 0 1px rgba(17,17,20,.08)}
.err-note{margin:12px 4px 0;padding:10px 14px;border-radius:14px;font-size:13px;line-height:18px;color:rgba(235,235,245,.72);background:rgba(230,123,47,.12)}
html[data-theme=light] .err-note{color:rgba(17,17,20,.72)}
/* landscape on a phone: locked gracefully */
.turn-card{position:absolute;inset:0;z-index:300;display:none;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#000;color:#f4f2ee;text-align:center}
.turn-card p{font-size:20px;line-height:25px;font-weight:600} .turn-card span{font-size:14px;color:rgba(235,235,245,.55)}
html[data-theme=light] .turn-card{background:#F4F2EE;color:#111114} html[data-theme=light] .turn-card img{content:url(brand/symbol-ink.svg)}
@media (orientation:landscape) and (max-height:500px){html.phone .turn-card{display:flex}}
/* loading skeleton */
.sk{display:block;height:16px;border-radius:8px;background:linear-gradient(90deg,rgba(255,255,255,.06) 0%,rgba(255,255,255,.12) 50%,rgba(255,255,255,.06) 100%) 0 0/200% 100%;animation:skel 1.1s linear infinite}
.sk-t .sk{height:30px;margin-top:6px}
.sk-tile{gap:14px}
@keyframes skel{to{background-position:-200% 0}}
html[data-theme=light] .sk{background-image:linear-gradient(90deg,rgba(17,17,20,.05) 0%,rgba(17,17,20,.1) 50%,rgba(17,17,20,.05) 100%)}
/* the chat placeholder stays on one line on narrow phones */
.chat textarea{font-size:16px;line-height:21px}
.chat textarea:placeholder-shown{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* pages are solid enough that the door never shows through; the tab bar is solid enough that content never clashes with its labels */
.page{background:rgba(7,7,9,.95)}
.tabbar{background:#1C1C1E}
/* real iPhone: the app is the whole screen, never a framed or scaled column */
html.phone,html.phone body{width:100%;max-width:none;margin:0;padding:0;overflow:hidden}
html.phone .stage,html.phone .frame{transform:none!important;max-width:none;margin:0;padding:0}
html.phone .device{width:100%!important;max-width:none;overflow:clip}
html.phone .tabbar{position:absolute;left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right))}
/* ================= sign-in sheet: the bubble pile ================= */
.dlink.signlink{margin-top:0;color:rgba(235,235,245,.42)}
.dlink.signlink b{color:rgba(241,238,232,.78);font-weight:500}
.sheet.sso-sheet{padding-top:5px;padding-bottom:calc(14px + max(0px, var(--sab) - 26px));background:#141417;-webkit-backdrop-filter:none;backdrop-filter:none}
.sso-x{position:absolute;top:14px;right:14px;z-index:2}
canvas.bubbles{display:block;width:calc(100% + 2 * var(--p-sheet));margin:0 calc(var(--p-sheet) * -1);height:clamp(150px,25vh,214px);touch-action:none;cursor:grab}
.meet{font-size:32px;line-height:38px;font-weight:700;letter-spacing:-.9px;color:#f4f2ee;text-align:center;margin-top:10px}
.meet-s{font-size:16px;line-height:22px;letter-spacing:-.31px;color:rgba(235,235,245,.55);text-align:center;margin:6px auto 0;max-width:290px;text-wrap:balance}
.sso{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.sso .btn svg{flex:none;margin-right:3px}
.terms{font-size:12px;line-height:16px;color:rgba(235,235,245,.38);text-align:center;margin:14px 0 2px}
html[data-theme=light] .sheet.sso-sheet{background:#FFFFFF}
html[data-theme=light] .dlink.signlink{color:rgba(17,17,20,.45)}
html[data-theme=light] .dlink.signlink b{color:rgba(17,17,20,.82)}
html[data-theme=light] .meet{color:#111114}
html[data-theme=light] .meet-s{color:rgba(17,17,20,.58)}
html[data-theme=light] .terms{color:rgba(17,17,20,.42)}
.sheet.sso-sheet{overflow:hidden}
.sheet.sso-sheet .sso-x{top:12px;right:12px}
.sheet.sso-sheet canvas.bubbles{margin-top:40px;height:clamp(140px,24vh,200px)}
.sheet.sso-sheet canvas.bubbles{height:clamp(130px,20vh,176px)}

/* the door's opening pile: same layer as the loop, under the logo and menu row */
.door-drop{position:absolute;left:0;top:0;width:100%;z-index:29;touch-action:none;cursor:grab}
/* crisp entrances: no blur on the door's words, chat or buttons */
.fw .w{filter:none}
@keyframes wordIn{from{opacity:0;transform:translateY(8px)}}
/* fluid on every phone width: no fixed 329 gauge, grids that can't be pushed wider than the screen */
.gauge{width:100%;max-width:329px;height:auto;aspect-ratio:329/150}
.gauge svg{width:100%;height:auto}
.wgrid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.row .t{min-width:0}
.row .t1{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-wrap:pretty}
.sheet-head .sh-t{min-width:0}
.sheet-head .sh-s{white-space:normal;text-wrap:pretty}
/* light: the small corner dates on tiles use the light secondary text colour */
html[data-theme=light] .hh .when{color:rgba(17,17,20,.5)}
html[data-theme=light] .hh .when svg{color:rgba(17,17,20,.4)}
.page:not(.clear){background:#070709}
/* iOS large-title behaviour: a solid bar appears behind the status bar and nav only once content scrolls under it */
.edge-top,.pedge{display:block!important;position:absolute;left:0;right:0;top:0;height:98px;z-index:44;pointer-events:none;opacity:0;transition:opacity .2s linear;
  background:rgba(9,9,11,.97);box-shadow:inset 0 -.5px 0 rgba(255,255,255,.1)}
.pedge{position:absolute;margin:0;z-index:58}
html.phone .edge-top,html.phone .pedge{height:calc(var(--sat) + 48px)}
.device.scrolled .edge-top,.page.scrolled .pedge{opacity:1}
html[data-theme=light] .edge-top,html[data-theme=light] .pedge{background:rgba(244,242,238,.97);box-shadow:inset 0 -.5px 0 rgba(17,17,20,.12)}
/* send waits until there is something to send */
.venom-send.is-empty{opacity:.5;transition:opacity .2s}
.venom-send:not(.is-empty){transition:opacity .2s}
/* ================= buttons sized to the device ================= */
/* icon buttons: one size everywhere, perfect 44 pt circles, icons optically centred */
.nbtn:not(.txt),.xbtn,.sso-x{width:44px!important;height:44px!important;border-radius:50%!important;corner-shape:round!important;padding:0;display:grid;place-items:center;flex:none}
.xbtn::after{inset:0}
.nbtn svg,.xbtn svg{display:block}
/* full-width buttons take the container width; primary 50 pt, secondary at least 44 pt; labels never wrap */
.btn{width:100%;max-width:none;min-height:44px;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.btn.filled,.sso .btn,.dcta .btn{height:50px}
@media (max-height:720px){html.phone .dcta .btn{height:50px}}
@media (max-width:360px){.btn{font-size:15px;letter-spacing:-.2px;padding:0 14px}}
/* paired buttons split evenly with one gap */
.btnrow{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.btnrow>.btn{width:auto}
/* one shared side inset per screen: header controls sit on the same edges as the content below */
.topbar{padding:0 20px}
button.brand{padding:11px 0!important;margin:0!important;position:relative}
button.brand::after,button.nav-sym::after{content:"";position:absolute;inset:0 -11px}
button.nav-sym{width:auto!important;height:44px;padding:11px 0!important;margin:0!important;position:relative}
.page.clear .pnav{padding:0 20px}
#pg-journey .pnav{padding:0 18px}
.sheet.sso-sheet .sso-x{top:8px;right:calc(var(--p-sheet))}
/* scroll content keeps its own layer, so the top bar always covers it */
.screens{z-index:1}
.pscroll{position:absolute;inset:0;z-index:1}
/* sheets are solid: nothing behind them reads through */
.sheet{background:#1c1c1f!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.sheet.sso-sheet{background:#141417!important}
html[data-theme=light] .sheet,html[data-theme=light] .sheet.sso-sheet{background:#FFFFFF!important}
.edge-top,.pedge{-webkit-mask:none!important;mask:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background-image:none!important}
.edge-top,.pedge{background-color:#09090B!important}
html[data-theme=light] .edge-top,html[data-theme=light] .pedge{background-color:#F4F2EE!important}

/* ================= micro-details ================= */
/* toast: a thin line drains while it waits; swipe it up to dismiss */
.toast{overflow:hidden}
.toast::after{content:"";position:absolute;left:16px;right:16px;bottom:3px;height:2px;border-radius:1px;background:currentColor;opacity:.16;transform-origin:left center;transform:scaleX(0)}
.toast.on::after{animation:toastDrain 2.6s linear forwards}
@keyframes toastDrain{from{transform:scaleX(1)}to{transform:scaleX(0)}}
/* back online */
.offline-banner.back i{background:#3ddc84}
/* active tab: the filled icon settles in with a small bounce */
.tab.on svg{animation:tabPop .42s cubic-bezier(.34,1.56,.64,1)}
@keyframes tabPop{0%{transform:scale(.82)}100%{transform:none}}
/* pressed cards and buttons give a little */
button.tile,.btn,.get{transition:transform .14s cubic-bezier(.3,.7,.4,1)}
button.tile:active,.btn:active,.get:active{transform:scale(.97)}
/* end of the feed */
.caught{margin:14px 0 2px;text-align:center;font-size:13px;line-height:18px;color:rgba(235,235,245,.38)}
html[data-theme=light] .caught{color:rgba(17,17,20,.4)}
/* nothing to approve */
.empty-sticky{margin:6px 12px 12px;padding:16px 16px 14px;border-radius:4px 4px 14px 4px;background:#f6e27a;color:#1b1a14;transform:rotate(-1.2deg);box-shadow:0 10px 22px -14px rgba(0,0,0,.6)}
.empty-sticky b{display:block;font-family:var(--hand);font-size:19px;line-height:23px;font-weight:700}
.empty-sticky span{display:block;margin-top:4px;font-size:14px;line-height:19px;color:rgba(27,26,20,.72)}
/* field errors */
.field-err{margin:8px 4px 0;font-size:13px;line-height:18px;color:#ff6a6a}
html[data-theme=light] .field-err{color:#c7262f}
/* numbers read as numbers */
.amt,.g-num,.f-m,.fig{font-variant-numeric:tabular-nums}
/* reduced motion: things fade instead of travelling */
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.18s!important;animation-iteration-count:1!important;transition-duration:.18s!important;scroll-behavior:auto!important}
  .tab.on svg,.toast.on::after{animation:none!important}}

/* long messages: a counter near the cap, a 6-line bubble with Show more, a thread that scrolls */
.chat .crow{position:relative}
.ccount{position:absolute;right:62px;bottom:-2px;font-size:11px;line-height:14px;color:rgba(235,235,245,.4);font-variant-numeric:tabular-nums;pointer-events:none}
.ccount.max{color:#ff8a5c}
html[data-theme=light] .ccount{color:rgba(17,17,20,.45)}
#bub{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#bub.full{display:block;-webkit-line-clamp:unset;max-height:none}
.bubmore{align-self:flex-end;margin-top:-10px;padding:6px 4px;font-size:13px;line-height:18px;font-weight:600;color:rgba(241,238,232,.75)}
html[data-theme=light] .bubmore{color:rgba(17,17,20,.7)}
.door.sent .thread{overflow-y:auto;overscroll-behavior:contain;min-height:0;max-height:calc(100% - var(--sat,54px) - 60px);scrollbar-width:none}
.door.sent .thread::-webkit-scrollbar{display:none}
/* a wrong code shows red for a moment */
#otp.bad .c{box-shadow:inset 0 0 0 1.5px #ff6a6a}

/* the sent thread: bottom-aligned when short, scrollable from the top when long, always below the top bar */
.door.sent .thread{justify-content:flex-start!important}
.door.sent .thread>:first-child{margin-top:auto}
.door.sent .thread>*{flex-shrink:0}
#bub{padding:0;border:10px solid transparent;border-left-width:15px;border-right-width:15px}

/* Journey toggle: a real button that looks like the old hint */
button.jtap{font:inherit;background:none;border:0;padding:8px 0;margin:-8px 0;cursor:pointer}
/* contrast: quiet text stays at least 4.5:1 on its background */
.board-hint,.lp-hint,.dd,.foot,.pfoot,.sample,.hh .when,.otp-sample,.terms,.caught,.jtap,.cp-b small{color:rgba(235,235,245,.62)!important}
html[data-theme=light] .board-hint,html[data-theme=light] .lp-hint,html[data-theme=light] .dd,html[data-theme=light] .foot,html[data-theme=light] .pfoot,html[data-theme=light] .sample,html[data-theme=light] .hh .when,html[data-theme=light] .otp-sample,html[data-theme=light] .terms,html[data-theme=light] .caught,html[data-theme=light] .jtap,html[data-theme=light] .cp-b small{color:rgba(17,17,20,.62)!important}
/* contrast: secondary text at least 4.5:1 in both themes (WCAG AA) */
:root{--label-2:rgba(235,235,245,.68);--quiet:rgba(235,235,245,.64)}
.row .t2,.tm,.lsub,.g-unit,.sub,.hh .cat,[class^=bp] small,.cp-b small{color:rgba(235,235,245,.66)}
html[data-theme=light]{--label-2:rgba(17,17,20,.66);--quiet:rgba(17,17,20,.64)}
html[data-theme=light] .row .t2,html[data-theme=light] .tm,html[data-theme=light] .lsub,html[data-theme=light] .g-unit,html[data-theme=light] .sub,html[data-theme=light] .hh .cat,html[data-theme=light] [class^=bp] small,html[data-theme=light] .plead,html[data-theme=light] .auth-s,html[data-theme=light] .field label{color:rgba(17,17,20,.66)}
/* light: brand green as text is too pale on cream, so text uses a deeper green */
html[data-theme=light] .chip.live,html[data-theme=light] .pos{color:#13804a}
.bp-top span:not(.bp-no),.bpass p{color:rgba(235,235,245,.68)}
html[data-theme=light] .bp-top span:not(.bp-no),html[data-theme=light] .bpass p{color:rgba(17,17,20,.66)}

/* ================= final audit ================= */
/* H1: one primary action at full width, the secondary as a text link */
.btnstack{display:flex;flex-direction:column;gap:4px;margin-top:4px}
.tlink{min-height:44px;padding:0 12px;align-self:center;font-size:15px;line-height:20px;font-weight:600;color:rgba(241,238,232,.85)}
html[data-theme=light] .tlink{color:#111114}
.tlink.again{display:block;margin:6px auto 0}
/* H5: only list rows clamp to two lines; rows written to wrap (plan steps) show everything */
.row .t1[style*="white-space:normal"]{display:block;-webkit-line-clamp:unset;overflow:visible}
/* M6: the menu is nearly solid and the loop steps back while it is open */
.menu{background:rgba(28,28,30,.94)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html[data-theme=light] .menu{background:rgba(255,255,255,.97)!important}
#out:has(.menu-open) #water{opacity:.25!important;transition:opacity .3s}
/* L2: dragging the pile never selects text; the pile starts below the close button */
.sso-sheet{-webkit-user-select:none;user-select:none}
.sheet.sso-sheet canvas.bubbles{margin-top:52px}
/* a11y: every tap target is at least 44 pt */
.venom-send{width:44px!important;height:44px!important;border-radius:22px!important}
.dlink{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.eye{width:44px!important;height:44px!important;margin-right:-8px}
.tbtn{min-height:44px;display:inline-flex;align-items:center}
.ftabs button{min-height:44px}
.seg{height:auto!important;min-height:44px}
.seg button{min-height:40px}
.switch{position:relative}.switch::after{content:"";position:absolute;inset:-8px -2px}
.ftabs button,.seg button,.switch{touch-action:manipulation}
/* L3 */
.nobr{white-space:nowrap}
/* 44 pt boxes for the logo buttons and small pills, without changing how they look */
button.brand,button.nav-sym{width:44px!important;justify-content:flex-start;padding:11px 22px 11px 0!important;display:flex;align-items:center}
.tbtn{min-width:44px;justify-content:center}
.get{border:9px solid transparent!important;background-clip:padding-box!important;margin:-9px 0!important;box-sizing:content-box}
.dlink{display:block!important;min-height:44px;padding:12px 10px!important;line-height:20px}
.sheet:focus{outline:none}
html:not(.kbd) :focus{outline:none}
button.jtap{margin:0!important;padding:0!important;min-height:44px;display:inline-flex;align-items:center}

/* ================= audit pass 18 Nov ================= */
/* medium filled buttons match medium gray ones (44 pt), the details button sits on the field inset */
.btn.filled.medium{height:44px}
.ask-go{padding:8px 16px 14px}
/* segmented buttons get a 44 pt hit area without changing their look */
.seg button{position:relative}.seg button::after{content:"";position:absolute;inset:-2px 0}
/* receipt text on paper reaches 4.5:1 in both themes */
.rc-h small{color:rgba(0,0,0,.62)}
.rc-l.dim{color:rgba(0,0,0,.6)}
.rc-note{filter:brightness(.62) saturate(1.2)}
html[data-theme=light] .jtap,html[data-theme=light] .cp-b small{color:rgba(17,17,20,.7)!important}

/* ================= Windows app (installed PWA): html.desk ================= */
/* the window's own surface follows the theme; the app keeps its approved layout in a column that never crops */
html.desk,html.desk body{background:#000}
html.desk[data-theme=light],html.desk[data-theme=light] body{background:#F4F2EE}
html.desk{--sat:16px;--sab:0px}
html.desk .stage{display:flex;justify-content:center}
html.desk .frame{width:100%;max-width:560px;margin:0 auto}
html.desk .device{width:100%!important}
/* signed in, on a wide window: a wider canvas for the cards, the tab bar floats centred */
@media (min-width:760px){
  html.desk .frame:has(.device.in-ws){max-width:1040px}
  html.desk .device.in-ws .tabbar{left:0!important;right:0!important;margin:0 auto;width:min(560px,calc(100% - 32px))}
  html.desk .sheet{left:50%!important;right:auto!important;width:min(560px,calc(100% - 16px))!important;margin-left:calc(min(560px,calc(100% - 16px)) / -2)}
}
/* title bar: in window-controls-overlay mode the app draws under the min/max/close buttons; a drag strip sits there */
.wco-drag{display:none}
@media (display-mode: window-controls-overlay){
  html.desk{--sat:calc(env(titlebar-area-height,33px) + 8px)}
  .wco-drag{display:block;position:fixed;z-index:200;top:env(titlebar-area-y,0);left:env(titlebar-area-x,0);width:env(titlebar-area-width,100%);height:env(titlebar-area-height,33px);-webkit-app-region:drag;app-region:drag}
}
/* mouse: hover states and pointer cursors, only where a real mouse exists */
@media (hover:hover) and (pointer:fine){
  button,a,[data-sheet],[data-close],.row[data-push],.tile[data-push],.ap-i,.mi{cursor:pointer}
  .btn,.cbtn,.nbtn,.tbtn,.seg button,.ftabs button,.ap-i,.mi,.dlink,.tlink{transition:filter .15s,background-color .15s,opacity .15s}
  .btn:hover,.cbtn:hover,.nbtn:hover{filter:brightness(1.12)}
  html[data-theme=light] .btn:hover,html[data-theme=light] .cbtn:hover,html[data-theme=light] .nbtn:hover{filter:brightness(.95)}
  .row[data-push]:hover,.ap-i:hover,.mi:hover{background-color:rgba(255,255,255,.05)}
  html[data-theme=light] .row[data-push]:hover,html[data-theme=light] .ap-i:hover,html[data-theme=light] .mi:hover{background-color:rgba(17,17,20,.04)}
  .dlink:hover,.tlink:hover{opacity:.8}
  .tabbar button:hover{filter:brightness(1.2)}
}
/* no visible column edge: the window carries the same surface as the app */
html.desk .frame{background:transparent!important}
html.desk:not([data-theme=light]) body:has(.device.in-ws){background:radial-gradient(130% 45% at 50% -8%,#16161b 0%,#08080a 55%,#050506 100%) fixed}
html.desk:not([data-theme=light]) .device.in-ws,html.desk:not([data-theme=light]) .device.in-ws #ws{background:transparent!important}
html.desk .frame,html.desk .device{box-shadow:none!important;border-radius:0!important}
/* contrast, second pass: real colours (filters are invisible to contrast checks and to some readers) */
.rc-note{color:#a8501c!important;filter:none!important}
html[data-theme=light] .stamp .sw{color:color-mix(in srgb,var(--c) 62%,#000)}
html[data-theme=light] .cp .cp-b>.jtap,html[data-theme=light] .in>.cp-b>.jtap{color:rgba(17,17,20,.72)!important}
html[data-theme=light] .jtap{opacity:1!important}
